Media Library Assistant - Version 1.80

Version Description

  • New: For the Media Manager Modal Window, Native support for "checkbox-style" and "tag hint-style" taxonomy meta boxes is available. See the Other Notes section section for more details.
  • New: For flat taxonomies, e.g., "Tags" or "Att. Tags", a "checkbox-style" meta box is available. See the Other Notes section section for more details.
  • New: An option (General tab) is provided to disable term-specific counts in the Attachments column of the taxonomy edit screens.
  • New: An option (General tab) is provided to suppress the MLA-specific metaboxes on the Media/Edit Media screen. This removes the "Parent Info", "Menu Order", "Attachment Metadata" and the four "where-used" meta boxes.
  • New: Bulk edit area now includes Title, Caption, Description, ALT Text, Comments and Pings fields. Text fields may contain a Content Template, allowing conditional replacement of the field value.
  • New: A numeric value in the Media/Assistant search box will do a text-based search in addition to the post or parent ID search. This eliminates the requirement to add quotes to the value to force a text-based search. You can still add quotes to avoid the parent/post ID part of the search, or avoid the text-based search by unchecking all of the search field boxes.
  • New: A new option, Icon Size, sets the thumbnail/icon size on the Media/Assistant submenu table. Find it in the Table Defaults section of the Settings/Media Library Assistant General tab.
  • New: More debugging information displayed/logged when Media/Assistant search box begins with ">|<" or <|>".
  • New: For [mla_gallery], the Data sources for custom field mapping are now available as Attachment-specific substitution parameters. A new "commas" option allows better formatting of numeric data source values.
  • New: For [mla_gallery], mla_gallery_raw_attributes filter allows access to the shortcode parameters before they pass through the logic to handle mla_page_parameter and "request:" prefix processing. The mla-hooks-example.php.txt example has been updated as well.
  • New: For [mla_gallery], mla_paginate_rows allows you to avoid redundant database queries just to create pagination controls, if you have some other way of knowing how many items a gallery contains.
  • New: For [mla_gallery], WP_Query caching parameters allow you to avoid additional database queries just to fill the post, metadata and/or term cache if your application does not require them.
  • New: For [mla_tag_cloud], post_mime_type allows you to filter the tag cloud counts by MIME type so they will match the results delivered by [mla_gallery] and other gallery shortcodes.
  • New: For [mla_tag_cloud], a new no_count parameter enables or disables the computation of term-specific attachment counts.
  • New: For [mla_gallery], the HTML5 figure, div and figcaption tags are used for themes that register support for HTML5.
  • New: For [mla_gallery], a new mla_style setting ("theme") lets the theme control use of the MLA style template by hooking the use_default_gallery_style filter.
  • Fix: The term-specific counts computation in the Attachments column of the taxonomy edit screens is significantly more efficient.
  • Fix: Removed an intermittant PHP Warning message for logged-in users without the "upload_files" capability.
  • Fix: The [mla_tag_cloud] templates are no longer offered in the default [mla_gallery] template dropdown list.
  • Fix: Default descriptions for mla_upload_mime option values are no longer stored in the options table, saving space.
  • Fix: Support for the "Media Categories" plugin (by Eddie Moya) is no longer required and has been removed.
  • Fix: The where-used term "BAD PARENT" has been replaced with the less severe "UNUSED" to more clearly indicate that the item has a valid parent but is not used for anything in the parent post/page.
  • Fix: The "Inserted in" reporting with the "Base" option setting explicitly tests for all registered intermediate sizes, giving more precise results.
  • Fix: Peaceful co-existance with Relevanssi - A Better Search, v3.2+ by Mikko Saari, using a filter provided by that plugin to disable interference with the Media/Assistant submenu search box and the [mla_gallery] shortcode.
  • Fix: Removed support for the ancient, bug-ridden and unused [mla_attachment_list] shortcode.
Download this release

Release Info

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

Code changes from version 1.71 to 1.80

Files changed (63) hide show
  1. css/mla-media-modal-style.css +149 -17
  2. css/mla-style.css +14 -5
  3. examples/mla-hooks-example.php.txt +43 -2
  4. examples/mla-mapping-hooks-example.php.txt +1 -1
  5. examples/mla-media-tagger-example.php.txt +285 -0
  6. examples/twentytwelve-mla/content-category-listing.php +47 -0
  7. examples/twentytwelve-mla/content-media.php +38 -0
  8. examples/twentytwelve-mla/content-tag-gallery.php +79 -0
  9. examples/twentytwelve-mla/functions.php +280 -0
  10. examples/twentytwelve-mla/header.php +71 -0
  11. examples/twentytwelve-mla/image.php +141 -0
  12. examples/twentytwelve-mla/languages/en_US.pot +138 -0
  13. examples/twentytwelve-mla/page-category-listing.php +30 -0
  14. examples/twentytwelve-mla/page-tag-gallery.php +30 -0
  15. examples/twentytwelve-mla/style.css +59 -0
  16. examples/twentytwelve-mla/taxonomy.php +77 -0
  17. includes/class-mla-data.php +280 -76
  18. includes/class-mla-edit-media.php +271 -92
  19. includes/class-mla-list-table.php +14 -9
  20. includes/class-mla-main.php +197 -74
  21. includes/class-mla-media-modal.php +496 -124
  22. includes/class-mla-mime-types.php +25 -4
  23. includes/class-mla-objects.php +54 -50
  24. includes/class-mla-options.php +157 -38
  25. includes/class-mla-settings.php +24 -7
  26. includes/class-mla-shortcodes.php +135 -33
  27. includes/mla-media-modal-js-template.php +52 -0
  28. index.php +3 -2
  29. js/mla-edit-media-scripts.js +20 -14
  30. js/mla-edit-media-scripts.min.js +1 -1
  31. js/mla-media-modal-scripts.js +1055 -258
  32. js/mla-media-modal-scripts.min.js +1 -1
  33. js/mla-single-edit-scripts.js +1 -1
  34. js/mla-single-edit-scripts.min.js +1 -1
  35. languages/en_US.pot +1097 -931
  36. phpDocs/classes.svg +94 -77
  37. phpDocs/classes/MLA.html +28 -2
  38. phpDocs/classes/MLAData.html +70 -2
  39. phpDocs/classes/MLAEdit.html +50 -25
  40. phpDocs/classes/MLAMime.html +18 -2
  41. phpDocs/classes/MLAModal.html +77 -8
  42. phpDocs/classes/MLAObjects.html +5 -2
  43. phpDocs/classes/MLAOptions.html +61 -6
  44. phpDocs/classes/MLASettings.html +5 -2
  45. phpDocs/classes/MLAShortcodes.html +10 -3
  46. phpDocs/classes/MLATest.html +5 -2
  47. phpDocs/classes/MLATextWidget.html +5 -2
  48. phpDocs/classes/MLA_Checklist_Walker.html +169 -0
  49. phpDocs/classes/MLA_List_Table.html +5 -2
  50. phpDocs/classes/MLA_Upload_List_Table.html +5 -2
  51. phpDocs/classes/MLA_Upload_Optional_List_Table.html +5 -2
  52. phpDocs/classes/MLA_View_List_Table.html +5 -2
  53. phpDocs/deprecated.html +5 -2
  54. phpDocs/errors.html +15 -2
  55. phpDocs/graph_class.html +5 -2
  56. phpDocs/index.html +5 -2
  57. phpDocs/markers.html +6 -3
  58. phpDocs/namespaces/global.html +78 -2
  59. phpDocs/packages/Media Library Assistant.MLA.Child.Theme.html +162 -0
  60. phpDocs/packages/Media Library Assistant.MLA.Child.html +165 -0
  61. phpDocs/packages/Media Library Assistant.MLA.html +176 -0
  62. phpDocs/packages/Media Library Assistant.html +118 -3
  63. phpDocs/structure.xml +1981 -1416
css/mla-media-modal-style.css CHANGED
@@ -2,34 +2,166 @@
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
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  /**
3
  * CSS Document
4
  *
5
+ * This file contains styling attributes for the Media Manager Modal Window,
6
+ * adapted from /wp-admin/css/edit.css and given unique names to avoid conflicts.
7
  */
8
 
9
+ .media-toolbar {
10
+ overflow: visible;
11
+ }
12
+
13
+ /* .media-toolbar-primary, */
14
+ .media-toolbar-secondary {
15
+ width: 50%;
16
+ }
17
+
18
+ /** === Search Options */
19
+ .mla-search-options {
20
+ list-style: none;
21
+ padding: 0;
22
+ margin: 0 0 10px;
23
+ }
24
+
25
+ .mla-search-options > li {
26
+ float: left;
27
+ margin-right: 5px;
28
+ margin-bottom: 0;
29
+ }
30
+
31
+ .mla-search-options > li:last-child { margin-right: 0; }
32
+
33
  /**
34
+ * Attachment Browser Dropdowns
35
  */
36
+ .media-frame select.attachment-months,
37
+ .media-frame select.attachment-terms {
38
+ margin-top: 11px;
39
+ margin-right: 10px;
40
+ }
41
+
42
+ /**
43
+ * Hide "Media Categories" meta box
44
+ */
45
+ .media-sidebar .compat-item .compat-field-MLA-has-disabled-this-instance_metabox {
46
+ display: none;
47
+ }
48
+
49
+ /**
50
+ * Checkbox-style taxonomy meta box
51
+ */
52
+
53
+ .media-modal.mla-expanded .media-toolbar { right: 612px; }
54
+ .media-modal.mla-expanded .attachments { right: 612px; }
55
+ .media-modal.mla-expanded .media-sidebar { 6px; min-width: 600px; }
56
+
57
+ .media-modal .media-toolbar {
58
+ right: 312px;
59
+ }
60
+
61
+ .media-modal .attachments {
62
+ right: 312px;
63
+ top: 120px;
64
+ }
65
+
66
+ .media-modal .media-sidebar {
67
+ padding-left: 6px;
68
+ min-width: 290px;
69
+ }
70
+
71
+ /* Avoid "Media Categories" interference */
72
+ .mla-hidden-children .wp-hidden-child {
73
+ display: none;
74
+ }
75
+
76
+ .media-sidebar .compat-item .mla-taxonomy-row .mla-taxonomy-field div.categorydiv {
77
+ margin-top: 0px;
78
+ padding-top: 6px;
79
  }
80
 
81
+ .media-sidebar .compat-item .mla-taxonomy-row .mla-taxonomy-field div.tagsdiv {
82
+ margin-top: 0px;
83
+ padding-top: 6px;
84
  }
85
 
86
+ .media-sidebar .compat-item .mla-taxonomy-row td.field div.tabs-panel {
87
+ min-height: 200px;
88
+ max-height: 200px;
89
+ }
90
+
91
+ /* Required for WP v3.5.x */
92
+ .media-sidebar .compat-item .mla-taxonomy-row td.field div.tabs-panel input {
93
+ width: 16px;
94
  }
95
 
96
  /**
97
+ * Flat taxonomy meta box, from /wp-admin/css/edit.css "13.0 - Tags"
98
  */
99
+
100
+ .media-sidebar .compat-item .mla-taxonomy-row .mla-taxonomy-field div.ajaxtag .newtag {
101
+ position: relative;
102
+ }
103
+
104
+ .media-sidebar .compat-item .mla-taxonomy-row .mla-taxonomy-field div.tagsdiv .newtag {
105
+ margin-right: 4px;
106
+ width: 200px;
107
+ }
108
+
109
+ .media-sidebar .compat-item .mla-taxonomy-row .mla-taxonomy-field div.tagsdiv .tagadd {
110
+ width: auto;
111
+ }
112
+
113
+ .media-frame input.mla-taxonomy-add-submit {
114
+ font-size: 13px;
115
+ line-height: 16px;
116
+ height: 26px;
117
  padding: 4px;
118
+ width: auto;
119
+ }
120
+
121
+ /*
122
+ * /wp-includes/js/jquery/suggest.js tag auto-complete results
123
+ */
124
+ .mla_ac_results {
125
+ padding: 0;
126
+ margin: 0;
127
+ list-style: none;
128
+ position: absolute;
129
+ z-index: 170000;
130
+ display: none;
131
+ border: 1px solid #808080;
132
+ background-color: #fff;
133
+ }
134
+
135
+ .mla_ac_results li {
136
+ padding: 2px 5px;
137
+ white-space: nowrap;
138
+ color: #101010;
139
+ text-align: left;
140
+ }
141
+
142
+ .mla_ac_over {
143
+ background-color: #f0f0b8;
144
+ cursor: pointer;
145
  }
146
+
147
+ .mla_ac_match {
148
+ text-decoration: underline;
149
+ }
150
+
151
+ /** === INCLUDED BY ANTONIO === */
152
+
153
+ /** For responsive control, use the following media queries */
154
+
155
+ /* @media only screen and (max-width: 960px) {} */
156
+
157
+ /*@media only screen and (max-width: 900px) {}*/
158
+
159
+ /* Responsive on portrait and landscape */
160
+ /*@media only screen and (max-width: 640px), screen and (max-height: 400px) {}*/
161
+
162
+ /* Landscape specific header override */
163
+ /*@media screen and (max-height: 400px) {}*/
164
+
165
+ /*@media only screen and (max-width: 680px) {}*/
166
+
167
+ /** === END INCLUDED BY ANTONIO === */
css/mla-style.css CHANGED
@@ -105,19 +105,28 @@ textarea[readonly] {
105
  margin-bottom: 10px
106
  }
107
 
108
- #wpbody-content .quick-edit-row-attachment .inline-edit-col-left,
109
- #wpbody-content .bulk-edit-row-attachment .inline-edit-col-left {
110
  width: 40%
111
  }
112
 
113
- #wpbody-content .quick-edit-row-attachment .inline-edit-col-center,
 
 
 
 
 
 
 
 
 
 
 
114
  #wpbody-content .bulk-edit-row-attachment .inline-edit-col-center {
115
  width: 20%
116
  }
117
 
118
- #wpbody-content .quick-edit-row-attachment .inline-edit-col-right,
119
  #wpbody-content .bulk-edit-row-attachment .inline-edit-col-right {
120
- width: 39%
121
  }
122
 
123
  .quick-edit-row-attachment fieldset.inline-edit-col-left label span.title,
105
  margin-bottom: 10px
106
  }
107
 
108
+ #wpbody-content .quick-edit-row-attachment .inline-edit-col-left {
 
109
  width: 40%
110
  }
111
 
112
+ #wpbody-content .quick-edit-row-attachment .inline-edit-col-center {
113
+ width: 20%
114
+ }
115
+
116
+ #wpbody-content .quick-edit-row-attachment .inline-edit-col-right {
117
+ width: 39%
118
+ }
119
+
120
+ #wpbody-content .bulk-edit-row-attachment .inline-edit-col-left {
121
+ width: 30%
122
+ }
123
+
124
  #wpbody-content .bulk-edit-row-attachment .inline-edit-col-center {
125
  width: 20%
126
  }
127
 
 
128
  #wpbody-content .bulk-edit-row-attachment .inline-edit-col-right {
129
+ width: 49%
130
  }
131
 
132
  .quick-edit-row-attachment fieldset.inline-edit-col-left label span.title,
examples/mla-hooks-example.php.txt CHANGED
@@ -8,7 +8,7 @@
8
  * you can use to customize the gallery display.
9
  *
10
  * @package MLA Gallery Hooks Example
11
- * @version 1.02
12
  */
13
 
14
  /*
@@ -19,7 +19,7 @@ Author: David Lingren
19
  Version: 1.02
20
  Author URI: http://fairtradejudaica.org/our-story/staff/
21
 
22
- Copyright 2013 David Lingren
23
 
24
  This program is free software; you can redistribute it and/or modify
25
  it under the terms of the GNU General Public License as published by
@@ -68,6 +68,7 @@ class MLAGalleryHooksExample {
68
  *
69
  * Comment out the filters you don't need; save them for future use
70
  */
 
71
  add_filter( 'mla_gallery_attributes', 'MLAGalleryHooksExample::mla_gallery_attributes_filter', 10, 1 );
72
  add_filter( 'mla_gallery_initial_content', 'MLAGalleryHooksExample::mla_gallery_initial_content_filter', 10, 2 );
73
  add_filter( 'mla_gallery_arguments', 'MLAGalleryHooksExample::mla_gallery_arguments_filter', 10, 1 );
@@ -114,6 +115,39 @@ class MLAGalleryHooksExample {
114
  */
115
  private static $shortcode_attributes = array();
116
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
  /**
118
  * MLA Gallery (Display) Attributes
119
  *
@@ -588,6 +622,13 @@ class MLAGalleryHooksExample {
588
  */
589
  $item_values['date'] = date( 'd/m/Y', $timestamp );
590
  $item_values['caption'] = $item_values['description'] . $item_values['date'];
 
 
 
 
 
 
 
591
  return $item_values;
592
  }
593
 
8
  * you can use to customize the gallery display.
9
  *
10
  * @package MLA Gallery Hooks Example
11
+ * @version 1.03
12
  */
13
 
14
  /*
19
  Version: 1.02
20
  Author URI: http://fairtradejudaica.org/our-story/staff/
21
 
22
+ Copyright 2013, 2014 David Lingren
23
 
24
  This program is free software; you can redistribute it and/or modify
25
  it under the terms of the GNU General Public License as published by
68
  *
69
  * Comment out the filters you don't need; save them for future use
70
  */
71
+ add_filter( 'mla_gallery_raw_attributes', 'MLAGalleryHooksExample::mla_gallery_raw_attributes_filter', 10, 1 );
72
  add_filter( 'mla_gallery_attributes', 'MLAGalleryHooksExample::mla_gallery_attributes_filter', 10, 1 );
73
  add_filter( 'mla_gallery_initial_content', 'MLAGalleryHooksExample::mla_gallery_initial_content_filter', 10, 2 );
74
  add_filter( 'mla_gallery_arguments', 'MLAGalleryHooksExample::mla_gallery_arguments_filter', 10, 1 );
115
  */
116
  private static $shortcode_attributes = array();
117
 
118
+ /**
119
+ * MLA Gallery Raw (Display) Attributes
120
+ *
121
+ * This filter gives you an opportunity to record or modify the arguments passed in to the shortcode
122
+ * before they pass through the logic to handle the 'mla_page_parameter' and "request:" prefix processing.
123
+ *
124
+ * The $shortcode_attributes array is where you will find any of your own parameters that are coded in the
125
+ * shortcode, e.g., [mla_gallery my_parameter="my value"].
126
+ *
127
+ * @since 1.03
128
+ *
129
+ * @param array the raw shortcode parameters passed in to the shortcode
130
+ *
131
+ * @return array updated shortcode attributes
132
+ */
133
+ public static function mla_gallery_raw_attributes_filter( $shortcode_attributes ) {
134
+ /*
135
+ * Uncomment the error_log statements in any of the filters to see what's passed in
136
+ */
137
+ error_log( 'MLAGalleryHooksExample::mla_gallery_raw_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
138
+
139
+ /*
140
+ * Note that the global $post; object is available here and in all later filters.
141
+ * It contains the post/page on which the [mla_gallery] appears.
142
+ * Some [mla_gallery] invocations are not associated with a post/page; these will
143
+ * have a substitute $post pbject with $post->ID == 0.
144
+ */
145
+ global $post;
146
+ error_log( 'MLAGalleryHooksExample::mla_gallery_raw_attributes_filter $post->ID = ' . var_export( $post->ID, true ), 0 );
147
+
148
+ return $shortcode_attributes;
149
+ } // mla_gallery_raw_attributes_filter
150
+
151
  /**
152
  * MLA Gallery (Display) Attributes
153
  *
622
  */
623
  $item_values['date'] = date( 'd/m/Y', $timestamp );
624
  $item_values['caption'] = $item_values['description'] . $item_values['date'];
625
+
626
+ /*
627
+ * This alternative generates a "clickable" caption value
628
+ * linked directly to the item's attached file.
629
+ */
630
+ //$item_values['caption'] = sprintf( '<a href="%1$s">%2$s<br>%3$s</a>', $item_values['file_url'], $item_values['title'], $item_values['date'] );
631
+
632
  return $item_values;
633
  }
634
 
examples/mla-mapping-hooks-example.php.txt CHANGED
@@ -306,7 +306,7 @@ class MLAMappingHooksExample {
306
  * 'name' => custom field name
307
  * 'data_source' => 'none', 'meta', 'template' or data source name
308
  * 'keep_existing' => boolean; true to preserve existing content
309
- * 'format' => 'native', 'commas'
310
  * 'mla_column' => boolean; not used
311
  * 'quick_edit' => boolean; not used
312
  * 'bulk_edit' => boolean; not used
306
  * 'name' => custom field name
307
  * 'data_source' => 'none', 'meta', 'template' or data source name
308
  * 'keep_existing' => boolean; true to preserve existing content
309
+ * 'format' => 'native', 'commas', 'raw'
310
  * 'mla_column' => boolean; not used
311
  * 'quick_edit' => boolean; not used
312
  * 'bulk_edit' => boolean; not used
examples/mla-media-tagger-example.php.txt ADDED
@@ -0,0 +1,285 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Shows how to use a Custom Field mapping filter to accomplish item-specific database updates.
4
+ *
5
+ * In this example, media items and term taxonomy information is extracted from a custom database table
6
+ * created by "WP MediaTagger" (http://wordpress.org/plugins/wp-mediatagger/) and converted to term
7
+ * assignments in the WordPress taxonomy of your choice.
8
+ *
9
+ * This example was developed to answer a support topic, "Transferring tagged images from another plugin?"
10
+ * (http://wordpress.org/support/topic/transferring-tagged-images-from-another-plugin).
11
+ *
12
+ * The example is based on the "example plugin" that comes with MLA. Only those elements of the example plugin
13
+ * that are required for the current task have been retained in this plugin.
14
+ *
15
+ * @package MLA Media Tagger Example
16
+ * @version 1.00
17
+ */
18
+
19
+ /*
20
+ Plugin Name: MLA Media Tagger Example
21
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
22
+ Description: Shows how to use a Custom Field mapping filter to accomplish item-specific database updates.
23
+ Author: David Lingren
24
+ Version: 1.00
25
+ Author URI: http://fairtradejudaica.org/our-story/staff/
26
+
27
+ Copyright 2014 David Lingren
28
+
29
+ This program is free software; you can redistribute it and/or modify
30
+ it under the terms of the GNU General Public License as published by
31
+ the Free Software Foundation; either version 2 of the License, or
32
+ (at your option) any later version.
33
+
34
+ This program is distributed in the hope that it will be useful,
35
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
36
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37
+ GNU General Public License for more details.
38
+
39
+ You can get a copy of the GNU General Public License by writing to the
40
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
41
+ */
42
+
43
+ /**
44
+ * Class MLA Mapping Hooks Example hooks one of the filters provided by the IPTC/EXIF and Custom Field mapping features
45
+ *
46
+ * Call it anything you want, but give it an unlikely and hopefully unique name. Hiding enerything
47
+ * else inside a class means this is the only name you have to worry about.
48
+ *
49
+ * @package MLA Media Tagger Example
50
+ * @since 1.00
51
+ */
52
+ class MLAMediaTaggerExample {
53
+ /**
54
+ * Initialization function, similar to __construct()
55
+ *
56
+ * Installs a filter for the 'mla_mapping_rule' hook, just one of 25 filters
57
+ * supported by the MLA IPTC/EXIF and Custom Field Mapping functions.
58
+ *
59
+ * @since 1.00
60
+ *
61
+ * @return void
62
+ */
63
+ public static function initialize() {
64
+ /*
65
+ * The filters are only useful in the admin section; exit if in the "front-end" posts/pages.
66
+ */
67
+ if ( ! is_admin() )
68
+ return;
69
+
70
+ /*
71
+ * add_filter parameters:
72
+ * $tag - name of the hook you're filtering; defined by [mla_gallery]
73
+ * $function_to_add - function to be called when [mla_gallery] applies the filter
74
+ * $priority - default 10; lower runs earlier, higher runs later
75
+ * $accepted_args - number of arguments your function accepts
76
+ */
77
+ add_filter( 'mla_mapping_rule', 'MLAMediaTaggerExample::mla_mapping_rule_filter', 10, 4 );
78
+ //error_log( 'MLAMediaTaggerExample::initialize', 0 );
79
+ }
80
+
81
+ /**
82
+ * MLA Mapping Rule Filter
83
+ *
84
+ * This filter is called once for each mapping rule, before the rule
85
+ * is evaluated. You can change the rule parameters, or prevent rule
86
+ * evaluation by returning $setting_value['data_source'] = 'none';
87
+ *
88
+ * @since 1.00
89
+ *
90
+ * @param array custom_field_mapping rule
91
+ * @param integer post ID to be evaluated
92
+ * @param string category/scope to evaluate against: custom_field_mapping or single_attachment_mapping
93
+ * @param array attachment_metadata, default NULL
94
+ *
95
+ * @return array updated custom_field_mapping rule
96
+ */
97
+ public static function mla_mapping_rule_filter( $setting_value, $post_ID, $category, $attachment_metadata ) {
98
+ /*
99
+ * Uncomment the error_log statements in any of the filters to see what's passed in
100
+ */
101
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
102
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter $post_ID = ' . var_export( $post_ID, true ), 0 );
103
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter $category = ' . var_export( $category, true ), 0 );
104
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
105
+
106
+ /*
107
+ * Debugging information is collected in an array. You can store the array in the "Media Tagger" custom field
108
+ * by uncommenting the "//update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );"
109
+ * statements at various points in the code. You must also uncomment the $debug_data[] assignments for the
110
+ * data you want to capture.
111
+ */
112
+ $debug_data = array();
113
+ $debug_data['post_ID'] = var_export( $post_ID, true );
114
+ $debug_data['setting_value'] = var_export( $setting_value, true );
115
+ $debug_data['category'] = var_export( $category, true );
116
+
117
+ /*
118
+ * Look for the rule we're handling and just return any other rules.
119
+ *
120
+ * NOTE: For this code to work you must define a Custom field mapping rule
121
+ * with the Field Title 'Media Tagger' and a Data Source of "None".
122
+ */
123
+ if ( 'Media Tagger' !== $setting_value['name'] ) {
124
+ //update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
125
+ return $setting_value;
126
+ }
127
+
128
+ global $wpdb; // The WordPress class of functions for all database manipulations.
129
+ static $all_term_slugs = NULL;
130
+
131
+ /*
132
+ * Build $all_term_slugs once per page load for "Map all attachments" efficiency
133
+ */
134
+ if ( ( 'custom_field_mapping' == $category ) && ( NULL == $all_term_slugs ) ) {
135
+ $term_values = $wpdb->get_results(
136
+ "SELECT term_taxonomy_id, taxonomy, slug FROM " . $wpdb->term_taxonomy . " as tt INNER JOIN " . $wpdb->terms . " as t ON tt.term_id = t.term_id"
137
+ );
138
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter custom_field_mapping $term_values = ' . var_export( $term_values, true ), 0 );
139
+ //$debug_data['term_values'] = var_export( $term_values, true );
140
+
141
+ $all_term_slugs = array();
142
+ foreach ( $term_values as $value ) {
143
+ $all_term_slugs[ $value->term_taxonomy_id ]['taxonomy'] = $value->taxonomy;
144
+ $all_term_slugs[ $value->term_taxonomy_id ]['slug'] = $value->slug;
145
+ }
146
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter custom_field_mapping $all_term_slugs = ' . var_export( $all_term_slugs, true ), 0 );
147
+ //$debug_data['all_term_slugs'] = var_export( $all_term_slugs, true );
148
+ }
149
+
150
+ /*
151
+ * 1. Select the term_taxonomy_id(s) from the mediatagger table
152
+ * for the post_ID (passed to the MLA filter).
153
+ */
154
+ $term_taxonomy_ids = $wpdb->get_col( $wpdb->prepare(
155
+ "SELECT m.term_taxonomy_id FROM " . $wpdb->prefix . "mediatagger as m WHERE m.object_id = '%d'",
156
+ $post_ID
157
+ ) );
158
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter get_col $term_taxonomy_ids = ' . var_export( $term_taxonomy_ids, true ), 0 );
159
+ $debug_data['term_taxonomy_ids'] = var_export( $term_taxonomy_ids, true );
160
+
161
+ if ( empty( $term_taxonomy_ids ) ) {
162
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter empty $term_taxonomy_ids', 0 );
163
+ //update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
164
+ return $setting_value;
165
+ }
166
+
167
+ /*
168
+ * 2. Select the term_id and taxonomy from the term_taxonomy table
169
+ * for the term_taxonomy_id. Then, get the "slug" for each term because
170
+ * the integer term_id won't insert a new term in the destination taxonomy.
171
+ *
172
+ * For the "Map all attachments" case, the values are found in the $all_term_slugs array.
173
+ */
174
+ $new_terms = array();
175
+ if ( ( NULL == $all_term_slugs ) ) {
176
+ $term_taxonomy_values = $wpdb->get_results( sprintf(
177
+ "SELECT tt.term_id, tt.taxonomy FROM " . $wpdb->term_taxonomy . " as tt WHERE tt.term_taxonomy_id IN ( %s )",
178
+ implode( ',', $term_taxonomy_ids )
179
+ ) );
180
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter get_results $term_taxonomy_values = ' . var_export( $term_taxonomy_values, true ), 0 );
181
+ $debug_data['term_taxonomy_values'] = var_export( $term_taxonomy_values, true );
182
+
183
+ /*
184
+ * If the MediaTagger values don't match current WordPress values, just give up.
185
+ */
186
+ if ( empty( $term_taxonomy_values ) ) {
187
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter empty $term_taxonomy_values', 0 );
188
+ //update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
189
+ return $setting_value;
190
+ }
191
+
192
+ $term_ids = array();
193
+ foreach ( $term_taxonomy_values as $value ) {
194
+ $term_ids[ $value->term_id ] = $value->term_id;
195
+ }
196
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter $term_ids = ' . var_export( $term_ids, true ), 0 );
197
+ $debug_data['term_ids'] = var_export( $term_ids, true );
198
+
199
+ $term_values = $wpdb->get_results( sprintf(
200
+ "SELECT t.term_id, t.slug FROM " . $wpdb->terms . " as t WHERE t.term_id IN ( %s )",
201
+ implode( ',', $term_ids )
202
+ ) );
203
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter get_results $term_values = ' . var_export( $term_values, true ), 0 );
204
+ $debug_data['term_values'] = var_export( $term_values, true );
205
+
206
+ $term_slugs = array();
207
+ foreach ( $term_values as $value ) {
208
+ $term_slugs[ $value->term_id ] = $value->slug;
209
+ }
210
+
211
+ foreach ( $term_taxonomy_values as $value ) {
212
+ if ( isset( $term_slugs[ $value->term_id ] ) ) {
213
+ $new_terms[ $value->taxonomy ][] = $term_slugs[ $value->term_id ];
214
+ }
215
+ }
216
+ } else {
217
+ foreach ( $term_taxonomy_ids as $value ) {
218
+ if ( isset( $all_term_slugs[ $value ]['slug'] ) ) {
219
+ $new_terms[ $all_term_slugs[ $value ]['taxonomy'] ][] = $all_term_slugs[ $value ]['slug'];
220
+ }
221
+ }
222
+ }
223
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter $new_terms = ' . var_export( $new_terms, true ), 0 );
224
+ $debug_data['new_terms'] = var_export( $new_terms, true );
225
+
226
+ /*
227
+ * 3. Use wp_set_object_terms() to assign the taxonomy and term_id value(s)
228
+ * to the post_ID. You can either replace any existing terms or append the new terms.
229
+ *
230
+ * This code handles the case where MediaTagger assignments come from multiple taxonomies,
231
+ * i.e., "Tags and Categories". It also lets you change the destination taxonomy for each source.
232
+ * Uncomment the line(s) in $taxonomy_change and enter the destination taxonomy to re-assign
233
+ * the destination taxonomy.
234
+ */
235
+ $taxonomy_change = array (
236
+ // 'post_tag' => 'attachment_tag',
237
+ // 'category' => 'attachment_category'
238
+ );
239
+
240
+ $term_arrays = array ();
241
+ foreach ( $new_terms as $key => $value ) {
242
+ if ( isset( $taxonomy_change[ $key ] ) ) {
243
+ $key = $taxonomy_change[ $key ];
244
+ }
245
+
246
+ $term_arrays[ $key ] = $value;
247
+ }
248
+ //error_log( "MLAMediaTaggerExample::mla_mapping_rule_filter {$post_ID} term_arrays = " . var_export( $term_arrays, true ), 0 );
249
+ $debug_data['term_arrays'] = var_export( $term_arrays, true );
250
+
251
+ foreach( $term_arrays as $key => $value ) {
252
+ /*
253
+ * Set the last argument to true to append, not replace, existing terms
254
+ */
255
+ wp_set_object_terms( $post_ID, $value, $key, false );
256
+ }
257
+
258
+ /*
259
+ * 4. Optionally, remove the object_id and term assignments from the
260
+ * MediaTagger table. Set the if test to true to include this step.
261
+ */
262
+ if ( false ) {
263
+ $delete_result = $wpdb->delete( $wpdb->prefix . 'mediatagger', array( 'object_id' => $post_ID ), array( '%d' ) );
264
+ //error_log( 'MLAMediaTaggerExample::mla_mapping_rule_filter $delete_result = ' . var_export( $delete_result, true ), 0 );
265
+ $debug_data['delete_result'] = var_export( $delete_result, true );
266
+ }
267
+
268
+ /*
269
+ * Uncomment this line to write debugging information into the 'Media Tagger' custom field
270
+ */
271
+ //update_post_meta( $post_ID, 'Media Tagger', var_export( $debug_data, true ) );
272
+
273
+ /*
274
+ * $setting_value is an array containing a mapping rule; see above
275
+ * To stop this rule's evaluation and mapping, return NULL
276
+ */
277
+ return $setting_value;
278
+ } // mla_mapping_rule_filter
279
+ } //MLAMediaTaggerExample
280
+
281
+ /*
282
+ * Install the filter at an early opportunity
283
+ */
284
+ add_action('init', 'MLAMediaTaggerExample::initialize');
285
+ ?>
examples/twentytwelve-mla/content-category-listing.php ADDED
@@ -0,0 +1,47 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The template used for displaying "Category Listing" content in page-category-listing.php
4
+ *
5
+ * The default taxonomy slug is “attachment_tag”. You can select the taxonomy you want by adding
6
+ * a query parameter to the URL, e.g., "?taxonomy=attachment_category".
7
+ *
8
+ * For this page to work well, you should install and activate the Collapse-O-Matic plugin.
9
+ *
10
+ * @package Media Library Assistant
11
+ * @subpackage MLA_Child_Theme
12
+ * @version 1.00
13
+ * @since MLA 1.80
14
+ */
15
+
16
+ /**
17
+ * Harmless declaration to suppress phpDocumentor "No page-level DocBlock" error
18
+ *
19
+ * @global $post
20
+ */
21
+ global $post;
22
+ ?>
23
+ <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
24
+ <header class="entry-header">
25
+ <?php if ( ! is_page_template( 'page-templates/front-page.php' ) ) : ?>
26
+ <?php the_post_thumbnail(); ?>
27
+ <?php endif; ?>
28
+ <h1 class="entry-title"><?php the_title(); ?></h1>
29
+ </header>
30
+
31
+ <div class="entry-content">
32
+ <?php the_content(); ?>
33
+ <?php
34
+ if ( ! empty( $_REQUEST['taxonomy'] ) ) {
35
+ $attr = array( 'taxonomy' => $_REQUEST['taxonomy'] );
36
+ } else {
37
+ $attr = array( 'taxonomy' => 'attachment_tag' );
38
+ }
39
+
40
+ echo mla_taxonomy_terms_list( $attr );
41
+ ?>
42
+ <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
43
+ </div><!-- .entry-content -->
44
+ <footer class="entry-meta">
45
+ <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
46
+ </footer><!-- .entry-meta -->
47
+ </article><!-- #post -->
examples/twentytwelve-mla/content-media.php ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The template for displaying posts in the Image post format,
4
+ * called from the taxonomy.php template.
5
+ *
6
+ * @package Media Library Assistant
7
+ * @subpackage MLA_Child_Theme
8
+ * @version 1.00
9
+ * @since MLA 1.80
10
+ */
11
+
12
+ /**
13
+ * Harmless declaration to suppress phpDocumentor "No page-level DocBlock" error
14
+ *
15
+ * @global $post
16
+ */
17
+ global $post;
18
+ ?>
19
+
20
+ <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
21
+ <div class="entry-content">
22
+
23
+ <?php the_content( __( 'Continue reading <span class="meta-nav">&rarr;</span>', 'twentytwelve' ) ); ?>
24
+ </div><!-- .entry-content -->
25
+
26
+ <footer class="entry-meta">
27
+ <a href="<?php the_permalink(); ?>" rel="bookmark">
28
+ <h1><?php the_title(); ?></h1>
29
+ <h2><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo get_the_date(); ?></time></h2>
30
+ </a>
31
+ <?php if ( comments_open() ) : ?>
32
+ <div class="comments-link">
33
+ <?php comments_popup_link( '<span class="leave-reply">' . __( 'Leave a reply', 'twentytwelve' ) . '</span>', __( '1 Reply', 'twentytwelve' ), __( '% Replies', 'twentytwelve' ) ); ?>
34
+ </div><!-- .comments-link -->
35
+ <?php endif; // comments_open() ?>
36
+ <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
37
+ </footer><!-- .entry-meta -->
38
+ </article><!-- #post -->
examples/twentytwelve-mla/content-tag-gallery.php ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The template used for displaying "Tag Gallery" content in page-tag-gallery.php
4
+ *
5
+ * The default taxonomy slug is "attachment_tag". You can select the taxonomy you want by adding
6
+ * a query parameter to the URL, e.g., "?my_taxonomy=attachment_category".
7
+ *
8
+ * The default taxonomy term is empty. You must select the term you want by adding
9
+ * a query parameter to the URL, e.g., "?my_term=yellow".
10
+ *
11
+ * @package Media Library Assistant
12
+ * @subpackage MLA_Child_Theme
13
+ * @version 1.00
14
+ * @since MLA 1.80
15
+ */
16
+
17
+ /**
18
+ * Harmless declaration to suppress phpDocumentor "No page-level DocBlock" error
19
+ *
20
+ * @global $post
21
+ */
22
+ global $post;
23
+ ?>
24
+ <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
25
+ <header class="entry-header">
26
+ <?php if ( ! is_page_template( 'page-templates/front-page.php' ) ) : ?>
27
+ <?php the_post_thumbnail(); ?>
28
+ <?php endif; ?>
29
+ <h1 class="entry-title"><?php the_title(); ?></h1>
30
+ </header>
31
+
32
+ <div class="entry-content">
33
+ <?php the_content(); ?>
34
+ <?php
35
+ $attr = array(
36
+ 'taxonomy' => 'attachment_tag',
37
+ 'term' => '',
38
+ 'post_mime_type' => 'image',
39
+ 'posts_per_page' =>1,
40
+ 'current_page' => 1
41
+ );
42
+
43
+ /*
44
+ * You can change the defaults by adding query variables, e.g.,
45
+ * "?my_taxonomy=attachment_category"
46
+ * "?my_term=term-slug"
47
+ */
48
+ if ( ! empty( $_REQUEST['my_taxonomy'] ) ) {
49
+ $attr['taxonomy'] = $_REQUEST['my_taxonomy'];
50
+ }
51
+
52
+ if ( ! empty( $_REQUEST['my_term'] ) ) {
53
+ $attr['term'] = $_REQUEST['my_term'];
54
+ }
55
+
56
+ if ( ! empty( $_REQUEST['post_mime_type'] ) ) {
57
+ $attr['post_mime_type'] = $_REQUEST['post_mime_type'];
58
+ }
59
+
60
+ if ( ! empty( $_REQUEST['posts_per_page'] ) ) {
61
+ $attr['posts_per_page'] = $_REQUEST['posts_per_page'];
62
+ }
63
+
64
+ if ( ! empty( $_REQUEST['mla_paginate_current'] ) ) {
65
+ $attr['current_page'] = $_REQUEST['mla_paginate_current'];
66
+ }
67
+
68
+ $count = mla_paginated_term_gallery( $attr ); // Child theme function
69
+ ?>
70
+ <div class="pagination loop-pagination">
71
+ <?php echo do_shortcode( sprintf( '[mla_gallery mla_paginate_rows="%1$s" mla_output="previous_page" numberposts="%2$s" mla_link_class="prev page-numbers" mla_link_text="<span class=\'meta-nav\'>&#9668;</span> Previous"]', $count, $attr['posts_per_page'] ) ); ?>
72
+ <?php echo do_shortcode( sprintf( '[mla_gallery mla_paginate_rows="%1$s" mla_output="next_page" numberposts="%2$s" mla_link_class="next page-numbers" mla_link_text="Next <span class=\'meta-nav\'>&#9658;</span>"]', $count, $attr['posts_per_page'] ) ); ?>
73
+ </div>
74
+ <?php //wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
75
+ </div><!-- .entry-content -->
76
+ <footer class="entry-meta">
77
+ <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
78
+ </footer><!-- .entry-meta -->
79
+ </article><!-- #post -->
examples/twentytwelve-mla/functions.php ADDED
@@ -0,0 +1,280 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * MLA Child for Twenty Twelve functions and definitions
4
+ *
5
+ * Sets up the theme and provides some helper functions, which are used
6
+ * in the theme as custom template tags. Others are attached to action and
7
+ * filter hooks in WordPress to change core functionality.
8
+ *
9
+ * @package Media Library Assistant
10
+ * @subpackage MLA_Child_Theme
11
+ * @version 1.00
12
+ * @since MLA 1.80
13
+ */
14
+
15
+ /*
16
+ * Remove the link rel='prev' and link rel='next' tags in the wp_head();
17
+ * this prevents a couple of "query_posts" calls.
18
+ * The other remove_action statements have been suggested in various support topics.
19
+ */
20
+ if ( ! is_admin() ) {
21
+ //remove_action( 'wp_head', 'feed_links', 2 ); // Display the links to the general feeds: Post and Comment Feed
22
+ //remove_action( 'wp_head', 'feed_links_extra', 3 ); // Display the links to the extra feeds such as category feeds
23
+ //remove_action( 'wp_head', 'rsd_link' ); // Display the link to the Really Simple Discovery service endpoint, EditURI link
24
+ //remove_action( 'wp_head', 'wlwmanifest_link' ); // Display the link to the Windows Live Writer manifest file.
25
+ remove_action( 'wp_head', 'adjacent_posts_rel_link', 10, 0 ); // Display relational links for the posts adjacent to the current post.
26
+ //remove_action( 'wp_head', 'wp_generator' ); // Display the XHTML generator that is generated on the wp_head hook, WP version
27
+ //remove_action( 'wp_head', 'rel_canonical' ); // Display the canonical link fo a singular page
28
+ }
29
+
30
+ /**
31
+ * Generate a taxonomy- and term-specific [mla_gallery]
32
+ *
33
+ * @param array Attributes of the function: taxonomy, term
34
+ *
35
+ * @return void echoes HTML <h3>, <p> and <a> tags
36
+ */
37
+ function mla_tag_gallery( $attr = NULL ) {
38
+ /*
39
+ * Make sure $attr is an array, even if it's empty
40
+ */
41
+ if ( empty( $attr ) ) {
42
+ $attr = array();
43
+ } elseif ( is_string( $attr ) ) {
44
+ $attr = shortcode_parse_atts( $attr );
45
+ }
46
+
47
+ /*
48
+ * Create the PHP variables we need
49
+ */
50
+ extract( shortcode_atts( array(
51
+ 'taxonomy' => 'attachment_tag',
52
+ 'term' => ''
53
+ ), $attr ) );
54
+
55
+ /*
56
+ * Convert to objects for validation and labels
57
+ */
58
+ $taxonomy = get_taxonomy( $taxonomy );
59
+ $term = get_term_by( 'slug', $term, $taxonomy->name );
60
+
61
+ if ( empty( $taxonomy ) ) {
62
+ $output = __( 'Taxonomy does not exist.', 'mla-child-theme' );
63
+ }
64
+ elseif ( empty( $term ) ) {
65
+ $output = __( 'Term does not exist.', 'mla-child-theme' );
66
+ }
67
+ else {
68
+ /* translators: 1: term name, 2: taxonomy label */
69
+ $output = '<h3>' . sprintf( __( 'Gallery for term "%1$s" in taxonomy "%2$s"', 'mla-child-theme' ), $term->name, $taxonomy->labels->name ) . '</h3>';
70
+ $output .= '<p>' . do_shortcode( sprintf( '[mla_gallery %1$s="%2$s" post_mime_type=all mla_nolink_text="No items found" ]', $taxonomy->name, $term->slug ) . "</p>\r\n" );
71
+ } // ! empty
72
+
73
+ echo $output;
74
+ }
75
+
76
+ /**
77
+ * Generate a taxonomy- and term-specific [mla_gallery], limited by current_page and posts_per_page
78
+ *
79
+ * This function uses $wpdb functions for efficiency.
80
+ *
81
+ * @param array Attributes of the function: taxonomy, term, post_mime_type, posts_per_page, current_page
82
+ *
83
+ * @return integer number of posts matching taxonomy & term, before LIMIT. echoes HTML <h3>, <p> and <a> tags
84
+ */
85
+ function mla_paginated_term_gallery( $attr = NULL ) {
86
+ global $wpdb;
87
+
88
+ /*
89
+ * Make sure $attr is an array, even if it's empty
90
+ */
91
+ if ( empty( $attr ) ) {
92
+ $attr = array();
93
+ } elseif ( is_string( $attr ) ) {
94
+ $attr = shortcode_parse_atts( $attr );
95
+ }
96
+
97
+ /*
98
+ * Create the PHP variables we need
99
+ */
100
+ extract( shortcode_atts( array(
101
+ 'taxonomy' => 'attachment_tag',
102
+ 'term' => '',
103
+ 'post_mime_type' => 'all',
104
+ 'posts_per_page' =>10,
105
+ 'current_page' => 1
106
+ ), $attr ) );
107
+
108
+ /*
109
+ * Convert to objects for validation and labels
110
+ */
111
+ $taxonomy = get_taxonomy( $taxonomy );
112
+ $term = get_term_by( 'slug', $term, $taxonomy->name );
113
+
114
+ if ( empty( $taxonomy ) ) {
115
+ echo __( 'Taxonomy does not exist.', 'mla-child-theme' );
116
+ return;
117
+ }
118
+ elseif ( empty( $term ) ) {
119
+ echo __( 'Term does not exist.', 'mla-child-theme' );
120
+ return;
121
+ }
122
+
123
+ $offset = absint( $current_page - 1 ) * $posts_per_page;
124
+
125
+ if ( 'all' == strtolower( $post_mime_type ) ) {
126
+ $count = $wpdb->get_var( 'SELECT COUNT(*) FROM ' . $wpdb->term_relationships . ' WHERE ( term_taxonomy_id = ' . $term->term_taxonomy_id . ' )' );
127
+ $posts = implode( ',', $wpdb->get_col( 'SELECT object_id FROM ' . $wpdb->term_relationships . ' WHERE ( term_taxonomy_id = ' . $term->term_taxonomy_id . ' ) LIMIT ' . $offset . ', ' . $posts_per_page ) );
128
+ } else {
129
+ /*
130
+ * $posts contains all post types, so we further limit the results to select attachments of the
131
+ * desired MIME type, then apply the limit criteria.
132
+ */
133
+ $mime_where = wp_post_mime_type_where( $post_mime_type, 'p' );
134
+
135
+ $posts = implode( ',', $wpdb->get_col( 'SELECT object_id FROM ' . $wpdb->term_relationships . ' WHERE ( term_taxonomy_id = ' . $term->term_taxonomy_id . ' )' ) );
136
+ $count = $wpdb->get_var( 'SELECT COUNT(*) FROM ' . $wpdb->posts . ' AS p WHERE ( p.ID IN ( ' . $posts . ' )' . $mime_where . ')' );
137
+ $posts = implode( ',', $wpdb->get_col( 'SELECT p.ID FROM ' . $wpdb->posts . ' as p WHERE ( p.ID IN ( ' . $posts . ' )' . $mime_where . ') LIMIT ' . $offset . ', ' . $posts_per_page ) );
138
+ }
139
+
140
+ /* translators: 1: term name, 2: taxonomy label */
141
+ $output = '<h3>' . sprintf( __( 'Gallery for term "%1$s" in taxonomy "%2$s"', 'mla-child-theme' ), $term->name, $taxonomy->labels->name ) . '</h3>';
142
+ $output .= '<p>' . do_shortcode( sprintf( '[mla_gallery ids="%1$s" post_mime_type="%2$s" mla_paginate_current=1 mla_nolink_text="No items found" update_post_term_cache="false"]', $posts, $post_mime_type ) . "</p>\r\n" );
143
+
144
+ echo $output;
145
+ return $count;
146
+ }
147
+
148
+ /**
149
+ * Generate a list of taxonomy- and term-specific links to the page of your choice,
150
+ * listing the terms assigned to a specific post or Media Library item.
151
+ *
152
+ * @param integer ID of the post/page to generate terms for
153
+ * @param array Attributes of the function: site_url, page_url, taxonomy
154
+ *
155
+ * @return void echoes HTML <h3>, <p> and <a> tags
156
+ */
157
+ function mla_custom_terms_list( $ID, $attr = NULL ) {
158
+ /*
159
+ * Make sure $attr is an array, even if it's empty
160
+ */
161
+ if ( empty( $attr ) ) {
162
+ $attr = array();
163
+ } elseif ( is_string( $attr ) ) {
164
+ $attr = shortcode_parse_atts( $attr );
165
+ }
166
+
167
+ /*
168
+ * Create the three PHP variables we need
169
+ */
170
+ extract( shortcode_atts( array(
171
+ 'site_url' => site_url(),
172
+ 'page_path' => '/tag-gallery/',
173
+ 'taxonomy' => 'attachment_tag',
174
+ ), $attr ) );
175
+
176
+ /*
177
+ * Get the terms associated with the current attachment.
178
+ * Return nothing if there are no terms associated with the attachment.
179
+ */
180
+ $terms = get_the_terms( $ID, $taxonomy );
181
+ if ( empty( $terms ) ) {
182
+ return '';
183
+ }
184
+
185
+ /* translators: 1: taxonomy slug */
186
+ $output = '<h3>' . sprintf( __( 'Terms list for taxonomy: %1$s', 'mla-child-theme' ), $taxonomy ) . '</h3>';
187
+ /* translators: 1: term name */
188
+ $title = sprintf( __( 'Gallery for %1$s', 'mla-child-theme' ), $term->name );
189
+ foreach ( $terms as $term ) {
190
+ $output .= '<p>' . sprintf( '<a href=%1$s%2$s?my_taxonomy=%3$s&my_term=%4$s title="%5$s">%6$s</a>', $site_url, $page_path, $taxonomy, $term->slug, $title, $term->name ) . "</p>\n";
191
+ }// foreach term
192
+
193
+ echo $output;
194
+ }
195
+
196
+ /**
197
+ * Generate a list of taxonomy- and term-specific links to the page of your choice.
198
+ * Best used with the Collapse-O-Matic plugin, which uses the [expand] shortcode to
199
+ * display an "accordian-style" list.
200
+ *
201
+ * @param array Attributes of the function: taxonomy
202
+ *
203
+ * @return string HTML <h3>, <p> and <a> tags
204
+ */
205
+ function mla_taxonomy_terms_list( $attr = NULL ) {
206
+ /*
207
+ * Make sure $attr is an array, even if it's empty
208
+ */
209
+ if ( empty( $attr ) ) {
210
+ $attr = array();
211
+ } elseif ( is_string( $attr ) ) {
212
+ $attr = shortcode_parse_atts( $attr );
213
+ }
214
+
215
+ /*
216
+ * Create the PHP variables we need
217
+ */
218
+ extract( shortcode_atts( array(
219
+ 'taxonomy' => 'attachment_tag',
220
+ ), $attr ) );
221
+
222
+ $terms = get_terms( $taxonomy );
223
+ if ( empty( $terms ) ) {
224
+ return __( 'There are no non-empty taxonomy values', 'mla-child-theme' );
225
+ }
226
+
227
+ /* translators: 1: taxonomy slug */
228
+ $output = '<h3>' . sprintf( __( 'Terms list for taxonomy: %1$s', 'mla-child-theme' ), $taxonomy ) . '</h3>';
229
+ foreach ( $terms as $term ) {
230
+ $output .= '<p>' . do_shortcode( sprintf( '[expand title="%1$s" tag="div" trigclass="level-2 third" targclass="level-2-targ"][mla_gallery %2$s="%3$s" post_mime_type=all mla_nolink_text="%4$s" size=icon mla_style=table mla_markup=table columns=1][/expand]', $term->name, $taxonomy, $term->slug, __( 'No items found', 'mla-child-theme' ) ) . "</p>\r\n" );
231
+ }// foreach term
232
+
233
+ return $output;
234
+ }
235
+
236
+ /**
237
+ * Insert thumbnail image tags for Facebook, Twitter, etc.
238
+ *
239
+ * @return void echoes HTML <meta> tags
240
+ */
241
+ function mla_insert_social_tags() {
242
+ if ( is_page() ) {
243
+ global $post;
244
+ if ( empty( $post->post_content ) ) {
245
+ return;
246
+ }
247
+
248
+ $count = preg_match( '/\[mla_gallery.*attachment_category="([^\"]*)\"/', $post->post_content, $mla_matches );
249
+ if ( $count ) {
250
+ $matched_category = $mla_matches[1]; // for preg_match
251
+ $gallery = do_shortcode( sprintf( '[mla_gallery %1$s="%2$s" size=full link=none mla_style=none posts_per_page=5]', 'attachment_category', $matched_category ) );
252
+ $count = preg_match_all( '/src=\"([^\"]*)\"/', $gallery, $mla_matches );
253
+ if ( $count ) {
254
+ foreach ( $mla_matches[1] as $match ) {
255
+ echo sprintf( '<meta property="og:image" content="%1$s" />', $match ) . "\n";
256
+ }
257
+
258
+ echo sprintf( '<meta name="twitter:image:src" content="%1$s" />', $mla_matches[1][0] ) . "\n";
259
+ }
260
+
261
+ return;
262
+ } // found mla_gallery
263
+
264
+ $count = preg_match( '/\[gallery.*ids="([^\"]*)\"/', $post->post_content, $mla_matches );
265
+ if ( $count ) {
266
+ $matched_posts = $mla_matches[1]; // for preg_match
267
+ $gallery = do_shortcode( sprintf( '[mla_gallery %1$s="%2$s" size=full link=none mla_style=none posts_per_page=5]', 'ids', $matched_posts ) );
268
+ $count = preg_match_all( '/src=\"([^\"]*)\"/', $gallery, $mla_matches );
269
+ if ( $count ) {
270
+ foreach ( $mla_matches[1] as $match ) {
271
+ echo sprintf( '<meta property="og:image" content="%1$s" />', $match ) . "\n";
272
+ }
273
+
274
+ echo sprintf( '<meta name="twitter:image:src" content="%1$s" />', $mla_matches[1][0] ) . "\n";
275
+ }
276
+
277
+ }
278
+ } // found gallery
279
+ }
280
+ ?>
examples/twentytwelve-mla/header.php ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The Header template for our theme
4
+ *
5
+ * Displays all of the <head> section and everything up till <div id="main">
6
+ * The mla-child version has code to insert thumbnail image tags for Facebook, Twitter, etc.
7
+ *
8
+ * @package Media Library Assistant
9
+ * @subpackage MLA_Child_Theme
10
+ * @version 1.00
11
+ * @since MLA 1.80
12
+ */
13
+
14
+ /**
15
+ * Harmless declaration to suppress phpDocumentor "No page-level DocBlock" error
16
+ *
17
+ * @global $post
18
+ */
19
+ global $post;
20
+ ?>
21
+ <!DOCTYPE html>
22
+ <!--[if IE 7]>
23
+ <html class="ie ie7" <?php language_attributes(); ?>>
24
+ <![endif]-->
25
+ <!--[if IE 8]>
26
+ <html class="ie ie8" <?php language_attributes(); ?>>
27
+ <![endif]-->
28
+ <!--[if !(IE 7) | !(IE 8) ]><!-->
29
+ <html <?php language_attributes(); ?>>
30
+ <!--<![endif]-->
31
+ <head>
32
+ <meta charset="<?php bloginfo( 'charset' ); ?>" />
33
+ <meta name="viewport" content="width=device-width" />
34
+ <title><?php wp_title( '|', true, 'right' ); ?></title>
35
+ <link rel="profile" href="http://gmpg.org/xfn/11" />
36
+ <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
37
+ <?php // Loads HTML5 JavaScript file to add support for HTML5 elements in older IE versions. ?>
38
+ <!--[if lt IE 9]>
39
+ <script src="<?php echo get_template_directory_uri(); ?>/js/html5.js" type="text/javascript"></script>
40
+ <![endif]-->
41
+ <?php
42
+ /*
43
+ * Code to insert thumbnail image tags for Facebook, Twitter, etc.
44
+ */
45
+ if ( function_exists( 'mla_insert_social_tags' ) ) {
46
+ mla_insert_social_tags();
47
+ }
48
+ ?>
49
+ <?php wp_head(); ?>
50
+ </head>
51
+
52
+ <body <?php body_class(); ?>>
53
+ <div id="page" class="hfeed site">
54
+ <header id="masthead" class="site-header" role="banner">
55
+ <hgroup>
56
+ <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" title="<?php echo esc_attr( get_bloginfo( 'name', 'display' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
57
+ <h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
58
+ </hgroup>
59
+
60
+ <nav id="site-navigation" class="main-navigation" role="navigation">
61
+ <h3 class="menu-toggle"><?php _e( 'Menu', 'twentytwelve' ); ?></h3>
62
+ <a class="assistive-text" href="#content" title="<?php esc_attr_e( 'Skip to content', 'twentytwelve' ); ?>"><?php _e( 'Skip to content', 'twentytwelve' ); ?></a>
63
+ <?php wp_nav_menu( array( 'theme_location' => 'primary', 'menu_class' => 'nav-menu' ) ); ?>
64
+ </nav><!-- #site-navigation -->
65
+
66
+ <?php if ( get_header_image() ) : ?>
67
+ <a href="<?php echo esc_url( home_url( '/' ) ); ?>"><img src="<?php header_image(); ?>" class="header-image" width="<?php echo get_custom_header()->width; ?>" height="<?php echo get_custom_header()->height; ?>" alt="" /></a>
68
+ <?php endif; ?>
69
+ </header><!-- #masthead -->
70
+
71
+ <div id="main" class="wrapper">
examples/twentytwelve-mla/image.php ADDED
@@ -0,0 +1,141 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The template for displaying "Attachment Posts" for $mimetype = "image",
4
+ * a more specific alternative to the generic "attachment.php" template.
5
+ *
6
+ * @link http://codex.wordpress.org/Template_Hierarchy
7
+ *
8
+ * @package Media Library Assistant
9
+ * @subpackage MLA_Child_Theme
10
+ * @version 1.00
11
+ * @since MLA 1.80
12
+ */
13
+
14
+ get_header(); ?>
15
+
16
+ <div id="primary" class="site-content">
17
+ <div id="content" role="main">
18
+
19
+ <?php while ( have_posts() ) : the_post(); ?>
20
+
21
+ <article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>>
22
+ <header class="entry-header">
23
+ <h1 class="entry-title"><?php the_title(); ?></h1>
24
+
25
+ <footer class="entry-meta">
26
+ <?php
27
+ $metadata = wp_get_attachment_metadata();
28
+ printf( __( '<span class="meta-prep meta-prep-entry-date">Published </span> <span class="entry-date"><time class="entry-date" datetime="%1$s">%2$s</time></span> at <a href="%3$s" title="Link to full-size image">%4$s &times; %5$s</a> in <a href="%6$s" title="Return to %7$s" rel="gallery">%8$s</a>.', 'twentytwelve' ),
29
+ esc_attr( get_the_date( 'c' ) ),
30
+ esc_html( get_the_date() ),
31
+ esc_url( wp_get_attachment_url() ),
32
+ $metadata['width'],
33
+ $metadata['height'],
34
+ esc_url( get_permalink( $post->post_parent ) ),
35
+ esc_attr( strip_tags( get_the_title( $post->post_parent ) ) ),
36
+ get_the_title( $post->post_parent )
37
+ );
38
+ ?>
39
+ <?php edit_post_link( __( 'Edit', 'twentytwelve' ), '<span class="edit-link">', '</span>' ); ?>
40
+ </footer><!-- .entry-meta -->
41
+
42
+ <nav id="image-navigation" class="navigation" role="navigation">
43
+ <span class="previous-image"><?php previous_image_link( false, __( '&larr; Previous', 'twentytwelve' ) ); ?></span>
44
+ <span class="next-image"><?php next_image_link( false, __( 'Next &rarr;', 'twentytwelve' ) ); ?></span>
45
+ </nav><!-- #image-navigation -->
46
+ </header><!-- .entry-header -->
47
+
48
+ <div class="entry-content">
49
+
50
+ <div class="entry-attachment">
51
+ <div class="attachment">
52
+ <?php
53
+ /*
54
+ * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery,
55
+ * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file
56
+ */
57
+ $attachments = array_values( get_children( array( 'post_parent' => $post->post_parent, 'post_status' => 'inherit', 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'ASC', 'orderby' => 'menu_order ID' ) ) );
58
+ foreach ( $attachments as $k => $attachment ) :
59
+ if ( $attachment->ID == $post->ID )
60
+ break;
61
+ endforeach;
62
+
63
+ $k++;
64
+ // If there is more than 1 attachment in a gallery
65
+ if ( count( $attachments ) > 1 ) :
66
+ if ( isset( $attachments[ $k ] ) ) :
67
+ // get the URL of the next image attachment
68
+ $next_attachment_url = get_attachment_link( $attachments[ $k ]->ID );
69
+ else :
70
+ // or get the URL of the first image attachment
71
+ $next_attachment_url = get_attachment_link( $attachments[ 0 ]->ID );
72
+ endif;
73
+ else :
74
+ // or, if there's only 1 image, get the URL of the image
75
+ $next_attachment_url = wp_get_attachment_url();
76
+ endif;
77
+ ?>
78
+ <a href="<?php echo esc_url( $next_attachment_url ); ?>" title="<?php the_title_attribute(); ?>" rel="attachment"><?php
79
+ /**
80
+ * Filter the image attachment size to use.
81
+ *
82
+ * @since Twenty Twelve 1.0
83
+ *
84
+ * @param array $size {
85
+ * @type int The attachment height in pixels.
86
+ * @type int The attachment width in pixels.
87
+ * }
88
+ */
89
+ $attachment_size = apply_filters( 'twentytwelve_attachment_size', array( 960, 960 ) );
90
+ echo wp_get_attachment_image( $post->ID, $attachment_size );
91
+ ?></a>
92
+
93
+ <?php if ( ! empty( $post->post_excerpt ) ) : ?>
94
+ <div class="entry-caption">
95
+ <?php the_excerpt(); ?>
96
+ </div>
97
+ <?php endif; ?>
98
+ </div><!-- .attachment -->
99
+
100
+ </div><!-- .entry-attachment -->
101
+
102
+ <div class="entry-description">
103
+ <?php the_content(); ?>
104
+ <?php wp_link_pages( array( 'before' => '<div class="page-links">' . __( 'Pages:', 'twentytwelve' ), 'after' => '</div>' ) ); ?>
105
+ </div><!-- .entry-description -->
106
+
107
+ </div><!-- .entry-content -->
108
+
109
+ <div class="entry-terms">
110
+ <?php
111
+ $attr = array();
112
+ /*
113
+ * You can change the default taxonomy slug by adding a query variable, e.g.,
114
+ * "?taxonomy=attachment_category"
115
+ */
116
+ if ( ! empty( $_REQUEST['taxonomy'] ) ) {
117
+ $attr['taxonomy'] = $_REQUEST['taxonomy'];
118
+ }
119
+
120
+ /*
121
+ * You can change the default destination page by adding a query variable, e.g.,
122
+ * "?page_path=some-other-page"
123
+ */
124
+ if ( ! empty( $_REQUEST['page_path'] ) ) {
125
+ $attr['page_path'] = $_REQUEST['page_path'];
126
+ }
127
+
128
+ mla_custom_terms_list( get_the_ID(), $attr ); // Child theme function
129
+ ?>
130
+ </div><!-- .entry-terms -->
131
+
132
+ </article><!-- #post -->
133
+
134
+ <?php comments_template(); ?>
135
+
136
+ <?php endwhile; // end of the loop. ?>
137
+
138
+ </div><!-- #content -->
139
+ </div><!-- #primary -->
140
+
141
+ <?php get_footer(); ?>
examples/twentytwelve-mla/languages/en_US.pot ADDED
@@ -0,0 +1,138 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Copyright (C) 2014 the WordPress team
2
+ # This file is distributed under the GNU General Public License v2 or later.
3
+ msgid ""
4
+ msgstr ""
5
+ "Project-Id-Version: MLA Child Theme for Twenty Twelve 1.3\n"
6
+ "Report-Msgid-Bugs-To: http://wordpress.org/tags/twentytwelve\n"
7
+ "POT-Creation-Date: 2014-03-25 12:25-0800\n"
8
+ "PO-Revision-Date: 2014-03-25 12:25-0800\n"
9
+ "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
10
+ "Language-Team: David Lingren <david@fairtradejudaica.org>\n"
11
+ "Language: en_US\n"
12
+ "MIME-Version: 1.0\n"
13
+ "Content-Type: text/plain; charset=UTF-8\n"
14
+ "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 1.6.2\n"
16
+ "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
+ "X-Poedit-KeywordsList: __;_e;_ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
18
+ "_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c\n"
19
+ "X-Poedit-Basepath: .\n"
20
+ "X-Poedit-SearchPath-0: ..\n"
21
+
22
+ #: ../content-category-listing.php:34 ../image.php:103
23
+ msgid "Pages:"
24
+ msgstr ""
25
+
26
+ #: ../content-category-listing.php:37 ../content-media.php:28
27
+ #: ../content-tag-gallery.php:69 ../image.php:38
28
+ msgid "Edit"
29
+ msgstr ""
30
+
31
+ #: ../content-media.php:15
32
+ msgid "Continue reading <span class=\"meta-nav\">&rarr;</span>"
33
+ msgstr ""
34
+
35
+ #: ../content-media.php:25
36
+ msgid "Leave a reply"
37
+ msgstr ""
38
+
39
+ #: ../content-media.php:25
40
+ msgid "1 Reply"
41
+ msgstr ""
42
+
43
+ #: ../content-media.php:25
44
+ msgid "% Replies"
45
+ msgstr ""
46
+
47
+ #: ../functions.php:60 ../functions.php:111
48
+ msgid "Taxonomy does not exist."
49
+ msgstr ""
50
+
51
+ #: ../functions.php:63 ../functions.php:115
52
+ msgid "Term does not exist."
53
+ msgstr ""
54
+
55
+ #. translators: 1: term name, 2: taxonomy label
56
+ #: ../functions.php:67 ../functions.php:137
57
+ #, php-format
58
+ msgid "Gallery for term \"%1$s\" in taxonomy \"%2$s\""
59
+ msgstr ""
60
+
61
+ #. translators: 1: taxonomy slug
62
+ #: ../functions.php:179 ../functions.php:219
63
+ #, php-format
64
+ msgid "Terms list for taxonomy: %1$s"
65
+ msgstr ""
66
+
67
+ #. translators: 1: term name
68
+ #: ../functions.php:181
69
+ #, php-format
70
+ msgid "Gallery for %1$s"
71
+ msgstr ""
72
+
73
+ #: ../functions.php:215
74
+ msgid "There are no non-empty taxonomy values"
75
+ msgstr ""
76
+
77
+ #: ../functions.php:221
78
+ msgid "No items found"
79
+ msgstr ""
80
+
81
+ #: ../header.php:52
82
+ msgid "Menu"
83
+ msgstr ""
84
+
85
+ #: ../header.php:53
86
+ msgid "Skip to content"
87
+ msgstr ""
88
+
89
+ #: ../image.php:27
90
+ #, php-format
91
+ msgid ""
92
+ "<span class=\"meta-prep meta-prep-entry-date\">Published </span> <span class="
93
+ "\"entry-date\"><time class=\"entry-date\" datetime=\"%1$s\">%2$s</time></"
94
+ "span> at <a href=\"%3$s\" title=\"Link to full-size image\">%4$s &times; "
95
+ "%5$s</a> in <a href=\"%6$s\" title=\"Return to %7$s\" rel=\"gallery\">%8$s</"
96
+ "a>."
97
+ msgstr ""
98
+
99
+ #: ../image.php:42
100
+ msgid "&larr; Previous"
101
+ msgstr ""
102
+
103
+ #: ../image.php:43
104
+ msgid "Next &rarr;"
105
+ msgstr ""
106
+
107
+ #: ../taxonomy.php:36
108
+ #, php-format
109
+ msgid "Daily Archives: %s"
110
+ msgstr ""
111
+
112
+ #: ../taxonomy.php:38
113
+ #, php-format
114
+ msgid "Monthly Archives: %s"
115
+ msgstr ""
116
+
117
+ #: ../taxonomy.php:38
118
+ msgctxt "monthly archives date format"
119
+ msgid "F Y"
120
+ msgstr ""
121
+
122
+ #: ../taxonomy.php:40
123
+ #, php-format
124
+ msgid "Yearly Archives: %s"
125
+ msgstr ""
126
+
127
+ #: ../taxonomy.php:40
128
+ msgctxt "yearly archives date format"
129
+ msgid "Y"
130
+ msgstr ""
131
+
132
+ #: ../taxonomy.php:42
133
+ msgid "Media Archives"
134
+ msgstr ""
135
+
136
+ #: ../taxonomy.php:44
137
+ msgid "Archives"
138
+ msgstr ""
examples/twentytwelve-mla/page-category-listing.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The template for displaying the "Category Listing" page, which
4
+ * must be defined as a static WordPress "Page" post type.
5
+ *
6
+ * Please note that this is the WordPress construct of pages
7
+ * and that other 'pages' on your WordPress site will use a
8
+ * different template.
9
+ *
10
+ * @package Media Library Assistant
11
+ * @subpackage MLA_Child_Theme
12
+ * @version 1.00
13
+ * @since MLA 1.80
14
+ */
15
+
16
+ get_header(); ?>
17
+
18
+ <div id="primary" class="site-content">
19
+ <div id="content" role="main">
20
+
21
+ <?php while ( have_posts() ) : the_post(); ?>
22
+ <?php get_template_part( 'content', 'category-listing' ); ?>
23
+ <?php comments_template( '', true ); ?>
24
+ <?php endwhile; // end of the loop. ?>
25
+
26
+ </div><!-- #content -->
27
+ </div><!-- #primary -->
28
+
29
+ <?php get_sidebar(); ?>
30
+ <?php get_footer(); ?>
examples/twentytwelve-mla/page-tag-gallery.php ADDED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The template for displaying the "Tag Gallery" page, which
4
+ * must be defined as a static WordPress "Page" post type.
5
+ *
6
+ * Please note that this is the WordPress construct of pages
7
+ * and that other 'pages' on your WordPress site will use a
8
+ * different template.
9
+ *
10
+ * @package Media Library Assistant
11
+ * @subpackage MLA_Child_Theme
12
+ * @version 1.00
13
+ * @since MLA 1.80
14
+ */
15
+
16
+ get_header(); ?>
17
+
18
+ <div id="primary" class="site-content">
19
+ <div id="content" role="main">
20
+
21
+ <?php while ( have_posts() ) : the_post(); ?>
22
+ <?php get_template_part( 'content', 'tag-gallery' ); ?>
23
+ <?php comments_template( '', true ); ?>
24
+ <?php endwhile; // end of the loop. ?>
25
+
26
+ </div><!-- #content -->
27
+ </div><!-- #primary -->
28
+
29
+ <?php //get_sidebar(); ?>
30
+ <?php get_footer(); ?>
examples/twentytwelve-mla/style.css ADDED
@@ -0,0 +1,59 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * This child theme contains changes and enhancements to the WordPress Twenty Twelve
3
+ * theme, which is used for all MLA testing and development. The material in this
4
+ * child theme was inspired/generated by topics raised in the MLA support forum.
5
+ *
6
+ * @package Media Library Assistant
7
+ * @subpackage MLA_Child_Theme
8
+ * @version 1.00
9
+ * @since MLA 1.80
10
+ */
11
+
12
+ /*
13
+ Theme Name: MLA Child for Twenty Twelve
14
+ Theme URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
+ Description: Enhancements to the baseline theme, generated in response to MLA support forum topics.
16
+ Author: David Lingren
17
+ Author URI: http://fairtradejudaica.org/our-story/staff/
18
+ Template: twentytwelve
19
+ Version: 1.00
20
+ Tags: attachment, attachments, documents, gallery, image, images, media, library, media library, media-tags, media tags, tags, media categories, categories, IPTC, EXIF, GPS, PDF, meta, metadata, photo, photos, photograph, photographs, photoblog, photo albums, lightroom, photoshop, MIME, mime-type, icon, upload, file extensions
21
+ Text Domain: mla-child-theme
22
+ Domain Path: /languages
23
+
24
+ Copyright 2011-2014 David Lingren
25
+
26
+ This program is free software; you can redistribute it and/or modify
27
+ it under the terms of the GNU General Public License as published by
28
+ the Free Software Foundation; either version 2 of the License, or
29
+ (at your option) any later version.
30
+
31
+ This program is distributed in the hope that it will be useful,
32
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
33
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34
+ GNU General Public License for more details.
35
+
36
+ You can get a copy of the GNU General Public License by writing to the
37
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
38
+ */
39
+
40
+ @import url("../twentytwelve/style.css");
41
+
42
+ /* HTML ELEMENTS - - - - - - - - - - - - - - - - - - - - - - - - - - */
43
+
44
+ /* HEADER - - - - - - - - - - - - - - - - - - - - - - - - - - */
45
+
46
+ /* MAIN DROP-DOWN NAVIGATION - - - - - - - - - - - - - - - - - - - - - - - - - - */
47
+
48
+ /* CONTENT - - - - - - - - - - - - - - - - - - - - - - - - - - */
49
+
50
+ /* SIDEBAR - - - - - - - - - - - - - - - - - - - - - - - - - - */
51
+
52
+ /* FOOTER - - - - - - - - - - - - - - - - - - - - - - - - - - */
53
+
54
+ /* CUSTOMIZATIONS FOR SPECIFIC PAGES - - - - - - - - - - - - - - - - - - - - - - - */
55
+
56
+ /* home ----------------- */
57
+
58
+ /* blog---------------- */
59
+
examples/twentytwelve-mla/taxonomy.php ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * The template for displaying Custom Taxonomy Archive pages
4
+ *
5
+ * Twenty Twelve already has tag.php for Tag archives and category.php for Category archives.
6
+ *
7
+ * @link http://codex.wordpress.org/Template_Hierarchy
8
+ *
9
+ * @package Media Library Assistant
10
+ * @subpackage MLA_Child_Theme
11
+ * @version 1.00
12
+ * @since MLA 1.80
13
+ */
14
+
15
+ get_header(); ?>
16
+ <?php
17
+ global $wp_query;
18
+
19
+ $is_media_archive = in_array( $wp_query->query_vars['taxonomy'], array( 'attachment_category', 'attachment_tag' ) );
20
+ if ( $is_media_archive ) {
21
+ if ( true || isset( $_REQUEST['use_mla_gallery'] ) ) {
22
+ $use_mla_gallery = true;
23
+ } else {
24
+ $args = array_merge( $wp_query->query_vars, array( 'post_type' => 'attachment', 'post_status' => 'inherit' ) );
25
+ query_posts( $args );
26
+ }
27
+ }
28
+ ?>
29
+
30
+ <section id="primary" class="site-content">
31
+ <div id="content" role="main">
32
+
33
+ <?php if ( have_posts() ) : ?>
34
+ <header class="archive-header">
35
+ <h1 class="archive-title"><?php
36
+ if ( is_day() ) :
37
+ printf( __( 'Daily Archives: %s', 'twentytwelve' ), '<span>' . get_the_date() . '</span>' );
38
+ elseif ( is_month() ) :
39
+ printf( __( 'Monthly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'F Y', 'monthly archives date format', 'twentytwelve' ) ) . '</span>' );
40
+ elseif ( is_year() ) :
41
+ printf( __( 'Yearly Archives: %s', 'twentytwelve' ), '<span>' . get_the_date( _x( 'Y', 'yearly archives date format', 'twentytwelve' ) ) . '</span>' );
42
+ elseif ( $is_media_archive ) :
43
+ _e( 'Media Archives', 'mla-child-theme' );
44
+ else :
45
+ _e( 'Archives', 'twentytwelve' );
46
+ endif;
47
+ ?></h1>
48
+ </header><!-- .archive-header -->
49
+
50
+ <?php
51
+ /* Start the Loop */
52
+ while ( have_posts() ) : the_post();
53
+
54
+ /* Include the post format-specific template for the content. If you want to
55
+ * this in a child theme then include a file called called content-___.php
56
+ * (where ___ is the post format) and that will be used instead.
57
+ */
58
+ if ( $is_media_archive ) {
59
+ get_template_part( 'content', 'media' );
60
+ } else {
61
+ get_template_part( 'content', get_post_format() );
62
+ }
63
+
64
+ endwhile;
65
+
66
+ twentytwelve_content_nav( 'nav-below' );
67
+ ?>
68
+
69
+ <?php else : ?>
70
+ <?php get_template_part( 'content', 'none' ); ?>
71
+ <?php endif; ?>
72
+
73
+ </div><!-- #content -->
74
+ </section><!-- #primary -->
75
+
76
+ <?php get_sidebar(); ?>
77
+ <?php get_footer(); ?>
includes/class-mla-data.php CHANGED
@@ -995,6 +995,25 @@ class MLAData {
995
  $markup_values[ $key ] = $record;
996
  }
997
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
998
  break;
999
  default:
1000
  // ignore anything else
@@ -1054,7 +1073,7 @@ class MLAData {
1054
  $template_length = $template_end + 2 - $template_offset;
1055
  $template_content = substr( $tpl, $template_offset + 11, $template_length - (11 + 2) );
1056
  $placeholders = self::mla_get_template_placeholders( $template_content );
1057
- $result = array( 'template:' . $template_content => array( 'prefix' => 'template', 'value' => $template_content, 'option' => $default_option ) );
1058
  $results = array_merge( $results, $result, $placeholders );
1059
  $tpl = substr_replace( $tpl, '', $template_offset, $template_length );
1060
  } // found a template
@@ -1066,7 +1085,7 @@ class MLAData {
1066
 
1067
  foreach ( $matches[0] as $match ) {
1068
  $key = substr( $match, 2, (strlen( $match ) - 4 ) );
1069
- $result = array( 'prefix' => '', 'value' => '', 'option' => $default_option );
1070
  $match_count = preg_match( '/\[\+(.+):(.+)/', $match, $matches );
1071
  if ( 1 == $match_count ) {
1072
  $result['prefix'] = $matches[1];
@@ -1075,10 +1094,17 @@ class MLAData {
1075
  $tail = substr( $match, 2);
1076
  }
1077
 
1078
- $match_count = preg_match( '/([^,]+)(,(text|single|export|array|multi))\+\]/', $tail, $matches );
1079
  if ( 1 == $match_count ) {
1080
  $result['value'] = $matches[1];
1081
- $result['option'] = $matches[3];
 
 
 
 
 
 
 
1082
  } else {
1083
  $result['value'] = substr( $tail, 0, (strlen( $tail ) - 2 ) );
1084
  }
@@ -1414,20 +1440,18 @@ class MLAData {
1414
  * There must be at least one search field to do a search.
1415
  */
1416
  if ( isset( $clean_request['s'] ) ) {
1417
- if ( ! empty( $clean_request['mla_search_fields'] ) ) {
1418
- self::$query_parameters['s'] = $clean_request['s'];
1419
- self::$query_parameters['mla_search_connector'] = $clean_request['mla_search_connector'];
1420
- self::$query_parameters['mla_search_fields'] = $clean_request['mla_search_fields'];
1421
- self::$query_parameters['sentence'] = isset( $clean_request['sentence'] );
1422
- self::$query_parameters['exact'] = isset( $clean_request['exact'] );
1423
-
1424
- if ( in_array( 'alt-text', self::$query_parameters['mla_search_fields'] ) ) {
1425
- self::$query_parameters['use_postmeta_view'] = true;
1426
- self::$query_parameters['postmeta_key'] = '_wp_attachment_image_alt';
1427
- }
1428
- } // !empty
1429
-
1430
- // unset( $clean_request['s'] ); // WP v3.7 requires this to be present for posts_search filter
1431
  unset( $clean_request['mla_search_connector'] );
1432
  unset( $clean_request['mla_search_fields'] );
1433
  unset( $clean_request['sentence'] );
@@ -1588,6 +1612,15 @@ class MLAData {
1588
  add_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
1589
  add_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
1590
 
 
 
 
 
 
 
 
 
 
1591
  if ( isset( self::$query_parameters['debug'] ) ) {
1592
  global $wp_filter;
1593
  $debug_array = array( 'posts_search' => $wp_filter['posts_search'], 'posts_join' => $wp_filter['posts_join'], 'posts_where' => $wp_filter['posts_where'], 'posts_orderby' => $wp_filter['posts_orderby'] );
@@ -1599,22 +1632,36 @@ class MLAData {
1599
  /* translators: 1: query filter details */
1600
  error_log( sprintf( _x( 'DEBUG: _execute_list_table_query $wp_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
1601
  }
 
 
 
1602
  } // debug
1603
 
1604
  $results = new WP_Query( $request );
1605
 
1606
  if ( isset( self::$query_parameters['debug'] ) ) {
1607
- $debug_array = array( 'request' => $request, 'query_parameters' => self::$query_parameters, 'SQL_request' => $results->request, 'post_count' => $results->post_count, 'found_posts' => $results->found_posts );
 
 
 
1608
 
1609
  if ( 'console' == self::$query_parameters['debug'] ) {
1610
  /* translators: 1: query details */
1611
  trigger_error( sprintf( __( '_execute_list_table_query WP_Query = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
 
 
1612
  } else {
1613
  /* translators: 1: query details */
1614
  error_log( sprintf( _x( 'DEBUG: _execute_list_table_query WP_Query = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
 
 
1615
  }
1616
  } // debug
1617
 
 
 
 
 
1618
  remove_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
1619
  remove_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
1620
  remove_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
@@ -1667,26 +1714,14 @@ class MLAData {
1667
  } // debug
1668
 
1669
  /*
1670
- * Interpret a numeric value as the ID of a specific attachment or the ID of a parent post/page
 
1671
  */
1672
  if ( is_numeric( self::$query_parameters['s'] ) ) {
1673
  $id = absint( self::$query_parameters['s'] );
1674
- $search_clause = ' AND ( ( ' . $wpdb->posts . '.ID = ' . $id . ' ) OR ( ' . $wpdb->posts . '.post_parent = ' . $id . ' ) ) ';
1675
-
1676
- if ( isset( self::$query_parameters['debug'] ) ) {
1677
- $debug_array['search_clause'] = $search_clause;
1678
- $debug_array['search_string'] = $search_string;
1679
-
1680
- if ( 'console' == self::$query_parameters['debug'] ) {
1681
- /* translators: 1: numeric search box details */
1682
- trigger_error( sprintf( __( 'mla_query_posts_search_filter is_numeric, = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
1683
- } else {
1684
- /* translators: 1: numeric search box details */
1685
- error_log( sprintf( _x( 'DEBUG: mla_query_posts_search_filter is_numeric, = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
1686
- }
1687
- } // debug
1688
-
1689
- return $search_clause;
1690
  }
1691
 
1692
  // WordPress v3.7 says: there are no line breaks in <input /> fields
@@ -1703,44 +1738,51 @@ class MLAData {
1703
  $fields = self::$query_parameters['mla_search_fields'];
1704
  $percent = self::$query_parameters['exact'] ? '' : '%';
1705
  $connector = '';
1706
- foreach ( $search_terms as $term ) {
1707
- $term = esc_sql( like_escape( $term ) );
1708
- $inner_connector = '';
1709
- $search_clause .= "{$connector}(";
1710
-
1711
- if ( in_array( 'content', $fields ) ) {
1712
- $search_clause .= "{$inner_connector}({$wpdb->posts}.post_content LIKE '{$percent}{$term}{$percent}')";
1713
- $inner_connector = ' OR ';
1714
- }
1715
-
1716
- if ( in_array( 'title', $fields ) ) {
1717
- $search_clause .= "{$inner_connector}({$wpdb->posts}.post_title LIKE '{$percent}{$term}{$percent}')";
1718
- $inner_connector = ' OR ';
1719
- }
1720
-
1721
- if ( in_array( 'excerpt', $fields ) ) {
1722
- $search_clause .= "{$inner_connector}({$wpdb->posts}.post_excerpt LIKE '{$percent}{$term}{$percent}')";
1723
- $inner_connector = ' OR ';
1724
- }
1725
-
1726
- if ( in_array( 'alt-text', $fields ) ) {
1727
- $view_name = self::$mla_alt_text_view;
1728
- $search_clause .= "{$inner_connector}({$view_name}.meta_value LIKE '{$percent}{$term}{$percent}')";
1729
- $inner_connector = ' OR ';
1730
- }
1731
 
1732
- if ( in_array( 'name', $fields ) ) {
1733
- $search_clause .= "{$inner_connector}({$wpdb->posts}.post_name LIKE '{$percent}{$term}{$percent}')";
1734
- }
1735
-
1736
- $search_clause .= ")";
1737
- $connector = ' ' . self::$query_parameters['mla_search_connector'] . ' ';
1738
- } // foreach
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1739
 
1740
  if ( !empty($search_clause) ) {
1741
- $search_clause = " AND ({$search_clause}) ";
 
1742
  if ( !is_user_logged_in() ) {
1743
- $search_clause .= " AND ($wpdb->posts.post_password = '') ";
 
1744
  }
1745
  }
1746
 
@@ -1774,6 +1816,11 @@ class MLAData {
1774
  */
1775
  public static function mla_query_posts_join_filter( $join_clause ) {
1776
  global $table_prefix;
 
 
 
 
 
1777
  /*
1778
  * '_wp_attachment_image_alt' is special; we have to use an SQL VIEW to
1779
  * build an intermediate table and modify the JOIN to include posts with
@@ -1784,6 +1831,18 @@ class MLAData {
1784
  $join_clause .= " LEFT JOIN {$view_name} ON ({$table_prefix}posts.ID = {$view_name}.post_id)";
1785
  }
1786
 
 
 
 
 
 
 
 
 
 
 
 
 
1787
  return $join_clause;
1788
  }
1789
 
@@ -1802,6 +1861,10 @@ class MLAData {
1802
  public static function mla_query_posts_where_filter( $where_clause ) {
1803
  global $table_prefix;
1804
 
 
 
 
 
1805
  /*
1806
  * WordPress filters meta_value thru trim() - which we must reverse
1807
  */
@@ -1833,6 +1896,18 @@ class MLAData {
1833
  $where_clause .= " AND {$table_prefix}posts.post_parent < 1";
1834
  }
1835
 
 
 
 
 
 
 
 
 
 
 
 
 
1836
  return $where_clause;
1837
  }
1838
 
@@ -1851,6 +1926,10 @@ class MLAData {
1851
  public static function mla_query_posts_orderby_filter( $orderby_clause ) {
1852
  global $table_prefix;
1853
 
 
 
 
 
1854
  if ( isset( self::$query_parameters['orderby'] ) ) {
1855
  if ( 'c_' == substr( self::$query_parameters['orderby'], 0, 2 ) ) {
1856
  $orderby = self::$mla_alt_text_view . '.meta_value';
@@ -1897,9 +1976,83 @@ class MLAData {
1897
  }
1898
  } // isset
1899
 
 
 
 
 
 
 
 
 
 
 
 
 
1900
  return $orderby_clause;
1901
  }
1902
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1903
  /**
1904
  * Retrieve an Attachment array given a $post_id
1905
  *
@@ -2364,12 +2517,36 @@ class MLAData {
2364
  if ( 'base' == $inserted_in_option ) {
2365
  $like1 = like_escape( $references['path'] . $pathinfo['filename'] ) . '.' . like_escape( $pathinfo['extension'] );
2366
  $like2 = like_escape( $references['path'] . $pathinfo['filename'] ) . '-%.' . like_escape( $pathinfo['extension'] );
2367
- $inserts = $wpdb->get_results(
2368
  $wpdb->prepare(
2369
  "SELECT ID, post_type, post_title FROM {$wpdb->posts}
2370
  WHERE {$exclude_revisions} ((CONVERT(`post_content` USING utf8 ) LIKE %s) OR
2371
  (CONVERT(`post_content` USING utf8 ) LIKE %s))", "%{$like1}%", "%{$like2}%"
2372
  )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2373
  );
2374
 
2375
  if ( !empty( $inserts ) ) {
@@ -2466,7 +2643,7 @@ class MLAData {
2466
  }
2467
 
2468
  if ( !$references['found_parent'] && !empty( $references['parent_title'] ) ) {
2469
- $errors .= '(' . sprintf( __( 'BAD PARENT', 'media-library-assistant' ) . '%1$s) ', $suffix );
2470
  }
2471
  }
2472
 
@@ -2648,7 +2825,6 @@ class MLAData {
2648
  if ( is_string( $attachments ) ) {
2649
  /* translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message */
2650
  trigger_error( htmlentities( sprintf( __( '(%1$s) %2$s (ID %3$d) query "%4$s" failed, returning "%5$s"', 'media-library-assistant' ), $result->post_type, $result->post_title, $result->ID, $galleries_array[ $result_id ]['galleries'][ $instance ]['query'], $attachments) ), E_USER_WARNING );
2651
- trigger_error( sprintf( __( 'mla_query_posts_search_filter not numeric, = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
2652
  } elseif ( ! empty( $attachments ) ) {
2653
  foreach ( $attachments as $attachment ) {
2654
  $galleries_array[ $result_id ]['results'][ $attachment->ID ] = $attachment->ID;
@@ -4866,10 +5042,19 @@ class MLAData {
4866
  $updates[ $key ] = $value;
4867
  }
4868
  break;
 
 
 
 
 
 
 
 
 
4869
  case 'image_alt':
4870
  $key = 'mla_wp_attachment_image_alt';
4871
  if ( !isset( $post_data[ $key ] ) ) {
4872
- $post_data[ $key ] = '';
4873
  }
4874
 
4875
  if ( $value == $post_data[ $key ] ) {
@@ -4877,7 +5062,7 @@ class MLAData {
4877
  }
4878
 
4879
  if ( empty( $value ) ) {
4880
- if ( delete_post_meta( $post_id, '_wp_attachment_image_alt', $value ) ) {
4881
  /* translators: 1: old_value */
4882
  $message .= sprintf( __( 'Deleting ALT Text, was "%1$s"', 'media-library-assistant' ) . '<br>', esc_attr( $post_data[ $key ] ) );
4883
  } else {
@@ -4947,6 +5132,24 @@ class MLAData {
4947
  $message .= sprintf( __( 'Changing %1$s from "%2$s" to "%3$s"', 'media-library-assistant' ) . '<br>', __( 'Author', 'media-library-assistant' ), $from_user->display_name, $to_user->display_name );
4948
  $updates[ $key ] = $value;
4949
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4950
  case 'taxonomy_updates':
4951
  $tax_input = $value['inputs'];
4952
  $tax_actions = $value['actions'];
@@ -5001,6 +5204,7 @@ class MLAData {
5001
  ) );
5002
 
5003
  if ( $terms_before != $terms_after ) {
 
5004
  /* translators: 1: action_name, 2: taxonomy */
5005
  $message .= sprintf( __( '%1$s "%2$s" terms', 'media-library-assistant' ) . '<br>', $action_name, $taxonomy );
5006
  }
@@ -5035,7 +5239,7 @@ class MLAData {
5035
  * Uncomment this for debugging.
5036
  */
5037
  // $final_message .= '<br>' . $message;
5038
- // error_log( 'DEBUG: message = ' . var_export( $message, true ), 0 );
5039
 
5040
  return array(
5041
  'message' => $final_message,
995
  $markup_values[ $key ] = $record;
996
  }
997
 
998
+ case '':
999
+ $candidate = str_replace( '{', '[', str_replace( '}', ']', $value['value'] ) );
1000
+ $key = str_replace( '{', '[', str_replace( '}', ']', $key ) );
1001
+
1002
+ if ( MLAOptions::mla_is_data_source( $candidate ) ) {
1003
+ $data_value = array(
1004
+ 'data_source' => $candidate,
1005
+ 'keep_existing' => false,
1006
+ 'format' => 'raw',
1007
+ 'option' => 'text' );
1008
+
1009
+ $data_value = MLAOptions::mla_get_data_source( $post_id, 'single_attachment_mapping', $data_value );
1010
+ if ( ( 'commas' == $value['format'] ) && is_numeric( $data_value ) ) {
1011
+ $data_value = number_format( (float)$data_value );
1012
+ }
1013
+
1014
+ $markup_values[ $key ] = $data_value;
1015
+ }
1016
+
1017
  break;
1018
  default:
1019
  // ignore anything else
1073
  $template_length = $template_end + 2 - $template_offset;
1074
  $template_content = substr( $tpl, $template_offset + 11, $template_length - (11 + 2) );
1075
  $placeholders = self::mla_get_template_placeholders( $template_content );
1076
+ $result = array( 'template:' . $template_content => array( 'prefix' => 'template', 'value' => $template_content, 'option' => $default_option, 'format' => 'native' ) );
1077
  $results = array_merge( $results, $result, $placeholders );
1078
  $tpl = substr_replace( $tpl, '', $template_offset, $template_length );
1079
  } // found a template
1085
 
1086
  foreach ( $matches[0] as $match ) {
1087
  $key = substr( $match, 2, (strlen( $match ) - 4 ) );
1088
+ $result = array( 'prefix' => '', 'value' => '', 'option' => $default_option, 'format' => 'native' );
1089
  $match_count = preg_match( '/\[\+(.+):(.+)/', $match, $matches );
1090
  if ( 1 == $match_count ) {
1091
  $result['prefix'] = $matches[1];
1094
  $tail = substr( $match, 2);
1095
  }
1096
 
1097
+ $match_count = preg_match( '/([^,]+)(,(text|single|export|array|multi|commas))\+\]/', $tail, $matches );
1098
  if ( 1 == $match_count ) {
1099
  $result['value'] = $matches[1];
1100
+
1101
+ if ( 'commas' == $matches[3] ) {
1102
+ $result['option'] = 'text';
1103
+ $result['format'] = 'commas';
1104
+ } else {
1105
+ $result['option'] = $matches[3];
1106
+ }
1107
+
1108
  } else {
1109
  $result['value'] = substr( $tail, 0, (strlen( $tail ) - 2 ) );
1110
  }
1440
  * There must be at least one search field to do a search.
1441
  */
1442
  if ( isset( $clean_request['s'] ) ) {
1443
+ self::$query_parameters['s'] = $clean_request['s'];
1444
+ self::$query_parameters['mla_search_connector'] = $clean_request['mla_search_connector'];
1445
+ self::$query_parameters['mla_search_fields'] = $clean_request['mla_search_fields'];
1446
+ self::$query_parameters['sentence'] = isset( $clean_request['sentence'] );
1447
+ self::$query_parameters['exact'] = isset( $clean_request['exact'] );
1448
+
1449
+ if ( in_array( 'alt-text', self::$query_parameters['mla_search_fields'] ) ) {
1450
+ self::$query_parameters['use_postmeta_view'] = true;
1451
+ self::$query_parameters['postmeta_key'] = '_wp_attachment_image_alt';
1452
+ }
1453
+
1454
+ unset( $clean_request['s'] );
 
 
1455
  unset( $clean_request['mla_search_connector'] );
1456
  unset( $clean_request['mla_search_fields'] );
1457
  unset( $clean_request['sentence'] );
1612
  add_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
1613
  add_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
1614
 
1615
+ /*
1616
+ * Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
1617
+ * relevanssi_prevent_default_request( $request, $query )
1618
+ * apply_filters('relevanssi_admin_search_ok', $admin_search_ok, $query );
1619
+ */
1620
+ if ( function_exists( 'relevanssi_prevent_default_request' ) ) {
1621
+ add_filter( 'relevanssi_admin_search_ok', 'MLAData::mla_query_relevanssi_admin_search_ok_filter' );
1622
+ }
1623
+
1624
  if ( isset( self::$query_parameters['debug'] ) ) {
1625
  global $wp_filter;
1626
  $debug_array = array( 'posts_search' => $wp_filter['posts_search'], 'posts_join' => $wp_filter['posts_join'], 'posts_where' => $wp_filter['posts_where'], 'posts_orderby' => $wp_filter['posts_orderby'] );
1632
  /* translators: 1: query filter details */
1633
  error_log( sprintf( _x( 'DEBUG: _execute_list_table_query $wp_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
1634
  }
1635
+
1636
+ add_filter( 'posts_clauses', 'MLAData::mla_query_posts_clauses_filter', 0x7FFFFFFF, 1 );
1637
+ add_filter( 'posts_clauses_request', 'MLAData::mla_query_posts_clauses_request_filter', 0x7FFFFFFF, 1 );
1638
  } // debug
1639
 
1640
  $results = new WP_Query( $request );
1641
 
1642
  if ( isset( self::$query_parameters['debug'] ) ) {
1643
+ remove_filter( 'posts_clauses', 'MLAData::mla_query_posts_clauses_filter', 0x7FFFFFFF );
1644
+ remove_filter( 'posts_clauses_request', 'MLAData::mla_query_posts_clauses_request_filter', 0x7FFFFFFF );
1645
+
1646
+ $debug_array = array( 'request' => $request, 'query_parameters' => self::$query_parameters, 'post_count' => $results->post_count, 'found_posts' => $results->found_posts );
1647
 
1648
  if ( 'console' == self::$query_parameters['debug'] ) {
1649
  /* translators: 1: query details */
1650
  trigger_error( sprintf( __( '_execute_list_table_query WP_Query = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
1651
+ /* translators: 1: SQL statement */
1652
+ trigger_error( sprintf( __( '_execute_list_table_query SQL_request = "%1$s".', 'media-library-assistant' ), var_export( $results->request, true ) ), E_USER_WARNING );
1653
  } else {
1654
  /* translators: 1: query details */
1655
  error_log( sprintf( _x( 'DEBUG: _execute_list_table_query WP_Query = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
1656
+ /* translators: 1: SQL statement */
1657
+ error_log( sprintf( _x( 'DEBUG: _execute_list_table_query SQL_request = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $results->request, true ) ), 0 );
1658
  }
1659
  } // debug
1660
 
1661
+ if ( function_exists( 'relevanssi_prevent_default_request' ) ) {
1662
+ remove_filter( 'relevanssi_admin_search_ok', 'MLAData::mla_query_relevanssi_admin_search_ok_filter' );
1663
+ }
1664
+
1665
  remove_filter( 'posts_orderby', 'MLAData::mla_query_posts_orderby_filter' );
1666
  remove_filter( 'posts_where', 'MLAData::mla_query_posts_where_filter' );
1667
  remove_filter( 'posts_join', 'MLAData::mla_query_posts_join_filter' );
1714
  } // debug
1715
 
1716
  /*
1717
+ * Interpret a numeric value as the ID of a specific attachment or the ID of a parent post/page;
1718
+ * add it to the regular text-based search.
1719
  */
1720
  if ( is_numeric( self::$query_parameters['s'] ) ) {
1721
  $id = absint( self::$query_parameters['s'] );
1722
+ $numeric_clause = '( ( ' . $wpdb->posts . '.ID = ' . $id . ' ) OR ( ' . $wpdb->posts . '.post_parent = ' . $id . ' ) ) OR ';
1723
+ } else {
1724
+ $numeric_clause = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
1725
  }
1726
 
1727
  // WordPress v3.7 says: there are no line breaks in <input /> fields
1738
  $fields = self::$query_parameters['mla_search_fields'];
1739
  $percent = self::$query_parameters['exact'] ? '' : '%';
1740
  $connector = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1741
 
1742
+ if ( empty( $fields ) ) {
1743
+ $search_clause = '1=0';
1744
+ } else {
1745
+ foreach ( $search_terms as $term ) {
1746
+ $term = esc_sql( like_escape( $term ) );
1747
+ $inner_connector = '';
1748
+ $search_clause .= "{$connector}(";
1749
+
1750
+ if ( in_array( 'content', $fields ) ) {
1751
+ $search_clause .= "{$inner_connector}({$wpdb->posts}.post_content LIKE '{$percent}{$term}{$percent}')";
1752
+ $inner_connector = ' OR ';
1753
+ }
1754
+
1755
+ if ( in_array( 'title', $fields ) ) {
1756
+ $search_clause .= "{$inner_connector}({$wpdb->posts}.post_title LIKE '{$percent}{$term}{$percent}')";
1757
+ $inner_connector = ' OR ';
1758
+ }
1759
+
1760
+ if ( in_array( 'excerpt', $fields ) ) {
1761
+ $search_clause .= "{$inner_connector}({$wpdb->posts}.post_excerpt LIKE '{$percent}{$term}{$percent}')";
1762
+ $inner_connector = ' OR ';
1763
+ }
1764
+
1765
+ if ( in_array( 'alt-text', $fields ) ) {
1766
+ $view_name = self::$mla_alt_text_view;
1767
+ $search_clause .= "{$inner_connector}({$view_name}.meta_value LIKE '{$percent}{$term}{$percent}')";
1768
+ $inner_connector = ' OR ';
1769
+ }
1770
+
1771
+ if ( in_array( 'name', $fields ) ) {
1772
+ $search_clause .= "{$inner_connector}({$wpdb->posts}.post_name LIKE '{$percent}{$term}{$percent}')";
1773
+ }
1774
+
1775
+ $search_clause .= ")";
1776
+ $connector = ' ' . self::$query_parameters['mla_search_connector'] . ' ';
1777
+ } // foreach
1778
+ }
1779
 
1780
  if ( !empty($search_clause) ) {
1781
+ $search_clause = " AND ( {$numeric_clause}{$search_clause} ) ";
1782
+
1783
  if ( !is_user_logged_in() ) {
1784
+ $post_password = $wpdb->posts.post_password;
1785
+ $search_clause .= " AND ( {$post_password} = '' ) ";
1786
  }
1787
  }
1788
 
1816
  */
1817
  public static function mla_query_posts_join_filter( $join_clause ) {
1818
  global $table_prefix;
1819
+
1820
+ if ( isset( self::$query_parameters['debug'] ) ) {
1821
+ $debug_array = array( 'join_string' => $join_clause );
1822
+ }
1823
+
1824
  /*
1825
  * '_wp_attachment_image_alt' is special; we have to use an SQL VIEW to
1826
  * build an intermediate table and modify the JOIN to include posts with
1831
  $join_clause .= " LEFT JOIN {$view_name} ON ({$table_prefix}posts.ID = {$view_name}.post_id)";
1832
  }
1833
 
1834
+ if ( isset( self::$query_parameters['debug'] ) ) {
1835
+ $debug_array['join_clause'] = $join_clause;
1836
+
1837
+ if ( 'console' == self::$query_parameters['debug'] ) {
1838
+ /* translators: 1: search box details */
1839
+ trigger_error( sprintf( __( 'mla_query_posts_join_filter = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
1840
+ } else {
1841
+ /* translators: 1: search box details */
1842
+ error_log( sprintf( _x( 'DEBUG: mla_query_posts_join_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
1843
+ }
1844
+ } // debug
1845
+
1846
  return $join_clause;
1847
  }
1848
 
1861
  public static function mla_query_posts_where_filter( $where_clause ) {
1862
  global $table_prefix;
1863
 
1864
+ if ( isset( self::$query_parameters['debug'] ) ) {
1865
+ $debug_array = array( 'where_string' => $where_clause );
1866
+ }
1867
+
1868
  /*
1869
  * WordPress filters meta_value thru trim() - which we must reverse
1870
  */
1896
  $where_clause .= " AND {$table_prefix}posts.post_parent < 1";
1897
  }
1898
 
1899
+ if ( isset( self::$query_parameters['debug'] ) ) {
1900
+ $debug_array['where_clause'] = $where_clause;
1901
+
1902
+ if ( 'console' == self::$query_parameters['debug'] ) {
1903
+ /* translators: 1: search box details */
1904
+ trigger_error( sprintf( __( 'mla_query_posts_where_filter = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
1905
+ } else {
1906
+ /* translators: 1: search box details */
1907
+ error_log( sprintf( _x( 'DEBUG: mla_query_posts_where_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
1908
+ }
1909
+ } // debug
1910
+
1911
  return $where_clause;
1912
  }
1913
 
1926
  public static function mla_query_posts_orderby_filter( $orderby_clause ) {
1927
  global $table_prefix;
1928
 
1929
+ if ( isset( self::$query_parameters['debug'] ) ) {
1930
+ $debug_array = array( 'orderby_string' => $orderby_clause );
1931
+ }
1932
+
1933
  if ( isset( self::$query_parameters['orderby'] ) ) {
1934
  if ( 'c_' == substr( self::$query_parameters['orderby'], 0, 2 ) ) {
1935
  $orderby = self::$mla_alt_text_view . '.meta_value';
1976
  }
1977
  } // isset
1978
 
1979
+ if ( isset( self::$query_parameters['debug'] ) ) {
1980
+ $debug_array['orderby_clause'] = $orderby_clause;
1981
+
1982
+ if ( 'console' == self::$query_parameters['debug'] ) {
1983
+ /* translators: 1: search box details */
1984
+ trigger_error( sprintf( __( 'mla_query_posts_orderby_filter = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
1985
+ } else {
1986
+ /* translators: 1: search box details */
1987
+ error_log( sprintf( _x( 'DEBUG: mla_query_posts_orderby_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
1988
+ }
1989
+ } // debug
1990
+
1991
  return $orderby_clause;
1992
  }
1993
 
1994
+ /**
1995
+ * Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
1996
+ * Defined as public because it's a filter.
1997
+ *
1998
+ * @since 1.80
1999
+ *
2000
+ * @param boolean Default setting
2001
+ *
2002
+ * @return boolean Updated setting
2003
+ */
2004
+ public static function mla_query_relevanssi_admin_search_ok_filter( $admin_search_ok ) {
2005
+ return false;
2006
+ }
2007
+
2008
+ /**
2009
+ * Filters all clauses for shortcode queries, pre caching plugins
2010
+ *
2011
+ * This is for debug purposes only.
2012
+ * Defined as public because it's a filter.
2013
+ *
2014
+ * @since 1.80
2015
+ *
2016
+ * @param array query clauses before modification
2017
+ *
2018
+ * @return array query clauses after modification (none)
2019
+ */
2020
+ public static function mla_query_posts_clauses_filter( $pieces ) {
2021
+ if ( 'console' == self::$query_parameters['debug'] ) {
2022
+ /* translators: 1: SQL clauses */
2023
+ trigger_error( sprintf( __( 'mla_query_posts_clauses_filter = "%1$s".', 'media-library-assistant' ), var_export( $pieces, true ) ), E_USER_WARNING );
2024
+ } else {
2025
+ /* translators: 1: SQL clauses */
2026
+ error_log( sprintf( _x( 'DEBUG: mla_query_posts_clauses_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $pieces, true ) ), 0 );
2027
+ }
2028
+
2029
+ return $pieces;
2030
+ }
2031
+
2032
+ /**
2033
+ * Filters all clauses for shortcode queries, post caching plugins
2034
+ *
2035
+ * This is for debug purposes only.
2036
+ * Defined as public because it's a filter.
2037
+ *
2038
+ * @since 1.80
2039
+ *
2040
+ * @param array query clauses before modification
2041
+ *
2042
+ * @return array query clauses after modification (none)
2043
+ */
2044
+ public static function mla_query_posts_clauses_request_filter( $pieces ) {
2045
+ if ( 'console' == self::$query_parameters['debug'] ) {
2046
+ /* translators: 1: SQL clauses */
2047
+ trigger_error( sprintf( __( 'mla_query_posts_clauses_request_filter = "%1$s".', 'media-library-assistant' ), var_export( $pieces, true ) ), E_USER_WARNING );
2048
+ } else {
2049
+ /* translators: 1: SQL clauses */
2050
+ error_log( sprintf( _x( 'DEBUG: mla_query_posts_clauses_request_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $pieces, true ) ), 0 );
2051
+ }
2052
+
2053
+ return $pieces;
2054
+ }
2055
+
2056
  /**
2057
  * Retrieve an Attachment array given a $post_id
2058
  *
2517
  if ( 'base' == $inserted_in_option ) {
2518
  $like1 = like_escape( $references['path'] . $pathinfo['filename'] ) . '.' . like_escape( $pathinfo['extension'] );
2519
  $like2 = like_escape( $references['path'] . $pathinfo['filename'] ) . '-%.' . like_escape( $pathinfo['extension'] );
2520
+ /* $inserts = $wpdb->get_results(
2521
  $wpdb->prepare(
2522
  "SELECT ID, post_type, post_title FROM {$wpdb->posts}
2523
  WHERE {$exclude_revisions} ((CONVERT(`post_content` USING utf8 ) LIKE %s) OR
2524
  (CONVERT(`post_content` USING utf8 ) LIKE %s))", "%{$like1}%", "%{$like2}%"
2525
  )
2526
+ ); */
2527
+
2528
+ /* $inserts = $wpdb->get_results(
2529
+ $wpdb->prepare(
2530
+ "SELECT ID, post_type, post_title, CONVERT(`post_content` USING utf8 ) AS POST_CONTENT FROM {$wpdb->posts}
2531
+ WHERE {$exclude_revisions} ( ( POST_CONTENT LIKE %s) OR
2532
+ ( POST_CONTENT LIKE %s) )", "%{$like1}%", "%{$like2}%"
2533
+ )
2534
+ ); */
2535
+
2536
+ $query_parameters = array();
2537
+ $query = array();
2538
+ $query[] = "SELECT ID, post_type, post_title, CONVERT(`post_content` USING utf8 ) AS POST_CONTENT FROM {$wpdb->posts} WHERE {$exclude_revisions} ( 1=0";
2539
+
2540
+ foreach ( $references['files'] as $file => $file_data ) {
2541
+ $query[] = 'OR ( POST_CONTENT LIKE %s)';
2542
+ $query_parameters[] = '%' . like_escape( $file ) . '%';
2543
+ }
2544
+
2545
+ $query[] = ')';
2546
+ $query = join(' ', $query);
2547
+
2548
+ $inserts = $wpdb->get_results(
2549
+ $wpdb->prepare( $query, $query_parameters )
2550
  );
2551
 
2552
  if ( !empty( $inserts ) ) {
2643
  }
2644
 
2645
  if ( !$references['found_parent'] && !empty( $references['parent_title'] ) ) {
2646
+ $errors .= '(' . sprintf( __( 'UNUSED', 'media-library-assistant' ) . '%1$s) ', $suffix );
2647
  }
2648
  }
2649
 
2825
  if ( is_string( $attachments ) ) {
2826
  /* translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message */
2827
  trigger_error( htmlentities( sprintf( __( '(%1$s) %2$s (ID %3$d) query "%4$s" failed, returning "%5$s"', 'media-library-assistant' ), $result->post_type, $result->post_title, $result->ID, $galleries_array[ $result_id ]['galleries'][ $instance ]['query'], $attachments) ), E_USER_WARNING );
 
2828
  } elseif ( ! empty( $attachments ) ) {
2829
  foreach ( $attachments as $attachment ) {
2830
  $galleries_array[ $result_id ]['results'][ $attachment->ID ] = $attachment->ID;
5042
  $updates[ $key ] = $value;
5043
  }
5044
  break;
5045
+ /*
5046
+ * bulk_image_alt requires a separate key because some attachment types
5047
+ * should not get a value, e.g., text or PDF documents
5048
+ */
5049
+ case 'bulk_image_alt':
5050
+ if ( empty( $post_data[ 'mla_wp_attachment_metadata' ] ) ) {
5051
+ break;
5052
+ }
5053
+ // fallthru
5054
  case 'image_alt':
5055
  $key = 'mla_wp_attachment_image_alt';
5056
  if ( !isset( $post_data[ $key ] ) ) {
5057
+ $post_data[ $key ] = NULL;
5058
  }
5059
 
5060
  if ( $value == $post_data[ $key ] ) {
5062
  }
5063
 
5064
  if ( empty( $value ) ) {
5065
+ if ( delete_post_meta( $post_id, '_wp_attachment_image_alt' ) ) {
5066
  /* translators: 1: old_value */
5067
  $message .= sprintf( __( 'Deleting ALT Text, was "%1$s"', 'media-library-assistant' ) . '<br>', esc_attr( $post_data[ $key ] ) );
5068
  } else {
5132
  $message .= sprintf( __( 'Changing %1$s from "%2$s" to "%3$s"', 'media-library-assistant' ) . '<br>', __( 'Author', 'media-library-assistant' ), $from_user->display_name, $to_user->display_name );
5133
  $updates[ $key ] = $value;
5134
  break;
5135
+ case 'comment_status':
5136
+ if ( $value == $post_data[ $key ] ) {
5137
+ break;
5138
+ }
5139
+
5140
+ /* translators: 1: element name 2: old_value 3: new_value */
5141
+ $message .= sprintf( __( 'Changing %1$s from "%2$s" to "%3$s"', 'media-library-assistant' ) . '<br>', __( 'Comments', 'media-library-assistant' ), esc_attr( $post_data[ $key ] ), esc_attr( $value ) );
5142
+ $updates[ $key ] = $value;
5143
+ break;
5144
+ case 'ping_status':
5145
+ if ( $value == $post_data[ $key ] ) {
5146
+ break;
5147
+ }
5148
+
5149
+ /* translators: 1: element name 2: old_value 3: new_value */
5150
+ $message .= sprintf( __( 'Changing %1$s from "%2$s" to "%3$s"', 'media-library-assistant' ) . '<br>', __( 'Pings', 'media-library-assistant' ), esc_attr( $post_data[ $key ] ), esc_attr( $value ) );
5151
+ $updates[ $key ] = $value;
5152
+ break;
5153
  case 'taxonomy_updates':
5154
  $tax_input = $value['inputs'];
5155
  $tax_actions = $value['actions'];
5204
  ) );
5205
 
5206
  if ( $terms_before != $terms_after ) {
5207
+ delete_transient( MLA_OPTION_PREFIX . 't_term_counts_' . $taxonomy );
5208
  /* translators: 1: action_name, 2: taxonomy */
5209
  $message .= sprintf( __( '%1$s "%2$s" terms', 'media-library-assistant' ) . '<br>', $action_name, $taxonomy );
5210
  }
5239
  * Uncomment this for debugging.
5240
  */
5241
  // $final_message .= '<br>' . $message;
5242
+ // error_log( 'DEBUG: mla_update_single_item message = ' . var_export( $message, true ), 0 );
5243
 
5244
  return array(
5245
  'message' => $final_message,
includes/class-mla-edit-media.php CHANGED
@@ -82,32 +82,53 @@ class MLAEdit {
82
  * @return void echoes the HTML markup for the label and value
83
  */
84
  public static function mla_admin_init_action( ) {
85
- static $mc_att_category_metabox = array();
 
 
86
 
87
  /*
88
- * Enable the enhanced "Media Categories" searchable metaboxes for hiearchical taxonomies
89
  */
90
- if ( class_exists( 'Media_Categories' ) &&
91
- ( ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) ) ||
92
- ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_TAG_METABOX ) ) ) ) {
93
- $taxonomies = get_taxonomies( array ( 'show_ui' => true ), 'objects' );
94
 
95
- foreach ( $taxonomies as $key => $value ) {
96
- if ( MLAOptions::mla_taxonomy_support( $key ) ) {
97
- if ( $value->hierarchical ) {
98
- if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) ) {
99
- $mc_att_category_metabox[] = new Media_Categories( $key );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  }
101
- } else { // hierarchical
102
- if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_TAG_METABOX ) ) {
103
- $mc_att_category_metabox[] = new Media_Categories( $key );
104
  }
105
- } // flat
106
- } // is supported
107
- } // foreach
108
- } // class_exists
109
 
110
- add_post_type_support( 'attachment', 'custom-fields' );
 
 
 
 
 
 
111
  }
112
 
113
  /**
@@ -123,7 +144,7 @@ class MLAEdit {
123
  if ( ( 'post.php' != $page_hook ) || ( ! isset( $_REQUEST['post'] ) ) || ( ! isset( $_REQUEST['action'] ) ) || ( 'edit' != $_REQUEST['action'] ) ) {
124
  return;
125
  }
126
-
127
  $post = get_post( $_REQUEST['post'] );
128
  if ( 'attachment' != $post->post_type ) {
129
  return;
@@ -219,61 +240,69 @@ class MLAEdit {
219
  if ( 'attachment' != $post_type ) {
220
  return;
221
  }
222
-
223
  /*
224
- * Use the mla_hierarchical_meta_box callback function for MLA supported taxonomies
225
  */
226
  global $wp_meta_boxes;
227
  $screen = convert_to_screen( 'attachment' );
228
  $page = $screen->id;
229
- $taxonomies = get_taxonomies( array ( 'show_ui' => true ), 'objects' );
230
 
231
- foreach ( $taxonomies as $key => $value ) {
232
- if ( MLAOptions::mla_taxonomy_support( $key ) ) {
233
- if ( $value->hierarchical ) {
234
- if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) ) {
 
235
  foreach ( array_keys( $wp_meta_boxes[$page] ) as $a_context ) {
236
  foreach ( array('high', 'sorted', 'core', 'default', 'low') as $a_priority ) {
237
  if ( isset( $wp_meta_boxes[$page][$a_context][$a_priority][ $key . 'div' ] ) ) {
238
  $box = &$wp_meta_boxes[$page][$a_context][$a_priority][ $key . 'div' ];
239
-
240
  if ( 'post_categories_meta_box' == $box['callback'] ) {
241
- $box['callback'] = 'MLAEdit::mla_hierarchical_meta_box';
242
  }
243
  } // isset $box
244
  } // foreach priority
245
  } // foreach context
246
- }
247
- } else { // hierarchical
248
- if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_TAG_METABOX ) ) {
249
- continue;
250
- }
251
- } // flat
252
- } // is supported
253
- } // foreach
 
 
 
 
 
 
 
254
 
255
- add_meta_box( 'mla-parent-info', __( 'Parent Info', 'media-library-assistant' ), 'MLAEdit::mla_parent_info_handler', 'attachment', 'normal', 'core' );
256
- add_meta_box( 'mla-menu-order', __( 'Menu Order', 'media-library-assistant' ), 'MLAEdit::mla_menu_order_handler', 'attachment', 'normal', 'core' );
 
257
 
258
- $image_metadata = get_metadata( 'post', $post->ID, '_wp_attachment_metadata', true );
259
- if ( !empty( $image_metadata ) ) {
260
- add_meta_box( 'mla-image-metadata', __( 'Attachment Metadata', 'media-library-assistant' ), 'MLAEdit::mla_image_metadata_handler', 'attachment', 'normal', 'core' );
261
- }
262
 
263
- if ( MLAOptions::$process_featured_in ) {
264
- add_meta_box( 'mla-featured-in', __( 'Featured in', 'media-library-assistant' ), 'MLAEdit::mla_featured_in_handler', 'attachment', 'normal', 'core' );
265
- }
266
 
267
- if ( MLAOptions::$process_inserted_in ) {
268
- add_meta_box( 'mla-inserted-in', __( 'Inserted in', 'media-library-assistant' ), 'MLAEdit::mla_inserted_in_handler', 'attachment', 'normal', 'core' );
269
- }
270
 
271
- if ( MLAOptions::$process_gallery_in ) {
272
- add_meta_box( 'mla-gallery-in', __( 'Gallery in', 'media-library-assistant' ), 'MLAEdit::mla_gallery_in_handler', 'attachment', 'normal', 'core' );
273
- }
274
 
275
- if ( MLAOptions::$process_mla_gallery_in ) {
276
- add_meta_box( 'mla-mla-gallery-in', __( 'MLA Gallery in', 'media-library-assistant' ), 'MLAEdit::mla_mla_gallery_in_handler', 'attachment', 'normal', 'core' );
 
277
  }
278
  } // mla_add_meta_boxes_action
279
 
@@ -559,11 +588,70 @@ class MLAEdit {
559
  MLAData::mla_update_single_item( $post_ID, $new_data );
560
  }
561
  } // mla_edit_attachment_action
562
-
563
  /**
564
- * Display taxonomy "checklist" form fields
565
  *
566
  * Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
567
  * Includes the "? Search" area to filter the term checklist by entering part
568
  * or all of a word/phrase in the term label.
569
  * Output to the Media/Edit Media screen and to the Media Manager Modal Window.
@@ -575,40 +663,55 @@ class MLAEdit {
575
  *
576
  * @return void Echoes HTML for the form fields
577
  */
578
- public static function mla_hierarchical_meta_box( $post, $box ) {
 
 
579
  $defaults = array('taxonomy' => 'category', 'in_modal' => false );
580
- $post_id = $post->ID;
581
-
582
  if ( !isset( $box['args'] ) || !is_array( $box['args'] ) ) {
583
  $args = array();
584
  } else {
585
  $args = $box['args'];
586
  }
587
-
588
  extract( wp_parse_args( $args, $defaults ), EXTR_SKIP );
589
  $tax = get_taxonomy( $taxonomy );
590
  $name = ( $taxonomy == 'category' ) ? 'post_category' : 'tax_input[' . $taxonomy . ']';
591
 
 
 
 
 
592
  if ( $in_modal ) {
593
- $div_taxonomy_id = "taxonomy-{$taxonomy}";
594
- $tabs_ul_id = "{$taxonomy}-tabs";
595
- $tab_all_id = "{$taxonomy}-all";
596
- $tab_all_ul_id = "{$taxonomy}checklist";
597
- $tab_pop_id = "{$taxonomy}-pop";
598
- $tab_pop_ul_id = "{$taxonomy}checklist-pop";
599
- $input_terms_name = "attachments[{$post_id}][{$name}]";
600
- $input_terms_id = "{$name}-id";
601
- $div_adder_id = "{$taxonomy}-adder";
602
- $link_adder_id = "{$taxonomy}-add-toggle";
603
- $link_adder_p_id = "{$taxonomy}-add";
604
- $div_search_id = "{$taxonomy}-searcher";
605
- $link_search_id = "{$taxonomy}-search-toggle";
606
- $link_search_p_id = "{$taxonomy}-search";
 
 
 
 
 
 
607
  $input_new_name = "new{$taxonomy}";
608
- $input_new_id = "new{$taxonomy}";
609
  $input_new_parent_name = "new{$taxonomy}_parent";
610
- $input_new_submit_id = "{$taxonomy}-add-submit";
611
- $span_ajax_id = "{$taxonomy}-ajax-response";
 
 
 
612
  } else {
613
  $div_taxonomy_id = "taxonomy-{$taxonomy}";
614
  $tabs_ul_id = "{$taxonomy}-tabs";
@@ -619,42 +722,51 @@ class MLAEdit {
619
  $input_terms_name = "{$name}[]";
620
  $input_terms_id = "{$name}-id";
621
  $div_adder_id = "{$taxonomy}-adder";
 
622
  $link_adder_id = "{$taxonomy}-add-toggle";
623
  $link_adder_p_id = "{$taxonomy}-add";
624
  $div_search_id = "{$taxonomy}-searcher";
 
625
  $link_search_id = "{$taxonomy}-search-toggle";
626
  $link_search_p_id = "{$taxonomy}-search";
627
  $input_new_name = "new{$taxonomy}";
628
  $input_new_id = "new{$taxonomy}";
629
  $input_new_parent_name = "new{$taxonomy}_parent";
630
  $input_new_submit_id = "{$taxonomy}-add-submit";
631
- $span_ajax_id = "{$taxonomy}-ajax-response";
 
 
 
632
  }
633
-
634
-
635
  ?>
636
  <div id="<?php echo $div_taxonomy_id; ?>" class="categorydiv">
637
  <ul id="<?php echo $tabs_ul_id; ?>" class="category-tabs">
638
  <li class="tabs"><a href="#<?php echo $tab_all_id; ?>"><?php echo $tax->labels->all_items; ?></a></li>
639
  <li class="hide-if-no-js"><a href="#<?php echo $tab_pop_id; ?>"><?php _e( 'Most Used' ); ?></a></li>
640
  </ul>
641
-
642
  <div id="<?php echo $tab_pop_id; ?>" class="tabs-panel" style="display: none;">
643
  <ul id="<?php echo $tab_pop_ul_id; ?>" class="categorychecklist form-no-clear" >
644
  <?php $popular_ids = wp_popular_terms_checklist($taxonomy); ?>
645
  </ul>
646
  </div>
647
-
648
  <div id="<?php echo $tab_all_id; ?>" class="tabs-panel">
649
  <?php
650
- echo "<input type='hidden' name='{$input_terms_name}' id='{$input_terms_id}' value='0' />"; // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks.
 
651
  ?>
652
  <ul id="<?php echo $tab_all_ul_id; ?>" data-wp-lists="list:<?php echo $taxonomy?>" class="categorychecklist form-no-clear">
 
653
  <?php wp_terms_checklist($post->ID, array( 'taxonomy' => $taxonomy, 'popular_cats' => $popular_ids ) ) ?>
 
 
 
 
654
  </ul>
655
  </div>
656
  <?php if ( current_user_can($tax->cap->edit_terms) ) : ?>
657
- <div id="<?php echo $div_adder_id; ?>" class="wp-hidden-children">
658
  <h4>
659
  <a id="<?php echo $link_adder_id; ?>" href="#<?php echo $link_adder_p_id; ?>" class="hide-if-no-js">
660
  <?php
@@ -665,33 +777,100 @@ class MLAEdit {
665
  &nbsp;&nbsp;
666
  <a id="<?php echo $link_search_id; ?>" href="#<?php echo $link_search_p_id; ?>" class="hide-if-no-js">
667
  <?php
668
- echo __( '? Search', 'media-library-assistant' );
669
  ?>
670
  </a>
671
  </h4>
672
  <p id="<?php echo $link_adder_p_id; ?>" class="category-add wp-hidden-child">
673
  <label class="screen-reader-text" for="<?php echo $input_new_name; ?>"><?php echo $tax->labels->add_new_item; ?></label>
674
  <input type="text" name="<?php echo $input_new_name; ?>" id="<?php echo $input_new_id; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->new_item_name ); ?>" aria-required="true"/>
 
 
675
  <label class="screen-reader-text" for="<?php echo $input_new_parent_name; ?>">
676
  <?php echo $tax->labels->parent_item_colon; ?>
677
  </label>
678
  <?php wp_dropdown_categories( array( 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'name' => $input_new_parent_name, 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '&mdash; ' . $tax->labels->parent_item . ' &mdash;' ) ); ?>
679
- <input type="button" id="<?php echo $input_new_submit_id; ?>" data-wp-lists="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add" class="button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" />
 
 
 
680
  <?php wp_nonce_field( 'add-'.$taxonomy, '_ajax_nonce-add-'.$taxonomy, false ); ?>
681
- <span id="<?php echo $span_ajax_id; ?>"></span>
682
  </p>
683
  </div>
684
- <div id="<?php echo $div_search_id; ?>" class="wp-hidden-children">
685
  <p id="<?php echo $link_search_p_id; ?>" class="category-add wp-hidden-child">
686
- <label class="screen-reader-text" for="search-<?php echo $taxonomy; ?>"><?php echo $tax->labels->search_items; ?></label>
687
- <input type="text" name="search-<?php echo $taxonomy; ?>" id="search-<?php echo $taxonomy; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->search_items ); ?>" aria-required="true"/>
688
  <?php wp_nonce_field( 'search-'.$taxonomy, '_ajax_nonce-search-'.$taxonomy, false ); ?>
689
- <span id="<?php echo $taxonomy; ?>-ajax-response"></span>
690
  </p>
691
  </div>
692
  <?php endif; ?>
693
  </div>
694
  <?php
695
- } // mla_hierarchical_meta_box
696
  } //Class MLAEdit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
697
  ?>
82
  * @return void echoes the HTML markup for the label and value
83
  */
84
  public static function mla_admin_init_action( ) {
85
+ //error_log( 'DEBUG: MLAEdit::mla_admin_init_action() $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
86
+
87
+ add_post_type_support( 'attachment', 'custom-fields' );
88
 
89
  /*
90
+ * If there's no action variable, we have nothing more to do
91
  */
92
+ if ( ! isset( $_POST['action'] ) ) {
93
+ return;
94
+ }
 
95
 
96
+ /*
97
+ * For flat taxonomies that use the checklist meta box, substitute our own handler
98
+ * for /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term().
99
+ */
100
+ if ( ( defined('DOING_AJAX') && DOING_AJAX ) && ( 'add-' == substr( $_POST['action'], 0, 4 ) ) ) {
101
+ $key = substr( $_POST['action'], 4 );
102
+ if ( MLAOptions::mla_taxonomy_support( $key, 'flat-checklist' ) ) {
103
+ self::_mla_ajax_add_flat_term( $key );
104
+ /* note: this function sends an Ajax response and then dies; no return */
105
+ }
106
+ }
107
+
108
+ /*
109
+ * For flat taxonomies that use the checklist meta box, convert the term array
110
+ * back into a string of slug values.
111
+ */
112
+ if ( 'editpost' == $_POST['action'] ) {
113
+ if ( isset( $_POST['tax_input'] ) && is_array( $_POST['tax_input'] ) ) {
114
+ foreach( $_POST['tax_input'] as $key => $value ) {
115
+ if ( is_array( $value ) ) {
116
+ $tax = get_taxonomy( $key );
117
+ if ( $tax->hierarchical ) {
118
+ continue;
119
  }
120
+
121
+ if ( false !== ( $bad_term = array_search( '0', $value ) ) ) {
122
+ unset( $value[ $bad_term ] );
123
  }
 
 
 
 
124
 
125
+ $comma = _x( ',', 'tag_delimiter', 'media-library-assistant' );
126
+ $_POST['tax_input'][ $key ] = implode( $comma, $value );
127
+ $_REQUEST['tax_input'][ $key ] = implode( $comma, $value );
128
+ } // array value
129
+ } // foreach tax_input
130
+ } // array tax_input
131
+ } // action editpost
132
  }
133
 
134
  /**
144
  if ( ( 'post.php' != $page_hook ) || ( ! isset( $_REQUEST['post'] ) ) || ( ! isset( $_REQUEST['action'] ) ) || ( 'edit' != $_REQUEST['action'] ) ) {
145
  return;
146
  }
147
+
148
  $post = get_post( $_REQUEST['post'] );
149
  if ( 'attachment' != $post->post_type ) {
150
  return;
240
  if ( 'attachment' != $post_type ) {
241
  return;
242
  }
243
+
244
  /*
245
+ * Use the mla_checklist_meta_box callback function for MLA supported taxonomies
246
  */
247
  global $wp_meta_boxes;
248
  $screen = convert_to_screen( 'attachment' );
249
  $page = $screen->id;
 
250
 
251
+ if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_EDIT_MEDIA_SEARCH_TAXONOMY ) ) {
252
+ $taxonomies = get_taxonomies( array ( 'show_ui' => true ), 'objects' );
253
+ foreach ( $taxonomies as $key => $value ) {
254
+ if ( MLAOptions::mla_taxonomy_support( $key ) ) {
255
+ if ( $value->hierarchical ) {
256
  foreach ( array_keys( $wp_meta_boxes[$page] ) as $a_context ) {
257
  foreach ( array('high', 'sorted', 'core', 'default', 'low') as $a_priority ) {
258
  if ( isset( $wp_meta_boxes[$page][$a_context][$a_priority][ $key . 'div' ] ) ) {
259
  $box = &$wp_meta_boxes[$page][$a_context][$a_priority][ $key . 'div' ];
 
260
  if ( 'post_categories_meta_box' == $box['callback'] ) {
261
+ $box['callback'] = 'MLAEdit::mla_checklist_meta_box';
262
  }
263
  } // isset $box
264
  } // foreach priority
265
  } // foreach context
266
+ } /* hierarchical */ elseif ( MLAOptions::mla_taxonomy_support( $key, 'flat-checklist' ) ) {
267
+ foreach ( array_keys( $wp_meta_boxes[$page] ) as $a_context ) {
268
+ foreach ( array('high', 'sorted', 'core', 'default', 'low') as $a_priority ) {
269
+ if ( isset( $wp_meta_boxes[$page][$a_context][$a_priority][ 'tagsdiv-' . $key ] ) ) {
270
+ $box = &$wp_meta_boxes[$page][$a_context][$a_priority][ 'tagsdiv-' . $key ];
271
+ if ( 'post_tags_meta_box' == $box['callback'] ) {
272
+ $box['callback'] = 'MLAEdit::mla_checklist_meta_box';
273
+ }
274
+ } // isset $box
275
+ } // foreach priority
276
+ } // foreach context
277
+ } // flat checklist
278
+ } // is supported
279
+ } // foreach
280
+ } // MLA_EDIT_MEDIA_SEARCH_TAXONOMY
281
 
282
+ if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_EDIT_MEDIA_META_BOXES ) ) {
283
+ add_meta_box( 'mla-parent-info', __( 'Parent Info', 'media-library-assistant' ), 'MLAEdit::mla_parent_info_handler', 'attachment', 'normal', 'core' );
284
+ add_meta_box( 'mla-menu-order', __( 'Menu Order', 'media-library-assistant' ), 'MLAEdit::mla_menu_order_handler', 'attachment', 'normal', 'core' );
285
 
286
+ $image_metadata = get_metadata( 'post', $post->ID, '_wp_attachment_metadata', true );
287
+ if ( !empty( $image_metadata ) ) {
288
+ add_meta_box( 'mla-image-metadata', __( 'Attachment Metadata', 'media-library-assistant' ), 'MLAEdit::mla_image_metadata_handler', 'attachment', 'normal', 'core' );
289
+ }
290
 
291
+ if ( MLAOptions::$process_featured_in ) {
292
+ add_meta_box( 'mla-featured-in', __( 'Featured in', 'media-library-assistant' ), 'MLAEdit::mla_featured_in_handler', 'attachment', 'normal', 'core' );
293
+ }
294
 
295
+ if ( MLAOptions::$process_inserted_in ) {
296
+ add_meta_box( 'mla-inserted-in', __( 'Inserted in', 'media-library-assistant' ), 'MLAEdit::mla_inserted_in_handler', 'attachment', 'normal', 'core' );
297
+ }
298
 
299
+ if ( MLAOptions::$process_gallery_in ) {
300
+ add_meta_box( 'mla-gallery-in', __( 'Gallery in', 'media-library-assistant' ), 'MLAEdit::mla_gallery_in_handler', 'attachment', 'normal', 'core' );
301
+ }
302
 
303
+ if ( MLAOptions::$process_mla_gallery_in ) {
304
+ add_meta_box( 'mla-mla-gallery-in', __( 'MLA Gallery in', 'media-library-assistant' ), 'MLAEdit::mla_mla_gallery_in_handler', 'attachment', 'normal', 'core' );
305
+ }
306
  }
307
  } // mla_add_meta_boxes_action
308
 
588
  MLAData::mla_update_single_item( $post_ID, $new_data );
589
  }
590
  } // mla_edit_attachment_action
591
+
592
  /**
593
+ * Add flat taxonomy term from "checklist" meta box on the Media Manager Modal Window
594
  *
595
  * Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.
596
+ *
597
+ * @since 1.80
598
+ *
599
+ * @param string The taxonomy name, from $_POST['action']
600
+ *
601
+ * @return void Sends JSON response with updated HTML for the checklist
602
+ */
603
+ private static function _mla_ajax_add_flat_term( $key ) {
604
+ $taxonomy = get_taxonomy( $key );
605
+ check_ajax_referer( $_POST['action'], '_ajax_nonce-add-' . $key, true );
606
+
607
+ if ( !current_user_can( $taxonomy->cap->edit_terms ) ) {
608
+ wp_die( -1 );
609
+ }
610
+
611
+ $new_names = explode( ',', $_POST[ 'new' . $key ] );
612
+ $new_terms_markup = '';
613
+ foreach( $new_names as $name ) {
614
+ if ( '' === sanitize_title( $name ) ) {
615
+ continue;
616
+ }
617
+
618
+ if ( ! $id = term_exists( $name, $key ) ) {
619
+ $id = wp_insert_term( $name, $key );
620
+ }
621
+
622
+ if ( is_wp_error( $id ) ) {
623
+ continue;
624
+ }
625
+
626
+ if ( is_array( $id ) ) {
627
+ $id = absint( $id['term_id'] );
628
+ } else {
629
+ continue;
630
+ }
631
+ $term = get_term( $id, $key );
632
+ $name = $term->name;
633
+ $new_terms_markup .= "<li id='{$key}-{$id}'><label class='selectit'><input value='{$name}' type='checkbox' name='tax_input[{$key}][]' id='in-{$key}-{$id}' checked='checked' />{$name}</label></li>\n";
634
+ } // foreach new_name
635
+
636
+ $input_new_parent_name = "new{$key}_parent";
637
+ $supplemental = "<input type='hidden' name='{$input_new_parent_name}' id='{$input_new_parent_name}' value='-1' />";
638
+
639
+ $add = array(
640
+ 'what' => $key,
641
+ 'id' => $id,
642
+ 'data' => $new_terms_markup,
643
+ 'position' => -1,
644
+ 'supplemental' => array( 'newcat_parent' => $supplemental )
645
+ );
646
+
647
+ $x = new WP_Ajax_Response( $add );
648
+ $x->send();
649
+ } // _mla_ajax_add_flat_term
650
+
651
+ /**
652
+ * Display taxonomy "checklist" form fields
653
+ *
654
+ * Adapted from /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term().
655
  * Includes the "? Search" area to filter the term checklist by entering part
656
  * or all of a word/phrase in the term label.
657
  * Output to the Media/Edit Media screen and to the Media Manager Modal Window.
663
  *
664
  * @return void Echoes HTML for the form fields
665
  */
666
+ public static function mla_checklist_meta_box( $target_post, $box ) {
667
+ global $post;
668
+
669
  $defaults = array('taxonomy' => 'category', 'in_modal' => false );
670
+ $post_id = $target_post->ID;
671
+
672
  if ( !isset( $box['args'] ) || !is_array( $box['args'] ) ) {
673
  $args = array();
674
  } else {
675
  $args = $box['args'];
676
  }
677
+
678
  extract( wp_parse_args( $args, $defaults ), EXTR_SKIP );
679
  $tax = get_taxonomy( $taxonomy );
680
  $name = ( $taxonomy == 'category' ) ? 'post_category' : 'tax_input[' . $taxonomy . ']';
681
 
682
+ /*
683
+ * Id and Name attributes in the popup Modal Window must not conflict with
684
+ * the underlying Edit Post/Page window, so we prefix with "mla-"/"mla_".
685
+ */
686
  if ( $in_modal ) {
687
+ if ( empty( $post ) ) {
688
+ $post = $target_post; // for wp_popular_terms_checklist
689
+ }
690
+
691
+ $div_taxonomy_id = "mla-taxonomy-{$taxonomy}";
692
+ $tabs_ul_id = "mla-{$taxonomy}-tabs";
693
+ $tab_all_id = "mla-{$taxonomy}-all";
694
+ $tab_all_ul_id = "mla-{$taxonomy}-checklist";
695
+ $tab_pop_id = "mla-{$taxonomy}-pop";
696
+ $tab_pop_ul_id = "mla-{$taxonomy}-checklist-pop";
697
+ $input_terms_name = "mla_attachments[{$post_id}][{$name}][]";
698
+ $input_terms_id = "mla-{$name}-id";
699
+ $div_adder_id = "mla-{$taxonomy}-adder";
700
+ $div_adder_class = "mla-hidden-children";
701
+ $link_adder_id = "mla-{$taxonomy}-add-toggle";
702
+ $link_adder_p_id = "mla-{$taxonomy}-add";
703
+ $div_search_id = "mla-{$taxonomy}-searcher";
704
+ $div_search_class = "mla-hidden-children";
705
+ $link_search_id = "mla-{$taxonomy}-search-toggle";
706
+ $link_search_p_id = "mla-{$taxonomy}-search";
707
  $input_new_name = "new{$taxonomy}";
708
+ $input_new_id = "mla-new-{$taxonomy}";
709
  $input_new_parent_name = "new{$taxonomy}_parent";
710
+ $input_new_submit_id = "mla-{$taxonomy}-add-submit";
711
+ $span_new_ajax_id = "mla-{$taxonomy}-ajax-response";
712
+ $input_search_name = "search-{$taxonomy}";
713
+ $input_search_id = "mla-search-{$taxonomy}";
714
+ $span_search_ajax_id = "mla-{$taxonomy}-search-ajax-response";
715
  } else {
716
  $div_taxonomy_id = "taxonomy-{$taxonomy}";
717
  $tabs_ul_id = "{$taxonomy}-tabs";
722
  $input_terms_name = "{$name}[]";
723
  $input_terms_id = "{$name}-id";
724
  $div_adder_id = "{$taxonomy}-adder";
725
+ $div_adder_class = "wp-hidden-children";
726
  $link_adder_id = "{$taxonomy}-add-toggle";
727
  $link_adder_p_id = "{$taxonomy}-add";
728
  $div_search_id = "{$taxonomy}-searcher";
729
+ $div_search_class = "wp-hidden-children";
730
  $link_search_id = "{$taxonomy}-search-toggle";
731
  $link_search_p_id = "{$taxonomy}-search";
732
  $input_new_name = "new{$taxonomy}";
733
  $input_new_id = "new{$taxonomy}";
734
  $input_new_parent_name = "new{$taxonomy}_parent";
735
  $input_new_submit_id = "{$taxonomy}-add-submit";
736
+ $span_new_ajax_id = "{$taxonomy}-ajax-response";
737
+ $input_search_name = "search-{$taxonomy}";
738
+ $input_search_id = "search-{$taxonomy}";
739
+ $span_search_ajax_id = "{$taxonomy}-search-ajax-response";
740
  }
 
 
741
  ?>
742
  <div id="<?php echo $div_taxonomy_id; ?>" class="categorydiv">
743
  <ul id="<?php echo $tabs_ul_id; ?>" class="category-tabs">
744
  <li class="tabs"><a href="#<?php echo $tab_all_id; ?>"><?php echo $tax->labels->all_items; ?></a></li>
745
  <li class="hide-if-no-js"><a href="#<?php echo $tab_pop_id; ?>"><?php _e( 'Most Used' ); ?></a></li>
746
  </ul>
747
+
748
  <div id="<?php echo $tab_pop_id; ?>" class="tabs-panel" style="display: none;">
749
  <ul id="<?php echo $tab_pop_ul_id; ?>" class="categorychecklist form-no-clear" >
750
  <?php $popular_ids = wp_popular_terms_checklist($taxonomy); ?>
751
  </ul>
752
  </div>
753
+
754
  <div id="<?php echo $tab_all_id; ?>" class="tabs-panel">
755
  <?php
756
+ // Allows for an empty term set to be sent. 0 is an invalid Term ID and will be ignored by empty() checks.
757
+ echo "<input type='hidden' name='{$input_terms_name}' id='{$input_terms_id}' value='0' />";
758
  ?>
759
  <ul id="<?php echo $tab_all_ul_id; ?>" data-wp-lists="list:<?php echo $taxonomy?>" class="categorychecklist form-no-clear">
760
+ <?php if ( $tax->hierarchical ): ?>
761
  <?php wp_terms_checklist($post->ID, array( 'taxonomy' => $taxonomy, 'popular_cats' => $popular_ids ) ) ?>
762
+ <?php else: ?>
763
+ <?php $checklist_walker = new MLA_Checklist_Walker; ?>
764
+ <?php wp_terms_checklist($post->ID, array( 'taxonomy' => $taxonomy, 'popular_cats' => $popular_ids, 'walker' => $checklist_walker ) ) ?>
765
+ <?php endif; ?>
766
  </ul>
767
  </div>
768
  <?php if ( current_user_can($tax->cap->edit_terms) ) : ?>
769
+ <div id="<?php echo $div_adder_id; ?>" class="<?php echo $div_adder_class; ?>">
770
  <h4>
771
  <a id="<?php echo $link_adder_id; ?>" href="#<?php echo $link_adder_p_id; ?>" class="hide-if-no-js">
772
  <?php
777
  &nbsp;&nbsp;
778
  <a id="<?php echo $link_search_id; ?>" href="#<?php echo $link_search_p_id; ?>" class="hide-if-no-js">
779
  <?php
780
+ echo __( '?&nbsp;Search', 'media-library-assistant' );
781
  ?>
782
  </a>
783
  </h4>
784
  <p id="<?php echo $link_adder_p_id; ?>" class="category-add wp-hidden-child">
785
  <label class="screen-reader-text" for="<?php echo $input_new_name; ?>"><?php echo $tax->labels->add_new_item; ?></label>
786
  <input type="text" name="<?php echo $input_new_name; ?>" id="<?php echo $input_new_id; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->new_item_name ); ?>" aria-required="true"/>
787
+
788
+ <?php if ( $tax->hierarchical ): ?>
789
  <label class="screen-reader-text" for="<?php echo $input_new_parent_name; ?>">
790
  <?php echo $tax->labels->parent_item_colon; ?>
791
  </label>
792
  <?php wp_dropdown_categories( array( 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'name' => $input_new_parent_name, 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '&mdash; ' . $tax->labels->parent_item . ' &mdash;' ) ); ?>
793
+ <?php else:
794
+ echo "<input type='hidden' name='{$input_new_parent_name}' id='{$input_new_parent_name}' value='-1' />";
795
+ endif; ?>
796
+ <input type="button" id="<?php echo $input_new_submit_id; ?>" data-wp-lists="add:<?php echo $tab_all_ul_id ?>:<?php echo $link_adder_p_id ?>" class="button category-add-submit mla-taxonomy-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" />
797
  <?php wp_nonce_field( 'add-'.$taxonomy, '_ajax_nonce-add-'.$taxonomy, false ); ?>
798
+ <span id="<?php echo $span_new_ajax_id; ?>"></span>
799
  </p>
800
  </div>
801
+ <div id="<?php echo $div_search_id; ?>" class="<?php echo $div_search_class; ?>">
802
  <p id="<?php echo $link_search_p_id; ?>" class="category-add wp-hidden-child">
803
+ <label class="screen-reader-text" for="<?php echo $input_search_name; ?>"><?php echo $tax->labels->search_items; ?></label>
804
+ <input type="text" name="<?php echo $input_search_name; ?>" id="<?php echo $input_search_id; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->search_items ); ?>" aria-required="true"/>
805
  <?php wp_nonce_field( 'search-'.$taxonomy, '_ajax_nonce-search-'.$taxonomy, false ); ?>
806
+ <span id="<?php echo $span_search_ajax_id; ?>"></span>
807
  </p>
808
  </div>
809
  <?php endif; ?>
810
  </div>
811
  <?php
812
+ } // mla_checklist_meta_box
813
  } //Class MLAEdit
814
+
815
+ /**
816
+ * Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output
817
+ *
818
+ * This walker is used to build the meta boxes for flat taxonomies, e.g., Tags, Att. Tags.
819
+ * Class Walker_Category is defined in /wp-includes/category-template.php.
820
+ * Class Walker is defined in /wp-includes/class-wp-walker.php.
821
+ *
822
+ * @package Media Library Assistant
823
+ * @since 1.80
824
+ */
825
+ class MLA_Checklist_Walker extends Walker_Category {
826
+ /**
827
+ * Start the element output.
828
+ *
829
+ * @see Walker::start_el()
830
+ *
831
+ * @since 1.80
832
+ *
833
+ * @param string Passed by reference. Used to append additional content.
834
+ * @param object Taxonomy data object.
835
+ * @param int Depth of category in reference to parents. Default 0.
836
+ * @param array An array of arguments. @see wp_list_categories()
837
+ * @param int ID of the current category.
838
+ */
839
+ function start_el( &$output, $taxonomy_object, $depth = 0, $args = array(), $id = 0 ) {
840
+ extract($args);
841
+
842
+ if ( empty( $taxonomy ) ) {
843
+ $taxonomy = 'category';
844
+ }
845
+
846
+ if ( 'category' == $taxonomy ) {
847
+ $name = 'post_category';
848
+ } else {
849
+ $name = 'tax_input['.$taxonomy.']';
850
+ }
851
+
852
+ $class = in_array( $taxonomy_object->term_id, $popular_cats ) ? ' class="popular-category"' : '';
853
+
854
+ /*
855
+ * For flat taxonomies, <input> value is $taxonomy_object->name instead of $taxonomy_object->term_id
856
+ */
857
+ $output .= "\n<li id='{$taxonomy}-{$taxonomy_object->term_id}'$class>" . '<label class="selectit MLA"><input value="' . $taxonomy_object->name . '" type="checkbox" name="'.$name.'[]" id="in-'.$taxonomy.'-' . $taxonomy_object->term_id . '"' . checked( in_array( $taxonomy_object->term_id, $selected_cats ), true, false ) . disabled( empty( $args['disabled'] ), false, false ) . ' /> ' . esc_html( apply_filters('the_category', $taxonomy_object->name )) . '</label>';
858
+ }
859
+
860
+ /**
861
+ * Ends the element output, if needed.
862
+ *
863
+ * @see Walker::end_el()
864
+ *
865
+ * @since 1.80
866
+ *
867
+ * @param string $output Passed by reference. Used to append additional content.
868
+ * @param object $category The current term object.
869
+ * @param int $depth Depth of the term in reference to parents. Default 0.
870
+ * @param array $args An array of arguments. @see wp_terms_checklist()
871
+ */
872
+ function end_el( &$output, $category, $depth = 0, $args = array() ) {
873
+ $output .= "</li>\n";
874
+ }
875
+ }// Class MLA_Checklist_Walker
876
  ?>
includes/class-mla-list-table.php CHANGED
@@ -184,7 +184,7 @@ class MLA_List_Table extends WP_List_Table {
184
 
185
  foreach ( $num_posts as $mime_type => $number ) {
186
  if ( ( $number > 0 ) && ( $mime_type <> 'trash' ) ) {
187
- $available[ ] = $mime_type;
188
  }
189
  }
190
 
@@ -411,7 +411,7 @@ class MLA_List_Table extends WP_List_Table {
411
  $taxonomy = substr( $column_name, 2 );
412
  $tax_object = get_taxonomy( $taxonomy );
413
  $terms = get_object_term_cache( $item->ID, $taxonomy );
414
-
415
  if ( false === $terms ) {
416
  $terms = wp_get_object_terms( $item->ID, $taxonomy );
417
  }
@@ -424,7 +424,7 @@ class MLA_List_Table extends WP_List_Table {
424
  $list = array();
425
  foreach ( $terms as $term ) {
426
  $term_name = esc_html( sanitize_term_field( 'name', $term->name, $term->term_id, 'category', 'display' ) );
427
- $list[ ] = sprintf( '<a href="%1$s" title="' . __( 'Filter by', 'media-library-assistant' ) . ' &#8220;%2$s&#8221;">%3$s</a>', esc_url( add_query_arg( array_merge( self::mla_submenu_arguments( false ), array(
428
  'page' => MLA::ADMIN_PAGE_SLUG,
429
  'mla-tax' => $taxonomy,
430
  'mla-term' => $term->slug,
@@ -450,9 +450,9 @@ class MLA_List_Table extends WP_List_Table {
450
  * They are not links because no search will match them.
451
  */
452
  if ( is_array( $value ) ) {
453
- $list[ ] = 'array( ' . implode( ', ', $value ) . ' )';
454
  } else {
455
- $list[ ] = sprintf( '<a href="%1$s" title="' . __( 'Filter by', 'media-library-assistant' ) . ' &#8220;%2$s&#8221;">%3$s</a>', esc_url( add_query_arg( array_merge( self::mla_submenu_arguments( false ), array(
456
  'page' => MLA::ADMIN_PAGE_SLUG,
457
  'mla-metakey' => urlencode( MLA_List_Table::$default_columns[ $column_name ] ),
458
  'mla-metavalue' => urlencode( $value ),
@@ -614,20 +614,25 @@ class MLA_List_Table extends WP_List_Table {
614
  if ( false === $terms ) {
615
  $terms = wp_get_object_terms( $item->ID, $tax_name );
616
  }
 
 
 
 
 
617
  $ids = array();
618
 
619
  if ( $tax_object->hierarchical ) {
620
  foreach( $terms as $term ) {
621
  $ids[] = $term->term_id;
622
  }
623
-
624
  $inline_data .= ' <div class="mla_category" id="' . $tax_name . '_' . $item->ID . '">'
625
  . implode( ',', $ids ) . "</div>\r\n";
626
  } else {
627
  foreach( $terms as $term ) {
628
  $ids[] = $term->name;
629
  }
630
-
631
  $inline_data .= ' <div class="mla_tags" id="'.$tax_name.'_'.$item->ID. '">'
632
  . esc_attr( implode( ', ', $ids ) ) . "</div>\r\n";
633
  }
@@ -1153,10 +1158,10 @@ class MLA_List_Table extends WP_List_Table {
1153
  /*
1154
  * Search box arguments
1155
  */
1156
- if ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla_search_fields'] ) ) {
1157
  $submenu_arguments['s'] = $_REQUEST['s'];
1158
  $submenu_arguments['mla_search_connector'] = $_REQUEST['mla_search_connector'];
1159
- $submenu_arguments['mla_search_fields'] = $_REQUEST['mla_search_fields'];
1160
  }
1161
 
1162
  /*
184
 
185
  foreach ( $num_posts as $mime_type => $number ) {
186
  if ( ( $number > 0 ) && ( $mime_type <> 'trash' ) ) {
187
+ $available[] = $mime_type;
188
  }
189
  }
190
 
411
  $taxonomy = substr( $column_name, 2 );
412
  $tax_object = get_taxonomy( $taxonomy );
413
  $terms = get_object_term_cache( $item->ID, $taxonomy );
414
+
415
  if ( false === $terms ) {
416
  $terms = wp_get_object_terms( $item->ID, $taxonomy );
417
  }
424
  $list = array();
425
  foreach ( $terms as $term ) {
426
  $term_name = esc_html( sanitize_term_field( 'name', $term->name, $term->term_id, 'category', 'display' ) );
427
+ $list[] = sprintf( '<a href="%1$s" title="' . __( 'Filter by', 'media-library-assistant' ) . ' &#8220;%2$s&#8221;">%3$s</a>', esc_url( add_query_arg( array_merge( self::mla_submenu_arguments( false ), array(
428
  'page' => MLA::ADMIN_PAGE_SLUG,
429
  'mla-tax' => $taxonomy,
430
  'mla-term' => $term->slug,
450
  * They are not links because no search will match them.
451
  */
452
  if ( is_array( $value ) ) {
453
+ $list[] = 'array( ' . implode( ', ', $value ) . ' )';
454
  } else {
455
+ $list[] = sprintf( '<a href="%1$s" title="' . __( 'Filter by', 'media-library-assistant' ) . ' &#8220;%2$s&#8221;">%3$s</a>', esc_url( add_query_arg( array_merge( self::mla_submenu_arguments( false ), array(
456
  'page' => MLA::ADMIN_PAGE_SLUG,
457
  'mla-metakey' => urlencode( MLA_List_Table::$default_columns[ $column_name ] ),
458
  'mla-metavalue' => urlencode( $value ),
614
  if ( false === $terms ) {
615
  $terms = wp_get_object_terms( $item->ID, $tax_name );
616
  }
617
+
618
+ if ( is_wp_error( $terms ) || empty( $terms ) ) {
619
+ $terms = array();
620
+ }
621
+
622
  $ids = array();
623
 
624
  if ( $tax_object->hierarchical ) {
625
  foreach( $terms as $term ) {
626
  $ids[] = $term->term_id;
627
  }
628
+
629
  $inline_data .= ' <div class="mla_category" id="' . $tax_name . '_' . $item->ID . '">'
630
  . implode( ',', $ids ) . "</div>\r\n";
631
  } else {
632
  foreach( $terms as $term ) {
633
  $ids[] = $term->name;
634
  }
635
+
636
  $inline_data .= ' <div class="mla_tags" id="'.$tax_name.'_'.$item->ID. '">'
637
  . esc_attr( implode( ', ', $ids ) ) . "</div>\r\n";
638
  }
1158
  /*
1159
  * Search box arguments
1160
  */
1161
+ if ( !empty( $_REQUEST['s'] ) ) {
1162
  $submenu_arguments['s'] = $_REQUEST['s'];
1163
  $submenu_arguments['mla_search_connector'] = $_REQUEST['mla_search_connector'];
1164
+ $submenu_arguments['mla_search_fields'] = isset ( $_REQUEST['mla_search_fields'] ) ? $_REQUEST['mla_search_fields'] : array();
1165
  }
1166
 
1167
  /*
includes/class-mla-main.php CHANGED
@@ -29,7 +29,7 @@ class MLA {
29
  *
30
  * @var string
31
  */
32
- const CURRENT_MLA_VERSION = '1.71';
33
 
34
  /**
35
  * Slug for registering and enqueueing plugin style sheet
@@ -338,6 +338,8 @@ class MLA {
338
  * @return void
339
  */
340
  public static function mla_admin_menu_action( ) {
 
 
341
  if ( 'checked' != MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_DISPLAY_LIBRARY ) ) {
342
  add_action( 'load-upload.php', 'MLA::mla_load_media_action' );
343
  }
@@ -381,9 +383,7 @@ class MLA {
381
  } else {
382
  $menu_position = (integer) MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_ORDER );
383
  }
384
-
385
- if ( $menu_position ) {
386
- global $submenu_file, $submenu;
387
  foreach ( $submenu['upload.php'] as $menu_order => $menu_item ) {
388
  if ( self::ADMIN_PAGE_SLUG == $menu_item[2] ) {
389
  $submenu['upload.php'][$menu_position] = $menu_item;
@@ -681,6 +681,40 @@ class MLA {
681
  return $parent_file;
682
  }
683
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
684
  /**
685
  * Render the "Assistant" subpage in the Media section, using the list_table package
686
  *
@@ -708,12 +742,12 @@ class MLA {
708
  $bulk_action = self::_current_bulk_action();
709
 
710
  $page_title = MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_PAGE_TITLE );
711
- echo "<div class=\"wrap\">\r\n";
712
- echo "<div id=\"icon-upload\" class=\"icon32\"><br/></div>\r\n";
713
  echo "<h2>{$page_title}"; // trailing </h2> is action-specific
714
 
715
  if ( !current_user_can( 'upload_files' ) ) {
716
- echo " - Error</h2>\r\n";
717
  wp_die( __( 'You do not have permission to manage attachments.', 'media-library-assistant' ) );
718
  }
719
 
@@ -766,8 +800,41 @@ class MLA {
766
 
767
  /*
768
  * Copy the edit form contents to $new_data
 
769
  */
770
  $new_data = array() ;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
771
  if ( isset( $_REQUEST['post_parent'] ) ) {
772
  if ( is_numeric( $_REQUEST['post_parent'] ) ) {
773
  $new_data['post_parent'] = $_REQUEST['post_parent'];
@@ -780,6 +847,18 @@ class MLA {
780
  }
781
  }
782
 
 
 
 
 
 
 
 
 
 
 
 
 
783
  /*
784
  * Custom field support
785
  */
@@ -816,6 +895,12 @@ class MLA {
816
  $page_content['message'] .= $item_content['message'] . '<br>';
817
  } // foreach cb_attachment
818
 
 
 
 
 
 
 
819
  unset( $_REQUEST['post_parent'] );
820
  unset( $_REQUEST['post_author'] );
821
  unset( $_REQUEST['tax_input'] );
@@ -920,9 +1005,9 @@ class MLA {
920
  $messages_class = 'mla_messages';
921
  }
922
 
923
- echo " <div class=\"{$messages_class}\"><p>\r\n";
924
- echo ' ' . $page_content['message'] . "\r\n";
925
- echo " </p></div>\r\n"; // id="message"
926
  }
927
 
928
  echo $page_content['body'];
@@ -931,11 +1016,15 @@ class MLA {
931
  * Display Attachments list
932
  */
933
  if ( !empty( $_REQUEST['heading_suffix'] ) ) {
934
- echo ' - ' . esc_html( $_REQUEST['heading_suffix'] ) . "</h2>\r\n";
935
- } elseif ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla_search_fields'] ) ) {
936
- echo ' - search results for "' . esc_html( stripslashes( trim( $_REQUEST['s'] ) ) ) . "\"</h2>\r\n";
 
 
 
 
937
  } else {
938
- echo "</h2>\r\n";
939
  }
940
 
941
  if ( !empty( $page_content['message'] ) ) {
@@ -945,26 +1034,57 @@ class MLA {
945
  $messages_class = 'mla_messages';
946
  }
947
 
948
- echo " <div class=\"{$messages_class}\"><p>\r\n";
949
- echo ' ' . $page_content['message'] . "\r\n";
950
- echo " </p></div>\r\n"; // id="message"
951
  }
952
 
953
  /*
954
  * Optional - limit width of the views list
955
  */
956
- $view_width = MLAOptions::mla_get_option( MLAOptions::MLA_TABLE_VIEWS_WIDTH );
957
- if ( !empty( $view_width ) ) {
958
- if ( is_numeric( $view_width ) ) {
959
- $view_width .= 'px';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
960
  }
961
 
962
- echo " <style type='text/css'>\r\n";
963
- echo " ul.subsubsub {\r\n";
964
- echo " width: {$view_width};\r\n";
965
- echo " max-width: {$view_width};\r\n";
966
- echo " }\r\n";
967
- echo " </style>\r\n";
 
 
 
 
 
 
 
 
968
  }
969
 
970
  // Create an instance of our package class...
@@ -975,15 +1095,13 @@ class MLA {
975
  $MLAListTable->views();
976
 
977
  // Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions
978
- // echo '<form action="' . admin_url( 'upload.php' ) . '" method="get" id="mla-filter">' . "\r\n";
979
- echo '<form action="' . admin_url( 'upload.php?page=' . self::ADMIN_PAGE_SLUG ) . '" method="post" id="mla-filter">' . "\r\n";
980
- // echo '<form action="' . admin_url( 'upload.php?page=' . self::ADMIN_PAGE_SLUG ) . '" method="get" id="mla-filter">' . "\r\n";
981
  /*
982
  * Compose the Search Media box
983
  */
984
- if ( !empty( $_REQUEST['s'] ) && !empty( $_REQUEST['mla_search_fields'] ) ) {
985
  $search_value = esc_attr( stripslashes( trim( $_REQUEST['s'] ) ) );
986
- $search_fields = $_REQUEST['mla_search_fields'];
987
  $search_connector = $_REQUEST['mla_search_connector'];
988
  } else {
989
  $search_value = '';
@@ -991,54 +1109,54 @@ class MLA {
991
  $search_connector = 'AND';
992
  }
993
 
994
- echo '<p class="search-box">' . "\r\n";
995
- echo '<label class="screen-reader-text" for="media-search-input">' . __( 'Search Media', 'media-library-assistant' ) . ':</label>' . "\r\n";
996
- echo '<input type="text" size="45" id="media-search-input" name="s" value="' . $search_value . '" />' . "\r\n";
997
- echo '<input type="submit" name="mla-search-submit" id="search-submit" class="button" value="Search Media" /><br>' . "\r\n";
998
  if ( 'OR' == $search_connector ) {
999
- echo '<input type="radio" name="mla_search_connector" value="AND" />&nbsp;' . __( 'and', 'media-library-assistant' ) . "&nbsp;\r\n";
1000
- echo '<input type="radio" name="mla_search_connector" checked="checked" value="OR" />&nbsp;' . __( 'or', 'media-library-assistant' ) . "&nbsp;\r\n";
1001
  } else {
1002
- echo '<input type="radio" name="mla_search_connector" checked="checked" value="AND" />&nbsp;' . __( 'and', 'media-library-assistant' ) . "&nbsp;\r\n";
1003
- echo '<input type="radio" name="mla_search_connector" value="OR" />&nbsp;' . __( 'or', 'media-library-assistant' ) . "&nbsp;\r\n";
1004
  }
1005
 
1006
  if ( in_array( 'title', $search_fields ) ) {
1007
- echo '<input type="checkbox" name="mla_search_fields[]" id="search-title" checked="checked" value="title" />&nbsp;' . __( 'Title', 'media-library-assistant' ) . "&nbsp;\r\n";
1008
  } else {
1009
- echo '<input type="checkbox" name="mla_search_fields[]" id="search-title" value="title" />&nbsp;' . __( 'Title', 'media-library-assistant' ) . "&nbsp;\r\n";
1010
  }
1011
 
1012
  if ( in_array( 'name', $search_fields ) ) {
1013
- echo '<input type="checkbox" name="mla_search_fields[]" id="search-name" checked="checked" value="name" />&nbsp;' . __( 'Name', 'media-library-assistant' ) . "&nbsp;\r\n";
1014
  } else {
1015
- echo '<input type="checkbox" name="mla_search_fields[]" id="search-name" value="name" />&nbsp;' . __( 'Name', 'media-library-assistant' ) . "&nbsp;\r\n";
1016
  }
1017
 
1018
  if ( in_array( 'alt-text', $search_fields ) ) {
1019
- echo '<input type="checkbox" name="mla_search_fields[]" id="search-alt-text" checked="checked" value="alt-text" />&nbsp;' . __( 'ALT Text', 'media-library-assistant' ) . "&nbsp;\r\n";
1020
  } else {
1021
- echo '<input type="checkbox" name="mla_search_fields[]" id="search-alt-text" value="alt-text" />&nbsp;' . __( 'ALT Text', 'media-library-assistant' ) . "&nbsp;\r\n";
1022
  }
1023
 
1024
  if ( in_array( 'excerpt', $search_fields ) ) {
1025
- echo '<input type="checkbox" name="mla_search_fields[]" id="search-excerpt" checked="checked" value="excerpt" />&nbsp;' . __( 'Caption', 'media-library-assistant' ) . "&nbsp;\r\n";
1026
  } else {
1027
- echo '<input type="checkbox" name="mla_search_fields[]" id="search-excerpt" value="excerpt" />&nbsp;' . __( 'Caption', 'media-library-assistant' ) . "&nbsp;\r\n";
1028
  }
1029
 
1030
  if ( in_array( 'content', $search_fields ) ) {
1031
- echo '<input type="checkbox" name="mla_search_fields[]" id="search-content" checked="checked" value="content" />&nbsp;' . __( 'Description', 'media-library-assistant' ) . "&nbsp;\r\n";
1032
  } else {
1033
- echo '<input type="checkbox" name="mla_search_fields[]" id="search-content" value="content" />&nbsp;' . __( 'Description', 'media-library-assistant' ) . "&nbsp;\r\n";
1034
  }
1035
 
1036
- echo '</p>' . "\r\n";
1037
 
1038
  /*
1039
  * We also need to ensure that the form posts back to our current page and remember all the view arguments
1040
  */
1041
- echo sprintf( '<input type="hidden" name="page" value="%1$s" />', $_REQUEST['page'] ) . "\r\n";
1042
 
1043
  $view_arguments = MLA_List_Table::mla_submenu_arguments();
1044
  foreach ( $view_arguments as $key => $value ) {
@@ -1055,24 +1173,24 @@ class MLA {
1055
 
1056
  if ( is_array( $value ) ) {
1057
  foreach ( $value as $element_key => $element_value )
1058
- echo sprintf( '<input type="hidden" name="%1$s[%2$s]" value="%3$s" />', $key, $element_key, esc_attr( $element_value ) ) . "\r\n";
1059
  } else {
1060
- echo sprintf( '<input type="hidden" name="%1$s" value="%2$s" />', $key, esc_attr( $value ) ) . "\r\n";
1061
  }
1062
  }
1063
 
1064
  // Now we can render the completed list table
1065
  $MLAListTable->display();
1066
- echo "</form><!-- id=mla-filter -->\r\n";
1067
 
1068
  /*
1069
  * Insert the hidden form and table for inline edits (quick & bulk)
1070
  */
1071
  echo self::_build_inline_edit_form($MLAListTable);
1072
 
1073
- echo "<div id=\"ajax-response\"></div>\r\n";
1074
- echo "<br class=\"clear\" />\r\n";
1075
- echo "</div><!-- class=wrap -->\r\n";
1076
  } // display attachments list
1077
  }
1078
 
@@ -1205,10 +1323,10 @@ class MLA {
1205
  }
1206
 
1207
  if ( $authors = self::_authors_dropdown() ) {
1208
- $authors_dropdown = ' <label class="inline-edit-author">' . "\r\n";
1209
- $authors_dropdown .= ' <span class="title">' . __( 'Author', 'media-library-assistant' ) . '</span>' . "\r\n";
1210
- $authors_dropdown .= $authors . "\r\n";
1211
- $authors_dropdown .= ' </label>' . "\r\n";
1212
  } else {
1213
  $authors_dropdown = '';
1214
  }
@@ -1307,10 +1425,10 @@ class MLA {
1307
  } // count( $flat_taxonomies )
1308
 
1309
  if ( $authors = self::_authors_dropdown( -1 ) ) {
1310
- $bulk_authors_dropdown = ' <label class="inline-edit-author">' . "\r\n";
1311
- $bulk_authors_dropdown .= ' <span class="title">' . __( 'Author', 'media-library-assistant' ) . '</span>' . "\r\n";
1312
- $bulk_authors_dropdown .= $authors . "\r\n";
1313
- $bulk_authors_dropdown .= ' </label>' . "\r\n";
1314
  } else {
1315
  $bulk_authors_dropdown = '';
1316
  }
@@ -1344,6 +1462,11 @@ class MLA {
1344
  'bulk_middle_column' => $bulk_middle_column,
1345
  'bulk_right_column' => $bulk_right_column,
1346
  'bulk_authors' => $bulk_authors_dropdown,
 
 
 
 
 
1347
  'bulk_custom_fields' => $bulk_custom_fields,
1348
  'Map IPTC/EXIF metadata' => __( 'Map IPTC/EXIF metadata', 'media-library-assistant' ),
1349
  'Map Custom Field metadata' => __( 'Map Custom Field Metadata', 'media-library-assistant' ),
@@ -1539,7 +1662,7 @@ class MLA {
1539
  $parent = '';
1540
  }
1541
 
1542
- $features .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $feature->post_type, /*$3%s*/ $feature_id, /*$4%s*/ $feature->post_title ) . "\r\n";
1543
  } // foreach $feature
1544
  } else {
1545
  $features = __( 'Disabled', 'media-library-assistant' );
@@ -1549,7 +1672,7 @@ class MLA {
1549
  $inserts = '';
1550
 
1551
  foreach ( $post_data['mla_references']['inserts'] as $file => $insert_array ) {
1552
- $inserts .= $file . "\r\n";
1553
 
1554
  foreach ( $insert_array as $insert ) {
1555
  if ( $insert->ID == $post_data['post_parent'] ) {
@@ -1558,7 +1681,7 @@ class MLA {
1558
  $parent = ' ';
1559
  }
1560
 
1561
- $inserts .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $insert->post_type, /*$3%s*/ $insert->ID, /*$4%s*/ $insert->post_title ) . "\r\n";
1562
  } // foreach $insert
1563
  } // foreach $file
1564
  } else {
@@ -1575,7 +1698,7 @@ class MLA {
1575
  $parent = '';
1576
  }
1577
 
1578
- $galleries .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $gallery['post_type'], /*$3%s*/ $gallery_id, /*$4%s*/ $gallery['post_title'] ) . "\r\n";
1579
  } // foreach $gallery
1580
  } else {
1581
  $galleries = __( 'Disabled', 'media-library-assistant' );
@@ -1591,7 +1714,7 @@ class MLA {
1591
  $parent = '';
1592
  }
1593
 
1594
- $mla_galleries .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $gallery['post_type'], /*$3%s*/ $gallery_id, /*$4%s*/ $gallery['post_title'] ) . "\r\n";
1595
  } // foreach $gallery
1596
  } else {
1597
  $mla_galleries = __( 'Disabled', 'media-library-assistant' );
@@ -1622,15 +1745,15 @@ class MLA {
1622
  * Add the current view arguments
1623
  */
1624
  if ( isset( $_REQUEST['detached'] ) ) {
1625
- $view_args = '<input type="hidden" name="detached" value="' . $_REQUEST['detached'] . "\" />\r\n";
1626
  } elseif ( isset( $_REQUEST['status'] ) ) {
1627
- $view_args = '<input type="hidden" name="status" value="' . $_REQUEST['status'] . "\" />\r\n";
1628
  } else {
1629
  $view_args = '';
1630
  }
1631
 
1632
  if ( isset( $_REQUEST['paged'] ) ) {
1633
- $view_args .= sprintf( '<input type="hidden" name="paged" value="%1$s" />', $_REQUEST['paged'] ) . "\r\n";
1634
  }
1635
 
1636
  $side_info_column = '';
29
  *
30
  * @var string
31
  */
32
+ const CURRENT_MLA_VERSION = '1.80';
33
 
34
  /**
35
  * Slug for registering and enqueueing plugin style sheet
338
  * @return void
339
  */
340
  public static function mla_admin_menu_action( ) {
341
+ global $submenu;
342
+
343
  if ( 'checked' != MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_DISPLAY_LIBRARY ) ) {
344
  add_action( 'load-upload.php', 'MLA::mla_load_media_action' );
345
  }
383
  } else {
384
  $menu_position = (integer) MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_ORDER );
385
  }
386
+ if ( $menu_position && is_array( $submenu['upload.php'] ) ) {
 
 
387
  foreach ( $submenu['upload.php'] as $menu_order => $menu_item ) {
388
  if ( self::ADMIN_PAGE_SLUG == $menu_item[2] ) {
389
  $submenu['upload.php'][$menu_position] = $menu_item;
681
  return $parent_file;
682
  }
683
 
684
+ /**
685
+ * Process bulk edit area fields, which may contain a Content Template
686
+ *
687
+ * @since 1.80
688
+ *
689
+ * @param integer Current post ID
690
+ * @param string Field value as entered
691
+ *
692
+ * @return string Empty, or new value for the field
693
+ */
694
+ private static function _process_bulk_value( $post_id, $bulk_value ) {
695
+ $new_value = trim( $bulk_value );
696
+
697
+ if ( 'template:' == substr( $new_value, 0, 9 ) ) {
698
+ $data_value = array(
699
+ 'data_source' => 'template',
700
+ 'meta_name' => substr( $new_value, 9 ),
701
+ 'keep_existing' => false,
702
+ 'format' => 'raw',
703
+ 'option' => 'text' );
704
+
705
+ $new_value = MLAOptions::mla_get_data_source( $post_id, 'single_attachment_mapping', $data_value );
706
+ if ( ' ' == $new_value ) {
707
+ $new_value = '';
708
+ }
709
+ } // template
710
+ elseif ( ! empty( $new_value ) ) {
711
+ // preserve leading/trailing whitespace on non-empty entered values
712
+ return $bulk_value;
713
+ }
714
+
715
+ return $new_value;
716
+ }
717
+
718
  /**
719
  * Render the "Assistant" subpage in the Media section, using the list_table package
720
  *
742
  $bulk_action = self::_current_bulk_action();
743
 
744
  $page_title = MLAOptions::mla_get_option( MLAOptions::MLA_SCREEN_PAGE_TITLE );
745
+ echo "<div class=\"wrap\">\n";
746
+ echo "<div id=\"icon-upload\" class=\"icon32\"><br/></div>\n";
747
  echo "<h2>{$page_title}"; // trailing </h2> is action-specific
748
 
749
  if ( !current_user_can( 'upload_files' ) ) {
750
+ echo " - Error</h2>\n";
751
  wp_die( __( 'You do not have permission to manage attachments.', 'media-library-assistant' ) );
752
  }
753
 
800
 
801
  /*
802
  * Copy the edit form contents to $new_data
803
+ * Trim text values for testing purposes only
804
  */
805
  $new_data = array() ;
806
+ if ( isset( $_REQUEST['post_title'] ) ) {
807
+ $test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_title'] );
808
+ if ( ! empty( $test_value ) ) {
809
+ $new_data['post_title'] = $test_value;
810
+ }
811
+ }
812
+
813
+ if ( isset( $_REQUEST['post_excerpt'] ) ) {
814
+ $test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_excerpt'] );
815
+ if ( ! empty( $test_value ) ) {
816
+ $new_data['post_excerpt'] = $test_value;
817
+ }
818
+ }
819
+
820
+ if ( isset( $_REQUEST['post_content'] ) ) {
821
+ $test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_content'] );
822
+ if ( ! empty( $test_value ) ) {
823
+ $new_data['post_content'] = $test_value;
824
+ }
825
+ }
826
+
827
+ /*
828
+ * image_alt requires a separate key because some attachment types
829
+ * should not get a value, e.g., text or PDF documents
830
+ */
831
+ if ( isset( $_REQUEST['image_alt'] ) ) {
832
+ $test_value = self::_process_bulk_value( $post_id, $_REQUEST['image_alt'] );
833
+ if ( ! empty( $test_value ) ) {
834
+ $new_data['bulk_image_alt'] = $test_value;
835
+ }
836
+ }
837
+
838
  if ( isset( $_REQUEST['post_parent'] ) ) {
839
  if ( is_numeric( $_REQUEST['post_parent'] ) ) {
840
  $new_data['post_parent'] = $_REQUEST['post_parent'];
847
  }
848
  }
849
 
850
+ if ( isset( $_REQUEST['comment_status'] ) ) {
851
+ if ( -1 != $_REQUEST['comment_status'] ) {
852
+ $new_data['comment_status'] = $_REQUEST['comment_status'];
853
+ }
854
+ }
855
+
856
+ if ( isset( $_REQUEST['ping_status'] ) ) {
857
+ if ( -1 != $_REQUEST['ping_status'] ) {
858
+ $new_data['ping_status'] = $_REQUEST['ping_status'];
859
+ }
860
+ }
861
+
862
  /*
863
  * Custom field support
864
  */
895
  $page_content['message'] .= $item_content['message'] . '<br>';
896
  } // foreach cb_attachment
897
 
898
+ unset( $_REQUEST['post_title'] );
899
+ unset( $_REQUEST['post_excerpt'] );
900
+ unset( $_REQUEST['post_content'] );
901
+ unset( $_REQUEST['image_alt'] );
902
+ unset( $_REQUEST['comment_status'] );
903
+ unset( $_REQUEST['ping_status'] );
904
  unset( $_REQUEST['post_parent'] );
905
  unset( $_REQUEST['post_author'] );
906
  unset( $_REQUEST['tax_input'] );
1005
  $messages_class = 'mla_messages';
1006
  }
1007
 
1008
+ echo " <div class=\"{$messages_class}\"><p>\n";
1009
+ echo ' ' . $page_content['message'] . "\n";
1010
+ echo " </p></div>\n"; // id="message"
1011
  }
1012
 
1013
  echo $page_content['body'];
1016
  * Display Attachments list
1017
  */
1018
  if ( !empty( $_REQUEST['heading_suffix'] ) ) {
1019
+ echo ' - ' . esc_html( $_REQUEST['heading_suffix'] ) . "</h2>\n";
1020
+ } elseif ( !empty( $_REQUEST['s'] ) ) {
1021
+ if ( empty( $_REQUEST['mla_search_fields'] ) ) {
1022
+ echo ' - ' . __( 'post/parent results for', 'media-library-assistant' ) . ' "' . esc_html( stripslashes( trim( $_REQUEST['s'] ) ) ) . "\"</h2>\n";
1023
+ } else {
1024
+ echo ' - ' . __( 'search results for', 'media-library-assistant' ) . ' "' . esc_html( stripslashes( trim( $_REQUEST['s'] ) ) ) . "\"</h2>\n";
1025
+ }
1026
  } else {
1027
+ echo "</h2>\n";
1028
  }
1029
 
1030
  if ( !empty( $page_content['message'] ) ) {
1034
  $messages_class = 'mla_messages';
1035
  }
1036
 
1037
+ echo " <div class=\"{$messages_class}\"><p>\n";
1038
+ echo ' ' . $page_content['message'] . "\n";
1039
+ echo " </p></div>\n"; // id="message"
1040
  }
1041
 
1042
  /*
1043
  * Optional - limit width of the views list
1044
  */
1045
+ $option_value = MLAOptions::mla_get_option( MLAOptions::MLA_TABLE_VIEWS_WIDTH );
1046
+ if ( !empty( $option_value ) ) {
1047
+ if ( is_numeric( $option_value ) ) {
1048
+ $option_value .= 'px';
1049
+ }
1050
+
1051
+ echo " <style type='text/css'>\n";
1052
+ echo " ul.subsubsub {\n";
1053
+ echo " width: {$option_value};\n";
1054
+ echo " max-width: {$option_value};\n";
1055
+ echo " }\n";
1056
+ echo " </style>\n";
1057
+ }
1058
+
1059
+ /*
1060
+ * Optional - change the size of the thumbnail/icon images
1061
+ */
1062
+ $option_value = MLAOptions::mla_get_option( MLAOptions::MLA_TABLE_ICON_SIZE );
1063
+ if ( !empty( $option_value ) ) {
1064
+ if ( is_numeric( $option_value ) ) {
1065
+ $option_value .= 'px';
1066
+ }
1067
+
1068
+ if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_ENABLE_MLA_ICONS ) ) {
1069
+ $class = 'mla_media_thumbnail_64_64';
1070
+ } else {
1071
+ $class = 'mla_media_thumbnail_80_60';
1072
  }
1073
 
1074
+ echo " <style type='text/css'>\n";
1075
+ echo " #icon.column-icon {\n";
1076
+ echo " width: {$option_value};\n";
1077
+ echo " max-width: {$option_value};\n";
1078
+ echo " height: {$option_value};\n";
1079
+ echo " max-height: {$option_value};\n";
1080
+ echo " }\n";
1081
+ echo " img.{$class} {\n";
1082
+ echo " width: {$option_value};\n";
1083
+ echo " max-width: {$option_value};\n";
1084
+ echo " height: {$option_value};\n";
1085
+ echo " max-height: {$option_value};\n";
1086
+ echo " }\n";
1087
+ echo " </style>\n";
1088
  }
1089
 
1090
  // Create an instance of our package class...
1095
  $MLAListTable->views();
1096
 
1097
  // Forms are NOT created automatically, so you need to wrap the table in one to use features like bulk actions
1098
+ echo '<form action="' . admin_url( 'upload.php?page=' . self::ADMIN_PAGE_SLUG ) . '" method="post" id="mla-filter">' . "\n";
 
 
1099
  /*
1100
  * Compose the Search Media box
1101
  */
1102
+ if ( !empty( $_REQUEST['s'] ) ) {
1103
  $search_value = esc_attr( stripslashes( trim( $_REQUEST['s'] ) ) );
1104
+ $search_fields = isset ( $_REQUEST['mla_search_fields'] ) ? $_REQUEST['mla_search_fields'] : array();
1105
  $search_connector = $_REQUEST['mla_search_connector'];
1106
  } else {
1107
  $search_value = '';
1109
  $search_connector = 'AND';
1110
  }
1111
 
1112
+ echo '<p class="search-box">' . "\n";
1113
+ echo '<label class="screen-reader-text" for="media-search-input">' . __( 'Search Media', 'media-library-assistant' ) . ':</label>' . "\n";
1114
+ echo '<input type="text" size="45" id="media-search-input" name="s" value="' . $search_value . '" />' . "\n";
1115
+ echo '<input type="submit" name="mla-search-submit" id="search-submit" class="button" value="Search Media" /><br>' . "\n";
1116
  if ( 'OR' == $search_connector ) {
1117
+ echo '<input type="radio" name="mla_search_connector" value="AND" />&nbsp;' . __( 'and', 'media-library-assistant' ) . "&nbsp;\n";
1118
+ echo '<input type="radio" name="mla_search_connector" checked="checked" value="OR" />&nbsp;' . __( 'or', 'media-library-assistant' ) . "&nbsp;\n";
1119
  } else {
1120
+ echo '<input type="radio" name="mla_search_connector" checked="checked" value="AND" />&nbsp;' . __( 'and', 'media-library-assistant' ) . "&nbsp;\n";
1121
+ echo '<input type="radio" name="mla_search_connector" value="OR" />&nbsp;' . __( 'or', 'media-library-assistant' ) . "&nbsp;\n";
1122
  }
1123
 
1124
  if ( in_array( 'title', $search_fields ) ) {
1125
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-title" checked="checked" value="title" />&nbsp;' . __( 'Title', 'media-library-assistant' ) . "&nbsp;\n";
1126
  } else {
1127
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-title" value="title" />&nbsp;' . __( 'Title', 'media-library-assistant' ) . "&nbsp;\n";
1128
  }
1129
 
1130
  if ( in_array( 'name', $search_fields ) ) {
1131
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-name" checked="checked" value="name" />&nbsp;' . __( 'Name', 'media-library-assistant' ) . "&nbsp;\n";
1132
  } else {
1133
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-name" value="name" />&nbsp;' . __( 'Name', 'media-library-assistant' ) . "&nbsp;\n";
1134
  }
1135
 
1136
  if ( in_array( 'alt-text', $search_fields ) ) {
1137
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-alt-text" checked="checked" value="alt-text" />&nbsp;' . __( 'ALT Text', 'media-library-assistant' ) . "&nbsp;\n";
1138
  } else {
1139
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-alt-text" value="alt-text" />&nbsp;' . __( 'ALT Text', 'media-library-assistant' ) . "&nbsp;\n";
1140
  }
1141
 
1142
  if ( in_array( 'excerpt', $search_fields ) ) {
1143
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-excerpt" checked="checked" value="excerpt" />&nbsp;' . __( 'Caption', 'media-library-assistant' ) . "&nbsp;\n";
1144
  } else {
1145
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-excerpt" value="excerpt" />&nbsp;' . __( 'Caption', 'media-library-assistant' ) . "&nbsp;\n";
1146
  }
1147
 
1148
  if ( in_array( 'content', $search_fields ) ) {
1149
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-content" checked="checked" value="content" />&nbsp;' . __( 'Description', 'media-library-assistant' ) . "&nbsp;\n";
1150
  } else {
1151
+ echo '<input type="checkbox" name="mla_search_fields[]" id="search-content" value="content" />&nbsp;' . __( 'Description', 'media-library-assistant' ) . "&nbsp;\n";
1152
  }
1153
 
1154
+ echo '</p>' . "\n";
1155
 
1156
  /*
1157
  * We also need to ensure that the form posts back to our current page and remember all the view arguments
1158
  */
1159
+ echo sprintf( '<input type="hidden" name="page" value="%1$s" />', $_REQUEST['page'] ) . "\n";
1160
 
1161
  $view_arguments = MLA_List_Table::mla_submenu_arguments();
1162
  foreach ( $view_arguments as $key => $value ) {
1173
 
1174
  if ( is_array( $value ) ) {
1175
  foreach ( $value as $element_key => $element_value )
1176
+ echo sprintf( '<input type="hidden" name="%1$s[%2$s]" value="%3$s" />', $key, $element_key, esc_attr( $element_value ) ) . "\n";
1177
  } else {
1178
+ echo sprintf( '<input type="hidden" name="%1$s" value="%2$s" />', $key, esc_attr( $value ) ) . "\n";
1179
  }
1180
  }
1181
 
1182
  // Now we can render the completed list table
1183
  $MLAListTable->display();
1184
+ echo "</form><!-- id=mla-filter -->\n";
1185
 
1186
  /*
1187
  * Insert the hidden form and table for inline edits (quick & bulk)
1188
  */
1189
  echo self::_build_inline_edit_form($MLAListTable);
1190
 
1191
+ echo "<div id=\"ajax-response\"></div>\n";
1192
+ echo "<br class=\"clear\" />\n";
1193
+ echo "</div><!-- class=wrap -->\n";
1194
  } // display attachments list
1195
  }
1196
 
1323
  }
1324
 
1325
  if ( $authors = self::_authors_dropdown() ) {
1326
+ $authors_dropdown = ' <label class="inline-edit-author">' . "\n";
1327
+ $authors_dropdown .= ' <span class="title">' . __( 'Author', 'media-library-assistant' ) . '</span>' . "\n";
1328
+ $authors_dropdown .= $authors . "\n";
1329
+ $authors_dropdown .= ' </label>' . "\n";
1330
  } else {
1331
  $authors_dropdown = '';
1332
  }
1425
  } // count( $flat_taxonomies )
1426
 
1427
  if ( $authors = self::_authors_dropdown( -1 ) ) {
1428
+ $bulk_authors_dropdown = ' <label class="inline-edit-author alignright">' . "\n";
1429
+ $bulk_authors_dropdown .= ' <span class="title">' . __( 'Author', 'media-library-assistant' ) . '</span>' . "\n";
1430
+ $bulk_authors_dropdown .= $authors . "\n";
1431
+ $bulk_authors_dropdown .= ' </label>' . "\n";
1432
  } else {
1433
  $bulk_authors_dropdown = '';
1434
  }
1462
  'bulk_middle_column' => $bulk_middle_column,
1463
  'bulk_right_column' => $bulk_right_column,
1464
  'bulk_authors' => $bulk_authors_dropdown,
1465
+ 'Comments' => __( 'Comments', 'media-library-assistant' ),
1466
+ 'Pings' => __( 'Pings', 'media-library-assistant' ),
1467
+ 'No Change' => __( 'No Change', 'media-library-assistant' ),
1468
+ 'Allow' => __( 'Allow', 'media-library-assistant' ),
1469
+ 'Do not allow' => __( 'Do not allow', 'media-library-assistant' ),
1470
  'bulk_custom_fields' => $bulk_custom_fields,
1471
  'Map IPTC/EXIF metadata' => __( 'Map IPTC/EXIF metadata', 'media-library-assistant' ),
1472
  'Map Custom Field metadata' => __( 'Map Custom Field Metadata', 'media-library-assistant' ),
1662
  $parent = '';
1663
  }
1664
 
1665
+ $features .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $feature->post_type, /*$3%s*/ $feature_id, /*$4%s*/ $feature->post_title ) . "\n";
1666
  } // foreach $feature
1667
  } else {
1668
  $features = __( 'Disabled', 'media-library-assistant' );
1672
  $inserts = '';
1673
 
1674
  foreach ( $post_data['mla_references']['inserts'] as $file => $insert_array ) {
1675
+ $inserts .= $file . "\n";
1676
 
1677
  foreach ( $insert_array as $insert ) {
1678
  if ( $insert->ID == $post_data['post_parent'] ) {
1681
  $parent = ' ';
1682
  }
1683
 
1684
+ $inserts .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $insert->post_type, /*$3%s*/ $insert->ID, /*$4%s*/ $insert->post_title ) . "\n";
1685
  } // foreach $insert
1686
  } // foreach $file
1687
  } else {
1698
  $parent = '';
1699
  }
1700
 
1701
+ $galleries .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $gallery['post_type'], /*$3%s*/ $gallery_id, /*$4%s*/ $gallery['post_title'] ) . "\n";
1702
  } // foreach $gallery
1703
  } else {
1704
  $galleries = __( 'Disabled', 'media-library-assistant' );
1714
  $parent = '';
1715
  }
1716
 
1717
+ $mla_galleries .= sprintf( '%1$s (%2$s %3$s), %4$s', /*$1%s*/ $parent, /*$2%s*/ $gallery['post_type'], /*$3%s*/ $gallery_id, /*$4%s*/ $gallery['post_title'] ) . "\n";
1718
  } // foreach $gallery
1719
  } else {
1720
  $mla_galleries = __( 'Disabled', 'media-library-assistant' );
1745
  * Add the current view arguments
1746
  */
1747
  if ( isset( $_REQUEST['detached'] ) ) {
1748
+ $view_args = '<input type="hidden" name="detached" value="' . $_REQUEST['detached'] . "\" />\n";
1749
  } elseif ( isset( $_REQUEST['status'] ) ) {
1750
+ $view_args = '<input type="hidden" name="status" value="' . $_REQUEST['status'] . "\" />\n";
1751
  } else {
1752
  $view_args = '';
1753
  }
1754
 
1755
  if ( isset( $_REQUEST['paged'] ) ) {
1756
+ $view_args .= sprintf( '<input type="hidden" name="paged" value="%1$s" />', $_REQUEST['paged'] ) . "\n";
1757
  }
1758
 
1759
  $side_info_column = '';
includes/class-mla-media-modal.php CHANGED
@@ -40,6 +40,33 @@ class MLAModal {
40
  */
41
  const JAVASCRIPT_MEDIA_MODAL_OBJECT = 'mla_media_modal_vars';
42
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
  /**
44
  * Initialization function, similar to __construct()
45
  *
@@ -63,15 +90,18 @@ class MLAModal {
63
  * do_action( 'wp_enqueue_media' );
64
  */
65
  if ( MLATest::$wordpress_3point5_plus && ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TOOLBAR ) ) ) {
 
 
 
66
  add_filter( 'media_view_settings', 'MLAModal::mla_media_view_settings_filter', 10, 2 );
67
  add_filter( 'media_view_strings', 'MLAModal::mla_media_view_strings_filter', 10, 2 );
68
  add_action( 'wp_enqueue_media', 'MLAModal::mla_wp_enqueue_media_action', 10, 0 );
69
  add_action( 'print_media_templates', 'MLAModal::mla_print_media_templates_action', 10, 0 );
70
- add_action( 'admin_init', 'MLAModal::mla_admin_init_ajax_action' );
71
- add_action( 'wp_ajax_' . self::JAVASCRIPT_MEDIA_MODAL_SLUG, 'MLAModal::mla_query_attachments_action' );
72
 
73
- add_filter( 'get_media_item_args', 'MLAModal::mla_get_media_item_args_filter', 10, 1 );
74
- add_filter( 'attachment_fields_to_edit', 'MLAModal::mla_attachment_fields_to_edit_filter', 10, 2 );
 
75
  } // $wordpress_3point5_plus
76
  }
77
 
@@ -90,7 +120,7 @@ class MLAModal {
90
  self::$media_item_args = $args;
91
  return $args;
92
  } // mla_get_media_item_args_filter
93
-
94
  /**
95
  * The get_media_item_args array
96
  *
@@ -118,50 +148,92 @@ class MLAModal {
118
  * @return array updated descriptors for the "compat-attachment-fields"
119
  */
120
  public static function mla_attachment_fields_to_edit_filter( $form_fields, $post ) {
121
-
 
 
 
 
122
  if ( isset( self::$media_item_args['in_modal'] ) && self::$media_item_args['in_modal'] ) {
123
- $taxonomies = get_taxonomies( array ( 'show_ui' => true ), 'objects' );
124
-
125
- foreach ( $taxonomies as $key => $value ) {
126
  if ( MLAOptions::mla_taxonomy_support( $key ) ) {
127
  if ( isset( $form_fields[ $key ] ) ) {
128
  $field = $form_fields[ $key ];
129
  } else {
130
  continue;
131
  }
132
-
133
- if ( $value->hierarchical ) {
134
- if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) ) {
135
- continue;
136
 
137
- $box = array (
138
- 'id' => $key . 'div',
139
- 'title' => $field['labels']->name,
140
- 'callback' => 'MLAEdit::mla_hierarchical_meta_box',
141
- 'args' => array ( 'taxonomy' => $key, 'in_modal' => true ),
142
-
143
- );
144
-
145
- ob_start();
146
- MLAEdit::mla_hierarchical_meta_box( $post, $box );
147
- $row_content = ob_get_clean();
148
-
149
- $row = "\t\t<tr class='compat-field-{$key}'>\n";
150
- $row .= "\t\t<td>\n";
151
- $row .= $row_content;
152
- $row .= "\t\t</td>\n";
153
- $row .= "\t\t</tr>\n";
154
- $form_fields[ $key ] = array( 'tr' => $row );
155
- } // checked
156
- } else { // hierarchical
157
- if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_TAG_METABOX ) ) {
158
  continue;
159
- } // checked
160
- } // flat
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
161
  } // is supported
162
  } // foreach
163
  } // in_modal
164
-
165
  self::$media_item_args = array( 'errors' => null, 'in_modal' => false );
166
  return $form_fields;
167
  } // mla_attachment_fields_to_edit_filter
@@ -232,7 +304,8 @@ class MLAModal {
232
  $class_array[ $index ] = $matches[3][ $index ];
233
  $value_array[ $index ] = ( ! '' == $matches[6][ $index ] )? $matches[7][ $index ] : $matches[9][ $index ];
234
 
235
- if ( version_compare( get_bloginfo( 'version' ), '3.6', '>=' ) ) {
 
236
  $text_array[ $index ] = str_replace( '&nbsp;', '-', $text);
237
  } else {
238
  $text_array[ $index ] = $text;
@@ -252,12 +325,17 @@ class MLAModal {
252
  * @var array
253
  */
254
  private static $mla_media_modal_settings = array(
255
- 'ajaxAction' => self::JAVASCRIPT_MEDIA_MODAL_SLUG,
256
- 'ajaxNonce' => '',
 
 
 
257
  'enableMimeTypes' => false,
258
  'enableMonthsDropdown' => false,
259
  'enableTermsDropdown' => false,
260
  'enableSearchBox' => false,
 
 
261
  'mimeTypes' => '',
262
  'months' => '',
263
  'termsClass' => array(),
@@ -294,6 +372,8 @@ class MLAModal {
294
  self::$mla_media_modal_settings['enableMonthsDropdown'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_MONTHS ) );
295
  self::$mla_media_modal_settings['enableTermsDropdown'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TERMS ) );
296
  self::$mla_media_modal_settings['enableSearchBox'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_SEARCHBOX ) );
 
 
297
 
298
  /*
299
  * These will be passed back to the server in the query['s'] field.
@@ -321,7 +401,8 @@ class MLAModal {
321
  */
322
  public static function mla_media_view_strings_filter( $strings, $post ) {
323
  $mla_strings = array(
324
- 'searchBoxPlaceholder' => 'Search Box',
 
325
  );
326
 
327
  $strings = array_merge( $strings, array( 'mla_strings' => $mla_strings ) );
@@ -340,8 +421,8 @@ class MLAModal {
340
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
341
 
342
  // replaced by inline styles for now
343
- // wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style.css', false, MLA::CURRENT_MLA_VERSION );
344
- // wp_enqueue_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES );
345
 
346
  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 );
347
  } // mla_wp_enqueue_media_action
@@ -360,38 +441,14 @@ class MLAModal {
360
  */
361
  if ( self::$mla_media_modal_settings['enableSearchBox'] ) {
362
  if ( self::$mla_media_modal_settings['enableMonthsDropdown'] && self::$mla_media_modal_settings['enableTermsDropdown'] ) {
363
- $height = '100px';
364
  } else {
365
- $height = '70px';
366
  }
367
  } else {
368
  $height = '50px';
369
  }
370
 
371
- // W3C says style is not allowed within a div
372
- // echo '<script type="text/html" id="tmpl-mla-search-box-css">' . "\n";
373
- echo "\t" . '<style type="text/css">' . "\n";
374
-
375
- if ( self::$mla_media_modal_settings['enableSearchBox'] ) {
376
- echo "\t\t.media-frame .media-frame-content .media-toolbar-secondary {\n";
377
- echo "\t\t\twidth: 150px; }\n";
378
- }
379
-
380
- echo "\t\t.media-frame .media-frame-content .attachments-browser .media-toolbar {\n";
381
- echo "\t\t\theight: {$height}; }\n";
382
- echo "\t\t.media-frame .media-frame-content .attachments-browser .attachments,\n";
383
- echo "\t\t.media-frame .media-frame-content .attachments-browser .uploader-inline {\n";
384
- echo "\t\t\ttop: {$height}; }\n";
385
- echo "\t\t.media-frame .media-frame-content p.search-box {\n";
386
- echo "\t\t\tmargin-top: 7px;\n";
387
- echo "\t\t\tpadding: 4px;\n";
388
- echo "\t\t\tline-height: 18px;\n";
389
- echo "\t\t\tcolor: #464646;\n";
390
- echo "\t\t\tfont-family: sans-serif;\n";
391
- echo "\t\t\t-webkit-appearance: none; }\n";
392
- echo "\t" . '</style>' . "\n";
393
- /* echo "\t" . '</script>' . "\n"; */
394
-
395
  /*
396
  * Compose the Search Media box
397
  */
@@ -413,65 +470,65 @@ class MLAModal {
413
  $search_connector = 'AND';
414
  }
415
 
416
- echo "\t" . '<script type="text/html" id="tmpl-mla-search-box">' . "\r\n";
417
- echo "\t\t" . '<p class="search-box">' . "\r\n";
418
- echo "\t\t" . '<label class="screen-reader-text" for="media-search-input">' . __( 'Search Media', 'media-library-assistant' ) . ':</label>' . "\r\n";
419
- echo "\t\t" . '<input type="text" name="s[mla_search_value]" id="media-search-input" size="43" value="' . $search_value . '" />' . "\r\n";
420
- echo "\t\t" . '<input type="submit" name="mla_search_submit" id="search-submit" class="button" value="' . __( 'Search Media', 'media-library-assistant' ) . '" /><br>' . "\r\n";
421
- if ( 'OR' == $search_connector ) {
422
- echo "\t\t" . '<input type="radio" name="s[mla_search_connector]" value="AND" />&nbsp;' . __( 'and', 'media-library-assistant' ) . "&nbsp;\r\n";
423
- echo "\t\t" . '<input type="radio" name="s[mla_search_connector]" checked="checked" value="OR" />&nbsp;' . __( 'or', 'media-library-assistant' ) . "&nbsp;\r\n";
424
- } else {
425
- echo "\t\t" . '<input type="radio" name="s[mla_search_connector]" checked="checked" value="AND" />&nbsp;' . __( 'and', 'media-library-assistant' ) . "&nbsp;\r\n";
426
- echo "\t\t" . '<input type="radio" name="s[mla_search_connector]" value="OR" />&nbsp;' . __( 'or', 'media-library-assistant' ) . "&nbsp;\r\n";
427
- }
428
-
429
- if ( in_array( 'title', $search_fields ) ) {
430
- echo "\t\t" . '<input type="checkbox" name="s[mla_search_title]" id="search-title" checked="checked" value="title" />&nbsp;' . __( 'Title', 'media-library-assistant' ) . "&nbsp;\r\n";
431
- } else {
432
- echo "\t\t" . '<input type="checkbox" name="s[mla_search_title]" id="search-title" value="title" />&nbsp;' . __( 'Title', 'media-library-assistant' ) . "&nbsp;\r\n";
433
- }
434
-
435
- if ( in_array( 'name', $search_fields ) ) {
436
- echo "\t\t" . '<input type="checkbox" name="s[mla_search_name]" id="search-name" checked="checked" value="name" />&nbsp;' . __( 'Name', 'media-library-assistant' ) . "&nbsp;\r\n";
437
- } else {
438
- echo "\t\t" . '<input type="checkbox" name="s[mla_search_name]" id="search-name" value="name" />&nbsp;' . __( 'Name', 'media-library-assistant' ) . "&nbsp;\r\n";
439
- }
440
-
441
- if ( in_array( 'alt-text', $search_fields ) ) {
442
- echo "\t\t" . '<input type="checkbox" name="s[mla_search_alt_text]" id="search-alt-text" checked="checked" value="alt-text" />&nbsp;' . __( 'ALT Text', 'media-library-assistant' ) . "&nbsp;\r\n";
443
- } else {
444
- echo "\t\t" . '<input type="checkbox" name="s[mla_search_alt_text]" id="search-alt-text" value="alt-text" />&nbsp;' . __( 'ALT Text', 'media-library-assistant' ) . "&nbsp;\r\n";
445
- }
446
-
447
- if ( in_array( 'excerpt', $search_fields ) ) {
448
- echo "\t\t" . '<input type="checkbox" name="s[mla_search_excerpt]" id="search-excerpt" checked="checked" value="excerpt" />&nbsp;' . __( 'Caption', 'media-library-assistant' ) . "&nbsp;\r\n";
449
- } else {
450
- echo "\t\t" . '<input type="checkbox" name="s[mla_search_excerpt]" id="search-excerpt" value="excerpt" />&nbsp;' . __( 'Caption', 'media-library-assistant' ) . "&nbsp;\r\n";
451
- }
452
-
453
- if ( in_array( 'content', $search_fields ) ) {
454
- echo "\t\t" . '<input type="checkbox" name="s[mla_search_content]" id="search-content" checked="checked" value="content" />&nbsp;' . __( 'Description', 'media-library-assistant' ) . "&nbsp;\r\n";
455
- } else {
456
- echo "\t\t" . '<input type="checkbox" name="s[mla_search_content]" id="search-content" value="content" />&nbsp;' . __( 'Description', 'media-library-assistant' ) . "&nbsp;\r\n";
457
- }
458
-
459
- echo "\t\t" . '</p>' . "\r\n";
460
- echo "\t" . '</script>' . "\r\n";
461
  } // mla_print_media_templates_action
462
 
463
  /**
464
  * Adjust ajax handler for Media Manager queries
465
  *
466
- * Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab
 
467
  *
468
  * @since 1.20
469
  *
470
  * @return void
471
  */
472
- public static function mla_admin_init_ajax_action() {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
473
  if ( ( defined('WP_ADMIN') && WP_ADMIN ) && ( defined('DOING_AJAX') && DOING_AJAX ) ) {
474
- if ( isset( $_POST['action'] ) && ( $_POST['action'] == 'query-attachments' ) && isset( $_POST['query']['s'] ) && is_array( $_POST['query']['s'] ) ){
 
 
 
 
 
 
 
 
 
 
 
 
 
 
475
  foreach ( $_POST['query']['s'] as $key => $value ) {
476
  $_POST['query'][ $key ] = $value;
477
  $_REQUEST['query'][ $key ] = $value;
@@ -479,20 +536,336 @@ class MLAModal {
479
 
480
  unset( $_POST['query']['s'] );
481
  unset( $_REQUEST['query']['s'] );
482
- $_POST['action'] = self::JAVASCRIPT_MEDIA_MODAL_SLUG;
483
- $_REQUEST['action'] = self::JAVASCRIPT_MEDIA_MODAL_SLUG;
484
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
485
  }
486
- } // mla_admin_init_ajax_action
487
 
488
  /**
489
- * Ajax handler for Media Manager queries
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
490
  *
491
  * Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php
492
  *
493
  * @since 1.20
494
  *
495
- * @return void echo HTML <tr> markup for updated row or error message, then die()
496
  */
497
  public static function mla_query_attachments_action() {
498
  if ( ! current_user_can( 'upload_files' ) ) {
@@ -587,7 +960,6 @@ class MLAModal {
587
  }
588
 
589
  $query = MLAData::mla_query_media_modal_items( $query, $offset, $count );
590
-
591
  $posts = array_map( 'wp_prepare_attachment_for_js', $query->posts );
592
  $posts = array_filter( $posts );
593
 
40
  */
41
  const JAVASCRIPT_MEDIA_MODAL_OBJECT = 'mla_media_modal_vars';
42
 
43
+ /**
44
+ * Slug for the "query attachments" action - Add Media and related dialogs
45
+ *
46
+ * @since 1.80
47
+ *
48
+ * @var string
49
+ */
50
+ const JAVASCRIPT_QUERY_ATTACHMENTS_ACTION = 'mla-query-attachments';
51
+
52
+ /**
53
+ * Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs
54
+ *
55
+ * @since 1.80
56
+ *
57
+ * @var string
58
+ */
59
+ const JAVASCRIPT_FILL_COMPAT_ACTION = 'mla-fill-compat-fields';
60
+
61
+ /**
62
+ * Slug for the "update compat-attachment-fields" action - Add Media and related dialogs
63
+ *
64
+ * @since 1.80
65
+ *
66
+ * @var string
67
+ */
68
+ const JAVASCRIPT_UPDATE_COMPAT_ACTION = 'mla-update-compat-fields';
69
+
70
  /**
71
  * Initialization function, similar to __construct()
72
  *
90
  * do_action( 'wp_enqueue_media' );
91
  */
92
  if ( MLATest::$wordpress_3point5_plus && ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TOOLBAR ) ) ) {
93
+ add_filter( 'get_media_item_args', 'MLAModal::mla_get_media_item_args_filter', 10, 1 );
94
+ add_filter( 'attachment_fields_to_edit', 'MLAModal::mla_attachment_fields_to_edit_filter', 0x7FFFFFFF, 2 );
95
+
96
  add_filter( 'media_view_settings', 'MLAModal::mla_media_view_settings_filter', 10, 2 );
97
  add_filter( 'media_view_strings', 'MLAModal::mla_media_view_strings_filter', 10, 2 );
98
  add_action( 'wp_enqueue_media', 'MLAModal::mla_wp_enqueue_media_action', 10, 0 );
99
  add_action( 'print_media_templates', 'MLAModal::mla_print_media_templates_action', 10, 0 );
100
+ add_action( 'admin_init', 'MLAModal::mla_admin_init_action' );
 
101
 
102
+ add_action( 'wp_ajax_' . self::JAVASCRIPT_QUERY_ATTACHMENTS_ACTION, 'MLAModal::mla_query_attachments_action' );
103
+ add_action( 'wp_ajax_' . self::JAVASCRIPT_FILL_COMPAT_ACTION, 'MLAModal::mla_fill_compat_fields_action' );
104
+ add_action( 'wp_ajax_' . self::JAVASCRIPT_UPDATE_COMPAT_ACTION, 'MLAModal::mla_update_compat_fields_action' );
105
  } // $wordpress_3point5_plus
106
  }
107
 
120
  self::$media_item_args = $args;
121
  return $args;
122
  } // mla_get_media_item_args_filter
123
+
124
  /**
125
  * The get_media_item_args array
126
  *
148
  * @return array updated descriptors for the "compat-attachment-fields"
149
  */
150
  public static function mla_attachment_fields_to_edit_filter( $form_fields, $post ) {
151
+ /*
152
+ * This logic is only required for the Media Manager Modal Window.
153
+ * For the non-Modal Media/Edit Media screen, the MLAEdit::mla_add_meta_boxes_action
154
+ * function changes the default meta box to the MLA searchable meta box.
155
+ */
156
  if ( isset( self::$media_item_args['in_modal'] ) && self::$media_item_args['in_modal'] ) {
157
+ foreach ( get_taxonomies( array ( 'show_ui' => true ), 'objects' ) as $key => $value ) {
 
 
158
  if ( MLAOptions::mla_taxonomy_support( $key ) ) {
159
  if ( isset( $form_fields[ $key ] ) ) {
160
  $field = $form_fields[ $key ];
161
  } else {
162
  continue;
163
  }
 
 
 
 
164
 
165
+ if ( ! $use_checklist = $value->hierarchical ) {
166
+ $use_checklist = MLAOptions::mla_taxonomy_support( $key, 'flat-checklist' );
167
+ }
168
+
169
+ /*
170
+ * Make sure the appropriate MMMW Enhancement option has been checked
171
+ */
172
+ if ( $use_checklist ) {
173
+ if ( 'checked' !== MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
174
  continue;
175
+ }
176
+ } else {
177
+ if ( 'checked' !== MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_TAG_METABOX ) ) {
178
+ continue;
179
+ }
180
+ }
181
+
182
+ /*
183
+ * Remove "Media Categories" meta box, if present.
184
+ */
185
+ if ( isset( $form_fields[ $key . '_metabox' ] ) ) {
186
+ unset( $form_fields[ $key . '_metabox' ] );
187
+ }
188
+
189
+ /*
190
+ * Simulate the default MMMW text box with a hidden field;
191
+ * use term names for flat taxonomies and term_ids for hierarchical.
192
+ */
193
+ $post_id = $post->ID;
194
+ $label = $field['labels']->name;
195
+ $terms = get_object_term_cache( $post_id, $key );
196
+
197
+ if ( false === $terms ) {
198
+ $terms = wp_get_object_terms( $post_id, $key );
199
+ }
200
+
201
+ if ( is_wp_error( $terms ) || empty( $terms ) ) {
202
+ $terms = array();
203
+ }
204
+
205
+ $list = array();
206
+ foreach ( $terms as $term ) {
207
+ if ( $value->hierarchical ) {
208
+ $list[] = $term->term_id;
209
+ } else {
210
+ $list[] = $term->name;
211
+ }
212
+ } // foreach $term
213
+
214
+ sort( $list );
215
+ $list = join( ',', $list );
216
+ $class = ( $value->hierarchical ) ? 'categorydiv' : 'tagsdiv';
217
+
218
+ $row = "\t\t<tr class='compat-field-{$key} mla-taxonomy-row'>\n";
219
+ $row .= "\t\t<th class='label' valign='top' scope='row'>\n";
220
+ $row .= "\t\t<label for='mla-attachments-{$post_id}-{$key}'>\n";
221
+ $row .= "\t\t<span title='" . __( 'Click to toggle', 'media-library-assistant' ) . "' class='alignleft'>{$label}</span><br class='clear'>\n";
222
+ $row .= "\t\t</label></th>\n";
223
+ $row .= "\t\t<td class='field'>\n";
224
+ $row .= "\t\t<div class='mla-taxonomy-field'>\n";
225
+ $row .= "\t\t<input name='mla_attachments[{$post_id}][{$key}]' class='text' id='mla-attachments-{$post_id}-{$key}' type='hidden' value='{$list}'>\n";
226
+ $row .= "\t\t<div id='mla-taxonomy-{$key}' class='{$class}'>\n";
227
+ $row .= '&lt;- ' . __( 'Click to toggle', 'media-library-assistant' ) . "\n";
228
+ $row .= "\t\t</div>\n";
229
+ $row .= "\t\t</div>\n";
230
+ $row .= "\t\t</td>\n";
231
+ $row .= "\t\t</tr>\n";
232
+ $form_fields[ $key ] = array( 'tr' => $row );
233
  } // is supported
234
  } // foreach
235
  } // in_modal
236
+
237
  self::$media_item_args = array( 'errors' => null, 'in_modal' => false );
238
  return $form_fields;
239
  } // mla_attachment_fields_to_edit_filter
304
  $class_array[ $index ] = $matches[3][ $index ];
305
  $value_array[ $index ] = ( ! '' == $matches[6][ $index ] )? $matches[7][ $index ] : $matches[9][ $index ];
306
 
307
+ $current_version = get_bloginfo( 'version' );
308
+ if ( version_compare( $current_version, '3.9', '<' ) && version_compare( $current_version, '3.6', '>=' ) ) {
309
  $text_array[ $index ] = str_replace( '&nbsp;', '-', $text);
310
  } else {
311
  $text_array[ $index ] = $text;
325
  * @var array
326
  */
327
  private static $mla_media_modal_settings = array(
328
+ 'ajaxQueryAttachmentsAction' => self::JAVASCRIPT_QUERY_ATTACHMENTS_ACTION,
329
+ 'ajaxFillCompatAction' => self::JAVASCRIPT_FILL_COMPAT_ACTION,
330
+ 'ajaxUpdateCompatAction' => self::JAVASCRIPT_UPDATE_COMPAT_ACTION,
331
+ 'ajaxFillCompatNonce' => '',
332
+ 'ajaxUpdateCompatNonce' => '',
333
  'enableMimeTypes' => false,
334
  'enableMonthsDropdown' => false,
335
  'enableTermsDropdown' => false,
336
  'enableSearchBox' => false,
337
+ 'enableDetailsCategory' => false,
338
+ 'enableDetailsTag' => false,
339
  'mimeTypes' => '',
340
  'months' => '',
341
  'termsClass' => array(),
372
  self::$mla_media_modal_settings['enableMonthsDropdown'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_MONTHS ) );
373
  self::$mla_media_modal_settings['enableTermsDropdown'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_TERMS ) );
374
  self::$mla_media_modal_settings['enableSearchBox'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_SEARCHBOX ) );
375
+ self::$mla_media_modal_settings['enableDetailsCategory'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) );
376
+ self::$mla_media_modal_settings['enableDetailsTag'] = ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_TAG_METABOX ) );
377
 
378
  /*
379
  * These will be passed back to the server in the query['s'] field.
401
  */
402
  public static function mla_media_view_strings_filter( $strings, $post ) {
403
  $mla_strings = array(
404
+ 'searchBoxPlaceholder' => __( 'Search Box', 'media-library-assistant' ),
405
+ 'loadingText' => __( 'Loading...', 'media-library-assistant' )
406
  );
407
 
408
  $strings = array_merge( $strings, array( 'mla_strings' => $mla_strings ) );
421
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
422
 
423
  // replaced by inline styles for now
424
+ wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style.css', false, MLA::CURRENT_MLA_VERSION );
425
+ wp_enqueue_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES );
426
 
427
  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 );
428
  } // mla_wp_enqueue_media_action
441
  */
442
  if ( self::$mla_media_modal_settings['enableSearchBox'] ) {
443
  if ( self::$mla_media_modal_settings['enableMonthsDropdown'] && self::$mla_media_modal_settings['enableTermsDropdown'] ) {
444
+ $height = '120px';
445
  } else {
446
+ $height = '80px';
447
  }
448
  } else {
449
  $height = '50px';
450
  }
451
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
452
  /*
453
  * Compose the Search Media box
454
  */
470
  $search_connector = 'AND';
471
  }
472
 
473
+ // Include mla javascript templates
474
+ require_once MLA_PLUGIN_PATH . '/includes/mla-media-modal-js-template.php';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
475
  } // mla_print_media_templates_action
476
 
477
  /**
478
  * Adjust ajax handler for Media Manager queries
479
  *
480
+ * Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab.
481
+ * Clean up the 'save-attachment-compat' values, removing the taxonomy updates MLS already handled.
482
  *
483
  * @since 1.20
484
  *
485
  * @return void
486
  */
487
+ public static function mla_admin_init_action() {
488
+ /*
489
+ * Build a list of enhanced taxonomies for later $_REQUEST/$_POST cleansing.
490
+ * Remove "Media Categories" instances, if present.
491
+ */
492
+ $enhanced_taxonomies = array();
493
+ foreach ( get_taxonomies( array ( 'show_ui' => true ), 'objects' ) as $key => $value ) {
494
+ if ( MLAOptions::mla_taxonomy_support( $key ) ) {
495
+ if ( ! $use_checklist = $value->hierarchical ) {
496
+ $use_checklist = MLAOptions::mla_taxonomy_support( $key, 'flat-checklist' );
497
+ }
498
+
499
+ if ( $use_checklist ) {
500
+ if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) ) {
501
+ $enhanced_taxonomies[] = $key;
502
+
503
+ if ( class_exists( 'Media_Categories' ) && is_array( Media_Categories::$instances ) ) {
504
+ foreach( Media_Categories::$instances as $index => $instance ) {
505
+ if ( $instance->taxonomy == $key ) {
506
+ // unset( Media_Categories::$instances[ $index ] );
507
+ Media_Categories::$instances[ $index ]->taxonomy = 'MLA-has-disabled-this-instance';
508
+ }
509
+ }
510
+ } // class_exists
511
+ } // checked
512
+ } // use_checklist
513
+ } // supported
514
+ } // foreach taxonomy
515
+
516
  if ( ( defined('WP_ADMIN') && WP_ADMIN ) && ( defined('DOING_AJAX') && DOING_AJAX ) ) {
517
+ //error_log( 'DEBUG: mla_admin_init_action Ajax $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
518
+
519
+ /*
520
+ * If there's no action variable, we have nothing to do
521
+ */
522
+ if ( ! isset( $_POST['action'] ) ) {
523
+ return;
524
+ }
525
+
526
+ /*
527
+ * The 'query-attachments' action fills the Modal Window thumbnail pane with media items.
528
+ * If the 's' value is an array, the MLA Enhanced elements are present; unpack the arguments
529
+ * and substitute our handler for the WordPress default handler.
530
+ */
531
+ if ( ( $_POST['action'] == 'query-attachments' ) && isset( $_POST['query']['s'] ) && is_array( $_POST['query']['s'] ) ){
532
  foreach ( $_POST['query']['s'] as $key => $value ) {
533
  $_POST['query'][ $key ] = $value;
534
  $_REQUEST['query'][ $key ] = $value;
536
 
537
  unset( $_POST['query']['s'] );
538
  unset( $_REQUEST['query']['s'] );
539
+ $_POST['action'] = self::JAVASCRIPT_QUERY_ATTACHMENTS_ACTION;
540
+ $_REQUEST['action'] = self::JAVASCRIPT_QUERY_ATTACHMENTS_ACTION;
541
+ return;
542
+ } // query-attachments
543
+
544
+ /*
545
+ * The 'save-attachment-compat' action updates taxonomy and custom field
546
+ * values for an item. Remove any MLA-enhanced taxonomy data from the
547
+ * incoming data. The other taxonomies will be processed by
548
+ * /wp-admin/includes/ajax-actions.php, function wp_ajax_save_attachment_compat().
549
+ */
550
+ if ( ( $_POST['action'] == 'save-attachment-compat' ) ){
551
+ if ( empty( $_REQUEST['id'] ) || ! $id = absint( $_REQUEST['id'] ) ) {
552
+ wp_send_json_error();
553
+ }
554
+
555
+ if ( empty( $_REQUEST['attachments'] ) || empty( $_REQUEST['attachments'][ $id ] ) ) {
556
+ wp_send_json_error();
557
+ }
558
+
559
+ /*
560
+ * Media Categories uses this
561
+ */
562
+ if ( isset( $_REQUEST['category-filter'] ) ) {
563
+ unset( $_REQUEST['category-filter'] );
564
+ unset( $_POST['category-filter'] );
565
+ }
566
+
567
+ if ( isset( $_REQUEST['mla_attachments'] ) ) {
568
+ unset( $_REQUEST['mla_attachments'] );
569
+ unset( $_POST['mla_attachments'] );
570
+ }
571
+
572
+ if ( isset( $_REQUEST['tax_input'] ) ) {
573
+ unset( $_REQUEST['tax_input'] );
574
+ unset( $_POST['tax_input'] );
575
+ }
576
+
577
+ foreach( $enhanced_taxonomies as $taxonomy ) {
578
+ if ( isset( $_REQUEST['attachments'][ $id ][ $taxonomy ] ) ) {
579
+ unset( $_REQUEST['attachments'][ $id ][ $taxonomy ] );
580
+ unset( $_POST['attachments'][ $id ][ $taxonomy ] );
581
+ }
582
+
583
+ if ( isset( $_REQUEST[ $taxonomy ] ) ) {
584
+ unset( $_REQUEST[ $taxonomy ] );
585
+ unset( $_POST[ $taxonomy ] );
586
+ }
587
+
588
+ if ( ( 'category' == $taxonomy ) && isset( $_REQUEST['post_category'] ) ) {
589
+ unset( $_REQUEST['post_category'] );
590
+ unset( $_POST['post_category'] );
591
+ }
592
+
593
+ if ( isset( $_REQUEST[ 'new' . $taxonomy ] ) ) {
594
+ unset( $_REQUEST[ 'new' . $taxonomy ] );
595
+ unset( $_POST[ 'new' . $taxonomy ] );
596
+ unset( $_REQUEST[ 'new' . $taxonomy . '_parent' ] );
597
+ unset( $_POST[ 'new' . $taxonomy . '_parent' ] );
598
+ unset( $_REQUEST[ '_ajax_nonce-add-' . $taxonomy ] );
599
+ unset( $_POST[ '_ajax_nonce-add-' . $taxonomy ] );
600
+ }
601
+
602
+ if ( isset( $_REQUEST[ 'search-' . $taxonomy ] ) ) {
603
+ unset( $_REQUEST[ 'search-' . $taxonomy ] );
604
+ unset( $_POST[ 'search-' . $taxonomy ] );
605
+ unset( $_REQUEST[ '_ajax_nonce-search-' . $taxonomy ] );
606
+ unset( $_POST[ '_ajax_nonce-search-' . $taxonomy ] );
607
+ }
608
+ } // foreach taxonomy
609
+ } // save-attachment-compat
610
  }
611
+ } // mla_admin_init_action
612
 
613
  /**
614
+ * Ajax handler for Media Manager "fill compat-attachment-fields" queries
615
+ *
616
+ * Prepares an array of (HTML) taxonomy meta boxes with attachment-specific values.
617
+ *
618
+ * @since 1.80
619
+ *
620
+ * @return void passes array of results to wp_send_json_success() for JSON encoding and transmission
621
+ */
622
+ public static function mla_fill_compat_fields_action() {
623
+ if ( empty( $_REQUEST['query'] ) || ! $requested = $_REQUEST['query'] ) {
624
+ wp_send_json_error();
625
+ }
626
+
627
+ if ( empty( $_REQUEST['id'] ) || ! $post_id = absint( $_REQUEST['id'] ) ) {
628
+ wp_send_json_error();
629
+ }
630
+
631
+ if ( null == ( $post = get_post( $post_id ) ) ) {
632
+ wp_send_json_error();
633
+ }
634
+
635
+ $results = array();
636
+
637
+ /*
638
+ * Match all supported taxonomies against the requested list
639
+ */
640
+ foreach ( get_taxonomies( array ( 'show_ui' => true ), 'objects' ) as $key => $value ) {
641
+ if ( MLAOptions::mla_taxonomy_support( $key ) ) {
642
+ if ( is_integer( $index = array_search( $key, $requested ) ) ) {
643
+ $request = $requested[ $index ];
644
+ } else {
645
+ continue;
646
+ }
647
+
648
+ if ( ! $use_checklist = $value->hierarchical ) {
649
+ $use_checklist = MLAOptions::mla_taxonomy_support( $key, 'flat-checklist' );
650
+ }
651
+
652
+ if ( $use_checklist ) {
653
+ if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) ) {
654
+ unset( $requested[ $index ] );
655
+ $label = $value->label;
656
+ $terms = get_object_term_cache( $post_id, $key );
657
+
658
+ if ( false === $terms ) {
659
+ $terms = wp_get_object_terms( $post_id, $key );
660
+ }
661
+
662
+ if ( is_wp_error( $terms ) || empty( $terms ) ) {
663
+ $terms = array();
664
+ }
665
+
666
+ $list = array();
667
+ foreach ( $terms as $term ) {
668
+ $list[] = $term->term_id;
669
+ } // foreach $term
670
+
671
+ sort( $list );
672
+ $list = join( ',', $list );
673
+
674
+ /*
675
+ * Simulate the 'add_meta_boxes' callback
676
+ */
677
+ $box = array (
678
+ 'id' => $key . 'div',
679
+ 'title' => $label,
680
+ 'callback' => 'MLAEdit::mla_checklist_meta_box',
681
+ 'args' => array ( 'taxonomy' => $key, 'in_modal' => true ),
682
+
683
+ );
684
+
685
+ ob_start();
686
+ MLAEdit::mla_checklist_meta_box( $post, $box );
687
+ $row_content = ob_get_clean();
688
+
689
+ $row = "\t\t<th class='label' valign='top' scope='row' style='width: 99%;'>\n";
690
+ $row .= "\t\t<label for='mla-attachments-{$post_id}-{$key}'>\n";
691
+ $row .= "\t\t<span title='" . __( 'Click to toggle', 'media-library-assistant' ) . "' class='alignleft' style='width: 99%; text-align: left;'>{$label}</span><br class='clear'>\n";
692
+ $row .= "\t\t</label></th>\n";
693
+ $row .= "\t\t<td class='field' style='width: 99%; display: none'>\n";
694
+ $row .= "\t\t<div class='mla-taxonomy-field'>\n";
695
+ $row .= "\t\t<input name='attachments[{$post_id}][{$key}]' class='text' id='mla-attachments-{$post_id}-{$key}' type='hidden' value='{$list}'>\n";
696
+ $row .= $row_content;
697
+ $row .= "\t\t</div>\n";
698
+ $row .= "\t\t</td>\n";
699
+ $results[ $key ] = $row;
700
+ } // checked
701
+ } /* use_checklist */ else { // flat
702
+ if ( 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_MEDIA_MODAL_DETAILS_TAG_METABOX ) ) {
703
+ unset( $requested[ $index ] );
704
+ $label = $value->label;
705
+ $terms = get_object_term_cache( $post_id, $key );
706
+
707
+ if ( false === $terms ) {
708
+ $terms = wp_get_object_terms( $post_id, $key );
709
+ }
710
+
711
+ if ( is_wp_error( $terms ) || empty( $terms ) ) {
712
+ $terms = array();
713
+ }
714
+
715
+ $list = array();
716
+ foreach ( $terms as $term ) {
717
+ $list[] = $term->name;
718
+ } // foreach $term
719
+
720
+ sort( $list );
721
+ $hidden_list = join( ',', $list );
722
+
723
+ $row = "\t\t<th class='label' valign='top' scope='row' style='width: 99%;'>\n";
724
+ $row .= "\t\t<label for='mla-attachments-{$post_id}-{$key}'>\n";
725
+ $row .= "\t\t<span title='" . __( 'Click to toggle', 'media-library-assistant' ) . "' class='alignleft' style='width: 99%; text-align: left;'>{$label}</span><br class='clear'>\n";
726
+ $row .= "\t\t</label></th>\n";
727
+ $row .= "\t\t<td class='field' style='width: 99%; display: none'>\n";
728
+ $row .= "\t\t<div class='mla-taxonomy-field'>\n";
729
+ $row .= "\t\t<div class='tagsdiv' id='mla-taxonomy-{$key}'>\n";
730
+ $row .= "\t\t<div class='jaxtag'>\n";
731
+ $row .= "\t\t<div class='nojs-tags hide-if-js'>\n";
732
+ $row .= "\t\t<input name='attachments[{$post_id}][{$key}]' class='the-tags' id='mla-attachments-{$post_id}-{$key}' type='hidden' value='{$hidden_list}'>\n";
733
+ $row .= "\t\t<input name='mla_tags[{$post_id}][{$key}]' class='server-tags' id='mla-tags-{$post_id}-{$key}' type='hidden' value='{$hidden_list}'>\n";
734
+ $row .= "\t\t</div>\n"; // nojs-tags
735
+ $row .= "\t\t<div class='ajaxtag'>\n";
736
+ $row .= "\t\t<label class='screen-reader-text' for='new-tag-{$key}'>" . __( 'Tags', 'media-library-assistant' ) . "</label>\n";
737
+ /* translators: %s: add new taxonomy label */
738
+ $row .= "\t\t<div class='taghint'>" . sprintf( __( 'Add New %1$s', 'media-library-assistant' ), $label ) . "</div>\n";
739
+ $row .= "\t\t<p>\n";
740
+ $row .= "\t\t<input name='newtag[{$key}]' class='newtag form-input-tip' id='new-tag-{$key}' type='text' size='16' value='' autocomplete='off'>\n";
741
+ $row .= "\t\t<input class='button tagadd' type='button' value='Add'>\n";
742
+ $row .= "\t\t</p>\n";
743
+ $row .= "\t\t</div>\n"; // ajaxtag
744
+ $row .= "\t\t<p class='howto'>Separate tags with commas</p>\n";
745
+ $row .= "\t\t</div>\n"; // jaxtag
746
+ $row .= "\t\t<div class='tagchecklist'>\n";
747
+
748
+ foreach ( $list as $index => $term ) {
749
+ $row .= "\t\t<span><a class='ntdelbutton' id='post_tag-check-num-{$index}'>X</a>&nbsp;{$term}</span>\n";
750
+ }
751
+
752
+ $row .= "\t\t</div>\n"; // tagchecklist
753
+ $row .= "\t\t</div>\n"; // tagsdiv
754
+ $row .= "\t\t<p><a class='tagcloud-link' id='mla-link-{$key}' href='#titlediv'>" . __( 'Choose from the most used tags', 'media-library-assistant' ) . "</a></p>\n";
755
+ $row .= "\t\t</div>\n"; // mla-taxonomy-field
756
+ $row .= "\t\t</td>\n";
757
+ $results[ $key ] = $row;
758
+ } // checked
759
+ } // flat
760
+ } // is supported
761
+ } // foreach
762
+
763
+ /*
764
+ * Any left-over requests are for unsupported taxonomies
765
+ */
766
+ foreach( $requested as $key ) {
767
+ $row = "\t\t<tr class='compat-field-{$key} mla-taxonomy-row'>\n";
768
+ $row .= "\t\t<th class='label' valign='top' scope='row'>\n";
769
+ $row .= "\t\t<label for='mla-attachments-{$post_id}-{$key}'>\n";
770
+ $row .= "\t\t<span title='" . __( 'Click to toggle', 'media-library-assistant' ) . "' class='alignleft'>{$label}</span><br class='clear'>\n";
771
+ $row .= "\t\t</label></th>\n";
772
+ $row .= "\t\t<td class='field' style='display: none'>\n";
773
+ $row .= "\t\t<div class='mla-taxonomy-field'>\n";
774
+ $row .= "\t\t<input name='attachments[{$post_id}][{$key}]' class='text' id='mla-attachments-{$post_id}-{$key}' type='hidden' value=''>\n";
775
+ $row .= "\t\t<div id='taxonomy-{$key}' class='categorydiv'>\n";
776
+ $row .= __( 'Not Supported', 'media-library-assistant' ) . ".\n";
777
+ $row .= "\t\t</div>\n";
778
+ $row .= "\t\t</div>\n";
779
+ $row .= "\t\t</td>\n";
780
+ $row .= "\t\t</tr>\n";
781
+ $results[ $key ] = $row;
782
+ }
783
+
784
+ wp_send_json_success( $results );
785
+ } // mla_fill_compat_fields_action
786
+
787
+ /**
788
+ * Ajax handler for Media Manager "update compat-attachment-fields" queries
789
+ *
790
+ * Updates one (or more) supported taxonomy and returns updated checkbox or tag/term lists
791
+ *
792
+ * @since 1.80
793
+ *
794
+ * @return void passes array of results to wp_send_json_success() for JSON encoding and transmission
795
+ */
796
+ public static function mla_update_compat_fields_action() {
797
+ global $post;
798
+
799
+ if ( empty( $_REQUEST['id'] ) || ! $id = absint( $_REQUEST['id'] ) ) {
800
+ wp_send_json_error();
801
+ }
802
+
803
+ $results = array();
804
+
805
+ foreach ( get_taxonomies( array ( 'show_ui' => true ), 'objects' ) as $key => $value ) {
806
+ if ( isset( $_REQUEST[ $key ] ) && MLAOptions::mla_taxonomy_support( $key ) ) {
807
+ if ( ! $use_checklist = $value->hierarchical ) {
808
+ $use_checklist = MLAOptions::mla_taxonomy_support( $key, 'flat-checklist' );
809
+ }
810
+
811
+ if ( $value->hierarchical ) {
812
+ $terms = array_map( 'absint', preg_split( '/,+/', $_REQUEST[ $key ] ) );
813
+ } else {
814
+ $terms = array_map( 'trim', preg_split( '/,+/', $_REQUEST[ $key ] ) );
815
+ }
816
+
817
+ wp_set_object_terms( $id, $terms, $key, false );
818
+
819
+ if ( $use_checklist ) {
820
+ if ( empty( $post ) ) {
821
+ $post = get_post( $id ); // for wp_popular_terms_checklist
822
+ }
823
+
824
+ ob_start();
825
+ $popular_ids = wp_popular_terms_checklist( $key );
826
+ $results[$key]["mla-{$key}-checklist-pop"] = ob_get_clean();
827
+
828
+ ob_start();
829
+
830
+ if ( $value->hierarchical ) {
831
+ wp_terms_checklist( $id, array( 'taxonomy' => $key, 'popular_cats' => $popular_ids ) );
832
+ } else {
833
+ $checklist_walker = new MLA_Checklist_Walker;
834
+ wp_terms_checklist( $id, array( 'taxonomy' => $key, 'popular_cats' => $popular_ids, 'walker' => $checklist_walker ) );
835
+ }
836
+
837
+ $results[$key]["mla-{$key}-checklist"] = ob_get_clean();
838
+ } else {
839
+ $terms = wp_get_object_terms( $id, $key );
840
+ if ( is_wp_error( $terms ) || empty( $terms ) ) {
841
+ $terms = array();
842
+ }
843
+
844
+ $list = array();
845
+ foreach ( $terms as $term ) {
846
+ $list[] = $term->name;
847
+ } // foreach $term
848
+
849
+ sort( $list );
850
+ $hidden_list = join( ',', $list );
851
+
852
+ $results[$key]["mla-attachments-{$id}-{$key}"] = "\t\t<input name='attachments[{$id}][{$key}]' class='the-tags' id='mla-attachments-{$id}-{$key}' type='hidden' value='{$hidden_list}'>\n";
853
+ $results[$key]["mla-tags-{$id}-{$key}"] = "\t\t<input name='mla_tags[{$id}][{$key}]' class='server-tags' id='mla-tags-{$id}-{$key}' type='hidden' value='{$hidden_list}'>\n";
854
+ }
855
+ } // set and supported
856
+ } // foreach taxonomy
857
+
858
+ wp_send_json_success( $results );
859
+ } // mla_update_compat_fields_action
860
+
861
+ /**
862
+ * Ajax handler for Media Manager "Query Attachments" queries
863
  *
864
  * Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php
865
  *
866
  * @since 1.20
867
  *
868
+ * @return void passes array of post arrays to wp_send_json_success() for JSON encoding and transmission
869
  */
870
  public static function mla_query_attachments_action() {
871
  if ( ! current_user_can( 'upload_files' ) ) {
960
  }
961
 
962
  $query = MLAData::mla_query_media_modal_items( $query, $offset, $count );
 
963
  $posts = array_map( 'wp_prepare_attachment_for_js', $query->posts );
964
  $posts = array_filter( $posts );
965
 
includes/class-mla-mime-types.php CHANGED
@@ -293,7 +293,7 @@ class MLAMime {
293
 
294
  $items[ $extensions ] = $mime_type;
295
  unset( $items['.bad.value.'] );
296
-
297
  /*
298
  * Respect the WordPress per-user 'unfiltered_html' capability test
299
  */
@@ -1512,6 +1512,15 @@ class MLAMime {
1512
  */
1513
  private static $mla_upload_mime_templates = NULL;
1514
 
 
 
 
 
 
 
 
 
 
1515
  /**
1516
  * Highest existing Upload MIME Type ID value
1517
  *
@@ -1769,13 +1778,16 @@ class MLAMime {
1769
 
1770
  /*
1771
  * Start with the MLA extensions, initialized to an inactive state
 
1772
  */
 
1773
  $template_array = MLAData::mla_load_template( 'mla-default-mime-types.tpl' );
1774
  if ( isset( $template_array['mla-mime-types'] ) ) {
1775
  $mla_mime_types = preg_split('/[\r\n]+/', $template_array['mla-mime-types'] );
1776
  foreach ( $mla_mime_types as $mla_type ) {
1777
  $array = explode(',', $mla_type );
1778
  $key = strtolower( $array[0] );
 
1779
  self::$mla_upload_mime_templates[ $key ] = array(
1780
  'post_ID' => ++self::$mla_upload_mime_highest_ID,
1781
  'mime_type' => $array[1],
@@ -1893,8 +1905,9 @@ class MLAMime {
1893
  * Apply the current settings, if any
1894
  */
1895
  foreach ( self::$mla_upload_mime_templates as $key => $value ) {
 
1896
  self::$mla_upload_mime_templates[ $key ]['disabled'] = isset( $mla_upload_mimes['disabled'][ $key ] );
1897
- self::$mla_upload_mime_templates[ $key ]['description'] = isset( $mla_upload_mimes['description'][ $key ] ) ? $mla_upload_mimes['description'][ $key ] : '';
1898
  if ( isset( $mla_upload_mimes['icon_type'][ $key ] ) ) {
1899
  self::$mla_upload_mime_templates[ $key ]['icon_type'] = $mla_upload_mimes['icon_type'][ $key ];
1900
  }
@@ -1923,7 +1936,7 @@ class MLAMime {
1923
  }
1924
 
1925
  $description = trim( $value['description'] );
1926
- if ( ! empty( $description ) ) {
1927
  $mla_upload_mimes['description'][ $key ] = $description;
1928
  }
1929
 
@@ -2044,7 +2057,7 @@ class MLAMime {
2044
  *
2045
  * @return array Message(s) reflecting the results of the operation
2046
  */
2047
- public static function mla_update_upload_mime( $request ) {
2048
  if ( self::_get_upload_mime_templates() ) {
2049
  $errors = '';
2050
  } else {
@@ -2054,6 +2067,14 @@ class MLAMime {
2054
  );
2055
  }
2056
 
 
 
 
 
 
 
 
 
2057
  $messages = '';
2058
  $slug = pathinfo( 'X.' . strtolower( trim( $request['slug'] ) ), PATHINFO_EXTENSION );
2059
  $original_slug = isset( $request['original_slug'] ) ? $request['original_slug'] : $slug;
293
 
294
  $items[ $extensions ] = $mime_type;
295
  unset( $items['.bad.value.'] );
296
+
297
  /*
298
  * Respect the WordPress per-user 'unfiltered_html' capability test
299
  */
1512
  */
1513
  private static $mla_upload_mime_templates = NULL;
1514
 
1515
+ /**
1516
+ * In-memory cache of the default Upload MIME Type descriptions
1517
+ *
1518
+ * @since 1.80
1519
+ *
1520
+ * @var array extension => description
1521
+ */
1522
+ private static $mla_upload_mime_descriptions = NULL;
1523
+
1524
  /**
1525
  * Highest existing Upload MIME Type ID value
1526
  *
1778
 
1779
  /*
1780
  * Start with the MLA extensions, initialized to an inactive state
1781
+ * Save the descriptions for use in _put_upload_mime_types()
1782
  */
1783
+ self::$mla_upload_mime_descriptions = array();
1784
  $template_array = MLAData::mla_load_template( 'mla-default-mime-types.tpl' );
1785
  if ( isset( $template_array['mla-mime-types'] ) ) {
1786
  $mla_mime_types = preg_split('/[\r\n]+/', $template_array['mla-mime-types'] );
1787
  foreach ( $mla_mime_types as $mla_type ) {
1788
  $array = explode(',', $mla_type );
1789
  $key = strtolower( $array[0] );
1790
+ self::$mla_upload_mime_descriptions[ $key ] = $array[4];
1791
  self::$mla_upload_mime_templates[ $key ] = array(
1792
  'post_ID' => ++self::$mla_upload_mime_highest_ID,
1793
  'mime_type' => $array[1],
1905
  * Apply the current settings, if any
1906
  */
1907
  foreach ( self::$mla_upload_mime_templates as $key => $value ) {
1908
+ $default_description = isset( self::$mla_upload_mime_descriptions[ $key ] ) ? self::$mla_upload_mime_descriptions[ $key ] : '';
1909
  self::$mla_upload_mime_templates[ $key ]['disabled'] = isset( $mla_upload_mimes['disabled'][ $key ] );
1910
+ self::$mla_upload_mime_templates[ $key ]['description'] = isset( $mla_upload_mimes['description'][ $key ] ) ? $mla_upload_mimes['description'][ $key ] : $default_description;
1911
  if ( isset( $mla_upload_mimes['icon_type'][ $key ] ) ) {
1912
  self::$mla_upload_mime_templates[ $key ]['icon_type'] = $mla_upload_mimes['icon_type'][ $key ];
1913
  }
1936
  }
1937
 
1938
  $description = trim( $value['description'] );
1939
+ if ( ! empty( $description ) && ( $description != self::$mla_upload_mime_descriptions[ $key ] ) ) {
1940
  $mla_upload_mimes['description'][ $key ] = $description;
1941
  }
1942
 
2057
  *
2058
  * @return array Message(s) reflecting the results of the operation
2059
  */
2060
+ public static function mla_update_upload_mime( $request = NULL ) {
2061
  if ( self::_get_upload_mime_templates() ) {
2062
  $errors = '';
2063
  } else {
2067
  );
2068
  }
2069
 
2070
+ /*
2071
+ * $request = NULL is a call from MLASettings::_version_upgrade
2072
+ */
2073
+ if ( NULL == $request ) {
2074
+ self::_put_upload_mime_templates();
2075
+ return;
2076
+ }
2077
+
2078
  $messages = '';
2079
  $slug = pathinfo( 'X.' . strtolower( trim( $request['slug'] ) ), PATHINFO_EXTENSION );
2080
  $original_slug = isset( $request['original_slug'] ) ? $request['original_slug'] : $slug;
includes/class-mla-objects.php CHANGED
@@ -93,15 +93,12 @@ class MLAObjects {
93
  foreach ( $taxonomies as $tax_name ) {
94
  if ( MLAOptions::mla_taxonomy_support( $tax_name ) ) {
95
  register_taxonomy_for_object_type( $tax_name, 'attachment');
96
- if ( 'checked' == MLAOptions::mla_get_option( 'attachments_column' ) ) {
97
-
98
- add_filter( "manage_edit-{$tax_name}_columns", 'MLAObjects::mla_taxonomy_get_columns_filter', 10, 1 ); // $columns
99
- add_filter( "manage_{$tax_name}_custom_column", 'MLAObjects::mla_taxonomy_column_filter', 10, 3 ); // $place_holder, $column_name, $tag->term_id
100
- } // option is checked
101
  } // taxonomy support
102
  } // foreach
103
  } // _build_taxonomies
104
-
105
  /**
106
  * WordPress Filter for edit taxonomy "Attachments" column,
107
  * which replaces the "Posts" column with an equivalent "Attachments" column.
@@ -148,58 +145,65 @@ class MLAObjects {
148
  * and alink to retrieve a list of them
149
  */
150
  public static function mla_taxonomy_column_filter( $place_holder, $column_name, $term_id ) {
 
 
151
  /*
152
- * Adding or inline-editing a tag is done with AJAX, and there's no current screen object
153
  */
154
- if ( isset( $_POST['action'] ) && in_array( $_POST['action'], array( 'add-tag', 'inline-save-tax' ) ) ) {
155
- $taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag';
156
- } else {
157
- $screen = get_current_screen();
158
- $taxonomy = !empty( $screen->taxonomy ) ? $screen->taxonomy : 'post_tag';
159
- }
 
 
 
 
160
 
161
- $term = get_term( $term_id, $taxonomy );
162
 
163
- if ( is_wp_error( $term ) ) {
164
- /* translators: 1: taxonomy 2: error message */
165
- error_log( sprintf( _x( 'ERROR: mla_taxonomy_column_filter( "%1$s" ) - get_term failed: "%2$s"', 'error_log', 'media-library-assistant' ), $taxonomy, $term->get_error_message() ), 0 );
166
- return 0;
167
- }
168
 
169
- $request = array (
170
- 'post_type' => 'attachment',
171
- 'post_status' => 'inherit',
172
- 'orderby' => 'none',
173
- 'nopaging' => true,
174
- 'posts_per_page' => 0,
175
- 'posts_per_archive_page' => 0,
176
- 'cache_results' => false,
177
- 'update_post_meta_cache' => false,
178
- 'update_post_term_cache' => false,
179
- 'tax_query' => array(
180
- array(
181
- 'taxonomy' => $taxonomy,
182
- 'field' => 'slug',
183
- 'terms' => $term->slug,
184
- 'include_children' => false
185
- ) )
186
- );
187
-
188
- if ( MLATest::$wordpress_3point5_plus ) {
189
- $request['fields'] = 'ids';
190
- }
191
-
192
- $results = new WP_Query( $request );
193
- if ( ! empty( $results->error ) ){
194
- /* translators: 1: taxonomy 2: error message */
195
- error_log( sprintf( _x( 'ERROR: mla_taxonomy_column_filter( "%1$s" ) - WP_Query failed: "%2$s"', 'error_log', 'media-library-assistant' ), $taxonomy, $results->error ), 0 );
196
- return 0;
197
- }
198
 
199
- $tax_object = get_taxonomy($taxonomy);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
200
 
201
  return sprintf( '<a href="%1$s">%2$s</a>', esc_url( add_query_arg(
202
- array( 'page' => MLA::ADMIN_PAGE_SLUG, 'mla-tax' => $taxonomy, 'mla-term' => $term->slug, 'heading_suffix' => urlencode( $tax_object->label . ':' . $term->name ) ), 'upload.php' ) ), number_format_i18n( $results->post_count ) );
203
  }
204
  } //Class MLAObjects
205
 
93
  foreach ( $taxonomies as $tax_name ) {
94
  if ( MLAOptions::mla_taxonomy_support( $tax_name ) ) {
95
  register_taxonomy_for_object_type( $tax_name, 'attachment');
96
+ add_filter( "manage_edit-{$tax_name}_columns", 'MLAObjects::mla_taxonomy_get_columns_filter', 10, 1 ); // $columns
97
+ add_filter( "manage_{$tax_name}_custom_column", 'MLAObjects::mla_taxonomy_column_filter', 10, 3 ); // $place_holder, $column_name, $tag->term_id
 
 
 
98
  } // taxonomy support
99
  } // foreach
100
  } // _build_taxonomies
101
+
102
  /**
103
  * WordPress Filter for edit taxonomy "Attachments" column,
104
  * which replaces the "Posts" column with an equivalent "Attachments" column.
145
  * and alink to retrieve a list of them
146
  */
147
  public static function mla_taxonomy_column_filter( $place_holder, $column_name, $term_id ) {
148
+ static $taxonomy = NULL, $tax_object = NULL, $count_terms = false, $terms = array();
149
+
150
  /*
151
+ * Do these setup tasks once per page load
152
  */
153
+ if ( NULL == $taxonomy ) {
154
+ /*
155
+ * Adding or inline-editing a tag is done with AJAX, and there's no current screen object
156
+ */
157
+ if ( isset( $_POST['action'] ) && in_array( $_POST['action'], array( 'add-tag', 'inline-save-tax' ) ) ) {
158
+ $taxonomy = !empty($_POST['taxonomy']) ? $_POST['taxonomy'] : 'post_tag';
159
+ } else {
160
+ $screen = get_current_screen();
161
+ $taxonomy = !empty( $screen->taxonomy ) ? $screen->taxonomy : 'post_tag';
162
+ }
163
 
164
+ $tax_object = get_taxonomy( $taxonomy );
165
 
166
+ $count_terms = 'checked' == MLAOptions::mla_get_option( MLAOptions::MLA_COUNT_TERM_ATTACHMENTS );
167
+ if ( $count_terms ) {
168
+ $terms = get_transient( MLA_OPTION_PREFIX . 't_term_counts_' . $taxonomy );
 
 
169
 
170
+ if ( ! is_array( $terms ) ) {
171
+ $cloud = MLAShortcodes::mla_get_terms( array(
172
+ 'taxonomy' => $taxonomy,
173
+ 'fields' => 't.term_id, t.name, t.slug, COUNT(p.ID) AS `count`',
174
+ 'number' => 0,
175
+ 'no_orderby' => true
176
+ ) );
177
+
178
+ unset( $cloud['found_rows'] );
179
+ foreach( $cloud as $term ) {
180
+ $terms[ $term->term_id ] = $term;
181
+ }
182
+
183
+ set_transient( MLA_OPTION_PREFIX . 't_term_counts_' . $taxonomy, $terms, 300 ); // five minutes
184
+ }// build the array
185
+ } // set $terms
186
+ } // setup tasks
 
 
 
 
 
 
 
 
 
 
 
 
187
 
188
+ if ( isset( $terms[ $term_id ] ) ) {
189
+ $term = $terms[ $term_id ];
190
+ $column_text = number_format_i18n( $term->count );
191
+ } else {
192
+ $term = get_term( $term_id, $taxonomy );
193
+
194
+ if ( is_wp_error( $term ) ) {
195
+ /* translators: 1: taxonomy 2: error message */
196
+ error_log( sprintf( _x( 'ERROR: mla_taxonomy_column_filter( "%1$s" ) - get_term failed: "%2$s"', 'error_log', 'media-library-assistant' ), $taxonomy, $term->get_error_message() ), 0 );
197
+ return 0;
198
+ } elseif ($count_terms ) {
199
+ $column_text = number_format_i18n( 0 );
200
+ } else {
201
+ $column_text = __( 'click to search', 'media-library-assistant' );
202
+ }
203
+ }
204
 
205
  return sprintf( '<a href="%1$s">%2$s</a>', esc_url( add_query_arg(
206
+ array( 'page' => MLA::ADMIN_PAGE_SLUG, 'mla-tax' => $taxonomy, 'mla-term' => $term->slug, 'heading_suffix' => urlencode( $tax_object->label . ':' . $term->name ) ), 'upload.php' ) ), $column_text );
207
  }
208
  } //Class MLAObjects
209
 
includes/class-mla-options.php CHANGED
@@ -46,6 +46,11 @@ class MLAOptions {
46
  */
47
  const MLA_MLA_GALLERY_IN_TUNING = 'mla_gallery_in_tuning';
48
 
 
 
 
 
 
49
  /**
50
  * Provides a unique name for the taxonomy support option
51
  */
@@ -82,10 +87,15 @@ class MLAOptions {
82
  const MLA_DEFAULT_ORDER = 'default_order';
83
 
84
  /**
85
- * Provides a unique name for the default table views width option
86
  */
87
  const MLA_TABLE_VIEWS_WIDTH = 'table_views_width';
88
 
 
 
 
 
 
89
  /**
90
  * Provides a unique name for the taxonomy filter maximum depth option
91
  */
@@ -112,7 +122,18 @@ class MLAOptions {
112
  const MLA_NEW_CUSTOM_FIELD = '__NEW FIELD__';
113
 
114
  /**
115
- * Provides a unique name for the Media Manager toolbar option
 
 
 
 
 
 
 
 
 
 
 
116
  */
117
  const MLA_MEDIA_MODAL_TOOLBAR = 'media_modal_toolbar';
118
 
@@ -291,7 +312,7 @@ class MLAOptions {
291
  ( 'checked' == MLAOptions::mla_get_option( 'enable_custom_field_update' ) ) ) {
292
  add_filter( 'wp_handle_upload_prefilter', 'MLAOptions::mla_wp_handle_upload_prefilter_filter', 1, 1 );
293
  add_filter( 'wp_handle_upload', 'MLAOptions::mla_wp_handle_upload_filter', 1, 1 );
294
-
295
  add_action( 'add_attachment', 'MLAOptions::mla_add_attachment_action', 0x7FFFFFFF, 1 );
296
  add_filter( 'wp_update_attachment_metadata', 'MLAOptions::mla_update_attachment_metadata_filter', 0x7FFFFFFF, 2 );
297
  }
@@ -446,9 +467,16 @@ class MLAOptions {
446
  'name' => __( 'Taxonomy Support', 'media-library-assistant' ),
447
  'type' => 'header'),
448
 
 
 
 
 
 
 
 
449
  self::MLA_TAXONOMY_SUPPORT =>
450
  array('tab' => 'general',
451
- '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.', 'media-library-assistant' ),
452
  'std' => array (
453
  'tax_support' => array (
454
  'attachment_category' => 'checked',
@@ -458,6 +486,7 @@ class MLAOptions {
458
  'attachment_category' => 'checked',
459
  'attachment_tag' => 'checked',
460
  ),
 
461
  'tax_filter' => 'attachment_category'
462
  ),
463
  'type' => 'custom',
@@ -466,13 +495,6 @@ class MLAOptions {
466
  'delete' => 'mla_taxonomy_option_handler',
467
  'reset' => 'mla_taxonomy_option_handler'),
468
 
469
- 'attachments_column' =>
470
- array('tab' => '',
471
- 'name' => __( 'Attachments Column', 'media-library-assistant' ),
472
- 'type' => 'hidden', // checkbox',
473
- 'std' => 'checked',
474
- 'help' => __( 'Check this option to replace the Posts column with the Attachments Column.', 'media-library-assistant' )),
475
-
476
  'media_assistant_header' =>
477
  array('tab' => 'general',
478
  'name' => __( 'Media/Assistant Screen Options', 'media-library-assistant' ),
@@ -545,6 +567,14 @@ class MLAOptions {
545
  'size' => 10,
546
  'help' => __( 'Enter the width for the views list, in pixels (px) or percent (%)', 'media-library-assistant' )),
547
 
 
 
 
 
 
 
 
 
548
  'taxonomy_filter_subheader' =>
549
  array('tab' => 'general',
550
  'name' => __( 'Taxonomy Filter parameters', 'media-library-assistant' ),
@@ -565,6 +595,25 @@ class MLAOptions {
565
  'std' => 'checked',
566
  'help' => __( 'Check/uncheck this option to include/exclude children for hierarchical taxonomies.', 'media-library-assistant' )),
567
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
568
  'media_modal_header' =>
569
  array('tab' => 'general',
570
  'name' => __( 'Media Manager Enhancements', 'media-library-assistant' ),
@@ -607,17 +656,17 @@ class MLAOptions {
607
 
608
  self::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX =>
609
  array('tab' => 'general',
610
- 'name' => __( 'Media Manager Searchable Categories metaboxes', 'media-library-assistant' ),
611
  'type' => 'checkbox',
612
- 'std' => '',
613
- 'help' => __( 'Check this option to enable searchable metaboxes in the "ATTACHMENT DETAILS" pane.<br>&nbsp;&nbsp;This option is for <strong>hierarchical taxonomies, e.g., "Att. Categories".</strong><br>&nbsp;&nbsp;You must also install and activate the <strong>"Media Categories" plugin</strong> (by Eddie Moya) to implement this option.', 'media-library-assistant' )),
614
 
615
  self::MLA_MEDIA_MODAL_DETAILS_TAG_METABOX =>
616
  array('tab' => 'general',
617
- 'name' => __( 'Media Manager Searchable Tags metaboxes', 'media-library-assistant' ),
618
  'type' => 'checkbox',
619
- 'std' => '',
620
- 'help' => __( 'Check this option to enable searchable metaboxes in the "ATTACHMENT DETAILS" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies, e.g., "Att. Tags".</strong><br>&nbsp;&nbsp;You must also install and activate the <strong>"Media Categories" plugin</strong> (by Eddie Moya) to implement this option.', 'media-library-assistant' )),
621
 
622
  self::MLA_MEDIA_MODAL_ORDERBY =>
623
  array('tab' => '',
@@ -1295,6 +1344,17 @@ class MLAOptions {
1295
  }
1296
  }
1297
 
 
 
 
 
 
 
 
 
 
 
 
1298
  return $is_supported;
1299
  case 'filter':
1300
  $tax_filter = isset( $tax_options['tax_filter'] ) ? $tax_options['tax_filter'] : '';
@@ -1341,7 +1401,7 @@ class MLAOptions {
1341
  if ( empty( $current_value ) ) {
1342
  $current_value = $value['std'];
1343
  }
1344
-
1345
  $select_options = '';
1346
  foreach ( $value['options'] as $optid => $option ) {
1347
  $option_values = array(
@@ -1372,7 +1432,7 @@ class MLAOptions {
1372
  if ( $value['std'] == $new_value ) {
1373
  $new_value = '';
1374
  }
1375
-
1376
  update_option( $key, $new_value );
1377
  return $msg;
1378
  case 'reset':
@@ -1405,6 +1465,7 @@ class MLAOptions {
1405
  $current_values = self::mla_get_option( $key );
1406
  $tax_support = isset( $current_values['tax_support'] ) ? $current_values['tax_support'] : array();
1407
  $tax_quick_edit = isset( $current_values['tax_quick_edit'] ) ? $current_values['tax_quick_edit'] : array();
 
1408
  $tax_filter = isset( $current_values['tax_filter'] ) ? $current_values['tax_filter'] : '';
1409
 
1410
  /*
@@ -1451,15 +1512,25 @@ class MLAOptions {
1451
  'name' => $tax_object->labels->name,
1452
  'support_checked' => array_key_exists( $tax_name, $tax_support ) ? 'checked=checked' : '',
1453
  'quick_edit_checked' => array_key_exists( $tax_name, $tax_quick_edit ) ? 'checked=checked' : '',
 
 
 
1454
  'filter_checked' => ( $tax_name == $tax_filter ) ? 'checked=checked' : ''
1455
  );
1456
 
 
 
 
 
 
 
1457
  $row .= MLAData::mla_parse_template( $taxonomy_row, $option_values );
1458
  }
1459
 
1460
  $option_values = array (
1461
  'Support' => __( 'Support', 'media-library-assistant' ),
1462
  'Inline Edit' => __( 'Inline Edit', 'media-library-assistant' ),
 
1463
  'List Filter' => __( 'List Filter', 'media-library-assistant' ),
1464
  'Taxonomy' => __( 'Taxonomy', 'media-library-assistant' ),
1465
  'taxonomy_rows' => $row,
@@ -1471,6 +1542,7 @@ class MLAOptions {
1471
  case 'delete':
1472
  $tax_support = isset( $args['tax_support'] ) ? $args['tax_support'] : array();
1473
  $tax_quick_edit = isset( $args['tax_quick_edit'] ) ? $args['tax_quick_edit'] : array();
 
1474
  $tax_filter = isset( $args['tax_filter'] ) ? $args['tax_filter'] : '';
1475
 
1476
  $msg = '';
@@ -1481,17 +1553,28 @@ class MLAOptions {
1481
  $tax_filter = '';
1482
  }
1483
 
1484
- foreach ( $tax_quick_edit as $tax_name => $tax_value ) {
1485
  if ( !array_key_exists( $tax_name, $tax_support ) ) {
1486
  /* translators: 1: taxonomy name */
1487
- $msg .= '<br>' . sprintf( __( 'Quick Edit ignored; %1$s not supported.', 'media-library-assistant' ), $tax_name ) . "\r\n";
1488
  unset( $tax_quick_edit[ $tax_name ] );
1489
  }
1490
  }
1491
 
 
 
 
 
 
 
 
 
 
 
1492
  $value = array (
1493
  'tax_support' => $tax_support,
1494
  'tax_quick_edit' => $tax_quick_edit,
 
1495
  'tax_filter' => $tax_filter
1496
  );
1497
 
@@ -1543,7 +1626,7 @@ class MLAOptions {
1543
  if ( ! class_exists( 'getID3' ) ) {
1544
  require( ABSPATH . WPINC . '/ID3/getid3.php' );
1545
  }
1546
-
1547
  $id3 = new getID3();
1548
  $id3_data = $id3->analyze( $file['file'] );
1549
  $file = apply_filters( 'mla_upload_filter', $file, $id3_data );
@@ -1598,7 +1681,7 @@ class MLAOptions {
1598
  unset( $updates['custom_updates'][ $key ] );
1599
  }
1600
  } // foreach $updates
1601
-
1602
  if ( empty( $updates['custom_updates'] ) ) {
1603
  unset( $updates['custom_updates'] );
1604
  }
@@ -1633,25 +1716,25 @@ class MLAOptions {
1633
  $options['enable_custom_field_mapping'] = 'checked' == MLAOptions::mla_get_option( 'enable_custom_field_mapping' );
1634
  $options['enable_iptc_exif_update'] = 'checked' == MLAOptions::mla_get_option( 'enable_iptc_exif_update' );
1635
  $options['enable_custom_field_update'] = 'checked' == MLAOptions::mla_get_option( 'enable_custom_field_update' );
1636
-
1637
  $options = apply_filters( 'mla_update_attachment_metadata_options', $options, $data, $post_id );
1638
  $data = apply_filters( 'mla_update_attachment_metadata_prefilter', $data, $post_id, $options );
1639
-
1640
  if ( $options['is_upload'] ) {
1641
  if ( $options['enable_iptc_exif_mapping'] ) {
1642
  $item = get_post( $post_id );
1643
  $updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping', NULL, $data );
1644
  $updates = self::_update_attachment_metadata( $updates, $data );
1645
-
1646
  if ( !empty( $updates ) ) {
1647
  $item_content = MLAData::mla_update_single_item( $post_id, $updates );
1648
  }
1649
  }
1650
-
1651
  if ( $options['enable_custom_field_mapping'] ) {
1652
  $updates = MLAOptions::mla_evaluate_custom_field_mapping( $post_id, 'single_attachment_mapping', NULL, $data );
1653
  $updates = self::_update_attachment_metadata( $updates, $data );
1654
-
1655
  if ( !empty( $updates ) ) {
1656
  $item_content = MLAData::mla_update_single_item( $post_id, $updates );
1657
  }
@@ -1661,16 +1744,16 @@ class MLAOptions {
1661
  $item = get_post( $post_id );
1662
  $updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping', NULL, $data );
1663
  $updates = self::_update_attachment_metadata( $updates, $data );
1664
-
1665
  if ( !empty( $updates ) ) {
1666
  $item_content = MLAData::mla_update_single_item( $post_id, $updates );
1667
  }
1668
  }
1669
-
1670
  if ( $options['enable_custom_field_update'] ) {
1671
  $updates = MLAOptions::mla_evaluate_custom_field_mapping( $post_id, 'single_attachment_mapping', NULL, $data );
1672
  $updates = self::_update_attachment_metadata( $updates, $data );
1673
-
1674
  if ( !empty( $updates ) ) {
1675
  $item_content = MLAData::mla_update_single_item( $post_id, $updates );
1676
  }
@@ -1726,7 +1809,7 @@ class MLAOptions {
1726
  break;
1727
  case 'default_hidden_columns':
1728
  if ( $value['mla_column'] ) {
1729
- $results[ ] = $slug;
1730
  }
1731
  break;
1732
  case 'default_sortable_columns':
@@ -1936,6 +2019,41 @@ class MLAOptions {
1936
  return self::_evaluate_data_source( $post_id, $category, $data_value, $attachment_metadata = NULL );
1937
  } // mla_get_data_source
1938
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1939
  /**
1940
  * Evaluate custom field mapping data source
1941
  *
@@ -1952,6 +2070,7 @@ class MLAOptions {
1952
  global $wpdb;
1953
  static $upload_dir, $intermediate_sizes = NULL, $wp_attached_files = NULL, $wp_attachment_metadata = NULL;
1954
  static $current_id = 0, $file_info = NULL, $parent_info = NULL, $references = NULL;
 
1955
  if ( 'none' == $data_value['data_source'] ) {
1956
  return '';
1957
  }
@@ -2326,7 +2445,7 @@ class MLAOptions {
2326
  /*
2327
  * Make numeric values sortable as strings, make all value non-empty
2328
  */
2329
- if ( in_array( $data_source, array( 'file_size', 'pixels', 'width', 'height' ) ) ) {
2330
  $result = str_pad( $result, 15, ' ', STR_PAD_LEFT );
2331
  } elseif ( empty( $result ) ) {
2332
  $result = ' ';
@@ -2353,7 +2472,7 @@ class MLAOptions {
2353
  }
2354
 
2355
  $settings = apply_filters( 'mla_mapping_settings', $settings, $post_id, $category, $attachment_metadata );
2356
-
2357
  $custom_updates = array();
2358
  foreach ( $settings as $setting_key => $setting_value ) {
2359
  /*
@@ -2365,7 +2484,7 @@ class MLAOptions {
2365
  if ( NULL === $setting_value ) {
2366
  continue;
2367
  }
2368
-
2369
  if ( 'none' == $setting_value['data_source'] ) {
2370
  continue;
2371
  }
@@ -3081,7 +3200,7 @@ class MLAOptions {
3081
  }
3082
 
3083
  $settings = apply_filters( 'mla_mapping_settings', $settings, $post->ID, $category, $attachment_metadata );
3084
-
3085
  if ( $update_all || ( 'iptc_exif_standard_mapping' == $category ) ) {
3086
  foreach ( $settings['standard'] as $setting_key => $setting_value ) {
3087
  $setting_value = apply_filters( 'mla_mapping_rule', $setting_value, $post->ID, 'iptc_exif_standard_mapping', $attachment_metadata );
@@ -3339,7 +3458,7 @@ class MLAOptions {
3339
  if ( $setting_value['keep_existing'] ) {
3340
  if ( 'meta:' == substr( $setting_key, 0, 5 ) ) {
3341
  $meta_key = substr( $setting_key, 5 );
3342
-
3343
  if ( NULL === $attachment_metadata ) {
3344
  $attachment_metadata = maybe_unserialize( get_metadata( 'post', $post->ID, '_wp_attachment_metadata', true ) );
3345
  }
@@ -3481,7 +3600,7 @@ class MLAOptions {
3481
  * Field Title can change as a result of localization
3482
  */
3483
  $new_value['name'] = self::$mla_option_definitions['iptc_exif_mapping']['std']['standard'][ $new_key ]['name'];
3484
-
3485
  if ( $old_values['name'] != $new_value['name'] ) {
3486
  $any_setting_changed = true;
3487
  /* translators: 1: custom field name 2: attribute 3: old value 4: new value */
46
  */
47
  const MLA_MLA_GALLERY_IN_TUNING = 'mla_gallery_in_tuning';
48
 
49
+ /**
50
+ * Provides a unique name for the taxonomy count Attachments option
51
+ */
52
+ const MLA_COUNT_TERM_ATTACHMENTS = 'count_term_attachments';
53
+
54
  /**
55
  * Provides a unique name for the taxonomy support option
56
  */
87
  const MLA_DEFAULT_ORDER = 'default_order';
88
 
89
  /**
90
+ * Provides a unique name for the Media/Assistant submenu table views width option
91
  */
92
  const MLA_TABLE_VIEWS_WIDTH = 'table_views_width';
93
 
94
+ /**
95
+ * Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option
96
+ */
97
+ const MLA_TABLE_ICON_SIZE = 'table_icon_size';
98
+
99
  /**
100
  * Provides a unique name for the taxonomy filter maximum depth option
101
  */
122
  const MLA_NEW_CUSTOM_FIELD = '__NEW FIELD__';
123
 
124
  /**
125
+ * Provides a unique name for the "searchable taxonomies" option
126
+ */
127
+ const MLA_EDIT_MEDIA_SEARCH_TAXONOMY = 'edit_media_search_taxonomy';
128
+
129
+ /**
130
+ * Provides a unique name for the Edit Media additional meta boxes option
131
+ */
132
+ const MLA_EDIT_MEDIA_META_BOXES = 'edit_media_meta_boxes';
133
+
134
+ /**
135
+ * Provides a unique name for the Media Manager toolbar option, which
136
+ * also controls the ATTACHMENT DETAILS enhancements
137
  */
138
  const MLA_MEDIA_MODAL_TOOLBAR = 'media_modal_toolbar';
139
 
312
  ( 'checked' == MLAOptions::mla_get_option( 'enable_custom_field_update' ) ) ) {
313
  add_filter( 'wp_handle_upload_prefilter', 'MLAOptions::mla_wp_handle_upload_prefilter_filter', 1, 1 );
314
  add_filter( 'wp_handle_upload', 'MLAOptions::mla_wp_handle_upload_filter', 1, 1 );
315
+
316
  add_action( 'add_attachment', 'MLAOptions::mla_add_attachment_action', 0x7FFFFFFF, 1 );
317
  add_filter( 'wp_update_attachment_metadata', 'MLAOptions::mla_update_attachment_metadata_filter', 0x7FFFFFFF, 2 );
318
  }
467
  'name' => __( 'Taxonomy Support', 'media-library-assistant' ),
468
  'type' => 'header'),
469
 
470
+ self::MLA_COUNT_TERM_ATTACHMENTS =>
471
+ array('tab' => 'general',
472
+ 'name' => __( 'Compute Attachments Column', 'media-library-assistant' ),
473
+ 'type' => 'checkbox',
474
+ 'std' => 'checked',
475
+ 'help' => __( 'Check this option to calculate attachments per term in the Attachments Column.', 'media-library-assistant' )),
476
+
477
  self::MLA_TAXONOMY_SUPPORT =>
478
  array('tab' => 'general',
479
+ '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>Check the "Checklist" box to enable the checklist-style meta box for a flat taxonomy.<br>You must also check the <strong>"Enable enhanced checklist taxonomies"</strong> box below to enable this feature.<br>Use the "List Filter" option to select the taxonomy on which to filter the Assistant table listing.', 'media-library-assistant' ),
480
  'std' => array (
481
  'tax_support' => array (
482
  'attachment_category' => 'checked',
486
  'attachment_category' => 'checked',
487
  'attachment_tag' => 'checked',
488
  ),
489
+ 'tax_flat_checklist' => array(),
490
  'tax_filter' => 'attachment_category'
491
  ),
492
  'type' => 'custom',
495
  'delete' => 'mla_taxonomy_option_handler',
496
  'reset' => 'mla_taxonomy_option_handler'),
497
 
 
 
 
 
 
 
 
498
  'media_assistant_header' =>
499
  array('tab' => 'general',
500
  'name' => __( 'Media/Assistant Screen Options', 'media-library-assistant' ),
567
  'size' => 10,
568
  'help' => __( 'Enter the width for the views list, in pixels (px) or percent (%)', 'media-library-assistant' )),
569
 
570
+ self::MLA_TABLE_ICON_SIZE =>
571
+ array('tab' => 'general',
572
+ 'name' => __( 'Icon Size', 'media-library-assistant' ),
573
+ 'type' => 'text',
574
+ 'std' => '',
575
+ 'size' => 10,
576
+ 'help' => __( 'Enter the size of the thumbnail/icon images, in pixels', 'media-library-assistant' )),
577
+
578
  'taxonomy_filter_subheader' =>
579
  array('tab' => 'general',
580
  'name' => __( 'Taxonomy Filter parameters', 'media-library-assistant' ),
595
  'std' => 'checked',
596
  'help' => __( 'Check/uncheck this option to include/exclude children for hierarchical taxonomies.', 'media-library-assistant' )),
597
 
598
+ 'edit_media_header' =>
599
+ array('tab' => 'general',
600
+ 'name' => __( 'Media/Edit Media Enhancements', 'media-library-assistant' ),
601
+ 'type' => 'header'),
602
+
603
+ self::MLA_EDIT_MEDIA_SEARCH_TAXONOMY =>
604
+ array('tab' => 'general',
605
+ 'name' => __( 'Enable enhanced "checklist" taxonomies', 'media-library-assistant' ),
606
+ 'type' => 'checkbox',
607
+ 'std' => 'checked',
608
+ 'help' => __( 'Check this option to enable the "? Search" feature for hierarchical taxonomies, e.g., Att. Categories.<br>&nbsp;&nbsp;This option also enables the "checklist-style" support for flat taxonomies, e.g., Att. Tags.', 'media-library-assistant' )),
609
+
610
+ self::MLA_EDIT_MEDIA_META_BOXES =>
611
+ array('tab' => 'general',
612
+ 'name' => __( 'Enable Edit Media additional meta boxes', 'media-library-assistant' ),
613
+ 'type' => 'checkbox',
614
+ 'std' => 'checked',
615
+ 'help' => __( 'Check this option to add "Parent Info", "Menu Order", "Attachment Metadata" and four "where-used" meta boxes to the Edit Media screen.', 'media-library-assistant' )),
616
+
617
  'media_modal_header' =>
618
  array('tab' => 'general',
619
  'name' => __( 'Media Manager Enhancements', 'media-library-assistant' ),
656
 
657
  self::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX =>
658
  array('tab' => 'general',
659
+ 'name' => __( 'Media Manager Checklist meta boxes', 'media-library-assistant' ),
660
  'type' => 'checkbox',
661
+ 'std' => 'checked',
662
+ 'help' => __( 'Check this option to enable MLA-enhanced meta boxes in the "ATTACHMENT DETAILS" pane.<br>&nbsp;&nbsp;This option is for any taxonomy that uses a <strong>"checklist-style"</strong> meta box.</strong>', 'media-library-assistant' )),
663
 
664
  self::MLA_MEDIA_MODAL_DETAILS_TAG_METABOX =>
665
  array('tab' => 'general',
666
+ 'name' => __( 'Media Manager Flat meta boxes', 'media-library-assistant' ),
667
  'type' => 'checkbox',
668
+ 'std' => 'checked',
669
+ 'help' => __( 'Check this option to enable MLA-enhanced meta boxes in the "ATTACHMENT DETAILS" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies</strong>, e.g., "Tags" or "Att. Tags", that do not use the "checklist-style" meta box.', 'media-library-assistant' )),
670
 
671
  self::MLA_MEDIA_MODAL_ORDERBY =>
672
  array('tab' => '',
1344
  }
1345
  }
1346
 
1347
+ return $is_supported;
1348
+ case 'flat-checklist':
1349
+ $tax_flat_checklist = isset( $tax_options['tax_flat_checklist'] ) ? $tax_options['tax_flat_checklist'] : array();
1350
+ $is_supported = array_key_exists( $tax_name, $tax_flat_checklist );
1351
+
1352
+ if ( !empty( $_REQUEST['mla-general-options-save'] ) ) {
1353
+ $is_supported = isset( $_REQUEST['tax_flat_checklist'][ $tax_name ] );
1354
+ } elseif ( !empty( $_REQUEST['mla-general-options-reset'] ) ) {
1355
+ $is_supported = false;
1356
+ }
1357
+
1358
  return $is_supported;
1359
  case 'filter':
1360
  $tax_filter = isset( $tax_options['tax_filter'] ) ? $tax_options['tax_filter'] : '';
1401
  if ( empty( $current_value ) ) {
1402
  $current_value = $value['std'];
1403
  }
1404
+
1405
  $select_options = '';
1406
  foreach ( $value['options'] as $optid => $option ) {
1407
  $option_values = array(
1432
  if ( $value['std'] == $new_value ) {
1433
  $new_value = '';
1434
  }
1435
+
1436
  update_option( $key, $new_value );
1437
  return $msg;
1438
  case 'reset':
1465
  $current_values = self::mla_get_option( $key );
1466
  $tax_support = isset( $current_values['tax_support'] ) ? $current_values['tax_support'] : array();
1467
  $tax_quick_edit = isset( $current_values['tax_quick_edit'] ) ? $current_values['tax_quick_edit'] : array();
1468
+ $tax_flat_checklist = isset( $current_values['tax_flat_checklist'] ) ? $current_values['tax_flat_checklist'] : array();
1469
  $tax_filter = isset( $current_values['tax_filter'] ) ? $current_values['tax_filter'] : '';
1470
 
1471
  /*
1512
  'name' => $tax_object->labels->name,
1513
  'support_checked' => array_key_exists( $tax_name, $tax_support ) ? 'checked=checked' : '',
1514
  'quick_edit_checked' => array_key_exists( $tax_name, $tax_quick_edit ) ? 'checked=checked' : '',
1515
+ 'flat_checklist_checked' => array_key_exists( $tax_name, $tax_flat_checklist ) ? 'checked=checked' : '',
1516
+ 'flat_checklist_disabled' => '',
1517
+ 'flat_checklist_value' => 'checked',
1518
  'filter_checked' => ( $tax_name == $tax_filter ) ? 'checked=checked' : ''
1519
  );
1520
 
1521
+ if ( $tax_object->hierarchical ) {
1522
+ $option_values['flat_checklist_checked'] = 'checked=checked';
1523
+ $option_values['flat_checklist_disabled'] = 'disabled=disabled';
1524
+ $option_values['flat_checklist_value'] = 'disabled';
1525
+ }
1526
+
1527
  $row .= MLAData::mla_parse_template( $taxonomy_row, $option_values );
1528
  }
1529
 
1530
  $option_values = array (
1531
  'Support' => __( 'Support', 'media-library-assistant' ),
1532
  'Inline Edit' => __( 'Inline Edit', 'media-library-assistant' ),
1533
+ 'Checklist' => __( 'Checklist', 'media-library-assistant' ),
1534
  'List Filter' => __( 'List Filter', 'media-library-assistant' ),
1535
  'Taxonomy' => __( 'Taxonomy', 'media-library-assistant' ),
1536
  'taxonomy_rows' => $row,
1542
  case 'delete':
1543
  $tax_support = isset( $args['tax_support'] ) ? $args['tax_support'] : array();
1544
  $tax_quick_edit = isset( $args['tax_quick_edit'] ) ? $args['tax_quick_edit'] : array();
1545
+ $tax_flat_checklist = isset( $args['tax_flat_checklist'] ) ? $args['tax_flat_checklist'] : array();
1546
  $tax_filter = isset( $args['tax_filter'] ) ? $args['tax_filter'] : '';
1547
 
1548
  $msg = '';
1553
  $tax_filter = '';
1554
  }
1555
 
1556
+ foreach ( $tax_quick_edit as $tax_name => $tax_value ) {
1557
  if ( !array_key_exists( $tax_name, $tax_support ) ) {
1558
  /* translators: 1: taxonomy name */
1559
+ $msg .= '<br>' . sprintf( __( 'Inline Edit ignored; %1$s not supported.', 'media-library-assistant' ), $tax_name ) . "\r\n";
1560
  unset( $tax_quick_edit[ $tax_name ] );
1561
  }
1562
  }
1563
 
1564
+ foreach ( $tax_flat_checklist as $tax_name => $tax_value ) {
1565
+ if ( 'disabled' == $tax_value ) {
1566
+ unset( $tax_flat_checklist[ $tax_name ] );
1567
+ } elseif ( !array_key_exists( $tax_name, $tax_support ) ) {
1568
+ /* translators: 1: taxonomy name */
1569
+ $msg .= '<br>' . sprintf( __( 'Checklist ignored; %1$s not supported.', 'media-library-assistant' ), $tax_name ) . "\r\n";
1570
+ unset( $tax_flat_checklist[ $tax_name ] );
1571
+ }
1572
+ }
1573
+
1574
  $value = array (
1575
  'tax_support' => $tax_support,
1576
  'tax_quick_edit' => $tax_quick_edit,
1577
+ 'tax_flat_checklist' => $tax_flat_checklist,
1578
  'tax_filter' => $tax_filter
1579
  );
1580
 
1626
  if ( ! class_exists( 'getID3' ) ) {
1627
  require( ABSPATH . WPINC . '/ID3/getid3.php' );
1628
  }
1629
+
1630
  $id3 = new getID3();
1631
  $id3_data = $id3->analyze( $file['file'] );
1632
  $file = apply_filters( 'mla_upload_filter', $file, $id3_data );
1681
  unset( $updates['custom_updates'][ $key ] );
1682
  }
1683
  } // foreach $updates
1684
+
1685
  if ( empty( $updates['custom_updates'] ) ) {
1686
  unset( $updates['custom_updates'] );
1687
  }
1716
  $options['enable_custom_field_mapping'] = 'checked' == MLAOptions::mla_get_option( 'enable_custom_field_mapping' );
1717
  $options['enable_iptc_exif_update'] = 'checked' == MLAOptions::mla_get_option( 'enable_iptc_exif_update' );
1718
  $options['enable_custom_field_update'] = 'checked' == MLAOptions::mla_get_option( 'enable_custom_field_update' );
1719
+
1720
  $options = apply_filters( 'mla_update_attachment_metadata_options', $options, $data, $post_id );
1721
  $data = apply_filters( 'mla_update_attachment_metadata_prefilter', $data, $post_id, $options );
1722
+
1723
  if ( $options['is_upload'] ) {
1724
  if ( $options['enable_iptc_exif_mapping'] ) {
1725
  $item = get_post( $post_id );
1726
  $updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping', NULL, $data );
1727
  $updates = self::_update_attachment_metadata( $updates, $data );
1728
+
1729
  if ( !empty( $updates ) ) {
1730
  $item_content = MLAData::mla_update_single_item( $post_id, $updates );
1731
  }
1732
  }
1733
+
1734
  if ( $options['enable_custom_field_mapping'] ) {
1735
  $updates = MLAOptions::mla_evaluate_custom_field_mapping( $post_id, 'single_attachment_mapping', NULL, $data );
1736
  $updates = self::_update_attachment_metadata( $updates, $data );
1737
+
1738
  if ( !empty( $updates ) ) {
1739
  $item_content = MLAData::mla_update_single_item( $post_id, $updates );
1740
  }
1744
  $item = get_post( $post_id );
1745
  $updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping', NULL, $data );
1746
  $updates = self::_update_attachment_metadata( $updates, $data );
1747
+
1748
  if ( !empty( $updates ) ) {
1749
  $item_content = MLAData::mla_update_single_item( $post_id, $updates );
1750
  }
1751
  }
1752
+
1753
  if ( $options['enable_custom_field_update'] ) {
1754
  $updates = MLAOptions::mla_evaluate_custom_field_mapping( $post_id, 'single_attachment_mapping', NULL, $data );
1755
  $updates = self::_update_attachment_metadata( $updates, $data );
1756
+
1757
  if ( !empty( $updates ) ) {
1758
  $item_content = MLAData::mla_update_single_item( $post_id, $updates );
1759
  }
1809
  break;
1810
  case 'default_hidden_columns':
1811
  if ( $value['mla_column'] ) {
1812
+ $results[] = $slug;
1813
  }
1814
  break;
1815
  case 'default_sortable_columns':
2019
  return self::_evaluate_data_source( $post_id, $category, $data_value, $attachment_metadata = NULL );
2020
  } // mla_get_data_source
2021
 
2022
+ /**
2023
+ * Identify custom field mapping data source
2024
+ *
2025
+ * Determines whether a name matches any of the element-level data source dropdown options, i.e.,
2026
+ * excludes "template:" and "meta:" values.
2027
+ *
2028
+ * @since 1.80
2029
+ *
2030
+ * @param string candidate data source name
2031
+ *
2032
+ * @return boolean true if candidate name matches a data source
2033
+ */
2034
+ public static function mla_is_data_source( $candidate_name ) {
2035
+ static $intermediate_sizes = NULL;
2036
+
2037
+ /*
2038
+ * The [size] elements are expanded with available image sizes;
2039
+ * convert valid sizes back to the generic [size] value to match the list.
2040
+ */
2041
+ $match_count = preg_match( '/(.+)\[(.+)\]/', $candidate_name, $matches );
2042
+ if ( 1 == $match_count ) {
2043
+ if ( NULL === $intermediate_sizes ) {
2044
+ $intermediate_sizes = get_intermediate_image_sizes();
2045
+ }
2046
+
2047
+ if ( in_array( $matches[2], $intermediate_sizes ) ) {
2048
+ $candidate_name = $matches[1] . '[size]';
2049
+ } else {
2050
+ return false;
2051
+ }
2052
+ }
2053
+
2054
+ return in_array( $candidate_name, self::$custom_field_data_sources );
2055
+ } // mla_is_data_source
2056
+
2057
  /**
2058
  * Evaluate custom field mapping data source
2059
  *
2070
  global $wpdb;
2071
  static $upload_dir, $intermediate_sizes = NULL, $wp_attached_files = NULL, $wp_attachment_metadata = NULL;
2072
  static $current_id = 0, $file_info = NULL, $parent_info = NULL, $references = NULL;
2073
+
2074
  if ( 'none' == $data_value['data_source'] ) {
2075
  return '';
2076
  }
2445
  /*
2446
  * Make numeric values sortable as strings, make all value non-empty
2447
  */
2448
+ if ( 'raw' != $data_value['format'] && in_array( $data_source, array( 'file_size', 'pixels', 'width', 'height' ) ) ) {
2449
  $result = str_pad( $result, 15, ' ', STR_PAD_LEFT );
2450
  } elseif ( empty( $result ) ) {
2451
  $result = ' ';
2472
  }
2473
 
2474
  $settings = apply_filters( 'mla_mapping_settings', $settings, $post_id, $category, $attachment_metadata );
2475
+
2476
  $custom_updates = array();
2477
  foreach ( $settings as $setting_key => $setting_value ) {
2478
  /*
2484
  if ( NULL === $setting_value ) {
2485
  continue;
2486
  }
2487
+
2488
  if ( 'none' == $setting_value['data_source'] ) {
2489
  continue;
2490
  }
3200
  }
3201
 
3202
  $settings = apply_filters( 'mla_mapping_settings', $settings, $post->ID, $category, $attachment_metadata );
3203
+
3204
  if ( $update_all || ( 'iptc_exif_standard_mapping' == $category ) ) {
3205
  foreach ( $settings['standard'] as $setting_key => $setting_value ) {
3206
  $setting_value = apply_filters( 'mla_mapping_rule', $setting_value, $post->ID, 'iptc_exif_standard_mapping', $attachment_metadata );
3458
  if ( $setting_value['keep_existing'] ) {
3459
  if ( 'meta:' == substr( $setting_key, 0, 5 ) ) {
3460
  $meta_key = substr( $setting_key, 5 );
3461
+
3462
  if ( NULL === $attachment_metadata ) {
3463
  $attachment_metadata = maybe_unserialize( get_metadata( 'post', $post->ID, '_wp_attachment_metadata', true ) );
3464
  }
3600
  * Field Title can change as a result of localization
3601
  */
3602
  $new_value['name'] = self::$mla_option_definitions['iptc_exif_mapping']['std']['standard'][ $new_key ]['name'];
3603
+
3604
  if ( $old_values['name'] != $new_value['name'] ) {
3605
  $any_setting_changed = true;
3606
  /* translators: 1: custom field name 2: attribute 3: old value 4: new value */
includes/class-mla-settings.php CHANGED
@@ -90,7 +90,7 @@ class MLASettings {
90
  private static function _version_upgrade( ) {
91
  $current_version = MLAOptions::mla_get_option( MLAOptions::MLA_VERSION_OPTION );
92
 
93
- if ( ((float)'.30') > ((float)$current_version) ) {
94
  /*
95
  * Convert attachment_category and _tag to taxonomy_support;
96
  * change the default if either option is unchecked
@@ -118,7 +118,7 @@ class MLASettings {
118
  MLAOptions::mla_delete_option( 'attachment_tag' );
119
  } // version is less than .30
120
 
121
- if ( ((float)'1.13') > ((float)$current_version) ) {
122
  /*
123
  * Add quick_edit and bulk_edit values to custom field mapping rules
124
  */
@@ -133,7 +133,7 @@ class MLASettings {
133
  MLAOptions::mla_update_option( 'custom_field_mapping', $new_values );
134
  } // version is less than 1.13
135
 
136
- if ( ((float)'1.30') > ((float)$current_version) ) {
137
  /*
138
  * Add metadata values to custom field mapping rules
139
  */
@@ -149,7 +149,7 @@ class MLASettings {
149
  MLAOptions::mla_update_option( 'custom_field_mapping', $new_values );
150
  } // version is less than 1.30
151
 
152
- if ( ((float)'1.40') > ((float)$current_version) ) {
153
  /*
154
  * Add metadata values to custom field mapping rules
155
  */
@@ -175,7 +175,7 @@ class MLASettings {
175
  MLAOptions::mla_update_option( 'custom_field_mapping', $new_values );
176
  } // version is less than 1.40
177
 
178
- if ( ((float)'1.60') > ((float)$current_version) ) {
179
  /*
180
  * Add delimiters values to taxonomy mapping rules
181
  */
@@ -191,6 +191,13 @@ class MLASettings {
191
  MLAOptions::mla_update_option( 'iptc_exif_mapping', $option_value );
192
  } // version is less than 1.60
193
 
 
 
 
 
 
 
 
194
  MLAOptions::mla_update_option( MLAOptions::MLA_VERSION_OPTION, MLA::CURRENT_MLA_VERSION );
195
  }
196
 
@@ -977,7 +984,7 @@ class MLASettings {
977
  */
978
  $shortcodes = array(
979
  // array("name" => "shortcode", "description" => "This shortcode...")
980
- array( 'name' => 'mla_attachment_list', 'description' => __( 'renders a complete list of all attachments and references to them.', 'media-library-assistant' ) ),
981
  array( 'name' => 'mla_gallery', 'description' => __( 'enhanced version of the WordPress [gallery] shortcode.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . self::MLA_SETTINGS_SLUG . '-documentation&amp;mla_tab=documentation' ), __( 'click here', 'media-library-assistant' ) ) ),
982
  array( 'name' => 'mla_tag_cloud', 'description' => __( 'enhanced version of the WordPress Tag Cloud.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . self::MLA_SETTINGS_SLUG . '-documentation&amp;mla_tab=documentation' ), __( 'click here', 'media-library-assistant' ) ) )
983
  );
@@ -1919,14 +1926,20 @@ class MLASettings {
1919
  );
1920
 
1921
  /*
1922
- * Build default template selection lists
1923
  */
1924
  MLAOptions::$mla_option_definitions['default_style']['options'][] = 'none';
1925
  MLAOptions::$mla_option_definitions['default_style']['texts'][] = '&mdash; ' . __( 'None', 'media-library-assistant' ) . ' &mdash;';
 
 
1926
 
1927
  $templates = MLAOptions::mla_get_style_templates();
1928
  ksort($templates);
1929
  foreach ($templates as $key => $value ) {
 
 
 
 
1930
  MLAOptions::$mla_option_definitions['default_style']['options'][] = $key;
1931
  MLAOptions::$mla_option_definitions['default_style']['texts'][] = $key;
1932
  }
@@ -1934,6 +1947,10 @@ class MLASettings {
1934
  $templates = MLAOptions::mla_get_markup_templates();
1935
  ksort($templates);
1936
  foreach ($templates as $key => $value ) {
 
 
 
 
1937
  MLAOptions::$mla_option_definitions['default_markup']['options'][] = $key;
1938
  MLAOptions::$mla_option_definitions['default_markup']['texts'][] = $key;
1939
  }
90
  private static function _version_upgrade( ) {
91
  $current_version = MLAOptions::mla_get_option( MLAOptions::MLA_VERSION_OPTION );
92
 
93
+ if ( version_compare( '.30', $current_version, '>' ) ) {
94
  /*
95
  * Convert attachment_category and _tag to taxonomy_support;
96
  * change the default if either option is unchecked
118
  MLAOptions::mla_delete_option( 'attachment_tag' );
119
  } // version is less than .30
120
 
121
+ if ( version_compare( '1.13', $current_version, '>' ) ) {
122
  /*
123
  * Add quick_edit and bulk_edit values to custom field mapping rules
124
  */
133
  MLAOptions::mla_update_option( 'custom_field_mapping', $new_values );
134
  } // version is less than 1.13
135
 
136
+ if ( version_compare( '1.30', $current_version, '>' ) ) {
137
  /*
138
  * Add metadata values to custom field mapping rules
139
  */
149
  MLAOptions::mla_update_option( 'custom_field_mapping', $new_values );
150
  } // version is less than 1.30
151
 
152
+ if ( version_compare( '1.40', $current_version, '>' ) ) {
153
  /*
154
  * Add metadata values to custom field mapping rules
155
  */
175
  MLAOptions::mla_update_option( 'custom_field_mapping', $new_values );
176
  } // version is less than 1.40
177
 
178
+ if ( version_compare( '1.60', $current_version, '>' ) ) {
179
  /*
180
  * Add delimiters values to taxonomy mapping rules
181
  */
191
  MLAOptions::mla_update_option( 'iptc_exif_mapping', $option_value );
192
  } // version is less than 1.60
193
 
194
+ if ( version_compare( '1.72', $current_version, '>' ) ) {
195
+ /*
196
+ * Strip default descriptions from the options table
197
+ */
198
+ MLAMime::mla_update_upload_mime();
199
+ } // version is less than 1.72
200
+
201
  MLAOptions::mla_update_option( MLAOptions::MLA_VERSION_OPTION, MLA::CURRENT_MLA_VERSION );
202
  }
203
 
984
  */
985
  $shortcodes = array(
986
  // array("name" => "shortcode", "description" => "This shortcode...")
987
+ // array( 'name' => 'mla_attachment_list', 'description' => __( 'renders a complete list of all attachments and references to them.', 'media-library-assistant' ) ),
988
  array( 'name' => 'mla_gallery', 'description' => __( 'enhanced version of the WordPress [gallery] shortcode.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . self::MLA_SETTINGS_SLUG . '-documentation&amp;mla_tab=documentation' ), __( 'click here', 'media-library-assistant' ) ) ),
989
  array( 'name' => 'mla_tag_cloud', 'description' => __( 'enhanced version of the WordPress Tag Cloud.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . self::MLA_SETTINGS_SLUG . '-documentation&amp;mla_tab=documentation' ), __( 'click here', 'media-library-assistant' ) ) )
990
  );
1926
  );
1927
 
1928
  /*
1929
+ * Build default template selection lists; leave out the [mla_tag_cloud] templates
1930
  */
1931
  MLAOptions::$mla_option_definitions['default_style']['options'][] = 'none';
1932
  MLAOptions::$mla_option_definitions['default_style']['texts'][] = '&mdash; ' . __( 'None', 'media-library-assistant' ) . ' &mdash;';
1933
+ MLAOptions::$mla_option_definitions['default_style']['options'][] = 'theme';
1934
+ MLAOptions::$mla_option_definitions['default_style']['texts'][] = '&mdash; ' . __( 'Theme', 'media-library-assistant' ) . ' &mdash;';
1935
 
1936
  $templates = MLAOptions::mla_get_style_templates();
1937
  ksort($templates);
1938
  foreach ($templates as $key => $value ) {
1939
+ if ( 'tag-cloud' == $key ) {
1940
+ continue;
1941
+ }
1942
+
1943
  MLAOptions::$mla_option_definitions['default_style']['options'][] = $key;
1944
  MLAOptions::$mla_option_definitions['default_style']['texts'][] = $key;
1945
  }
1947
  $templates = MLAOptions::mla_get_markup_templates();
1948
  ksort($templates);
1949
  foreach ($templates as $key => $value ) {
1950
+ if ( in_array( $key, array( 'tag-cloud', 'tag-cloud-dl', 'tag-cloud-ul' ) ) ) {
1951
+ continue;
1952
+ }
1953
+
1954
  MLAOptions::$mla_option_definitions['default_markup']['options'][] = $key;
1955
  MLAOptions::$mla_option_definitions['default_markup']['texts'][] = $key;
1956
  }
includes/class-mla-shortcodes.php CHANGED
@@ -41,6 +41,12 @@ class MLAShortcodes {
41
  'organize_by'=>'title',
42
  ), $atts)); */
43
 
 
 
 
 
 
 
44
  /*
45
  * Process the where-used settings option
46
  */
@@ -180,6 +186,12 @@ class MLAShortcodes {
180
  $attr = shortcode_parse_atts( $attr );
181
  }
182
 
 
 
 
 
 
 
183
  /*
184
  * The mla_paginate_current parameter can be changed to support multiple galleries per page.
185
  */
@@ -242,15 +254,17 @@ class MLAShortcodes {
242
  'mla_mid_size' => 2,
243
  'mla_prev_text' => '&laquo; ' . __( 'Previous', 'media-library-assistant' ),
244
  'mla_next_text' => __( 'Next', 'media-library-assistant' ) . ' &raquo;',
245
- 'mla_paginate_type' => 'plain'),
 
246
  $mla_item_specific_arguments
247
  );
248
 
 
249
  $default_arguments = array_merge( array(
250
  'size' => 'thumbnail', // or 'medium', 'large', 'full' or registered size
251
- 'itemtag' => 'dl',
252
- 'icontag' => 'dt',
253
- 'captiontag' => 'dd',
254
  'columns' => MLAOptions::mla_get_option('mla_gallery_columns'),
255
  'link' => 'permalink', // or 'post' or file' or a registered size
256
  // Photonic-specific
@@ -308,7 +322,11 @@ class MLAShortcodes {
308
  $is_gallery = 'gallery' == $output_parameters[0];
309
  $is_pagination = in_array( $output_parameters[0], array( 'previous_page', 'next_page', 'paginate_links' ) );
310
 
311
- $attachments = self::mla_get_shortcode_attachments( $post->ID, $attr, $is_pagination );
 
 
 
 
312
 
313
  if ( is_string( $attachments ) ) {
314
  return $attachments;
@@ -491,7 +509,13 @@ class MLAShortcodes {
491
  );
492
 
493
  $style_template = $gallery_style = '';
494
- $use_mla_gallery_style = ( 'none' != strtolower( $style_values['mla_style'] ) );
 
 
 
 
 
 
495
  if ( apply_filters( 'use_mla_gallery_style', $use_mla_gallery_style, $style_values['mla_style'] ) ) {
496
  $style_template = MLAOptions::mla_fetch_gallery_template( $style_values['mla_style'], 'style' );
497
  if ( empty( $style_template ) ) {
@@ -1339,14 +1363,15 @@ class MLAShortcodes {
1339
  $min_scaled_count = 0x7FFFFFFF;
1340
  $max_scaled_count = 0;
1341
  foreach ( $tags as $key => $tag ) {
1342
- $tag->scaled_count = apply_filters( 'mla_tag_cloud_scale', round(log10($tag->count + 1) * 100), $attr, $arguments, $tag );
 
1343
 
1344
- if ( $tag->count < $min_count ) {
1345
- $min_count = $tag->count;
1346
  }
1347
 
1348
- if ( $tag->count > $max_count ) {
1349
- $max_count = $tag->count;
1350
  }
1351
 
1352
  if ( $tag->scaled_count < $min_scaled_count ) {
@@ -1583,7 +1608,7 @@ class MLAShortcodes {
1583
  $attr['posts_per_page'] = $attr['limit'];
1584
  }
1585
 
1586
- $pagination_result = self::_process_pagination_output_types( $output_parameters, $markup_values, $arguments, $attr, $found_rows, $output );
1587
  if ( false !== $pagination_result ) {
1588
  return $pagination_result;
1589
  }
@@ -1672,7 +1697,7 @@ class MLAShortcodes {
1672
  $item_values['taxonomy'] = wptexturize( $tag->taxonomy );
1673
  $item_values['description'] = wptexturize( $tag->description );
1674
  $item_values['parent'] = $tag->parent;
1675
- $item_values['count'] = $tag->count;
1676
  $item_values['scaled_count'] = $tag->scaled_count;
1677
  $item_values['font_size'] = str_replace( ',', '.', ( $item_values['smallest'] + ( ( $item_values['scaled_count'] - $item_values['min_scaled_count'] ) * $item_values['font_step'] ) ) );
1678
  $item_values['link_url'] = $tag->link;
@@ -1887,7 +1912,7 @@ class MLAShortcodes {
1887
  * @param string raw shortcode parameter, e.g., "text {+field+} {brackets} \\{braces\\}"
1888
  * @param string template substitution values, e.g., ('instance' => '1', ... )
1889
  *
1890
- * @return string query specification with HTML escape sequences and line breaks removed
1891
  */
1892
  private static function _process_shortcode_parameter( $text, $markup_values ) {
1893
  $new_text = str_replace( '{', '[', str_replace( '}', ']', $text ) );
@@ -2413,8 +2438,12 @@ class MLAShortcodes {
2413
  'meta_query' => '',
2414
  // Search
2415
  's' => '',
2416
- // Returned fields, for support topic by leoloso
2417
- 'fields' => ''
 
 
 
 
2418
  );
2419
 
2420
  /**
@@ -2722,11 +2751,21 @@ class MLAShortcodes {
2722
  }
2723
  unset( $arguments[ $key ] );
2724
  break;
2725
- case 'nopaging': // boolean
2726
  if ( ! empty( $value ) && ( 'false' != strtolower( $value ) ) ) {
2727
  $query_arguments[ $key ] = true;
2728
  }
2729
 
 
 
 
 
 
 
 
 
 
 
2730
  unset( $arguments[ $key ] );
2731
  break;
2732
  case 'author_name':
@@ -2888,6 +2927,15 @@ class MLAShortcodes {
2888
  self::$mla_debug_messages .= '<p><strong>mla_debug $wp_filter[posts_orderby]</strong> = ' . var_export( $wp_filter['posts_orderby'], true ) . '</p>';
2889
  }
2890
 
 
 
 
 
 
 
 
 
 
2891
  self::$mla_gallery_wp_query_object = new WP_Query;
2892
  $attachments = self::$mla_gallery_wp_query_object->query($query_arguments);
2893
 
@@ -2905,12 +2953,16 @@ class MLAShortcodes {
2905
  $attachments['found_rows'] = self::$mla_gallery_wp_query_object->found_posts;
2906
  }
2907
 
2908
- remove_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter', 0x7FFFFFFF, 1 );
2909
- remove_filter( 'posts_orderby', 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter', 0x7FFFFFFF, 1 );
 
 
 
 
2910
 
2911
  if ( self::$mla_debug ) {
2912
- remove_filter( 'posts_clauses', 'MLAShortcodes::mla_shortcode_query_posts_clauses_filter', 0x7FFFFFFF, 1 );
2913
- remove_filter( 'posts_clauses_request', 'MLAShortcodes::mla_shortcode_query_posts_clauses_request_filter', 0x7FFFFFFF, 1 );
2914
 
2915
  self::$mla_debug_messages .= '<p><strong>' . __( 'mla_debug query', 'media-library-assistant' ) . '</strong> = ' . var_export( $query_arguments, true ) . '</p>';
2916
  self::$mla_debug_messages .= '<p><strong>' . __( 'mla_debug request', 'media-library-assistant' ) . '</strong> = ' . var_export( self::$mla_gallery_wp_query_object->request, true ) . '</p>';
@@ -2982,7 +3034,8 @@ class MLAShortcodes {
2982
  global $wpdb;
2983
 
2984
  if ( self::$mla_debug ) {
2985
- self::$mla_debug_messages .= '<p><strong>' . __( 'mla_debug ORDER BY filter, incoming', 'media-library-assistant' ) . '</strong> = ' . var_export( $orderby_clause, true ) . '<br>' . __( 'Replacement ORDER BY clause', 'media-library-assistant' ) . ' = ' . var_export( self::$query_parameters['orderby'], true ) . '</p>';
 
2986
  }
2987
 
2988
  if ( isset( self::$query_parameters['orderby'] ) ) {
@@ -3037,13 +3090,17 @@ class MLAShortcodes {
3037
  */
3038
  private static $mla_get_terms_parameters = array(
3039
  'taxonomy' => 'post_tag',
 
 
3040
  'include' => '',
3041
  'exclude' => '',
3042
  'parent' => '',
3043
  'minimum' => 0,
 
3044
  'number' => 45,
3045
  'orderby' => 'name',
3046
  'order' => 'ASC',
 
3047
  'preserve_case' => false,
3048
  'limit' => 0,
3049
  'offset' => 0
@@ -3069,6 +3126,8 @@ class MLAShortcodes {
3069
  *
3070
  * minimum - minimum number of attachments a term must have to be included.
3071
  *
 
 
3072
  * number - maximum number of term objects to return. Terms are ordered by count,
3073
  * descending and then by term_id before this value is applied.
3074
  *
@@ -3076,6 +3135,8 @@ class MLAShortcodes {
3076
  *
3077
  * order - 'ASC', 'DESC'
3078
  *
 
 
3079
  * preserve_case - 'true', 'false' to make orderby case-sensitive.
3080
  *
3081
  * limit - final number of term objects to return, for pagination.
@@ -3110,12 +3171,35 @@ class MLAShortcodes {
3110
  $query = array();
3111
  $query_parameters = array();
3112
 
3113
- $query[] = 'SELECT t.term_id, t.name, t.slug, t.term_group, tt.term_taxonomy_id, tt.taxonomy, tt.description, tt.parent, COUNT(p.ID) AS `count`';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3114
  $query[] = 'FROM `' . $wpdb->terms . '` AS t';
3115
  $query[] = 'JOIN `' . $wpdb->term_taxonomy . '` AS tt ON t.term_id = tt.term_id';
3116
- $query[] = 'LEFT JOIN `' . $wpdb->term_relationships . '` AS tr ON tt.term_taxonomy_id = tr.term_taxonomy_id';
3117
- $query[] = 'LEFT JOIN `' . $wpdb->posts . '` AS p ON tr.object_id = p.ID';
3118
- $query[] = "AND p.post_type IN ('attachment') AND p.post_status IN ('inherit')";
 
 
 
3119
 
3120
  /*
3121
  * Add taxonomy constraint
@@ -3157,7 +3241,17 @@ class MLAShortcodes {
3157
  $query[] = "AND tt.parent = '{$parent}'";
3158
  }
3159
 
3160
- $query[] = ' ) GROUP BY tr.term_taxonomy_id';
 
 
 
 
 
 
 
 
 
 
3161
 
3162
  if ( 0 < absint( $arguments['minimum'] ) ) {
3163
  $query[] = 'HAVING count >= %d';
@@ -3165,9 +3259,15 @@ class MLAShortcodes {
3165
  }
3166
 
3167
  /*
3168
- * For now, always select the most popular terms
 
3169
  */
3170
- $query[] = 'ORDER BY count DESC, t.term_id ASC';
 
 
 
 
 
3171
 
3172
  /*
3173
  * Limit the total number of terms returned
@@ -3241,15 +3341,18 @@ class MLAShortcodes {
3241
  /*
3242
  * If we're limiting the final results, we need to get an accurate total count first
3243
  */
3244
- if ( 0 < $offset || 0 < $limit ) {
3245
  $count_query = 'SELECT COUNT(*) as count FROM (' . join(' ', $query) . ' ) as subQuery';
3246
  $count = $wpdb->get_results( $wpdb->prepare( $count_query, $query_parameters ) );
3247
  $found_rows = $count[0]->count;
3248
  }
3249
 
3250
  if ( ! empty( $final_parameters ) ) {
3251
- array_unshift($query, 'SELECT * FROM (');
3252
- $query[] = ') AS subQuery';
 
 
 
3253
  $query = array_merge( $query, $final_parameters );
3254
  }
3255
 
@@ -3270,7 +3373,6 @@ class MLAShortcodes {
3270
 
3271
  $tags['found_rows'] = $found_rows;
3272
  $tags = apply_filters( 'mla_get_terms_query_results', $tags );
3273
-
3274
  return $tags;
3275
  }
3276
  } // Class MLAShortcodes
41
  'organize_by'=>'title',
42
  ), $atts)); */
43
 
44
+ /*
45
+ * This shortcode is not documented and no longer supported.
46
+ */
47
+ echo 'The [mla_attachment_list] shortcode is no longer supported.';
48
+ return;
49
+
50
  /*
51
  * Process the where-used settings option
52
  */
186
  $attr = shortcode_parse_atts( $attr );
187
  }
188
 
189
+ /*
190
+ * Filter the attributes before $mla_page_parameter and "request:" prefix processing.
191
+ */
192
+
193
+ $attr = apply_filters( 'mla_gallery_raw_attributes', $attr );
194
+
195
  /*
196
  * The mla_paginate_current parameter can be changed to support multiple galleries per page.
197
  */
254
  'mla_mid_size' => 2,
255
  'mla_prev_text' => '&laquo; ' . __( 'Previous', 'media-library-assistant' ),
256
  'mla_next_text' => __( 'Next', 'media-library-assistant' ) . ' &raquo;',
257
+ 'mla_paginate_type' => 'plain',
258
+ 'mla_paginate_rows' => NULL ),
259
  $mla_item_specific_arguments
260
  );
261
 
262
+ $html5 = current_theme_supports( 'html5', 'gallery' );
263
  $default_arguments = array_merge( array(
264
  'size' => 'thumbnail', // or 'medium', 'large', 'full' or registered size
265
+ 'itemtag' => $html5 ? 'figure' : 'dl',
266
+ 'icontag' => $html5 ? 'div' : 'dt',
267
+ 'captiontag' => $html5 ? 'figcaption' : 'dd',
268
  'columns' => MLAOptions::mla_get_option('mla_gallery_columns'),
269
  'link' => 'permalink', // or 'post' or file' or a registered size
270
  // Photonic-specific
322
  $is_gallery = 'gallery' == $output_parameters[0];
323
  $is_pagination = in_array( $output_parameters[0], array( 'previous_page', 'next_page', 'paginate_links' ) );
324
 
325
+ if ( $is_pagination && ( NULL !== $arguments['mla_paginate_rows'] ) ) {
326
+ $attachments['found_rows'] = absint( $arguments['mla_paginate_rows'] );
327
+ } else {
328
+ $attachments = self::mla_get_shortcode_attachments( $post->ID, $attr, $is_pagination );
329
+ }
330
 
331
  if ( is_string( $attachments ) ) {
332
  return $attachments;
509
  );
510
 
511
  $style_template = $gallery_style = '';
512
+
513
+ if ( 'theme' == strtolower( $style_values['mla_style'] ) ) {
514
+ $use_mla_gallery_style = apply_filters( 'use_default_gallery_style', true );
515
+ } else {
516
+ $use_mla_gallery_style = ( 'none' != strtolower( $style_values['mla_style'] ) );
517
+ }
518
+
519
  if ( apply_filters( 'use_mla_gallery_style', $use_mla_gallery_style, $style_values['mla_style'] ) ) {
520
  $style_template = MLAOptions::mla_fetch_gallery_template( $style_values['mla_style'], 'style' );
521
  if ( empty( $style_template ) ) {
1363
  $min_scaled_count = 0x7FFFFFFF;
1364
  $max_scaled_count = 0;
1365
  foreach ( $tags as $key => $tag ) {
1366
+ $tag_count = isset ( $tag->count ) ? $tag->count : 0;
1367
+ $tag->scaled_count = apply_filters( 'mla_tag_cloud_scale', round(log10($tag_count + 1) * 100), $attr, $arguments, $tag );
1368
 
1369
+ if ( $tag_count < $min_count ) {
1370
+ $min_count = $tag_count;
1371
  }
1372
 
1373
+ if ( $tag_count > $max_count ) {
1374
+ $max_count = $tag_count;
1375
  }
1376
 
1377
  if ( $tag->scaled_count < $min_scaled_count ) {
1608
  $attr['posts_per_page'] = $attr['limit'];
1609
  }
1610
 
1611
+ $pagination_result = self::_process_pagination_output_types( $output_parameters, $markup_values, $arguments, $attr, $found_rows );
1612
  if ( false !== $pagination_result ) {
1613
  return $pagination_result;
1614
  }
1697
  $item_values['taxonomy'] = wptexturize( $tag->taxonomy );
1698
  $item_values['description'] = wptexturize( $tag->description );
1699
  $item_values['parent'] = $tag->parent;
1700
+ $item_values['count'] = isset ( $tag->count ) ? $tag->count : 0;
1701
  $item_values['scaled_count'] = $tag->scaled_count;
1702
  $item_values['font_size'] = str_replace( ',', '.', ( $item_values['smallest'] + ( ( $item_values['scaled_count'] - $item_values['min_scaled_count'] ) * $item_values['font_step'] ) ) );
1703
  $item_values['link_url'] = $tag->link;
1912
  * @param string raw shortcode parameter, e.g., "text {+field+} {brackets} \\{braces\\}"
1913
  * @param string template substitution values, e.g., ('instance' => '1', ... )
1914
  *
1915
+ * @return string parameter with brackets, braces, substitution parameters and templates processed
1916
  */
1917
  private static function _process_shortcode_parameter( $text, $markup_values ) {
1918
  $new_text = str_replace( '{', '[', str_replace( '}', ']', $text ) );
2438
  'meta_query' => '',
2439
  // Search
2440
  's' => '',
2441
+ // Returned fields, for support topic "Adding 'fields' to function mla_get_shortcode_attachments" by leoloso
2442
+ 'fields' => '',
2443
+ // Caching parameters, for support topic "Lag in attachment categories" by Ruriko
2444
+ 'cache_results' => NULL,
2445
+ 'update_post_meta_cache' => NULL,
2446
+ 'update_post_term_cache' => NULL,
2447
  );
2448
 
2449
  /**
2751
  }
2752
  unset( $arguments[ $key ] );
2753
  break;
2754
+ case 'nopaging': // boolean value, default false
2755
  if ( ! empty( $value ) && ( 'false' != strtolower( $value ) ) ) {
2756
  $query_arguments[ $key ] = true;
2757
  }
2758
 
2759
+ unset( $arguments[ $key ] );
2760
+ break;
2761
+ // boolean values, default true
2762
+ case 'cache_results':
2763
+ case 'update_post_meta_cache':
2764
+ case 'update_post_term_cache':
2765
+ if ( ! empty( $value ) && ( 'true' != strtolower( $value ) ) ) {
2766
+ $query_arguments[ $key ] = false;
2767
+ }
2768
+
2769
  unset( $arguments[ $key ] );
2770
  break;
2771
  case 'author_name':
2927
  self::$mla_debug_messages .= '<p><strong>mla_debug $wp_filter[posts_orderby]</strong> = ' . var_export( $wp_filter['posts_orderby'], true ) . '</p>';
2928
  }
2929
 
2930
+ /*
2931
+ * Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
2932
+ * relevanssi_prevent_default_request( $request, $query )
2933
+ * apply_filters('relevanssi_admin_search_ok', $admin_search_ok, $query );
2934
+ */
2935
+ if ( function_exists( 'relevanssi_prevent_default_request' ) ) {
2936
+ add_filter( 'relevanssi_admin_search_ok', 'MLAData::mla_query_relevanssi_admin_search_ok_filter' );
2937
+ }
2938
+
2939
  self::$mla_gallery_wp_query_object = new WP_Query;
2940
  $attachments = self::$mla_gallery_wp_query_object->query($query_arguments);
2941
 
2953
  $attachments['found_rows'] = self::$mla_gallery_wp_query_object->found_posts;
2954
  }
2955
 
2956
+ if ( function_exists( 'relevanssi_prevent_default_request' ) ) {
2957
+ remove_filter( 'relevanssi_admin_search_ok', 'MLAData::mla_query_relevanssi_admin_search_ok_filter' );
2958
+ }
2959
+
2960
+ remove_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter', 0x7FFFFFFF );
2961
+ remove_filter( 'posts_orderby', 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter', 0x7FFFFFFF );
2962
 
2963
  if ( self::$mla_debug ) {
2964
+ remove_filter( 'posts_clauses', 'MLAShortcodes::mla_shortcode_query_posts_clauses_filter', 0x7FFFFFFF );
2965
+ remove_filter( 'posts_clauses_request', 'MLAShortcodes::mla_shortcode_query_posts_clauses_request_filter', 0x7FFFFFFF );
2966
 
2967
  self::$mla_debug_messages .= '<p><strong>' . __( 'mla_debug query', 'media-library-assistant' ) . '</strong> = ' . var_export( $query_arguments, true ) . '</p>';
2968
  self::$mla_debug_messages .= '<p><strong>' . __( 'mla_debug request', 'media-library-assistant' ) . '</strong> = ' . var_export( self::$mla_gallery_wp_query_object->request, true ) . '</p>';
3034
  global $wpdb;
3035
 
3036
  if ( self::$mla_debug ) {
3037
+ $replacement = isset( self::$query_parameters['orderby'] ) ? var_export( self::$query_parameters['orderby'], true ) : 'none';
3038
+ self::$mla_debug_messages .= '<p><strong>' . __( 'mla_debug ORDER BY filter, incoming', 'media-library-assistant' ) . '</strong> = ' . var_export( $orderby_clause, true ) . '<br>' . __( 'Replacement ORDER BY clause', 'media-library-assistant' ) . ' = ' . $replacement . '</p>';
3039
  }
3040
 
3041
  if ( isset( self::$query_parameters['orderby'] ) ) {
3090
  */
3091
  private static $mla_get_terms_parameters = array(
3092
  'taxonomy' => 'post_tag',
3093
+ 'post_mime_type' => 'all',
3094
+ 'fields' => 't.term_id, t.name, t.slug, t.term_group, tt.term_taxonomy_id, tt.taxonomy, tt.description, tt.parent, COUNT(p.ID) AS `count`',
3095
  'include' => '',
3096
  'exclude' => '',
3097
  'parent' => '',
3098
  'minimum' => 0,
3099
+ 'no_count' => false,
3100
  'number' => 45,
3101
  'orderby' => 'name',
3102
  'order' => 'ASC',
3103
+ 'no_orderby' => false,
3104
  'preserve_case' => false,
3105
  'limit' => 0,
3106
  'offset' => 0
3126
  *
3127
  * minimum - minimum number of attachments a term must have to be included.
3128
  *
3129
+ * no_count - true to to suppress count of attachments per term else false
3130
+ *
3131
  * number - maximum number of term objects to return. Terms are ordered by count,
3132
  * descending and then by term_id before this value is applied.
3133
  *
3135
  *
3136
  * order - 'ASC', 'DESC'
3137
  *
3138
+ * no_orderby - true to suppress ALL sorting clauses else false
3139
+ *
3140
  * preserve_case - 'true', 'false' to make orderby case-sensitive.
3141
  *
3142
  * limit - final number of term objects to return, for pagination.
3171
  $query = array();
3172
  $query_parameters = array();
3173
 
3174
+ /*
3175
+ * If we're not counting attachments per term, strip
3176
+ * post fields out of list and adjust the orderby value
3177
+ */
3178
+ if ( $no_count = 'true' == (string) $arguments['no_count'] ) {
3179
+ $field_array = explode( ',', $arguments['fields'] );
3180
+ foreach ( $field_array as $index => $field ) {
3181
+ if ( false !== strpos( $field, 'p.' ) ) {
3182
+ unset( $field_array[ $index ] );
3183
+ }
3184
+ }
3185
+ $arguments['fields'] = implode( ',', $field_array );
3186
+ $arguments['minimum'] = 0;
3187
+ $arguments['post_mime_type'] = 'all';
3188
+
3189
+ if ( 'count' ==strtolower( $arguments['orderby'] ) ) {
3190
+ $arguments['orderby'] = 'none';
3191
+ }
3192
+ }
3193
+
3194
+ $query[] = 'SELECT ' . $arguments['fields'];
3195
  $query[] = 'FROM `' . $wpdb->terms . '` AS t';
3196
  $query[] = 'JOIN `' . $wpdb->term_taxonomy . '` AS tt ON t.term_id = tt.term_id';
3197
+
3198
+ if ( ! $no_count ) {
3199
+ $query[] = 'LEFT JOIN `' . $wpdb->term_relationships . '` AS tr ON tt.term_taxonomy_id = tr.term_taxonomy_id';
3200
+ $query[] = 'LEFT JOIN `' . $wpdb->posts . '` AS p ON tr.object_id = p.ID';
3201
+ $query[] = "AND p.post_type IN ('attachment') AND p.post_status IN ('inherit')";
3202
+ }
3203
 
3204
  /*
3205
  * Add taxonomy constraint
3241
  $query[] = "AND tt.parent = '{$parent}'";
3242
  }
3243
 
3244
+ if ( 'all' !== strtolower( $arguments['post_mime_type'] ) ) {
3245
+ $where = str_replace( '%', '%%', wp_post_mime_type_where( $arguments['post_mime_type'], 'p' ) );
3246
+
3247
+ if ( 0 == absint( $arguments['minimum'] ) ) {
3248
+ $query[] = ' AND ( p.post_mime_type IS NULL OR ' . substr( $where, 6 );
3249
+ } else {
3250
+ $query[] = $where;
3251
+ }
3252
+ }
3253
+
3254
+ $query[] = ' ) GROUP BY tt.term_taxonomy_id';
3255
 
3256
  if ( 0 < absint( $arguments['minimum'] ) ) {
3257
  $query[] = 'HAVING count >= %d';
3259
  }
3260
 
3261
  /*
3262
+ * For now, always select the most popular terms,
3263
+ * except when specifically told to omit the clause
3264
  */
3265
+ if ( $arguments['no_orderby'] ) {
3266
+ $arguments['orderby'] = 'count';
3267
+ $arguments['order'] = 'DESC';
3268
+ } elseif ( ! $no_count ) {
3269
+ $query[] = 'ORDER BY count DESC, t.term_id ASC';
3270
+ }
3271
 
3272
  /*
3273
  * Limit the total number of terms returned
3341
  /*
3342
  * If we're limiting the final results, we need to get an accurate total count first
3343
  */
3344
+ if ( ! $no_count && ( 0 < $offset || 0 < $limit ) ) {
3345
  $count_query = 'SELECT COUNT(*) as count FROM (' . join(' ', $query) . ' ) as subQuery';
3346
  $count = $wpdb->get_results( $wpdb->prepare( $count_query, $query_parameters ) );
3347
  $found_rows = $count[0]->count;
3348
  }
3349
 
3350
  if ( ! empty( $final_parameters ) ) {
3351
+ if ( ! $no_count ) {
3352
+ array_unshift($query, 'SELECT * FROM (');
3353
+ $query[] = ') AS subQuery';
3354
+ }
3355
+
3356
  $query = array_merge( $query, $final_parameters );
3357
  }
3358
 
3373
 
3374
  $tags['found_rows'] = $found_rows;
3375
  $tags = apply_filters( 'mla_get_terms_query_results', $tags );
 
3376
  return $tags;
3377
  }
3378
  } // Class MLAShortcodes
includes/mla-media-modal-js-template.php ADDED
@@ -0,0 +1,52 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Backbone/JavaScript template for Media Library Assistant Media Manager enhancements
4
+ *
5
+ * @package Media Library Assistant
6
+ * @since 1.80
7
+ */
8
+
9
+ /**
10
+ * Harmless declaration to suppress phpDocumentor "No page-level DocBlock" error
11
+ *
12
+ * @global $post
13
+ */
14
+ global $post;
15
+ ?>
16
+ <script type="text/html" id="tmpl-mla-search-box">
17
+ <label class="screen-reader-text" for="media-search-input"><?php _e( 'Search Media', 'media-library-assistant' ); ?>:</label>
18
+
19
+ <input type="search" id="media-search-input" name="s[mla_search_value]" class="search" value="<?php echo $search_value ?>" placeholder="{{ data.searchBoxPlaceholder }}" size="22" />
20
+ <input type="submit" name="mla_search_submit" id="mla-search-submit" class="button search" value="<?php _e( 'Search', 'media-library-assistant' ); ?>" /><br>
21
+ <ul class="mla-search-options">
22
+ <li>
23
+ <input type="radio" name="s[mla_search_connector]" value="AND" <?php echo ( 'OR' === $search_connector ) ? '' : 'checked'; ?> />
24
+ <?php _e( 'and', 'media-library-assistant' ); ?>
25
+ </li>
26
+ <li>
27
+ <input type="radio" name="s[mla_search_connector]" value="OR" <?php echo ( 'OR' === $search_connector ) ? 'checked' : ''; ?> />
28
+ <?php _e( 'or', 'media-library-assistant' ); ?>
29
+ </li>
30
+ <li>
31
+ <input type="checkbox" name="s[mla_search_title]" id="search-title" value="title" <?php echo ( in_array( 'title', $search_fields ) ) ? 'checked' : ''; ?> />
32
+ <?php _e( 'Title', 'media-library-assistant' ); ?>
33
+ </li>
34
+ <li>
35
+ <input type="checkbox" name="s[mla_search_name]" id="search-name" value="name" <?php echo ( in_array( 'name', $search_fields ) ) ? 'checked' : ''; ?> />
36
+ <?php _e( 'Name', 'media-library-assistant' ); ?>
37
+ </li>
38
+ <br>
39
+ <li>
40
+ <input type="checkbox" name="s[mla_search_alt_text]" id="search-alt-text" value="alt-text" <?php echo ( in_array( 'alt-text', $search_fields ) ) ? 'checked' : ''; ?> />
41
+ <?php _e( 'ALT Text', 'media-library-assistant' ); ?>
42
+ </li>
43
+ <li>
44
+ <input type="checkbox" name="s[mla_search_excerpt]" id="search-excerpt" value="excerpt" <?php echo ( in_array( 'excerpt', $search_fields ) ) ? 'checked' : ''; ?> />
45
+ <?php _e( 'Caption', 'media-library-assistant' ); ?>
46
+ </li>
47
+ <li>
48
+ <input type="checkbox" name="s[mla_search_content]" id="search-content" value="content" <?php echo ( in_array( 'content', $search_fields ) ) ? 'checked' : ''; ?> />
49
+ <?php _e( 'Description', 'media-library-assistant' ); ?>
50
+ </li>
51
+ </ul>
52
+ </script>
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.71
10
  */
11
 
12
  /*
@@ -16,7 +16,7 @@ Description: Enhances the Media Library; powerful[mla_gallery], taxonomy support
16
  Author: David Lingren
17
  Text Domain: media-library-assistant
18
  Domain Path: /languages
19
- Version: 1.71
20
  Author URI: http://fairtradejudaica.org/our-story/staff/
21
 
22
  Copyright 2011-2013 David Lingren
@@ -83,6 +83,7 @@ $mla_name_conflict_candidates =
83
  'MLA' => 'class',
84
  'MLAData' => 'class',
85
  'MLAEdit' => 'class',
 
86
  'MLAMime' => 'class',
87
  'MLAModal' => 'class',
88
  'MLAObjects' => 'class',
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
+ * @version 1.80
10
  */
11
 
12
  /*
16
  Author: David Lingren
17
  Text Domain: media-library-assistant
18
  Domain Path: /languages
19
+ Version: 1.80
20
  Author URI: http://fairtradejudaica.org/our-story/staff/
21
 
22
  Copyright 2011-2013 David Lingren
83
  'MLA' => 'class',
84
  'MLAData' => 'class',
85
  'MLAEdit' => 'class',
86
+ 'MLA_Checklist_Walker' => 'class',
87
  'MLAMime' => 'class',
88
  'MLAModal' => 'class',
89
  'MLAObjects' => 'class',
js/mla-edit-media-scripts.js CHANGED
@@ -7,14 +7,12 @@ mlaEditAttachment = {
7
  var this_id = $(this).attr('id'), taxonomyParts, taxonomy, settingName;
8
 
9
  taxonomyParts = this_id.split('-');
10
- taxonomyParts.shift();
11
  taxonomy = taxonomyParts.join('-');
12
  settingName = taxonomy + '_tab';
13
  if ( taxonomy == 'category' )
14
  settingName = 'cats';
15
 
16
- $( '#search-' + taxonomy ).one( 'focus', function() { $( this ).val( '' ).removeClass( 'form-input-tip' ); } );
17
-
18
  $.extend( $.expr[":"], {
19
  "matchTerms": function( elem, i, match, array ) {
20
  return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
@@ -36,13 +34,15 @@ mlaEditAttachment = {
36
  } );
37
 
38
  $( '#search-' + taxonomy ).keyup( function( event ){
 
 
39
  if( 13 === event.keyCode ) {
40
  event.preventDefault();
41
  $( '#' + taxonomy + '-search-toggle' ).focus();
42
  return;
43
  }
44
 
45
- var searchValue = $( '#search-' + taxonomy ).val(),
46
  termList = $( '#' + taxonomy + 'checklist li' );
47
  termListPopular = $( '#' + taxonomy + 'checklist-pop li' );
48
 
@@ -54,11 +54,11 @@ mlaEditAttachment = {
54
  termListPopular.show();
55
  }
56
 
57
- var matchingTerms = $( '#' + taxonomy + "checklist label:matchTerms('" + searchValue + "')");
58
  matchingTerms.closest( 'li' ).find( 'li' ).andSelf().show();
59
  matchingTerms.parents( '#' + taxonomy + 'checklist li' ).show();
60
 
61
- var matchingTermsPopular = $( '#' + taxonomy + "checklist-pop label:matchTerms('" + searchValue + "')");
62
  matchingTermsPopular.closest( 'li' ).find( 'li' ).andSelf().show();
63
  matchingTermsPopular.parents( '#' + taxonomy + 'checklist li' ).show();
64
  } );
@@ -66,22 +66,28 @@ mlaEditAttachment = {
66
  $( '#' + taxonomy + '-search-toggle' ).click( function() {
67
  $( '#' + taxonomy + '-adder ').addClass( 'wp-hidden-children' );
68
  $( '#' + taxonomy + '-searcher' ).toggleClass( 'wp-hidden-children' );
69
- $( 'a[href="#' + taxonomy + '-search"]', '#' + taxonomy + '-tabs' ).click();
70
- $( '#search-' + taxonomy ).val( '' );
71
  $( '#' + taxonomy + 'checklist li' ).show();
72
  $( '#' + taxonomy + 'checklist-pop li' ).show();
73
- $( '#search-' + taxonomy ).focus();
 
 
 
 
 
74
  return false;
75
  });
76
-
 
 
 
77
  $( '#' + taxonomy + '-add-toggle' ).click( function() {
78
  $( '#' + taxonomy + '-searcher' ).addClass( 'wp-hidden-children' );
79
  return false;
80
  });
81
-
82
- }); // end cats
83
- }
84
- }
85
 
86
  $( document ).ready( function(){ mlaEditAttachment.init(); } );
87
  })( jQuery );
7
  var this_id = $(this).attr('id'), taxonomyParts, taxonomy, settingName;
8
 
9
  taxonomyParts = this_id.split('-');
10
+ taxonomyParts.shift(); // taxonomy-
11
  taxonomy = taxonomyParts.join('-');
12
  settingName = taxonomy + '_tab';
13
  if ( taxonomy == 'category' )
14
  settingName = 'cats';
15
 
 
 
16
  $.extend( $.expr[":"], {
17
  "matchTerms": function( elem, i, match, array ) {
18
  return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
34
  } );
35
 
36
  $( '#search-' + taxonomy ).keyup( function( event ){
37
+ var searchValue, matchingTerms, matchingTermsPopular;
38
+
39
  if( 13 === event.keyCode ) {
40
  event.preventDefault();
41
  $( '#' + taxonomy + '-search-toggle' ).focus();
42
  return;
43
  }
44
 
45
+ searchValue = $( '#search-' + taxonomy ).val(),
46
  termList = $( '#' + taxonomy + 'checklist li' );
47
  termListPopular = $( '#' + taxonomy + 'checklist-pop li' );
48
 
54
  termListPopular.show();
55
  }
56
 
57
+ matchingTerms = $( '#' + taxonomy + "checklist label:matchTerms('" + searchValue + "')");
58
  matchingTerms.closest( 'li' ).find( 'li' ).andSelf().show();
59
  matchingTerms.parents( '#' + taxonomy + 'checklist li' ).show();
60
 
61
+ matchingTermsPopular = $( '#' + taxonomy + "checklist-pop label:matchTerms('" + searchValue + "')");
62
  matchingTermsPopular.closest( 'li' ).find( 'li' ).andSelf().show();
63
  matchingTermsPopular.parents( '#' + taxonomy + 'checklist li' ).show();
64
  } );
66
  $( '#' + taxonomy + '-search-toggle' ).click( function() {
67
  $( '#' + taxonomy + '-adder ').addClass( 'wp-hidden-children' );
68
  $( '#' + taxonomy + '-searcher' ).toggleClass( 'wp-hidden-children' );
69
+ $( 'a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs' ).click();
 
70
  $( '#' + taxonomy + 'checklist li' ).show();
71
  $( '#' + taxonomy + 'checklist-pop li' ).show();
72
+
73
+ if ( false === $( '#' + taxonomy + '-searcher' ).hasClass( 'wp-hidden-children' ) ) {
74
+ $( '#search-' + taxonomy ).val( '' ).removeClass( 'form-input-tip' );
75
+ $( '#search-' + taxonomy ).focus();
76
+ }
77
+
78
  return false;
79
  });
80
+
81
+ /*
82
+ * Supplement the click logic in wp-admin/js/post.js
83
+ */
84
  $( '#' + taxonomy + '-add-toggle' ).click( function() {
85
  $( '#' + taxonomy + '-searcher' ).addClass( 'wp-hidden-children' );
86
  return false;
87
  });
88
+ }); // .categorydiv.each
89
+ } // function init
90
+ } // function ($)
 
91
 
92
  $( document ).ready( function(){ mlaEditAttachment.init(); } );
93
  })( jQuery );
js/mla-edit-media-scripts.min.js CHANGED
@@ -1 +1 @@
1
- (function(a){mlaEditAttachment={init:function(){a(".categorydiv").each(function(){var e=a(this).attr("id"),d,b,c;d=e.split("-");d.shift();b=d.join("-");c=b+"_tab";if(b=="category"){c="cats"}a("#search-"+b).one("focus",function(){a(this).val("").removeClass("form-input-tip")});a.extend(a.expr[":"],{matchTerms:function(h,g,f,j){return(h.textContent||h.innerText||"").toLowerCase().indexOf((f[3]||"").toLowerCase())>=0}});a("#search-"+b).keypress(function(f){if(13===f.keyCode){f.preventDefault();a("#search-"+b).val("");a("#"+b+"-searcher").addClass("wp-hidden-children");a("#"+b+"checklist li").show();a("#"+b+"checklist-pop li").show();return}});a("#search-"+b).keyup(function(h){if(13===h.keyCode){h.preventDefault();a("#"+b+"-search-toggle").focus();return}var j=a("#search-"+b).val(),i=a("#"+b+"checklist li");termListPopular=a("#"+b+"checklist-pop li");if(0<j.length){i.hide();termListPopular.hide()}else{i.show();termListPopular.show()}var g=a("#"+b+"checklist label:matchTerms('"+j+"')");g.closest("li").find("li").andSelf().show();g.parents("#"+b+"checklist li").show();var f=a("#"+b+"checklist-pop label:matchTerms('"+j+"')");f.closest("li").find("li").andSelf().show();f.parents("#"+b+"checklist li").show()});a("#"+b+"-search-toggle").click(function(){a("#"+b+"-adder ").addClass("wp-hidden-children");a("#"+b+"-searcher").toggleClass("wp-hidden-children");a('a[href="#'+b+'-search"]',"#"+b+"-tabs").click();a("#search-"+b).val("");a("#"+b+"checklist li").show();a("#"+b+"checklist-pop li").show();a("#search-"+b).focus();return false});a("#"+b+"-add-toggle").click(function(){a("#"+b+"-searcher").addClass("wp-hidden-children");return false})})}};a(document).ready(function(){mlaEditAttachment.init()})})(jQuery);
1
+ (function(a){mlaEditAttachment={init:function(){a(".categorydiv").each(function(){var e=a(this).attr("id"),d,b,c;d=e.split("-");d.shift();b=d.join("-");c=b+"_tab";if(b=="category"){c="cats"}a.extend(a.expr[":"],{matchTerms:function(h,g,f,j){return(h.textContent||h.innerText||"").toLowerCase().indexOf((f[3]||"").toLowerCase())>=0}});a("#search-"+b).keypress(function(f){if(13===f.keyCode){f.preventDefault();a("#search-"+b).val("");a("#"+b+"-searcher").addClass("wp-hidden-children");a("#"+b+"checklist li").show();a("#"+b+"checklist-pop li").show();return}});a("#search-"+b).keyup(function(h){var i,g,f;if(13===h.keyCode){h.preventDefault();a("#"+b+"-search-toggle").focus();return}i=a("#search-"+b).val(),termList=a("#"+b+"checklist li");termListPopular=a("#"+b+"checklist-pop li");if(0<i.length){termList.hide();termListPopular.hide()}else{termList.show();termListPopular.show()}g=a("#"+b+"checklist label:matchTerms('"+i+"')");g.closest("li").find("li").andSelf().show();g.parents("#"+b+"checklist li").show();f=a("#"+b+"checklist-pop label:matchTerms('"+i+"')");f.closest("li").find("li").andSelf().show();f.parents("#"+b+"checklist li").show()});a("#"+b+"-search-toggle").click(function(){a("#"+b+"-adder ").addClass("wp-hidden-children");a("#"+b+"-searcher").toggleClass("wp-hidden-children");a('a[href="#'+b+'-all"]',"#"+b+"-tabs").click();a("#"+b+"checklist li").show();a("#"+b+"checklist-pop li").show();if(false===a("#"+b+"-searcher").hasClass("wp-hidden-children")){a("#search-"+b).val("").removeClass("form-input-tip");a("#search-"+b).focus()}return false});a("#"+b+"-add-toggle").click(function(){a("#"+b+"-searcher").addClass("wp-hidden-children");return false})})}};a(document).ready(function(){mlaEditAttachment.init()})})(jQuery);
js/mla-media-modal-scripts.js CHANGED
@@ -1,25 +1,84 @@
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
  /*
12
- * Parse outgoing Ajax requests and stuff our arguments into the "s" field
 
13
  */
14
- var originalAjax = media.ajax;
15
- media.ajax = function( argumentZero ) {
16
- if ( 'query-attachments' == argumentZero.data.action ) {
 
 
 
 
 
 
 
 
 
 
17
 
18
- stype = typeof arguments[0]['data']['query']['s'];
19
  if ( 'object' == stype )
20
- s = arguments[0]['data']['query']['s'];
21
  else if ( 'string' == stype )
22
- s = { 'mla_search_value': arguments[0]['data']['query']['s'] };
23
  else
24
  s = {};
25
 
@@ -39,283 +98,268 @@
39
  'mla_search_fields': mlaSettings.searchFields,
40
  'mla_search_connector': mlaSettings.searchConnector };
41
 
42
- arguments[0]['data']['query']['s'] = searchValues;
43
  }
44
 
45
- return originalAjax.apply(this, Array.prototype.slice.call(arguments));
46
- }; // */
 
47
 
48
  /**
49
  * Localized settings and strings
50
  */
51
  mlaStrings = typeof media.view.l10n.mla_strings === 'undefined' ? {} : media.view.l10n.mla_strings;
52
- delete media.view.l10n.mla_strings;
53
 
54
  mlaSettings = typeof wp.media.view.settings.mla_settings === 'undefined' ? {} : wp.media.view.settings.mla_settings;
55
- delete wp.media.view.settings.mla_settings;
56
-
57
- /*
58
- * Simulated click to force Attachments update after drag & drop uploading
59
- * /
60
- if (typeof wp.Uploader !== 'undefined' && typeof wp.Uploader.queue !== 'undefined') {
61
- wp.Uploader.queue.on('reset', function() {
62
-
63
- jQuery(function($){
64
- $("#search-submit").click();
65
- });
66
- });
67
- } // */
68
 
69
  /**
70
  * Extended Filters dropdown with more mimeTypes
71
  */
72
- media.view.AttachmentFilters.Mla = media.view.AttachmentFilters.extend({
73
- createFilters: function() {
74
- var filters = {};
75
-
76
- _.each( mlaSettings.mimeTypes || {}, function( text, key ) {
77
- filters[ key ] = {
78
- text: text,
 
 
 
 
 
 
 
 
 
 
 
 
79
  props: {
80
- type: key,
81
  uploadedTo: null,
82
  orderby: 'date',
83
  order: 'DESC'
84
- }
 
85
  };
86
- });
87
-
88
- filters.all = {
89
- text: media.view.l10n.allMediaItems,
90
- props: {
91
- type: null,
92
- uploadedTo: null,
93
- orderby: 'date',
94
- order: 'DESC'
95
- },
96
- priority: 10
97
- };
98
-
99
- filters.uploaded = {
100
- text: media.view.l10n.uploadedToThisPost,
101
- props: {
102
- type: null,
103
- uploadedTo: media.view.settings.post.id,
104
- orderby: 'menuOrder',
105
- order: 'ASC'
106
- },
107
- priority: 20
108
- };
109
-
110
- this.filters = filters;
111
- }
112
- });
113
 
114
  /**
115
  * Extended Filters dropdown with month and year selection values
116
  */
117
- media.view.AttachmentFilters.MlaMonths = media.view.AttachmentFilters.extend({
118
- className: 'attachment-months',
119
-
120
- createFilters: function() {
121
- var filters = {};
122
-
123
- _.each( mlaSettings.months || {}, function( text, key ) {
124
- filters[ key ] = {
125
- text: text,
126
- props: { s: { 'mla_filter_month': key } }
127
- };
128
- });
129
-
130
- this.filters = filters;
131
- },
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
132
 
133
- select: function() {
134
- var model = this.model,
135
- value = mlaSettings.filterMonth,
136
- props = model.toJSON();
137
-
138
- if ( _.isUndefined( props.s ) )
139
- props.s = {};
140
-
141
- if ( 'string' == typeof props.search )
142
- mlaSettings.searchValue = props.search;
143
-
144
- if (_.isUndefined( props.s.mla_filter_month ) )
145
- props.s.mla_filter_month = mlaSettings.filterMonth;
146
- else
147
- mlaSettings.filterMonth = props.s.mla_filter_month;
148
-
149
- _.find( this.filters, function( filter, id ) {
150
- var equal = _.all( filter.props, function( prop, key ) {
151
- return prop.mla_filter_month == mlaSettings.filterMonth;
152
- });
153
 
154
- if ( equal )
155
- return value = id;
156
- });
157
-
158
- this.$el.val( value );
159
- } });
160
-
161
  /**
162
  * Extended Filters dropdown with taxonomy term selection values
163
  */
164
- media.view.AttachmentFilters.MlaTerms = media.view.AttachmentFilters.extend({
165
- className: 'attachment-terms',
166
-
167
- createFilters: function() {
168
- var filters = {};
169
-
170
- _.each( mlaSettings.termsText || {}, function( text, key ) {
171
- filters[ key ] = {
172
- text: text,
173
- props: { s: { 'mla_filter_term': parseInt( mlaSettings.termsValue[ key ] ) } }
174
- };
175
- });
176
-
177
- this.filters = filters;
178
- },
179
-
180
- select: function() {
181
- var model = this.model,
182
- value = mlaSettings.filterTerm,
183
- props = model.toJSON();
184
-
185
- if ( _.isUndefined( props.s ) )
186
- props.s = {};
187
-
188
- if ( 'string' == typeof props.search )
189
- mlaSettings.searchValue = props.search;
190
-
191
- if (_.isUndefined( props.s.mla_filter_term ) )
192
- props.s.mla_filter_term = mlaSettings.filterTerm;
193
- else
194
- mlaSettings.filterTerm = props.s.mla_filter_term;
195
 
196
- _.find( this.filters, function( filter, id ) {
197
- var equal = _.all( filter.props, function( prop, key ) {
198
- return prop.mla_filter_term == mlaSettings.filterTerm;
 
 
 
 
 
 
 
 
 
199
  });
200
-
201
- if ( equal )
202
- return value = id;
203
- });
204
-
205
- this.$el.val( value );
206
- } });
207
-
208
  /**
209
  * Extended wp.media.view.Search
210
  */
211
- media.view.MlaSearch = media.View.extend({
212
- tagName: 'div',
213
- className: 'mla-search-box',
214
- template: media.template('mla-search-box'),
215
-
216
- attributes: {
217
- type: 'mla-search-box',
218
- placeholder: mlaStrings.searchBoxPlaceholder
219
- },
220
-
221
- events: {
222
- 'change': 'search',
223
- 'click': 'search',
224
- 'search': 'search',
225
- 'MlaSearch': 'search'
226
- },
227
-
228
- render: function() {
229
- this.$el.html( this.template( ) );
230
- return this;
231
- },
232
-
233
- search: function( event ) {
234
- if ( ( 'click' == event.type ) && ( 'mla_search_submit' != event.target.name ) ) {
235
- return;
236
- }
237
-
238
- switch ( event.target.name ) {
239
- case 's[mla_search_value]':
240
- mlaSettings.searchValue = event.target.value;
241
- case 'mla_search_submit':
242
- searchValues = {
243
- 'mla_filter_month': mlaSettings.filterMonth,
244
- 'mla_filter_term': mlaSettings.filterTerm,
245
- 'mla_search_value': mlaSettings.searchValue,
246
- 'mla_search_fields': mlaSettings.searchFields,
247
- 'mla_search_connector': mlaSettings.searchConnector };
248
- this.model.set({ 's': searchValues });
249
- break;
250
- case 's[mla_search_connector]':
251
- mlaSettings.searchConnector = event.target.value;
252
- break;
253
- case 's[mla_search_title]':
254
- index = mlaSettings.searchFields.indexOf( 'title' );
255
- if ( -1 == index )
256
- mlaSettings.searchFields.push( 'title' )
257
- else
258
- mlaSettings.searchFields.splice( index, 1 );
259
- break;
260
- case 's[mla_search_name]':
261
- index = mlaSettings.searchFields.indexOf( 'name' );
262
- if ( -1 == index )
263
- mlaSettings.searchFields.push( 'name' )
264
- else
265
- mlaSettings.searchFields.splice( index, 1 );
266
- break;
267
- case 's[mla_search_alt_text]':
268
- index = mlaSettings.searchFields.indexOf( 'alt-text' );
269
- if ( -1 == index )
270
- mlaSettings.searchFields.push( 'alt-text' )
271
- else
272
- mlaSettings.searchFields.splice( index, 1 );
273
- break;
274
- case 's[mla_search_excerpt]':
275
- index = mlaSettings.searchFields.indexOf( 'excerpt' );
276
- if ( -1 == index )
277
- mlaSettings.searchFields.push( 'excerpt' )
278
- else
279
- mlaSettings.searchFields.splice( index, 1 );
280
- break;
281
- case 's[mla_search_content]':
282
- index = mlaSettings.searchFields.indexOf( 'content' );
283
- if ( -1 == index )
284
- mlaSettings.searchFields.push( 'content' )
285
- else
286
- mlaSettings.searchFields.splice( index, 1 );
287
- break;
288
- }
289
- }
290
- });
291
-
292
- /**
293
- * Replace the media-toolbar with our own
294
- */
295
- if ( mlaSettings.enableMimeTypes || mlaSettings.enableMonthsDropdown
296
- || mlaSettings.enableTermsDropdown || mlaSettings.enableSearchBox ) {
297
- media.view.AttachmentsBrowser = media.view.AttachmentsBrowser.extend({
298
- createToolbar: function() {
299
- var filters, FiltersConstructor;
300
 
301
- this.toolbar = new media.view.Toolbar({
302
- controller: this.controller
303
- });
304
 
305
- this.views.add( this.toolbar );
 
 
 
 
 
306
 
307
- filters = this.options.filters;
308
- if ( 'uploaded' === filters )
309
- FiltersConstructor = media.view.AttachmentFilters.Uploaded;
310
- else if ( 'all' === filters ) {
311
- if ( mlaSettings.enableMimeTypes )
312
- FiltersConstructor = media.view.AttachmentFilters.Mla;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
  else
314
- FiltersConstructor = media.view.AttachmentFilters.All;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
315
  }
 
 
 
316
 
317
- if ( FiltersConstructor ) {
318
- this.toolbar.set( 'filters', new FiltersConstructor({
 
 
 
 
 
 
 
 
 
 
 
 
 
 
319
  controller: this.controller,
320
  model: this.collection.props,
321
  priority: -80
@@ -337,20 +381,15 @@
337
  priority: -80
338
  }).render() );
339
  }
340
-
341
  if ( this.options.search ) {
342
  if ( mlaSettings.enableSearchBox ) {
 
343
  this.toolbar.set( 'MlaSearch', new media.view.MlaSearch({
344
  controller: this.controller,
345
  model: this.collection.props,
346
  priority: 60
347
  }).render() );
348
- } else {
349
- this.toolbar.set( 'search', new media.view.Search({
350
- controller: this.controller,
351
- model: this.collection.props,
352
- priority: 60
353
- }).render() );
354
  }
355
  }
356
 
@@ -362,5 +401,763 @@
362
  }
363
  }
364
  });
365
- } // one or more MLA options enabled
366
  }(jQuery));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  (function($){
2
+ var media = wp.media, mlaStrings = {}, mlaSettings = {}, originalMediaAjax = null;
3
 
4
+ /* for debug : trace every event triggered in the MediaFrame controller * /
5
+ var originalMediaFrameTrigger = wp.media.view.MediaFrame.prototype.trigger;
6
  wp.media.view.MediaFrame.prototype.trigger = function(){
7
  console.log('MediaFrame Event: ', arguments[0]);
8
+ originalMediaFrameTrigger.apply(this, Array.prototype.slice.call(arguments));
9
  } // */
10
 
11
+ /* for debug : trace every event triggered in the view.Attachment controller * /
12
+ var originalAttachmentTrigger = wp.media.view.Attachment.prototype.trigger;
13
+ wp.media.view.Attachment.prototype.trigger = function(){
14
+ console.log('view.Attachment Event: ', arguments[0]);
15
+ originalAttachmentTrigger.apply(this, Array.prototype.slice.call(arguments));
16
+ } // */
17
+
18
+ /* for debug : trace every event triggered in the model.Attachment controller * /
19
+ var originalModelAttachmentTrigger = wp.media.model.Attachment.prototype.trigger;
20
+ wp.media.model.Attachment.prototype.trigger = function(){
21
+ console.log('model.Attachment Event: ', arguments[0]);
22
+ originalModelAttachmentTrigger.apply(this, Array.prototype.slice.call(arguments));
23
+ } // */
24
+
25
+ /* for debug : trace every event triggered in the view.AttachmentCompat controller * /
26
+ var originalAttachmentCompatTrigger = wp.media.view.AttachmentCompat.prototype.trigger;
27
+ wp.media.view.AttachmentCompat.prototype.trigger = function(){
28
+ console.log('view.AttachmentCompat Event: ', arguments[0]);
29
+
30
+ originalAttachmentCompatTrigger.apply(this, Array.prototype.slice.call(arguments));
31
+ } // */
32
+
33
+ /* for debug : trace every event triggered in the model.Selection controller * /
34
+ var originalModelSelectionTrigger = wp.media.model.Selection.prototype.trigger;
35
+ wp.media.model.Selection.prototype.trigger = function(){
36
+ console.log('model.Selection Event: ', arguments[0]);
37
+
38
+ originalModelSelectionTrigger.apply(this, Array.prototype.slice.call(arguments));
39
+ } // */
40
+
41
+ /* for debug : trace every invocation of the media.post method * /
42
+ var originalMediaPost = media.post;
43
+ media.post = function( action, data ) {
44
+ console.log('media.post action: ', action );
45
+ console.log('media.post data: ', JSON.stringify( data ) );
46
+
47
+ return originalMediaPost.apply(this, Array.prototype.slice.call(arguments));
48
+ }; // */
49
+
50
+ /* for debug : trace every invocation of the wp.ajax.send function * /
51
+ var originalWpAjaxSend = wp.ajax.send;
52
+ wp.ajax.send = function( action, data ) {
53
+ console.log('wp.ajax.send action: ', JSON.stringify( action ) );
54
+ console.log('wp.ajax.send data: ', JSON.stringify( data ) );
55
+
56
+ return originalWpAjaxSend.apply(this, Array.prototype.slice.call(arguments));
57
+ }; // */
58
+
59
  /*
60
+ * Parse outgoing Ajax requests, look for the 'query-attachments' action and stuff
61
+ * our arguments into the "s" field because MMMW only monitors that one field.
62
  */
63
+ originalMediaAjax = media.ajax;
64
+ media.ajax = function( action, options ) {
65
+ if ( _.isObject( action ) ) {
66
+ options = action;
67
+ } else {
68
+ // console.log('media.ajax action: ', JSON.stringify( action ) );
69
+ options = options || {};
70
+ options.data = _.extend( options.data || {}, { action: action });
71
+ }
72
+
73
+ // console.log('media.ajax original options: ', JSON.stringify( options ) );
74
+
75
+ if ( 'query-attachments' == options.data.action ) {
76
 
77
+ stype = typeof options.data.query.s;
78
  if ( 'object' == stype )
79
+ s = options.data.query.s;
80
  else if ( 'string' == stype )
81
+ s = { 'mla_search_value': options.data.query.s };
82
  else
83
  s = {};
84
 
98
  'mla_search_fields': mlaSettings.searchFields,
99
  'mla_search_connector': mlaSettings.searchConnector };
100
 
101
+ options.data.query.s = searchValues;
102
  }
103
 
104
+ // console.log('media.ajax final options: ', JSON.stringify( options ) );
105
+ return originalMediaAjax.call(this, options );
106
+ };
107
 
108
  /**
109
  * Localized settings and strings
110
  */
111
  mlaStrings = typeof media.view.l10n.mla_strings === 'undefined' ? {} : media.view.l10n.mla_strings;
112
+ // delete media.view.l10n.mla_strings;
113
 
114
  mlaSettings = typeof wp.media.view.settings.mla_settings === 'undefined' ? {} : wp.media.view.settings.mla_settings;
115
+ // delete wp.media.view.settings.mla_settings;
 
 
 
 
 
 
 
 
 
 
 
 
116
 
117
  /**
118
  * Extended Filters dropdown with more mimeTypes
119
  */
120
+ if ( mlaSettings.enableMimeTypes ) {
121
+ media.view.AttachmentFilters.Mla = media.view.AttachmentFilters.extend({
122
+ createFilters: function() {
123
+ var filters = {};
124
+
125
+ _.each( mlaSettings.mimeTypes || {}, function( text, key ) {
126
+ filters[ key ] = {
127
+ text: text,
128
+ props: {
129
+ type: key,
130
+ uploadedTo: null,
131
+ orderby: 'date',
132
+ order: 'DESC'
133
+ }
134
+ };
135
+ });
136
+
137
+ filters.all = {
138
+ text: media.view.l10n.allMediaItems,
139
  props: {
140
+ type: null,
141
  uploadedTo: null,
142
  orderby: 'date',
143
  order: 'DESC'
144
+ },
145
+ priority: 10
146
  };
147
+
148
+ filters.uploaded = {
149
+ text: media.view.l10n.uploadedToThisPost,
150
+ props: {
151
+ type: null,
152
+ uploadedTo: media.view.settings.post.id,
153
+ orderby: 'menuOrder',
154
+ order: 'ASC'
155
+ },
156
+ priority: 20
157
+ };
158
+
159
+ this.filters = filters;
160
+ }
161
+ });
162
+ };
 
 
 
 
 
 
 
 
 
 
 
163
 
164
  /**
165
  * Extended Filters dropdown with month and year selection values
166
  */
167
+ if ( mlaSettings.enableMonthsDropdown ) {
168
+ media.view.AttachmentFilters.MlaMonths = media.view.AttachmentFilters.extend({
169
+ className: 'attachment-months',
170
+
171
+ createFilters: function() {
172
+ var filters = {};
173
+
174
+ _.each( mlaSettings.months || {}, function( text, key ) {
175
+ filters[ key ] = {
176
+ text: text,
177
+ props: { s: { 'mla_filter_month': key } }
178
+ };
179
+ });
180
+
181
+ this.filters = filters;
182
+ },
183
+
184
+ select: function() {
185
+ var model = this.model,
186
+ value = mlaSettings.filterMonth,
187
+ props = model.toJSON();
188
+
189
+ if ( _.isUndefined( props.s ) )
190
+ props.s = {};
191
+
192
+ if ( 'string' == typeof props.search )
193
+ mlaSettings.searchValue = props.search;
194
+
195
+ if (_.isUndefined( props.s.mla_filter_month ) )
196
+ props.s.mla_filter_month = mlaSettings.filterMonth;
197
+ else
198
+ mlaSettings.filterMonth = props.s.mla_filter_month;
199
+
200
+ _.find( this.filters, function( filter, id ) {
201
+ var equal = _.all( filter.props, function( prop, key ) {
202
+ return prop.mla_filter_month == mlaSettings.filterMonth;
203
+ });
204
 
205
+ if ( equal )
206
+ return value = id;
207
+ });
208
+
209
+ this.$el.val( value );
210
+ } });
211
+ };
 
 
 
 
 
 
 
 
 
 
 
 
 
212
 
 
 
 
 
 
 
 
213
  /**
214
  * Extended Filters dropdown with taxonomy term selection values
215
  */
216
+ if ( mlaSettings.enableTermsDropdown ) {
217
+ media.view.AttachmentFilters.MlaTerms = media.view.AttachmentFilters.extend({
218
+ className: 'attachment-terms',
219
+
220
+ createFilters: function() {
221
+ var filters = {};
222
+
223
+ _.each( mlaSettings.termsText || {}, function( text, key ) {
224
+ filters[ key ] = {
225
+ text: text,
226
+ props: { s: { 'mla_filter_term': parseInt( mlaSettings.termsValue[ key ] ) } }
227
+ };
228
+ });
229
+
230
+ this.filters = filters;
231
+ },
232
+
233
+ select: function() {
234
+ var model = this.model,
235
+ value = mlaSettings.filterTerm,
236
+ props = model.toJSON();
237
+
238
+ if ( _.isUndefined( props.s ) )
239
+ props.s = {};
240
+
241
+ if ( 'string' == typeof props.search )
242
+ mlaSettings.searchValue = props.search;
 
 
 
 
243
 
244
+ if (_.isUndefined( props.s.mla_filter_term ) )
245
+ props.s.mla_filter_term = mlaSettings.filterTerm;
246
+ else
247
+ mlaSettings.filterTerm = props.s.mla_filter_term;
248
+
249
+ _.find( this.filters, function( filter, id ) {
250
+ var equal = _.all( filter.props, function( prop, key ) {
251
+ return prop.mla_filter_term == mlaSettings.filterTerm;
252
+ });
253
+
254
+ if ( equal )
255
+ return value = id;
256
  });
257
+
258
+ this.$el.val( value );
259
+ } });
260
+ };
261
+
 
 
 
262
  /**
263
  * Extended wp.media.view.Search
264
  */
265
+ if ( mlaSettings.enableSearchBox ) {
266
+ media.view.MlaSearch = media.View.extend({
267
+ tagName: 'div',
268
+ className: 'mla-search-box',
269
+ template: media.template('mla-search-box'),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
270
 
271
+ attributes: {
272
+ type: 'mla-search-box'
273
+ },
274
 
275
+ events: {
276
+ 'change': 'search',
277
+ 'click': 'search',
278
+ 'search': 'search',
279
+ 'MlaSearch': 'search'
280
+ },
281
 
282
+ render: function() {
283
+ this.$el.html( this.template( mlaStrings ) );
284
+ return this;
285
+ },
286
+
287
+ search: function( event ) {
288
+ if ( ( 'click' == event.type ) && ( 'mla_search_submit' != event.target.name ) ) {
289
+ return;
290
+ }
291
+
292
+ switch ( event.target.name ) {
293
+ case 's[mla_search_value]':
294
+ mlaSettings.searchValue = event.target.value;
295
+ case 'mla_search_submit':
296
+ searchValues = {
297
+ 'mla_filter_month': mlaSettings.filterMonth,
298
+ 'mla_filter_term': mlaSettings.filterTerm,
299
+ 'mla_search_value': mlaSettings.searchValue,
300
+ 'mla_search_fields': mlaSettings.searchFields,
301
+ 'mla_search_connector': mlaSettings.searchConnector };
302
+ this.model.set({ 's': searchValues });
303
+ break;
304
+ case 's[mla_search_connector]':
305
+ mlaSettings.searchConnector = event.target.value;
306
+ break;
307
+ case 's[mla_search_title]':
308
+ index = mlaSettings.searchFields.indexOf( 'title' );
309
+ if ( -1 == index )
310
+ mlaSettings.searchFields.push( 'title' )
311
+ else
312
+ mlaSettings.searchFields.splice( index, 1 );
313
+ break;
314
+ case 's[mla_search_name]':
315
+ index = mlaSettings.searchFields.indexOf( 'name' );
316
+ if ( -1 == index )
317
+ mlaSettings.searchFields.push( 'name' )
318
+ else
319
+ mlaSettings.searchFields.splice( index, 1 );
320
+ break;
321
+ case 's[mla_search_alt_text]':
322
+ index = mlaSettings.searchFields.indexOf( 'alt-text' );
323
+ if ( -1 == index )
324
+ mlaSettings.searchFields.push( 'alt-text' )
325
  else
326
+ mlaSettings.searchFields.splice( index, 1 );
327
+ break;
328
+ case 's[mla_search_excerpt]':
329
+ index = mlaSettings.searchFields.indexOf( 'excerpt' );
330
+ if ( -1 == index )
331
+ mlaSettings.searchFields.push( 'excerpt' )
332
+ else
333
+ mlaSettings.searchFields.splice( index, 1 );
334
+ break;
335
+ case 's[mla_search_content]':
336
+ index = mlaSettings.searchFields.indexOf( 'content' );
337
+ if ( -1 == index )
338
+ mlaSettings.searchFields.push( 'content' )
339
+ else
340
+ mlaSettings.searchFields.splice( index, 1 );
341
+ break;
342
  }
343
+ }
344
+ });
345
+ };
346
 
347
+ /**
348
+ * Add/replace media-toolbar controls with our own
349
+ */
350
+ if ( mlaSettings.enableMimeTypes || mlaSettings.enableMonthsDropdown || mlaSettings.enableTermsDropdown || mlaSettings.enableSearchBox ) {
351
+ wp.media.view.AttachmentsBrowser = wp.media.view.AttachmentsBrowser.extend({
352
+ createToolbar: function() {
353
+ var filters;
354
+
355
+ // Apply the original method to create the toolbar
356
+ wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply(this,arguments);
357
+
358
+ filters = this.options.filters;
359
+
360
+ if ( ( 'all' === filters ) && mlaSettings.enableMimeTypes ) {
361
+ this.toolbar.unset( 'filters', { silent: true } );
362
+ this.toolbar.set( 'filters', new media.view.AttachmentFilters.Mla({
363
  controller: this.controller,
364
  model: this.collection.props,
365
  priority: -80
381
  priority: -80
382
  }).render() );
383
  }
384
+
385
  if ( this.options.search ) {
386
  if ( mlaSettings.enableSearchBox ) {
387
+ this.toolbar.unset( 'search', { silent: true } );
388
  this.toolbar.set( 'MlaSearch', new media.view.MlaSearch({
389
  controller: this.controller,
390
  model: this.collection.props,
391
  priority: 60
392
  }).render() );
 
 
 
 
 
 
393
  }
394
  }
395
 
401
  }
402
  }
403
  });
404
+ }; // one or more MLA options enabled
405
  }(jQuery));
406
+
407
+ var mla = {
408
+ // Properties
409
+ strings: {},
410
+ settings: {},
411
+ initialHTML: {},
412
+ uploading: false,
413
+
414
+ // Utility functions
415
+ utility: {
416
+ arrayCleanup: null,
417
+ parseTaxonomyId: null,
418
+ hookCompatTaxonomies: null,
419
+ fillCompatTaxonomies: null,
420
+ supportCompatTaxonomies: null
421
+ },
422
+
423
+ // Components
424
+ tagBox: null
425
+ };
426
+
427
+ (function($){
428
+ /**
429
+ * Localized settings and strings
430
+ */
431
+ mla.strings = typeof wp.media.view.l10n.mla_strings === 'undefined' ? {} : wp.media.view.l10n.mla_strings;
432
+ //delete media.view.l10n.mla_strings;
433
+
434
+ mla.settings = typeof wp.media.view.settings.mla_settings === 'undefined' ? {} : wp.media.view.settings.mla_settings;
435
+ //delete wp.media.view.settings.mla_settings;
436
+
437
+ /**
438
+ * return a sorted array with any duplicate, whitespace or values removed
439
+ * Adapted from /wp-admin/js/post.js
440
+ */
441
+ mla.utility.arrayCleanup = function ( arrayIn ) {
442
+ var arrayOut = [], isString = ( 'string' === typeof arrayIn );
443
+
444
+ if( isString ) {
445
+ arrayIn = arrayIn.split( postL10n.comma );
446
+ }
447
+
448
+ jQuery.each( arrayIn, function( key, val ) {
449
+ val = jQuery.trim( val );
450
+
451
+ if ( val && jQuery.inArray( val, arrayOut ) == -1 ) {
452
+ arrayOut.push( val );
453
+ }
454
+
455
+ });
456
+
457
+ arrayOut.sort();
458
+
459
+ if( isString ) {
460
+ arrayOut = arrayOut.join( postL10n.comma );
461
+ }
462
+
463
+ return arrayOut;
464
+ };
465
+
466
+ /**
467
+ * Extract the taxonomy name from an HTML id attribute,
468
+ * removing the 'mla-' and 'taxonomy-' prefixes.
469
+ */
470
+ mla.utility.parseTaxonomyId = function ( id ) {
471
+ var taxonomyParts = id.split( '-' );
472
+
473
+ taxonomyParts.shift(); // 'mla-'
474
+ taxonomyParts.shift(); // 'taxonomy-'
475
+ return taxonomyParts.join('-');
476
+ };
477
+
478
+ /**
479
+ * Support functions for flat taxonomies, e.g. Tags, Att. Tags
480
+ */
481
+ mla.tagBox = {
482
+ /**
483
+ * Remove duplicate commas and whitespace from a string containing a tag list
484
+ */
485
+ cleanTags : function( tags ) {
486
+ var comma = postL10n.comma;
487
+ if ( ',' !== comma ) {
488
+ tags = tags.replace( new RegExp( comma, 'g' ), ',' );
489
+ }
490
+
491
+ tags = tags.replace( /\s*,\s*/g, ',' ).replace( /,+/g, ',' ).replace( /[,\s]+$/, '' ).replace( /^[,\s]+/, '' );
492
+
493
+ if ( ',' !== comma ) {
494
+ tags = tags.replace( /,/g, comma );
495
+ }
496
+
497
+ return tags;
498
+ },
499
+
500
+ /**
501
+ * Remove a tag from the list when the "X" button is clicked
502
+ */
503
+ parseTags : function( el ) {
504
+ var id = el.id, num = id.split( '-check-num-' )[1],
505
+ tagsDiv = $( el ).closest( '.tagsdiv' ),
506
+ thetags = tagsDiv.find( '.the-tags' ), comma = postL10n.comma,
507
+ current_tags = thetags.val().split( comma ), new_tags = [];
508
+
509
+ delete current_tags[ num ];
510
+
511
+ $.each( current_tags, function( key, val ) {
512
+ val = $.trim( val );
513
+ if ( val ) {
514
+ new_tags.push( val );
515
+ }
516
+ });
517
+
518
+ thetags.val( this.cleanTags( new_tags.join( comma ) ) );
519
+
520
+ this.quickClicks( tagsDiv );
521
+ return false;
522
+ },
523
+
524
+ /**
525
+ * Build or rebuild the current tag list prefaced with "X" buttons,
526
+ * using the hidden '.the-tags' textbox field as input
527
+ */
528
+ quickClicks : function( el ) {
529
+ var thetags = $( '.the-tags', el ),
530
+ tagchecklist = $( '.tagchecklist', el ),
531
+ id = $( el ).attr( 'id' ),
532
+ current_tags, disabled;
533
+
534
+ if ( !thetags.length ) {
535
+ return;
536
+ }
537
+
538
+ disabled = thetags.prop( 'disabled' );
539
+
540
+ current_tags = thetags.val().split( postL10n.comma );
541
+ tagchecklist.empty();
542
+
543
+ $.each( current_tags, function( key, val ) {
544
+ var span, xbutton;
545
+
546
+ val = $.trim( val );
547
+
548
+ if ( ! val ) {
549
+ return;
550
+ }
551
+
552
+ // Create a new span, and ensure the text is properly escaped.
553
+ span = $( '<span />' ).text( val );
554
+
555
+ // If tags editing isn't disabled, create the X button.
556
+ if ( ! disabled ) {
557
+ xbutton = $( '<a id="' + id + '-check-num-' + key + '" class="ntdelbutton">X</a>' );
558
+ xbutton.click( function(){ mla.tagBox.parseTags( this ); });
559
+ span.prepend( '&nbsp;' ).prepend( xbutton );
560
+ }
561
+
562
+ // Append the span to the tag list.
563
+ tagchecklist.append( span );
564
+ });
565
+ },
566
+
567
+ /**
568
+ * Add one or more tags from the 'input.newtag' text field or from the "a" element
569
+ */
570
+ flushTags : function( tagsDiv, a, f ) {
571
+ var tagsval, newtags, text,
572
+ tags = $( '.the-tags', tagsDiv ),
573
+ newtag = $( 'input.newtag', tagsDiv ),
574
+ comma = postL10n.comma;
575
+
576
+ a = a || false;
577
+
578
+ text = a ? $( a ).text() : newtag.val();
579
+ tagsval = tags.val();
580
+ newtags = tagsval ? tagsval + comma + text : text;
581
+
582
+ newtags = mla.utility.arrayCleanup( this.cleanTags( newtags ) );
583
+ tags.val( newtags );
584
+ this.quickClicks( tagsDiv );
585
+
586
+ if ( !a ) {
587
+ newtag.val( '' );
588
+ }
589
+
590
+ if ( 'undefined' == typeof( f ) ) {
591
+ newtag.focus();
592
+ }
593
+
594
+ return false;
595
+ },
596
+
597
+ /**
598
+ * Retrieve the tag cloud for this taxonomy
599
+ */
600
+ getCloud : function( id, taxonomy ) {
601
+ $.post( ajaxurl, {'action':'get-tagcloud', 'tax':taxonomy}, function( r, stat ) {
602
+ if ( 0 === r || 'success' != stat ) {
603
+ r = wpAjax.broken;
604
+ }
605
+
606
+ r = $( '<p id="tagcloud-'+taxonomy+'" class="the-tagcloud">'+r+'</p>' );
607
+ $( 'a', r ).click( function(){
608
+ mla.tagBox.flushTags( $( this ).closest( '.mla-taxonomy-field' ).children( '.tagsdiv' ), this );
609
+ return false;
610
+ });
611
+
612
+ $( '#'+id ).after( r );
613
+ });
614
+ },
615
+
616
+ init : function( attachmentId, taxonomy, context ) {
617
+ var tagsDiv, ajaxTag;
618
+ tagsDiv = $( '#mla-taxonomy-' + taxonomy, context );
619
+ ajaxTag = $( 'div.ajaxtag', tagsDiv );
620
+
621
+ mla.tagBox.quickClicks( tagsDiv );
622
+
623
+ $( 'input.tagadd', ajaxTag ).click(function(){
624
+ mla.tagBox.flushTags( $(this).closest( '.tagsdiv' ) );
625
+ });
626
+
627
+ $( 'input.newtag', ajaxTag ).keyup( function( e ){
628
+ if ( 13 == e.which ) {
629
+ mla.tagBox.flushTags( tagsDiv );
630
+ return false;
631
+ }
632
+ }).keypress( function( e ){
633
+ if ( 13 == e.which ) {
634
+ e.preventDefault();
635
+ return false;
636
+ }
637
+ }).each( function(){
638
+ $( this ).suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxonomy, { delay: 500, resultsClass: 'mla_ac_results', selectClass: 'mla_ac_over', matchClass: 'mla_ac_match', minchars: 2, multiple: true, multipleSep: postL10n.comma + ' ' } );
639
+ });
640
+
641
+ // get the tag cloud on first click, then toggle visibility
642
+ tagsDiv.siblings( ':first' ).click( function(){
643
+ mla.tagBox.getCloud( $( 'a', this ).attr( 'id' ), taxonomy );
644
+ $( 'a', this ).unbind().click( function(){
645
+ $( this ).siblings( '.the-tagcloud' ).toggle();
646
+ return false;
647
+ });
648
+ return false;
649
+ });
650
+
651
+ // Update the taxonomy terms, if changed, on the server when the mouse leaves the tagsdiv area
652
+ $( '.compat-field-' + taxonomy + ' td', context ).on( "mouseleave", function( event ) {
653
+ var query, tableData = this,
654
+ oldTerms = mla.utility.arrayCleanup( $( '.server-tags', tableData ).val() ),
655
+ termList = mla.utility.arrayCleanup( $( '.the-tags', tableData ).val() );
656
+
657
+ if ( oldTerms === termList ) {
658
+ return;
659
+ }
660
+
661
+ $( tableData ).css( 'opacity', '0.5' );
662
+
663
+ /**
664
+ * wp.ajax.send( [action], [options] )
665
+ */
666
+ query = {
667
+ id: attachmentId,
668
+ //_wpnonce: settings.post.nonce
669
+ };
670
+ query[ taxonomy ] = termList;
671
+
672
+ wp.media.post( mla.settings.ajaxUpdateCompatAction, query ).done( function( results ) {
673
+ var taxonomy, list;
674
+
675
+ for ( taxonomy in results ) {
676
+ for ( list in results[ taxonomy ] ) {
677
+ $( "#" + list, tableData ).replaceWith( results[ taxonomy ][ list ] );
678
+ }
679
+ }
680
+
681
+ $( tableData ).css( 'opacity', '1.0' );
682
+ });
683
+ });
684
+
685
+ // Don't let changes propogate to the Backbone model
686
+ tagsDiv.on( 'change', function( event ) {
687
+ event.stopPropagation();
688
+ return false;
689
+ });
690
+
691
+ $( '.the-tags, .server-tags .newtag', tagsDiv ).on( 'change', function( event ) {
692
+ event.stopPropagation();
693
+ return false;
694
+ });
695
+ }
696
+ }; // mla.tagBox
697
+
698
+ /*
699
+ * We can extend the AttachmentCompat object because it's not instantiated until
700
+ * the sidebar is created for a selected attachment.
701
+ */
702
+ wp.media.view.AttachmentCompat = wp.media.view.AttachmentCompat.extend({
703
+ initialize: function() {
704
+ // Call the base method in the super class
705
+ wp.media.view.AttachmentCompat.__super__.initialize.apply( this, arguments );
706
+
707
+ // Hook the 'ready' event when the sidebar has been rendered so we can add our enhancements
708
+ this.on( 'ready', function( event ) {
709
+ // console.log( 'view.AttachmentCompat Event: ', this.model.get('id') );
710
+ mla.utility.hookCompatTaxonomies( this.model.get('id'), this.el );
711
+ });
712
+ }
713
+ });
714
+
715
+ /*
716
+ * We can extend the model.Selection object because it's not instantiated until
717
+ * the sidebar is created for a selected attachment.
718
+ */
719
+ wp.media.model.Selection = wp.media.model.Selection.extend({
720
+ initialize: function() {
721
+ // Call the base method in the super class
722
+ wp.media.model.Selection.__super__.initialize.apply( this, arguments );
723
+
724
+ // Hook the 'change:uploading' event so we can add our enhancements when it's done
725
+ this.on( 'change:uploading', function( model ) {
726
+ // console.log( 'model.Selection change:uploading Event: ', model.get('id') );
727
+ mla.uploading = true;
728
+ });
729
+
730
+ // Hook the 'change' event when the sidebar has been rendered so we can add our enhancements
731
+ this.on( 'change', function( model ) {
732
+ // console.log( 'model.Selection change Event: ', model.get('id') );
733
+
734
+ if ( mla.uploading ) {
735
+ mla.utility.hookCompatTaxonomies( model.get('id'), wp.media.frame.$el );
736
+ mla.uploading = false;
737
+ }
738
+ });
739
+ }
740
+ }); // */
741
+
742
+ /**
743
+ * Install the "click to expand" handler for MLA Searchable Taxonomy Meta Boxes
744
+ */
745
+ mla.utility.hookCompatTaxonomies = function( attachmentId, context ) {
746
+ var taxonomy;
747
+
748
+ // console.log( 'hookCompatTaxonomies attachmentId: ', attachmentId );
749
+ // console.log( 'hookCompatTaxonomies context: ', JSON.stringify( context ) );
750
+
751
+ if ( mla.settings.enableDetailsCategory ) {
752
+ $('.mla-taxonomy-field .categorydiv', context ).each( function(){
753
+ taxonomy = mla.utility.parseTaxonomyId( $(this).attr('id') );
754
+
755
+ // Load the taxonomy checklists on first expansion
756
+ $( '.compat-field-' + taxonomy + ' th', context ).click( { id: attachmentId, currentTaxonomy: taxonomy, el: context }, function( event ) {
757
+ mla.utility.fillCompatTaxonomies( event.data );
758
+ });
759
+ });
760
+ } // enableDetailsCategory
761
+
762
+ if ( mla.settings.enableDetailsTag ) {
763
+ $('.mla-taxonomy-field .tagsdiv', context ).each( function(){
764
+ taxonomy = mla.utility.parseTaxonomyId( $(this).attr('id') );
765
+
766
+ // Load the taxonomy checklists on first expansion
767
+ $( '.compat-field-' + taxonomy + ' th', context ).click( { id: attachmentId, currentTaxonomy: taxonomy, el: context }, function( event ) {
768
+ mla.utility.fillCompatTaxonomies( event.data );
769
+ });
770
+ });
771
+ } // enableDetailsTag
772
+ };
773
+
774
+ /**
775
+ * Replace the "Loading..." placeholders with the MLA Searchable Taxonomy Meta Boxes
776
+ */
777
+ mla.utility.fillCompatTaxonomies = function( data ) {
778
+ var context = data.el, query = [], taxonomy, fieldClass;
779
+
780
+ if ( mla.settings.enableDetailsCategory ) {
781
+ $('.mla-taxonomy-field .categorydiv', context ).each( function(){
782
+ taxonomy = mla.utility.parseTaxonomyId( $(this).attr('id') );
783
+ query[ query.length ] = taxonomy;
784
+ fieldClass = '.compat-field-' + taxonomy;
785
+
786
+ // Save the initial markup for when we change attachments
787
+ if ( "undefined" === typeof( mla.initialHTML[ taxonomy ] ) ) {
788
+ mla.initialHTML[ taxonomy ] = $( fieldClass, context ).html();
789
+ } else {
790
+ $( fieldClass, context ).html( mla.initialHTML[ taxonomy ] );
791
+ }
792
+
793
+ $( fieldClass + ' .categorydiv', context ).html( mla.strings.loadingText );
794
+ });
795
+ } // mla.settings.enableDetailsCategory
796
+
797
+ if ( mla.settings.enableDetailsTag ) {
798
+ $( '.mla-taxonomy-field .tagsdiv', context ).each( function(){
799
+ taxonomy = mla.utility.parseTaxonomyId( $(this).attr('id') );
800
+ query[ query.length ] = taxonomy;
801
+ fieldClass = '.compat-field-' + taxonomy;
802
+
803
+ if ( "undefined" === typeof( mla.initialHTML[ taxonomy ] ) ) {
804
+ mla.initialHTML[ taxonomy ] = $( fieldClass, context ).html();
805
+ } else {
806
+ $( fieldClass, context ).html( mla.initialHTML[ taxonomy ] );
807
+ }
808
+
809
+ $( fieldClass + ' .tagsdiv', context ).html( mla.strings.loadingText );
810
+ });
811
+ } // mla.settings.enableDetailsTag
812
+
813
+
814
+ if ( query.length ) {
815
+ /**
816
+ * wp.ajax.send( [action], [options] )
817
+ *
818
+ * Sends a POST request to WordPress.
819
+ *
820
+ * @param {string} action The slug of the action to fire in WordPress.
821
+ * @param {object} options The options passed to jQuery.ajax.
822
+ * @return {$.promise} A jQuery promise that represents the request.
823
+ */
824
+ wp.media.post( mla.settings.ajaxFillCompatAction, {
825
+ // json: true,
826
+ id: data.id,
827
+ query: query,
828
+ //_wpnonce: settings.post.nonce
829
+ }).done( function( results ) {
830
+ var taxonomy, fieldClass;
831
+
832
+ for ( taxonomy in results ) {
833
+ fieldClass = '.compat-field-' + taxonomy;
834
+
835
+ $( fieldClass, context ).html( results[ taxonomy ] );
836
+ }
837
+
838
+ mla.utility.supportCompatTaxonomies( data );
839
+ $( '.compat-field-' + data.currentTaxonomy + ' td', context ).show();
840
+ });
841
+ } // query.length
842
+ };
843
+
844
+ /**
845
+ * Support the MLA Searchable Taxonomy Meta Boxes
846
+ */
847
+ mla.utility.supportCompatTaxonomies = function( data ) {
848
+ var attachmentId = data.id, context = data.el;
849
+
850
+ if ( mla.settings.enableDetailsCategory ) {
851
+ $( '.mla-taxonomy-field .categorydiv', context ).each( function(){
852
+ var thisJQuery = $(this), catAddBefore, catAddAfter, taxonomy, settingName,
853
+ taxonomyIdPrefix, taxonomyNewIdSelector, taxonomySearchIdSelector, taxonomyTermsId;
854
+
855
+ taxonomy = mla.utility.parseTaxonomyId( $(this).attr('id') );
856
+ settingName = taxonomy + '_tab';
857
+ taxonomyIdPrefix = '#mla-' + taxonomy;
858
+ taxonomyNewIdSelector = '#mla-new-' + taxonomy;
859
+ taxonomySearchIdSelector = '#mla-search-' + taxonomy;
860
+ taxonomyTermsId = '#mla-attachments-' + attachmentId + '-' + taxonomy;
861
+
862
+ if ( taxonomy == 'category' ) {
863
+ settingName = 'cats';
864
+ }
865
+
866
+ // override "Media Categories" style sheet
867
+ thisJQuery.find( '.category-tabs' ).show();
868
+
869
+ // Expand/collapse the meta box contents
870
+ $( '.compat-field-' + taxonomy + ' th', context ).click( function() {
871
+ $(this).siblings( 'td' ).slideToggle();
872
+ });
873
+
874
+ // Update the taxonomy terms, if changed, on the server when the mouse leaves the checklist area
875
+ thisJQuery.on( "mouseleave", function( event ) {
876
+ var query, oldTerms, termList = [], checked = thisJQuery.find( taxonomyIdPrefix + '-checklist input:checked' );
877
+
878
+ checked.each( function( index ) {
879
+ termList[ termList.length ] = $(this).val();
880
+ });
881
+
882
+ termList.sort( function( a, b ) { return a - b; } );
883
+ termList = termList.join( ',' );
884
+
885
+ oldTerms = thisJQuery.siblings( taxonomyTermsId ).val();
886
+ if ( oldTerms === termList ) {
887
+ return;
888
+ }
889
+
890
+ thisJQuery.siblings( taxonomyTermsId ).val( termList );
891
+ thisJQuery.prop( 'disabled', true );
892
+
893
+ /**
894
+ * wp.ajax.send( [action], [options] )
895
+ */
896
+ query = {
897
+ id: attachmentId,
898
+ //_wpnonce: settings.post.nonce
899
+ };
900
+ query[ taxonomy ] = termList;
901
+
902
+ wp.media.post( mla.settings.ajaxUpdateCompatAction,
903
+ query ).done( function( results ) {
904
+ var taxonomy, list;
905
+
906
+ for ( taxonomy in results ) {
907
+ for ( list in results[ taxonomy ] ) {
908
+ thisJQuery.find( "#" + list ).html( results[ taxonomy ][ list ] );
909
+ }
910
+ }
911
+
912
+ thisJQuery.find( taxonomySearchIdSelector ).val( '' );
913
+ thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
914
+ thisJQuery.prop( 'disabled', false );
915
+ });
916
+ });
917
+
918
+ // Don't let checkbox changes propogate to the Backbone model
919
+ thisJQuery.on( 'change input[type="checkbox"]', function( event ) {
920
+ event.stopPropagation();
921
+ return false;
922
+ });
923
+
924
+ /*
925
+ * Taxonomy meta box code from /wp-admin/js/post.js
926
+ */
927
+
928
+ // Switch between "All ..." and "Most Used"
929
+ thisJQuery.find( taxonomyIdPrefix + '-tabs a' ).click( function(){
930
+ var t = $(this).attr('href');
931
+ $(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
932
+ thisJQuery.find( taxonomyIdPrefix + '-tabs' ).siblings('.tabs-panel').hide();
933
+ thisJQuery.find( t ).show();
934
+ $(this).focus();
935
+
936
+ // Store the "all/most used" setting in a cookie
937
+ if ( "#mla-" + taxonomy + '-all' == t ) {
938
+ deleteUserSetting( settingName );
939
+ } else {
940
+ setUserSetting( settingName, 'pop' );
941
+ }
942
+
943
+ return false;
944
+ });
945
+
946
+ // Reflect tab selection remembered in cookie
947
+ if ( getUserSetting( settingName ) ) {
948
+ thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-pop"]' ).click();
949
+ }
950
+
951
+ // Toggle the "Add New ..." sub panel
952
+ thisJQuery.find( taxonomyIdPrefix + '-add-toggle' ).click( function() {
953
+ thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
954
+ thisJQuery.find( taxonomyIdPrefix + '-adder' ).toggleClass( 'mla-hidden-children' );
955
+ thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-all"]' ).click();
956
+
957
+ thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
958
+ thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
959
+
960
+ if ( false === thisJQuery.find( taxonomyIdPrefix + '-adder' ).hasClass( 'mla-hidden-children' ) ) {
961
+ thisJQuery.find( taxonomyNewIdSelector ).val( '' ).removeClass( 'form-input-tip' );
962
+ thisJQuery.find( taxonomyNewIdSelector ).focus();
963
+ }
964
+ return false;
965
+ });
966
+
967
+ // Convert "Enter" key to a click
968
+ thisJQuery.find( taxonomyNewIdSelector ).keypress( function(event){
969
+ if( 13 === event.keyCode ) {
970
+ event.preventDefault();
971
+ thisJQuery.find( taxonomyIdPrefix + '-add-submit' ).click();
972
+ }
973
+ });
974
+
975
+ thisJQuery.find( taxonomyIdPrefix + '-add-submit' ).click( function(){
976
+ thisJQuery.find( taxonomyNewIdSelector ).focus();
977
+ });
978
+
979
+ catAddBefore = function( s ) {
980
+ if ( ! thisJQuery.find( taxonomyNewIdSelector ).val() )
981
+ return false;
982
+
983
+ s.data += '&' + thisJQuery.find( taxonomyIdPrefix + '-checklist :checked' ).serialize();
984
+ thisJQuery.prop( 'disabled', true );
985
+ return s;
986
+ };
987
+
988
+ catAddAfter = function( r, s ) {
989
+ var sup, drop = thisJQuery.find( taxonomyNewIdSelector + '_parent' );
990
+
991
+ thisJQuery.prop( 'disabled', false );
992
+ if ( 'undefined' != s.parsed.responses[0] && (sup = s.parsed.responses[0].supplemental.newcat_parent) ) {
993
+ drop.before(sup);
994
+ drop.remove();
995
+ }
996
+ };
997
+
998
+ // wpList is in /wp-includes/js/wp-lists.js
999
+ thisJQuery.find( taxonomyIdPrefix + '-checklist' ).wpList({
1000
+ alt: '',
1001
+ response: 'mla-' + taxonomy + '-ajax-response',
1002
+ addBefore: catAddBefore,
1003
+ addAfter: catAddAfter
1004
+ });
1005
+
1006
+ // Synchronize checkbox changes between "All ..." and "Most Used" panels
1007
+ thisJQuery.find( taxonomyIdPrefix + '-checklist, ' + taxonomyIdPrefix + '-checklist-pop' ).on( 'click', 'li.popular-category > label input[type="checkbox"]', function() {
1008
+ var t = $(this), c = t.is(':checked'), id = t.val();
1009
+
1010
+ if ( id && t.parents( '#mla-taxonomy-'+ taxonomy ).length ) {
1011
+ $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
1012
+ }
1013
+ });
1014
+
1015
+ /*
1016
+ * Searchable meta box code from mla-edit-media-scripts.js
1017
+ */
1018
+ $.extend( $.expr[":"], {
1019
+ "matchTerms": function( elem, i, match, array ) {
1020
+ return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
1021
+ }
1022
+ });
1023
+
1024
+ thisJQuery.find( taxonomySearchIdSelector ).keypress( function( event ){
1025
+ // Enter key cancels the filter and closes the search field
1026
+ if( 13 === event.keyCode ) {
1027
+ event.preventDefault();
1028
+ thisJQuery.find( taxonomySearchIdSelector ).val( '' );
1029
+ thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
1030
+
1031
+ thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
1032
+ thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
1033
+ return;
1034
+ }
1035
+
1036
+ } );
1037
+
1038
+ thisJQuery.find( taxonomySearchIdSelector ).keyup( function( event ){
1039
+ var searchValue, matchingTerms, matchingTermsPopular;
1040
+
1041
+ // keyup happens after keypress; change the focus if the text box has been closed
1042
+ if( 13 === event.keyCode ) {
1043
+ event.preventDefault();
1044
+ thisJQuery.find( taxonomyIdPrefix + '-search-toggle' ).focus();
1045
+ return;
1046
+ }
1047
+
1048
+ searchValue = thisJQuery.find( taxonomySearchIdSelector ).val(),
1049
+ termList = thisJQuery.find( taxonomyIdPrefix + '-checklist li' );
1050
+ termListPopular = thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' );
1051
+
1052
+ if ( 0 < searchValue.length ) {
1053
+ termList.hide();
1054
+ termListPopular.hide();
1055
+ } else {
1056
+ termList.show();
1057
+ termListPopular.show();
1058
+ }
1059
+
1060
+ matchingTerms = thisJQuery.find( taxonomyIdPrefix + "-checklist label:matchTerms('" + searchValue + "')");
1061
+ matchingTerms.closest( 'li' ).find( 'li' ).andSelf().show();
1062
+ matchingTerms.parents( taxonomyIdPrefix + '-checklist li' ).show();
1063
+
1064
+ matchingTermsPopular = thisJQuery.find( taxonomyIdPrefix + "-checklist-pop label:matchTerms('" + searchValue + "')");
1065
+ matchingTermsPopular.closest( 'li' ).find( 'li' ).andSelf().show();
1066
+ matchingTermsPopular.parents( taxonomyIdPrefix + '-checklist li' ).show();
1067
+ } );
1068
+
1069
+ // Toggle the "Search" sub panel
1070
+ thisJQuery.find( taxonomyIdPrefix + '-search-toggle' ).click( function() {
1071
+ thisJQuery.find( taxonomyIdPrefix + '-adder ').addClass( 'mla-hidden-children' );
1072
+ thisJQuery.find( taxonomyIdPrefix + '-searcher' ).toggleClass( 'mla-hidden-children' );
1073
+ thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-all"]' ).click();
1074
+
1075
+ thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
1076
+ thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
1077
+
1078
+ if ( false === thisJQuery.find( taxonomyIdPrefix + '-searcher' ).hasClass( 'mla-hidden-children' ) ) {
1079
+ thisJQuery.find( taxonomySearchIdSelector ).val( '' ).removeClass( 'form-input-tip' );
1080
+ thisJQuery.find( taxonomySearchIdSelector ).focus();
1081
+ }
1082
+
1083
+ return false;
1084
+ });
1085
+ }); // .categorydiv.each
1086
+ } // mla.settings.enableDetailsCategory
1087
+
1088
+ if ( mla.settings.enableDetailsTag ) {
1089
+ $('.mla-taxonomy-field .tagsdiv', context ).each( function(){
1090
+ var taxonomy = mla.utility.parseTaxonomyId( $(this).attr('id') );
1091
+
1092
+ // Expand/collapse the meta box contents
1093
+ $( '.compat-field-' + taxonomy + ' th', context ).click( function() {
1094
+ $(this).siblings( 'td' ).slideToggle();
1095
+ });
1096
+
1097
+ // Install support for flat taxonomies
1098
+ mla.tagBox.init( attachmentId, taxonomy, context );
1099
+ }); // .tagsdiv.each
1100
+ } // mla.settings.enableDetailsTag
1101
+ };
1102
+
1103
+ /*
1104
+ * Add a utility method to jQuery
1105
+ * See if elements exists
1106
+ * /
1107
+ $.fn.extend({
1108
+ mlaExists: function() {
1109
+ return $(this).length>0;
1110
+ }
1111
+ }); // */
1112
+
1113
+ /**
1114
+ * Extend the WP AttachmentCompat object
1115
+ * /
1116
+ mla.compat = {
1117
+ init: function() {
1118
+ console.log( 'mla.compat.init' );
1119
+
1120
+ // Intercept the view.AttachmentCompat methods
1121
+ var original = wp.media.view.AttachmentCompat.prototype;
1122
+ console.log( 'mla.compat.init tagName: ', original.tagName );
1123
+ console.log( 'mla.compat.init className: ', original.className );
1124
+
1125
+ // Save the original methods
1126
+ original.mla_old_initialize = original.initialize;
1127
+ original.mla_old_dispose = original.dispose;
1128
+ original.mla_old_render = original.render;
1129
+ original.mla_old_preventDefault = original.preventDefault;
1130
+ original.mla_old_save = original.save;
1131
+
1132
+ original.initialize = function() {
1133
+ console.log( 'mla.compat.initialize' );
1134
+ this.mla_old_initialize();
1135
+ };
1136
+
1137
+ original.dispose = function() {
1138
+ console.log( 'mla.compat.dispose' );
1139
+ this.mla_old_dispose();
1140
+ return this; // allow chaining
1141
+ };
1142
+
1143
+ original.render = function() {
1144
+ console.log( 'mla.compat.render' );
1145
+ this.mla_old_render();
1146
+ return this; // allow chaining
1147
+ };
1148
+
1149
+ original.preventDefault = function() {
1150
+ console.log( 'mla.compat.preventDefault' );
1151
+ this.mla_old_preventDefault();
1152
+ };
1153
+
1154
+ // Note: Advanced Custom Fields (ACF) overrides this method and never calls the original!
1155
+ original.save = function() {
1156
+ console.log( 'mla.compat.save' );
1157
+ this.mla_old_save();
1158
+ };
1159
+ }
1160
+ }; // mla.compat */
1161
+
1162
+ //$( document ).ready( function(){ mla.compat.init(); } )
1163
+ }( jQuery ) );
js/mla-media-modal-scripts.min.js CHANGED
@@ -1 +1 @@
1
- (function(c){var e=wp.media,d={},a={};var b=e.ajax;e.ajax=function(f){if("query-attachments"==f.data.action){stype=typeof arguments[0]["data"]["query"]["s"];if("object"==stype){s=arguments[0]["data"]["query"]["s"]}else{if("string"==stype){s={mla_search_value:arguments[0]["data"]["query"]["s"]}}else{s={}}}if("undefined"!=typeof s.mla_filter_month){a.filterMonth=s.mla_filter_month}if("undefined"!=typeof s.mla_filter_term){a.filterTerm=s.mla_filter_term}if("undefined"!=typeof s.mla_search_value){a.searchValue=s.mla_search_value}searchValues={mla_filter_month:a.filterMonth,mla_filter_term:a.filterTerm,mla_search_value:a.searchValue,mla_search_fields:a.searchFields,mla_search_connector:a.searchConnector};arguments[0]["data"]["query"]["s"]=searchValues}return b.apply(this,Array.prototype.slice.call(arguments))};d=typeof e.view.l10n.mla_strings==="undefined"?{}:e.view.l10n.mla_strings;delete e.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;e.view.AttachmentFilters.Mla=e.view.AttachmentFilters.extend({createFilters:function(){var f={};_.each(a.mimeTypes||{},function(h,g){f[g]={text:h,props:{type:g,uploadedTo:null,orderby:"date",order:"DESC"}}});f.all={text:e.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};f.uploaded={text:e.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:e.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};this.filters=f}});e.view.AttachmentFilters.MlaMonths=e.view.AttachmentFilters.extend({className:"attachment-months",createFilters:function(){var f={};_.each(a.months||{},function(h,g){f[g]={text:h,props:{s:{mla_filter_month:g}}}});this.filters=f},select:function(){var f=this.model,h=a.filterMonth,g=f.toJSON();if(_.isUndefined(g.s)){g.s={}}if("string"==typeof g.search){a.searchValue=g.search}if(_.isUndefined(g.s.mla_filter_month)){g.s.mla_filter_month=a.filterMonth}else{a.filterMonth=g.s.mla_filter_month}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m.mla_filter_month==a.filterMonth});if(i){return h=k}});this.$el.val(h)}});e.view.AttachmentFilters.MlaTerms=e.view.AttachmentFilters.extend({className:"attachment-terms",createFilters:function(){var f={};_.each(a.termsText||{},function(h,g){f[g]={text:h,props:{s:{mla_filter_term:parseInt(a.termsValue[g])}}}});this.filters=f},select:function(){var f=this.model,h=a.filterTerm,g=f.toJSON();if(_.isUndefined(g.s)){g.s={}}if("string"==typeof g.search){a.searchValue=g.search}if(_.isUndefined(g.s.mla_filter_term)){g.s.mla_filter_term=a.filterTerm}else{a.filterTerm=g.s.mla_filter_term}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m.mla_filter_term==a.filterTerm});if(i){return h=k}});this.$el.val(h)}});e.view.MlaSearch=e.View.extend({tagName:"div",className:"mla-search-box",template:e.template("mla-search-box"),attributes:{type:"mla-search-box",placeholder:d.searchBoxPlaceholder},events:{change:"search",click:"search",search:"search",MlaSearch:"search"},render:function(){this.$el.html(this.template());return this},search:function(f){if(("click"==f.type)&&("mla_search_submit"!=f.target.name)){return}switch(f.target.name){case"s[mla_search_value]":a.searchValue=f.target.value;case"mla_search_submit":searchValues={mla_filter_month:a.filterMonth,mla_filter_term:a.filterTerm,mla_search_value:a.searchValue,mla_search_fields:a.searchFields,mla_search_connector:a.searchConnector};this.model.set({s:searchValues});break;case"s[mla_search_connector]":a.searchConnector=f.target.value;break;case"s[mla_search_title]":index=a.searchFields.indexOf("title");if(-1==index){a.searchFields.push("title")}else{a.searchFields.splice(index,1)}break;case"s[mla_search_name]":index=a.searchFields.indexOf("name");if(-1==index){a.searchFields.push("name")}else{a.searchFields.splice(index,1)}break;case"s[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"s[mla_search_excerpt]":index=a.searchFields.indexOf("excerpt");if(-1==index){a.searchFields.push("excerpt")}else{a.searchFields.splice(index,1)}break;case"s[mla_search_content]":index=a.searchFields.indexOf("content");if(-1==index){a.searchFields.push("content")}else{a.searchFields.splice(index,1)}break}}});if(a.enableMimeTypes||a.enableMonthsDropdown||a.enableTermsDropdown||a.enableSearchBox){e.view.AttachmentsBrowser=e.view.AttachmentsBrowser.extend({createToolbar:function(){var g,f;this.toolbar=new e.view.Toolbar({controller:this.controller});this.views.add(this.toolbar);g=this.options.filters;if("uploaded"===g){f=e.view.AttachmentFilters.Uploaded}else{if("all"===g){if(a.enableMimeTypes){f=e.view.AttachmentFilters.Mla}else{f=e.view.AttachmentFilters.All}}}if(f){this.toolbar.set("filters",new f({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(g&&a.enableMonthsDropdown){this.toolbar.set("months",new e.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(g&&a.enableTermsDropdown){this.toolbar.set("terms",new e.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 e.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:60}).render())}else{this.toolbar.set("search",new e.view.Search({controller:this.controller,model:this.collection.props,priority:60}).render())}}if(this.options.dragInfo){this.toolbar.set("dragInfo",new e.View({el:c('<div class="instructions">'+e.view.l10n.dragInfo+"</div>")[0],priority:-40}))}}})}}(jQuery));
1
+ (function(c){var e=wp.media,d={},a={},b=null;b=e.ajax;e.ajax=function(g,f){if(_.isObject(g)){f=g}else{f=f||{};f.data=_.extend(f.data||{},{action:g})}if("query-attachments"==f.data.action){stype=typeof f.data.query.s;if("object"==stype){s=f.data.query.s}else{if("string"==stype){s={mla_search_value:f.data.query.s}}else{s={}}}if("undefined"!=typeof s.mla_filter_month){a.filterMonth=s.mla_filter_month}if("undefined"!=typeof s.mla_filter_term){a.filterTerm=s.mla_filter_term}if("undefined"!=typeof s.mla_search_value){a.searchValue=s.mla_search_value}searchValues={mla_filter_month:a.filterMonth,mla_filter_term:a.filterTerm,mla_search_value:a.searchValue,mla_search_fields:a.searchFields,mla_search_connector:a.searchConnector};f.data.query.s=searchValues}return b.call(this,f)};d=typeof e.view.l10n.mla_strings==="undefined"?{}:e.view.l10n.mla_strings;a=typeof wp.media.view.settings.mla_settings==="undefined"?{}:wp.media.view.settings.mla_settings;if(a.enableMimeTypes){e.view.AttachmentFilters.Mla=e.view.AttachmentFilters.extend({createFilters:function(){var f={};_.each(a.mimeTypes||{},function(h,g){f[g]={text:h,props:{type:g,uploadedTo:null,orderby:"date",order:"DESC"}}});f.all={text:e.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};f.uploaded={text:e.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:e.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};this.filters=f}})}if(a.enableMonthsDropdown){e.view.AttachmentFilters.MlaMonths=e.view.AttachmentFilters.extend({className:"attachment-months",createFilters:function(){var f={};_.each(a.months||{},function(h,g){f[g]={text:h,props:{s:{mla_filter_month:g}}}});this.filters=f},select:function(){var f=this.model,h=a.filterMonth,g=f.toJSON();if(_.isUndefined(g.s)){g.s={}}if("string"==typeof g.search){a.searchValue=g.search}if(_.isUndefined(g.s.mla_filter_month)){g.s.mla_filter_month=a.filterMonth}else{a.filterMonth=g.s.mla_filter_month}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m.mla_filter_month==a.filterMonth});if(i){return h=k}});this.$el.val(h)}})}if(a.enableTermsDropdown){e.view.AttachmentFilters.MlaTerms=e.view.AttachmentFilters.extend({className:"attachment-terms",createFilters:function(){var f={};_.each(a.termsText||{},function(h,g){f[g]={text:h,props:{s:{mla_filter_term:parseInt(a.termsValue[g])}}}});this.filters=f},select:function(){var f=this.model,h=a.filterTerm,g=f.toJSON();if(_.isUndefined(g.s)){g.s={}}if("string"==typeof g.search){a.searchValue=g.search}if(_.isUndefined(g.s.mla_filter_term)){g.s.mla_filter_term=a.filterTerm}else{a.filterTerm=g.s.mla_filter_term}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m.mla_filter_term==a.filterTerm});if(i){return h=k}});this.$el.val(h)}})}if(a.enableSearchBox){e.view.MlaSearch=e.View.extend({tagName:"div",className:"mla-search-box",template:e.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{change:"search",click:"search",search:"search",MlaSearch:"search"},render:function(){this.$el.html(this.template(d));return this},search:function(f){if(("click"==f.type)&&("mla_search_submit"!=f.target.name)){return}switch(f.target.name){case"s[mla_search_value]":a.searchValue=f.target.value;case"mla_search_submit":searchValues={mla_filter_month:a.filterMonth,mla_filter_term:a.filterTerm,mla_search_value:a.searchValue,mla_search_fields:a.searchFields,mla_search_connector:a.searchConnector};this.model.set({s:searchValues});break;case"s[mla_search_connector]":a.searchConnector=f.target.value;break;case"s[mla_search_title]":index=a.searchFields.indexOf("title");if(-1==index){a.searchFields.push("title")}else{a.searchFields.splice(index,1)}break;case"s[mla_search_name]":index=a.searchFields.indexOf("name");if(-1==index){a.searchFields.push("name")}else{a.searchFields.splice(index,1)}break;case"s[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"s[mla_search_excerpt]":index=a.searchFields.indexOf("excerpt");if(-1==index){a.searchFields.push("excerpt")}else{a.searchFields.splice(index,1)}break;case"s[mla_search_content]":index=a.searchFields.indexOf("content");if(-1==index){a.searchFields.push("content")}else{a.searchFields.splice(index,1)}break}}})}if(a.enableMimeTypes||a.enableMonthsDropdown||a.enableTermsDropdown||a.enableSearchBox){wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){var f;wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply(this,arguments);f=this.options.filters;if(("all"===f)&&a.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new e.view.AttachmentFilters.Mla({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(f&&a.enableMonthsDropdown){this.toolbar.set("months",new e.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(f&&a.enableTermsDropdown){this.toolbar.set("terms",new e.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search){if(a.enableSearchBox){this.toolbar.unset("search",{silent:true});this.toolbar.set("MlaSearch",new e.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:60}).render())}}if(this.options.dragInfo){this.toolbar.set("dragInfo",new e.View({el:c('<div class="instructions">'+e.view.l10n.dragInfo+"</div>")[0],priority:-40}))}}})}}(jQuery));var mla={strings:{},settings:{},initialHTML:{},uploading:false,utility:{arrayCleanup:null,parseTaxonomyId:null,hookCompatTaxonomies:null,fillCompatTaxonomies:null,supportCompatTaxonomies:null},tagBox:null};(function(a){mla.strings=typeof wp.media.view.l10n.mla_strings==="undefined"?{}:wp.media.view.l10n.mla_strings;mla.settings=typeof wp.media.view.settings.mla_settings==="undefined"?{}:wp.media.view.settings.mla_settings;mla.utility.arrayCleanup=function(d){var c=[],b=("string"===typeof d);if(b){d=d.split(postL10n.comma)}jQuery.each(d,function(e,f){f=jQuery.trim(f);if(f&&jQuery.inArray(f,c)==-1){c.push(f)}});c.sort();if(b){c=c.join(postL10n.comma)}return c};mla.utility.parseTaxonomyId=function(c){var b=c.split("-");b.shift();b.shift();return b.join("-")};mla.tagBox={cleanTags:function(c){var b=postL10n.comma;if(","!==b){c=c.replace(new RegExp(b,"g"),",")}c=c.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==b){c=c.replace(/,/g,b)}return c},parseTags:function(e){var i=e.id,c=i.split("-check-num-")[1],f=a(e).closest(".tagsdiv"),h=f.find(".the-tags"),b=postL10n.comma,d=h.val().split(b),g=[];delete d[c];a.each(d,function(j,k){k=a.trim(k);if(k){g.push(k)}});h.val(this.cleanTags(g.join(b)));this.quickClicks(f);return false},quickClicks:function(d){var g=a(".the-tags",d),e=a(".tagchecklist",d),f=a(d).attr("id"),b,c;if(!g.length){return}c=g.prop("disabled");b=g.val().split(postL10n.comma);e.empty();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a("<span />").text(k);if(!c){h=a('<a id="'+f+"-check-num-"+i+'" class="ntdelbutton">X</a>');h.click(function(){mla.tagBox.parseTags(this)});j.prepend("&nbsp;").prepend(h)}e.append(j)})},flushTags:function(h,d,c){var j,b,e,k=a(".the-tags",h),g=a("input.newtag",h),i=postL10n.comma;d=d||false;e=d?a(d).text():g.val();j=k.val();b=j?j+i+e:e;b=mla.utility.arrayCleanup(this.cleanTags(b));k.val(b);this.quickClicks(h);if(!d){g.val("")}if("undefined"==typeof(c)){g.focus()}return false},getCloud:function(c,b){a.post(ajaxurl,{action:"get-tagcloud",tax:b},function(e,d){if(0===e||"success"!=d){e=wpAjax.broken}e=a('<p id="tagcloud-'+b+'" class="the-tagcloud">'+e+"</p>");a("a",e).click(function(){mla.tagBox.flushTags(a(this).closest(".mla-taxonomy-field").children(".tagsdiv"),this);return false});a("#"+c).after(e)})},init:function(f,b,d){var e,c;e=a("#mla-taxonomy-"+b,d);c=a("div.ajaxtag",e);mla.tagBox.quickClicks(e);a("input.tagadd",c).click(function(){mla.tagBox.flushTags(a(this).closest(".tagsdiv"))});a("input.newtag",c).keyup(function(g){if(13==g.which){mla.tagBox.flushTags(e);return false}}).keypress(function(g){if(13==g.which){g.preventDefault();return false}}).each(function(){a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+b,{delay:500,resultsClass:"mla_ac_results",selectClass:"mla_ac_over",matchClass:"mla_ac_match",minchars:2,multiple:true,multipleSep:postL10n.comma+" "})});e.siblings(":first").click(function(){mla.tagBox.getCloud(a("a",this).attr("id"),b);a("a",this).unbind().click(function(){a(this).siblings(".the-tagcloud").toggle();return false});return false});a(".compat-field-"+b+" td",d).on("mouseleave",function(i){var k,h=this,g=mla.utility.arrayCleanup(a(".server-tags",h).val()),j=mla.utility.arrayCleanup(a(".the-tags",h).val());if(g===j){return}a(h).css("opacity","0.5");k={id:f,};k[b]=j;wp.media.post(mla.settings.ajaxUpdateCompatAction,k).done(function(m){var l,n;for(l in m){for(n in m[l]){a("#"+n,h).replaceWith(m[l][n])}}a(h).css("opacity","1.0")})});e.on("change",function(g){g.stopPropagation();return false});a(".the-tags, .server-tags .newtag",e).on("change",function(g){g.stopPropagation();return false})}};wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({initialize:function(){wp.media.view.AttachmentCompat.__super__.initialize.apply(this,arguments);this.on("ready",function(b){mla.utility.hookCompatTaxonomies(this.model.get("id"),this.el)})}});wp.media.model.Selection=wp.media.model.Selection.extend({initialize:function(){wp.media.model.Selection.__super__.initialize.apply(this,arguments);this.on("change:uploading",function(b){mla.uploading=true});this.on("change",function(b){if(mla.uploading){mla.utility.hookCompatTaxonomies(b.get("id"),wp.media.frame.$el);mla.uploading=false}})}});mla.utility.hookCompatTaxonomies=function(d,c){var b;if(mla.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mla.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+b+" th",c).click({id:d,currentTaxonomy:b,el:c},function(e){mla.utility.fillCompatTaxonomies(e.data)})})}if(mla.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mla.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+b+" th",c).click({id:d,currentTaxonomy:b,el:c},function(e){mla.utility.fillCompatTaxonomies(e.data)})})}};mla.utility.fillCompatTaxonomies=function(f){var c=f.el,e=[],b,d;if(mla.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mla.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mla.initialHTML[b])){mla.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mla.initialHTML[b])}a(d+" .categorydiv",c).html(mla.strings.loadingText)})}if(mla.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mla.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mla.initialHTML[b])){mla.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mla.initialHTML[b])}a(d+" .tagsdiv",c).html(mla.strings.loadingText)})}if(e.length){wp.media.post(mla.settings.ajaxFillCompatAction,{id:f.id,query:e,}).done(function(h){var g,i;for(g in h){i=".compat-field-"+g;a(i,c).html(h[g])}mla.utility.supportCompatTaxonomies(f);a(".compat-field-"+f.currentTaxonomy+" td",c).show()})}};mla.utility.supportCompatTaxonomies=function(d){var c=d.id,b=d.el;if(mla.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",b).each(function(){var g=a(this),e,h,f,k,i,m,l,j;f=mla.utility.parseTaxonomyId(a(this).attr("id"));k=f+"_tab";i="#mla-"+f;m="#mla-new-"+f;l="#mla-search-"+f;j="#mla-attachments-"+c+"-"+f;if(f=="category"){k="cats"}g.find(".category-tabs").show();a(".compat-field-"+f+" th",b).click(function(){a(this).siblings("td").slideToggle()});g.on("mouseleave",function(p){var r,n,q=[],o=g.find(i+"-checklist input:checked");o.each(function(t){q[q.length]=a(this).val()});q.sort(function(u,t){return u-t});q=q.join(",");n=g.siblings(j).val();if(n===q){return}g.siblings(j).val(q);g.prop("disabled",true);r={id:c,};r[f]=q;wp.media.post(mla.settings.ajaxUpdateCompatAction,r).done(function(u){var t,v;for(t in u){for(v in u[t]){g.find("#"+v).html(u[t][v])}}g.find(l).val("");g.find(i+"-searcher").addClass("mla-hidden-children");g.prop("disabled",false)})});g.on('change input[type="checkbox"]',function(n){n.stopPropagation();return false});g.find(i+"-tabs a").click(function(){var n=a(this).attr("href");a(this).parent().addClass("tabs").siblings("li").removeClass("tabs");g.find(i+"-tabs").siblings(".tabs-panel").hide();g.find(n).show();a(this).focus();if("#mla-"+f+"-all"==n){deleteUserSetting(k)}else{setUserSetting(k,"pop")}return false});if(getUserSetting(k)){g.find(i+'-tabs a[href="#mla-'+f+'-pop"]').click()}g.find(i+"-add-toggle").click(function(){g.find(i+"-searcher").addClass("mla-hidden-children");g.find(i+"-adder").toggleClass("mla-hidden-children");g.find(i+'-tabs a[href="#mla-'+f+'-all"]').click();g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();if(false===g.find(i+"-adder").hasClass("mla-hidden-children")){g.find(m).val("").removeClass("form-input-tip");g.find(m).focus()}return false});g.find(m).keypress(function(n){if(13===n.keyCode){n.preventDefault();g.find(i+"-add-submit").click()}});g.find(i+"-add-submit").click(function(){g.find(m).focus()});e=function(n){if(!g.find(m).val()){return false}n.data+="&"+g.find(i+"-checklist :checked").serialize();g.prop("disabled",true);return n};h=function(q,p){var o,n=g.find(m+"_parent");g.prop("disabled",false);if("undefined"!=p.parsed.responses[0]&&(o=p.parsed.responses[0].supplemental.newcat_parent)){n.before(o);n.remove()}};g.find(i+"-checklist").wpList({alt:"",response:"mla-"+f+"-ajax-response",addBefore:e,addAfter:h});g.find(i+"-checklist, "+i+"-checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var n=a(this),p=n.is(":checked"),o=n.val();if(o&&n.parents("#mla-taxonomy-"+f).length){a("#in-"+f+"-"+o+", #in-popular-"+f+"-"+o).prop("checked",p)}});a.extend(a.expr[":"],{matchTerms:function(p,o,n,q){return(p.textContent||p.innerText||"").toLowerCase().indexOf((n[3]||"").toLowerCase())>=0}});g.find(l).keypress(function(n){if(13===n.keyCode){n.preventDefault();g.find(l).val("");g.find(i+"-searcher").addClass("mla-hidden-children");g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();return}});g.find(l).keyup(function(p){var q,o,n;if(13===p.keyCode){p.preventDefault();g.find(i+"-search-toggle").focus();return}q=g.find(l).val(),termList=g.find(i+"-checklist li");termListPopular=g.find(i+"-checklist-pop li");if(0<q.length){termList.hide();termListPopular.hide()}else{termList.show();termListPopular.show()}o=g.find(i+"-checklist label:matchTerms('"+q+"')");o.closest("li").find("li").andSelf().show();o.parents(i+"-checklist li").show();n=g.find(i+"-checklist-pop label:matchTerms('"+q+"')");n.closest("li").find("li").andSelf().show();n.parents(i+"-checklist li").show()});g.find(i+"-search-toggle").click(function(){g.find(i+"-adder ").addClass("mla-hidden-children");g.find(i+"-searcher").toggleClass("mla-hidden-children");g.find(i+'-tabs a[href="#mla-'+f+'-all"]').click();g.find(i+"-checklist li").show();g.find(i+"-checklist-pop li").show();if(false===g.find(i+"-searcher").hasClass("mla-hidden-children")){g.find(l).val("").removeClass("form-input-tip");g.find(l).focus()}return false})})}if(mla.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",b).each(function(){var e=mla.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+e+" th",b).click(function(){a(this).siblings("td").slideToggle()});mla.tagBox.init(c,e,b)})}}}(jQuery));
js/mla-single-edit-scripts.js CHANGED
@@ -257,7 +257,7 @@ jQuery(document).ready( function($) {
257
  });
258
 
259
  $('#' + taxonomy + '-add-toggle').click( function() {
260
- $('#' + taxonomy + '-adder').toggleClass( 'wp-hidden-children' );
261
  $('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').click();
262
  $('#new'+taxonomy).focus();
263
  return false;
257
  });
258
 
259
  $('#' + taxonomy + '-add-toggle').click( function() {
260
+ $('#' + taxonomy + '-adder').toggleClass( 'mla-hidden-children' );
261
  $('a[href="#' + taxonomy + '-all"]', '#' + taxonomy + '-tabs').click();
262
  $('#new'+taxonomy).focus();
263
  return false;
js/mla-single-edit-scripts.min.js CHANGED
@@ -1 +1 @@
1
- var tagBox;function array_unique_noempty(b){var c=[];jQuery.each(b,function(a,d){d=jQuery.trim(d);if(d&&jQuery.inArray(d,c)==-1){c.push(d)}});return c}(function(a){tagBox={clean:function(c){var b=mla_single_edit_vars.comma;if(","!==b){c=c.replace(new RegExp(b,"g"),",")}c=c.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==b){c=c.replace(/,/g,b)}return c},parseTags:function(f){var i=f.id,c=i.split("-check-num-")[1],e=a(f).closest(".tagsdiv"),h=e.find(".the-tags"),b=mla_single_edit_vars.comma,d=h.val().split(b),g=[];delete d[c];a.each(d,function(j,k){k=a.trim(k);if(k){g.push(k)}});h.val(this.clean(g.join(b)));this.quickClicks(e);return false},quickClicks:function(d){var g=a(".the-tags",d),e=a(".tagchecklist",d),f=a(d).attr("id"),b,c;if(!g.length){return}c=g.prop("disabled");b=g.val().split(mla_single_edit_vars.comma);e.empty();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a("<span />").text(k);if(!c){h=a('<a id="'+f+"-check-num-"+i+'" class="ntdelbutton">X</a>');h.click(function(){tagBox.parseTags(this)});j.prepend("&nbsp;").prepend(h)}e.append(j)})},flushTags:function(g,c,h){c=c||false;var d=a(".the-tags",g),j=a("input.newtag",g),b=mla_single_edit_vars.comma,e,i;i=c?a(c).text():j.val();tagsval=d.val();e=tagsval?tagsval+b+i:i;e=this.clean(e);e=array_unique_noempty(e.split(b)).join(b);d.val(e);this.quickClicks(g);if(!c){j.val("")}if("undefined"==typeof(h)){j.focus()}return false},get:function(c){var b=c.substr(c.indexOf("-")+1);a.post(ajaxurl,{action:"get-tagcloud",tax:b},function(e,d){if(0==e||"success"!=d){e=wpAjax.broken}e=a('<p id="tagcloud-'+b+'" class="the-tagcloud">'+e+"</p>");a("a",e).click(function(){tagBox.flushTags(a(this).closest(".inside").children(".tagsdiv"),this);return false});a("#"+c).after(e)})},init:function(){var b=this,c=a("div.ajaxtag");a(".tagsdiv").each(function(){tagBox.quickClicks(this)});a("input.tagadd",c).click(function(){b.flushTags(a(this).closest(".tagsdiv"))});a("div.taghint",c).click(function(){a(this).css("visibility","hidden").parent().siblings(".newtag").focus()});a("input.newtag",c).blur(function(){if(this.value==""){a(this).parent().siblings(".taghint").css("visibility","")}}).focus(function(){a(this).parent().siblings(".taghint").css("visibility","hidden")}).keyup(function(d){if(13==d.which){tagBox.flushTags(a(this).closest(".tagsdiv"));return false}}).keypress(function(d){if(13==d.which){d.preventDefault();return false}}).each(function(){var d=a(this).closest("div.tagsdiv").attr("id");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+d,{delay:500,minchars:2,multiple:true,multipleSep:mla_single_edit_vars.comma+" "})});a("#post").submit(function(){a("div.tagsdiv").each(function(){tagBox.flushTags(this,false,1)})});a("a.tagcloud-link").click(function(){tagBox.get(a(this).attr("id"));a(this).unbind().click(function(){a(this).siblings(".the-tagcloud").toggle();return false});return false})}}})(jQuery);jQuery(document).ready(function(a){a("#side-info-column").children("div.postbox").each(function(){if(this.id.indexOf("tagsdiv-")===0){tagBox.init();return false}});a(".categorydiv").each(function(){var g=a(this).attr("id"),c=false,f,h,e,b,d;e=g.split("-");e.shift();b=e.join("-");d=b+"_tab";a("a","#"+b+"-tabs").click(function(){var i=a(this).attr("href");a(this).parent().addClass("tabs").siblings("li").removeClass("tabs");a("#"+b+"-tabs").siblings(".tabs-panel").hide();a(i).show();if("#"+b+"-all"==i){deleteUserSetting(d)}else{setUserSetting(d,"pop")}return false});if(getUserSetting(d)){a('a[href="#'+b+'-pop"]',"#"+b+"-tabs").click()}a("#new"+b).one("focus",function(){a(this).val("").removeClass("form-input-tip")});a("#"+b+"-add-submit").click(function(){a("#new"+b).focus()});f=function(){if(c){return}c=true;var i=jQuery(this),k=i.is(":checked"),j=i.val().toString();a("#in-"+b+"-"+j+", #in-"+b+"-category-"+j).prop("checked",k);c=false};catAddBefore=function(i){if(!a("#new"+b).val()){return false}i.data+="&"+a(":checked","#"+b+"checklist").serialize();a("#"+b+"-add-submit").prop("disabled",true);return i};h=function(l,k){var j,i=a("#new"+b+"_parent");a("#"+b+"-add-submit").prop("disabled",false);if("undefined"!=k.parsed.responses[0]&&(j=k.parsed.responses[0].supplemental.newcat_parent)){i.before(j);i.remove()}};a("#"+b+"checklist").wpList({alt:"",response:b+"-ajax-response",addBefore:catAddBefore,addAfter:h});a("#"+b+"-add-toggle").click(function(){a("#"+b+"-adder").toggleClass("wp-hidden-children");a('a[href="#'+b+'-all"]',"#"+b+"-tabs").click();a("#new"+b).focus();return false});a("#"+b+"checklist li.popular-category :checkbox, #"+b+"checklist-pop :checkbox").live("click",function(){var i=a(this),k=i.is(":checked"),j=i.val();if(j&&i.parents("#taxonomy-"+b).length){a("#in-"+b+"-"+j+", #in-popular-"+b+"-"+j).prop("checked",k)}})})});
1
+ var tagBox;function array_unique_noempty(b){var c=[];jQuery.each(b,function(a,d){d=jQuery.trim(d);if(d&&jQuery.inArray(d,c)==-1){c.push(d)}});return c}(function(a){tagBox={clean:function(c){var b=mla_single_edit_vars.comma;if(","!==b){c=c.replace(new RegExp(b,"g"),",")}c=c.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==b){c=c.replace(/,/g,b)}return c},parseTags:function(f){var i=f.id,c=i.split("-check-num-")[1],e=a(f).closest(".tagsdiv"),h=e.find(".the-tags"),b=mla_single_edit_vars.comma,d=h.val().split(b),g=[];delete d[c];a.each(d,function(j,k){k=a.trim(k);if(k){g.push(k)}});h.val(this.clean(g.join(b)));this.quickClicks(e);return false},quickClicks:function(d){var g=a(".the-tags",d),e=a(".tagchecklist",d),f=a(d).attr("id"),b,c;if(!g.length){return}c=g.prop("disabled");b=g.val().split(mla_single_edit_vars.comma);e.empty();a.each(b,function(i,k){var j,h;k=a.trim(k);if(!k){return}j=a("<span />").text(k);if(!c){h=a('<a id="'+f+"-check-num-"+i+'" class="ntdelbutton">X</a>');h.click(function(){tagBox.parseTags(this)});j.prepend("&nbsp;").prepend(h)}e.append(j)})},flushTags:function(g,c,h){c=c||false;var d=a(".the-tags",g),j=a("input.newtag",g),b=mla_single_edit_vars.comma,e,i;i=c?a(c).text():j.val();tagsval=d.val();e=tagsval?tagsval+b+i:i;e=this.clean(e);e=array_unique_noempty(e.split(b)).join(b);d.val(e);this.quickClicks(g);if(!c){j.val("")}if("undefined"==typeof(h)){j.focus()}return false},get:function(c){var b=c.substr(c.indexOf("-")+1);a.post(ajaxurl,{action:"get-tagcloud",tax:b},function(e,d){if(0==e||"success"!=d){e=wpAjax.broken}e=a('<p id="tagcloud-'+b+'" class="the-tagcloud">'+e+"</p>");a("a",e).click(function(){tagBox.flushTags(a(this).closest(".inside").children(".tagsdiv"),this);return false});a("#"+c).after(e)})},init:function(){var b=this,c=a("div.ajaxtag");a(".tagsdiv").each(function(){tagBox.quickClicks(this)});a("input.tagadd",c).click(function(){b.flushTags(a(this).closest(".tagsdiv"))});a("div.taghint",c).click(function(){a(this).css("visibility","hidden").parent().siblings(".newtag").focus()});a("input.newtag",c).blur(function(){if(this.value==""){a(this).parent().siblings(".taghint").css("visibility","")}}).focus(function(){a(this).parent().siblings(".taghint").css("visibility","hidden")}).keyup(function(d){if(13==d.which){tagBox.flushTags(a(this).closest(".tagsdiv"));return false}}).keypress(function(d){if(13==d.which){d.preventDefault();return false}}).each(function(){var d=a(this).closest("div.tagsdiv").attr("id");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+d,{delay:500,minchars:2,multiple:true,multipleSep:mla_single_edit_vars.comma+" "})});a("#post").submit(function(){a("div.tagsdiv").each(function(){tagBox.flushTags(this,false,1)})});a("a.tagcloud-link").click(function(){tagBox.get(a(this).attr("id"));a(this).unbind().click(function(){a(this).siblings(".the-tagcloud").toggle();return false});return false})}}})(jQuery);jQuery(document).ready(function(a){a("#side-info-column").children("div.postbox").each(function(){if(this.id.indexOf("tagsdiv-")===0){tagBox.init();return false}});a(".categorydiv").each(function(){var g=a(this).attr("id"),c=false,f,h,e,b,d;e=g.split("-");e.shift();b=e.join("-");d=b+"_tab";a("a","#"+b+"-tabs").click(function(){var i=a(this).attr("href");a(this).parent().addClass("tabs").siblings("li").removeClass("tabs");a("#"+b+"-tabs").siblings(".tabs-panel").hide();a(i).show();if("#"+b+"-all"==i){deleteUserSetting(d)}else{setUserSetting(d,"pop")}return false});if(getUserSetting(d)){a('a[href="#'+b+'-pop"]',"#"+b+"-tabs").click()}a("#new"+b).one("focus",function(){a(this).val("").removeClass("form-input-tip")});a("#"+b+"-add-submit").click(function(){a("#new"+b).focus()});f=function(){if(c){return}c=true;var i=jQuery(this),k=i.is(":checked"),j=i.val().toString();a("#in-"+b+"-"+j+", #in-"+b+"-category-"+j).prop("checked",k);c=false};catAddBefore=function(i){if(!a("#new"+b).val()){return false}i.data+="&"+a(":checked","#"+b+"checklist").serialize();a("#"+b+"-add-submit").prop("disabled",true);return i};h=function(l,k){var j,i=a("#new"+b+"_parent");a("#"+b+"-add-submit").prop("disabled",false);if("undefined"!=k.parsed.responses[0]&&(j=k.parsed.responses[0].supplemental.newcat_parent)){i.before(j);i.remove()}};a("#"+b+"checklist").wpList({alt:"",response:b+"-ajax-response",addBefore:catAddBefore,addAfter:h});a("#"+b+"-add-toggle").click(function(){a("#"+b+"-adder").toggleClass("mla-hidden-children");a('a[href="#'+b+'-all"]',"#"+b+"-tabs").click();a("#new"+b).focus();return false});a("#"+b+"checklist li.popular-category :checkbox, #"+b+"checklist-pop :checkbox").live("click",function(){var i=a(this),k=i.is(":checked"),j=i.val();if(j&&i.parents("#taxonomy-"+b).length){a("#in-"+b+"-"+j+", #in-popular-"+b+"-"+j).prop("checked",k)}})})});
languages/en_US.pot CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Media Library Assistant\n"
4
- "POT-Creation-Date: 2014-02-10 11:10-0800\n"
5
- "PO-Revision-Date: 2014-02-10 11:10-0800\n"
6
  "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
7
  "Language-Team: David Lingren <david@fairtradejudaica.org>\n"
8
  "Language: en_US\n"
@@ -80,7 +80,7 @@ msgid "ERROR: _evaluate_template_node unknown type \"%1$s\"."
80
  msgstr ""
81
 
82
  #. translators: 1: template excerpt
83
- #: includes/class-mla-data.php:1036
84
  #, php-format
85
  msgctxt "error_log"
86
  msgid ""
@@ -89,593 +89,667 @@ msgid ""
89
  msgstr ""
90
 
91
  #. translators: 1: function name 2: non-array value
92
- #: includes/class-mla-data.php:1228 includes/class-mla-main.php:1207
93
  #: includes/class-mla-mime-types.php:483
94
  #: includes/class-mla-mime-types.php:1218
95
- #: includes/class-mla-mime-types.php:2334 includes/class-mla-settings.php:1156
96
- #: includes/class-mla-settings.php:1603
97
  #, php-format
98
  msgctxt "error_log"
99
  msgid "ERROR: %1$s non-array \"%2$s\""
100
  msgstr ""
101
 
102
  #. translators: 1: query filter details
103
- #: includes/class-mla-data.php:1598
104
  #, php-format
105
  msgid "_execute_list_table_query $wp_filter = \"%1$s\"."
106
  msgstr ""
107
 
108
  #. translators: 1: query filter details
109
- #: includes/class-mla-data.php:1601
110
  #, php-format
111
  msgctxt "error_log"
112
  msgid "DEBUG: _execute_list_table_query $wp_filter = \"%1$s\"."
113
  msgstr ""
114
 
115
  #. translators: 1: query details
116
- #: includes/class-mla-data.php:1612
117
  #, php-format
118
  msgid "_execute_list_table_query WP_Query = \"%1$s\"."
119
  msgstr ""
120
 
 
 
 
 
 
 
121
  #. translators: 1: query details
122
- #: includes/class-mla-data.php:1615
123
  #, php-format
124
  msgctxt "error_log"
125
  msgid "DEBUG: _execute_list_table_query WP_Query = \"%1$s\"."
126
  msgstr ""
127
 
128
- #. translators: 1: numeric search box details
129
- #: includes/class-mla-data.php:1683
130
  #, php-format
131
- msgid "mla_query_posts_search_filter is_numeric, = \"%1$s\"."
 
132
  msgstr ""
133
 
134
- #. translators: 1: numeric search box details
135
- #: includes/class-mla-data.php:1686
 
 
 
 
 
 
136
  #, php-format
137
  msgctxt "error_log"
138
- msgid "DEBUG: mla_query_posts_search_filter is_numeric, = \"%1$s\"."
139
  msgstr ""
140
 
141
  #. translators: 1: search box details
142
- #: includes/class-mla-data.php:1754 includes/class-mla-data.php:2652
143
  #, php-format
144
- msgid "mla_query_posts_search_filter not numeric, = \"%1$s\"."
145
  msgstr ""
146
 
147
  #. translators: 1: search box details
148
- #: includes/class-mla-data.php:1757
149
  #, php-format
150
  msgctxt "error_log"
151
- msgid "DEBUG: mla_query_posts_search_filter not numeric, = \"%1$s\"."
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  msgstr ""
153
 
154
  #. translators: 1: post ID
155
- #: includes/class-mla-data.php:1930
156
  #, php-format
157
  msgctxt "error_log"
158
  msgid "ERROR: mla_get_attachment_by_id(%1$d) not found."
159
  msgstr ""
160
 
161
  #. translators: 1: post ID 2: post_type
162
- #: includes/class-mla-data.php:1936
163
  #, php-format
164
  msgctxt "error_log"
165
  msgid "ERROR: mla_get_attachment_by_id(%1$d) wrong post_type \"%2$s\"."
166
  msgstr ""
167
 
168
- #: includes/class-mla-data.php:2460 includes/class-mla-list-table.php:673
169
  msgid "NO REFERENCE TESTS"
170
  msgstr ""
171
 
172
- #: includes/class-mla-data.php:2466 includes/class-mla-options.php:2210
173
- #: includes/class-mla-options.php:2211
174
  msgid "ORPHAN"
175
  msgstr ""
176
 
177
- #: includes/class-mla-data.php:2470
178
- msgid "BAD PARENT"
179
  msgstr ""
180
 
181
- #: includes/class-mla-data.php:2475
182
  msgid "UNATTACHED"
183
  msgstr ""
184
 
185
- #: includes/class-mla-data.php:2477
186
  msgid "INVALID PARENT"
187
  msgstr ""
188
 
189
  #. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
190
- #: includes/class-mla-data.php:2651
191
  #, php-format
192
  msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
193
  msgstr ""
194
 
195
  #. translators: 1: index
196
- #: includes/class-mla-data.php:2898
197
  #, php-format
198
  msgctxt "error_log"
199
  msgid "ERROR: _build_pdf_indirect_objects bad value at $index = \"%1$d\"."
200
  msgstr ""
201
 
202
  #. translators: 1: source offset 2: nest level
203
- #: includes/class-mla-data.php:3223
204
  #, php-format
205
  msgctxt "error_log"
206
  msgid "ERROR: _parse_pdf_dictionary offset = %1$d, nest = %2$d."
207
  msgstr ""
208
 
209
  #. translators: 1: dictionary excerpt
210
- #: includes/class-mla-data.php:3225
211
  #, php-format
212
  msgctxt "error_log"
213
  msgid "ERROR: _parse_pdf_dictionary no end delimiter dump = %1$s."
214
  msgstr ""
215
 
216
  #. translators: 1: entry name 2: value excerpt
217
- #: includes/class-mla-data.php:3271
218
  #, php-format
219
  msgctxt "error_log"
220
  msgid "ERROR: _parse_pdf_dictionary bad value [ %1$s ] dump = %2$s"
221
  msgstr ""
222
 
223
- #: includes/class-mla-data.php:3385
224
  msgctxt "error_log"
225
  msgid "ERROR: _parse_xmp_metadata xml_parse_into_struct failed."
226
  msgstr ""
227
 
228
- #: includes/class-mla-data.php:3388
229
  msgctxt "error_log"
230
  msgid "ERROR: _parse_xmp_metadata set option failed."
231
  msgstr ""
232
 
233
  #. translators: 1: path and file
234
- #: includes/class-mla-data.php:3745
235
  #, php-format
236
  msgctxt "error_log"
237
  msgid "ERROR: File \"%1$s\", startxref not found."
238
  msgstr ""
239
 
240
  #. translators: 1: meta_key
241
- #: includes/class-mla-data.php:4595
242
  #, php-format
243
  msgid "Deleting meta:%1$s"
244
  msgstr ""
245
 
246
  #. translators: 1: meta_key
247
- #: includes/class-mla-data.php:4598
248
  #, php-format
249
  msgid "ERROR: meta:%1$s not found"
250
  msgstr ""
251
 
252
  #. translators: 1: meta_key 2: meta_value
253
- #: includes/class-mla-data.php:4607
254
  #, php-format
255
  msgid "Adding meta:%1$s = %2$s"
256
  msgstr ""
257
 
258
  #. translators: 1: meta_key
259
- #: includes/class-mla-data.php:4611
260
  #, php-format
261
  msgid "ERROR: Adding meta:%1$s; not found"
262
  msgstr ""
263
 
264
  #. translators: 1: meta_key
265
- #: includes/class-mla-data.php:4618
266
  #, php-format
267
  msgid "Deleting Null meta:%1$s"
268
  msgstr ""
269
 
270
  #. translators: 1: element name 2: old_value 3: new_value
271
- #: includes/class-mla-data.php:4628 includes/class-mla-data.php:4779
272
- #: includes/class-mla-data.php:4840 includes/class-mla-data.php:4866
273
- #: includes/class-mla-data.php:4891 includes/class-mla-data.php:4904
274
- #: includes/class-mla-data.php:4913 includes/class-mla-data.php:4924
275
- #: includes/class-mla-data.php:4935 includes/class-mla-data.php:4948
 
276
  #: includes/class-mla-mime-types.php:1052
277
- #: includes/class-mla-mime-types.php:2098
278
  #, php-format
279
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
280
  msgstr ""
281
 
282
  #. translators: 1: meta_key
283
- #: includes/class-mla-data.php:4633
284
  #, php-format
285
  msgid "ERROR: Changing meta:%1$s; not found"
286
  msgstr ""
287
 
288
  #. translators: 1: meta_key
289
- #: includes/class-mla-data.php:4693
290
  #, php-format
291
  msgid "Deleting %1$s"
292
  msgstr ""
293
 
294
  #. translators: 1: meta_key 2: new_value
295
- #: includes/class-mla-data.php:4704
296
  #, php-format
297
  msgid "Adding %1$s = [%2$s]"
298
  msgstr ""
299
 
300
  #. translators: 1: meta_key 2: meta_value
301
- #: includes/class-mla-data.php:4710
302
  #, php-format
303
  msgid "Adding %1$s = %2$s"
304
  msgstr ""
305
 
306
  #. translators: 1: meta_key
307
- #: includes/class-mla-data.php:4734
308
  #, php-format
309
  msgid "Deleting old %1$s values"
310
  msgstr ""
311
 
312
  #. translators: 1: meta_key 2: old_value 3: new_value 4: update count
313
- #: includes/class-mla-data.php:4764
314
  #, php-format
315
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
316
  msgstr ""
317
 
318
- #: includes/class-mla-data.php:4822 includes/class-mla-main.php:1479
319
  msgid "ERROR: Could not retrieve Attachment."
320
  msgstr ""
321
 
322
- #: includes/class-mla-data.php:4840 includes/class-mla-main.php:1011
323
- #: includes/class-mla-main.php:1013 includes/class-mla-main.php:1334
324
- #: includes/class-mla-main.php:1697 includes/class-mla-media-modal.php:434
325
- #: includes/class-mla-media-modal.php:436 includes/class-mla-objects.php:269
326
- #: includes/class-mla-options.php:870
327
  msgid "Title"
328
  msgstr ""
329
 
330
  #. translators: 1: old_value
331
- #: includes/class-mla-data.php:4863
332
  #, php-format
333
  msgid "ERROR: Could not change Name/Slug \"%1$s\"; name already exists"
334
  msgstr ""
335
 
336
- #: includes/class-mla-data.php:4866 includes/class-mla-main.php:1335
337
- #: includes/class-mla-main.php:1700 includes/class-mla-options.php:877
338
  msgid "Name/Slug"
339
  msgstr ""
340
 
341
  #. translators: 1: old_value
342
- #: includes/class-mla-data.php:4883
343
  #, php-format
344
  msgid "Deleting ALT Text, was \"%1$s\""
345
  msgstr ""
346
 
347
  #. translators: 1: old_value
348
- #: includes/class-mla-data.php:4886
349
  #, php-format
350
  msgid "ERROR: Could not delete ALT Text, remains \"%1$s\""
351
  msgstr ""
352
 
353
- #: includes/class-mla-data.php:4891 includes/class-mla-list-table.php:912
354
- #: includes/class-mla-main.php:1023 includes/class-mla-main.php:1025
355
- #: includes/class-mla-main.php:1338 includes/class-mla-main.php:1703
356
- #: includes/class-mla-media-modal.php:446
357
- #: includes/class-mla-media-modal.php:448 includes/class-mla-options.php:884
358
  msgid "ALT Text"
359
  msgstr ""
360
 
361
  #. translators: 1: old_value 2: new_value
362
- #: includes/class-mla-data.php:4894
363
  #, php-format
364
  msgid "ERROR: Could not change ALT Text from \"%1$s\" to \"%2$s\""
365
  msgstr ""
366
 
367
- #: includes/class-mla-data.php:4904 includes/class-mla-main.php:1029
368
- #: includes/class-mla-main.php:1031 includes/class-mla-main.php:1336
369
- #: includes/class-mla-main.php:1706 includes/class-mla-media-modal.php:452
370
- #: includes/class-mla-media-modal.php:454 includes/class-mla-options.php:891
371
  msgid "Caption"
372
  msgstr ""
373
 
374
- #: includes/class-mla-data.php:4913 includes/class-mla-main.php:1035
375
- #: includes/class-mla-main.php:1037 includes/class-mla-main.php:1337
376
- #: includes/class-mla-main.php:1708 includes/class-mla-media-modal.php:458
377
- #: includes/class-mla-media-modal.php:460 includes/class-mla-options.php:898
378
- #: includes/class-mla-settings.php:1122 includes/class-mla-settings.php:1379
379
- #: includes/class-mla-settings.php:1478 includes/class-mla-settings.php:1842
380
  msgid "Description"
381
  msgstr ""
382
 
383
- #: includes/class-mla-data.php:4924 includes/class-mla-list-table.php:647
384
- #: includes/class-mla-list-table.php:739 includes/class-mla-options.php:3632
385
- #: includes/class-mla-options.php:3972
386
  msgid "Parent"
387
  msgstr ""
388
 
389
- #: includes/class-mla-data.php:4935 includes/class-mla-edit-media.php:256
390
- #: includes/class-mla-edit-media.php:381 includes/class-mla-main.php:1340
391
- #: includes/class-mla-main.php:1714 includes/class-mla-settings.php:1120
392
- #: includes/class-mla-settings.php:1377
393
  msgid "Menu Order"
394
  msgstr ""
395
 
396
- #: includes/class-mla-data.php:4948 includes/class-mla-list-table.php:1061
397
- #: includes/class-mla-main.php:1213 includes/class-mla-main.php:1315
398
- #: includes/class-mla-main.php:1528
399
  msgid "Author"
400
  msgstr ""
401
 
402
- #: includes/class-mla-data.php:4982
 
 
 
 
 
 
 
 
403
  msgid "Adding"
404
  msgstr ""
405
 
406
- #: includes/class-mla-data.php:4986
407
  msgid "Removing"
408
  msgstr ""
409
 
410
- #: includes/class-mla-data.php:4991
411
  msgid "Replacing"
412
  msgstr ""
413
 
414
- #: includes/class-mla-data.php:4995
415
  msgid "Ignoring"
416
  msgstr ""
417
 
418
  #. translators: 1: action_name, 2: taxonomy
419
- #: includes/class-mla-data.php:5006
420
  #, php-format
421
  msgid "%1$s \"%2$s\" terms"
422
  msgstr ""
423
 
424
  #. translators: 1: taxonomy
425
- #: includes/class-mla-data.php:5010
426
  #, php-format
427
  msgid "You cannot assign \"%1$s\" terms"
428
  msgstr ""
429
 
430
  #. translators: 1: post ID
431
- #: includes/class-mla-data.php:5022
432
  #, php-format
433
  msgid "Item %1$d, no changes detected."
434
  msgstr ""
435
 
436
  #. translators: 1: post ID
437
- #: includes/class-mla-data.php:5034
438
  #, php-format
439
  msgid "Item %1$d updated."
440
  msgstr ""
441
 
442
  #. translators: 1: post ID
443
- #: includes/class-mla-data.php:5048
444
  #, php-format
445
  msgid "ERROR: Item %1$d update failed."
446
  msgstr ""
447
 
448
- #: includes/class-mla-data.php:5071 includes/class-mla-edit-media.php:142
449
- #: includes/class-mla-main.php:298 includes/class-mla-main.php:318
450
- #: includes/class-mla-main.php:1143 includes/class-mla-settings.php:300
451
- #: includes/class-mla-settings.php:318
452
  msgctxt "tag_delimiter"
453
  msgid ","
454
  msgstr ""
455
 
456
- #: includes/class-mla-edit-media.php:160
457
  msgid "Custom field mapping updated."
458
  msgstr ""
459
 
460
- #: includes/class-mla-edit-media.php:161
461
  msgid "IPTC/EXIF mapping updated."
462
  msgstr ""
463
 
464
  #. translators: date_i18n format for last modified date and time
465
- #: includes/class-mla-edit-media.php:179
466
  msgid "M j, Y @ G:i"
467
  msgstr ""
468
 
469
- #: includes/class-mla-edit-media.php:181 includes/class-mla-main.php:1692
470
  msgid "Last modified"
471
  msgstr ""
472
 
473
- #: includes/class-mla-edit-media.php:192
474
  msgid "Map Custom Field metadata for this item"
475
  msgstr ""
476
 
477
- #: includes/class-mla-edit-media.php:192 includes/class-mla-main.php:1353
478
  msgid "Map Custom Field Metadata"
479
  msgstr ""
480
 
481
- #: includes/class-mla-edit-media.php:194
482
  msgid "Map IPTC/EXIF metadata for this item"
483
  msgstr ""
484
 
485
- #: includes/class-mla-edit-media.php:194
486
  msgid "Map IPTC/EXIF Metadata"
487
  msgstr ""
488
 
489
- #: includes/class-mla-edit-media.php:255 includes/class-mla-edit-media.php:366
490
- #: includes/class-mla-main.php:1710
491
  msgid "Parent Info"
492
  msgstr ""
493
 
494
- #: includes/class-mla-edit-media.php:260 includes/class-mla-edit-media.php:403
495
  msgid "Attachment Metadata"
496
  msgstr ""
497
 
498
- #: includes/class-mla-edit-media.php:264 includes/class-mla-edit-media.php:435
499
- #: includes/class-mla-main.php:1721 includes/class-mla-options.php:410
500
  msgid "Featured in"
501
  msgstr ""
502
 
503
- #: includes/class-mla-edit-media.php:268 includes/class-mla-edit-media.php:471
504
- #: includes/class-mla-main.php:1723 includes/class-mla-options.php:419
505
  msgid "Inserted in"
506
  msgstr ""
507
 
508
- #: includes/class-mla-edit-media.php:272 includes/class-mla-edit-media.php:503
509
- #: includes/class-mla-main.php:1725 includes/class-mla-options.php:428
510
- #: includes/class-mla-settings.php:3274
511
  msgid "Gallery in"
512
  msgstr ""
513
 
514
- #: includes/class-mla-edit-media.php:276 includes/class-mla-edit-media.php:535
515
- #: includes/class-mla-main.php:1727 includes/class-mla-options.php:437
516
- #: includes/class-mla-settings.php:3284
517
  msgid "MLA Gallery in"
518
  msgstr ""
519
 
520
  #. translators: 1: function name 2: template key
521
- #: includes/class-mla-edit-media.php:318 includes/class-mla-main.php:533
522
- #: includes/class-mla-settings.php:463
523
  #, php-format
524
  msgctxt "error_log"
525
  msgid "ERROR: %1$s discarding \"%2$s\"; no title/order"
526
  msgstr ""
527
 
528
- #: includes/class-mla-edit-media.php:365
529
  msgid "Post Parent"
530
  msgstr ""
531
 
532
- #: includes/class-mla-edit-media.php:426 includes/class-mla-edit-media.php:461
533
- #: includes/class-mla-edit-media.php:494 includes/class-mla-edit-media.php:526
534
- #: includes/class-mla-list-table.php:775 includes/class-mla-list-table.php:812
535
- #: includes/class-mla-list-table.php:847 includes/class-mla-list-table.php:881
536
- #: includes/class-mla-main.php:1541 includes/class-mla-main.php:1560
537
- #: includes/class-mla-main.php:1577 includes/class-mla-main.php:1593
538
  msgid "PARENT"
539
  msgstr ""
540
 
541
- #: includes/class-mla-edit-media.php:640
542
  msgid "Most Used"
543
  msgstr ""
544
 
545
  #. translators: %s: add new taxonomy label
546
- #: includes/class-mla-edit-media.php:663
547
  #, php-format
548
  msgid "+ %s"
549
  msgstr ""
550
 
551
- #: includes/class-mla-edit-media.php:669
552
- msgid "? Search"
553
  msgstr ""
554
 
555
  #: includes/class-mla-list-table.php:210
556
  msgid "All"
557
  msgstr ""
558
 
559
- #: includes/class-mla-list-table.php:211 includes/class-mla-settings.php:1388
560
- #: includes/class-mla-view-list-table.php:384
561
- #: includes/class-mla-view-list-table.php:400
562
  msgid "No"
563
  msgstr ""
564
 
565
- #: includes/class-mla-list-table.php:317
566
  msgctxt "list_table_column"
567
  msgid "ID/Parent"
568
  msgstr ""
569
 
570
- #: includes/class-mla-list-table.php:318
571
  msgctxt "list_table_column"
572
  msgid "Title/Name"
573
  msgstr ""
574
 
575
- #: includes/class-mla-list-table.php:319
576
  msgctxt "list_table_column"
577
  msgid "Title"
578
  msgstr ""
579
 
580
- #: includes/class-mla-list-table.php:320
581
  msgctxt "list_table_column"
582
  msgid "Name"
583
  msgstr ""
584
 
585
- #: includes/class-mla-list-table.php:321
586
  msgctxt "list_table_column"
587
  msgid "Parent ID"
588
  msgstr ""
589
 
590
- #: includes/class-mla-list-table.php:322
591
  msgctxt "list_table_column"
592
  msgid "Menu Order"
593
  msgstr ""
594
 
595
- #: includes/class-mla-list-table.php:323
596
  msgctxt "list_table_column"
597
  msgid "Featured in"
598
  msgstr ""
599
 
600
- #: includes/class-mla-list-table.php:324
601
  msgctxt "list_table_column"
602
  msgid "Inserted in"
603
  msgstr ""
604
 
605
- #: includes/class-mla-list-table.php:325
606
  msgctxt "list_table_column"
607
  msgid "Gallery in"
608
  msgstr ""
609
 
610
- #: includes/class-mla-list-table.php:326
611
  msgctxt "list_table_column"
612
  msgid "MLA Gallery in"
613
  msgstr ""
614
 
615
- #: includes/class-mla-list-table.php:327
616
  msgctxt "list_table_column"
617
  msgid "ALT Text"
618
  msgstr ""
619
 
620
- #: includes/class-mla-list-table.php:328
621
  msgctxt "list_table_column"
622
  msgid "Caption"
623
  msgstr ""
624
 
625
- #: includes/class-mla-list-table.php:329
626
- #: includes/class-mla-upload-list-table.php:189
627
- #: includes/class-mla-upload-optional-list-table.php:174
628
- #: includes/class-mla-view-list-table.php:182
629
  msgctxt "list_table_column"
630
  msgid "Description"
631
  msgstr ""
632
 
633
- #: includes/class-mla-list-table.php:330
634
- #: includes/class-mla-upload-list-table.php:181
635
- #: includes/class-mla-upload-optional-list-table.php:171
636
  msgctxt "list_table_column"
637
  msgid "MIME Type"
638
  msgstr ""
639
 
640
- #: includes/class-mla-list-table.php:331
641
  msgctxt "list_table_column"
642
  msgid "File URL"
643
  msgstr ""
644
 
645
- #: includes/class-mla-list-table.php:332
646
  msgctxt "list_table_column"
647
  msgid "Base File"
648
  msgstr ""
649
 
650
- #: includes/class-mla-list-table.php:333
651
  msgctxt "list_table_column"
652
  msgid "Date"
653
  msgstr ""
654
 
655
- #: includes/class-mla-list-table.php:334
656
  msgctxt "list_table_column"
657
  msgid "Last Modified"
658
  msgstr ""
659
 
660
- #: includes/class-mla-list-table.php:335
661
  msgctxt "list_table_column"
662
  msgid "Author"
663
  msgstr ""
664
 
665
- #: includes/class-mla-list-table.php:336
666
  msgctxt "list_table_column"
667
  msgid "Attached to"
668
  msgstr ""
669
 
670
- #: includes/class-mla-list-table.php:421 includes/class-mla-list-table.php:970
671
- #: includes/class-mla-options.php:528 includes/class-mla-options.php:628
672
- #: includes/class-mla-options.php:652 includes/class-mla-options.php:666
673
- #: includes/class-mla-settings.php:1926
674
  msgid "None"
675
  msgstr ""
676
 
677
  #: includes/class-mla-list-table.php:427 includes/class-mla-list-table.php:455
678
- #: includes/class-mla-list-table.php:908 includes/class-mla-list-table.php:952
679
  msgid "Filter by"
680
  msgstr ""
681
 
@@ -685,173 +759,173 @@ msgstr ""
685
 
686
  #. translators: 1: column_name 2: column_values
687
  #: includes/class-mla-list-table.php:472
688
- #: includes/class-mla-upload-list-table.php:251
689
- #: includes/class-mla-upload-optional-list-table.php:232
690
- #: includes/class-mla-view-list-table.php:240
691
  #, php-format
692
  msgid "column_default: %1$s, %2$s"
693
  msgstr ""
694
 
695
- #: includes/class-mla-list-table.php:513 includes/class-mla-list-table.php:549
696
- #: includes/class-mla-list-table.php:551 includes/class-mla-list-table.php:780
697
- #: includes/class-mla-list-table.php:817 includes/class-mla-list-table.php:852
698
- #: includes/class-mla-list-table.php:886
699
- #: includes/class-mla-list-table.php:1084
700
- #: includes/class-mla-list-table.php:1489
701
- #: includes/class-mla-upload-list-table.php:318
702
- #: includes/class-mla-upload-list-table.php:618
703
- #: includes/class-mla-view-list-table.php:307
704
- #: includes/class-mla-view-list-table.php:520
705
  msgid "Edit"
706
  msgstr ""
707
 
708
- #: includes/class-mla-list-table.php:543
709
  msgid "Restore this item from the Trash"
710
  msgstr ""
711
 
712
- #: includes/class-mla-list-table.php:543
713
- #: includes/class-mla-list-table.php:1486
714
  msgid "Restore"
715
  msgstr ""
716
 
717
- #: includes/class-mla-list-table.php:549 includes/class-mla-list-table.php:551
718
- #: includes/class-mla-upload-list-table.php:318
719
- #: includes/class-mla-view-list-table.php:307
720
  msgid "Edit this item"
721
  msgstr ""
722
 
723
- #: includes/class-mla-list-table.php:553
724
- #: includes/class-mla-upload-list-table.php:320
725
- #: includes/class-mla-view-list-table.php:309
726
  msgid "Edit this item inline"
727
  msgstr ""
728
 
729
- #: includes/class-mla-list-table.php:553 includes/class-mla-main.php:1333
730
- #: includes/class-mla-options.php:2748 includes/class-mla-options.php:3020
731
- #: includes/class-mla-upload-list-table.php:320
732
- #: includes/class-mla-view-list-table.php:309
733
  msgid "Quick Edit"
734
  msgstr ""
735
 
736
- #: includes/class-mla-list-table.php:559
737
  msgid "Move this item to the Trash"
738
  msgstr ""
739
 
740
- #: includes/class-mla-list-table.php:559
741
- #: includes/class-mla-list-table.php:1492
742
  msgid "Move to Trash"
743
  msgstr ""
744
 
745
- #: includes/class-mla-list-table.php:564
746
- #: includes/class-mla-upload-list-table.php:324
747
- #: includes/class-mla-view-list-table.php:315
748
  msgid "Delete this item Permanently"
749
  msgstr ""
750
 
751
- #: includes/class-mla-list-table.php:564
752
- #: includes/class-mla-list-table.php:1487
753
- #: includes/class-mla-list-table.php:1494
754
- #: includes/class-mla-upload-list-table.php:324
755
- #: includes/class-mla-view-list-table.php:315
756
- #: includes/class-mla-view-list-table.php:521
757
  msgid "Delete Permanently"
758
  msgstr ""
759
 
760
- #: includes/class-mla-list-table.php:568
761
  msgid "View"
762
  msgstr ""
763
 
764
- #: includes/class-mla-list-table.php:641 includes/class-mla-main.php:317
765
  msgid "(no title)"
766
  msgstr ""
767
 
768
- #: includes/class-mla-list-table.php:644 includes/class-mla-list-table.php:736
769
  msgid "Filter by Parent ID"
770
  msgstr ""
771
 
772
- #: includes/class-mla-list-table.php:733
773
  msgid "(no title: bad ID)"
774
  msgstr ""
775
 
776
- #: includes/class-mla-list-table.php:768 includes/class-mla-list-table.php:802
777
- #: includes/class-mla-list-table.php:840 includes/class-mla-list-table.php:874
778
- #: includes/class-mla-main.php:1549 includes/class-mla-main.php:1569
779
- #: includes/class-mla-main.php:1585 includes/class-mla-main.php:1601
780
- #: includes/class-mla-options.php:414 includes/class-mla-options.php:423
781
- #: includes/class-mla-options.php:432 includes/class-mla-options.php:441
782
  msgid "Disabled"
783
  msgstr ""
784
 
785
- #: includes/class-mla-list-table.php:955 includes/class-mla-settings.php:1471
786
- #: includes/class-mla-settings.php:1836
787
  msgid "MIME Type"
788
  msgstr ""
789
 
790
- #: includes/class-mla-list-table.php:995
791
- #: includes/class-mla-list-table.php:1027
792
  msgid "Unpublished"
793
  msgstr ""
794
 
795
  #. translators: 1: upload/last modified date and time
796
- #: includes/class-mla-list-table.php:1003
797
- #: includes/class-mla-list-table.php:1034
798
  #, php-format
799
  msgid "%1$s from now"
800
  msgstr ""
801
 
802
  #. translators: 1: upload/last modified date and time
803
- #: includes/class-mla-list-table.php:1006
804
- #: includes/class-mla-list-table.php:1036
805
  #, php-format
806
  msgid "%1$s ago"
807
  msgstr ""
808
 
809
  #. translators: format for upload/last modified date
810
- #: includes/class-mla-list-table.php:1010
811
- #: includes/class-mla-list-table.php:1039
812
- #: includes/class-mla-list-table.php:1098
813
  msgid "Y/m/d"
814
  msgstr ""
815
 
816
- #: includes/class-mla-list-table.php:1058
817
  msgid "Filter by Author ID"
818
  msgstr ""
819
 
820
- #: includes/class-mla-list-table.php:1089 includes/class-mla-options.php:987
821
  msgctxt "post_mime_types_singular"
822
  msgid "Unattached"
823
  msgstr ""
824
 
825
- #: includes/class-mla-list-table.php:1343
826
  msgctxt "uploaded files"
827
  msgid "All"
828
  msgid_plural "All"
829
  msgstr[0] ""
830
  msgstr[1] ""
831
 
832
- #: includes/class-mla-list-table.php:1521
833
  msgid "Filter"
834
  msgstr ""
835
 
836
- #: includes/class-mla-list-table.php:1527
837
  msgid "Clear Filter-by"
838
  msgstr ""
839
 
840
- #: includes/class-mla-list-table.php:1531
841
  msgid "Empty Trash"
842
  msgstr ""
843
 
844
- #: includes/class-mla-main.php:315 includes/class-mla-settings.php:297
845
- #: includes/class-mla-settings.php:315
846
  msgid "Error while saving the changes."
847
  msgstr ""
848
 
849
- #: includes/class-mla-main.php:316 includes/class-mla-settings.php:298
850
- #: includes/class-mla-settings.php:316
851
  msgid "Remove From Bulk Edit"
852
  msgstr ""
853
 
854
- #: includes/class-mla-main.php:416
855
  #, php-format
856
  msgid "Item permanently deleted."
857
  msgid_plural "%d items permanently deleted."
@@ -859,45 +933,45 @@ msgstr[0] ""
859
  msgstr[1] ""
860
 
861
  #. translators: 1: post ID
862
- #: includes/class-mla-main.php:421 includes/class-mla-main.php:1809
863
  #, php-format
864
  msgid "Item %1$d moved to Trash."
865
  msgstr ""
866
 
867
- #: includes/class-mla-main.php:440
868
  msgid "Entries per page"
869
  msgstr ""
870
 
871
- #: includes/class-mla-main.php:721
872
  msgid "You do not have permission to manage attachments."
873
  msgstr ""
874
 
875
  #. translators: 1: bulk_action, e.g., delete, edit, restore, trash
876
- #: includes/class-mla-main.php:815 includes/class-mla-settings.php:1234
877
- #: includes/class-mla-settings.php:1701
878
  #, php-format
879
  msgid "Unknown bulk action %1$s"
880
  msgstr ""
881
 
882
  #. translators: 1: action name, e.g., edit
883
- #: includes/class-mla-main.php:834 includes/class-mla-settings.php:1244
884
- #: includes/class-mla-settings.php:1712
885
  #, php-format
886
  msgid "Bulk Action %1$s - no items selected."
887
  msgstr ""
888
 
889
- #: includes/class-mla-main.php:860 includes/class-mla-main.php:921
890
- #: includes/class-mla-main.php:946 includes/class-mla-settings.php:541
891
- #: includes/class-mla-settings.php:581 includes/class-mla-settings.php:1188
892
- #: includes/class-mla-settings.php:1265 includes/class-mla-settings.php:1654
893
- #: includes/class-mla-settings.php:1733 includes/class-mla-settings.php:2274
894
- #: includes/class-mla-settings.php:2397 includes/class-mla-settings.php:2531
895
- #: includes/class-mla-shortcodes.php:1295
896
- #: includes/class-mla-shortcodes.php:1368
897
  msgid "ERROR:"
898
  msgstr ""
899
 
900
- #: includes/class-mla-main.php:868
901
  #, php-format
902
  msgctxt "deleted items"
903
  msgid "%s item deleted."
@@ -905,220 +979,268 @@ msgid_plural "%s items deleted."
905
  msgstr[0] ""
906
  msgstr[1] ""
907
 
908
- #: includes/class-mla-main.php:870
909
  msgid "No items deleted."
910
  msgstr ""
911
 
912
- #: includes/class-mla-main.php:885
913
  msgid "Edit single item"
914
  msgstr ""
915
 
916
  #. translators: 1: post ID
917
- #: includes/class-mla-main.php:898
918
  #, php-format
919
  msgid "Item %1$d cancelled."
920
  msgstr ""
921
 
922
  #. translators: 1: bulk_action, e.g., single_item_delete, single_item_edit
923
- #: includes/class-mla-main.php:912 includes/class-mla-settings.php:1281
924
- #: includes/class-mla-settings.php:1751
925
  #, php-format
926
  msgid "Unknown mla_admin_action - \"%1$s\""
927
  msgstr ""
928
 
929
- #: includes/class-mla-main.php:999 includes/class-mla-media-modal.php:422
930
- #: includes/class-mla-media-modal.php:424
 
 
 
 
 
 
 
 
931
  msgid "Search Media"
932
  msgstr ""
933
 
934
- #: includes/class-mla-main.php:1003 includes/class-mla-main.php:1006
935
- #: includes/class-mla-media-modal.php:426
936
- #: includes/class-mla-media-modal.php:429
937
  msgid "and"
938
  msgstr ""
939
 
940
- #: includes/class-mla-main.php:1004 includes/class-mla-main.php:1007
941
- #: includes/class-mla-media-modal.php:427
942
- #: includes/class-mla-media-modal.php:430
943
  msgid "or"
944
  msgstr ""
945
 
946
- #: includes/class-mla-main.php:1017 includes/class-mla-main.php:1019
947
- #: includes/class-mla-media-modal.php:440
948
- #: includes/class-mla-media-modal.php:442 includes/class-mla-settings.php:1971
949
- #: includes/class-mla-settings.php:2004 includes/class-mla-settings.php:2030
950
- #: includes/class-mla-settings.php:2065 includes/class-mla-settings.php:2122
951
- #: includes/class-mla-settings.php:2172
952
  msgid "Name"
953
  msgstr ""
954
 
955
- #: includes/class-mla-main.php:1098
956
  msgid "ERROR: No post ID found"
957
  msgstr ""
958
 
959
- #: includes/class-mla-main.php:1105 includes/class-mla-main.php:1486
960
  msgid "You are not allowed to edit this Attachment."
961
  msgstr ""
962
 
963
- #: includes/class-mla-main.php:1248
964
  msgid "more"
965
  msgstr ""
966
 
967
- #: includes/class-mla-main.php:1249
968
  msgid "less"
969
  msgstr ""
970
 
971
- #: includes/class-mla-main.php:1252 includes/class-mla-main.php:1290
972
  msgid "Add"
973
  msgstr ""
974
 
975
- #: includes/class-mla-main.php:1253 includes/class-mla-main.php:1291
976
  msgid "Remove"
977
  msgstr ""
978
 
979
- #: includes/class-mla-main.php:1254 includes/class-mla-main.php:1292
980
- #: includes/class-mla-options.php:2846 includes/class-mla-options.php:2943
981
- #: includes/class-mla-options.php:2985 includes/class-mla-options.php:3861
982
- #: includes/class-mla-options.php:3911 includes/class-mla-options.php:4008
983
- #: includes/class-mla-options.php:4052 includes/class-mla-options.php:4077
984
  msgid "Replace"
985
  msgstr ""
986
 
987
- #: includes/class-mla-main.php:1339
988
  msgid "Parent ID"
989
  msgstr ""
990
 
991
- #: includes/class-mla-main.php:1345 includes/class-mla-main.php:1683
992
- #: includes/class-mla-settings.php:1125 includes/class-mla-settings.php:1384
993
- #: includes/class-mla-settings.php:1481 includes/class-mla-settings.php:1553
994
- #: includes/class-mla-settings.php:1849
995
  msgid "Cancel"
996
  msgstr ""
997
 
998
- #: includes/class-mla-main.php:1346 includes/class-mla-main.php:1684
999
- #: includes/class-mla-settings.php:1124 includes/class-mla-settings.php:1385
1000
- #: includes/class-mla-settings.php:1480 includes/class-mla-settings.php:1850
1001
  msgid "Update"
1002
  msgstr ""
1003
 
1004
- #: includes/class-mla-main.php:1347 includes/class-mla-options.php:2762
1005
- #: includes/class-mla-options.php:3021 includes/class-mla-settings.php:1386
1006
- #: includes/class-mla-settings.php:1851
1007
  msgid "Bulk Edit"
1008
  msgstr ""
1009
 
1010
- #: includes/class-mla-main.php:1352 includes/class-mla-main.php:1685
1011
- msgid "Map IPTC/EXIF metadata"
 
 
1012
  msgstr ""
1013
 
1014
- #: includes/class-mla-main.php:1386 includes/class-mla-settings.php:1387
1015
- #: includes/class-mla-settings.php:1425 includes/class-mla-settings.php:1853
1016
- msgid "No Change"
 
 
 
1017
  msgstr ""
1018
 
1019
- #: includes/class-mla-main.php:1438
 
 
 
 
1020
  msgid "ERROR: You are not allowed to delete this item."
1021
  msgstr ""
1022
 
1023
  #. translators: 1: post ID
1024
- #: includes/class-mla-main.php:1446
1025
  #, php-format
1026
  msgid "ERROR: Item %1$d could NOT be deleted."
1027
  msgstr ""
1028
 
1029
  #. translators: 1: post ID
1030
- #: includes/class-mla-main.php:1453
1031
  #, php-format
1032
  msgid "Item %1$d permanently deleted."
1033
  msgstr ""
1034
 
1035
  #. translators: 1: page_template_array
1036
- #: includes/class-mla-main.php:1513
1037
  #, php-format
1038
  msgctxt "error_log"
1039
  msgid "ERROR: MLA::_display_single_item \\$page_template_array = \"%1$s\""
1040
  msgstr ""
1041
 
1042
- #: includes/class-mla-main.php:1687
1043
  msgid "File name"
1044
  msgstr ""
1045
 
1046
- #: includes/class-mla-main.php:1689
1047
  msgid "File type"
1048
  msgstr ""
1049
 
1050
- #: includes/class-mla-main.php:1690
1051
  msgid "Upload date"
1052
  msgstr ""
1053
 
1054
- #: includes/class-mla-main.php:1694
1055
  msgid "Dimensions"
1056
  msgstr ""
1057
 
1058
- #: includes/class-mla-main.php:1698
1059
  msgid "required"
1060
  msgstr ""
1061
 
1062
- #: includes/class-mla-main.php:1702
1063
  msgid "Must be unique; will be validated."
1064
  msgstr ""
1065
 
1066
- #: includes/class-mla-main.php:1705
1067
  msgid "Alternate text for the image, e.g. &#8220;The Mona Lisa&#8221;"
1068
  msgstr ""
1069
 
1070
- #: includes/class-mla-main.php:1713
1071
  msgid "ID, type and title of parent, if any."
1072
  msgstr ""
1073
 
1074
- #: includes/class-mla-main.php:1716
1075
  msgid "File URL"
1076
  msgstr ""
1077
 
1078
- #: includes/class-mla-main.php:1718
1079
  msgid "Location of the uploaded file."
1080
  msgstr ""
1081
 
1082
- #: includes/class-mla-main.php:1719
1083
  msgid "Image Metadata"
1084
  msgstr ""
1085
 
1086
- #: includes/class-mla-main.php:1754
1087
  msgid "ERROR: You are not allowed to move this item out of the Trash."
1088
  msgstr ""
1089
 
1090
  #. translators: 1: post ID
1091
- #: includes/class-mla-main.php:1762
1092
  #, php-format
1093
  msgid "ERROR: Item %1$d could NOT be restored from Trash."
1094
  msgstr ""
1095
 
1096
  #. translators: 1: post ID
1097
- #: includes/class-mla-main.php:1777
1098
  #, php-format
1099
  msgid "Item %1$d restored from Trash."
1100
  msgstr ""
1101
 
1102
- #: includes/class-mla-main.php:1794
1103
  msgid "ERROR: You are not allowed to move this item to the Trash."
1104
  msgstr ""
1105
 
1106
  #. translators: 1: post ID
1107
- #: includes/class-mla-main.php:1802
1108
  #, php-format
1109
  msgid "ERROR: Item %1$d could NOT be moved to Trash."
1110
  msgstr ""
1111
 
1112
- #: includes/class-mla-media-modal.php:192
 
 
 
 
 
 
 
 
1113
  msgid "Show all dates"
1114
  msgstr ""
1115
 
1116
  #. translators: 1: month name, 2: 4-digit year
1117
- #: includes/class-mla-media-modal.php:207
1118
  #, php-format
1119
  msgid "%1$s %2$d"
1120
  msgstr ""
1121
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1122
  #: includes/class-mla-mime-types.php:364
1123
  msgctxt "post_mime_types"
1124
  msgid "Manage"
@@ -1154,15 +1276,15 @@ msgstr ""
1154
 
1155
  #. translators: 1: element name 2: bad_value 3: good_value
1156
  #: includes/class-mla-mime-types.php:953
1157
- #: includes/class-mla-mime-types.php:1969
1158
  #, php-format
1159
  msgid "<br>Changing %1$s \"%2$s\" to valid value \"%3$s\""
1160
  msgstr ""
1161
 
1162
  #: includes/class-mla-mime-types.php:953
1163
  #: includes/class-mla-mime-types.php:1041
1164
- #: includes/class-mla-mime-types.php:1052 includes/class-mla-settings.php:1109
1165
- #: includes/class-mla-settings.php:1366
1166
  msgid "Slug"
1167
  msgstr ""
1168
 
@@ -1180,7 +1302,7 @@ msgstr ""
1180
 
1181
  #. translators: 1: element name 2: bad_value 3: good_value
1182
  #: includes/class-mla-mime-types.php:1041
1183
- #: includes/class-mla-mime-types.php:2087
1184
  #, php-format
1185
  msgid "<br>Changing new %1$s \"%2$s\" to valid value \"%3$s\""
1186
  msgstr ""
@@ -1281,86 +1403,86 @@ msgctxt "upload_list_table_view_plural"
1281
  msgid "Custom"
1282
  msgstr ""
1283
 
1284
- #: includes/class-mla-mime-types.php:1657
1285
  msgid "icon"
1286
  msgstr ""
1287
 
1288
- #: includes/class-mla-mime-types.php:1953
1289
- #: includes/class-mla-mime-types.php:2052
1290
  msgid "ERROR: Cannot load Upload MIME Types"
1291
  msgstr ""
1292
 
1293
- #: includes/class-mla-mime-types.php:1964
1294
  msgid "ERROR: Extension is required"
1295
  msgstr ""
1296
 
1297
- #: includes/class-mla-mime-types.php:1969
1298
- #: includes/class-mla-mime-types.php:2087
1299
- #: includes/class-mla-mime-types.php:2098
1300
  msgid "extension"
1301
  msgstr ""
1302
 
1303
  #. translators: 1: slug
1304
- #: includes/class-mla-mime-types.php:1977
1305
  #, php-format
1306
  msgid "ERROR: Could not add extension \"%1$s\"; value already exists"
1307
  msgstr ""
1308
 
1309
- #: includes/class-mla-mime-types.php:1985
1310
  msgid "ERROR: MIME type is required"
1311
  msgstr ""
1312
 
1313
  #. translators: 1: clean_mime_type
1314
- #: includes/class-mla-mime-types.php:1990
1315
- #: includes/class-mla-mime-types.php:2129
1316
  #, php-format
1317
  msgid "ERROR: Bad MIME type; try \"%1$s\""
1318
  msgstr ""
1319
 
1320
  #. translators: 1: slug
1321
- #: includes/class-mla-mime-types.php:2027
1322
  #, php-format
1323
  msgid "Upload MIME Type \"%1$s\"; added"
1324
  msgstr ""
1325
 
1326
- #: includes/class-mla-mime-types.php:2033
1327
- #: includes/class-mla-mime-types.php:2214
1328
- #: includes/class-mla-mime-types.php:2293
1329
  msgid "ERROR: Cannot update Upload MIME Types"
1330
  msgstr ""
1331
 
1332
  #. translators: 1: slug
1333
- #: includes/class-mla-mime-types.php:2095
1334
  #, php-format
1335
  msgid "ERROR: Could not add new extension \"%1$s\"; value already exists"
1336
  msgstr ""
1337
 
1338
  #. translators: 1: slug
1339
- #: includes/class-mla-mime-types.php:2194
1340
  #, php-format
1341
  msgid "Edit type \"%1$s\"; no changes detected"
1342
  msgstr ""
1343
 
1344
  #. translators: 1: slug
1345
- #: includes/class-mla-mime-types.php:2208
1346
  #, php-format
1347
  msgid "Edit type \"%1$s\"; updated"
1348
  msgstr ""
1349
 
1350
  #. translators: 1: slug
1351
- #: includes/class-mla-mime-types.php:2281
1352
  #, php-format
1353
  msgid "Upload MIME Type \"%1$s\"; reverted to standard"
1354
  msgstr ""
1355
 
1356
  #. translators: 1: slug
1357
- #: includes/class-mla-mime-types.php:2287
1358
  #, php-format
1359
  msgid "Upload MIME Type \"%1$s\"; deleted"
1360
  msgstr ""
1361
 
1362
  #. translators: 1: slug
1363
- #: includes/class-mla-mime-types.php:2302
1364
  #, php-format
1365
  msgid "ERROR: Did not find Upload type \"%1$s\""
1366
  msgstr ""
@@ -1449,117 +1571,113 @@ msgstr ""
1449
  msgid "Att. Tag"
1450
  msgstr ""
1451
 
1452
- #: includes/class-mla-objects.php:131
1453
  msgid "Attachments"
1454
  msgstr ""
1455
 
1456
  #. translators: 1: taxonomy 2: error message
1457
- #: includes/class-mla-objects.php:165
1458
  #, php-format
1459
  msgctxt "error_log"
1460
  msgid ""
1461
  "ERROR: mla_taxonomy_column_filter( \"%1$s\" ) - get_term failed: \"%2$s\""
1462
  msgstr ""
1463
 
1464
- #. translators: 1: taxonomy 2: error message
1465
- #: includes/class-mla-objects.php:195
1466
- #, php-format
1467
- msgctxt "error_log"
1468
- msgid ""
1469
- "ERROR: mla_taxonomy_column_filter( \"%1$s\" ) - WP_Query failed: \"%2$s\""
1470
  msgstr ""
1471
 
1472
- #: includes/class-mla-objects.php:224
1473
  msgid "Shortcode(s), HTML and/or Plain Text"
1474
  msgstr ""
1475
 
1476
- #: includes/class-mla-objects.php:232
1477
  msgid "MLA Text"
1478
  msgstr ""
1479
 
1480
- #: includes/class-mla-objects.php:274
1481
  msgid "Automatically add paragraphs"
1482
  msgstr ""
1483
 
1484
- #: includes/class-mla-options.php:323
1485
  msgid "error loading tpls/mla-option-templates.tpl"
1486
  msgstr ""
1487
 
1488
- #: includes/class-mla-options.php:326
1489
  msgid "tpls/mla-option-templates.tpl not found"
1490
  msgstr ""
1491
 
1492
- #: includes/class-mla-options.php:379 includes/class-mla-options.php:1415
1493
  msgid "Attachment Categories"
1494
  msgstr ""
1495
 
1496
- #: includes/class-mla-options.php:382
1497
  msgid "Check this option to add support for Attachment Categories."
1498
  msgstr ""
1499
 
1500
- #: includes/class-mla-options.php:386 includes/class-mla-options.php:1430
1501
  msgid "Attachment Tags"
1502
  msgstr ""
1503
 
1504
- #: includes/class-mla-options.php:389
1505
  msgid "Check this option to add support for Attachment Tags."
1506
  msgstr ""
1507
 
1508
- #: includes/class-mla-options.php:393 includes/class-mla-settings.php:950
1509
  msgid "Where-used Reporting"
1510
  msgstr ""
1511
 
1512
- #: includes/class-mla-options.php:398
1513
  msgid "Exclude Revisions"
1514
  msgstr ""
1515
 
1516
- #: includes/class-mla-options.php:401
1517
  msgid "Check this option to exclude revisions from where-used reporting."
1518
  msgstr ""
1519
 
1520
- #: includes/class-mla-options.php:405
1521
  msgid "Where-used database access tuning"
1522
  msgstr ""
1523
 
1524
- #: includes/class-mla-options.php:414 includes/class-mla-options.php:423
1525
  msgid "Enabled"
1526
  msgstr ""
1527
 
1528
- #: includes/class-mla-options.php:415
1529
  msgid "Search database posts and pages for Featured Image attachments."
1530
  msgstr ""
1531
 
1532
- #: includes/class-mla-options.php:423
1533
  msgid "Base"
1534
  msgstr ""
1535
 
1536
- #: includes/class-mla-options.php:424
1537
  msgid ""
1538
  "Search database posts and pages for attachments embedded in content."
1539
  "<br>&nbsp;&nbsp;Base = ignore intermediate size suffixes; use path, base "
1540
  "name and extension only."
1541
  msgstr ""
1542
 
1543
- #: includes/class-mla-options.php:432 includes/class-mla-options.php:441
1544
  msgid "Dynamic"
1545
  msgstr ""
1546
 
1547
- #: includes/class-mla-options.php:432 includes/class-mla-options.php:441
1548
  msgid "Refresh"
1549
  msgstr ""
1550
 
1551
- #: includes/class-mla-options.php:432 includes/class-mla-options.php:441
1552
  msgid "Cached"
1553
  msgstr ""
1554
 
1555
- #: includes/class-mla-options.php:433
1556
  msgid ""
1557
  "Search database posts and pages for [gallery] shortcode results.<br>&nbsp;"
1558
  "&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = "
1559
  "never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached."
1560
  msgstr ""
1561
 
1562
- #: includes/class-mla-options.php:442
1563
  msgid ""
1564
  "Search database posts and pages for [mla_gallery] shortcode results."
1565
  "<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, "
@@ -1567,65 +1685,69 @@ msgid ""
1567
  "Cached."
1568
  msgstr ""
1569
 
1570
- #: includes/class-mla-options.php:446 includes/class-mla-settings.php:950
1571
  msgid "Taxonomy Support"
1572
  msgstr ""
1573
 
1574
- #: includes/class-mla-options.php:451
1575
- msgid ""
1576
- "Check the \"Support\" box to add the taxonomy to the Assistant and the Edit "
1577
- "Media screen.<br>Check the \"Inline Edit\" box to display the taxonomy in "
1578
- "the Quick Edit and Bulk Edit areas.<br>Use the \"List Filter\" option to "
1579
- "select the taxonomy on which to filter the Assistant table listing."
1580
  msgstr ""
1581
 
1582
- #: includes/class-mla-options.php:471
1583
- msgid "Attachments Column"
 
 
1584
  msgstr ""
1585
 
1586
- #: includes/class-mla-options.php:474
1587
  msgid ""
1588
- "Check this option to replace the Posts column with the Attachments Column."
 
 
 
 
 
 
1589
  msgstr ""
1590
 
1591
- #: includes/class-mla-options.php:478
1592
  msgid "Media/Assistant Screen Options"
1593
  msgstr ""
1594
 
1595
- #: includes/class-mla-options.php:483
1596
  msgid "Admin Menu Options"
1597
  msgstr ""
1598
 
1599
- #: includes/class-mla-options.php:488
1600
  msgid "Page Title"
1601
  msgstr ""
1602
 
1603
- #: includes/class-mla-options.php:490 includes/class-mla-settings.php:349
1604
- #: includes/class-mla-settings.php:2512
1605
  msgid "Media Library Assistant"
1606
  msgstr ""
1607
 
1608
- #: includes/class-mla-options.php:492
1609
  msgid "Enter the title for the Media/Assistant submenu page"
1610
  msgstr ""
1611
 
1612
- #: includes/class-mla-options.php:496
1613
  msgid "Menu Title"
1614
  msgstr ""
1615
 
1616
- #: includes/class-mla-options.php:498
1617
  msgid "Assistant"
1618
  msgstr ""
1619
 
1620
- #: includes/class-mla-options.php:500
1621
  msgid "Enter the title for the Media/Assistant submenu entry"
1622
  msgstr ""
1623
 
1624
- #: includes/class-mla-options.php:504
1625
  msgid "Submenu Order"
1626
  msgstr ""
1627
 
1628
- #: includes/class-mla-options.php:508
1629
  msgid ""
1630
  "Enter the position of the Media/Assistant submenu entry.<br>&nbsp;&nbsp;0 = "
1631
  "natural order (at bottom),&nbsp;&nbsp;&nbsp;&nbsp;1 - 4 = at top<br>&nbsp;"
@@ -1633,288 +1755,318 @@ msgid ""
1633
  "\""
1634
  msgstr ""
1635
 
1636
- #: includes/class-mla-options.php:512
1637
  msgid "Display Media/Library"
1638
  msgstr ""
1639
 
1640
- #: includes/class-mla-options.php:515
1641
  msgid ""
1642
  "Check/uncheck this option to display/remove the WordPress Media/Library "
1643
  "submenu entry."
1644
  msgstr ""
1645
 
1646
- #: includes/class-mla-options.php:519
1647
  msgid "Table Defaults"
1648
  msgstr ""
1649
 
1650
- #: includes/class-mla-options.php:524
1651
  msgid "Order By"
1652
  msgstr ""
1653
 
1654
- #: includes/class-mla-options.php:528 includes/class-mla-options.php:628
1655
  msgid "Title/Name"
1656
  msgstr ""
1657
 
1658
- #: includes/class-mla-options.php:529
1659
  msgid "Select the column for the sort order of the Assistant table listing."
1660
  msgstr ""
1661
 
1662
- #: includes/class-mla-options.php:533
1663
  msgid "Order"
1664
  msgstr ""
1665
 
1666
- #: includes/class-mla-options.php:537
1667
  msgid "Ascending"
1668
  msgstr ""
1669
 
1670
- #: includes/class-mla-options.php:537
1671
  msgid "Descending"
1672
  msgstr ""
1673
 
1674
- #: includes/class-mla-options.php:538 includes/class-mla-options.php:638
1675
  msgid "Choose the sort order."
1676
  msgstr ""
1677
 
1678
- #: includes/class-mla-options.php:542
1679
  msgid "Views Width"
1680
  msgstr ""
1681
 
1682
- #: includes/class-mla-options.php:546
1683
  msgid "Enter the width for the views list, in pixels (px) or percent (%)"
1684
  msgstr ""
1685
 
1686
- #: includes/class-mla-options.php:550
 
 
 
 
 
 
 
 
1687
  msgid "Taxonomy Filter parameters"
1688
  msgstr ""
1689
 
1690
- #: includes/class-mla-options.php:555
1691
  msgid "Maximum Depth"
1692
  msgstr ""
1693
 
1694
- #: includes/class-mla-options.php:559
1695
  msgid ""
1696
  "Enter the number of levels displayed for hierarchial taxonomies; enter zero "
1697
  "for no limit."
1698
  msgstr ""
1699
 
1700
- #: includes/class-mla-options.php:563
1701
  msgid "Include Children"
1702
  msgstr ""
1703
 
1704
- #: includes/class-mla-options.php:566
1705
  msgid ""
1706
  "Check/uncheck this option to include/exclude children for hierarchical "
1707
  "taxonomies."
1708
  msgstr ""
1709
 
1710
- #: includes/class-mla-options.php:570 includes/class-mla-settings.php:950
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1711
  msgid "Media Manager Enhancements"
1712
  msgstr ""
1713
 
1714
- #: includes/class-mla-options.php:575
1715
  msgid "Enable Media Manager Enhancements"
1716
  msgstr ""
1717
 
1718
- #: includes/class-mla-options.php:578
1719
  msgid "Check/uncheck this option to enable/disable Media Manager Enhancements."
1720
  msgstr ""
1721
 
1722
- #: includes/class-mla-options.php:582
1723
  msgid "Media Manager Enhanced MIME Type filter"
1724
  msgstr ""
1725
 
1726
- #: includes/class-mla-options.php:585
1727
  msgid ""
1728
  "Check this option to filter by more MIME Types, e.g., text, applications."
1729
  msgstr ""
1730
 
1731
- #: includes/class-mla-options.php:589
1732
  msgid "Media Manager Month and Year filter"
1733
  msgstr ""
1734
 
1735
- #: includes/class-mla-options.php:592
1736
  msgid "Check this option to filter by month and year uploaded."
1737
  msgstr ""
1738
 
1739
- #: includes/class-mla-options.php:596
1740
  msgid "Media Manager Category/Tag filter"
1741
  msgstr ""
1742
 
1743
- #: includes/class-mla-options.php:599
1744
  msgid "Check this option to filter by taxonomy terms."
1745
  msgstr ""
1746
 
1747
- #: includes/class-mla-options.php:603
1748
  msgid "Media Manager Enhanced Search Media box"
1749
  msgstr ""
1750
 
1751
- #: includes/class-mla-options.php:606
1752
  msgid "Check this option to enable search box enhancements."
1753
  msgstr ""
1754
 
1755
- #: includes/class-mla-options.php:610
1756
- msgid "Media Manager Searchable Categories metaboxes"
1757
  msgstr ""
1758
 
1759
- #: includes/class-mla-options.php:613
1760
  msgid ""
1761
- "Check this option to enable searchable metaboxes in the \"ATTACHMENT DETAILS"
1762
- "\" pane.<br>&nbsp;&nbsp;This option is for <strong>hierarchical taxonomies, "
1763
- "e.g., \"Att. Categories\".</strong><br>&nbsp;&nbsp;You must also install and "
1764
- "activate the <strong>\"Media Categories\" plugin</strong> (by Eddie Moya) to "
1765
- "implement this option."
1766
  msgstr ""
1767
 
1768
- #: includes/class-mla-options.php:617
1769
- msgid "Media Manager Searchable Tags metaboxes"
1770
  msgstr ""
1771
 
1772
- #: includes/class-mla-options.php:620
1773
  msgid ""
1774
- "Check this option to enable searchable metaboxes in the \"ATTACHMENT DETAILS"
1775
- "\" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies, e.g., "
1776
- "\"Att. Tags\".</strong><br>&nbsp;&nbsp;You must also install and activate "
1777
- "the <strong>\"Media Categories\" plugin</strong> (by Eddie Moya) to "
1778
- "implement this option."
1779
  msgstr ""
1780
 
1781
- #: includes/class-mla-options.php:624
1782
  msgid "Media Manager Order By"
1783
  msgstr ""
1784
 
1785
- #: includes/class-mla-options.php:628 includes/class-mla-options.php:637
1786
- #: includes/class-mla-options.php:652 includes/class-mla-options.php:666
1787
- #: includes/class-mla-options.php:680 includes/class-mla-settings.php:1032
1788
  msgid "Media Manager Default"
1789
  msgstr ""
1790
 
1791
- #: includes/class-mla-options.php:629
1792
  msgid ""
1793
  "If you want to override the Media Manager default,<br>&nbsp;&nbsp;select a "
1794
  "column for the sort order of the Media Library listing."
1795
  msgstr ""
1796
 
1797
- #: includes/class-mla-options.php:633
1798
  msgid "Media Manager Order"
1799
  msgstr ""
1800
 
1801
- #: includes/class-mla-options.php:642
1802
  msgid "Attachment Display Settings"
1803
  msgstr ""
1804
 
1805
  #. translators: 1: option name, e.g., Alignment, Link To or Size
1806
- #: includes/class-mla-options.php:647 includes/class-mla-options.php:649
1807
  msgid "Alignment"
1808
  msgstr ""
1809
 
1810
- #: includes/class-mla-options.php:652
1811
  msgid "Left"
1812
  msgstr ""
1813
 
1814
- #: includes/class-mla-options.php:652
1815
  msgid "Center"
1816
  msgstr ""
1817
 
1818
- #: includes/class-mla-options.php:652
1819
  msgid "Right"
1820
  msgstr ""
1821
 
1822
  #. translators: 1: option name, e.g., Alignment, Link To or Size
1823
- #: includes/class-mla-options.php:661 includes/class-mla-options.php:663
1824
  msgid "Link To"
1825
  msgstr ""
1826
 
1827
- #: includes/class-mla-options.php:666
1828
  msgid "Media File"
1829
  msgstr ""
1830
 
1831
- #: includes/class-mla-options.php:666
1832
  msgid "Attachment Page"
1833
  msgstr ""
1834
 
1835
- #: includes/class-mla-options.php:666
1836
  msgid "Custom URL"
1837
  msgstr ""
1838
 
1839
  #. translators: 1: option name, e.g., Alignment, Link To or Size
1840
- #: includes/class-mla-options.php:675 includes/class-mla-options.php:677
1841
  msgid "Size"
1842
  msgstr ""
1843
 
1844
- #: includes/class-mla-options.php:680
1845
  msgid "Thumbnail"
1846
  msgstr ""
1847
 
1848
- #: includes/class-mla-options.php:680
1849
  msgid "Medium"
1850
  msgstr ""
1851
 
1852
- #: includes/class-mla-options.php:680
1853
  msgid "Large"
1854
  msgstr ""
1855
 
1856
- #: includes/class-mla-options.php:680
1857
  msgid "Full Size"
1858
  msgstr ""
1859
 
1860
- #: includes/class-mla-options.php:689
1861
  msgid "Default [mla_gallery] Templates and Settings"
1862
  msgstr ""
1863
 
1864
- #: includes/class-mla-options.php:694 includes/class-mla-options.php:738
1865
  msgid "Style Template"
1866
  msgstr ""
1867
 
1868
  #. translators: 1: template type 2: shortcode
1869
- #: includes/class-mla-options.php:700 includes/class-mla-options.php:710
1870
- #: includes/class-mla-options.php:744 includes/class-mla-options.php:754
1871
  #, php-format
1872
  msgid "Select the default %1$s for your %2$s shortcodes."
1873
  msgstr ""
1874
 
1875
- #: includes/class-mla-options.php:700 includes/class-mla-options.php:744
1876
- #: includes/class-mla-settings.php:2607 includes/class-mla-settings.php:2618
1877
- #: includes/class-mla-settings.php:2624 includes/class-mla-settings.php:2628
1878
- #: includes/class-mla-settings.php:2657 includes/class-mla-settings.php:2668
1879
  msgid "style template"
1880
  msgstr ""
1881
 
1882
- #: includes/class-mla-options.php:704 includes/class-mla-options.php:748
1883
  msgid "Markup Template"
1884
  msgstr ""
1885
 
1886
- #: includes/class-mla-options.php:710 includes/class-mla-options.php:754
1887
- #: includes/class-mla-settings.php:2697 includes/class-mla-settings.php:2710
1888
- #: includes/class-mla-settings.php:2716 includes/class-mla-settings.php:2720
1889
- #: includes/class-mla-settings.php:2789
1890
  msgid "markup template"
1891
  msgstr ""
1892
 
1893
- #: includes/class-mla-options.php:714 includes/class-mla-options.php:758
1894
  msgid "Default columns"
1895
  msgstr ""
1896
 
1897
- #: includes/class-mla-options.php:718
1898
  msgid ""
1899
  "Enter the number of [mla_tag_cloud] columns; must be a positive integer."
1900
  msgstr ""
1901
 
1902
- #: includes/class-mla-options.php:722 includes/class-mla-options.php:766
1903
  msgid "Default mla_margin"
1904
  msgstr ""
1905
 
1906
- #: includes/class-mla-options.php:726 includes/class-mla-options.php:770
1907
  msgid ""
1908
  "Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
1909
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"none\" to "
1910
  "remove the property entirely."
1911
  msgstr ""
1912
 
1913
- #: includes/class-mla-options.php:730 includes/class-mla-options.php:774
1914
  msgid "Default mla_itemwidth"
1915
  msgstr ""
1916
 
1917
- #: includes/class-mla-options.php:734 includes/class-mla-options.php:778
1918
  msgid ""
1919
  "Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
1920
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"calculate"
@@ -1924,15 +2076,15 @@ msgid ""
1924
  "the property entirely."
1925
  msgstr ""
1926
 
1927
- #: includes/class-mla-options.php:762
1928
  msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
1929
  msgstr ""
1930
 
1931
- #: includes/class-mla-options.php:798
1932
  msgid "Enable custom field mapping when adding new media"
1933
  msgstr ""
1934
 
1935
- #: includes/class-mla-options.php:801
1936
  msgid ""
1937
  "Check this option to enable mapping when uploading new media (attachments)."
1938
  "<br>&nbsp;&nbsp;Click Save Changes at the bottom of the screen if you change "
@@ -1940,18 +2092,18 @@ msgid ""
1940
  "buttons on the bulk edit, single edit and settings screens."
1941
  msgstr ""
1942
 
1943
- #: includes/class-mla-options.php:805
1944
  msgid "Enable custom field mapping when updating media metadata"
1945
  msgstr ""
1946
 
1947
- #: includes/class-mla-options.php:808 includes/class-mla-options.php:832
1948
  msgid ""
1949
  "Check this option to enable mapping when media (attachments) metadata is "
1950
  "regenerated,<br>&nbsp;&nbsp;e.g., when the Media/Edit Media \"Edit Image\" "
1951
  "functions are used."
1952
  msgstr ""
1953
 
1954
- #: includes/class-mla-options.php:812
1955
  msgid ""
1956
  "Update the custom field mapping values above, then click Save Changes to "
1957
  "make the updates permanent.<br>You can also make temporary updates and click "
@@ -1959,22 +2111,22 @@ msgid ""
1959
  "saving any rule changes."
1960
  msgstr ""
1961
 
1962
- #: includes/class-mla-options.php:822
1963
  msgid "Enable IPTC/EXIF Mapping when adding new media"
1964
  msgstr ""
1965
 
1966
- #: includes/class-mla-options.php:825
1967
  msgid ""
1968
  "Check this option to enable mapping when uploading new media (attachments)."
1969
  "<br>&nbsp;&nbsp;Does NOT affect the operation of the \"Map\" buttons on the "
1970
  "bulk edit, single edit and settings screens."
1971
  msgstr ""
1972
 
1973
- #: includes/class-mla-options.php:829
1974
  msgid "Enable IPTC/EXIF Mapping when updating media metadata"
1975
  msgstr ""
1976
 
1977
- #: includes/class-mla-options.php:836
1978
  msgid ""
1979
  "Update the standard field mapping values above, then click <strong>Save "
1980
  "Changes</strong> to make the updates permanent.<br>You can also make "
@@ -1983,13 +2135,13 @@ msgid ""
1983
  "changes."
1984
  msgstr ""
1985
 
1986
- #: includes/class-mla-options.php:846
1987
  msgid ""
1988
  "Update the taxonomy term mapping values above, then click <strong>Save "
1989
  "Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
1990
  msgstr ""
1991
 
1992
- #: includes/class-mla-options.php:856
1993
  msgid ""
1994
  "<strong>Update</strong> individual custom field mapping values above, or "
1995
  "make several updates and click <strong>Save Changes</strong> below to apply "
@@ -2000,632 +2152,642 @@ msgid ""
2000
  "changes."
2001
  msgstr ""
2002
 
2003
- #: includes/class-mla-options.php:866
2004
  msgid "IPTC/EXIF Mapping help"
2005
  msgstr ""
2006
 
2007
- #: includes/class-mla-options.php:918
2008
  msgid "Enable View and Post MIME Type Support"
2009
  msgstr ""
2010
 
2011
- #: includes/class-mla-options.php:921
2012
  msgid ""
2013
  "Check/uncheck this option to enable/disable Post MIME Type Support, then "
2014
  "click <strong>Save Changes</strong> to record the new setting."
2015
  msgstr ""
2016
 
2017
- #: includes/class-mla-options.php:930
2018
  msgid "Post MIME Types help."
2019
  msgstr ""
2020
 
2021
- #: includes/class-mla-options.php:933
2022
  msgctxt "post_mime_types_singular"
2023
  msgid "All"
2024
  msgstr ""
2025
 
2026
- #: includes/class-mla-options.php:934
2027
  msgctxt "post_mime_types_plural"
2028
  msgid "All"
2029
  msgstr ""
2030
 
2031
- #: includes/class-mla-options.php:939 includes/class-mla-options.php:993
2032
- #: includes/class-mla-options.php:1002
2033
  msgctxt "post_mime_types_description"
2034
  msgid "Built-in view"
2035
  msgstr ""
2036
 
2037
- #: includes/class-mla-options.php:942
2038
  msgctxt "post_mime_types_singular"
2039
  msgid "Image"
2040
  msgstr ""
2041
 
2042
- #: includes/class-mla-options.php:943
2043
  msgctxt "post_mime_types_plural"
2044
  msgid "Images"
2045
  msgstr ""
2046
 
2047
- #: includes/class-mla-options.php:948
2048
  msgctxt "post_mime_types_description"
2049
  msgid "All image subtypes"
2050
  msgstr ""
2051
 
2052
- #: includes/class-mla-options.php:951
2053
  msgctxt "post_mime_types_singular"
2054
  msgid "Audio"
2055
  msgstr ""
2056
 
2057
- #: includes/class-mla-options.php:952
2058
  msgctxt "post_mime_types_plural"
2059
  msgid "Audio"
2060
  msgstr ""
2061
 
2062
- #: includes/class-mla-options.php:957
2063
  msgctxt "post_mime_types_description"
2064
  msgid "All audio subtypes"
2065
  msgstr ""
2066
 
2067
- #: includes/class-mla-options.php:960
2068
  msgctxt "post_mime_types_singular"
2069
  msgid "Video"
2070
  msgstr ""
2071
 
2072
- #: includes/class-mla-options.php:961
2073
  msgctxt "post_mime_types_plural"
2074
  msgid "Video"
2075
  msgstr ""
2076
 
2077
- #: includes/class-mla-options.php:966
2078
  msgctxt "post_mime_types_description"
2079
  msgid "All video subtypes"
2080
  msgstr ""
2081
 
2082
- #: includes/class-mla-options.php:969
2083
  msgctxt "post_mime_types_singular"
2084
  msgid "Text"
2085
  msgstr ""
2086
 
2087
- #: includes/class-mla-options.php:970
2088
  msgctxt "post_mime_types_plural"
2089
  msgid "Text"
2090
  msgstr ""
2091
 
2092
- #: includes/class-mla-options.php:975
2093
  msgctxt "post_mime_types_description"
2094
  msgid "All text subtypes"
2095
  msgstr ""
2096
 
2097
- #: includes/class-mla-options.php:978
2098
  msgctxt "post_mime_types_singular"
2099
  msgid "Application"
2100
  msgstr ""
2101
 
2102
- #: includes/class-mla-options.php:979
2103
  msgctxt "post_mime_types_plural"
2104
  msgid "Applications"
2105
  msgstr ""
2106
 
2107
- #: includes/class-mla-options.php:984
2108
  msgctxt "post_mime_types_description"
2109
  msgid "All application subtypes"
2110
  msgstr ""
2111
 
2112
- #: includes/class-mla-options.php:988
2113
  msgctxt "post_mime_types_plural"
2114
  msgid "Unattached"
2115
  msgstr ""
2116
 
2117
- #: includes/class-mla-options.php:996
2118
  msgctxt "post_mime_types_singular"
2119
  msgid "Trash"
2120
  msgstr ""
2121
 
2122
- #: includes/class-mla-options.php:997
2123
  msgctxt "post_mime_types_plural"
2124
  msgid "Trash"
2125
  msgstr ""
2126
 
2127
- #: includes/class-mla-options.php:1008
2128
  msgid "Enable Upload MIME Type Support"
2129
  msgstr ""
2130
 
2131
- #: includes/class-mla-options.php:1011
2132
  msgid ""
2133
  "Check/uncheck this option to enable/disable Upload MIME Type Support, then "
2134
  "click <strong>Save Changes</strong> to record the new setting."
2135
  msgstr ""
2136
 
2137
- #: includes/class-mla-options.php:1020
2138
  msgid "Upload MIME Types help."
2139
  msgstr ""
2140
 
2141
- #: includes/class-mla-options.php:1025
2142
  msgid "Enable MLA File Type Icons Support"
2143
  msgstr ""
2144
 
2145
- #: includes/class-mla-options.php:1028
2146
  msgid ""
2147
  "Check/uncheck this option to enable/disable MLA File Type Icons Support, "
2148
  "then click <strong>Save Changes</strong> to record the new setting."
2149
  msgstr ""
2150
 
2151
- #: includes/class-mla-options.php:1055 includes/class-mla-options.php:1077
2152
- #: includes/class-mla-options.php:1119
2153
  msgid "no templates exist"
2154
  msgstr ""
2155
 
2156
- #: includes/class-mla-options.php:1063
2157
  msgid "not found"
2158
  msgstr ""
2159
 
2160
  #. translators: 1: option name 2: action, e.g., update, delete, reset
2161
- #: includes/class-mla-options.php:1384 includes/class-mla-options.php:1512
2162
- #: includes/class-mla-options.php:3059 includes/class-mla-options.php:4197
2163
  #, php-format
2164
  msgid "ERROR: Custom %1$s unknown action \"%2$s\""
2165
  msgstr ""
2166
 
2167
- #: includes/class-mla-options.php:1461
2168
  msgid "Support"
2169
  msgstr ""
2170
 
2171
- #: includes/class-mla-options.php:1462
2172
  msgid "Inline Edit"
2173
  msgstr ""
2174
 
2175
- #: includes/class-mla-options.php:1463
 
 
 
 
2176
  msgid "List Filter"
2177
  msgstr ""
2178
 
2179
- #: includes/class-mla-options.php:1464
2180
  msgid "Taxonomy"
2181
  msgstr ""
2182
 
2183
  #. translators: 1: taxonomy name
2184
- #: includes/class-mla-options.php:1480
2185
  #, php-format
2186
  msgid "List Filter ignored; %1$s not supported."
2187
  msgstr ""
2188
 
2189
  #. translators: 1: taxonomy name
2190
- #: includes/class-mla-options.php:1487
2191
  #, php-format
2192
- msgid "Quick Edit ignored; %1$s not supported."
 
 
 
 
 
 
2193
  msgstr ""
2194
 
2195
  #. translators: 1: option name, e.g., taxonomy_support
2196
- #: includes/class-mla-options.php:1502
2197
  #, php-format
2198
  msgid "Update custom %1$s"
2199
  msgstr ""
2200
 
2201
  #. translators: 1: option name, e.g., taxonomy_support
2202
- #: includes/class-mla-options.php:1509 includes/class-mla-options.php:4190
2203
  #, php-format
2204
  msgid "Reset custom %1$s"
2205
  msgstr ""
2206
 
2207
- #: includes/class-mla-options.php:2454 includes/class-mla-options.php:2551
2208
- #: includes/class-mla-options.php:3391 includes/class-mla-options.php:3422
2209
- #: includes/class-mla-settings.php:1431
2210
  msgid "None (select a value)"
2211
  msgstr ""
2212
 
2213
- #: includes/class-mla-options.php:2558
2214
  msgid "Metadata (see below)"
2215
  msgstr ""
2216
 
2217
- #: includes/class-mla-options.php:2565
2218
  msgid "Template (see below)"
2219
  msgstr ""
2220
 
2221
  #. translators: 1: custom field name
2222
- #: includes/class-mla-options.php:2630 includes/class-mla-options.php:3681
2223
  #, php-format
2224
  msgid "ERROR: New field %1$s already exists."
2225
  msgstr ""
2226
 
2227
  #. translators: 1: custom field name
2228
- #: includes/class-mla-options.php:2635 includes/class-mla-options.php:3686
2229
  #, php-format
2230
  msgid "Adding new field %1$s."
2231
  msgstr ""
2232
 
2233
  #. translators: 1: custom field name
2234
- #: includes/class-mla-options.php:2645 includes/class-mla-options.php:3696
2235
  #, php-format
2236
  msgid "Adding new rule for %1$s."
2237
  msgstr ""
2238
 
2239
  #. translators: 1: custom field name
2240
- #: includes/class-mla-options.php:2676 includes/class-mla-options.php:3717
2241
  #, php-format
2242
  msgid "Deleting rule for %1$s."
2243
  msgstr ""
2244
 
2245
  #. translators: 1: custom field name 2: attribute 3: old value 4: new value
2246
- #: includes/class-mla-options.php:2699 includes/class-mla-options.php:2720
2247
- #: includes/class-mla-options.php:2770 includes/class-mla-options.php:2777
2248
- #: includes/class-mla-options.php:3488 includes/class-mla-options.php:3495
2249
- #: includes/class-mla-options.php:3502 includes/class-mla-options.php:3583
2250
- #: includes/class-mla-options.php:3590 includes/class-mla-options.php:3625
2251
- #: includes/class-mla-options.php:3632 includes/class-mla-options.php:3727
2252
- #: includes/class-mla-options.php:3734
2253
  #, php-format
2254
  msgid "%1$s changing %2$s from %3$s to %4$s."
2255
  msgstr ""
2256
 
2257
- #: includes/class-mla-options.php:2699 includes/class-mla-options.php:3016
2258
  msgid "Data Source"
2259
  msgstr ""
2260
 
2261
- #: includes/class-mla-options.php:2705 includes/class-mla-options.php:3522
2262
- #: includes/class-mla-options.php:3610 includes/class-mla-options.php:3754
2263
  msgid "Replace to Keep"
2264
  msgstr ""
2265
 
2266
- #: includes/class-mla-options.php:2708 includes/class-mla-options.php:3525
2267
- #: includes/class-mla-options.php:3613 includes/class-mla-options.php:3757
2268
  msgid "Keep to Replace"
2269
  msgstr ""
2270
 
2271
  #. translators: 1: custom field name 2: attribute 3: old value 'to' new value
2272
- #: includes/class-mla-options.php:2713 includes/class-mla-options.php:2734
2273
- #: includes/class-mla-options.php:2748 includes/class-mla-options.php:2762
2274
- #: includes/class-mla-options.php:2791 includes/class-mla-options.php:3516
2275
- #: includes/class-mla-options.php:3530 includes/class-mla-options.php:3604
2276
- #: includes/class-mla-options.php:3618 includes/class-mla-options.php:3748
2277
- #: includes/class-mla-options.php:3762
2278
  #, php-format
2279
  msgid "%1$s changing %2$s value from %3$s."
2280
  msgstr ""
2281
 
2282
- #: includes/class-mla-options.php:2713 includes/class-mla-options.php:3017
2283
- #: includes/class-mla-options.php:3530 includes/class-mla-options.php:3618
2284
- #: includes/class-mla-options.php:3762 includes/class-mla-options.php:3884
2285
- #: includes/class-mla-options.php:3970 includes/class-mla-options.php:4088
2286
  msgid "Existing Text"
2287
  msgstr ""
2288
 
2289
- #: includes/class-mla-options.php:2720 includes/class-mla-options.php:3018
2290
  msgid "Format"
2291
  msgstr ""
2292
 
2293
- #: includes/class-mla-options.php:2726 includes/class-mla-options.php:2740
2294
- #: includes/class-mla-options.php:2754 includes/class-mla-options.php:2783
2295
  msgid "unchecked to checked"
2296
  msgstr ""
2297
 
2298
- #: includes/class-mla-options.php:2729 includes/class-mla-options.php:2743
2299
- #: includes/class-mla-options.php:2757 includes/class-mla-options.php:2786
2300
  msgid "checked to unchecked"
2301
  msgstr ""
2302
 
2303
- #: includes/class-mla-options.php:2734 includes/class-mla-options.php:3019
2304
  msgid "MLA Column"
2305
  msgstr ""
2306
 
2307
- #: includes/class-mla-options.php:2770
2308
  msgid "Metavalue name"
2309
  msgstr ""
2310
 
2311
- #: includes/class-mla-options.php:2777 includes/class-mla-options.php:2858
2312
- #: includes/class-mla-options.php:2954 includes/class-mla-options.php:2996
2313
  msgid "Option"
2314
  msgstr ""
2315
 
2316
- #: includes/class-mla-options.php:2791
2317
  msgid "Delete NULL"
2318
  msgstr ""
2319
 
2320
- #: includes/class-mla-options.php:2830 includes/class-mla-options.php:3982
2321
  msgid "No Custom Field Mapping Rules Defined"
2322
  msgstr ""
2323
 
2324
- #: includes/class-mla-options.php:2844 includes/class-mla-options.php:2941
2325
- #: includes/class-mla-options.php:2983 includes/class-mla-options.php:3859
2326
- #: includes/class-mla-options.php:3909 includes/class-mla-options.php:4006
2327
- #: includes/class-mla-options.php:4050 includes/class-mla-options.php:4075
2328
  msgid "Keep"
2329
  msgstr ""
2330
 
2331
- #: includes/class-mla-options.php:2848 includes/class-mla-options.php:2945
2332
- #: includes/class-mla-options.php:2987
2333
  msgid "Native"
2334
  msgstr ""
2335
 
2336
- #: includes/class-mla-options.php:2850 includes/class-mla-options.php:2947
2337
- #: includes/class-mla-options.php:2989
2338
  msgid "Commas"
2339
  msgstr ""
2340
 
2341
- #: includes/class-mla-options.php:2860 includes/class-mla-options.php:2956
2342
- #: includes/class-mla-options.php:2998
2343
  msgid "Text"
2344
  msgstr ""
2345
 
2346
- #: includes/class-mla-options.php:2862 includes/class-mla-options.php:2958
2347
- #: includes/class-mla-options.php:3000
2348
  msgid "Single"
2349
  msgstr ""
2350
 
2351
- #: includes/class-mla-options.php:2864 includes/class-mla-options.php:2960
2352
- #: includes/class-mla-options.php:3002
2353
  msgid "Export"
2354
  msgstr ""
2355
 
2356
- #: includes/class-mla-options.php:2866 includes/class-mla-options.php:2962
2357
- #: includes/class-mla-options.php:3004
2358
  msgid "Array"
2359
  msgstr ""
2360
 
2361
- #: includes/class-mla-options.php:2868 includes/class-mla-options.php:2964
2362
- #: includes/class-mla-options.php:3006
2363
  msgid "Multi"
2364
  msgstr ""
2365
 
2366
- #: includes/class-mla-options.php:2870 includes/class-mla-options.php:2966
2367
- #: includes/class-mla-options.php:3008
2368
  msgid "Delete NULL values"
2369
  msgstr ""
2370
 
2371
- #: includes/class-mla-options.php:2871 includes/class-mla-options.php:4009
2372
  msgid "Delete Rule"
2373
  msgstr ""
2374
 
2375
- #: includes/class-mla-options.php:2872 includes/class-mla-options.php:4010
2376
  msgid "Delete Rule AND Field"
2377
  msgstr ""
2378
 
2379
- #: includes/class-mla-options.php:2873 includes/class-mla-options.php:4011
2380
  msgid "Update Rule"
2381
  msgstr ""
2382
 
2383
- #: includes/class-mla-options.php:2874 includes/class-mla-options.php:4012
2384
  msgid "Map All Attachments"
2385
  msgstr ""
2386
 
2387
- #: includes/class-mla-options.php:2936 includes/class-mla-options.php:4039
2388
  msgid "Add a new Mapping Rule"
2389
  msgstr ""
2390
 
2391
- #: includes/class-mla-options.php:2967 includes/class-mla-options.php:4053
2392
  msgid "Add Rule"
2393
  msgstr ""
2394
 
2395
- #: includes/class-mla-options.php:2968 includes/class-mla-options.php:4054
2396
  msgid "Add Rule and Map All Attachments"
2397
  msgstr ""
2398
 
2399
- #: includes/class-mla-options.php:2978 includes/class-mla-options.php:4064
2400
  msgid "Add a new Field and Mapping Rule"
2401
  msgstr ""
2402
 
2403
- #: includes/class-mla-options.php:3009 includes/class-mla-options.php:4078
2404
  msgid "Add Field"
2405
  msgstr ""
2406
 
2407
- #: includes/class-mla-options.php:3010 includes/class-mla-options.php:4079
2408
  msgid "Add Field and Map All Attachments"
2409
  msgstr ""
2410
 
2411
- #: includes/class-mla-options.php:3015 includes/class-mla-options.php:3488
2412
- #: includes/class-mla-options.php:3880 includes/class-mla-options.php:3966
2413
- #: includes/class-mla-options.php:4084
2414
  msgid "Field Title"
2415
  msgstr ""
2416
 
2417
- #: includes/class-mla-options.php:3040
2418
  msgid "Custom field mapping rules updated."
2419
  msgstr ""
2420
 
2421
- #: includes/class-mla-options.php:3042
2422
  msgid "ERROR: Custom field mapping rules update failed."
2423
  msgstr ""
2424
 
2425
- #: includes/class-mla-options.php:3045
2426
  msgid "Custom field no mapping rule changes detected."
2427
  msgstr ""
2428
 
2429
- #: includes/class-mla-options.php:3053
2430
  msgid "Custom field mapping settings saved."
2431
  msgstr ""
2432
 
2433
- #: includes/class-mla-options.php:3055
2434
  msgid "ERROR: Custom field mapping settings reset failed."
2435
  msgstr ""
2436
 
2437
  #. translators: 1: custom field name
2438
- #: includes/class-mla-options.php:3476
2439
  #, php-format
2440
  msgid "ERROR: No old values for %1$s."
2441
  msgstr ""
2442
 
2443
- #: includes/class-mla-options.php:3495 includes/class-mla-options.php:3583
2444
- #: includes/class-mla-options.php:3727 includes/class-mla-options.php:3881
2445
- #: includes/class-mla-options.php:3967 includes/class-mla-options.php:4085
2446
  msgid "IPTC Value"
2447
  msgstr ""
2448
 
2449
- #: includes/class-mla-options.php:3502 includes/class-mla-options.php:3590
2450
- #: includes/class-mla-options.php:3734
2451
  msgid "EXIF Value"
2452
  msgstr ""
2453
 
2454
- #: includes/class-mla-options.php:3508 includes/class-mla-options.php:3596
2455
- #: includes/class-mla-options.php:3740
2456
  msgid "EXIF to IPTC"
2457
  msgstr ""
2458
 
2459
- #: includes/class-mla-options.php:3511 includes/class-mla-options.php:3599
2460
- #: includes/class-mla-options.php:3743
2461
  msgid "IPTC to EXIF"
2462
  msgstr ""
2463
 
2464
- #: includes/class-mla-options.php:3516 includes/class-mla-options.php:3604
2465
- #: includes/class-mla-options.php:3748 includes/class-mla-options.php:3883
2466
- #: includes/class-mla-options.php:3969 includes/class-mla-options.php:4087
2467
  msgid "Priority"
2468
  msgstr ""
2469
 
2470
- #: includes/class-mla-options.php:3625 includes/class-mla-options.php:3971
2471
  msgid "Delimiter(s)"
2472
  msgstr ""
2473
 
2474
- #: includes/class-mla-options.php:3855 includes/class-mla-options.php:3905
2475
- #: includes/class-mla-options.php:4002 includes/class-mla-options.php:4046
2476
- #: includes/class-mla-options.php:4071
2477
  msgid "IPTC"
2478
  msgstr ""
2479
 
2480
- #: includes/class-mla-options.php:3857 includes/class-mla-options.php:3907
2481
- #: includes/class-mla-options.php:4004 includes/class-mla-options.php:4048
2482
- #: includes/class-mla-options.php:4073
2483
  msgid "EXIF"
2484
  msgstr ""
2485
 
2486
- #: includes/class-mla-options.php:3882 includes/class-mla-options.php:3968
2487
- #: includes/class-mla-options.php:4086
2488
  msgid "EXIF/Template Value"
2489
  msgstr ""
2490
 
2491
  #. translators: 1: option name
2492
- #: includes/class-mla-options.php:4096
2493
  #, php-format
2494
  msgid "ERROR: Render unknown custom %1$s."
2495
  msgstr ""
2496
 
2497
  #. translators: 1: option name
2498
- #: includes/class-mla-options.php:4140
2499
  #, php-format
2500
  msgid "ERROR: Update/delete unknown custom %1$s."
2501
  msgstr ""
2502
 
2503
- #: includes/class-mla-options.php:4146
2504
  msgid "IPTC/EXIF mapping settings updated."
2505
  msgstr ""
2506
 
2507
- #: includes/class-mla-options.php:4148
2508
  msgid "ERROR: IPTC/EXIF settings update failed."
2509
  msgstr ""
2510
 
2511
- #: includes/class-mla-options.php:4151
2512
  msgid "IPTC/EXIF no mapping changes detected."
2513
  msgstr ""
2514
 
2515
  #. translators: 1: field type
2516
- #: includes/class-mla-options.php:4162 includes/class-mla-options.php:4172
2517
- #: includes/class-mla-options.php:4182 includes/class-mla-settings.php:2795
2518
  #, php-format
2519
  msgid "%1$s settings saved."
2520
  msgstr ""
2521
 
2522
- #: includes/class-mla-options.php:4162 includes/class-mla-options.php:4165
2523
- #: includes/class-mla-settings.php:3021 includes/class-mla-settings.php:3053
2524
- #: includes/class-mla-settings.php:3056
2525
  msgid "Standard field"
2526
  msgstr ""
2527
 
2528
  #. translators: 1: field type
2529
- #: includes/class-mla-options.php:4165 includes/class-mla-options.php:4175
2530
- #: includes/class-mla-options.php:4185
2531
  #, php-format
2532
  msgid "ERROR: IPTC/EXIF %1$s settings update failed."
2533
  msgstr ""
2534
 
2535
- #: includes/class-mla-options.php:4172 includes/class-mla-options.php:4175
2536
- #: includes/class-mla-settings.php:3079 includes/class-mla-settings.php:3111
2537
- #: includes/class-mla-settings.php:3114
2538
  msgid "Taxonomy term"
2539
  msgstr ""
2540
 
2541
- #: includes/class-mla-options.php:4182 includes/class-mla-options.php:4185
2542
- #: includes/class-mla-settings.php:2928 includes/class-mla-settings.php:2931
2543
- #: includes/class-mla-settings.php:3149 includes/class-mla-settings.php:3181
2544
- #: includes/class-mla-settings.php:3184
2545
  msgid "Custom field"
2546
  msgstr ""
2547
 
2548
  #. translators: 1: option name, e.g., taxonomy_support
2549
- #: includes/class-mla-options.php:4193
2550
  #, php-format
2551
  msgid "ERROR: Reset unknown custom %1$s"
2552
  msgstr ""
2553
 
2554
- #: includes/class-mla-settings.php:299 includes/class-mla-settings.php:317
2555
  msgid "no slug"
2556
  msgstr ""
2557
 
2558
- #: includes/class-mla-settings.php:349
2559
  msgid "Media Library Assistant Settings"
2560
  msgstr ""
2561
 
2562
- #: includes/class-mla-settings.php:368
2563
  msgid "Views per page"
2564
  msgstr ""
2565
 
2566
- #: includes/class-mla-settings.php:379
2567
  msgid "Types per page"
2568
  msgstr ""
2569
 
2570
- #: includes/class-mla-settings.php:390
2571
  msgid "Upload types per page"
2572
  msgstr ""
2573
 
2574
- #: includes/class-mla-settings.php:527
2575
  msgid "ERROR: No view slug found"
2576
  msgstr ""
2577
 
2578
- #: includes/class-mla-settings.php:570
2579
  msgid "ERROR: No upload slug found"
2580
  msgstr ""
2581
 
2582
- #: includes/class-mla-settings.php:606 includes/class-mla-settings.php:2513
2583
  msgid "Settings"
2584
  msgstr ""
2585
 
2586
  #. translators: 1: function name 2: option type, e.g., radio, select, text
2587
- #: includes/class-mla-settings.php:654 includes/class-mla-settings.php:686
2588
- #: includes/class-mla-settings.php:824
2589
  #, php-format
2590
  msgctxt "error_log"
2591
  msgid "ERROR: %1$s unknown type = \"%2$s\""
2592
  msgstr ""
2593
 
2594
- #: includes/class-mla-settings.php:722 includes/class-mla-settings.php:956
2595
  msgid "Go to Top"
2596
  msgstr ""
2597
 
2598
- #: includes/class-mla-settings.php:873
2599
  msgid "General"
2600
  msgstr ""
2601
 
2602
- #: includes/class-mla-settings.php:874
2603
  msgid "Views"
2604
  msgstr ""
2605
 
2606
- #: includes/class-mla-settings.php:875
2607
  msgid "Uploads"
2608
  msgstr ""
2609
 
2610
- #: includes/class-mla-settings.php:876 includes/class-mla-settings.php:2795
2611
- #: includes/class-mla-settings.php:2798
2612
  msgid "MLA Gallery"
2613
  msgstr ""
2614
 
2615
- #: includes/class-mla-settings.php:877
2616
  msgid "Custom Fields"
2617
  msgstr ""
2618
 
2619
- #: includes/class-mla-settings.php:879
2620
  msgid "Documentation"
2621
  msgstr ""
2622
 
2623
- #: includes/class-mla-settings.php:948
2624
  msgid "General Processing Options"
2625
  msgstr ""
2626
 
2627
  #. translators: 1: - 4: page subheader values
2628
- #: includes/class-mla-settings.php:950
2629
  #, php-format
2630
  msgid ""
2631
  "In this tab you can find a number of options for controlling the "
@@ -2634,40 +2796,40 @@ msgid ""
2634
  "any changes you make."
2635
  msgstr ""
2636
 
2637
- #: includes/class-mla-settings.php:950
2638
  msgid "Media/Assistant Table Defaults"
2639
  msgstr ""
2640
 
2641
- #: includes/class-mla-settings.php:951 includes/class-mla-settings.php:1311
2642
- #: includes/class-mla-settings.php:1364 includes/class-mla-settings.php:1781
2643
- #: includes/class-mla-settings.php:1831 includes/class-mla-settings.php:1917
2644
- #: includes/class-mla-settings.php:2311 includes/class-mla-settings.php:2314
2645
- #: includes/class-mla-settings.php:2434 includes/class-mla-settings.php:2436
2646
  msgid "Save Changes"
2647
  msgstr ""
2648
 
2649
- #: includes/class-mla-settings.php:952
2650
  msgid "Export ALL Settings"
2651
  msgstr ""
2652
 
2653
- #: includes/class-mla-settings.php:953
2654
  msgid "Delete General options and restore default settings"
2655
  msgstr ""
2656
 
2657
- #: includes/class-mla-settings.php:957
2658
  msgid "Support Our Work"
2659
  msgstr ""
2660
 
2661
- #: includes/class-mla-settings.php:958 includes/class-mla-settings.php:961
2662
  msgid "Donate to FTJ"
2663
  msgstr ""
2664
 
2665
- #: includes/class-mla-settings.php:959
2666
  msgid "Donate"
2667
  msgstr ""
2668
 
2669
  #. translators: 1: donation hyperlink
2670
- #: includes/class-mla-settings.php:961
2671
  #, php-format
2672
  msgid ""
2673
  "This plugin was inspired by my work on the WordPress web site for our "
@@ -2676,39 +2838,35 @@ msgid ""
2676
  "our work. Thank you!"
2677
  msgstr ""
2678
 
2679
- #: includes/class-mla-settings.php:961
2680
  msgid "tax-deductible donation"
2681
  msgstr ""
2682
 
2683
- #: includes/class-mla-settings.php:981
2684
- msgid "renders a complete list of all attachments and references to them."
2685
- msgstr ""
2686
-
2687
- #: includes/class-mla-settings.php:982
2688
  msgid "enhanced version of the WordPress [gallery] shortcode."
2689
  msgstr ""
2690
 
2691
- #: includes/class-mla-settings.php:982 includes/class-mla-settings.php:983
2692
  msgid "For complete documentation"
2693
  msgstr ""
2694
 
2695
- #: includes/class-mla-settings.php:982 includes/class-mla-settings.php:983
2696
  msgid "click here"
2697
  msgstr ""
2698
 
2699
- #: includes/class-mla-settings.php:983
2700
  msgid "enhanced version of the WordPress Tag Cloud."
2701
  msgstr ""
2702
 
2703
- #: includes/class-mla-settings.php:995
2704
  msgid "Shortcodes made available by this plugin"
2705
  msgstr ""
2706
 
2707
- #: includes/class-mla-settings.php:1104
2708
  msgid "Edit View"
2709
  msgstr ""
2710
 
2711
- #: includes/class-mla-settings.php:1110 includes/class-mla-settings.php:1367
2712
  msgid ""
2713
  "The &#8220;slug&#8221; is the URL-friendly, unique key for the view. It must "
2714
  "be all lowercase and contain only letters, numbers, periods (.), slashes (/) "
@@ -2717,25 +2875,25 @@ msgid ""
2717
  "MIME</strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
2718
  msgstr ""
2719
 
2720
- #: includes/class-mla-settings.php:1111 includes/class-mla-settings.php:1368
2721
  msgid "Singular Label"
2722
  msgstr ""
2723
 
2724
- #: includes/class-mla-settings.php:1112 includes/class-mla-settings.php:1369
2725
  msgid "Plural Label"
2726
  msgstr ""
2727
 
2728
- #: includes/class-mla-settings.php:1113 includes/class-mla-settings.php:1370
2729
  msgid ""
2730
  "The labels, e.g., &#8220;Image&#8221; and &#8220;Images&#8221; are used for "
2731
  "column headers and other display purposes."
2732
  msgstr ""
2733
 
2734
- #: includes/class-mla-settings.php:1114 includes/class-mla-settings.php:1371
2735
  msgid "Specification"
2736
  msgstr ""
2737
 
2738
- #: includes/class-mla-settings.php:1115 includes/class-mla-settings.php:1372
2739
  msgid ""
2740
  "If the MIME type specification differs from the slug, enter it here. You may "
2741
  "include multiple MIME types, e.g., &#8220;audio,video&#8221; and/or wildcard "
@@ -2743,54 +2901,54 @@ msgid ""
2743
  "MIME Type box is checked."
2744
  msgstr ""
2745
 
2746
- #: includes/class-mla-settings.php:1116 includes/class-mla-settings.php:1373
2747
  msgid "Post MIME Type"
2748
  msgstr ""
2749
 
2750
- #: includes/class-mla-settings.php:1117 includes/class-mla-settings.php:1374
2751
  msgid ""
2752
  "Check this box if you want to add this entry to the list of MIME types "
2753
  "returned by wp_get_mime_types()."
2754
  msgstr ""
2755
 
2756
- #: includes/class-mla-settings.php:1118 includes/class-mla-settings.php:1375
2757
  msgid "Table View"
2758
  msgstr ""
2759
 
2760
- #: includes/class-mla-settings.php:1119 includes/class-mla-settings.php:1376
2761
  msgid ""
2762
  "Check this box if you want to add this entry to the list of Media/Assistant "
2763
  "table views."
2764
  msgstr ""
2765
 
2766
- #: includes/class-mla-settings.php:1121 includes/class-mla-settings.php:1378
2767
  msgid ""
2768
  "You can choose your own table view order by entering a number (1 for first, "
2769
  "etc.) in this field."
2770
  msgstr ""
2771
 
2772
- #: includes/class-mla-settings.php:1123 includes/class-mla-settings.php:1380
2773
- #: includes/class-mla-settings.php:1479 includes/class-mla-settings.php:1843
2774
  msgid ""
2775
  "The description can contain any documentation or notes you need to "
2776
  "understand or use the item."
2777
  msgstr ""
2778
 
2779
  #. translators: 1: view name/slug
2780
- #: includes/class-mla-settings.php:1273 includes/class-mla-settings.php:1743
2781
  #, php-format
2782
  msgid "Edit view \"%1$s\" cancelled."
2783
  msgstr ""
2784
 
2785
- #: includes/class-mla-settings.php:1308
2786
  msgid "View and Post MIME Type Support is disabled"
2787
  msgstr ""
2788
 
2789
- #: includes/class-mla-settings.php:1353 includes/class-mla-settings.php:1356
2790
  msgid "Library Views/Post MIME Type Processing"
2791
  msgstr ""
2792
 
2793
- #: includes/class-mla-settings.php:1354
2794
  msgid ""
2795
  "In this tab you can manage the list of \"Post MIME Types\", which are used "
2796
  "by WordPress to define the views for the <em><strong>Media/Library</strong></"
@@ -2802,7 +2960,7 @@ msgid ""
2802
  msgstr ""
2803
 
2804
  #. translators: 1: Documentation hyperlink
2805
- #: includes/class-mla-settings.php:1356
2806
  #, php-format
2807
  msgid ""
2808
  "You can find more information about library views, Post MIME types and how "
@@ -2811,100 +2969,100 @@ msgid ""
2811
  "screen."
2812
  msgstr ""
2813
 
2814
- #: includes/class-mla-settings.php:1356
2815
  msgid "Library View Processing documentation"
2816
  msgstr ""
2817
 
2818
- #: includes/class-mla-settings.php:1360 includes/class-mla-settings.php:1549
2819
- #: includes/class-mla-settings.php:1855
2820
  msgid "Displaying search results for"
2821
  msgstr ""
2822
 
2823
- #: includes/class-mla-settings.php:1361
2824
  msgid "Search Views"
2825
  msgstr ""
2826
 
2827
- #: includes/class-mla-settings.php:1365
2828
  msgid "Add New View"
2829
  msgstr ""
2830
 
2831
- #: includes/class-mla-settings.php:1381
2832
  msgid "Add View"
2833
  msgstr ""
2834
 
2835
- #: includes/class-mla-settings.php:1383 includes/class-mla-settings.php:1848
2836
  msgid "<strong>Quick Edit</strong>"
2837
  msgstr ""
2838
 
2839
- #: includes/class-mla-settings.php:1389
2840
- #: includes/class-mla-view-list-table.php:382
2841
- #: includes/class-mla-view-list-table.php:398
2842
  msgid "Yes"
2843
  msgstr ""
2844
 
2845
- #: includes/class-mla-settings.php:1464
2846
  msgid "Edit Upload MIME Type"
2847
  msgstr ""
2848
 
2849
- #: includes/class-mla-settings.php:1469 includes/class-mla-settings.php:1834
2850
  msgid "Extension"
2851
  msgstr ""
2852
 
2853
- #: includes/class-mla-settings.php:1470
2854
  msgid ""
2855
  "The &#8220;extension&#8221; is the file extension for this type, and a "
2856
  "unique key for the item. It must be all lowercase and contain only letters "
2857
  "and numbers."
2858
  msgstr ""
2859
 
2860
- #: includes/class-mla-settings.php:1472 includes/class-mla-settings.php:1837
2861
  msgid ""
2862
  "The MIME Type must be all lowercase and contain only letters, numbers, "
2863
  "periods (.), slashes (/) and hyphens (-). It <strong>must be a valid MIME</"
2864
  "strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
2865
  msgstr ""
2866
 
2867
- #: includes/class-mla-settings.php:1473 includes/class-mla-settings.php:1838
2868
  msgid "Icon Type"
2869
  msgstr ""
2870
 
2871
- #: includes/class-mla-settings.php:1475 includes/class-mla-settings.php:1839
2872
  msgid ""
2873
  "The Icon Type selects a thumbnail image displayed for non-image file types, "
2874
  "such as PDF documents."
2875
  msgstr ""
2876
 
2877
- #: includes/class-mla-settings.php:1476 includes/class-mla-settings.php:1840
2878
  msgid "Inactive"
2879
  msgstr ""
2880
 
2881
- #: includes/class-mla-settings.php:1477 includes/class-mla-settings.php:1841
2882
  msgid ""
2883
  "Check this box if you want to remove this entry from the list of Upload MIME "
2884
  "Types returned by get_allowed_mime_types()."
2885
  msgstr ""
2886
 
2887
- #: includes/class-mla-settings.php:1548
2888
  msgid "Known File Extension/MIME Type Associations"
2889
  msgstr ""
2890
 
2891
- #: includes/class-mla-settings.php:1550
2892
  msgid "Search Known MIME Types"
2893
  msgstr ""
2894
 
2895
- #: includes/class-mla-settings.php:1552 includes/class-mla-settings.php:1827
2896
  msgid "To search by extension, use \".\", e.g., \".doc\""
2897
  msgstr ""
2898
 
2899
- #: includes/class-mla-settings.php:1778
2900
  msgid "Upload MIME Type Support is disabled"
2901
  msgstr ""
2902
 
2903
- #: includes/class-mla-settings.php:1821 includes/class-mla-settings.php:1824
2904
  msgid "File Extension and MIME Type Processing"
2905
  msgstr ""
2906
 
2907
- #: includes/class-mla-settings.php:1822
2908
  msgid ""
2909
  "In this tab you can manage the list of file extension/MIME Type "
2910
  "associations, which are used by WordPress to decide what kind of files can "
@@ -2914,7 +3072,7 @@ msgid ""
2914
  msgstr ""
2915
 
2916
  #. translators: 1: Documentation hyperlink
2917
- #: includes/class-mla-settings.php:1824
2918
  #, php-format
2919
  msgid ""
2920
  "You can find more information about file extensions, MIME types and how "
@@ -2922,56 +3080,56 @@ msgid ""
2922
  "the <strong>\"Help\"</strong> tab in the upper-right corner of this screen."
2923
  msgstr ""
2924
 
2925
- #: includes/class-mla-settings.php:1824
2926
  msgid "File Extension Processing documentation"
2927
  msgstr ""
2928
 
2929
- #: includes/class-mla-settings.php:1826
2930
  msgid "Search Uploads"
2931
  msgstr ""
2932
 
2933
- #: includes/class-mla-settings.php:1832
2934
  msgid "Add New Upload MIME Type"
2935
  msgstr ""
2936
 
2937
- #: includes/class-mla-settings.php:1833
2938
  msgid ""
2939
  "To search the database of over 1,500 known extension/type associations, "
2940
  "click \"Search Known Types\" below the form."
2941
  msgstr ""
2942
 
2943
- #: includes/class-mla-settings.php:1835
2944
  msgid ""
2945
  "The &#8220;extension&#8221; is the file extension for this type, and unique "
2946
  "key for the item. It must be all lowercase and contain only letters and "
2947
  "numbers."
2948
  msgstr ""
2949
 
2950
- #: includes/class-mla-settings.php:1844
2951
  msgid "Add Upload MIME Type"
2952
  msgstr ""
2953
 
2954
- #: includes/class-mla-settings.php:1846
2955
  msgid "Search Known Types"
2956
  msgstr ""
2957
 
2958
- #: includes/class-mla-settings.php:1852
2959
  msgid "Status"
2960
  msgstr ""
2961
 
2962
- #: includes/class-mla-settings.php:1854
2963
  msgid "Active"
2964
  msgstr ""
2965
 
2966
- #: includes/class-mla-settings.php:1907
2967
  msgid "MLA Gallery Options"
2968
  msgstr ""
2969
 
2970
- #: includes/class-mla-settings.php:1908
2971
  msgid "Go to Markup Templates"
2972
  msgstr ""
2973
 
2974
- #: includes/class-mla-settings.php:1909
2975
  msgid ""
2976
  "In this tab you can view the default style and markup templates. You can "
2977
  "also define additional templates and use the <code>mla_style</code> and "
@@ -2981,117 +3139,121 @@ msgid ""
2981
  "Changes\" at the bottom of this page."
2982
  msgstr ""
2983
 
2984
- #: includes/class-mla-settings.php:1912
2985
  msgid "Style Templates"
2986
  msgstr ""
2987
 
2988
- #: includes/class-mla-settings.php:1915
2989
  msgid "Markup Templates"
2990
  msgstr ""
2991
 
2992
- #: includes/class-mla-settings.php:1966
 
 
 
 
2993
  msgid ""
2994
  "This default template cannot be altered or deleted, but you can copy the "
2995
  "styles."
2996
  msgstr ""
2997
 
2998
- #: includes/class-mla-settings.php:1977 includes/class-mla-settings.php:2010
2999
- #: includes/class-mla-settings.php:2036
3000
  msgid "Styles"
3001
  msgstr ""
3002
 
3003
- #: includes/class-mla-settings.php:1981 includes/class-mla-settings.php:2014
3004
- #: includes/class-mla-settings.php:2040
3005
  msgid ""
3006
  "List of substitution parameters, e.g., [+selector+], on Documentation tab."
3007
  msgstr ""
3008
 
3009
- #: includes/class-mla-settings.php:1998 includes/class-mla-settings.php:2116
3010
  msgid "Delete this template"
3011
  msgstr ""
3012
 
3013
- #: includes/class-mla-settings.php:1999 includes/class-mla-settings.php:2117
3014
  msgid ""
3015
  "Check the box to delete this template when you press Update at the bottom of "
3016
  "the page."
3017
  msgstr ""
3018
 
3019
- #: includes/class-mla-settings.php:2025
3020
  msgid "Fill in a name and styles to add a new template."
3021
  msgstr ""
3022
 
3023
- #: includes/class-mla-settings.php:2060
3024
  msgid ""
3025
  "This default template cannot be altered or deleted, but you can copy the "
3026
  "markup."
3027
  msgstr ""
3028
 
3029
- #: includes/class-mla-settings.php:2072 includes/class-mla-settings.php:2129
3030
- #: includes/class-mla-settings.php:2179
3031
  msgid "Open"
3032
  msgstr ""
3033
 
3034
- #: includes/class-mla-settings.php:2076 includes/class-mla-settings.php:2133
3035
- #: includes/class-mla-settings.php:2183
3036
  msgid ""
3037
  "Markup for the beginning of the gallery. List of parameters, e.g., [+selector"
3038
  "+], on Documentation tab."
3039
  msgstr ""
3040
 
3041
- #: includes/class-mla-settings.php:2078 includes/class-mla-settings.php:2135
3042
- #: includes/class-mla-settings.php:2185
3043
  msgid "Row"
3044
  msgstr ""
3045
 
3046
- #: includes/class-mla-settings.php:2082 includes/class-mla-settings.php:2189
3047
  msgid "Markup for the beginning of each row in the gallery."
3048
  msgstr ""
3049
 
3050
- #: includes/class-mla-settings.php:2084 includes/class-mla-settings.php:2141
3051
- #: includes/class-mla-settings.php:2191
3052
  msgid "Item"
3053
  msgstr ""
3054
 
3055
- #: includes/class-mla-settings.php:2088 includes/class-mla-settings.php:2195
3056
  msgid "Markup for each item/cell of the gallery."
3057
  msgstr ""
3058
 
3059
- #: includes/class-mla-settings.php:2090 includes/class-mla-settings.php:2147
3060
- #: includes/class-mla-settings.php:2197
3061
  msgid "Close"
3062
  msgstr ""
3063
 
3064
- #: includes/class-mla-settings.php:2094 includes/class-mla-settings.php:2201
3065
  msgid "Markup for the end of each row in the gallery."
3066
  msgstr ""
3067
 
3068
- #: includes/class-mla-settings.php:2099 includes/class-mla-settings.php:2156
3069
- #: includes/class-mla-settings.php:2206
3070
  msgid "Markup for the end of the gallery."
3071
  msgstr ""
3072
 
3073
- #: includes/class-mla-settings.php:2139
3074
  msgid "Markup for the beginning of each row."
3075
  msgstr ""
3076
 
3077
- #: includes/class-mla-settings.php:2145
3078
  msgid "Markup for each item/cell."
3079
  msgstr ""
3080
 
3081
- #: includes/class-mla-settings.php:2151
3082
  msgid "Markup for the end of each row."
3083
  msgstr ""
3084
 
3085
- #: includes/class-mla-settings.php:2167
3086
  msgid "Fill in a name and markup to add a new template."
3087
  msgstr ""
3088
 
3089
- #: includes/class-mla-settings.php:2301 includes/class-mla-settings.php:2305
3090
  msgid "Custom Field and Attachment Metadata Processing Options"
3091
  msgstr ""
3092
 
3093
  #. translators: 1: Documentation hyperlink
3094
- #: includes/class-mla-settings.php:2303
3095
  #, php-format
3096
  msgid ""
3097
  "In this tab you can define the rules for mapping several types of image "
@@ -3101,36 +3263,36 @@ msgid ""
3101
  "field. See the %1$s section of the Documentation for details."
3102
  msgstr ""
3103
 
3104
- #: includes/class-mla-settings.php:2303
3105
  msgid "Updating Attachment Metadata Documentation"
3106
  msgstr ""
3107
 
3108
- #: includes/class-mla-settings.php:2303
3109
  msgid "Adding or changing Attachment Metadata"
3110
  msgstr ""
3111
 
3112
  #. translators: 1: Documentation hyperlink
3113
- #: includes/class-mla-settings.php:2305 includes/class-mla-settings.php:2421
3114
  #, php-format
3115
  msgid ""
3116
  "You can find more information about using the controls in this tab to define "
3117
  "mapping rules and apply them in the %1$s section of the Documentation."
3118
  msgstr ""
3119
 
3120
- #: includes/class-mla-settings.php:2305
3121
  msgid "Custom Field Options documentation"
3122
  msgstr ""
3123
 
3124
- #: includes/class-mla-settings.php:2309 includes/class-mla-settings.php:2431
3125
  msgid "Custom field mapping"
3126
  msgstr ""
3127
 
3128
- #: includes/class-mla-settings.php:2312 includes/class-mla-settings.php:2316
3129
  msgid "Map All Rules, All Attachments Now"
3130
  msgstr ""
3131
 
3132
  #. translators: 1: "Save Changes"
3133
- #: includes/class-mla-settings.php:2314
3134
  #, php-format
3135
  msgid ""
3136
  "Click %1$s to update the \"Enable custom field mapping...\" checkbox and/or "
@@ -3139,18 +3301,18 @@ msgid ""
3139
  msgstr ""
3140
 
3141
  #. translators: 1: "Map All Rules..."
3142
- #: includes/class-mla-settings.php:2316
3143
  #, php-format
3144
  msgid ""
3145
  "Click %1$s to apply all the rules at once (rule changes will be applied but "
3146
  "not saved)."
3147
  msgstr ""
3148
 
3149
- #: includes/class-mla-settings.php:2418 includes/class-mla-settings.php:2421
3150
  msgid "IPTC &amp; EXIF Processing Options"
3151
  msgstr ""
3152
 
3153
- #: includes/class-mla-settings.php:2419
3154
  msgid ""
3155
  "In this tab you can define the rules for mapping IPTC (International Press "
3156
  "Telecommunications Council) and EXIF (EXchangeable Image File) metadata to "
@@ -3159,32 +3321,32 @@ msgid ""
3159
  "click \"Save Changes\" at the bottom of this page."
3160
  msgstr ""
3161
 
3162
- #: includes/class-mla-settings.php:2421
3163
  msgid "IPTC/EXIF Options documentation"
3164
  msgstr ""
3165
 
3166
- #: includes/class-mla-settings.php:2425
3167
  msgid "Standard field mapping"
3168
  msgstr ""
3169
 
3170
- #: includes/class-mla-settings.php:2426
3171
  msgid "Map All Attachments, Standard Fields Now"
3172
  msgstr ""
3173
 
3174
- #: includes/class-mla-settings.php:2428
3175
  msgid "Taxonomy term mapping"
3176
  msgstr ""
3177
 
3178
- #: includes/class-mla-settings.php:2429
3179
  msgid "Map All Attachments, Taxonomy Terms Now"
3180
  msgstr ""
3181
 
3182
- #: includes/class-mla-settings.php:2432
3183
  msgid "Map All Attachments, Custom Fields Now"
3184
  msgstr ""
3185
 
3186
  #. translators: 1: "Save Changes"
3187
- #: includes/class-mla-settings.php:2436
3188
  #, php-format
3189
  msgid ""
3190
  "Click %1$s to update the \"Enable IPTC/EXIF mapping...\" checkbox and/or all "
@@ -3192,159 +3354,159 @@ msgid ""
3192
  "performed.</strong>"
3193
  msgstr ""
3194
 
3195
- #: includes/class-mla-settings.php:2496
3196
  msgid "Media Library Assistant - Error"
3197
  msgstr ""
3198
 
3199
- #: includes/class-mla-settings.php:2497
3200
  msgid "You do not have permission to manage plugin settings."
3201
  msgstr ""
3202
 
3203
- #: includes/class-mla-settings.php:2524
3204
  msgid "ERROR: Cannot render content tab"
3205
  msgstr ""
3206
 
3207
- #: includes/class-mla-settings.php:2527
3208
  msgid "ERROR: Unknown content tab"
3209
  msgstr ""
3210
 
3211
  #. translators: 1: template type 2: template name
3212
- #: includes/class-mla-settings.php:2607 includes/class-mla-settings.php:2697
3213
  #, php-format
3214
  msgctxt "message_list"
3215
  msgid "Deleting %1$s \"%2$s\"."
3216
  msgstr ""
3217
 
3218
  #. translators: 1: template name 2: template type
3219
- #: includes/class-mla-settings.php:2618 includes/class-mla-settings.php:2710
3220
  #, php-format
3221
  msgid "ERROR: Reserved name \"%1$s\", new %2$s discarded."
3222
  msgstr ""
3223
 
3224
  #. translators: 1: template name 2: template type
3225
- #: includes/class-mla-settings.php:2624 includes/class-mla-settings.php:2716
3226
  #, php-format
3227
  msgid "ERROR: Duplicate name \"%1$s\", new %2$s discarded."
3228
  msgstr ""
3229
 
3230
  #. translators: 1: template type 2: template name
3231
- #: includes/class-mla-settings.php:2628 includes/class-mla-settings.php:2720
3232
  #, php-format
3233
  msgctxt "message_list"
3234
  msgid "Adding new %1$s \"%2$s\"."
3235
  msgstr ""
3236
 
3237
  #. translators: 1: element name 3: old value
3238
- #: includes/class-mla-settings.php:2638 includes/class-mla-settings.php:2730
3239
  #, php-format
3240
  msgid "ERROR: Blank %1$s, reverting to \"%3$s\"."
3241
  msgstr ""
3242
 
3243
- #: includes/class-mla-settings.php:2638 includes/class-mla-settings.php:2646
3244
- #: includes/class-mla-settings.php:2650
3245
  msgid "style template name"
3246
  msgstr ""
3247
 
3248
  #. translators: 1: element name 2: new value 3: old value
3249
- #: includes/class-mla-settings.php:2646 includes/class-mla-settings.php:2737
3250
  #, php-format
3251
  msgid "ERROR: Duplicate new %1$s \"%2$s\", reverting to \"%3$s\"."
3252
  msgstr ""
3253
 
3254
  #. translators: 1: element name 2: old_value 3: new_value
3255
- #: includes/class-mla-settings.php:2650 includes/class-mla-settings.php:2741
3256
  #, php-format
3257
  msgctxt "message_list"
3258
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
3259
  msgstr ""
3260
 
3261
  #. translators: 1: template type 2: template name
3262
- #: includes/class-mla-settings.php:2657
3263
  #, php-format
3264
  msgctxt "message_list"
3265
  msgid "Updating contents of %1$s \"%2$s\"."
3266
  msgstr ""
3267
 
3268
  #. translators: 1: template type
3269
- #: includes/class-mla-settings.php:2668 includes/class-mla-settings.php:2789
3270
  #, php-format
3271
  msgid "ERROR: Update of %1$s failed."
3272
  msgstr ""
3273
 
3274
- #: includes/class-mla-settings.php:2730 includes/class-mla-settings.php:2737
3275
- #: includes/class-mla-settings.php:2741
3276
  msgid "markup template name"
3277
  msgstr ""
3278
 
3279
  #. translators: 1: template name
3280
- #: includes/class-mla-settings.php:2749
3281
  #, php-format
3282
  msgctxt "message_list"
3283
  msgid "Updating open markup for \"%1$s\"."
3284
  msgstr ""
3285
 
3286
  #. translators: 1: template name
3287
- #: includes/class-mla-settings.php:2755
3288
  #, php-format
3289
  msgctxt "message_list"
3290
  msgid "Updating row open markup for \"%1$s\"."
3291
  msgstr ""
3292
 
3293
  #. translators: 1: template name
3294
- #: includes/class-mla-settings.php:2761
3295
  #, php-format
3296
  msgctxt "message_list"
3297
  msgid "Updating item markup for \"%1$s\"."
3298
  msgstr ""
3299
 
3300
  #. translators: 1: template name
3301
- #: includes/class-mla-settings.php:2767
3302
  #, php-format
3303
  msgctxt "message_list"
3304
  msgid "Updating row close markup for \"%1$s\"."
3305
  msgstr ""
3306
 
3307
  #. translators: 1: template name
3308
- #: includes/class-mla-settings.php:2773
3309
  #, php-format
3310
  msgctxt "message_list"
3311
  msgid "Updating close markup for \"%1$s\"."
3312
  msgstr ""
3313
 
3314
  #. translators: 1: field type
3315
- #: includes/class-mla-settings.php:2798
3316
  #, php-format
3317
  msgid "%1$s no changes detected."
3318
  msgstr ""
3319
 
3320
- #: includes/class-mla-settings.php:2833
3321
  msgid "View settings saved."
3322
  msgstr ""
3323
 
3324
- #: includes/class-mla-settings.php:2867
3325
  msgid "Upload MIME Type settings saved."
3326
  msgstr ""
3327
 
3328
- #: includes/class-mla-settings.php:2905
3329
  msgid "ERROR: No custom field mapping rules to process."
3330
  msgstr ""
3331
 
3332
  #. translators: 1: field type 2: examined count 3: updated count
3333
- #: includes/class-mla-settings.php:2928 includes/class-mla-settings.php:3053
3334
- #: includes/class-mla-settings.php:3111 includes/class-mla-settings.php:3181
3335
  #, php-format
3336
  msgid "%1$s mapping completed; %2$d attachment(s) examined, %3$d updated."
3337
  msgstr ""
3338
 
3339
  #. translators: 1: field type 2: examined count
3340
- #: includes/class-mla-settings.php:2931 includes/class-mla-settings.php:3056
3341
- #: includes/class-mla-settings.php:3114 includes/class-mla-settings.php:3184
3342
  #, php-format
3343
  msgid ""
3344
  "%1$s mapping completed; %2$d attachment(s) examined, no changes detected."
3345
  msgstr ""
3346
 
3347
- #: includes/class-mla-settings.php:2958
3348
  #, php-format
3349
  msgid "%s attachment"
3350
  msgid_plural "%s attachments"
@@ -3352,369 +3514,373 @@ msgstr[0] ""
3352
  msgstr[1] ""
3353
 
3354
  #. translators: 1: number of attachments
3355
- #: includes/class-mla-settings.php:2960
3356
  #, php-format
3357
  msgid "Deleted custom field value from %1$s."
3358
  msgstr ""
3359
 
3360
- #: includes/class-mla-settings.php:2963
3361
  msgid "No attachments contained this custom field."
3362
  msgstr ""
3363
 
3364
  #. translators: 1: field type
3365
- #: includes/class-mla-settings.php:3021 includes/class-mla-settings.php:3079
3366
- #: includes/class-mla-settings.php:3149
3367
  #, php-format
3368
  msgid "ERROR: No %1$s settings to process."
3369
  msgstr ""
3370
 
3371
- #: includes/class-mla-settings.php:3045 includes/class-mla-settings.php:3103
3372
- #: includes/class-mla-settings.php:3173
3373
  msgid "updated."
3374
  msgstr ""
3375
 
3376
  #. translators: 1: reference type, e.g., Gallery in
3377
- #: includes/class-mla-settings.php:3274 includes/class-mla-settings.php:3284
3378
  #, php-format
3379
  msgctxt "message_list"
3380
  msgid "%1$s - references updated."
3381
  msgstr ""
3382
 
3383
- #: includes/class-mla-settings.php:3297
3384
  msgid "General settings saved."
3385
  msgstr ""
3386
 
3387
  #. translators: 1: option name
3388
- #: includes/class-mla-settings.php:3328
3389
  #, php-format
3390
  msgctxt "message_list"
3391
  msgid "delete_option \"%1$s\""
3392
  msgstr ""
3393
 
3394
- #: includes/class-mla-settings.php:3336
3395
  msgid "General settings reset to default values."
3396
  msgstr ""
3397
 
3398
- #: includes/class-mla-settings.php:3378
3399
  msgid "select settings"
3400
  msgstr ""
3401
 
3402
- #: includes/class-mla-settings.php:3398
3403
  msgid "Import ALL Settings"
3404
  msgstr ""
3405
 
3406
- #: includes/class-mla-settings.php:3423
3407
  msgctxt "message_list"
3408
  msgid "exported"
3409
  msgstr ""
3410
 
3411
- #: includes/class-mla-settings.php:3425
3412
  msgctxt "message_list"
3413
  msgid "skipped"
3414
  msgstr ""
3415
 
3416
- #: includes/class-mla-settings.php:3432
3417
  msgid "ALL settings exported."
3418
  msgstr ""
3419
 
3420
  #. translators: 1: backup directory name
3421
- #: includes/class-mla-settings.php:3443
3422
  #, php-format
3423
  msgid "ERROR: The settings directory ( %1$s ) cannot be created."
3424
  msgstr ""
3425
 
3426
  #. translators: 1: backup directory name
3427
- #: includes/class-mla-settings.php:3447
3428
  #, php-format
3429
  msgid "ERROR: The settings directory ( %1$s ) is not writable."
3430
  msgstr ""
3431
 
3432
  #. translators: 1: backup file name
3433
- #: includes/class-mla-settings.php:3458
3434
  #, php-format
3435
  msgid "ERROR: The settings file ( %1$s ) could not be opened."
3436
  msgstr ""
3437
 
3438
  #. translators: 1: PHP error information
3439
- #: includes/class-mla-settings.php:3465
3440
  #, php-format
3441
  msgctxt "error_log"
3442
  msgid "ERROR: _export_settings $error_info = \"%1$s\"."
3443
  msgstr ""
3444
 
3445
  #. translators: 1: backup file name 2: error message
3446
- #: includes/class-mla-settings.php:3474
3447
  #, php-format
3448
  msgid "ERROR: Writing the settings file ( %1$s ) \"%2$s\"."
3449
  msgstr ""
3450
 
3451
  #. translators: 1: number of option settings
3452
- #: includes/class-mla-settings.php:3480
3453
  #, php-format
3454
  msgid "Settings exported; %1$s settings recorded."
3455
  msgstr ""
3456
 
3457
- #: includes/class-mla-settings.php:3498
3458
  msgid "No settings imported."
3459
  msgstr ""
3460
 
3461
- #: includes/class-mla-settings.php:3507
3462
  msgid "Please select an import settings file from the dropdown list."
3463
  msgstr ""
3464
 
3465
- #: includes/class-mla-settings.php:3511
3466
  msgid "ERROR: The import settings dropdown selection is missing."
3467
  msgstr ""
3468
 
3469
  #. translators: 1: PHP error information
3470
- #: includes/class-mla-settings.php:3519
3471
  #, php-format
3472
  msgctxt "error_log"
3473
  msgid "ERROR: _import_settings $error_info = \"%1$s\"."
3474
  msgstr ""
3475
 
3476
  #. translators: 1: backup file name 2: error message
3477
- #: includes/class-mla-settings.php:3528
3478
  #, php-format
3479
  msgid "ERROR: Reading the settings file ( %1$s ) \"%2$s\"."
3480
  msgstr ""
3481
 
3482
- #: includes/class-mla-settings.php:3538
3483
  msgctxt "message_list"
3484
  msgid "updated"
3485
  msgstr ""
3486
 
3487
- #: includes/class-mla-settings.php:3541
3488
  msgctxt "message_list"
3489
  msgid "unchanged"
3490
  msgstr ""
3491
 
3492
  #. translators: 1: number of option settings updated 2: number of option settings unchanged
3493
- #: includes/class-mla-settings.php:3546
3494
  #, php-format
3495
  msgid "Settings imported; %1$s updated, %2$s unchanged."
3496
  msgstr ""
3497
 
3498
- #: includes/class-mla-shortcodes.php:243
3499
- #: includes/class-mla-shortcodes.php:1128
3500
- #: includes/class-mla-shortcodes.php:1956
3501
- #: includes/class-mla-shortcodes.php:2221
3502
  msgid "Previous"
3503
  msgstr ""
3504
 
3505
- #: includes/class-mla-shortcodes.php:244
3506
- #: includes/class-mla-shortcodes.php:1129
3507
- #: includes/class-mla-shortcodes.php:2003
3508
- #: includes/class-mla-shortcodes.php:2227
3509
  msgid "Next"
3510
  msgstr ""
3511
 
3512
- #: includes/class-mla-shortcodes.php:319
3513
  msgid "mla_debug empty gallery"
3514
  msgstr ""
3515
 
3516
- #: includes/class-mla-shortcodes.php:383
3517
  msgid ""
3518
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
3519
  "<strong>default</strong>, query = "
3520
  msgstr ""
3521
 
3522
- #: includes/class-mla-shortcodes.php:693
3523
  msgid "unattached"
3524
  msgstr ""
3525
 
3526
- #: includes/class-mla-shortcodes.php:714
3527
  msgid "unknown"
3528
  msgstr ""
3529
 
3530
- #: includes/class-mla-shortcodes.php:1226
3531
  msgid "mla_debug attributes"
3532
  msgstr ""
3533
 
3534
- #: includes/class-mla-shortcodes.php:1227
3535
  msgid "mla_debug arguments"
3536
  msgstr ""
3537
 
3538
- #: includes/class-mla-shortcodes.php:1311
3539
  msgid "mla_debug empty cloud"
3540
  msgstr ""
3541
 
3542
- #: includes/class-mla-shortcodes.php:2549
3543
- #: includes/class-mla-shortcodes.php:2788
3544
  msgid "ERROR: Invalid mla_gallery"
3545
  msgstr ""
3546
 
3547
- #: includes/class-mla-shortcodes.php:2915
3548
  msgid "mla_debug query"
3549
  msgstr ""
3550
 
3551
- #: includes/class-mla-shortcodes.php:2916
3552
  msgid "mla_debug request"
3553
  msgstr ""
3554
 
3555
- #: includes/class-mla-shortcodes.php:2917
3556
  msgid "mla_debug query_vars"
3557
  msgstr ""
3558
 
3559
- #: includes/class-mla-shortcodes.php:2918
3560
  msgid "mla_debug post_count"
3561
  msgstr ""
3562
 
3563
- #: includes/class-mla-shortcodes.php:2944
3564
  msgid "mla_debug WHERE filter"
3565
  msgstr ""
3566
 
3567
- #: includes/class-mla-shortcodes.php:2963
3568
  msgid "mla_debug modified WHERE filter"
3569
  msgstr ""
3570
 
3571
- #: includes/class-mla-shortcodes.php:2985
3572
  msgid "mla_debug ORDER BY filter, incoming"
3573
  msgstr ""
3574
 
3575
- #: includes/class-mla-shortcodes.php:2985
3576
  msgid "Replacement ORDER BY clause"
3577
  msgstr ""
3578
 
3579
- #: includes/class-mla-shortcodes.php:3008
3580
  msgid "mla_debug posts_clauses filter"
3581
  msgstr ""
3582
 
3583
- #: includes/class-mla-shortcodes.php:3026
3584
  msgid "mla_debug posts_clauses_request filter"
3585
  msgstr ""
3586
 
3587
- #: includes/class-mla-shortcodes.php:3131
3588
  msgid "Invalid taxonomy"
3589
  msgstr ""
3590
 
3591
- #: includes/class-mla-shortcodes.php:3264
3592
  msgid "mla_debug query arguments"
3593
  msgstr ""
3594
 
3595
- #: includes/class-mla-shortcodes.php:3265
3596
  msgid "mla_debug last_query"
3597
  msgstr ""
3598
 
3599
- #: includes/class-mla-shortcodes.php:3266
3600
  msgid "mla_debug last_error"
3601
  msgstr ""
3602
 
3603
- #: includes/class-mla-shortcodes.php:3267
3604
  msgid "mla_debug num_rows"
3605
  msgstr ""
3606
 
3607
- #: includes/class-mla-shortcodes.php:3268
3608
  msgid "mla_debug found_rows"
3609
  msgstr ""
3610
 
3611
- #: includes/class-mla-upload-list-table.php:180
3612
- #: includes/class-mla-upload-optional-list-table.php:170
3613
  msgctxt "list_table_column"
3614
  msgid "Extension"
3615
  msgstr ""
3616
 
3617
- #: includes/class-mla-upload-list-table.php:182
3618
  msgctxt "list_table_column"
3619
  msgid "Icon Type"
3620
  msgstr ""
3621
 
3622
- #: includes/class-mla-upload-list-table.php:183
3623
  msgctxt "list_table_column"
3624
  msgid "Source"
3625
  msgstr ""
3626
 
3627
- #: includes/class-mla-upload-list-table.php:184
3628
  msgctxt "list_table_column"
3629
  msgid "Status"
3630
  msgstr ""
3631
 
3632
- #: includes/class-mla-upload-list-table.php:185
3633
- #: includes/class-mla-upload-optional-list-table.php:172
3634
  msgctxt "list_table_column"
3635
  msgid "WordPress Type"
3636
  msgstr ""
3637
 
3638
- #: includes/class-mla-upload-list-table.php:186
3639
- #: includes/class-mla-upload-optional-list-table.php:173
3640
  msgctxt "list_table_column"
3641
  msgid "MLA Type"
3642
  msgstr ""
3643
 
3644
- #: includes/class-mla-upload-list-table.php:187
3645
  msgctxt "list_table_column"
3646
  msgid "Std. Source"
3647
  msgstr ""
3648
 
3649
- #: includes/class-mla-upload-list-table.php:188
3650
  msgctxt "list_table_column"
3651
  msgid "Std. Icon Type"
3652
  msgstr ""
3653
 
3654
- #: includes/class-mla-upload-list-table.php:326
3655
- #: includes/class-mla-view-list-table.php:313
3656
  msgid "Revert to standard item"
3657
  msgstr ""
3658
 
3659
- #: includes/class-mla-upload-list-table.php:326
3660
- #: includes/class-mla-view-list-table.php:313
3661
  msgid "Revert to Standard"
3662
  msgstr ""
3663
 
3664
- #: includes/class-mla-upload-list-table.php:421
3665
  msgid "inactive"
3666
  msgstr ""
3667
 
3668
- #: includes/class-mla-upload-list-table.php:423
3669
  msgid "active"
3670
  msgstr ""
3671
 
3672
- #: includes/class-mla-upload-list-table.php:619
3673
  msgid "Delete/Revert Custom"
3674
  msgstr ""
3675
 
3676
- #: includes/class-mla-upload-optional-list-table.php:286
3677
  msgid "Select this entry"
3678
  msgstr ""
3679
 
3680
- #: includes/class-mla-upload-optional-list-table.php:286
3681
  msgid "Select"
3682
  msgstr ""
3683
 
3684
- #: includes/class-mla-upload-optional-list-table.php:421
3685
  msgid "Select these entries"
3686
  msgstr ""
3687
 
3688
- #: includes/class-mla-view-list-table.php:176
3689
  msgctxt "list_table_column"
3690
  msgid "Specification"
3691
  msgstr ""
3692
 
3693
- #: includes/class-mla-view-list-table.php:177
3694
  msgctxt "list_table_column"
3695
  msgid "Post Mime"
3696
  msgstr ""
3697
 
3698
- #: includes/class-mla-view-list-table.php:178
3699
  msgctxt "list_table_column"
3700
  msgid "Table View"
3701
  msgstr ""
3702
 
3703
- #: includes/class-mla-view-list-table.php:179
3704
  msgctxt "list_table_column"
3705
  msgid "Singular Name"
3706
  msgstr ""
3707
 
3708
- #: includes/class-mla-view-list-table.php:180
3709
  msgctxt "list_table_column"
3710
  msgid "Plural Name"
3711
  msgstr ""
3712
 
3713
- #: includes/class-mla-view-list-table.php:181
3714
  msgctxt "list_table_column"
3715
  msgid "Order"
3716
  msgstr ""
3717
 
 
 
 
 
3718
  #: includes/mla-plugin-loader.php:34
3719
  msgid "The Media Library Assistant cannot load."
3720
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Media Library Assistant\n"
4
+ "POT-Creation-Date: 2014-03-28 14:58-0800\n"
5
+ "PO-Revision-Date: 2014-03-28 14:59-0800\n"
6
  "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
7
  "Language-Team: David Lingren <david@fairtradejudaica.org>\n"
8
  "Language: en_US\n"
80
  msgstr ""
81
 
82
  #. translators: 1: template excerpt
83
+ #: includes/class-mla-data.php:1055
84
  #, php-format
85
  msgctxt "error_log"
86
  msgid ""
89
  msgstr ""
90
 
91
  #. translators: 1: function name 2: non-array value
92
+ #: includes/class-mla-data.php:1253 includes/class-mla-main.php:1321
93
  #: includes/class-mla-mime-types.php:483
94
  #: includes/class-mla-mime-types.php:1218
95
+ #: includes/class-mla-mime-types.php:2355 includes/class-mla-settings.php:1162
96
+ #: includes/class-mla-settings.php:1609
97
  #, php-format
98
  msgctxt "error_log"
99
  msgid "ERROR: %1$s non-array \"%2$s\""
100
  msgstr ""
101
 
102
  #. translators: 1: query filter details
103
+ #: includes/class-mla-data.php:1630
104
  #, php-format
105
  msgid "_execute_list_table_query $wp_filter = \"%1$s\"."
106
  msgstr ""
107
 
108
  #. translators: 1: query filter details
109
+ #: includes/class-mla-data.php:1633
110
  #, php-format
111
  msgctxt "error_log"
112
  msgid "DEBUG: _execute_list_table_query $wp_filter = \"%1$s\"."
113
  msgstr ""
114
 
115
  #. translators: 1: query details
116
+ #: includes/class-mla-data.php:1650
117
  #, php-format
118
  msgid "_execute_list_table_query WP_Query = \"%1$s\"."
119
  msgstr ""
120
 
121
+ #. translators: 1: SQL statement
122
+ #: includes/class-mla-data.php:1652
123
+ #, php-format
124
+ msgid "_execute_list_table_query SQL_request = \"%1$s\"."
125
+ msgstr ""
126
+
127
  #. translators: 1: query details
128
+ #: includes/class-mla-data.php:1655
129
  #, php-format
130
  msgctxt "error_log"
131
  msgid "DEBUG: _execute_list_table_query WP_Query = \"%1$s\"."
132
  msgstr ""
133
 
134
+ #. translators: 1: SQL statement
135
+ #: includes/class-mla-data.php:1657
136
  #, php-format
137
+ msgctxt "error_log"
138
+ msgid "DEBUG: _execute_list_table_query SQL_request = \"%1$s\"."
139
  msgstr ""
140
 
141
+ #. translators: 1: search box details
142
+ #: includes/class-mla-data.php:1795
143
+ #, php-format
144
+ msgid "mla_query_posts_search_filter not numeric, = \"%1$s\"."
145
+ msgstr ""
146
+
147
+ #. translators: 1: search box details
148
+ #: includes/class-mla-data.php:1798
149
  #, php-format
150
  msgctxt "error_log"
151
+ msgid "DEBUG: mla_query_posts_search_filter not numeric, = \"%1$s\"."
152
  msgstr ""
153
 
154
  #. translators: 1: search box details
155
+ #: includes/class-mla-data.php:1839
156
  #, php-format
157
+ msgid "mla_query_posts_join_filter = \"%1$s\"."
158
  msgstr ""
159
 
160
  #. translators: 1: search box details
161
+ #: includes/class-mla-data.php:1842
162
  #, php-format
163
  msgctxt "error_log"
164
+ msgid "DEBUG: mla_query_posts_join_filter = \"%1$s\"."
165
+ msgstr ""
166
+
167
+ #. translators: 1: search box details
168
+ #: includes/class-mla-data.php:1904
169
+ #, php-format
170
+ msgid "mla_query_posts_where_filter = \"%1$s\"."
171
+ msgstr ""
172
+
173
+ #. translators: 1: search box details
174
+ #: includes/class-mla-data.php:1907
175
+ #, php-format
176
+ msgctxt "error_log"
177
+ msgid "DEBUG: mla_query_posts_where_filter = \"%1$s\"."
178
+ msgstr ""
179
+
180
+ #. translators: 1: search box details
181
+ #: includes/class-mla-data.php:1984
182
+ #, php-format
183
+ msgid "mla_query_posts_orderby_filter = \"%1$s\"."
184
+ msgstr ""
185
+
186
+ #. translators: 1: search box details
187
+ #: includes/class-mla-data.php:1987
188
+ #, php-format
189
+ msgctxt "error_log"
190
+ msgid "DEBUG: mla_query_posts_orderby_filter = \"%1$s\"."
191
+ msgstr ""
192
+
193
+ #. translators: 1: SQL clauses
194
+ #: includes/class-mla-data.php:2023
195
+ #, php-format
196
+ msgid "mla_query_posts_clauses_filter = \"%1$s\"."
197
+ msgstr ""
198
+
199
+ #. translators: 1: SQL clauses
200
+ #: includes/class-mla-data.php:2026
201
+ #, php-format
202
+ msgctxt "error_log"
203
+ msgid "DEBUG: mla_query_posts_clauses_filter = \"%1$s\"."
204
+ msgstr ""
205
+
206
+ #. translators: 1: SQL clauses
207
+ #: includes/class-mla-data.php:2047
208
+ #, php-format
209
+ msgid "mla_query_posts_clauses_request_filter = \"%1$s\"."
210
+ msgstr ""
211
+
212
+ #. translators: 1: SQL clauses
213
+ #: includes/class-mla-data.php:2050
214
+ #, php-format
215
+ msgctxt "error_log"
216
+ msgid "DEBUG: mla_query_posts_clauses_request_filter = \"%1$s\"."
217
  msgstr ""
218
 
219
  #. translators: 1: post ID
220
+ #: includes/class-mla-data.php:2082
221
  #, php-format
222
  msgctxt "error_log"
223
  msgid "ERROR: mla_get_attachment_by_id(%1$d) not found."
224
  msgstr ""
225
 
226
  #. translators: 1: post ID 2: post_type
227
+ #: includes/class-mla-data.php:2088
228
  #, php-format
229
  msgctxt "error_log"
230
  msgid "ERROR: mla_get_attachment_by_id(%1$d) wrong post_type \"%2$s\"."
231
  msgstr ""
232
 
233
+ #: includes/class-mla-data.php:2636 includes/class-mla-list-table.php:692
234
  msgid "NO REFERENCE TESTS"
235
  msgstr ""
236
 
237
+ #: includes/class-mla-data.php:2642 includes/class-mla-options.php:2329
238
+ #: includes/class-mla-options.php:2330
239
  msgid "ORPHAN"
240
  msgstr ""
241
 
242
+ #: includes/class-mla-data.php:2646
243
+ msgid "UNUSED"
244
  msgstr ""
245
 
246
+ #: includes/class-mla-data.php:2651
247
  msgid "UNATTACHED"
248
  msgstr ""
249
 
250
+ #: includes/class-mla-data.php:2653
251
  msgid "INVALID PARENT"
252
  msgstr ""
253
 
254
  #. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
255
+ #: includes/class-mla-data.php:2827
256
  #, php-format
257
  msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
258
  msgstr ""
259
 
260
  #. translators: 1: index
261
+ #: includes/class-mla-data.php:3073
262
  #, php-format
263
  msgctxt "error_log"
264
  msgid "ERROR: _build_pdf_indirect_objects bad value at $index = \"%1$d\"."
265
  msgstr ""
266
 
267
  #. translators: 1: source offset 2: nest level
268
+ #: includes/class-mla-data.php:3398
269
  #, php-format
270
  msgctxt "error_log"
271
  msgid "ERROR: _parse_pdf_dictionary offset = %1$d, nest = %2$d."
272
  msgstr ""
273
 
274
  #. translators: 1: dictionary excerpt
275
+ #: includes/class-mla-data.php:3400
276
  #, php-format
277
  msgctxt "error_log"
278
  msgid "ERROR: _parse_pdf_dictionary no end delimiter dump = %1$s."
279
  msgstr ""
280
 
281
  #. translators: 1: entry name 2: value excerpt
282
+ #: includes/class-mla-data.php:3446
283
  #, php-format
284
  msgctxt "error_log"
285
  msgid "ERROR: _parse_pdf_dictionary bad value [ %1$s ] dump = %2$s"
286
  msgstr ""
287
 
288
+ #: includes/class-mla-data.php:3560
289
  msgctxt "error_log"
290
  msgid "ERROR: _parse_xmp_metadata xml_parse_into_struct failed."
291
  msgstr ""
292
 
293
+ #: includes/class-mla-data.php:3563
294
  msgctxt "error_log"
295
  msgid "ERROR: _parse_xmp_metadata set option failed."
296
  msgstr ""
297
 
298
  #. translators: 1: path and file
299
+ #: includes/class-mla-data.php:3920
300
  #, php-format
301
  msgctxt "error_log"
302
  msgid "ERROR: File \"%1$s\", startxref not found."
303
  msgstr ""
304
 
305
  #. translators: 1: meta_key
306
+ #: includes/class-mla-data.php:4770
307
  #, php-format
308
  msgid "Deleting meta:%1$s"
309
  msgstr ""
310
 
311
  #. translators: 1: meta_key
312
+ #: includes/class-mla-data.php:4773
313
  #, php-format
314
  msgid "ERROR: meta:%1$s not found"
315
  msgstr ""
316
 
317
  #. translators: 1: meta_key 2: meta_value
318
+ #: includes/class-mla-data.php:4782
319
  #, php-format
320
  msgid "Adding meta:%1$s = %2$s"
321
  msgstr ""
322
 
323
  #. translators: 1: meta_key
324
+ #: includes/class-mla-data.php:4786
325
  #, php-format
326
  msgid "ERROR: Adding meta:%1$s; not found"
327
  msgstr ""
328
 
329
  #. translators: 1: meta_key
330
+ #: includes/class-mla-data.php:4793
331
  #, php-format
332
  msgid "Deleting Null meta:%1$s"
333
  msgstr ""
334
 
335
  #. translators: 1: element name 2: old_value 3: new_value
336
+ #: includes/class-mla-data.php:4803 includes/class-mla-data.php:4954
337
+ #: includes/class-mla-data.php:5015 includes/class-mla-data.php:5041
338
+ #: includes/class-mla-data.php:5075 includes/class-mla-data.php:5088
339
+ #: includes/class-mla-data.php:5097 includes/class-mla-data.php:5108
340
+ #: includes/class-mla-data.php:5119 includes/class-mla-data.php:5132
341
+ #: includes/class-mla-data.php:5141 includes/class-mla-data.php:5150
342
  #: includes/class-mla-mime-types.php:1052
343
+ #: includes/class-mla-mime-types.php:2119
344
  #, php-format
345
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
346
  msgstr ""
347
 
348
  #. translators: 1: meta_key
349
+ #: includes/class-mla-data.php:4808
350
  #, php-format
351
  msgid "ERROR: Changing meta:%1$s; not found"
352
  msgstr ""
353
 
354
  #. translators: 1: meta_key
355
+ #: includes/class-mla-data.php:4868
356
  #, php-format
357
  msgid "Deleting %1$s"
358
  msgstr ""
359
 
360
  #. translators: 1: meta_key 2: new_value
361
+ #: includes/class-mla-data.php:4879
362
  #, php-format
363
  msgid "Adding %1$s = [%2$s]"
364
  msgstr ""
365
 
366
  #. translators: 1: meta_key 2: meta_value
367
+ #: includes/class-mla-data.php:4885
368
  #, php-format
369
  msgid "Adding %1$s = %2$s"
370
  msgstr ""
371
 
372
  #. translators: 1: meta_key
373
+ #: includes/class-mla-data.php:4909
374
  #, php-format
375
  msgid "Deleting old %1$s values"
376
  msgstr ""
377
 
378
  #. translators: 1: meta_key 2: old_value 3: new_value 4: update count
379
+ #: includes/class-mla-data.php:4939
380
  #, php-format
381
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
382
  msgstr ""
383
 
384
+ #: includes/class-mla-data.php:4997 includes/class-mla-main.php:1598
385
  msgid "ERROR: Could not retrieve Attachment."
386
  msgstr ""
387
 
388
+ #: includes/class-mla-data.php:5015 includes/class-mla-main.php:1125
389
+ #: includes/class-mla-main.php:1127 includes/class-mla-main.php:1448
390
+ #: includes/class-mla-main.php:1816 includes/class-mla-objects.php:273
391
+ #: includes/class-mla-options.php:919
392
+ #: includes/mla-media-modal-js-template.php:32
393
  msgid "Title"
394
  msgstr ""
395
 
396
  #. translators: 1: old_value
397
+ #: includes/class-mla-data.php:5038
398
  #, php-format
399
  msgid "ERROR: Could not change Name/Slug \"%1$s\"; name already exists"
400
  msgstr ""
401
 
402
+ #: includes/class-mla-data.php:5041 includes/class-mla-main.php:1449
403
+ #: includes/class-mla-main.php:1819 includes/class-mla-options.php:926
404
  msgid "Name/Slug"
405
  msgstr ""
406
 
407
  #. translators: 1: old_value
408
+ #: includes/class-mla-data.php:5067
409
  #, php-format
410
  msgid "Deleting ALT Text, was \"%1$s\""
411
  msgstr ""
412
 
413
  #. translators: 1: old_value
414
+ #: includes/class-mla-data.php:5070
415
  #, php-format
416
  msgid "ERROR: Could not delete ALT Text, remains \"%1$s\""
417
  msgstr ""
418
 
419
+ #: includes/class-mla-data.php:5075 includes/class-mla-list-table.php:931
420
+ #: includes/class-mla-main.php:1137 includes/class-mla-main.php:1139
421
+ #: includes/class-mla-main.php:1452 includes/class-mla-main.php:1822
422
+ #: includes/class-mla-options.php:933
423
+ #: includes/mla-media-modal-js-template.php:41
424
  msgid "ALT Text"
425
  msgstr ""
426
 
427
  #. translators: 1: old_value 2: new_value
428
+ #: includes/class-mla-data.php:5078
429
  #, php-format
430
  msgid "ERROR: Could not change ALT Text from \"%1$s\" to \"%2$s\""
431
  msgstr ""
432
 
433
+ #: includes/class-mla-data.php:5088 includes/class-mla-main.php:1143
434
+ #: includes/class-mla-main.php:1145 includes/class-mla-main.php:1450
435
+ #: includes/class-mla-main.php:1825 includes/class-mla-options.php:940
436
+ #: includes/mla-media-modal-js-template.php:45
437
  msgid "Caption"
438
  msgstr ""
439
 
440
+ #: includes/class-mla-data.php:5097 includes/class-mla-main.php:1149
441
+ #: includes/class-mla-main.php:1151 includes/class-mla-main.php:1451
442
+ #: includes/class-mla-main.php:1827 includes/class-mla-options.php:947
443
+ #: includes/class-mla-settings.php:1128 includes/class-mla-settings.php:1385
444
+ #: includes/class-mla-settings.php:1484 includes/class-mla-settings.php:1848
445
+ #: includes/mla-media-modal-js-template.php:49
446
  msgid "Description"
447
  msgstr ""
448
 
449
+ #: includes/class-mla-data.php:5108 includes/class-mla-list-table.php:666
450
+ #: includes/class-mla-list-table.php:758 includes/class-mla-options.php:3751
451
+ #: includes/class-mla-options.php:4091
452
  msgid "Parent"
453
  msgstr ""
454
 
455
+ #: includes/class-mla-data.php:5119 includes/class-mla-edit-media.php:284
456
+ #: includes/class-mla-edit-media.php:410 includes/class-mla-main.php:1454
457
+ #: includes/class-mla-main.php:1833 includes/class-mla-settings.php:1126
458
+ #: includes/class-mla-settings.php:1383
459
  msgid "Menu Order"
460
  msgstr ""
461
 
462
+ #: includes/class-mla-data.php:5132 includes/class-mla-list-table.php:1080
463
+ #: includes/class-mla-main.php:1327 includes/class-mla-main.php:1429
464
+ #: includes/class-mla-main.php:1647
465
  msgid "Author"
466
  msgstr ""
467
 
468
+ #: includes/class-mla-data.php:5141 includes/class-mla-main.php:1465
469
+ msgid "Comments"
470
+ msgstr ""
471
+
472
+ #: includes/class-mla-data.php:5150 includes/class-mla-main.php:1466
473
+ msgid "Pings"
474
+ msgstr ""
475
+
476
+ #: includes/class-mla-data.php:5184
477
  msgid "Adding"
478
  msgstr ""
479
 
480
+ #: includes/class-mla-data.php:5188
481
  msgid "Removing"
482
  msgstr ""
483
 
484
+ #: includes/class-mla-data.php:5193
485
  msgid "Replacing"
486
  msgstr ""
487
 
488
+ #: includes/class-mla-data.php:5197
489
  msgid "Ignoring"
490
  msgstr ""
491
 
492
  #. translators: 1: action_name, 2: taxonomy
493
+ #: includes/class-mla-data.php:5209
494
  #, php-format
495
  msgid "%1$s \"%2$s\" terms"
496
  msgstr ""
497
 
498
  #. translators: 1: taxonomy
499
+ #: includes/class-mla-data.php:5213
500
  #, php-format
501
  msgid "You cannot assign \"%1$s\" terms"
502
  msgstr ""
503
 
504
  #. translators: 1: post ID
505
+ #: includes/class-mla-data.php:5225
506
  #, php-format
507
  msgid "Item %1$d, no changes detected."
508
  msgstr ""
509
 
510
  #. translators: 1: post ID
511
+ #: includes/class-mla-data.php:5237
512
  #, php-format
513
  msgid "Item %1$d updated."
514
  msgstr ""
515
 
516
  #. translators: 1: post ID
517
+ #: includes/class-mla-data.php:5251
518
  #, php-format
519
  msgid "ERROR: Item %1$d update failed."
520
  msgstr ""
521
 
522
+ #: includes/class-mla-data.php:5274 includes/class-mla-edit-media.php:125
523
+ #: includes/class-mla-edit-media.php:163 includes/class-mla-main.php:297
524
+ #: includes/class-mla-main.php:317 includes/class-mla-main.php:1257
525
+ #: includes/class-mla-settings.php:307 includes/class-mla-settings.php:325
526
  msgctxt "tag_delimiter"
527
  msgid ","
528
  msgstr ""
529
 
530
+ #: includes/class-mla-edit-media.php:181
531
  msgid "Custom field mapping updated."
532
  msgstr ""
533
 
534
+ #: includes/class-mla-edit-media.php:182
535
  msgid "IPTC/EXIF mapping updated."
536
  msgstr ""
537
 
538
  #. translators: date_i18n format for last modified date and time
539
+ #: includes/class-mla-edit-media.php:200
540
  msgid "M j, Y @ G:i"
541
  msgstr ""
542
 
543
+ #: includes/class-mla-edit-media.php:202 includes/class-mla-main.php:1811
544
  msgid "Last modified"
545
  msgstr ""
546
 
547
+ #: includes/class-mla-edit-media.php:213
548
  msgid "Map Custom Field metadata for this item"
549
  msgstr ""
550
 
551
+ #: includes/class-mla-edit-media.php:213 includes/class-mla-main.php:1472
552
  msgid "Map Custom Field Metadata"
553
  msgstr ""
554
 
555
+ #: includes/class-mla-edit-media.php:215
556
  msgid "Map IPTC/EXIF metadata for this item"
557
  msgstr ""
558
 
559
+ #: includes/class-mla-edit-media.php:215
560
  msgid "Map IPTC/EXIF Metadata"
561
  msgstr ""
562
 
563
+ #: includes/class-mla-edit-media.php:283 includes/class-mla-edit-media.php:395
564
+ #: includes/class-mla-main.php:1829
565
  msgid "Parent Info"
566
  msgstr ""
567
 
568
+ #: includes/class-mla-edit-media.php:288 includes/class-mla-edit-media.php:432
569
  msgid "Attachment Metadata"
570
  msgstr ""
571
 
572
+ #: includes/class-mla-edit-media.php:292 includes/class-mla-edit-media.php:464
573
+ #: includes/class-mla-main.php:1840 includes/class-mla-options.php:431
574
  msgid "Featured in"
575
  msgstr ""
576
 
577
+ #: includes/class-mla-edit-media.php:296 includes/class-mla-edit-media.php:500
578
+ #: includes/class-mla-main.php:1842 includes/class-mla-options.php:440
579
  msgid "Inserted in"
580
  msgstr ""
581
 
582
+ #: includes/class-mla-edit-media.php:300 includes/class-mla-edit-media.php:532
583
+ #: includes/class-mla-main.php:1844 includes/class-mla-options.php:449
584
+ #: includes/class-mla-settings.php:3290
585
  msgid "Gallery in"
586
  msgstr ""
587
 
588
+ #: includes/class-mla-edit-media.php:304 includes/class-mla-edit-media.php:564
589
+ #: includes/class-mla-main.php:1846 includes/class-mla-options.php:458
590
+ #: includes/class-mla-settings.php:3300
591
  msgid "MLA Gallery in"
592
  msgstr ""
593
 
594
  #. translators: 1: function name 2: template key
595
+ #: includes/class-mla-edit-media.php:347 includes/class-mla-main.php:531
596
+ #: includes/class-mla-settings.php:469
597
  #, php-format
598
  msgctxt "error_log"
599
  msgid "ERROR: %1$s discarding \"%2$s\"; no title/order"
600
  msgstr ""
601
 
602
+ #: includes/class-mla-edit-media.php:394
603
  msgid "Post Parent"
604
  msgstr ""
605
 
606
+ #: includes/class-mla-edit-media.php:455 includes/class-mla-edit-media.php:490
607
+ #: includes/class-mla-edit-media.php:523 includes/class-mla-edit-media.php:555
608
+ #: includes/class-mla-list-table.php:794 includes/class-mla-list-table.php:831
609
+ #: includes/class-mla-list-table.php:866 includes/class-mla-list-table.php:900
610
+ #: includes/class-mla-main.php:1660 includes/class-mla-main.php:1679
611
+ #: includes/class-mla-main.php:1696 includes/class-mla-main.php:1712
612
  msgid "PARENT"
613
  msgstr ""
614
 
615
+ #: includes/class-mla-edit-media.php:745
616
  msgid "Most Used"
617
  msgstr ""
618
 
619
  #. translators: %s: add new taxonomy label
620
+ #: includes/class-mla-edit-media.php:774
621
  #, php-format
622
  msgid "+ %s"
623
  msgstr ""
624
 
625
+ #: includes/class-mla-edit-media.php:780
626
+ msgid "?&nbsp;Search"
627
  msgstr ""
628
 
629
  #: includes/class-mla-list-table.php:210
630
  msgid "All"
631
  msgstr ""
632
 
633
+ #: includes/class-mla-list-table.php:211 includes/class-mla-settings.php:1394
634
+ #: includes/class-mla-view-list-table.php:379
635
+ #: includes/class-mla-view-list-table.php:395
636
  msgid "No"
637
  msgstr ""
638
 
639
+ #: includes/class-mla-list-table.php:314
640
  msgctxt "list_table_column"
641
  msgid "ID/Parent"
642
  msgstr ""
643
 
644
+ #: includes/class-mla-list-table.php:315
645
  msgctxt "list_table_column"
646
  msgid "Title/Name"
647
  msgstr ""
648
 
649
+ #: includes/class-mla-list-table.php:316
650
  msgctxt "list_table_column"
651
  msgid "Title"
652
  msgstr ""
653
 
654
+ #: includes/class-mla-list-table.php:317
655
  msgctxt "list_table_column"
656
  msgid "Name"
657
  msgstr ""
658
 
659
+ #: includes/class-mla-list-table.php:318
660
  msgctxt "list_table_column"
661
  msgid "Parent ID"
662
  msgstr ""
663
 
664
+ #: includes/class-mla-list-table.php:319
665
  msgctxt "list_table_column"
666
  msgid "Menu Order"
667
  msgstr ""
668
 
669
+ #: includes/class-mla-list-table.php:320
670
  msgctxt "list_table_column"
671
  msgid "Featured in"
672
  msgstr ""
673
 
674
+ #: includes/class-mla-list-table.php:321
675
  msgctxt "list_table_column"
676
  msgid "Inserted in"
677
  msgstr ""
678
 
679
+ #: includes/class-mla-list-table.php:322
680
  msgctxt "list_table_column"
681
  msgid "Gallery in"
682
  msgstr ""
683
 
684
+ #: includes/class-mla-list-table.php:323
685
  msgctxt "list_table_column"
686
  msgid "MLA Gallery in"
687
  msgstr ""
688
 
689
+ #: includes/class-mla-list-table.php:324
690
  msgctxt "list_table_column"
691
  msgid "ALT Text"
692
  msgstr ""
693
 
694
+ #: includes/class-mla-list-table.php:325
695
  msgctxt "list_table_column"
696
  msgid "Caption"
697
  msgstr ""
698
 
699
+ #: includes/class-mla-list-table.php:326
700
+ #: includes/class-mla-upload-list-table.php:186
701
+ #: includes/class-mla-upload-optional-list-table.php:171
702
+ #: includes/class-mla-view-list-table.php:179
703
  msgctxt "list_table_column"
704
  msgid "Description"
705
  msgstr ""
706
 
707
+ #: includes/class-mla-list-table.php:327
708
+ #: includes/class-mla-upload-list-table.php:178
709
+ #: includes/class-mla-upload-optional-list-table.php:168
710
  msgctxt "list_table_column"
711
  msgid "MIME Type"
712
  msgstr ""
713
 
714
+ #: includes/class-mla-list-table.php:328
715
  msgctxt "list_table_column"
716
  msgid "File URL"
717
  msgstr ""
718
 
719
+ #: includes/class-mla-list-table.php:329
720
  msgctxt "list_table_column"
721
  msgid "Base File"
722
  msgstr ""
723
 
724
+ #: includes/class-mla-list-table.php:330
725
  msgctxt "list_table_column"
726
  msgid "Date"
727
  msgstr ""
728
 
729
+ #: includes/class-mla-list-table.php:331
730
  msgctxt "list_table_column"
731
  msgid "Last Modified"
732
  msgstr ""
733
 
734
+ #: includes/class-mla-list-table.php:332
735
  msgctxt "list_table_column"
736
  msgid "Author"
737
  msgstr ""
738
 
739
+ #: includes/class-mla-list-table.php:333
740
  msgctxt "list_table_column"
741
  msgid "Attached to"
742
  msgstr ""
743
 
744
+ #: includes/class-mla-list-table.php:421 includes/class-mla-list-table.php:989
745
+ #: includes/class-mla-options.php:550 includes/class-mla-options.php:677
746
+ #: includes/class-mla-options.php:701 includes/class-mla-options.php:715
747
+ #: includes/class-mla-settings.php:1932
748
  msgid "None"
749
  msgstr ""
750
 
751
  #: includes/class-mla-list-table.php:427 includes/class-mla-list-table.php:455
752
+ #: includes/class-mla-list-table.php:927 includes/class-mla-list-table.php:971
753
  msgid "Filter by"
754
  msgstr ""
755
 
759
 
760
  #. translators: 1: column_name 2: column_values
761
  #: includes/class-mla-list-table.php:472
762
+ #: includes/class-mla-upload-list-table.php:247
763
+ #: includes/class-mla-upload-optional-list-table.php:228
764
+ #: includes/class-mla-view-list-table.php:236
765
  #, php-format
766
  msgid "column_default: %1$s, %2$s"
767
  msgstr ""
768
 
769
+ #: includes/class-mla-list-table.php:511 includes/class-mla-list-table.php:547
770
+ #: includes/class-mla-list-table.php:549 includes/class-mla-list-table.php:799
771
+ #: includes/class-mla-list-table.php:836 includes/class-mla-list-table.php:871
772
+ #: includes/class-mla-list-table.php:905
773
+ #: includes/class-mla-list-table.php:1103
774
+ #: includes/class-mla-list-table.php:1506
775
+ #: includes/class-mla-upload-list-table.php:312
776
+ #: includes/class-mla-upload-list-table.php:610
777
+ #: includes/class-mla-view-list-table.php:302
778
+ #: includes/class-mla-view-list-table.php:513
779
  msgid "Edit"
780
  msgstr ""
781
 
782
+ #: includes/class-mla-list-table.php:541
783
  msgid "Restore this item from the Trash"
784
  msgstr ""
785
 
786
+ #: includes/class-mla-list-table.php:541
787
+ #: includes/class-mla-list-table.php:1503
788
  msgid "Restore"
789
  msgstr ""
790
 
791
+ #: includes/class-mla-list-table.php:547 includes/class-mla-list-table.php:549
792
+ #: includes/class-mla-upload-list-table.php:312
793
+ #: includes/class-mla-view-list-table.php:302
794
  msgid "Edit this item"
795
  msgstr ""
796
 
797
+ #: includes/class-mla-list-table.php:551
798
+ #: includes/class-mla-upload-list-table.php:314
799
+ #: includes/class-mla-view-list-table.php:304
800
  msgid "Edit this item inline"
801
  msgstr ""
802
 
803
+ #: includes/class-mla-list-table.php:551 includes/class-mla-main.php:1447
804
+ #: includes/class-mla-options.php:2867 includes/class-mla-options.php:3139
805
+ #: includes/class-mla-upload-list-table.php:314
806
+ #: includes/class-mla-view-list-table.php:304
807
  msgid "Quick Edit"
808
  msgstr ""
809
 
810
+ #: includes/class-mla-list-table.php:557
811
  msgid "Move this item to the Trash"
812
  msgstr ""
813
 
814
+ #: includes/class-mla-list-table.php:557
815
+ #: includes/class-mla-list-table.php:1509
816
  msgid "Move to Trash"
817
  msgstr ""
818
 
819
+ #: includes/class-mla-list-table.php:562
820
+ #: includes/class-mla-upload-list-table.php:318
821
+ #: includes/class-mla-view-list-table.php:310
822
  msgid "Delete this item Permanently"
823
  msgstr ""
824
 
825
+ #: includes/class-mla-list-table.php:562
826
+ #: includes/class-mla-list-table.php:1504
827
+ #: includes/class-mla-list-table.php:1511
828
+ #: includes/class-mla-upload-list-table.php:318
829
+ #: includes/class-mla-view-list-table.php:310
830
+ #: includes/class-mla-view-list-table.php:514
831
  msgid "Delete Permanently"
832
  msgstr ""
833
 
834
+ #: includes/class-mla-list-table.php:566
835
  msgid "View"
836
  msgstr ""
837
 
838
+ #: includes/class-mla-list-table.php:660 includes/class-mla-main.php:316
839
  msgid "(no title)"
840
  msgstr ""
841
 
842
+ #: includes/class-mla-list-table.php:663 includes/class-mla-list-table.php:755
843
  msgid "Filter by Parent ID"
844
  msgstr ""
845
 
846
+ #: includes/class-mla-list-table.php:752
847
  msgid "(no title: bad ID)"
848
  msgstr ""
849
 
850
+ #: includes/class-mla-list-table.php:787 includes/class-mla-list-table.php:821
851
+ #: includes/class-mla-list-table.php:859 includes/class-mla-list-table.php:893
852
+ #: includes/class-mla-main.php:1668 includes/class-mla-main.php:1688
853
+ #: includes/class-mla-main.php:1704 includes/class-mla-main.php:1720
854
+ #: includes/class-mla-options.php:435 includes/class-mla-options.php:444
855
+ #: includes/class-mla-options.php:453 includes/class-mla-options.php:462
856
  msgid "Disabled"
857
  msgstr ""
858
 
859
+ #: includes/class-mla-list-table.php:974 includes/class-mla-settings.php:1477
860
+ #: includes/class-mla-settings.php:1842
861
  msgid "MIME Type"
862
  msgstr ""
863
 
864
+ #: includes/class-mla-list-table.php:1014
865
+ #: includes/class-mla-list-table.php:1046
866
  msgid "Unpublished"
867
  msgstr ""
868
 
869
  #. translators: 1: upload/last modified date and time
870
+ #: includes/class-mla-list-table.php:1022
871
+ #: includes/class-mla-list-table.php:1053
872
  #, php-format
873
  msgid "%1$s from now"
874
  msgstr ""
875
 
876
  #. translators: 1: upload/last modified date and time
877
+ #: includes/class-mla-list-table.php:1025
878
+ #: includes/class-mla-list-table.php:1055
879
  #, php-format
880
  msgid "%1$s ago"
881
  msgstr ""
882
 
883
  #. translators: format for upload/last modified date
884
+ #: includes/class-mla-list-table.php:1029
885
+ #: includes/class-mla-list-table.php:1058
886
+ #: includes/class-mla-list-table.php:1117
887
  msgid "Y/m/d"
888
  msgstr ""
889
 
890
+ #: includes/class-mla-list-table.php:1077
891
  msgid "Filter by Author ID"
892
  msgstr ""
893
 
894
+ #: includes/class-mla-list-table.php:1108 includes/class-mla-options.php:1036
895
  msgctxt "post_mime_types_singular"
896
  msgid "Unattached"
897
  msgstr ""
898
 
899
+ #: includes/class-mla-list-table.php:1361
900
  msgctxt "uploaded files"
901
  msgid "All"
902
  msgid_plural "All"
903
  msgstr[0] ""
904
  msgstr[1] ""
905
 
906
+ #: includes/class-mla-list-table.php:1537
907
  msgid "Filter"
908
  msgstr ""
909
 
910
+ #: includes/class-mla-list-table.php:1543
911
  msgid "Clear Filter-by"
912
  msgstr ""
913
 
914
+ #: includes/class-mla-list-table.php:1547
915
  msgid "Empty Trash"
916
  msgstr ""
917
 
918
+ #: includes/class-mla-main.php:314 includes/class-mla-settings.php:304
919
+ #: includes/class-mla-settings.php:322
920
  msgid "Error while saving the changes."
921
  msgstr ""
922
 
923
+ #: includes/class-mla-main.php:315 includes/class-mla-settings.php:305
924
+ #: includes/class-mla-settings.php:323
925
  msgid "Remove From Bulk Edit"
926
  msgstr ""
927
 
928
+ #: includes/class-mla-main.php:415
929
  #, php-format
930
  msgid "Item permanently deleted."
931
  msgid_plural "%d items permanently deleted."
933
  msgstr[1] ""
934
 
935
  #. translators: 1: post ID
936
+ #: includes/class-mla-main.php:420 includes/class-mla-main.php:1928
937
  #, php-format
938
  msgid "Item %1$d moved to Trash."
939
  msgstr ""
940
 
941
+ #: includes/class-mla-main.php:439
942
  msgid "Entries per page"
943
  msgstr ""
944
 
945
+ #: includes/class-mla-main.php:751
946
  msgid "You do not have permission to manage attachments."
947
  msgstr ""
948
 
949
  #. translators: 1: bulk_action, e.g., delete, edit, restore, trash
950
+ #: includes/class-mla-main.php:890 includes/class-mla-settings.php:1240
951
+ #: includes/class-mla-settings.php:1707
952
  #, php-format
953
  msgid "Unknown bulk action %1$s"
954
  msgstr ""
955
 
956
  #. translators: 1: action name, e.g., edit
957
+ #: includes/class-mla-main.php:915 includes/class-mla-settings.php:1250
958
+ #: includes/class-mla-settings.php:1718
959
  #, php-format
960
  msgid "Bulk Action %1$s - no items selected."
961
  msgstr ""
962
 
963
+ #: includes/class-mla-main.php:941 includes/class-mla-main.php:1002
964
+ #: includes/class-mla-main.php:1031 includes/class-mla-settings.php:547
965
+ #: includes/class-mla-settings.php:587 includes/class-mla-settings.php:1194
966
+ #: includes/class-mla-settings.php:1271 includes/class-mla-settings.php:1660
967
+ #: includes/class-mla-settings.php:1739 includes/class-mla-settings.php:2290
968
+ #: includes/class-mla-settings.php:2413 includes/class-mla-settings.php:2547
969
+ #: includes/class-mla-shortcodes.php:1319
970
+ #: includes/class-mla-shortcodes.php:1393
971
  msgid "ERROR:"
972
  msgstr ""
973
 
974
+ #: includes/class-mla-main.php:949
975
  #, php-format
976
  msgctxt "deleted items"
977
  msgid "%s item deleted."
979
  msgstr[0] ""
980
  msgstr[1] ""
981
 
982
+ #: includes/class-mla-main.php:951
983
  msgid "No items deleted."
984
  msgstr ""
985
 
986
+ #: includes/class-mla-main.php:966
987
  msgid "Edit single item"
988
  msgstr ""
989
 
990
  #. translators: 1: post ID
991
+ #: includes/class-mla-main.php:979
992
  #, php-format
993
  msgid "Item %1$d cancelled."
994
  msgstr ""
995
 
996
  #. translators: 1: bulk_action, e.g., single_item_delete, single_item_edit
997
+ #: includes/class-mla-main.php:993 includes/class-mla-settings.php:1287
998
+ #: includes/class-mla-settings.php:1757
999
  #, php-format
1000
  msgid "Unknown mla_admin_action - \"%1$s\""
1001
  msgstr ""
1002
 
1003
+ #: includes/class-mla-main.php:1022
1004
+ msgid "post/parent results for"
1005
+ msgstr ""
1006
+
1007
+ #: includes/class-mla-main.php:1024
1008
+ msgid "search results for"
1009
+ msgstr ""
1010
+
1011
+ #: includes/class-mla-main.php:1113
1012
+ #: includes/mla-media-modal-js-template.php:17
1013
  msgid "Search Media"
1014
  msgstr ""
1015
 
1016
+ #: includes/class-mla-main.php:1117 includes/class-mla-main.php:1120
1017
+ #: includes/mla-media-modal-js-template.php:24
 
1018
  msgid "and"
1019
  msgstr ""
1020
 
1021
+ #: includes/class-mla-main.php:1118 includes/class-mla-main.php:1121
1022
+ #: includes/mla-media-modal-js-template.php:28
 
1023
  msgid "or"
1024
  msgstr ""
1025
 
1026
+ #: includes/class-mla-main.php:1131 includes/class-mla-main.php:1133
1027
+ #: includes/class-mla-settings.php:1987 includes/class-mla-settings.php:2020
1028
+ #: includes/class-mla-settings.php:2046 includes/class-mla-settings.php:2081
1029
+ #: includes/class-mla-settings.php:2138 includes/class-mla-settings.php:2188
1030
+ #: includes/mla-media-modal-js-template.php:36
 
1031
  msgid "Name"
1032
  msgstr ""
1033
 
1034
+ #: includes/class-mla-main.php:1212
1035
  msgid "ERROR: No post ID found"
1036
  msgstr ""
1037
 
1038
+ #: includes/class-mla-main.php:1219 includes/class-mla-main.php:1605
1039
  msgid "You are not allowed to edit this Attachment."
1040
  msgstr ""
1041
 
1042
+ #: includes/class-mla-main.php:1362
1043
  msgid "more"
1044
  msgstr ""
1045
 
1046
+ #: includes/class-mla-main.php:1363
1047
  msgid "less"
1048
  msgstr ""
1049
 
1050
+ #: includes/class-mla-main.php:1366 includes/class-mla-main.php:1404
1051
  msgid "Add"
1052
  msgstr ""
1053
 
1054
+ #: includes/class-mla-main.php:1367 includes/class-mla-main.php:1405
1055
  msgid "Remove"
1056
  msgstr ""
1057
 
1058
+ #: includes/class-mla-main.php:1368 includes/class-mla-main.php:1406
1059
+ #: includes/class-mla-options.php:2965 includes/class-mla-options.php:3062
1060
+ #: includes/class-mla-options.php:3104 includes/class-mla-options.php:3980
1061
+ #: includes/class-mla-options.php:4030 includes/class-mla-options.php:4127
1062
+ #: includes/class-mla-options.php:4171 includes/class-mla-options.php:4196
1063
  msgid "Replace"
1064
  msgstr ""
1065
 
1066
+ #: includes/class-mla-main.php:1453
1067
  msgid "Parent ID"
1068
  msgstr ""
1069
 
1070
+ #: includes/class-mla-main.php:1459 includes/class-mla-main.php:1802
1071
+ #: includes/class-mla-settings.php:1131 includes/class-mla-settings.php:1390
1072
+ #: includes/class-mla-settings.php:1487 includes/class-mla-settings.php:1559
1073
+ #: includes/class-mla-settings.php:1855
1074
  msgid "Cancel"
1075
  msgstr ""
1076
 
1077
+ #: includes/class-mla-main.php:1460 includes/class-mla-main.php:1803
1078
+ #: includes/class-mla-settings.php:1130 includes/class-mla-settings.php:1391
1079
+ #: includes/class-mla-settings.php:1486 includes/class-mla-settings.php:1856
1080
  msgid "Update"
1081
  msgstr ""
1082
 
1083
+ #: includes/class-mla-main.php:1461 includes/class-mla-options.php:2881
1084
+ #: includes/class-mla-options.php:3140 includes/class-mla-settings.php:1392
1085
+ #: includes/class-mla-settings.php:1857
1086
  msgid "Bulk Edit"
1087
  msgstr ""
1088
 
1089
+ #: includes/class-mla-main.php:1467 includes/class-mla-main.php:1505
1090
+ #: includes/class-mla-settings.php:1393 includes/class-mla-settings.php:1431
1091
+ #: includes/class-mla-settings.php:1859
1092
+ msgid "No Change"
1093
  msgstr ""
1094
 
1095
+ #: includes/class-mla-main.php:1468
1096
+ msgid "Allow"
1097
+ msgstr ""
1098
+
1099
+ #: includes/class-mla-main.php:1469
1100
+ msgid "Do not allow"
1101
  msgstr ""
1102
 
1103
+ #: includes/class-mla-main.php:1471 includes/class-mla-main.php:1804
1104
+ msgid "Map IPTC/EXIF metadata"
1105
+ msgstr ""
1106
+
1107
+ #: includes/class-mla-main.php:1557
1108
  msgid "ERROR: You are not allowed to delete this item."
1109
  msgstr ""
1110
 
1111
  #. translators: 1: post ID
1112
+ #: includes/class-mla-main.php:1565
1113
  #, php-format
1114
  msgid "ERROR: Item %1$d could NOT be deleted."
1115
  msgstr ""
1116
 
1117
  #. translators: 1: post ID
1118
+ #: includes/class-mla-main.php:1572
1119
  #, php-format
1120
  msgid "Item %1$d permanently deleted."
1121
  msgstr ""
1122
 
1123
  #. translators: 1: page_template_array
1124
+ #: includes/class-mla-main.php:1632
1125
  #, php-format
1126
  msgctxt "error_log"
1127
  msgid "ERROR: MLA::_display_single_item \\$page_template_array = \"%1$s\""
1128
  msgstr ""
1129
 
1130
+ #: includes/class-mla-main.php:1806
1131
  msgid "File name"
1132
  msgstr ""
1133
 
1134
+ #: includes/class-mla-main.php:1808
1135
  msgid "File type"
1136
  msgstr ""
1137
 
1138
+ #: includes/class-mla-main.php:1809
1139
  msgid "Upload date"
1140
  msgstr ""
1141
 
1142
+ #: includes/class-mla-main.php:1813
1143
  msgid "Dimensions"
1144
  msgstr ""
1145
 
1146
+ #: includes/class-mla-main.php:1817
1147
  msgid "required"
1148
  msgstr ""
1149
 
1150
+ #: includes/class-mla-main.php:1821
1151
  msgid "Must be unique; will be validated."
1152
  msgstr ""
1153
 
1154
+ #: includes/class-mla-main.php:1824
1155
  msgid "Alternate text for the image, e.g. &#8220;The Mona Lisa&#8221;"
1156
  msgstr ""
1157
 
1158
+ #: includes/class-mla-main.php:1832
1159
  msgid "ID, type and title of parent, if any."
1160
  msgstr ""
1161
 
1162
+ #: includes/class-mla-main.php:1835
1163
  msgid "File URL"
1164
  msgstr ""
1165
 
1166
+ #: includes/class-mla-main.php:1837
1167
  msgid "Location of the uploaded file."
1168
  msgstr ""
1169
 
1170
+ #: includes/class-mla-main.php:1838
1171
  msgid "Image Metadata"
1172
  msgstr ""
1173
 
1174
+ #: includes/class-mla-main.php:1873
1175
  msgid "ERROR: You are not allowed to move this item out of the Trash."
1176
  msgstr ""
1177
 
1178
  #. translators: 1: post ID
1179
+ #: includes/class-mla-main.php:1881
1180
  #, php-format
1181
  msgid "ERROR: Item %1$d could NOT be restored from Trash."
1182
  msgstr ""
1183
 
1184
  #. translators: 1: post ID
1185
+ #: includes/class-mla-main.php:1896
1186
  #, php-format
1187
  msgid "Item %1$d restored from Trash."
1188
  msgstr ""
1189
 
1190
+ #: includes/class-mla-main.php:1913
1191
  msgid "ERROR: You are not allowed to move this item to the Trash."
1192
  msgstr ""
1193
 
1194
  #. translators: 1: post ID
1195
+ #: includes/class-mla-main.php:1921
1196
  #, php-format
1197
  msgid "ERROR: Item %1$d could NOT be moved to Trash."
1198
  msgstr ""
1199
 
1200
+ #: includes/class-mla-media-modal.php:221
1201
+ #: includes/class-mla-media-modal.php:227
1202
+ #: includes/class-mla-media-modal.php:691
1203
+ #: includes/class-mla-media-modal.php:725
1204
+ #: includes/class-mla-media-modal.php:770
1205
+ msgid "Click to toggle"
1206
+ msgstr ""
1207
+
1208
+ #: includes/class-mla-media-modal.php:263
1209
  msgid "Show all dates"
1210
  msgstr ""
1211
 
1212
  #. translators: 1: month name, 2: 4-digit year
1213
+ #: includes/class-mla-media-modal.php:278
1214
  #, php-format
1215
  msgid "%1$s %2$d"
1216
  msgstr ""
1217
 
1218
+ #: includes/class-mla-media-modal.php:404
1219
+ msgid "Search Box"
1220
+ msgstr ""
1221
+
1222
+ #: includes/class-mla-media-modal.php:405
1223
+ msgid "Loading..."
1224
+ msgstr ""
1225
+
1226
+ #: includes/class-mla-media-modal.php:736
1227
+ msgid "Tags"
1228
+ msgstr ""
1229
+
1230
+ #. translators: %s: add new taxonomy label
1231
+ #: includes/class-mla-media-modal.php:738
1232
+ #, php-format
1233
+ msgid "Add New %1$s"
1234
+ msgstr ""
1235
+
1236
+ #: includes/class-mla-media-modal.php:754
1237
+ msgid "Choose from the most used tags"
1238
+ msgstr ""
1239
+
1240
+ #: includes/class-mla-media-modal.php:776
1241
+ msgid "Not Supported"
1242
+ msgstr ""
1243
+
1244
  #: includes/class-mla-mime-types.php:364
1245
  msgctxt "post_mime_types"
1246
  msgid "Manage"
1276
 
1277
  #. translators: 1: element name 2: bad_value 3: good_value
1278
  #: includes/class-mla-mime-types.php:953
1279
+ #: includes/class-mla-mime-types.php:1982
1280
  #, php-format
1281
  msgid "<br>Changing %1$s \"%2$s\" to valid value \"%3$s\""
1282
  msgstr ""
1283
 
1284
  #: includes/class-mla-mime-types.php:953
1285
  #: includes/class-mla-mime-types.php:1041
1286
+ #: includes/class-mla-mime-types.php:1052 includes/class-mla-settings.php:1115
1287
+ #: includes/class-mla-settings.php:1372
1288
  msgid "Slug"
1289
  msgstr ""
1290
 
1302
 
1303
  #. translators: 1: element name 2: bad_value 3: good_value
1304
  #: includes/class-mla-mime-types.php:1041
1305
+ #: includes/class-mla-mime-types.php:2108
1306
  #, php-format
1307
  msgid "<br>Changing new %1$s \"%2$s\" to valid value \"%3$s\""
1308
  msgstr ""
1403
  msgid "Custom"
1404
  msgstr ""
1405
 
1406
+ #: includes/class-mla-mime-types.php:1666
1407
  msgid "icon"
1408
  msgstr ""
1409
 
1410
+ #: includes/class-mla-mime-types.php:1966
1411
+ #: includes/class-mla-mime-types.php:2065
1412
  msgid "ERROR: Cannot load Upload MIME Types"
1413
  msgstr ""
1414
 
1415
+ #: includes/class-mla-mime-types.php:1977
1416
  msgid "ERROR: Extension is required"
1417
  msgstr ""
1418
 
1419
+ #: includes/class-mla-mime-types.php:1982
1420
+ #: includes/class-mla-mime-types.php:2108
1421
+ #: includes/class-mla-mime-types.php:2119
1422
  msgid "extension"
1423
  msgstr ""
1424
 
1425
  #. translators: 1: slug
1426
+ #: includes/class-mla-mime-types.php:1990
1427
  #, php-format
1428
  msgid "ERROR: Could not add extension \"%1$s\"; value already exists"
1429
  msgstr ""
1430
 
1431
+ #: includes/class-mla-mime-types.php:1998
1432
  msgid "ERROR: MIME type is required"
1433
  msgstr ""
1434
 
1435
  #. translators: 1: clean_mime_type
1436
+ #: includes/class-mla-mime-types.php:2003
1437
+ #: includes/class-mla-mime-types.php:2150
1438
  #, php-format
1439
  msgid "ERROR: Bad MIME type; try \"%1$s\""
1440
  msgstr ""
1441
 
1442
  #. translators: 1: slug
1443
+ #: includes/class-mla-mime-types.php:2040
1444
  #, php-format
1445
  msgid "Upload MIME Type \"%1$s\"; added"
1446
  msgstr ""
1447
 
1448
+ #: includes/class-mla-mime-types.php:2046
1449
+ #: includes/class-mla-mime-types.php:2235
1450
+ #: includes/class-mla-mime-types.php:2314
1451
  msgid "ERROR: Cannot update Upload MIME Types"
1452
  msgstr ""
1453
 
1454
  #. translators: 1: slug
1455
+ #: includes/class-mla-mime-types.php:2116
1456
  #, php-format
1457
  msgid "ERROR: Could not add new extension \"%1$s\"; value already exists"
1458
  msgstr ""
1459
 
1460
  #. translators: 1: slug
1461
+ #: includes/class-mla-mime-types.php:2215
1462
  #, php-format
1463
  msgid "Edit type \"%1$s\"; no changes detected"
1464
  msgstr ""
1465
 
1466
  #. translators: 1: slug
1467
+ #: includes/class-mla-mime-types.php:2229
1468
  #, php-format
1469
  msgid "Edit type \"%1$s\"; updated"
1470
  msgstr ""
1471
 
1472
  #. translators: 1: slug
1473
+ #: includes/class-mla-mime-types.php:2302
1474
  #, php-format
1475
  msgid "Upload MIME Type \"%1$s\"; reverted to standard"
1476
  msgstr ""
1477
 
1478
  #. translators: 1: slug
1479
+ #: includes/class-mla-mime-types.php:2308
1480
  #, php-format
1481
  msgid "Upload MIME Type \"%1$s\"; deleted"
1482
  msgstr ""
1483
 
1484
  #. translators: 1: slug
1485
+ #: includes/class-mla-mime-types.php:2323
1486
  #, php-format
1487
  msgid "ERROR: Did not find Upload type \"%1$s\""
1488
  msgstr ""
1571
  msgid "Att. Tag"
1572
  msgstr ""
1573
 
1574
+ #: includes/class-mla-objects.php:128
1575
  msgid "Attachments"
1576
  msgstr ""
1577
 
1578
  #. translators: 1: taxonomy 2: error message
1579
+ #: includes/class-mla-objects.php:196
1580
  #, php-format
1581
  msgctxt "error_log"
1582
  msgid ""
1583
  "ERROR: mla_taxonomy_column_filter( \"%1$s\" ) - get_term failed: \"%2$s\""
1584
  msgstr ""
1585
 
1586
+ #: includes/class-mla-objects.php:201
1587
+ msgid "click to search"
 
 
 
 
1588
  msgstr ""
1589
 
1590
+ #: includes/class-mla-objects.php:228
1591
  msgid "Shortcode(s), HTML and/or Plain Text"
1592
  msgstr ""
1593
 
1594
+ #: includes/class-mla-objects.php:236
1595
  msgid "MLA Text"
1596
  msgstr ""
1597
 
1598
+ #: includes/class-mla-objects.php:278
1599
  msgid "Automatically add paragraphs"
1600
  msgstr ""
1601
 
1602
+ #: includes/class-mla-options.php:344
1603
  msgid "error loading tpls/mla-option-templates.tpl"
1604
  msgstr ""
1605
 
1606
+ #: includes/class-mla-options.php:347
1607
  msgid "tpls/mla-option-templates.tpl not found"
1608
  msgstr ""
1609
 
1610
+ #: includes/class-mla-options.php:400 includes/class-mla-options.php:1476
1611
  msgid "Attachment Categories"
1612
  msgstr ""
1613
 
1614
+ #: includes/class-mla-options.php:403
1615
  msgid "Check this option to add support for Attachment Categories."
1616
  msgstr ""
1617
 
1618
+ #: includes/class-mla-options.php:407 includes/class-mla-options.php:1491
1619
  msgid "Attachment Tags"
1620
  msgstr ""
1621
 
1622
+ #: includes/class-mla-options.php:410
1623
  msgid "Check this option to add support for Attachment Tags."
1624
  msgstr ""
1625
 
1626
+ #: includes/class-mla-options.php:414 includes/class-mla-settings.php:956
1627
  msgid "Where-used Reporting"
1628
  msgstr ""
1629
 
1630
+ #: includes/class-mla-options.php:419
1631
  msgid "Exclude Revisions"
1632
  msgstr ""
1633
 
1634
+ #: includes/class-mla-options.php:422
1635
  msgid "Check this option to exclude revisions from where-used reporting."
1636
  msgstr ""
1637
 
1638
+ #: includes/class-mla-options.php:426
1639
  msgid "Where-used database access tuning"
1640
  msgstr ""
1641
 
1642
+ #: includes/class-mla-options.php:435 includes/class-mla-options.php:444
1643
  msgid "Enabled"
1644
  msgstr ""
1645
 
1646
+ #: includes/class-mla-options.php:436
1647
  msgid "Search database posts and pages for Featured Image attachments."
1648
  msgstr ""
1649
 
1650
+ #: includes/class-mla-options.php:444
1651
  msgid "Base"
1652
  msgstr ""
1653
 
1654
+ #: includes/class-mla-options.php:445
1655
  msgid ""
1656
  "Search database posts and pages for attachments embedded in content."
1657
  "<br>&nbsp;&nbsp;Base = ignore intermediate size suffixes; use path, base "
1658
  "name and extension only."
1659
  msgstr ""
1660
 
1661
+ #: includes/class-mla-options.php:453 includes/class-mla-options.php:462
1662
  msgid "Dynamic"
1663
  msgstr ""
1664
 
1665
+ #: includes/class-mla-options.php:453 includes/class-mla-options.php:462
1666
  msgid "Refresh"
1667
  msgstr ""
1668
 
1669
+ #: includes/class-mla-options.php:453 includes/class-mla-options.php:462
1670
  msgid "Cached"
1671
  msgstr ""
1672
 
1673
+ #: includes/class-mla-options.php:454
1674
  msgid ""
1675
  "Search database posts and pages for [gallery] shortcode results.<br>&nbsp;"
1676
  "&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = "
1677
  "never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached."
1678
  msgstr ""
1679
 
1680
+ #: includes/class-mla-options.php:463
1681
  msgid ""
1682
  "Search database posts and pages for [mla_gallery] shortcode results."
1683
  "<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, "
1685
  "Cached."
1686
  msgstr ""
1687
 
1688
+ #: includes/class-mla-options.php:467 includes/class-mla-settings.php:956
1689
  msgid "Taxonomy Support"
1690
  msgstr ""
1691
 
1692
+ #: includes/class-mla-options.php:472
1693
+ msgid "Compute Attachments Column"
 
 
 
 
1694
  msgstr ""
1695
 
1696
+ #: includes/class-mla-options.php:475
1697
+ msgid ""
1698
+ "Check this option to calculate attachments per term in the Attachments "
1699
+ "Column."
1700
  msgstr ""
1701
 
1702
+ #: includes/class-mla-options.php:479
1703
  msgid ""
1704
+ "Check the \"Support\" box to add the taxonomy to the Assistant and the Edit "
1705
+ "Media screen.<br>Check the \"Inline Edit\" box to display the taxonomy in "
1706
+ "the Quick Edit and Bulk Edit areas.<br>Check the \"Checklist\" box to enable "
1707
+ "the checklist-style meta box for a flat taxonomy.<br>You must also check the "
1708
+ "<strong>\"Enable enhanced checklist taxonomies\"</strong> box below to "
1709
+ "enable this feature.<br>Use the \"List Filter\" option to select the "
1710
+ "taxonomy on which to filter the Assistant table listing."
1711
  msgstr ""
1712
 
1713
+ #: includes/class-mla-options.php:500
1714
  msgid "Media/Assistant Screen Options"
1715
  msgstr ""
1716
 
1717
+ #: includes/class-mla-options.php:505
1718
  msgid "Admin Menu Options"
1719
  msgstr ""
1720
 
1721
+ #: includes/class-mla-options.php:510
1722
  msgid "Page Title"
1723
  msgstr ""
1724
 
1725
+ #: includes/class-mla-options.php:512 includes/class-mla-settings.php:356
1726
+ #: includes/class-mla-settings.php:2528
1727
  msgid "Media Library Assistant"
1728
  msgstr ""
1729
 
1730
+ #: includes/class-mla-options.php:514
1731
  msgid "Enter the title for the Media/Assistant submenu page"
1732
  msgstr ""
1733
 
1734
+ #: includes/class-mla-options.php:518
1735
  msgid "Menu Title"
1736
  msgstr ""
1737
 
1738
+ #: includes/class-mla-options.php:520
1739
  msgid "Assistant"
1740
  msgstr ""
1741
 
1742
+ #: includes/class-mla-options.php:522
1743
  msgid "Enter the title for the Media/Assistant submenu entry"
1744
  msgstr ""
1745
 
1746
+ #: includes/class-mla-options.php:526
1747
  msgid "Submenu Order"
1748
  msgstr ""
1749
 
1750
+ #: includes/class-mla-options.php:530
1751
  msgid ""
1752
  "Enter the position of the Media/Assistant submenu entry.<br>&nbsp;&nbsp;0 = "
1753
  "natural order (at bottom),&nbsp;&nbsp;&nbsp;&nbsp;1 - 4 = at top<br>&nbsp;"
1755
  "\""
1756
  msgstr ""
1757
 
1758
+ #: includes/class-mla-options.php:534
1759
  msgid "Display Media/Library"
1760
  msgstr ""
1761
 
1762
+ #: includes/class-mla-options.php:537
1763
  msgid ""
1764
  "Check/uncheck this option to display/remove the WordPress Media/Library "
1765
  "submenu entry."
1766
  msgstr ""
1767
 
1768
+ #: includes/class-mla-options.php:541
1769
  msgid "Table Defaults"
1770
  msgstr ""
1771
 
1772
+ #: includes/class-mla-options.php:546
1773
  msgid "Order By"
1774
  msgstr ""
1775
 
1776
+ #: includes/class-mla-options.php:550 includes/class-mla-options.php:677
1777
  msgid "Title/Name"
1778
  msgstr ""
1779
 
1780
+ #: includes/class-mla-options.php:551
1781
  msgid "Select the column for the sort order of the Assistant table listing."
1782
  msgstr ""
1783
 
1784
+ #: includes/class-mla-options.php:555
1785
  msgid "Order"
1786
  msgstr ""
1787
 
1788
+ #: includes/class-mla-options.php:559
1789
  msgid "Ascending"
1790
  msgstr ""
1791
 
1792
+ #: includes/class-mla-options.php:559
1793
  msgid "Descending"
1794
  msgstr ""
1795
 
1796
+ #: includes/class-mla-options.php:560 includes/class-mla-options.php:687
1797
  msgid "Choose the sort order."
1798
  msgstr ""
1799
 
1800
+ #: includes/class-mla-options.php:564
1801
  msgid "Views Width"
1802
  msgstr ""
1803
 
1804
+ #: includes/class-mla-options.php:568
1805
  msgid "Enter the width for the views list, in pixels (px) or percent (%)"
1806
  msgstr ""
1807
 
1808
+ #: includes/class-mla-options.php:572
1809
+ msgid "Icon Size"
1810
+ msgstr ""
1811
+
1812
+ #: includes/class-mla-options.php:576
1813
+ msgid "Enter the size of the thumbnail/icon images, in pixels"
1814
+ msgstr ""
1815
+
1816
+ #: includes/class-mla-options.php:580
1817
  msgid "Taxonomy Filter parameters"
1818
  msgstr ""
1819
 
1820
+ #: includes/class-mla-options.php:585
1821
  msgid "Maximum Depth"
1822
  msgstr ""
1823
 
1824
+ #: includes/class-mla-options.php:589
1825
  msgid ""
1826
  "Enter the number of levels displayed for hierarchial taxonomies; enter zero "
1827
  "for no limit."
1828
  msgstr ""
1829
 
1830
+ #: includes/class-mla-options.php:593
1831
  msgid "Include Children"
1832
  msgstr ""
1833
 
1834
+ #: includes/class-mla-options.php:596
1835
  msgid ""
1836
  "Check/uncheck this option to include/exclude children for hierarchical "
1837
  "taxonomies."
1838
  msgstr ""
1839
 
1840
+ #: includes/class-mla-options.php:600
1841
+ msgid "Media/Edit Media Enhancements"
1842
+ msgstr ""
1843
+
1844
+ #: includes/class-mla-options.php:605
1845
+ msgid "Enable enhanced \"checklist\" taxonomies"
1846
+ msgstr ""
1847
+
1848
+ #: includes/class-mla-options.php:608
1849
+ msgid ""
1850
+ "Check this option to enable the \"? Search\" feature for hierarchical "
1851
+ "taxonomies, e.g., Att. Categories.<br>&nbsp;&nbsp;This option also enables "
1852
+ "the \"checklist-style\" support for flat taxonomies, e.g., Att. Tags."
1853
+ msgstr ""
1854
+
1855
+ #: includes/class-mla-options.php:612
1856
+ msgid "Enable Edit Media additional meta boxes"
1857
+ msgstr ""
1858
+
1859
+ #: includes/class-mla-options.php:615
1860
+ msgid ""
1861
+ "Check this option to add \"Parent Info\", \"Menu Order\", \"Attachment "
1862
+ "Metadata\" and four \"where-used\" meta boxes to the Edit Media screen."
1863
+ msgstr ""
1864
+
1865
+ #: includes/class-mla-options.php:619 includes/class-mla-settings.php:956
1866
  msgid "Media Manager Enhancements"
1867
  msgstr ""
1868
 
1869
+ #: includes/class-mla-options.php:624
1870
  msgid "Enable Media Manager Enhancements"
1871
  msgstr ""
1872
 
1873
+ #: includes/class-mla-options.php:627
1874
  msgid "Check/uncheck this option to enable/disable Media Manager Enhancements."
1875
  msgstr ""
1876
 
1877
+ #: includes/class-mla-options.php:631
1878
  msgid "Media Manager Enhanced MIME Type filter"
1879
  msgstr ""
1880
 
1881
+ #: includes/class-mla-options.php:634
1882
  msgid ""
1883
  "Check this option to filter by more MIME Types, e.g., text, applications."
1884
  msgstr ""
1885
 
1886
+ #: includes/class-mla-options.php:638
1887
  msgid "Media Manager Month and Year filter"
1888
  msgstr ""
1889
 
1890
+ #: includes/class-mla-options.php:641
1891
  msgid "Check this option to filter by month and year uploaded."
1892
  msgstr ""
1893
 
1894
+ #: includes/class-mla-options.php:645
1895
  msgid "Media Manager Category/Tag filter"
1896
  msgstr ""
1897
 
1898
+ #: includes/class-mla-options.php:648
1899
  msgid "Check this option to filter by taxonomy terms."
1900
  msgstr ""
1901
 
1902
+ #: includes/class-mla-options.php:652
1903
  msgid "Media Manager Enhanced Search Media box"
1904
  msgstr ""
1905
 
1906
+ #: includes/class-mla-options.php:655
1907
  msgid "Check this option to enable search box enhancements."
1908
  msgstr ""
1909
 
1910
+ #: includes/class-mla-options.php:659
1911
+ msgid "Media Manager Checklist meta boxes"
1912
  msgstr ""
1913
 
1914
+ #: includes/class-mla-options.php:662
1915
  msgid ""
1916
+ "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
1917
+ "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for any taxonomy that uses a "
1918
+ "<strong>\"checklist-style\"</strong> meta box.</strong>"
 
 
1919
  msgstr ""
1920
 
1921
+ #: includes/class-mla-options.php:666
1922
+ msgid "Media Manager Flat meta boxes"
1923
  msgstr ""
1924
 
1925
+ #: includes/class-mla-options.php:669
1926
  msgid ""
1927
+ "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
1928
+ "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies</"
1929
+ "strong>, e.g., \"Tags\" or \"Att. Tags\", that do not use the \"checklist-"
1930
+ "style\" meta box."
 
1931
  msgstr ""
1932
 
1933
+ #: includes/class-mla-options.php:673
1934
  msgid "Media Manager Order By"
1935
  msgstr ""
1936
 
1937
+ #: includes/class-mla-options.php:677 includes/class-mla-options.php:686
1938
+ #: includes/class-mla-options.php:701 includes/class-mla-options.php:715
1939
+ #: includes/class-mla-options.php:729 includes/class-mla-settings.php:1038
1940
  msgid "Media Manager Default"
1941
  msgstr ""
1942
 
1943
+ #: includes/class-mla-options.php:678
1944
  msgid ""
1945
  "If you want to override the Media Manager default,<br>&nbsp;&nbsp;select a "
1946
  "column for the sort order of the Media Library listing."
1947
  msgstr ""
1948
 
1949
+ #: includes/class-mla-options.php:682
1950
  msgid "Media Manager Order"
1951
  msgstr ""
1952
 
1953
+ #: includes/class-mla-options.php:691
1954
  msgid "Attachment Display Settings"
1955
  msgstr ""
1956
 
1957
  #. translators: 1: option name, e.g., Alignment, Link To or Size
1958
+ #: includes/class-mla-options.php:696 includes/class-mla-options.php:698
1959
  msgid "Alignment"
1960
  msgstr ""
1961
 
1962
+ #: includes/class-mla-options.php:701
1963
  msgid "Left"
1964
  msgstr ""
1965
 
1966
+ #: includes/class-mla-options.php:701
1967
  msgid "Center"
1968
  msgstr ""
1969
 
1970
+ #: includes/class-mla-options.php:701
1971
  msgid "Right"
1972
  msgstr ""
1973
 
1974
  #. translators: 1: option name, e.g., Alignment, Link To or Size
1975
+ #: includes/class-mla-options.php:710 includes/class-mla-options.php:712
1976
  msgid "Link To"
1977
  msgstr ""
1978
 
1979
+ #: includes/class-mla-options.php:715
1980
  msgid "Media File"
1981
  msgstr ""
1982
 
1983
+ #: includes/class-mla-options.php:715
1984
  msgid "Attachment Page"
1985
  msgstr ""
1986
 
1987
+ #: includes/class-mla-options.php:715
1988
  msgid "Custom URL"
1989
  msgstr ""
1990
 
1991
  #. translators: 1: option name, e.g., Alignment, Link To or Size
1992
+ #: includes/class-mla-options.php:724 includes/class-mla-options.php:726
1993
  msgid "Size"
1994
  msgstr ""
1995
 
1996
+ #: includes/class-mla-options.php:729
1997
  msgid "Thumbnail"
1998
  msgstr ""
1999
 
2000
+ #: includes/class-mla-options.php:729
2001
  msgid "Medium"
2002
  msgstr ""
2003
 
2004
+ #: includes/class-mla-options.php:729
2005
  msgid "Large"
2006
  msgstr ""
2007
 
2008
+ #: includes/class-mla-options.php:729
2009
  msgid "Full Size"
2010
  msgstr ""
2011
 
2012
+ #: includes/class-mla-options.php:738
2013
  msgid "Default [mla_gallery] Templates and Settings"
2014
  msgstr ""
2015
 
2016
+ #: includes/class-mla-options.php:743 includes/class-mla-options.php:787
2017
  msgid "Style Template"
2018
  msgstr ""
2019
 
2020
  #. translators: 1: template type 2: shortcode
2021
+ #: includes/class-mla-options.php:749 includes/class-mla-options.php:759
2022
+ #: includes/class-mla-options.php:793 includes/class-mla-options.php:803
2023
  #, php-format
2024
  msgid "Select the default %1$s for your %2$s shortcodes."
2025
  msgstr ""
2026
 
2027
+ #: includes/class-mla-options.php:749 includes/class-mla-options.php:793
2028
+ #: includes/class-mla-settings.php:2623 includes/class-mla-settings.php:2634
2029
+ #: includes/class-mla-settings.php:2640 includes/class-mla-settings.php:2644
2030
+ #: includes/class-mla-settings.php:2673 includes/class-mla-settings.php:2684
2031
  msgid "style template"
2032
  msgstr ""
2033
 
2034
+ #: includes/class-mla-options.php:753 includes/class-mla-options.php:797
2035
  msgid "Markup Template"
2036
  msgstr ""
2037
 
2038
+ #: includes/class-mla-options.php:759 includes/class-mla-options.php:803
2039
+ #: includes/class-mla-settings.php:2713 includes/class-mla-settings.php:2726
2040
+ #: includes/class-mla-settings.php:2732 includes/class-mla-settings.php:2736
2041
+ #: includes/class-mla-settings.php:2805
2042
  msgid "markup template"
2043
  msgstr ""
2044
 
2045
+ #: includes/class-mla-options.php:763 includes/class-mla-options.php:807
2046
  msgid "Default columns"
2047
  msgstr ""
2048
 
2049
+ #: includes/class-mla-options.php:767
2050
  msgid ""
2051
  "Enter the number of [mla_tag_cloud] columns; must be a positive integer."
2052
  msgstr ""
2053
 
2054
+ #: includes/class-mla-options.php:771 includes/class-mla-options.php:815
2055
  msgid "Default mla_margin"
2056
  msgstr ""
2057
 
2058
+ #: includes/class-mla-options.php:775 includes/class-mla-options.php:819
2059
  msgid ""
2060
  "Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
2061
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"none\" to "
2062
  "remove the property entirely."
2063
  msgstr ""
2064
 
2065
+ #: includes/class-mla-options.php:779 includes/class-mla-options.php:823
2066
  msgid "Default mla_itemwidth"
2067
  msgstr ""
2068
 
2069
+ #: includes/class-mla-options.php:783 includes/class-mla-options.php:827
2070
  msgid ""
2071
  "Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
2072
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"calculate"
2076
  "the property entirely."
2077
  msgstr ""
2078
 
2079
+ #: includes/class-mla-options.php:811
2080
  msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
2081
  msgstr ""
2082
 
2083
+ #: includes/class-mla-options.php:847
2084
  msgid "Enable custom field mapping when adding new media"
2085
  msgstr ""
2086
 
2087
+ #: includes/class-mla-options.php:850
2088
  msgid ""
2089
  "Check this option to enable mapping when uploading new media (attachments)."
2090
  "<br>&nbsp;&nbsp;Click Save Changes at the bottom of the screen if you change "
2092
  "buttons on the bulk edit, single edit and settings screens."
2093
  msgstr ""
2094
 
2095
+ #: includes/class-mla-options.php:854
2096
  msgid "Enable custom field mapping when updating media metadata"
2097
  msgstr ""
2098
 
2099
+ #: includes/class-mla-options.php:857 includes/class-mla-options.php:881
2100
  msgid ""
2101
  "Check this option to enable mapping when media (attachments) metadata is "
2102
  "regenerated,<br>&nbsp;&nbsp;e.g., when the Media/Edit Media \"Edit Image\" "
2103
  "functions are used."
2104
  msgstr ""
2105
 
2106
+ #: includes/class-mla-options.php:861
2107
  msgid ""
2108
  "Update the custom field mapping values above, then click Save Changes to "
2109
  "make the updates permanent.<br>You can also make temporary updates and click "
2111
  "saving any rule changes."
2112
  msgstr ""
2113
 
2114
+ #: includes/class-mla-options.php:871
2115
  msgid "Enable IPTC/EXIF Mapping when adding new media"
2116
  msgstr ""
2117
 
2118
+ #: includes/class-mla-options.php:874
2119
  msgid ""
2120
  "Check this option to enable mapping when uploading new media (attachments)."
2121
  "<br>&nbsp;&nbsp;Does NOT affect the operation of the \"Map\" buttons on the "
2122
  "bulk edit, single edit and settings screens."
2123
  msgstr ""
2124
 
2125
+ #: includes/class-mla-options.php:878
2126
  msgid "Enable IPTC/EXIF Mapping when updating media metadata"
2127
  msgstr ""
2128
 
2129
+ #: includes/class-mla-options.php:885
2130
  msgid ""
2131
  "Update the standard field mapping values above, then click <strong>Save "
2132
  "Changes</strong> to make the updates permanent.<br>You can also make "
2135
  "changes."
2136
  msgstr ""
2137
 
2138
+ #: includes/class-mla-options.php:895
2139
  msgid ""
2140
  "Update the taxonomy term mapping values above, then click <strong>Save "
2141
  "Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
2142
  msgstr ""
2143
 
2144
+ #: includes/class-mla-options.php:905
2145
  msgid ""
2146
  "<strong>Update</strong> individual custom field mapping values above, or "
2147
  "make several updates and click <strong>Save Changes</strong> below to apply "
2152
  "changes."
2153
  msgstr ""
2154
 
2155
+ #: includes/class-mla-options.php:915
2156
  msgid "IPTC/EXIF Mapping help"
2157
  msgstr ""
2158
 
2159
+ #: includes/class-mla-options.php:967
2160
  msgid "Enable View and Post MIME Type Support"
2161
  msgstr ""
2162
 
2163
+ #: includes/class-mla-options.php:970
2164
  msgid ""
2165
  "Check/uncheck this option to enable/disable Post MIME Type Support, then "
2166
  "click <strong>Save Changes</strong> to record the new setting."
2167
  msgstr ""
2168
 
2169
+ #: includes/class-mla-options.php:979
2170
  msgid "Post MIME Types help."
2171
  msgstr ""
2172
 
2173
+ #: includes/class-mla-options.php:982
2174
  msgctxt "post_mime_types_singular"
2175
  msgid "All"
2176
  msgstr ""
2177
 
2178
+ #: includes/class-mla-options.php:983
2179
  msgctxt "post_mime_types_plural"
2180
  msgid "All"
2181
  msgstr ""
2182
 
2183
+ #: includes/class-mla-options.php:988 includes/class-mla-options.php:1042
2184
+ #: includes/class-mla-options.php:1051
2185
  msgctxt "post_mime_types_description"
2186
  msgid "Built-in view"
2187
  msgstr ""
2188
 
2189
+ #: includes/class-mla-options.php:991
2190
  msgctxt "post_mime_types_singular"
2191
  msgid "Image"
2192
  msgstr ""
2193
 
2194
+ #: includes/class-mla-options.php:992
2195
  msgctxt "post_mime_types_plural"
2196
  msgid "Images"
2197
  msgstr ""
2198
 
2199
+ #: includes/class-mla-options.php:997
2200
  msgctxt "post_mime_types_description"
2201
  msgid "All image subtypes"
2202
  msgstr ""
2203
 
2204
+ #: includes/class-mla-options.php:1000
2205
  msgctxt "post_mime_types_singular"
2206
  msgid "Audio"
2207
  msgstr ""
2208
 
2209
+ #: includes/class-mla-options.php:1001
2210
  msgctxt "post_mime_types_plural"
2211
  msgid "Audio"
2212
  msgstr ""
2213
 
2214
+ #: includes/class-mla-options.php:1006
2215
  msgctxt "post_mime_types_description"
2216
  msgid "All audio subtypes"
2217
  msgstr ""
2218
 
2219
+ #: includes/class-mla-options.php:1009
2220
  msgctxt "post_mime_types_singular"
2221
  msgid "Video"
2222
  msgstr ""
2223
 
2224
+ #: includes/class-mla-options.php:1010
2225
  msgctxt "post_mime_types_plural"
2226
  msgid "Video"
2227
  msgstr ""
2228
 
2229
+ #: includes/class-mla-options.php:1015
2230
  msgctxt "post_mime_types_description"
2231
  msgid "All video subtypes"
2232
  msgstr ""
2233
 
2234
+ #: includes/class-mla-options.php:1018
2235
  msgctxt "post_mime_types_singular"
2236
  msgid "Text"
2237
  msgstr ""
2238
 
2239
+ #: includes/class-mla-options.php:1019
2240
  msgctxt "post_mime_types_plural"
2241
  msgid "Text"
2242
  msgstr ""
2243
 
2244
+ #: includes/class-mla-options.php:1024
2245
  msgctxt "post_mime_types_description"
2246
  msgid "All text subtypes"
2247
  msgstr ""
2248
 
2249
+ #: includes/class-mla-options.php:1027
2250
  msgctxt "post_mime_types_singular"
2251
  msgid "Application"
2252
  msgstr ""
2253
 
2254
+ #: includes/class-mla-options.php:1028
2255
  msgctxt "post_mime_types_plural"
2256
  msgid "Applications"
2257
  msgstr ""
2258
 
2259
+ #: includes/class-mla-options.php:1033
2260
  msgctxt "post_mime_types_description"
2261
  msgid "All application subtypes"
2262
  msgstr ""
2263
 
2264
+ #: includes/class-mla-options.php:1037
2265
  msgctxt "post_mime_types_plural"
2266
  msgid "Unattached"
2267
  msgstr ""
2268
 
2269
+ #: includes/class-mla-options.php:1045
2270
  msgctxt "post_mime_types_singular"
2271
  msgid "Trash"
2272
  msgstr ""
2273
 
2274
+ #: includes/class-mla-options.php:1046
2275
  msgctxt "post_mime_types_plural"
2276
  msgid "Trash"
2277
  msgstr ""
2278
 
2279
+ #: includes/class-mla-options.php:1057
2280
  msgid "Enable Upload MIME Type Support"
2281
  msgstr ""
2282
 
2283
+ #: includes/class-mla-options.php:1060
2284
  msgid ""
2285
  "Check/uncheck this option to enable/disable Upload MIME Type Support, then "
2286
  "click <strong>Save Changes</strong> to record the new setting."
2287
  msgstr ""
2288
 
2289
+ #: includes/class-mla-options.php:1069
2290
  msgid "Upload MIME Types help."
2291
  msgstr ""
2292
 
2293
+ #: includes/class-mla-options.php:1074
2294
  msgid "Enable MLA File Type Icons Support"
2295
  msgstr ""
2296
 
2297
+ #: includes/class-mla-options.php:1077
2298
  msgid ""
2299
  "Check/uncheck this option to enable/disable MLA File Type Icons Support, "
2300
  "then click <strong>Save Changes</strong> to record the new setting."
2301
  msgstr ""
2302
 
2303
+ #: includes/class-mla-options.php:1104 includes/class-mla-options.php:1126
2304
+ #: includes/class-mla-options.php:1168
2305
  msgid "no templates exist"
2306
  msgstr ""
2307
 
2308
+ #: includes/class-mla-options.php:1112
2309
  msgid "not found"
2310
  msgstr ""
2311
 
2312
  #. translators: 1: option name 2: action, e.g., update, delete, reset
2313
+ #: includes/class-mla-options.php:1444 includes/class-mla-options.php:1595
2314
+ #: includes/class-mla-options.php:3178 includes/class-mla-options.php:4316
2315
  #, php-format
2316
  msgid "ERROR: Custom %1$s unknown action \"%2$s\""
2317
  msgstr ""
2318
 
2319
+ #: includes/class-mla-options.php:1531
2320
  msgid "Support"
2321
  msgstr ""
2322
 
2323
+ #: includes/class-mla-options.php:1532
2324
  msgid "Inline Edit"
2325
  msgstr ""
2326
 
2327
+ #: includes/class-mla-options.php:1533
2328
+ msgid "Checklist"
2329
+ msgstr ""
2330
+
2331
+ #: includes/class-mla-options.php:1534
2332
  msgid "List Filter"
2333
  msgstr ""
2334
 
2335
+ #: includes/class-mla-options.php:1535
2336
  msgid "Taxonomy"
2337
  msgstr ""
2338
 
2339
  #. translators: 1: taxonomy name
2340
+ #: includes/class-mla-options.php:1552
2341
  #, php-format
2342
  msgid "List Filter ignored; %1$s not supported."
2343
  msgstr ""
2344
 
2345
  #. translators: 1: taxonomy name
2346
+ #: includes/class-mla-options.php:1559
2347
  #, php-format
2348
+ msgid "Inline Edit ignored; %1$s not supported."
2349
+ msgstr ""
2350
+
2351
+ #. translators: 1: taxonomy name
2352
+ #: includes/class-mla-options.php:1569
2353
+ #, php-format
2354
+ msgid "Checklist ignored; %1$s not supported."
2355
  msgstr ""
2356
 
2357
  #. translators: 1: option name, e.g., taxonomy_support
2358
+ #: includes/class-mla-options.php:1585
2359
  #, php-format
2360
  msgid "Update custom %1$s"
2361
  msgstr ""
2362
 
2363
  #. translators: 1: option name, e.g., taxonomy_support
2364
+ #: includes/class-mla-options.php:1592 includes/class-mla-options.php:4309
2365
  #, php-format
2366
  msgid "Reset custom %1$s"
2367
  msgstr ""
2368
 
2369
+ #: includes/class-mla-options.php:2573 includes/class-mla-options.php:2670
2370
+ #: includes/class-mla-options.php:3510 includes/class-mla-options.php:3541
2371
+ #: includes/class-mla-settings.php:1437
2372
  msgid "None (select a value)"
2373
  msgstr ""
2374
 
2375
+ #: includes/class-mla-options.php:2677
2376
  msgid "Metadata (see below)"
2377
  msgstr ""
2378
 
2379
+ #: includes/class-mla-options.php:2684
2380
  msgid "Template (see below)"
2381
  msgstr ""
2382
 
2383
  #. translators: 1: custom field name
2384
+ #: includes/class-mla-options.php:2749 includes/class-mla-options.php:3800
2385
  #, php-format
2386
  msgid "ERROR: New field %1$s already exists."
2387
  msgstr ""
2388
 
2389
  #. translators: 1: custom field name
2390
+ #: includes/class-mla-options.php:2754 includes/class-mla-options.php:3805
2391
  #, php-format
2392
  msgid "Adding new field %1$s."
2393
  msgstr ""
2394
 
2395
  #. translators: 1: custom field name
2396
+ #: includes/class-mla-options.php:2764 includes/class-mla-options.php:3815
2397
  #, php-format
2398
  msgid "Adding new rule for %1$s."
2399
  msgstr ""
2400
 
2401
  #. translators: 1: custom field name
2402
+ #: includes/class-mla-options.php:2795 includes/class-mla-options.php:3836
2403
  #, php-format
2404
  msgid "Deleting rule for %1$s."
2405
  msgstr ""
2406
 
2407
  #. translators: 1: custom field name 2: attribute 3: old value 4: new value
2408
+ #: includes/class-mla-options.php:2818 includes/class-mla-options.php:2839
2409
+ #: includes/class-mla-options.php:2889 includes/class-mla-options.php:2896
2410
+ #: includes/class-mla-options.php:3607 includes/class-mla-options.php:3614
2411
+ #: includes/class-mla-options.php:3621 includes/class-mla-options.php:3702
2412
+ #: includes/class-mla-options.php:3709 includes/class-mla-options.php:3744
2413
+ #: includes/class-mla-options.php:3751 includes/class-mla-options.php:3846
2414
+ #: includes/class-mla-options.php:3853
2415
  #, php-format
2416
  msgid "%1$s changing %2$s from %3$s to %4$s."
2417
  msgstr ""
2418
 
2419
+ #: includes/class-mla-options.php:2818 includes/class-mla-options.php:3135
2420
  msgid "Data Source"
2421
  msgstr ""
2422
 
2423
+ #: includes/class-mla-options.php:2824 includes/class-mla-options.php:3641
2424
+ #: includes/class-mla-options.php:3729 includes/class-mla-options.php:3873
2425
  msgid "Replace to Keep"
2426
  msgstr ""
2427
 
2428
+ #: includes/class-mla-options.php:2827 includes/class-mla-options.php:3644
2429
+ #: includes/class-mla-options.php:3732 includes/class-mla-options.php:3876
2430
  msgid "Keep to Replace"
2431
  msgstr ""
2432
 
2433
  #. translators: 1: custom field name 2: attribute 3: old value 'to' new value
2434
+ #: includes/class-mla-options.php:2832 includes/class-mla-options.php:2853
2435
+ #: includes/class-mla-options.php:2867 includes/class-mla-options.php:2881
2436
+ #: includes/class-mla-options.php:2910 includes/class-mla-options.php:3635
2437
+ #: includes/class-mla-options.php:3649 includes/class-mla-options.php:3723
2438
+ #: includes/class-mla-options.php:3737 includes/class-mla-options.php:3867
2439
+ #: includes/class-mla-options.php:3881
2440
  #, php-format
2441
  msgid "%1$s changing %2$s value from %3$s."
2442
  msgstr ""
2443
 
2444
+ #: includes/class-mla-options.php:2832 includes/class-mla-options.php:3136
2445
+ #: includes/class-mla-options.php:3649 includes/class-mla-options.php:3737
2446
+ #: includes/class-mla-options.php:3881 includes/class-mla-options.php:4003
2447
+ #: includes/class-mla-options.php:4089 includes/class-mla-options.php:4207
2448
  msgid "Existing Text"
2449
  msgstr ""
2450
 
2451
+ #: includes/class-mla-options.php:2839 includes/class-mla-options.php:3137
2452
  msgid "Format"
2453
  msgstr ""
2454
 
2455
+ #: includes/class-mla-options.php:2845 includes/class-mla-options.php:2859
2456
+ #: includes/class-mla-options.php:2873 includes/class-mla-options.php:2902
2457
  msgid "unchecked to checked"
2458
  msgstr ""
2459
 
2460
+ #: includes/class-mla-options.php:2848 includes/class-mla-options.php:2862
2461
+ #: includes/class-mla-options.php:2876 includes/class-mla-options.php:2905
2462
  msgid "checked to unchecked"
2463
  msgstr ""
2464
 
2465
+ #: includes/class-mla-options.php:2853 includes/class-mla-options.php:3138
2466
  msgid "MLA Column"
2467
  msgstr ""
2468
 
2469
+ #: includes/class-mla-options.php:2889
2470
  msgid "Metavalue name"
2471
  msgstr ""
2472
 
2473
+ #: includes/class-mla-options.php:2896 includes/class-mla-options.php:2977
2474
+ #: includes/class-mla-options.php:3073 includes/class-mla-options.php:3115
2475
  msgid "Option"
2476
  msgstr ""
2477
 
2478
+ #: includes/class-mla-options.php:2910
2479
  msgid "Delete NULL"
2480
  msgstr ""
2481
 
2482
+ #: includes/class-mla-options.php:2949 includes/class-mla-options.php:4101
2483
  msgid "No Custom Field Mapping Rules Defined"
2484
  msgstr ""
2485
 
2486
+ #: includes/class-mla-options.php:2963 includes/class-mla-options.php:3060
2487
+ #: includes/class-mla-options.php:3102 includes/class-mla-options.php:3978
2488
+ #: includes/class-mla-options.php:4028 includes/class-mla-options.php:4125
2489
+ #: includes/class-mla-options.php:4169 includes/class-mla-options.php:4194
2490
  msgid "Keep"
2491
  msgstr ""
2492
 
2493
+ #: includes/class-mla-options.php:2967 includes/class-mla-options.php:3064
2494
+ #: includes/class-mla-options.php:3106
2495
  msgid "Native"
2496
  msgstr ""
2497
 
2498
+ #: includes/class-mla-options.php:2969 includes/class-mla-options.php:3066
2499
+ #: includes/class-mla-options.php:3108
2500
  msgid "Commas"
2501
  msgstr ""
2502
 
2503
+ #: includes/class-mla-options.php:2979 includes/class-mla-options.php:3075
2504
+ #: includes/class-mla-options.php:3117
2505
  msgid "Text"
2506
  msgstr ""
2507
 
2508
+ #: includes/class-mla-options.php:2981 includes/class-mla-options.php:3077
2509
+ #: includes/class-mla-options.php:3119
2510
  msgid "Single"
2511
  msgstr ""
2512
 
2513
+ #: includes/class-mla-options.php:2983 includes/class-mla-options.php:3079
2514
+ #: includes/class-mla-options.php:3121
2515
  msgid "Export"
2516
  msgstr ""
2517
 
2518
+ #: includes/class-mla-options.php:2985 includes/class-mla-options.php:3081
2519
+ #: includes/class-mla-options.php:3123
2520
  msgid "Array"
2521
  msgstr ""
2522
 
2523
+ #: includes/class-mla-options.php:2987 includes/class-mla-options.php:3083
2524
+ #: includes/class-mla-options.php:3125
2525
  msgid "Multi"
2526
  msgstr ""
2527
 
2528
+ #: includes/class-mla-options.php:2989 includes/class-mla-options.php:3085
2529
+ #: includes/class-mla-options.php:3127
2530
  msgid "Delete NULL values"
2531
  msgstr ""
2532
 
2533
+ #: includes/class-mla-options.php:2990 includes/class-mla-options.php:4128
2534
  msgid "Delete Rule"
2535
  msgstr ""
2536
 
2537
+ #: includes/class-mla-options.php:2991 includes/class-mla-options.php:4129
2538
  msgid "Delete Rule AND Field"
2539
  msgstr ""
2540
 
2541
+ #: includes/class-mla-options.php:2992 includes/class-mla-options.php:4130
2542
  msgid "Update Rule"
2543
  msgstr ""
2544
 
2545
+ #: includes/class-mla-options.php:2993 includes/class-mla-options.php:4131
2546
  msgid "Map All Attachments"
2547
  msgstr ""
2548
 
2549
+ #: includes/class-mla-options.php:3055 includes/class-mla-options.php:4158
2550
  msgid "Add a new Mapping Rule"
2551
  msgstr ""
2552
 
2553
+ #: includes/class-mla-options.php:3086 includes/class-mla-options.php:4172
2554
  msgid "Add Rule"
2555
  msgstr ""
2556
 
2557
+ #: includes/class-mla-options.php:3087 includes/class-mla-options.php:4173
2558
  msgid "Add Rule and Map All Attachments"
2559
  msgstr ""
2560
 
2561
+ #: includes/class-mla-options.php:3097 includes/class-mla-options.php:4183
2562
  msgid "Add a new Field and Mapping Rule"
2563
  msgstr ""
2564
 
2565
+ #: includes/class-mla-options.php:3128 includes/class-mla-options.php:4197
2566
  msgid "Add Field"
2567
  msgstr ""
2568
 
2569
+ #: includes/class-mla-options.php:3129 includes/class-mla-options.php:4198
2570
  msgid "Add Field and Map All Attachments"
2571
  msgstr ""
2572
 
2573
+ #: includes/class-mla-options.php:3134 includes/class-mla-options.php:3607
2574
+ #: includes/class-mla-options.php:3999 includes/class-mla-options.php:4085
2575
+ #: includes/class-mla-options.php:4203
2576
  msgid "Field Title"
2577
  msgstr ""
2578
 
2579
+ #: includes/class-mla-options.php:3159
2580
  msgid "Custom field mapping rules updated."
2581
  msgstr ""
2582
 
2583
+ #: includes/class-mla-options.php:3161
2584
  msgid "ERROR: Custom field mapping rules update failed."
2585
  msgstr ""
2586
 
2587
+ #: includes/class-mla-options.php:3164
2588
  msgid "Custom field no mapping rule changes detected."
2589
  msgstr ""
2590
 
2591
+ #: includes/class-mla-options.php:3172
2592
  msgid "Custom field mapping settings saved."
2593
  msgstr ""
2594
 
2595
+ #: includes/class-mla-options.php:3174
2596
  msgid "ERROR: Custom field mapping settings reset failed."
2597
  msgstr ""
2598
 
2599
  #. translators: 1: custom field name
2600
+ #: includes/class-mla-options.php:3595
2601
  #, php-format
2602
  msgid "ERROR: No old values for %1$s."
2603
  msgstr ""
2604
 
2605
+ #: includes/class-mla-options.php:3614 includes/class-mla-options.php:3702
2606
+ #: includes/class-mla-options.php:3846 includes/class-mla-options.php:4000
2607
+ #: includes/class-mla-options.php:4086 includes/class-mla-options.php:4204
2608
  msgid "IPTC Value"
2609
  msgstr ""
2610
 
2611
+ #: includes/class-mla-options.php:3621 includes/class-mla-options.php:3709
2612
+ #: includes/class-mla-options.php:3853
2613
  msgid "EXIF Value"
2614
  msgstr ""
2615
 
2616
+ #: includes/class-mla-options.php:3627 includes/class-mla-options.php:3715
2617
+ #: includes/class-mla-options.php:3859
2618
  msgid "EXIF to IPTC"
2619
  msgstr ""
2620
 
2621
+ #: includes/class-mla-options.php:3630 includes/class-mla-options.php:3718
2622
+ #: includes/class-mla-options.php:3862
2623
  msgid "IPTC to EXIF"
2624
  msgstr ""
2625
 
2626
+ #: includes/class-mla-options.php:3635 includes/class-mla-options.php:3723
2627
+ #: includes/class-mla-options.php:3867 includes/class-mla-options.php:4002
2628
+ #: includes/class-mla-options.php:4088 includes/class-mla-options.php:4206
2629
  msgid "Priority"
2630
  msgstr ""
2631
 
2632
+ #: includes/class-mla-options.php:3744 includes/class-mla-options.php:4090
2633
  msgid "Delimiter(s)"
2634
  msgstr ""
2635
 
2636
+ #: includes/class-mla-options.php:3974 includes/class-mla-options.php:4024
2637
+ #: includes/class-mla-options.php:4121 includes/class-mla-options.php:4165
2638
+ #: includes/class-mla-options.php:4190
2639
  msgid "IPTC"
2640
  msgstr ""
2641
 
2642
+ #: includes/class-mla-options.php:3976 includes/class-mla-options.php:4026
2643
+ #: includes/class-mla-options.php:4123 includes/class-mla-options.php:4167
2644
+ #: includes/class-mla-options.php:4192
2645
  msgid "EXIF"
2646
  msgstr ""
2647
 
2648
+ #: includes/class-mla-options.php:4001 includes/class-mla-options.php:4087
2649
+ #: includes/class-mla-options.php:4205
2650
  msgid "EXIF/Template Value"
2651
  msgstr ""
2652
 
2653
  #. translators: 1: option name
2654
+ #: includes/class-mla-options.php:4215
2655
  #, php-format
2656
  msgid "ERROR: Render unknown custom %1$s."
2657
  msgstr ""
2658
 
2659
  #. translators: 1: option name
2660
+ #: includes/class-mla-options.php:4259
2661
  #, php-format
2662
  msgid "ERROR: Update/delete unknown custom %1$s."
2663
  msgstr ""
2664
 
2665
+ #: includes/class-mla-options.php:4265
2666
  msgid "IPTC/EXIF mapping settings updated."
2667
  msgstr ""
2668
 
2669
+ #: includes/class-mla-options.php:4267
2670
  msgid "ERROR: IPTC/EXIF settings update failed."
2671
  msgstr ""
2672
 
2673
+ #: includes/class-mla-options.php:4270
2674
  msgid "IPTC/EXIF no mapping changes detected."
2675
  msgstr ""
2676
 
2677
  #. translators: 1: field type
2678
+ #: includes/class-mla-options.php:4281 includes/class-mla-options.php:4291
2679
+ #: includes/class-mla-options.php:4301 includes/class-mla-settings.php:2811
2680
  #, php-format
2681
  msgid "%1$s settings saved."
2682
  msgstr ""
2683
 
2684
+ #: includes/class-mla-options.php:4281 includes/class-mla-options.php:4284
2685
+ #: includes/class-mla-settings.php:3037 includes/class-mla-settings.php:3069
2686
+ #: includes/class-mla-settings.php:3072
2687
  msgid "Standard field"
2688
  msgstr ""
2689
 
2690
  #. translators: 1: field type
2691
+ #: includes/class-mla-options.php:4284 includes/class-mla-options.php:4294
2692
+ #: includes/class-mla-options.php:4304
2693
  #, php-format
2694
  msgid "ERROR: IPTC/EXIF %1$s settings update failed."
2695
  msgstr ""
2696
 
2697
+ #: includes/class-mla-options.php:4291 includes/class-mla-options.php:4294
2698
+ #: includes/class-mla-settings.php:3095 includes/class-mla-settings.php:3127
2699
+ #: includes/class-mla-settings.php:3130
2700
  msgid "Taxonomy term"
2701
  msgstr ""
2702
 
2703
+ #: includes/class-mla-options.php:4301 includes/class-mla-options.php:4304
2704
+ #: includes/class-mla-settings.php:2944 includes/class-mla-settings.php:2947
2705
+ #: includes/class-mla-settings.php:3165 includes/class-mla-settings.php:3197
2706
+ #: includes/class-mla-settings.php:3200
2707
  msgid "Custom field"
2708
  msgstr ""
2709
 
2710
  #. translators: 1: option name, e.g., taxonomy_support
2711
+ #: includes/class-mla-options.php:4312
2712
  #, php-format
2713
  msgid "ERROR: Reset unknown custom %1$s"
2714
  msgstr ""
2715
 
2716
+ #: includes/class-mla-settings.php:306 includes/class-mla-settings.php:324
2717
  msgid "no slug"
2718
  msgstr ""
2719
 
2720
+ #: includes/class-mla-settings.php:356
2721
  msgid "Media Library Assistant Settings"
2722
  msgstr ""
2723
 
2724
+ #: includes/class-mla-settings.php:375
2725
  msgid "Views per page"
2726
  msgstr ""
2727
 
2728
+ #: includes/class-mla-settings.php:386
2729
  msgid "Types per page"
2730
  msgstr ""
2731
 
2732
+ #: includes/class-mla-settings.php:397
2733
  msgid "Upload types per page"
2734
  msgstr ""
2735
 
2736
+ #: includes/class-mla-settings.php:533
2737
  msgid "ERROR: No view slug found"
2738
  msgstr ""
2739
 
2740
+ #: includes/class-mla-settings.php:576
2741
  msgid "ERROR: No upload slug found"
2742
  msgstr ""
2743
 
2744
+ #: includes/class-mla-settings.php:612 includes/class-mla-settings.php:2529
2745
  msgid "Settings"
2746
  msgstr ""
2747
 
2748
  #. translators: 1: function name 2: option type, e.g., radio, select, text
2749
+ #: includes/class-mla-settings.php:660 includes/class-mla-settings.php:692
2750
+ #: includes/class-mla-settings.php:830
2751
  #, php-format
2752
  msgctxt "error_log"
2753
  msgid "ERROR: %1$s unknown type = \"%2$s\""
2754
  msgstr ""
2755
 
2756
+ #: includes/class-mla-settings.php:728 includes/class-mla-settings.php:962
2757
  msgid "Go to Top"
2758
  msgstr ""
2759
 
2760
+ #: includes/class-mla-settings.php:879
2761
  msgid "General"
2762
  msgstr ""
2763
 
2764
+ #: includes/class-mla-settings.php:880
2765
  msgid "Views"
2766
  msgstr ""
2767
 
2768
+ #: includes/class-mla-settings.php:881
2769
  msgid "Uploads"
2770
  msgstr ""
2771
 
2772
+ #: includes/class-mla-settings.php:882 includes/class-mla-settings.php:2811
2773
+ #: includes/class-mla-settings.php:2814
2774
  msgid "MLA Gallery"
2775
  msgstr ""
2776
 
2777
+ #: includes/class-mla-settings.php:883
2778
  msgid "Custom Fields"
2779
  msgstr ""
2780
 
2781
+ #: includes/class-mla-settings.php:885
2782
  msgid "Documentation"
2783
  msgstr ""
2784
 
2785
+ #: includes/class-mla-settings.php:954
2786
  msgid "General Processing Options"
2787
  msgstr ""
2788
 
2789
  #. translators: 1: - 4: page subheader values
2790
+ #: includes/class-mla-settings.php:956
2791
  #, php-format
2792
  msgid ""
2793
  "In this tab you can find a number of options for controlling the "
2796
  "any changes you make."
2797
  msgstr ""
2798
 
2799
+ #: includes/class-mla-settings.php:956
2800
  msgid "Media/Assistant Table Defaults"
2801
  msgstr ""
2802
 
2803
+ #: includes/class-mla-settings.php:957 includes/class-mla-settings.php:1317
2804
+ #: includes/class-mla-settings.php:1370 includes/class-mla-settings.php:1787
2805
+ #: includes/class-mla-settings.php:1837 includes/class-mla-settings.php:1923
2806
+ #: includes/class-mla-settings.php:2327 includes/class-mla-settings.php:2330
2807
+ #: includes/class-mla-settings.php:2450 includes/class-mla-settings.php:2452
2808
  msgid "Save Changes"
2809
  msgstr ""
2810
 
2811
+ #: includes/class-mla-settings.php:958
2812
  msgid "Export ALL Settings"
2813
  msgstr ""
2814
 
2815
+ #: includes/class-mla-settings.php:959
2816
  msgid "Delete General options and restore default settings"
2817
  msgstr ""
2818
 
2819
+ #: includes/class-mla-settings.php:963
2820
  msgid "Support Our Work"
2821
  msgstr ""
2822
 
2823
+ #: includes/class-mla-settings.php:964 includes/class-mla-settings.php:967
2824
  msgid "Donate to FTJ"
2825
  msgstr ""
2826
 
2827
+ #: includes/class-mla-settings.php:965
2828
  msgid "Donate"
2829
  msgstr ""
2830
 
2831
  #. translators: 1: donation hyperlink
2832
+ #: includes/class-mla-settings.php:967
2833
  #, php-format
2834
  msgid ""
2835
  "This plugin was inspired by my work on the WordPress web site for our "
2838
  "our work. Thank you!"
2839
  msgstr ""
2840
 
2841
+ #: includes/class-mla-settings.php:967
2842
  msgid "tax-deductible donation"
2843
  msgstr ""
2844
 
2845
+ #: includes/class-mla-settings.php:988
 
 
 
 
2846
  msgid "enhanced version of the WordPress [gallery] shortcode."
2847
  msgstr ""
2848
 
2849
+ #: includes/class-mla-settings.php:988 includes/class-mla-settings.php:989
2850
  msgid "For complete documentation"
2851
  msgstr ""
2852
 
2853
+ #: includes/class-mla-settings.php:988 includes/class-mla-settings.php:989
2854
  msgid "click here"
2855
  msgstr ""
2856
 
2857
+ #: includes/class-mla-settings.php:989
2858
  msgid "enhanced version of the WordPress Tag Cloud."
2859
  msgstr ""
2860
 
2861
+ #: includes/class-mla-settings.php:1001
2862
  msgid "Shortcodes made available by this plugin"
2863
  msgstr ""
2864
 
2865
+ #: includes/class-mla-settings.php:1110
2866
  msgid "Edit View"
2867
  msgstr ""
2868
 
2869
+ #: includes/class-mla-settings.php:1116 includes/class-mla-settings.php:1373
2870
  msgid ""
2871
  "The &#8220;slug&#8221; is the URL-friendly, unique key for the view. It must "
2872
  "be all lowercase and contain only letters, numbers, periods (.), slashes (/) "
2875
  "MIME</strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
2876
  msgstr ""
2877
 
2878
+ #: includes/class-mla-settings.php:1117 includes/class-mla-settings.php:1374
2879
  msgid "Singular Label"
2880
  msgstr ""
2881
 
2882
+ #: includes/class-mla-settings.php:1118 includes/class-mla-settings.php:1375
2883
  msgid "Plural Label"
2884
  msgstr ""
2885
 
2886
+ #: includes/class-mla-settings.php:1119 includes/class-mla-settings.php:1376
2887
  msgid ""
2888
  "The labels, e.g., &#8220;Image&#8221; and &#8220;Images&#8221; are used for "
2889
  "column headers and other display purposes."
2890
  msgstr ""
2891
 
2892
+ #: includes/class-mla-settings.php:1120 includes/class-mla-settings.php:1377
2893
  msgid "Specification"
2894
  msgstr ""
2895
 
2896
+ #: includes/class-mla-settings.php:1121 includes/class-mla-settings.php:1378
2897
  msgid ""
2898
  "If the MIME type specification differs from the slug, enter it here. You may "
2899
  "include multiple MIME types, e.g., &#8220;audio,video&#8221; and/or wildcard "
2901
  "MIME Type box is checked."
2902
  msgstr ""
2903
 
2904
+ #: includes/class-mla-settings.php:1122 includes/class-mla-settings.php:1379
2905
  msgid "Post MIME Type"
2906
  msgstr ""
2907
 
2908
+ #: includes/class-mla-settings.php:1123 includes/class-mla-settings.php:1380
2909
  msgid ""
2910
  "Check this box if you want to add this entry to the list of MIME types "
2911
  "returned by wp_get_mime_types()."
2912
  msgstr ""
2913
 
2914
+ #: includes/class-mla-settings.php:1124 includes/class-mla-settings.php:1381
2915
  msgid "Table View"
2916
  msgstr ""
2917
 
2918
+ #: includes/class-mla-settings.php:1125 includes/class-mla-settings.php:1382
2919
  msgid ""
2920
  "Check this box if you want to add this entry to the list of Media/Assistant "
2921
  "table views."
2922
  msgstr ""
2923
 
2924
+ #: includes/class-mla-settings.php:1127 includes/class-mla-settings.php:1384
2925
  msgid ""
2926
  "You can choose your own table view order by entering a number (1 for first, "
2927
  "etc.) in this field."
2928
  msgstr ""
2929
 
2930
+ #: includes/class-mla-settings.php:1129 includes/class-mla-settings.php:1386
2931
+ #: includes/class-mla-settings.php:1485 includes/class-mla-settings.php:1849
2932
  msgid ""
2933
  "The description can contain any documentation or notes you need to "
2934
  "understand or use the item."
2935
  msgstr ""
2936
 
2937
  #. translators: 1: view name/slug
2938
+ #: includes/class-mla-settings.php:1279 includes/class-mla-settings.php:1749
2939
  #, php-format
2940
  msgid "Edit view \"%1$s\" cancelled."
2941
  msgstr ""
2942
 
2943
+ #: includes/class-mla-settings.php:1314
2944
  msgid "View and Post MIME Type Support is disabled"
2945
  msgstr ""
2946
 
2947
+ #: includes/class-mla-settings.php:1359 includes/class-mla-settings.php:1362
2948
  msgid "Library Views/Post MIME Type Processing"
2949
  msgstr ""
2950
 
2951
+ #: includes/class-mla-settings.php:1360
2952
  msgid ""
2953
  "In this tab you can manage the list of \"Post MIME Types\", which are used "
2954
  "by WordPress to define the views for the <em><strong>Media/Library</strong></"
2960
  msgstr ""
2961
 
2962
  #. translators: 1: Documentation hyperlink
2963
+ #: includes/class-mla-settings.php:1362
2964
  #, php-format
2965
  msgid ""
2966
  "You can find more information about library views, Post MIME types and how "
2969
  "screen."
2970
  msgstr ""
2971
 
2972
+ #: includes/class-mla-settings.php:1362
2973
  msgid "Library View Processing documentation"
2974
  msgstr ""
2975
 
2976
+ #: includes/class-mla-settings.php:1366 includes/class-mla-settings.php:1555
2977
+ #: includes/class-mla-settings.php:1861
2978
  msgid "Displaying search results for"
2979
  msgstr ""
2980
 
2981
+ #: includes/class-mla-settings.php:1367
2982
  msgid "Search Views"
2983
  msgstr ""
2984
 
2985
+ #: includes/class-mla-settings.php:1371
2986
  msgid "Add New View"
2987
  msgstr ""
2988
 
2989
+ #: includes/class-mla-settings.php:1387
2990
  msgid "Add View"
2991
  msgstr ""
2992
 
2993
+ #: includes/class-mla-settings.php:1389 includes/class-mla-settings.php:1854
2994
  msgid "<strong>Quick Edit</strong>"
2995
  msgstr ""
2996
 
2997
+ #: includes/class-mla-settings.php:1395
2998
+ #: includes/class-mla-view-list-table.php:377
2999
+ #: includes/class-mla-view-list-table.php:393
3000
  msgid "Yes"
3001
  msgstr ""
3002
 
3003
+ #: includes/class-mla-settings.php:1470
3004
  msgid "Edit Upload MIME Type"
3005
  msgstr ""
3006
 
3007
+ #: includes/class-mla-settings.php:1475 includes/class-mla-settings.php:1840
3008
  msgid "Extension"
3009
  msgstr ""
3010
 
3011
+ #: includes/class-mla-settings.php:1476
3012
  msgid ""
3013
  "The &#8220;extension&#8221; is the file extension for this type, and a "
3014
  "unique key for the item. It must be all lowercase and contain only letters "
3015
  "and numbers."
3016
  msgstr ""
3017
 
3018
+ #: includes/class-mla-settings.php:1478 includes/class-mla-settings.php:1843
3019
  msgid ""
3020
  "The MIME Type must be all lowercase and contain only letters, numbers, "
3021
  "periods (.), slashes (/) and hyphens (-). It <strong>must be a valid MIME</"
3022
  "strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
3023
  msgstr ""
3024
 
3025
+ #: includes/class-mla-settings.php:1479 includes/class-mla-settings.php:1844
3026
  msgid "Icon Type"
3027
  msgstr ""
3028
 
3029
+ #: includes/class-mla-settings.php:1481 includes/class-mla-settings.php:1845
3030
  msgid ""
3031
  "The Icon Type selects a thumbnail image displayed for non-image file types, "
3032
  "such as PDF documents."
3033
  msgstr ""
3034
 
3035
+ #: includes/class-mla-settings.php:1482 includes/class-mla-settings.php:1846
3036
  msgid "Inactive"
3037
  msgstr ""
3038
 
3039
+ #: includes/class-mla-settings.php:1483 includes/class-mla-settings.php:1847
3040
  msgid ""
3041
  "Check this box if you want to remove this entry from the list of Upload MIME "
3042
  "Types returned by get_allowed_mime_types()."
3043
  msgstr ""
3044
 
3045
+ #: includes/class-mla-settings.php:1554
3046
  msgid "Known File Extension/MIME Type Associations"
3047
  msgstr ""
3048
 
3049
+ #: includes/class-mla-settings.php:1556
3050
  msgid "Search Known MIME Types"
3051
  msgstr ""
3052
 
3053
+ #: includes/class-mla-settings.php:1558 includes/class-mla-settings.php:1833
3054
  msgid "To search by extension, use \".\", e.g., \".doc\""
3055
  msgstr ""
3056
 
3057
+ #: includes/class-mla-settings.php:1784
3058
  msgid "Upload MIME Type Support is disabled"
3059
  msgstr ""
3060
 
3061
+ #: includes/class-mla-settings.php:1827 includes/class-mla-settings.php:1830
3062
  msgid "File Extension and MIME Type Processing"
3063
  msgstr ""
3064
 
3065
+ #: includes/class-mla-settings.php:1828
3066
  msgid ""
3067
  "In this tab you can manage the list of file extension/MIME Type "
3068
  "associations, which are used by WordPress to decide what kind of files can "
3072
  msgstr ""
3073
 
3074
  #. translators: 1: Documentation hyperlink
3075
+ #: includes/class-mla-settings.php:1830
3076
  #, php-format
3077
  msgid ""
3078
  "You can find more information about file extensions, MIME types and how "
3080
  "the <strong>\"Help\"</strong> tab in the upper-right corner of this screen."
3081
  msgstr ""
3082
 
3083
+ #: includes/class-mla-settings.php:1830
3084
  msgid "File Extension Processing documentation"
3085
  msgstr ""
3086
 
3087
+ #: includes/class-mla-settings.php:1832
3088
  msgid "Search Uploads"
3089
  msgstr ""
3090
 
3091
+ #: includes/class-mla-settings.php:1838
3092
  msgid "Add New Upload MIME Type"
3093
  msgstr ""
3094
 
3095
+ #: includes/class-mla-settings.php:1839
3096
  msgid ""
3097
  "To search the database of over 1,500 known extension/type associations, "
3098
  "click \"Search Known Types\" below the form."
3099
  msgstr ""
3100
 
3101
+ #: includes/class-mla-settings.php:1841
3102
  msgid ""
3103
  "The &#8220;extension&#8221; is the file extension for this type, and unique "
3104
  "key for the item. It must be all lowercase and contain only letters and "
3105
  "numbers."
3106
  msgstr ""
3107
 
3108
+ #: includes/class-mla-settings.php:1850
3109
  msgid "Add Upload MIME Type"
3110
  msgstr ""
3111
 
3112
+ #: includes/class-mla-settings.php:1852
3113
  msgid "Search Known Types"
3114
  msgstr ""
3115
 
3116
+ #: includes/class-mla-settings.php:1858
3117
  msgid "Status"
3118
  msgstr ""
3119
 
3120
+ #: includes/class-mla-settings.php:1860
3121
  msgid "Active"
3122
  msgstr ""
3123
 
3124
+ #: includes/class-mla-settings.php:1913
3125
  msgid "MLA Gallery Options"
3126
  msgstr ""
3127
 
3128
+ #: includes/class-mla-settings.php:1914
3129
  msgid "Go to Markup Templates"
3130
  msgstr ""
3131
 
3132
+ #: includes/class-mla-settings.php:1915
3133
  msgid ""
3134
  "In this tab you can view the default style and markup templates. You can "
3135
  "also define additional templates and use the <code>mla_style</code> and "
3139
  "Changes\" at the bottom of this page."
3140
  msgstr ""
3141
 
3142
+ #: includes/class-mla-settings.php:1918
3143
  msgid "Style Templates"
3144
  msgstr ""
3145
 
3146
+ #: includes/class-mla-settings.php:1921
3147
  msgid "Markup Templates"
3148
  msgstr ""
3149
 
3150
+ #: includes/class-mla-settings.php:1934
3151
+ msgid "Theme"
3152
+ msgstr ""
3153
+
3154
+ #: includes/class-mla-settings.php:1982
3155
  msgid ""
3156
  "This default template cannot be altered or deleted, but you can copy the "
3157
  "styles."
3158
  msgstr ""
3159
 
3160
+ #: includes/class-mla-settings.php:1993 includes/class-mla-settings.php:2026
3161
+ #: includes/class-mla-settings.php:2052
3162
  msgid "Styles"
3163
  msgstr ""
3164
 
3165
+ #: includes/class-mla-settings.php:1997 includes/class-mla-settings.php:2030
3166
+ #: includes/class-mla-settings.php:2056
3167
  msgid ""
3168
  "List of substitution parameters, e.g., [+selector+], on Documentation tab."
3169
  msgstr ""
3170
 
3171
+ #: includes/class-mla-settings.php:2014 includes/class-mla-settings.php:2132
3172
  msgid "Delete this template"
3173
  msgstr ""
3174
 
3175
+ #: includes/class-mla-settings.php:2015 includes/class-mla-settings.php:2133
3176
  msgid ""
3177
  "Check the box to delete this template when you press Update at the bottom of "
3178
  "the page."
3179
  msgstr ""
3180
 
3181
+ #: includes/class-mla-settings.php:2041
3182
  msgid "Fill in a name and styles to add a new template."
3183
  msgstr ""
3184
 
3185
+ #: includes/class-mla-settings.php:2076
3186
  msgid ""
3187
  "This default template cannot be altered or deleted, but you can copy the "
3188
  "markup."
3189
  msgstr ""
3190
 
3191
+ #: includes/class-mla-settings.php:2088 includes/class-mla-settings.php:2145
3192
+ #: includes/class-mla-settings.php:2195
3193
  msgid "Open"
3194
  msgstr ""
3195
 
3196
+ #: includes/class-mla-settings.php:2092 includes/class-mla-settings.php:2149
3197
+ #: includes/class-mla-settings.php:2199
3198
  msgid ""
3199
  "Markup for the beginning of the gallery. List of parameters, e.g., [+selector"
3200
  "+], on Documentation tab."
3201
  msgstr ""
3202
 
3203
+ #: includes/class-mla-settings.php:2094 includes/class-mla-settings.php:2151
3204
+ #: includes/class-mla-settings.php:2201
3205
  msgid "Row"
3206
  msgstr ""
3207
 
3208
+ #: includes/class-mla-settings.php:2098 includes/class-mla-settings.php:2205
3209
  msgid "Markup for the beginning of each row in the gallery."
3210
  msgstr ""
3211
 
3212
+ #: includes/class-mla-settings.php:2100 includes/class-mla-settings.php:2157
3213
+ #: includes/class-mla-settings.php:2207
3214
  msgid "Item"
3215
  msgstr ""
3216
 
3217
+ #: includes/class-mla-settings.php:2104 includes/class-mla-settings.php:2211
3218
  msgid "Markup for each item/cell of the gallery."
3219
  msgstr ""
3220
 
3221
+ #: includes/class-mla-settings.php:2106 includes/class-mla-settings.php:2163
3222
+ #: includes/class-mla-settings.php:2213
3223
  msgid "Close"
3224
  msgstr ""
3225
 
3226
+ #: includes/class-mla-settings.php:2110 includes/class-mla-settings.php:2217
3227
  msgid "Markup for the end of each row in the gallery."
3228
  msgstr ""
3229
 
3230
+ #: includes/class-mla-settings.php:2115 includes/class-mla-settings.php:2172
3231
+ #: includes/class-mla-settings.php:2222
3232
  msgid "Markup for the end of the gallery."
3233
  msgstr ""
3234
 
3235
+ #: includes/class-mla-settings.php:2155
3236
  msgid "Markup for the beginning of each row."
3237
  msgstr ""
3238
 
3239
+ #: includes/class-mla-settings.php:2161
3240
  msgid "Markup for each item/cell."
3241
  msgstr ""
3242
 
3243
+ #: includes/class-mla-settings.php:2167
3244
  msgid "Markup for the end of each row."
3245
  msgstr ""
3246
 
3247
+ #: includes/class-mla-settings.php:2183
3248
  msgid "Fill in a name and markup to add a new template."
3249
  msgstr ""
3250
 
3251
+ #: includes/class-mla-settings.php:2317 includes/class-mla-settings.php:2321
3252
  msgid "Custom Field and Attachment Metadata Processing Options"
3253
  msgstr ""
3254
 
3255
  #. translators: 1: Documentation hyperlink
3256
+ #: includes/class-mla-settings.php:2319
3257
  #, php-format
3258
  msgid ""
3259
  "In this tab you can define the rules for mapping several types of image "
3263
  "field. See the %1$s section of the Documentation for details."
3264
  msgstr ""
3265
 
3266
+ #: includes/class-mla-settings.php:2319
3267
  msgid "Updating Attachment Metadata Documentation"
3268
  msgstr ""
3269
 
3270
+ #: includes/class-mla-settings.php:2319
3271
  msgid "Adding or changing Attachment Metadata"
3272
  msgstr ""
3273
 
3274
  #. translators: 1: Documentation hyperlink
3275
+ #: includes/class-mla-settings.php:2321 includes/class-mla-settings.php:2437
3276
  #, php-format
3277
  msgid ""
3278
  "You can find more information about using the controls in this tab to define "
3279
  "mapping rules and apply them in the %1$s section of the Documentation."
3280
  msgstr ""
3281
 
3282
+ #: includes/class-mla-settings.php:2321
3283
  msgid "Custom Field Options documentation"
3284
  msgstr ""
3285
 
3286
+ #: includes/class-mla-settings.php:2325 includes/class-mla-settings.php:2447
3287
  msgid "Custom field mapping"
3288
  msgstr ""
3289
 
3290
+ #: includes/class-mla-settings.php:2328 includes/class-mla-settings.php:2332
3291
  msgid "Map All Rules, All Attachments Now"
3292
  msgstr ""
3293
 
3294
  #. translators: 1: "Save Changes"
3295
+ #: includes/class-mla-settings.php:2330
3296
  #, php-format
3297
  msgid ""
3298
  "Click %1$s to update the \"Enable custom field mapping...\" checkbox and/or "
3301
  msgstr ""
3302
 
3303
  #. translators: 1: "Map All Rules..."
3304
+ #: includes/class-mla-settings.php:2332
3305
  #, php-format
3306
  msgid ""
3307
  "Click %1$s to apply all the rules at once (rule changes will be applied but "
3308
  "not saved)."
3309
  msgstr ""
3310
 
3311
+ #: includes/class-mla-settings.php:2434 includes/class-mla-settings.php:2437
3312
  msgid "IPTC &amp; EXIF Processing Options"
3313
  msgstr ""
3314
 
3315
+ #: includes/class-mla-settings.php:2435
3316
  msgid ""
3317
  "In this tab you can define the rules for mapping IPTC (International Press "
3318
  "Telecommunications Council) and EXIF (EXchangeable Image File) metadata to "
3321
  "click \"Save Changes\" at the bottom of this page."
3322
  msgstr ""
3323
 
3324
+ #: includes/class-mla-settings.php:2437
3325
  msgid "IPTC/EXIF Options documentation"
3326
  msgstr ""
3327
 
3328
+ #: includes/class-mla-settings.php:2441
3329
  msgid "Standard field mapping"
3330
  msgstr ""
3331
 
3332
+ #: includes/class-mla-settings.php:2442
3333
  msgid "Map All Attachments, Standard Fields Now"
3334
  msgstr ""
3335
 
3336
+ #: includes/class-mla-settings.php:2444
3337
  msgid "Taxonomy term mapping"
3338
  msgstr ""
3339
 
3340
+ #: includes/class-mla-settings.php:2445
3341
  msgid "Map All Attachments, Taxonomy Terms Now"
3342
  msgstr ""
3343
 
3344
+ #: includes/class-mla-settings.php:2448
3345
  msgid "Map All Attachments, Custom Fields Now"
3346
  msgstr ""
3347
 
3348
  #. translators: 1: "Save Changes"
3349
+ #: includes/class-mla-settings.php:2452
3350
  #, php-format
3351
  msgid ""
3352
  "Click %1$s to update the \"Enable IPTC/EXIF mapping...\" checkbox and/or all "
3354
  "performed.</strong>"
3355
  msgstr ""
3356
 
3357
+ #: includes/class-mla-settings.php:2512
3358
  msgid "Media Library Assistant - Error"
3359
  msgstr ""
3360
 
3361
+ #: includes/class-mla-settings.php:2513
3362
  msgid "You do not have permission to manage plugin settings."
3363
  msgstr ""
3364
 
3365
+ #: includes/class-mla-settings.php:2540
3366
  msgid "ERROR: Cannot render content tab"
3367
  msgstr ""
3368
 
3369
+ #: includes/class-mla-settings.php:2543
3370
  msgid "ERROR: Unknown content tab"
3371
  msgstr ""
3372
 
3373
  #. translators: 1: template type 2: template name
3374
+ #: includes/class-mla-settings.php:2623 includes/class-mla-settings.php:2713
3375
  #, php-format
3376
  msgctxt "message_list"
3377
  msgid "Deleting %1$s \"%2$s\"."
3378
  msgstr ""
3379
 
3380
  #. translators: 1: template name 2: template type
3381
+ #: includes/class-mla-settings.php:2634 includes/class-mla-settings.php:2726
3382
  #, php-format
3383
  msgid "ERROR: Reserved name \"%1$s\", new %2$s discarded."
3384
  msgstr ""
3385
 
3386
  #. translators: 1: template name 2: template type
3387
+ #: includes/class-mla-settings.php:2640 includes/class-mla-settings.php:2732
3388
  #, php-format
3389
  msgid "ERROR: Duplicate name \"%1$s\", new %2$s discarded."
3390
  msgstr ""
3391
 
3392
  #. translators: 1: template type 2: template name
3393
+ #: includes/class-mla-settings.php:2644 includes/class-mla-settings.php:2736
3394
  #, php-format
3395
  msgctxt "message_list"
3396
  msgid "Adding new %1$s \"%2$s\"."
3397
  msgstr ""
3398
 
3399
  #. translators: 1: element name 3: old value
3400
+ #: includes/class-mla-settings.php:2654 includes/class-mla-settings.php:2746
3401
  #, php-format
3402
  msgid "ERROR: Blank %1$s, reverting to \"%3$s\"."
3403
  msgstr ""
3404
 
3405
+ #: includes/class-mla-settings.php:2654 includes/class-mla-settings.php:2662
3406
+ #: includes/class-mla-settings.php:2666
3407
  msgid "style template name"
3408
  msgstr ""
3409
 
3410
  #. translators: 1: element name 2: new value 3: old value
3411
+ #: includes/class-mla-settings.php:2662 includes/class-mla-settings.php:2753
3412
  #, php-format
3413
  msgid "ERROR: Duplicate new %1$s \"%2$s\", reverting to \"%3$s\"."
3414
  msgstr ""
3415
 
3416
  #. translators: 1: element name 2: old_value 3: new_value
3417
+ #: includes/class-mla-settings.php:2666 includes/class-mla-settings.php:2757
3418
  #, php-format
3419
  msgctxt "message_list"
3420
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
3421
  msgstr ""
3422
 
3423
  #. translators: 1: template type 2: template name
3424
+ #: includes/class-mla-settings.php:2673
3425
  #, php-format
3426
  msgctxt "message_list"
3427
  msgid "Updating contents of %1$s \"%2$s\"."
3428
  msgstr ""
3429
 
3430
  #. translators: 1: template type
3431
+ #: includes/class-mla-settings.php:2684 includes/class-mla-settings.php:2805
3432
  #, php-format
3433
  msgid "ERROR: Update of %1$s failed."
3434
  msgstr ""
3435
 
3436
+ #: includes/class-mla-settings.php:2746 includes/class-mla-settings.php:2753
3437
+ #: includes/class-mla-settings.php:2757
3438
  msgid "markup template name"
3439
  msgstr ""
3440
 
3441
  #. translators: 1: template name
3442
+ #: includes/class-mla-settings.php:2765
3443
  #, php-format
3444
  msgctxt "message_list"
3445
  msgid "Updating open markup for \"%1$s\"."
3446
  msgstr ""
3447
 
3448
  #. translators: 1: template name
3449
+ #: includes/class-mla-settings.php:2771
3450
  #, php-format
3451
  msgctxt "message_list"
3452
  msgid "Updating row open markup for \"%1$s\"."
3453
  msgstr ""
3454
 
3455
  #. translators: 1: template name
3456
+ #: includes/class-mla-settings.php:2777
3457
  #, php-format
3458
  msgctxt "message_list"
3459
  msgid "Updating item markup for \"%1$s\"."
3460
  msgstr ""
3461
 
3462
  #. translators: 1: template name
3463
+ #: includes/class-mla-settings.php:2783
3464
  #, php-format
3465
  msgctxt "message_list"
3466
  msgid "Updating row close markup for \"%1$s\"."
3467
  msgstr ""
3468
 
3469
  #. translators: 1: template name
3470
+ #: includes/class-mla-settings.php:2789
3471
  #, php-format
3472
  msgctxt "message_list"
3473
  msgid "Updating close markup for \"%1$s\"."
3474
  msgstr ""
3475
 
3476
  #. translators: 1: field type
3477
+ #: includes/class-mla-settings.php:2814
3478
  #, php-format
3479
  msgid "%1$s no changes detected."
3480
  msgstr ""
3481
 
3482
+ #: includes/class-mla-settings.php:2849
3483
  msgid "View settings saved."
3484
  msgstr ""
3485
 
3486
+ #: includes/class-mla-settings.php:2883
3487
  msgid "Upload MIME Type settings saved."
3488
  msgstr ""
3489
 
3490
+ #: includes/class-mla-settings.php:2921
3491
  msgid "ERROR: No custom field mapping rules to process."
3492
  msgstr ""
3493
 
3494
  #. translators: 1: field type 2: examined count 3: updated count
3495
+ #: includes/class-mla-settings.php:2944 includes/class-mla-settings.php:3069
3496
+ #: includes/class-mla-settings.php:3127 includes/class-mla-settings.php:3197
3497
  #, php-format
3498
  msgid "%1$s mapping completed; %2$d attachment(s) examined, %3$d updated."
3499
  msgstr ""
3500
 
3501
  #. translators: 1: field type 2: examined count
3502
+ #: includes/class-mla-settings.php:2947 includes/class-mla-settings.php:3072
3503
+ #: includes/class-mla-settings.php:3130 includes/class-mla-settings.php:3200
3504
  #, php-format
3505
  msgid ""
3506
  "%1$s mapping completed; %2$d attachment(s) examined, no changes detected."
3507
  msgstr ""
3508
 
3509
+ #: includes/class-mla-settings.php:2974
3510
  #, php-format
3511
  msgid "%s attachment"
3512
  msgid_plural "%s attachments"
3514
  msgstr[1] ""
3515
 
3516
  #. translators: 1: number of attachments
3517
+ #: includes/class-mla-settings.php:2976
3518
  #, php-format
3519
  msgid "Deleted custom field value from %1$s."
3520
  msgstr ""
3521
 
3522
+ #: includes/class-mla-settings.php:2979
3523
  msgid "No attachments contained this custom field."
3524
  msgstr ""
3525
 
3526
  #. translators: 1: field type
3527
+ #: includes/class-mla-settings.php:3037 includes/class-mla-settings.php:3095
3528
+ #: includes/class-mla-settings.php:3165
3529
  #, php-format
3530
  msgid "ERROR: No %1$s settings to process."
3531
  msgstr ""
3532
 
3533
+ #: includes/class-mla-settings.php:3061 includes/class-mla-settings.php:3119
3534
+ #: includes/class-mla-settings.php:3189
3535
  msgid "updated."
3536
  msgstr ""
3537
 
3538
  #. translators: 1: reference type, e.g., Gallery in
3539
+ #: includes/class-mla-settings.php:3290 includes/class-mla-settings.php:3300
3540
  #, php-format
3541
  msgctxt "message_list"
3542
  msgid "%1$s - references updated."
3543
  msgstr ""
3544
 
3545
+ #: includes/class-mla-settings.php:3313
3546
  msgid "General settings saved."
3547
  msgstr ""
3548
 
3549
  #. translators: 1: option name
3550
+ #: includes/class-mla-settings.php:3344
3551
  #, php-format
3552
  msgctxt "message_list"
3553
  msgid "delete_option \"%1$s\""
3554
  msgstr ""
3555
 
3556
+ #: includes/class-mla-settings.php:3352
3557
  msgid "General settings reset to default values."
3558
  msgstr ""
3559
 
3560
+ #: includes/class-mla-settings.php:3394
3561
  msgid "select settings"
3562
  msgstr ""
3563
 
3564
+ #: includes/class-mla-settings.php:3414
3565
  msgid "Import ALL Settings"
3566
  msgstr ""
3567
 
3568
+ #: includes/class-mla-settings.php:3439
3569
  msgctxt "message_list"
3570
  msgid "exported"
3571
  msgstr ""
3572
 
3573
+ #: includes/class-mla-settings.php:3441
3574
  msgctxt "message_list"
3575
  msgid "skipped"
3576
  msgstr ""
3577
 
3578
+ #: includes/class-mla-settings.php:3448
3579
  msgid "ALL settings exported."
3580
  msgstr ""
3581
 
3582
  #. translators: 1: backup directory name
3583
+ #: includes/class-mla-settings.php:3459
3584
  #, php-format
3585
  msgid "ERROR: The settings directory ( %1$s ) cannot be created."
3586
  msgstr ""
3587
 
3588
  #. translators: 1: backup directory name
3589
+ #: includes/class-mla-settings.php:3463
3590
  #, php-format
3591
  msgid "ERROR: The settings directory ( %1$s ) is not writable."
3592
  msgstr ""
3593
 
3594
  #. translators: 1: backup file name
3595
+ #: includes/class-mla-settings.php:3474
3596
  #, php-format
3597
  msgid "ERROR: The settings file ( %1$s ) could not be opened."
3598
  msgstr ""
3599
 
3600
  #. translators: 1: PHP error information
3601
+ #: includes/class-mla-settings.php:3481
3602
  #, php-format
3603
  msgctxt "error_log"
3604
  msgid "ERROR: _export_settings $error_info = \"%1$s\"."
3605
  msgstr ""
3606
 
3607
  #. translators: 1: backup file name 2: error message
3608
+ #: includes/class-mla-settings.php:3490
3609
  #, php-format
3610
  msgid "ERROR: Writing the settings file ( %1$s ) \"%2$s\"."
3611
  msgstr ""
3612
 
3613
  #. translators: 1: number of option settings
3614
+ #: includes/class-mla-settings.php:3496
3615
  #, php-format
3616
  msgid "Settings exported; %1$s settings recorded."
3617
  msgstr ""
3618
 
3619
+ #: includes/class-mla-settings.php:3514
3620
  msgid "No settings imported."
3621
  msgstr ""
3622
 
3623
+ #: includes/class-mla-settings.php:3523
3624
  msgid "Please select an import settings file from the dropdown list."
3625
  msgstr ""
3626
 
3627
+ #: includes/class-mla-settings.php:3527
3628
  msgid "ERROR: The import settings dropdown selection is missing."
3629
  msgstr ""
3630
 
3631
  #. translators: 1: PHP error information
3632
+ #: includes/class-mla-settings.php:3535
3633
  #, php-format
3634
  msgctxt "error_log"
3635
  msgid "ERROR: _import_settings $error_info = \"%1$s\"."
3636
  msgstr ""
3637
 
3638
  #. translators: 1: backup file name 2: error message
3639
+ #: includes/class-mla-settings.php:3544
3640
  #, php-format
3641
  msgid "ERROR: Reading the settings file ( %1$s ) \"%2$s\"."
3642
  msgstr ""
3643
 
3644
+ #: includes/class-mla-settings.php:3554
3645
  msgctxt "message_list"
3646
  msgid "updated"
3647
  msgstr ""
3648
 
3649
+ #: includes/class-mla-settings.php:3557
3650
  msgctxt "message_list"
3651
  msgid "unchanged"
3652
  msgstr ""
3653
 
3654
  #. translators: 1: number of option settings updated 2: number of option settings unchanged
3655
+ #: includes/class-mla-settings.php:3562
3656
  #, php-format
3657
  msgid "Settings imported; %1$s updated, %2$s unchanged."
3658
  msgstr ""
3659
 
3660
+ #: includes/class-mla-shortcodes.php:255
3661
+ #: includes/class-mla-shortcodes.php:1152
3662
+ #: includes/class-mla-shortcodes.php:1981
3663
+ #: includes/class-mla-shortcodes.php:2246
3664
  msgid "Previous"
3665
  msgstr ""
3666
 
3667
+ #: includes/class-mla-shortcodes.php:256
3668
+ #: includes/class-mla-shortcodes.php:1153
3669
+ #: includes/class-mla-shortcodes.php:2028
3670
+ #: includes/class-mla-shortcodes.php:2252
3671
  msgid "Next"
3672
  msgstr ""
3673
 
3674
+ #: includes/class-mla-shortcodes.php:337
3675
  msgid "mla_debug empty gallery"
3676
  msgstr ""
3677
 
3678
+ #: includes/class-mla-shortcodes.php:401
3679
  msgid ""
3680
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
3681
  "<strong>default</strong>, query = "
3682
  msgstr ""
3683
 
3684
+ #: includes/class-mla-shortcodes.php:717
3685
  msgid "unattached"
3686
  msgstr ""
3687
 
3688
+ #: includes/class-mla-shortcodes.php:738
3689
  msgid "unknown"
3690
  msgstr ""
3691
 
3692
+ #: includes/class-mla-shortcodes.php:1250
3693
  msgid "mla_debug attributes"
3694
  msgstr ""
3695
 
3696
+ #: includes/class-mla-shortcodes.php:1251
3697
  msgid "mla_debug arguments"
3698
  msgstr ""
3699
 
3700
+ #: includes/class-mla-shortcodes.php:1335
3701
  msgid "mla_debug empty cloud"
3702
  msgstr ""
3703
 
3704
+ #: includes/class-mla-shortcodes.php:2578
3705
+ #: includes/class-mla-shortcodes.php:2827
3706
  msgid "ERROR: Invalid mla_gallery"
3707
  msgstr ""
3708
 
3709
+ #: includes/class-mla-shortcodes.php:2967
3710
  msgid "mla_debug query"
3711
  msgstr ""
3712
 
3713
+ #: includes/class-mla-shortcodes.php:2968
3714
  msgid "mla_debug request"
3715
  msgstr ""
3716
 
3717
+ #: includes/class-mla-shortcodes.php:2969
3718
  msgid "mla_debug query_vars"
3719
  msgstr ""
3720
 
3721
+ #: includes/class-mla-shortcodes.php:2970
3722
  msgid "mla_debug post_count"
3723
  msgstr ""
3724
 
3725
+ #: includes/class-mla-shortcodes.php:2996
3726
  msgid "mla_debug WHERE filter"
3727
  msgstr ""
3728
 
3729
+ #: includes/class-mla-shortcodes.php:3015
3730
  msgid "mla_debug modified WHERE filter"
3731
  msgstr ""
3732
 
3733
+ #: includes/class-mla-shortcodes.php:3038
3734
  msgid "mla_debug ORDER BY filter, incoming"
3735
  msgstr ""
3736
 
3737
+ #: includes/class-mla-shortcodes.php:3038
3738
  msgid "Replacement ORDER BY clause"
3739
  msgstr ""
3740
 
3741
+ #: includes/class-mla-shortcodes.php:3061
3742
  msgid "mla_debug posts_clauses filter"
3743
  msgstr ""
3744
 
3745
+ #: includes/class-mla-shortcodes.php:3079
3746
  msgid "mla_debug posts_clauses_request filter"
3747
  msgstr ""
3748
 
3749
+ #: includes/class-mla-shortcodes.php:3215
3750
  msgid "Invalid taxonomy"
3751
  msgstr ""
3752
 
3753
+ #: includes/class-mla-shortcodes.php:3367
3754
  msgid "mla_debug query arguments"
3755
  msgstr ""
3756
 
3757
+ #: includes/class-mla-shortcodes.php:3368
3758
  msgid "mla_debug last_query"
3759
  msgstr ""
3760
 
3761
+ #: includes/class-mla-shortcodes.php:3369
3762
  msgid "mla_debug last_error"
3763
  msgstr ""
3764
 
3765
+ #: includes/class-mla-shortcodes.php:3370
3766
  msgid "mla_debug num_rows"
3767
  msgstr ""
3768
 
3769
+ #: includes/class-mla-shortcodes.php:3371
3770
  msgid "mla_debug found_rows"
3771
  msgstr ""
3772
 
3773
+ #: includes/class-mla-upload-list-table.php:177
3774
+ #: includes/class-mla-upload-optional-list-table.php:167
3775
  msgctxt "list_table_column"
3776
  msgid "Extension"
3777
  msgstr ""
3778
 
3779
+ #: includes/class-mla-upload-list-table.php:179
3780
  msgctxt "list_table_column"
3781
  msgid "Icon Type"
3782
  msgstr ""
3783
 
3784
+ #: includes/class-mla-upload-list-table.php:180
3785
  msgctxt "list_table_column"
3786
  msgid "Source"
3787
  msgstr ""
3788
 
3789
+ #: includes/class-mla-upload-list-table.php:181
3790
  msgctxt "list_table_column"
3791
  msgid "Status"
3792
  msgstr ""
3793
 
3794
+ #: includes/class-mla-upload-list-table.php:182
3795
+ #: includes/class-mla-upload-optional-list-table.php:169
3796
  msgctxt "list_table_column"
3797
  msgid "WordPress Type"
3798
  msgstr ""
3799
 
3800
+ #: includes/class-mla-upload-list-table.php:183
3801
+ #: includes/class-mla-upload-optional-list-table.php:170
3802
  msgctxt "list_table_column"
3803
  msgid "MLA Type"
3804
  msgstr ""
3805
 
3806
+ #: includes/class-mla-upload-list-table.php:184
3807
  msgctxt "list_table_column"
3808
  msgid "Std. Source"
3809
  msgstr ""
3810
 
3811
+ #: includes/class-mla-upload-list-table.php:185
3812
  msgctxt "list_table_column"
3813
  msgid "Std. Icon Type"
3814
  msgstr ""
3815
 
3816
+ #: includes/class-mla-upload-list-table.php:320
3817
+ #: includes/class-mla-view-list-table.php:308
3818
  msgid "Revert to standard item"
3819
  msgstr ""
3820
 
3821
+ #: includes/class-mla-upload-list-table.php:320
3822
+ #: includes/class-mla-view-list-table.php:308
3823
  msgid "Revert to Standard"
3824
  msgstr ""
3825
 
3826
+ #: includes/class-mla-upload-list-table.php:415
3827
  msgid "inactive"
3828
  msgstr ""
3829
 
3830
+ #: includes/class-mla-upload-list-table.php:417
3831
  msgid "active"
3832
  msgstr ""
3833
 
3834
+ #: includes/class-mla-upload-list-table.php:611
3835
  msgid "Delete/Revert Custom"
3836
  msgstr ""
3837
 
3838
+ #: includes/class-mla-upload-optional-list-table.php:281
3839
  msgid "Select this entry"
3840
  msgstr ""
3841
 
3842
+ #: includes/class-mla-upload-optional-list-table.php:281
3843
  msgid "Select"
3844
  msgstr ""
3845
 
3846
+ #: includes/class-mla-upload-optional-list-table.php:414
3847
  msgid "Select these entries"
3848
  msgstr ""
3849
 
3850
+ #: includes/class-mla-view-list-table.php:173
3851
  msgctxt "list_table_column"
3852
  msgid "Specification"
3853
  msgstr ""
3854
 
3855
+ #: includes/class-mla-view-list-table.php:174
3856
  msgctxt "list_table_column"
3857
  msgid "Post Mime"
3858
  msgstr ""
3859
 
3860
+ #: includes/class-mla-view-list-table.php:175
3861
  msgctxt "list_table_column"
3862
  msgid "Table View"
3863
  msgstr ""
3864
 
3865
+ #: includes/class-mla-view-list-table.php:176
3866
  msgctxt "list_table_column"
3867
  msgid "Singular Name"
3868
  msgstr ""
3869
 
3870
+ #: includes/class-mla-view-list-table.php:177
3871
  msgctxt "list_table_column"
3872
  msgid "Plural Name"
3873
  msgstr ""
3874
 
3875
+ #: includes/class-mla-view-list-table.php:178
3876
  msgctxt "list_table_column"
3877
  msgid "Order"
3878
  msgstr ""
3879
 
3880
+ #: includes/mla-media-modal-js-template.php:20
3881
+ msgid "Search"
3882
+ msgstr ""
3883
+
3884
  #: includes/mla-plugin-loader.php:34
3885
  msgid "The Media Library Assistant cannot load."
3886
  msgstr ""
phpDocs/classes.svg CHANGED
@@ -4,160 +4,177 @@
4
  <!-- Generated by graphviz version 2.28.0 (20110507.0327)
5
  -->
6
  <!-- Title: G Pages: 1 -->
7
- <svg width="460pt" height="852pt"
8
- viewBox="0.00 0.00 460.00 852.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 848)">
10
  <title>G</title>
11
- <polygon fill="white" stroke="white" points="-4,5 -4,-848 457,-848 457,5 -4,5"/>
12
  <g id="graph2" class="cluster"><title>cluster_global</title>
13
- <polyline fill="none" stroke="gray" points="220,-8 432,-8 "/>
14
- <path fill="none" stroke="gray" d="M432,-8C438,-8 444,-14 444,-20"/>
15
- <polyline fill="none" stroke="gray" points="444,-20 444,-824 "/>
16
- <path fill="none" stroke="gray" d="M444,-824C444,-830 438,-836 432,-836"/>
17
- <polyline fill="none" stroke="gray" points="432,-836 220,-836 "/>
18
- <path fill="none" stroke="gray" d="M220,-836C214,-836 208,-830 208,-824"/>
19
- <polyline fill="none" stroke="gray" points="208,-824 208,-20 "/>
20
- <path fill="none" stroke="gray" d="M208,-20C208,-14 214,-8 220,-8"/>
21
- <text text-anchor="middle" x="326" y="-823.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="358,-808 294,-808 294,-772 358,-772 358,-808"/>
27
- <text text-anchor="middle" x="326" y="-787.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="358,-754 294,-754 294,-718 358,-718 358,-754"/>
34
- <text text-anchor="middle" x="326" y="-733.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="381.5,-160 270.5,-160 270.5,-124 381.5,-124 381.5,-160"/>
41
- <text text-anchor="middle" x="326" y="-139.2" font-family="Courier,monospace" font-size="11.00">MLA_List_Table</text>
42
  </a>
43
  </g>
44
  <!-- \\WP_List_Table -->
45
- <g id="node18" class="node"><title>\\WP_List_Table</title>
46
- <ellipse fill="none" stroke="black" cx="72" cy="-304" rx="71.4873" ry="18"/>
47
- <text text-anchor="middle" x="72" y="-300.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_List_Table</text>
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="M270.295,-148.137C249.827,-152.063 226.962,-158.49 208,-169 158.711,-196.318 115.347,-246.894 91.7775,-277.787"/>
52
- <polygon fill="none" stroke="black" points="88.8618,-275.841 85.666,-285.943 94.4636,-280.039 88.8618,-275.841"/>
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="353,-646 299,-646 299,-610 353,-610 353,-646"/>
58
- <text text-anchor="middle" x="326" y="-625.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="361.5,-592 290.5,-592 290.5,-556 361.5,-556 361.5,-592"/>
65
- <text text-anchor="middle" x="326" y="-571.2" font-family="Courier,monospace" font-size="11.00">MLAModal</text>
66
  </a>
67
  </g>
68
  <!-- \\MLAMime -->
69
- <g id="node7" class="node"><title>\\MLAMime</title>
70
  <a xlink:href="includes.class-mla-mime-types.html" xlink:title="MLAMime" target="_parent">
71
- <polygon fill="none" stroke="black" points="358,-538 294,-538 294,-502 358,-502 358,-538"/>
72
- <text text-anchor="middle" x="326" y="-517.2" font-family="Courier,monospace" font-size="11.00">MLAMime</text>
73
  </a>
74
  </g>
75
  <!-- \\MLAObjects -->
76
- <g id="node8" class="node"><title>\\MLAObjects</title>
77
  <a xlink:href="includes.class-mla-objects.html" xlink:title="MLAObjects" target="_parent">
78
- <polygon fill="none" stroke="black" points="368,-484 284,-484 284,-448 368,-448 368,-484"/>
79
- <text text-anchor="middle" x="326" y="-463.2" font-family="Courier,monospace" font-size="11.00">MLAObjects</text>
80
  </a>
81
  </g>
82
  <!-- \\MLATextWidget -->
83
- <g id="node9" class="node"><title>\\MLATextWidget</title>
84
  <a xlink:href="includes.class-mla-objects.html" xlink:title="MLATextWidget" target="_parent">
85
- <polygon fill="none" stroke="black" points="378,-106 274,-106 274,-70 378,-70 378,-106"/>
86
- <text text-anchor="middle" x="326" y="-85.2" font-family="Courier,monospace" font-size="11.00">MLATextWidget</text>
87
  </a>
88
  </g>
89
  <!-- \\WP_Widget -->
90
- <g id="node20" class="node"><title>\\WP_Widget</title>
91
- <ellipse fill="none" stroke="black" cx="72" cy="-88" rx="58.4896" ry="18"/>
92
- <text text-anchor="middle" x="72" y="-84.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_Widget</text>
93
  </g>
94
  <!-- \\MLATextWidget&#45;&gt;\\WP_Widget -->
95
- <g id="edge5" class="edge"><title>\\MLATextWidget&#45;&gt;\\WP_Widget</title>
96
- <path fill="none" stroke="black" d="M273.7,-88C235.412,-88 182.72,-88 140.933,-88"/>
97
- <polygon fill="none" stroke="black" points="140.834,-84.5001 130.834,-88 140.834,-91.5001 140.834,-84.5001"/>
98
  </g>
99
  <!-- \\MLAOptions -->
100
- <g id="node10" class="node"><title>\\MLAOptions</title>
101
  <a xlink:href="includes.class-mla-options.html" xlink:title="MLAOptions" target="_parent">
102
- <polygon fill="none" stroke="black" points="368,-376 284,-376 284,-340 368,-340 368,-376"/>
103
- <text text-anchor="middle" x="326" y="-355.2" font-family="Courier,monospace" font-size="11.00">MLAOptions</text>
104
  </a>
105
  </g>
106
  <!-- \\MLASettings -->
107
- <g id="node11" class="node"><title>\\MLASettings</title>
108
  <a xlink:href="includes.class-mla-settings.html" xlink:title="MLASettings" target="_parent">
109
- <polygon fill="none" stroke="black" points="371.5,-322 280.5,-322 280.5,-286 371.5,-286 371.5,-322"/>
110
- <text text-anchor="middle" x="326" y="-301.2" font-family="Courier,monospace" font-size="11.00">MLASettings</text>
111
  </a>
112
  </g>
113
  <!-- \\MLAShortcodes -->
114
- <g id="node12" class="node"><title>\\MLAShortcodes</title>
115
  <a xlink:href="includes.class-mla-shortcodes.html" xlink:title="MLAShortcodes" target="_parent">
116
- <polygon fill="none" stroke="black" points="378,-268 274,-268 274,-232 378,-232 378,-268"/>
117
- <text text-anchor="middle" x="326" y="-247.2" font-family="Courier,monospace" font-size="11.00">MLAShortcodes</text>
118
  </a>
119
  </g>
120
  <!-- \\MLA_Upload_List_Table -->
121
- <g id="node13" class="node"><title>\\MLA_Upload_List_Table</title>
122
  <a xlink:href="includes.class-mla-upload-list-table.html" xlink:title="MLA_Upload_List_Table" target="_parent">
123
- <polygon fill="none" stroke="black" points="405,-700 247,-700 247,-664 405,-664 405,-700"/>
124
- <text text-anchor="middle" x="326" y="-679.2" font-family="Courier,monospace" font-size="11.00">MLA_Upload_List_Table</text>
125
  </a>
126
  </g>
127
  <!-- \\MLA_Upload_List_Table&#45;&gt;\\WP_List_Table -->
128
- <g id="edge7" class="edge"><title>\\MLA_Upload_List_Table&#45;&gt;\\WP_List_Table</title>
129
- <path fill="none" stroke="black" d="M246.906,-675.107C232.756,-670.924 219.017,-664.569 208,-655 108.314,-568.41 81.8784,-399.571 75.1716,-332.479"/>
130
- <polygon fill="none" stroke="black" points="78.6318,-331.887 74.2256,-322.252 71.6616,-332.532 78.6318,-331.887"/>
131
  </g>
132
  <!-- \\MLA_Upload_Optional_List_Table -->
133
- <g id="node14" class="node"><title>\\MLA_Upload_Optional_List_Table</title>
134
  <a xlink:href="includes.class-mla-upload-optional-list-table.html" xlink:title="MLA_Upload_Optional_List_Table" target="_parent">
135
- <polygon fill="none" stroke="black" points="435.5,-430 216.5,-430 216.5,-394 435.5,-394 435.5,-430"/>
136
- <text text-anchor="middle" x="326" y="-409.2" font-family="Courier,monospace" font-size="11.00">MLA_Upload_Optional_List_Table</text>
137
  </a>
138
  </g>
139
  <!-- \\MLA_Upload_Optional_List_Table&#45;&gt;\\WP_List_Table -->
140
- <g id="edge9" class="edge"><title>\\MLA_Upload_Optional_List_Table&#45;&gt;\\WP_List_Table</title>
141
- <path fill="none" stroke="black" d="M234.058,-393.997C225.133,-391.345 216.312,-388.355 208,-385 170.426,-369.835 131.1,-345.072 104.65,-326.912"/>
142
- <polygon fill="none" stroke="black" points="106.402,-323.868 96.1943,-321.03 102.405,-329.614 106.402,-323.868"/>
143
  </g>
144
  <!-- \\MLA_View_List_Table -->
145
- <g id="node15" class="node"><title>\\MLA_View_List_Table</title>
146
  <a xlink:href="includes.class-mla-view-list-table.html" xlink:title="MLA_View_List_Table" target="_parent">
147
- <polygon fill="none" stroke="black" points="398.5,-214 253.5,-214 253.5,-178 398.5,-178 398.5,-214"/>
148
- <text text-anchor="middle" x="326" y="-193.2" font-family="Courier,monospace" font-size="11.00">MLA_View_List_Table</text>
149
  </a>
150
  </g>
151
  <!-- \\MLA_View_List_Table&#45;&gt;\\WP_List_Table -->
152
- <g id="edge11" class="edge"><title>\\MLA_View_List_Table&#45;&gt;\\WP_List_Table</title>
153
- <path fill="none" stroke="black" d="M253.367,-208.782C238.116,-212.535 222.305,-217.226 208,-223 170.426,-238.165 131.1,-262.928 104.65,-281.088"/>
154
- <polygon fill="none" stroke="black" points="102.405,-278.386 96.1943,-286.97 106.402,-284.132 102.405,-278.386"/>
155
  </g>
156
  <!-- \\MLATest -->
157
- <g id="node16" class="node"><title>\\MLATest</title>
158
  <a xlink:href="tests.class-mla-tests.html" xlink:title="MLATest" target="_parent">
159
- <polygon fill="none" stroke="black" points="358,-52 294,-52 294,-16 358,-16 358,-52"/>
160
- <text text-anchor="middle" x="326" y="-31.2" font-family="Courier,monospace" font-size="11.00">MLATest</text>
161
  </a>
162
  </g>
163
  </g>
4
  <!-- Generated by graphviz version 2.28.0 (20110507.0327)
5
  -->
6
  <!-- Title: G Pages: 1 -->
7
+ <svg width="472pt" height="906pt"
8
+ viewBox="0.00 0.00 472.00 906.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 902)">
10
  <title>G</title>
11
+ <polygon fill="white" stroke="white" points="-4,5 -4,-902 469,-902 469,5 -4,5"/>
12
  <g id="graph2" class="cluster"><title>cluster_global</title>
13
+ <polyline fill="none" stroke="gray" points="232,-8 444,-8 "/>
14
+ <path fill="none" stroke="gray" d="M444,-8C450,-8 456,-14 456,-20"/>
15
+ <polyline fill="none" stroke="gray" points="456,-20 456,-878 "/>
16
+ <path fill="none" stroke="gray" d="M456,-878C456,-884 450,-890 444,-890"/>
17
+ <polyline fill="none" stroke="gray" points="444,-890 232,-890 "/>
18
+ <path fill="none" stroke="gray" d="M232,-890C226,-890 220,-884 220,-878"/>
19
+ <polyline fill="none" stroke="gray" points="220,-878 220,-20 "/>
20
+ <path fill="none" stroke="gray" d="M220,-20C220,-14 226,-8 232,-8"/>
21
+ <text text-anchor="middle" x="338" y="-877.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="370,-862 306,-862 306,-826 370,-826 370,-862"/>
27
+ <text text-anchor="middle" x="338" y="-841.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="370,-808 306,-808 306,-772 370,-772 370,-808"/>
34
+ <text text-anchor="middle" x="338" y="-787.2" font-family="Courier,monospace" font-size="11.00">MLAEdit</text>
35
  </a>
36
  </g>
37
+ <!-- \\MLA_Checklist_Walker -->
38
+ <g id="node4" class="node"><title>\\MLA_Checklist_Walker</title>
39
+ <a xlink:href="includes.class-mla-edit-media.html" xlink:title="MLA_Checklist_Walker" target="_parent">
40
+ <polygon fill="none" stroke="black" points="414,-754 262,-754 262,-718 414,-718 414,-754"/>
41
+ <text text-anchor="middle" x="338" y="-733.2" font-family="Courier,monospace" font-size="11.00">MLA_Checklist_Walker</text>
42
+ </a>
43
+ </g>
44
+ <!-- \\Walker_Category -->
45
+ <g id="node19" class="node"><title>\\Walker_Category</title>
46
+ <ellipse fill="none" stroke="black" cx="78" cy="-736" rx="77.1866" ry="18"/>
47
+ <text text-anchor="middle" x="78" y="-732.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\Walker_Category</text>
48
+ </g>
49
+ <!-- \\MLA_Checklist_Walker&#45;&gt;\\Walker_Category -->
50
+ <g id="edge3" class="edge"><title>\\MLA_Checklist_Walker&#45;&gt;\\Walker_Category</title>
51
+ <path fill="none" stroke="black" d="M261.682,-736C231.749,-736 197.123,-736 166.118,-736"/>
52
+ <polygon fill="none" stroke="black" points="165.754,-732.5 155.754,-736 165.754,-739.5 165.754,-732.5"/>
53
+ </g>
54
  <!-- \\MLA_List_Table -->
55
+ <g id="node5" class="node"><title>\\MLA_List_Table</title>
56
  <a xlink:href="includes.class-mla-list-table.html" xlink:title="MLA_List_Table" target="_parent">
57
+ <polygon fill="none" stroke="black" points="393.5,-700 282.5,-700 282.5,-664 393.5,-664 393.5,-700"/>
58
+ <text text-anchor="middle" x="338" y="-679.2" font-family="Courier,monospace" font-size="11.00">MLA_List_Table</text>
59
  </a>
60
  </g>
61
  <!-- \\WP_List_Table -->
62
+ <g id="node21" class="node"><title>\\WP_List_Table</title>
63
+ <ellipse fill="none" stroke="black" cx="78" cy="-304" rx="71.4873" ry="18"/>
64
+ <text text-anchor="middle" x="78" y="-300.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_List_Table</text>
65
  </g>
66
  <!-- \\MLA_List_Table&#45;&gt;\\WP_List_Table -->
67
+ <g id="edge5" class="edge"><title>\\MLA_List_Table&#45;&gt;\\WP_List_Table</title>
68
+ <path fill="none" stroke="black" d="M282.35,-680.085C260.82,-676.796 237.185,-669.706 220,-655 119.09,-568.649 89.6198,-399.672 81.6923,-332.511"/>
69
+ <polygon fill="none" stroke="black" points="85.1381,-331.827 80.56,-322.273 78.1806,-332.597 85.1381,-331.827"/>
70
  </g>
71
  <!-- \\MLA -->
72
+ <g id="node6" class="node"><title>\\MLA</title>
73
  <a xlink:href="includes.class-mla-main.html" xlink:title="MLA" target="_parent">
74
+ <polygon fill="none" stroke="black" points="365,-646 311,-646 311,-610 365,-610 365,-646"/>
75
+ <text text-anchor="middle" x="338" y="-625.2" font-family="Courier,monospace" font-size="11.00">MLA</text>
76
  </a>
77
  </g>
78
  <!-- \\MLAModal -->
79
+ <g id="node7" class="node"><title>\\MLAModal</title>
80
  <a xlink:href="includes.class-mla-media-modal.html" xlink:title="MLAModal" target="_parent">
81
+ <polygon fill="none" stroke="black" points="373.5,-592 302.5,-592 302.5,-556 373.5,-556 373.5,-592"/>
82
+ <text text-anchor="middle" x="338" y="-571.2" font-family="Courier,monospace" font-size="11.00">MLAModal</text>
83
  </a>
84
  </g>
85
  <!-- \\MLAMime -->
86
+ <g id="node8" class="node"><title>\\MLAMime</title>
87
  <a xlink:href="includes.class-mla-mime-types.html" xlink:title="MLAMime" target="_parent">
88
+ <polygon fill="none" stroke="black" points="370,-538 306,-538 306,-502 370,-502 370,-538"/>
89
+ <text text-anchor="middle" x="338" y="-517.2" font-family="Courier,monospace" font-size="11.00">MLAMime</text>
90
  </a>
91
  </g>
92
  <!-- \\MLAObjects -->
93
+ <g id="node9" class="node"><title>\\MLAObjects</title>
94
  <a xlink:href="includes.class-mla-objects.html" xlink:title="MLAObjects" target="_parent">
95
+ <polygon fill="none" stroke="black" points="380,-484 296,-484 296,-448 380,-448 380,-484"/>
96
+ <text text-anchor="middle" x="338" y="-463.2" font-family="Courier,monospace" font-size="11.00">MLAObjects</text>
97
  </a>
98
  </g>
99
  <!-- \\MLATextWidget -->
100
+ <g id="node10" class="node"><title>\\MLATextWidget</title>
101
  <a xlink:href="includes.class-mla-objects.html" xlink:title="MLATextWidget" target="_parent">
102
+ <polygon fill="none" stroke="black" points="390,-106 286,-106 286,-70 390,-70 390,-106"/>
103
+ <text text-anchor="middle" x="338" y="-85.2" font-family="Courier,monospace" font-size="11.00">MLATextWidget</text>
104
  </a>
105
  </g>
106
  <!-- \\WP_Widget -->
107
+ <g id="node23" class="node"><title>\\WP_Widget</title>
108
+ <ellipse fill="none" stroke="black" cx="78" cy="-88" rx="58.4896" ry="18"/>
109
+ <text text-anchor="middle" x="78" y="-84.3" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_Widget</text>
110
  </g>
111
  <!-- \\MLATextWidget&#45;&gt;\\WP_Widget -->
112
+ <g id="edge7" class="edge"><title>\\MLATextWidget&#45;&gt;\\WP_Widget</title>
113
+ <path fill="none" stroke="black" d="M285.719,-88C245.993,-88 190.59,-88 147.139,-88"/>
114
+ <polygon fill="none" stroke="black" points="146.933,-84.5001 136.933,-88 146.933,-91.5001 146.933,-84.5001"/>
115
  </g>
116
  <!-- \\MLAOptions -->
117
+ <g id="node11" class="node"><title>\\MLAOptions</title>
118
  <a xlink:href="includes.class-mla-options.html" xlink:title="MLAOptions" target="_parent">
119
+ <polygon fill="none" stroke="black" points="380,-376 296,-376 296,-340 380,-340 380,-376"/>
120
+ <text text-anchor="middle" x="338" y="-355.2" font-family="Courier,monospace" font-size="11.00">MLAOptions</text>
121
  </a>
122
  </g>
123
  <!-- \\MLASettings -->
124
+ <g id="node12" class="node"><title>\\MLASettings</title>
125
  <a xlink:href="includes.class-mla-settings.html" xlink:title="MLASettings" target="_parent">
126
+ <polygon fill="none" stroke="black" points="383.5,-322 292.5,-322 292.5,-286 383.5,-286 383.5,-322"/>
127
+ <text text-anchor="middle" x="338" y="-301.2" font-family="Courier,monospace" font-size="11.00">MLASettings</text>
128
  </a>
129
  </g>
130
  <!-- \\MLAShortcodes -->
131
+ <g id="node13" class="node"><title>\\MLAShortcodes</title>
132
  <a xlink:href="includes.class-mla-shortcodes.html" xlink:title="MLAShortcodes" target="_parent">
133
+ <polygon fill="none" stroke="black" points="390,-268 286,-268 286,-232 390,-232 390,-268"/>
134
+ <text text-anchor="middle" x="338" y="-247.2" font-family="Courier,monospace" font-size="11.00">MLAShortcodes</text>
135
  </a>
136
  </g>
137
  <!-- \\MLA_Upload_List_Table -->
138
+ <g id="node14" class="node"><title>\\MLA_Upload_List_Table</title>
139
  <a xlink:href="includes.class-mla-upload-list-table.html" xlink:title="MLA_Upload_List_Table" target="_parent">
140
+ <polygon fill="none" stroke="black" points="417,-430 259,-430 259,-394 417,-394 417,-430"/>
141
+ <text text-anchor="middle" x="338" y="-409.2" font-family="Courier,monospace" font-size="11.00">MLA_Upload_List_Table</text>
142
  </a>
143
  </g>
144
  <!-- \\MLA_Upload_List_Table&#45;&gt;\\WP_List_Table -->
145
+ <g id="edge9" class="edge"><title>\\MLA_Upload_List_Table&#45;&gt;\\WP_List_Table</title>
146
+ <path fill="none" stroke="black" d="M258.926,-397.366C245.73,-393.937 232.322,-389.838 220,-385 180.875,-369.639 139.567,-344.748 111.849,-326.607"/>
147
+ <polygon fill="none" stroke="black" points="113.616,-323.58 103.347,-320.976 109.751,-329.416 113.616,-323.58"/>
148
  </g>
149
  <!-- \\MLA_Upload_Optional_List_Table -->
150
+ <g id="node15" class="node"><title>\\MLA_Upload_Optional_List_Table</title>
151
  <a xlink:href="includes.class-mla-upload-optional-list-table.html" xlink:title="MLA_Upload_Optional_List_Table" target="_parent">
152
+ <polygon fill="none" stroke="black" points="447.5,-214 228.5,-214 228.5,-178 447.5,-178 447.5,-214"/>
153
+ <text text-anchor="middle" x="338" y="-193.2" font-family="Courier,monospace" font-size="11.00">MLA_Upload_Optional_List_Table</text>
154
  </a>
155
  </g>
156
  <!-- \\MLA_Upload_Optional_List_Table&#45;&gt;\\WP_List_Table -->
157
+ <g id="edge11" class="edge"><title>\\MLA_Upload_Optional_List_Table&#45;&gt;\\WP_List_Table</title>
158
+ <path fill="none" stroke="black" d="M246.435,-214.076C237.391,-216.719 228.441,-219.686 220,-223 180.875,-238.361 139.567,-263.252 111.849,-281.393"/>
159
+ <polygon fill="none" stroke="black" points="109.751,-278.584 103.347,-287.024 113.616,-284.42 109.751,-278.584"/>
160
  </g>
161
  <!-- \\MLA_View_List_Table -->
162
+ <g id="node16" class="node"><title>\\MLA_View_List_Table</title>
163
  <a xlink:href="includes.class-mla-view-list-table.html" xlink:title="MLA_View_List_Table" target="_parent">
164
+ <polygon fill="none" stroke="black" points="410.5,-160 265.5,-160 265.5,-124 410.5,-124 410.5,-160"/>
165
+ <text text-anchor="middle" x="338" y="-139.2" font-family="Courier,monospace" font-size="11.00">MLA_View_List_Table</text>
166
  </a>
167
  </g>
168
  <!-- \\MLA_View_List_Table&#45;&gt;\\WP_List_Table -->
169
+ <g id="edge13" class="edge"><title>\\MLA_View_List_Table&#45;&gt;\\WP_List_Table</title>
170
+ <path fill="none" stroke="black" d="M265.488,-152.107C249.915,-156.032 233.94,-161.471 220,-169 169.304,-196.382 123.755,-246.937 98.877,-277.809"/>
171
+ <polygon fill="none" stroke="black" points="95.887,-275.946 92.4211,-285.958 101.374,-280.293 95.887,-275.946"/>
172
  </g>
173
  <!-- \\MLATest -->
174
+ <g id="node17" class="node"><title>\\MLATest</title>
175
  <a xlink:href="tests.class-mla-tests.html" xlink:title="MLATest" target="_parent">
176
+ <polygon fill="none" stroke="black" points="370,-52 306,-52 306,-16 370,-16 370,-52"/>
177
+ <text text-anchor="middle" x="338" y="-31.2" font-family="Courier,monospace" font-size="11.00">MLATest</text>
178
  </a>
179
  </g>
180
  </g>
phpDocs/classes/MLA.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -76,6 +79,7 @@
76
  <li class="method private "><a href="#_display_single_item" title="_display_single_item :: Display a single item sub page; prepare the form to
77
  change the meta data for a single attachment."><span class="description">Display a single item sub page; prepare the form to
78
  change the meta data for a single attachment.</span><pre>_display_single_item()</pre></a></li>
 
79
  <li class="method private "><a href="#_restore_single_item" title="_restore_single_item :: Restore a single item from the Trash"><span class="description">Restore a single item from the Trash</span><pre>_restore_single_item()</pre></a></li>
80
  <li class="method private "><a href="#_trash_single_item" title="_trash_single_item :: Move a single item to Trash"><span class="description">Move a single item to Trash</span><pre>_trash_single_item()</pre></a></li>
81
  <li class="nav-header">
@@ -449,6 +453,28 @@ change the meta data for a single attachment.</h2>
449
  <code>array</code>message and/or HTML content</div>
450
  </div></div>
451
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
452
  <a name="_restore_single_item" id="_restore_single_item"></a><div class="element clickable method private _restore_single_item" data-toggle="collapse" data-target="._restore_single_item .collapse">
453
  <h2>Restore a single item from the Trash</h2>
454
  <pre>_restore_single_item(array $post_id) : array</pre>
@@ -690,7 +716,7 @@ change the meta data for a single attachment.</h2>
690
  <div class="row"><footer class="span12">
691
  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>
692
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
693
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
694
  </div>
695
  </body>
696
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
79
  <li class="method private "><a href="#_display_single_item" title="_display_single_item :: Display a single item sub page; prepare the form to
80
  change the meta data for a single attachment."><span class="description">Display a single item sub page; prepare the form to
81
  change the meta data for a single attachment.</span><pre>_display_single_item()</pre></a></li>
82
+ <li class="method private "><a href="#_process_bulk_value" title="_process_bulk_value :: Process bulk edit area fields, which may contain a Content Template"><span class="description">Process bulk edit area fields, which may contain a Content Template</span><pre>_process_bulk_value()</pre></a></li>
83
  <li class="method private "><a href="#_restore_single_item" title="_restore_single_item :: Restore a single item from the Trash"><span class="description">Restore a single item from the Trash</span><pre>_restore_single_item()</pre></a></li>
84
  <li class="method private "><a href="#_trash_single_item" title="_trash_single_item :: Move a single item to Trash"><span class="description">Move a single item to Trash</span><pre>_trash_single_item()</pre></a></li>
85
  <li class="nav-header">
453
  <code>array</code>message and/or HTML content</div>
454
  </div></div>
455
  </div>
456
+ <a name="_process_bulk_value" id="_process_bulk_value"></a><div class="element clickable method private _process_bulk_value" data-toggle="collapse" data-target="._process_bulk_value .collapse">
457
+ <h2>Process bulk edit area fields, which may contain a Content Template</h2>
458
+ <pre>_process_bulk_value(integer $post_id, string $bulk_value) : string</pre>
459
+ <div class="labels"></div>
460
+ <div class="row collapse"><div class="detail-description">
461
+ <p class="long_description"></p>
462
+ <table class="table table-bordered"><tr>
463
+ <th>since</th>
464
+ <td>1.80</td>
465
+ </tr></table>
466
+ <h3>Parameters</h3>
467
+ <div class="subelement argument">
468
+ <h4>$post_id</h4>
469
+ <code>integer</code><p>Current post ID</p></div>
470
+ <div class="subelement argument">
471
+ <h4>$bulk_value</h4>
472
+ <code>string</code><p>Field value as entered</p></div>
473
+ <h3>Returns</h3>
474
+ <div class="subelement response">
475
+ <code>string</code>Empty, or new value for the field</div>
476
+ </div></div>
477
+ </div>
478
  <a name="_restore_single_item" id="_restore_single_item"></a><div class="element clickable method private _restore_single_item" data-toggle="collapse" data-target="._restore_single_item .collapse">
479
  <h2>Restore a single item from the Trash</h2>
480
  <pre>_restore_single_item(array $post_id) : array</pre>
716
  <div class="row"><footer class="span12">
717
  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>
718
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
719
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
720
  </div>
721
  </body>
722
  </html>
phpDocs/classes/MLAData.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -74,10 +77,15 @@
74
  <li class="method public "><a href="#mla_pdf_metadata_value" title="mla_pdf_metadata_value :: Parse one PDF metadata field"><span class="description">Parse one PDF metadata field</span><pre>mla_pdf_metadata_value()</pre></a></li>
75
  <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>
76
  <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>
 
 
77
  <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 custom fields or ALT Text"><span class="description">Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text</span><pre>mla_query_posts_join_filter()</pre></a></li>
78
  <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>
79
  <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>
80
  <li class="method public "><a href="#mla_query_posts_where_filter" title="mla_query_posts_where_filter :: Adds a WHERE clause for detached items"><span class="description">Adds a WHERE clause for detached items</span><pre>mla_query_posts_where_filter()</pre></a></li>
 
 
 
81
  <li class="method public "><a href="#mla_save_post_action" title="mla_save_post_action :: Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates"><span class="description">Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates</span><pre>mla_save_post_action()</pre></a></li>
82
  <li class="method public "><a href="#mla_search_terms_tidy" title="mla_search_terms_tidy :: Replaces a WordPress function deprecated in v3.7"><span class="description">Replaces a WordPress function deprecated in v3.7</span><pre>mla_search_terms_tidy()</pre></a></li>
83
  <li class="method public "><a href="#mla_update_item_postmeta" title='mla_update_item_postmeta :: Update custom field and "meta:" data for a single attachment'><span class="description">Update custom field and "meta:" data for a single attachment</span><pre>mla_update_item_postmeta()</pre></a></li>
@@ -648,6 +656,46 @@ Modeled after wp_edit_attachments_query in wp-admin/post.php</p></p>
648
  <code>array</code>attachment objects (posts)</div>
649
  </div></div>
650
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
651
  <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">
652
  <h2>Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text</h2>
653
  <pre>mla_query_posts_join_filter(string $join_clause) : string</pre>
@@ -729,6 +777,26 @@ Defined as public because it's a filter.</p></p>
729
  <code>string</code>query clause after "detached" item modification</div>
730
  </div></div>
731
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
732
  <a name="mla_save_post_action" id="mla_save_post_action"></a><div class="element clickable method public mla_save_post_action" data-toggle="collapse" data-target=".mla_save_post_action .collapse">
733
  <h2>Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates</h2>
734
  <pre>mla_save_post_action(integer $post_id) : void</pre>
@@ -1723,7 +1791,7 @@ ALT Text and custom field columns.</p></p>
1723
  <div class="row"><footer class="span12">
1724
  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>
1725
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1726
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
1727
  </div>
1728
  </body>
1729
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
77
  <li class="method public "><a href="#mla_pdf_metadata_value" title="mla_pdf_metadata_value :: Parse one PDF metadata field"><span class="description">Parse one PDF metadata field</span><pre>mla_pdf_metadata_value()</pre></a></li>
78
  <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>
79
  <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>
80
+ <li class="method public "><a href="#mla_query_posts_clauses_filter" title="mla_query_posts_clauses_filter :: Filters all clauses for shortcode queries, pre caching plugins"><span class="description">Filters all clauses for shortcode queries, pre caching plugins</span><pre>mla_query_posts_clauses_filter()</pre></a></li>
81
+ <li class="method public "><a href="#mla_query_posts_clauses_request_filter" title="mla_query_posts_clauses_request_filter :: Filters all clauses for shortcode queries, post caching plugins"><span class="description">Filters all clauses for shortcode queries, post caching plugins</span><pre>mla_query_posts_clauses_request_filter()</pre></a></li>
82
  <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 custom fields or ALT Text"><span class="description">Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text</span><pre>mla_query_posts_join_filter()</pre></a></li>
83
  <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>
84
  <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>
85
  <li class="method public "><a href="#mla_query_posts_where_filter" title="mla_query_posts_where_filter :: Adds a WHERE clause for detached items"><span class="description">Adds a WHERE clause for detached items</span><pre>mla_query_posts_where_filter()</pre></a></li>
86
+ <li class="method public "><a href="#mla_query_relevanssi_admin_search_ok_filter" title="mla_query_relevanssi_admin_search_ok_filter :: Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
87
+ Defined as public because it's a filter."><span class="description">Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
88
+ Defined as public because it's a filter.</span><pre>mla_query_relevanssi_admin_search_ok_filter()</pre></a></li>
89
  <li class="method public "><a href="#mla_save_post_action" title="mla_save_post_action :: Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates"><span class="description">Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates</span><pre>mla_save_post_action()</pre></a></li>
90
  <li class="method public "><a href="#mla_search_terms_tidy" title="mla_search_terms_tidy :: Replaces a WordPress function deprecated in v3.7"><span class="description">Replaces a WordPress function deprecated in v3.7</span><pre>mla_search_terms_tidy()</pre></a></li>
91
  <li class="method public "><a href="#mla_update_item_postmeta" title='mla_update_item_postmeta :: Update custom field and "meta:" data for a single attachment'><span class="description">Update custom field and "meta:" data for a single attachment</span><pre>mla_update_item_postmeta()</pre></a></li>
656
  <code>array</code>attachment objects (posts)</div>
657
  </div></div>
658
  </div>
659
+ <a name="mla_query_posts_clauses_filter" id="mla_query_posts_clauses_filter"></a><div class="element clickable method public mla_query_posts_clauses_filter" data-toggle="collapse" data-target=".mla_query_posts_clauses_filter .collapse">
660
+ <h2>Filters all clauses for shortcode queries, pre caching plugins</h2>
661
+ <pre>mla_query_posts_clauses_filter(array $pieces) : array</pre>
662
+ <div class="labels"></div>
663
+ <div class="row collapse"><div class="detail-description">
664
+ <p class="long_description"><p>This is for debug purposes only.
665
+ Defined as public because it's a filter.</p></p>
666
+ <table class="table table-bordered"><tr>
667
+ <th>since</th>
668
+ <td>1.80</td>
669
+ </tr></table>
670
+ <h3>Parameters</h3>
671
+ <div class="subelement argument">
672
+ <h4>$pieces</h4>
673
+ <code>array</code><p>query clauses before modification</p></div>
674
+ <h3>Returns</h3>
675
+ <div class="subelement response">
676
+ <code>array</code>query clauses after modification (none)</div>
677
+ </div></div>
678
+ </div>
679
+ <a name="mla_query_posts_clauses_request_filter" id="mla_query_posts_clauses_request_filter"></a><div class="element clickable method public mla_query_posts_clauses_request_filter" data-toggle="collapse" data-target=".mla_query_posts_clauses_request_filter .collapse">
680
+ <h2>Filters all clauses for shortcode queries, post caching plugins</h2>
681
+ <pre>mla_query_posts_clauses_request_filter(array $pieces) : array</pre>
682
+ <div class="labels"></div>
683
+ <div class="row collapse"><div class="detail-description">
684
+ <p class="long_description"><p>This is for debug purposes only.
685
+ Defined as public because it's a filter.</p></p>
686
+ <table class="table table-bordered"><tr>
687
+ <th>since</th>
688
+ <td>1.80</td>
689
+ </tr></table>
690
+ <h3>Parameters</h3>
691
+ <div class="subelement argument">
692
+ <h4>$pieces</h4>
693
+ <code>array</code><p>query clauses before modification</p></div>
694
+ <h3>Returns</h3>
695
+ <div class="subelement response">
696
+ <code>array</code>query clauses after modification (none)</div>
697
+ </div></div>
698
+ </div>
699
  <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">
700
  <h2>Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text</h2>
701
  <pre>mla_query_posts_join_filter(string $join_clause) : string</pre>
777
  <code>string</code>query clause after "detached" item modification</div>
778
  </div></div>
779
  </div>
780
+ <a name="mla_query_relevanssi_admin_search_ok_filter" id="mla_query_relevanssi_admin_search_ok_filter"></a><div class="element clickable method public mla_query_relevanssi_admin_search_ok_filter" data-toggle="collapse" data-target=".mla_query_relevanssi_admin_search_ok_filter .collapse">
781
+ <h2>Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
782
+ Defined as public because it's a filter.</h2>
783
+ <pre>mla_query_relevanssi_admin_search_ok_filter(boolean $admin_search_ok) : boolean</pre>
784
+ <div class="labels"></div>
785
+ <div class="row collapse"><div class="detail-description">
786
+ <p class="long_description"></p>
787
+ <table class="table table-bordered"><tr>
788
+ <th>since</th>
789
+ <td>1.80</td>
790
+ </tr></table>
791
+ <h3>Parameters</h3>
792
+ <div class="subelement argument">
793
+ <h4>$admin_search_ok</h4>
794
+ <code>boolean</code><p>Default setting</p></div>
795
+ <h3>Returns</h3>
796
+ <div class="subelement response">
797
+ <code>boolean</code>Updated setting</div>
798
+ </div></div>
799
+ </div>
800
  <a name="mla_save_post_action" id="mla_save_post_action"></a><div class="element clickable method public mla_save_post_action" data-toggle="collapse" data-target=".mla_save_post_action .collapse">
801
  <h2>Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates</h2>
802
  <pre>mla_save_post_action(integer $post_id) : void</pre>
1791
  <div class="row"><footer class="span12">
1792
  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>
1793
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1794
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
1795
  </div>
1796
  </body>
1797
  </html>
phpDocs/classes/MLAEdit.html CHANGED
@@ -18,7 +18,10 @@
18
  <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
19
  <li class="dropdown">
20
  <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
21
- API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
 
 
 
22
  </li>
23
  <li class="dropdown" id="charts-menu">
24
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
@@ -59,17 +62,21 @@
59
  <li class="method public "><a href="#mla_admin_enqueue_scripts_action" title="mla_admin_enqueue_scripts_action :: Load the plugin's Style Sheet and Javascript files"><span class="description">Load the plugin's Style Sheet and Javascript files</span><pre>mla_admin_enqueue_scripts_action()</pre></a></li>
60
  <li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Adds Custom Field support to the Edit Media screen."><span class="description">Adds Custom Field support to the Edit Media screen.</span><pre>mla_admin_init_action()</pre></a></li>
61
  <li class="method public "><a href="#mla_attachment_submitbox_action" title="mla_attachment_submitbox_action :: Adds Last Modified date to the Submit box on the Edit Media screen."><span class="description">Adds Last Modified date to the Submit box on the Edit Media screen.</span><pre>mla_attachment_submitbox_action()</pre></a></li>
 
62
  <li class="method public "><a href="#mla_edit_add_help_tab" title="mla_edit_add_help_tab :: Add contextual help tabs to the WordPress Edit Media page"><span class="description">Add contextual help tabs to the WordPress Edit Media page</span><pre>mla_edit_add_help_tab()</pre></a></li>
63
  <li class="method public "><a href="#mla_edit_attachment_action" title="mla_edit_attachment_action :: Saves updates from the Edit Media screen."><span class="description">Saves updates from the Edit Media screen.</span><pre>mla_edit_attachment_action()</pre></a></li>
64
  <li class="method public "><a href="#mla_featured_in_handler" title="mla_featured_in_handler :: Renders the Featured in meta box on the Edit Media page."><span class="description">Renders the Featured in meta box on the Edit Media page.</span><pre>mla_featured_in_handler()</pre></a></li>
65
  <li class="method public "><a href="#mla_gallery_in_handler" title="mla_gallery_in_handler :: Renders the Gallery in meta box on the Edit Media page."><span class="description">Renders the Gallery in meta box on the Edit Media page.</span><pre>mla_gallery_in_handler()</pre></a></li>
66
- <li class="method public "><a href="#mla_hierarchical_meta_box" title='mla_hierarchical_meta_box :: Display taxonomy "checklist" form fields'><span class="description">Display taxonomy "checklist" form fields</span><pre>mla_hierarchical_meta_box()</pre></a></li>
67
  <li class="method public "><a href="#mla_image_metadata_handler" title="mla_image_metadata_handler :: Renders the Image Metadata meta box on the Edit Media page."><span class="description">Renders the Image Metadata meta box on the Edit Media page.</span><pre>mla_image_metadata_handler()</pre></a></li>
68
  <li class="method public "><a href="#mla_inserted_in_handler" title="mla_inserted_in_handler :: Renders the Inserted in meta box on the Edit Media page."><span class="description">Renders the Inserted in meta box on the Edit Media page.</span><pre>mla_inserted_in_handler()</pre></a></li>
69
  <li class="method public "><a href="#mla_menu_order_handler" title="mla_menu_order_handler :: Renders the Menu Order meta box on the Edit Media page."><span class="description">Renders the Menu Order meta box on the Edit Media page.</span><pre>mla_menu_order_handler()</pre></a></li>
70
  <li class="method public "><a href="#mla_mla_gallery_in_handler" title="mla_mla_gallery_in_handler :: Renders the Gallery in meta box on the Edit Media page."><span class="description">Renders the Gallery in meta box on the Edit Media page.</span><pre>mla_mla_gallery_in_handler()</pre></a></li>
71
  <li class="method public "><a href="#mla_parent_info_handler" title="mla_parent_info_handler :: Renders the Parent Info meta box on the Edit Media page."><span class="description">Renders the Parent Info meta box on the Edit Media page.</span><pre>mla_parent_info_handler()</pre></a></li>
72
  <li class="method public "><a href="#mla_post_updated_messages_filter" title="mla_post_updated_messages_filter :: Adds mapping update messages for display at the top of the Edit Media screen."><span class="description">Adds mapping update messages for display at the top of the Edit Media screen.</span><pre>mla_post_updated_messages_filter()</pre></a></li>
 
 
 
 
73
  <li class="nav-header">
74
  <i class="icon-custom icon-property"></i> Properties</li>
75
  <li class="nav-header private">» Private</li>
@@ -180,6 +187,28 @@
180
  </tr></table>
181
  </div></div>
182
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
183
  <a name="mla_edit_add_help_tab" id="mla_edit_add_help_tab"></a><div class="element clickable method public mla_edit_add_help_tab" data-toggle="collapse" data-target=".mla_edit_add_help_tab .collapse">
184
  <h2>Add contextual help tabs to the WordPress Edit Media page</h2>
185
  <pre>mla_edit_add_help_tab(string $admin_title, string $title) : void</pre>
@@ -247,28 +276,6 @@
247
  <code>object</code><p>current post</p></div>
248
  </div></div>
249
  </div>
250
- <a name="mla_hierarchical_meta_box" id="mla_hierarchical_meta_box"></a><div class="element clickable method public mla_hierarchical_meta_box" data-toggle="collapse" data-target=".mla_hierarchical_meta_box .collapse">
251
- <h2>Display taxonomy "checklist" form fields</h2>
252
- <pre>mla_hierarchical_meta_box(object $post, array $box) : void</pre>
253
- <div class="labels"></div>
254
- <div class="row collapse"><div class="detail-description">
255
- <p class="long_description"><p>Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.
256
- Includes the "? Search" area to filter the term checklist by entering part
257
- or all of a word/phrase in the term label.
258
- Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p></p>
259
- <table class="table table-bordered"><tr>
260
- <th>since</th>
261
- <td>1.71</td>
262
- </tr></table>
263
- <h3>Parameters</h3>
264
- <div class="subelement argument">
265
- <h4>$post</h4>
266
- <code>object</code><p>The current post</p></div>
267
- <div class="subelement argument">
268
- <h4>$box</h4>
269
- <code>array</code><p>The meta box parameters</p></div>
270
- </div></div>
271
- </div>
272
  <a name="mla_image_metadata_handler" id="mla_image_metadata_handler"></a><div class="element clickable method public mla_image_metadata_handler" data-toggle="collapse" data-target=".mla_image_metadata_handler .collapse">
273
  <h2>Renders the Image Metadata meta box on the Edit Media page.</h2>
274
  <pre>mla_image_metadata_handler(object $post) : void</pre>
@@ -368,6 +375,24 @@ Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p>
368
  <code>array</code>updated messages</div>
369
  </div></div>
370
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
371
  <h3>
372
  <i class="icon-custom icon-property"></i> Properties</h3>
373
  <a name="%24mla_references" id="$mla_references"> </a><div class="element clickable property private $mla_references" data-toggle="collapse" data-target=".$mla_references .collapse">
@@ -428,7 +453,7 @@ The array is built once each page load and cached for subsequent calls.</p></p>
428
  <div class="row"><footer class="span12">
429
  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>
430
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
431
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
432
  </div>
433
  </body>
434
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
62
  <li class="method public "><a href="#mla_admin_enqueue_scripts_action" title="mla_admin_enqueue_scripts_action :: Load the plugin's Style Sheet and Javascript files"><span class="description">Load the plugin's Style Sheet and Javascript files</span><pre>mla_admin_enqueue_scripts_action()</pre></a></li>
63
  <li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Adds Custom Field support to the Edit Media screen."><span class="description">Adds Custom Field support to the Edit Media screen.</span><pre>mla_admin_init_action()</pre></a></li>
64
  <li class="method public "><a href="#mla_attachment_submitbox_action" title="mla_attachment_submitbox_action :: Adds Last Modified date to the Submit box on the Edit Media screen."><span class="description">Adds Last Modified date to the Submit box on the Edit Media screen.</span><pre>mla_attachment_submitbox_action()</pre></a></li>
65
+ <li class="method public "><a href="#mla_checklist_meta_box" title='mla_checklist_meta_box :: Display taxonomy "checklist" form fields'><span class="description">Display taxonomy "checklist" form fields</span><pre>mla_checklist_meta_box()</pre></a></li>
66
  <li class="method public "><a href="#mla_edit_add_help_tab" title="mla_edit_add_help_tab :: Add contextual help tabs to the WordPress Edit Media page"><span class="description">Add contextual help tabs to the WordPress Edit Media page</span><pre>mla_edit_add_help_tab()</pre></a></li>
67
  <li class="method public "><a href="#mla_edit_attachment_action" title="mla_edit_attachment_action :: Saves updates from the Edit Media screen."><span class="description">Saves updates from the Edit Media screen.</span><pre>mla_edit_attachment_action()</pre></a></li>
68
  <li class="method public "><a href="#mla_featured_in_handler" title="mla_featured_in_handler :: Renders the Featured in meta box on the Edit Media page."><span class="description">Renders the Featured in meta box on the Edit Media page.</span><pre>mla_featured_in_handler()</pre></a></li>
69
  <li class="method public "><a href="#mla_gallery_in_handler" title="mla_gallery_in_handler :: Renders the Gallery in meta box on the Edit Media page."><span class="description">Renders the Gallery in meta box on the Edit Media page.</span><pre>mla_gallery_in_handler()</pre></a></li>
 
70
  <li class="method public "><a href="#mla_image_metadata_handler" title="mla_image_metadata_handler :: Renders the Image Metadata meta box on the Edit Media page."><span class="description">Renders the Image Metadata meta box on the Edit Media page.</span><pre>mla_image_metadata_handler()</pre></a></li>
71
  <li class="method public "><a href="#mla_inserted_in_handler" title="mla_inserted_in_handler :: Renders the Inserted in meta box on the Edit Media page."><span class="description">Renders the Inserted in meta box on the Edit Media page.</span><pre>mla_inserted_in_handler()</pre></a></li>
72
  <li class="method public "><a href="#mla_menu_order_handler" title="mla_menu_order_handler :: Renders the Menu Order meta box on the Edit Media page."><span class="description">Renders the Menu Order meta box on the Edit Media page.</span><pre>mla_menu_order_handler()</pre></a></li>
73
  <li class="method public "><a href="#mla_mla_gallery_in_handler" title="mla_mla_gallery_in_handler :: Renders the Gallery in meta box on the Edit Media page."><span class="description">Renders the Gallery in meta box on the Edit Media page.</span><pre>mla_mla_gallery_in_handler()</pre></a></li>
74
  <li class="method public "><a href="#mla_parent_info_handler" title="mla_parent_info_handler :: Renders the Parent Info meta box on the Edit Media page."><span class="description">Renders the Parent Info meta box on the Edit Media page.</span><pre>mla_parent_info_handler()</pre></a></li>
75
  <li class="method public "><a href="#mla_post_updated_messages_filter" title="mla_post_updated_messages_filter :: Adds mapping update messages for display at the top of the Edit Media screen."><span class="description">Adds mapping update messages for display at the top of the Edit Media screen.</span><pre>mla_post_updated_messages_filter()</pre></a></li>
76
+ <li class="nav-header private">» Private</li>
77
+ <li class="method private "><a href="#_mla_ajax_add_flat_term" title='_mla_ajax_add_flat_term :: Add flat taxonomy term from "checklist" meta box on both the Edit/Edit Media screen and
78
+ the Media Manager Modal WIndow'><span class="description">Add flat taxonomy term from "checklist" meta box on both the Edit/Edit Media screen and
79
+ the Media Manager Modal WIndow</span><pre>_mla_ajax_add_flat_term()</pre></a></li>
80
  <li class="nav-header">
81
  <i class="icon-custom icon-property"></i> Properties</li>
82
  <li class="nav-header private">» Private</li>
187
  </tr></table>
188
  </div></div>
189
  </div>
190
+ <a name="mla_checklist_meta_box" id="mla_checklist_meta_box"></a><div class="element clickable method public mla_checklist_meta_box" data-toggle="collapse" data-target=".mla_checklist_meta_box .collapse">
191
+ <h2>Display taxonomy "checklist" form fields</h2>
192
+ <pre>mla_checklist_meta_box(object $target_post, array $box) : void</pre>
193
+ <div class="labels"></div>
194
+ <div class="row collapse"><div class="detail-description">
195
+ <p class="long_description"><p>Adapted from /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term().
196
+ Includes the "? Search" area to filter the term checklist by entering part
197
+ or all of a word/phrase in the term label.
198
+ Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p></p>
199
+ <table class="table table-bordered"><tr>
200
+ <th>since</th>
201
+ <td>1.71</td>
202
+ </tr></table>
203
+ <h3>Parameters</h3>
204
+ <div class="subelement argument">
205
+ <h4>$target_post</h4>
206
+ <code>object</code><p>The current post</p></div>
207
+ <div class="subelement argument">
208
+ <h4>$box</h4>
209
+ <code>array</code><p>The meta box parameters</p></div>
210
+ </div></div>
211
+ </div>
212
  <a name="mla_edit_add_help_tab" id="mla_edit_add_help_tab"></a><div class="element clickable method public mla_edit_add_help_tab" data-toggle="collapse" data-target=".mla_edit_add_help_tab .collapse">
213
  <h2>Add contextual help tabs to the WordPress Edit Media page</h2>
214
  <pre>mla_edit_add_help_tab(string $admin_title, string $title) : void</pre>
276
  <code>object</code><p>current post</p></div>
277
  </div></div>
278
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
279
  <a name="mla_image_metadata_handler" id="mla_image_metadata_handler"></a><div class="element clickable method public mla_image_metadata_handler" data-toggle="collapse" data-target=".mla_image_metadata_handler .collapse">
280
  <h2>Renders the Image Metadata meta box on the Edit Media page.</h2>
281
  <pre>mla_image_metadata_handler(object $post) : void</pre>
375
  <code>array</code>updated messages</div>
376
  </div></div>
377
  </div>
378
+ <a name="_mla_ajax_add_flat_term" id="_mla_ajax_add_flat_term"></a><div class="element clickable method private _mla_ajax_add_flat_term" data-toggle="collapse" data-target="._mla_ajax_add_flat_term .collapse">
379
+ <h2>Add flat taxonomy term from "checklist" meta box on both the Edit/Edit Media screen and
380
+ the Media Manager Modal WIndow</h2>
381
+ <pre>_mla_ajax_add_flat_term(string $key) : void</pre>
382
+ <div class="labels"></div>
383
+ <div class="row collapse"><div class="detail-description">
384
+ <p class="long_description"><p>Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.</p></p>
385
+ <table class="table table-bordered"><tr>
386
+ <th>since</th>
387
+ <td>1.80</td>
388
+ </tr></table>
389
+ <h3>Parameters</h3>
390
+ <div class="subelement argument">
391
+ <h4>$key</h4>
392
+ <code>string</code><p>The taxonomy name, from $_POST['action']</p>
393
+ </div>
394
+ </div></div>
395
+ </div>
396
  <h3>
397
  <i class="icon-custom icon-property"></i> Properties</h3>
398
  <a name="%24mla_references" id="$mla_references"> </a><div class="element clickable property private $mla_references" data-toggle="collapse" data-target=".$mla_references .collapse">
453
  <div class="row"><footer class="span12">
454
  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>
455
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
456
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
457
  </div>
458
  </body>
459
  </html>
phpDocs/classes/MLAMime.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -113,6 +116,7 @@
113
  <li class="property private "><a href="#%24mla_optional_upload_mime_templates" title="$mla_optional_upload_mime_templates :: In-memory representation of the (read-only) Optional Upload MIME Types"><span class="description">In-memory representation of the (read-only) Optional Upload MIME Types</span><pre>$mla_optional_upload_mime_templates</pre></a></li>
114
  <li class="property private "><a href="#%24mla_post_mime_highest_ID" title="$mla_post_mime_highest_ID :: Highest existing Post MIME Type ID value"><span class="description">Highest existing Post MIME Type ID value</span><pre>$mla_post_mime_highest_ID</pre></a></li>
115
  <li class="property private "><a href="#%24mla_post_mime_templates" title="$mla_post_mime_templates :: In-memory representation of the Post MIME Types"><span class="description">In-memory representation of the Post MIME Types</span><pre>$mla_post_mime_templates</pre></a></li>
 
116
  <li class="property private "><a href="#%24mla_upload_mime_highest_ID" title="$mla_upload_mime_highest_ID :: Highest existing Upload MIME Type ID value"><span class="description">Highest existing Upload MIME Type ID value</span><pre>$mla_upload_mime_highest_ID</pre></a></li>
117
  <li class="property private "><a href="#%24mla_upload_mime_templates" title="$mla_upload_mime_templates :: In-memory representation of the Upload MIME Types"><span class="description">In-memory representation of the Upload MIME Types</span><pre>$mla_upload_mime_templates</pre></a></li>
118
  </ul>
@@ -1241,6 +1245,18 @@ Defined as public because it's a filter.</p></p>
1241
  </tr></table>
1242
  </div></div>
1243
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
1244
  <a name="%24mla_upload_mime_highest_ID" id="$mla_upload_mime_highest_ID"> </a><div class="element clickable property private $mla_upload_mime_highest_ID" data-toggle="collapse" data-target=".$mla_upload_mime_highest_ID .collapse">
1245
  <h2>Highest existing Upload MIME Type ID value</h2>
1246
  <pre>$mla_upload_mime_highest_ID : integer</pre>
@@ -1272,7 +1288,7 @@ Defined as public because it's a filter.</p></p>
1272
  <div class="row"><footer class="span12">
1273
  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>
1274
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1275
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
1276
  </div>
1277
  </body>
1278
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
116
  <li class="property private "><a href="#%24mla_optional_upload_mime_templates" title="$mla_optional_upload_mime_templates :: In-memory representation of the (read-only) Optional Upload MIME Types"><span class="description">In-memory representation of the (read-only) Optional Upload MIME Types</span><pre>$mla_optional_upload_mime_templates</pre></a></li>
117
  <li class="property private "><a href="#%24mla_post_mime_highest_ID" title="$mla_post_mime_highest_ID :: Highest existing Post MIME Type ID value"><span class="description">Highest existing Post MIME Type ID value</span><pre>$mla_post_mime_highest_ID</pre></a></li>
118
  <li class="property private "><a href="#%24mla_post_mime_templates" title="$mla_post_mime_templates :: In-memory representation of the Post MIME Types"><span class="description">In-memory representation of the Post MIME Types</span><pre>$mla_post_mime_templates</pre></a></li>
119
+ <li class="property private "><a href="#%24mla_upload_mime_descriptions" title="$mla_upload_mime_descriptions :: In-memory cache of the default Upload MIME Type descriptions"><span class="description">In-memory cache of the default Upload MIME Type descriptions</span><pre>$mla_upload_mime_descriptions</pre></a></li>
120
  <li class="property private "><a href="#%24mla_upload_mime_highest_ID" title="$mla_upload_mime_highest_ID :: Highest existing Upload MIME Type ID value"><span class="description">Highest existing Upload MIME Type ID value</span><pre>$mla_upload_mime_highest_ID</pre></a></li>
121
  <li class="property private "><a href="#%24mla_upload_mime_templates" title="$mla_upload_mime_templates :: In-memory representation of the Upload MIME Types"><span class="description">In-memory representation of the Upload MIME Types</span><pre>$mla_upload_mime_templates</pre></a></li>
122
  </ul>
1245
  </tr></table>
1246
  </div></div>
1247
  </div>
1248
+ <a name="%24mla_upload_mime_descriptions" id="$mla_upload_mime_descriptions"> </a><div class="element clickable property private $mla_upload_mime_descriptions" data-toggle="collapse" data-target=".$mla_upload_mime_descriptions .collapse">
1249
+ <h2>In-memory cache of the default Upload MIME Type descriptions</h2>
1250
+ <pre>$mla_upload_mime_descriptions : array</pre>
1251
+ <div class="labels"></div>
1252
+ <div class="row collapse"><div class="detail-description">
1253
+ <p class="long_description"></p>
1254
+ <table class="table table-bordered"><tr>
1255
+ <th>since</th>
1256
+ <td>1.80</td>
1257
+ </tr></table>
1258
+ </div></div>
1259
+ </div>
1260
  <a name="%24mla_upload_mime_highest_ID" id="$mla_upload_mime_highest_ID"> </a><div class="element clickable property private $mla_upload_mime_highest_ID" data-toggle="collapse" data-target=".$mla_upload_mime_highest_ID .collapse">
1261
  <h2>Highest existing Upload MIME Type ID value</h2>
1262
  <pre>$mla_upload_mime_highest_ID : integer</pre>
1288
  <div class="row"><footer class="span12">
1289
  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>
1290
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1291
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
1292
  </div>
1293
  </body>
1294
  </html>
phpDocs/classes/MLAModal.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -55,13 +58,15 @@
55
  <li class="nav-header">
56
  <i class="icon-custom icon-method"></i> Methods</li>
57
  <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>
58
- <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>
59
  <li class="method public "><a href="#mla_attachment_fields_to_edit_filter" title="mla_attachment_fields_to_edit_filter :: Add/change custom fields to the Edit Media screen and Modal Window"><span class="description">Add/change custom fields to the Edit Media screen and Modal Window</span><pre>mla_attachment_fields_to_edit_filter()</pre></a></li>
 
60
  <li class="method public "><a href="#mla_get_media_item_args_filter" title="mla_get_media_item_args_filter :: Saves the get_media_item_args array for the attachment_fields_to_edit filter"><span class="description">Saves the get_media_item_args array for the attachment_fields_to_edit filter</span><pre>mla_get_media_item_args_filter()</pre></a></li>
61
  <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>
62
  <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>
63
  <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>
64
- <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>
 
65
  <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>
66
  <li class="nav-header private">» Private</li>
67
  <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>
@@ -75,9 +80,12 @@ and mla_print_media_templates_action"><span class="description">Share the settin
75
  and mla_print_media_templates_action</span><pre>$mla_media_modal_settings</pre></a></li>
76
  <li class="nav-header">
77
  <i class="icon-custom icon-constant"></i> Constants</li>
 
78
  <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>
79
  <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>
80
  <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>
 
 
81
  </ul>
82
  </div>
83
  <div class="span8">
@@ -118,12 +126,13 @@ and mla_print_media_templates_action</span><pre>$mla_media_modal_settings</pre><
118
  </tr></table>
119
  </div></div>
120
  </div>
121
- <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">
122
  <h2>Adjust ajax handler for Media Manager queries</h2>
123
- <pre>mla_admin_init_ajax_action() : void</pre>
124
  <div class="labels"></div>
125
  <div class="row collapse"><div class="detail-description">
126
- <p class="long_description"><p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab</p></p>
 
127
  <table class="table table-bordered"><tr>
128
  <th>since</th>
129
  <td>1.20</td>
@@ -158,6 +167,18 @@ Declared public because it is a filter.</p></p>
158
  <code>array</code>updated descriptors for the "compat-attachment-fields"</div>
159
  </div></div>
160
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
161
  <a name="mla_get_media_item_args_filter" id="mla_get_media_item_args_filter"></a><div class="element clickable method public mla_get_media_item_args_filter" data-toggle="collapse" data-target=".mla_get_media_item_args_filter .collapse">
162
  <h2>Saves the get_media_item_args array for the attachment_fields_to_edit filter</h2>
163
  <pre>mla_get_media_item_args_filter(array $args) : array</pre>
@@ -237,7 +258,7 @@ Declared public because it is a filter.</p></p>
237
  </div></div>
238
  </div>
239
  <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">
240
- <h2>Ajax handler for Media Manager queries</h2>
241
  <pre>mla_query_attachments_action() : void</pre>
242
  <div class="labels"></div>
243
  <div class="row collapse"><div class="detail-description">
@@ -248,6 +269,18 @@ Declared public because it is a filter.</p></p>
248
  </tr></table>
249
  </div></div>
250
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
251
  <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">
252
  <h2>Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.</h2>
253
  <pre>mla_wp_enqueue_media_action() : void</pre>
@@ -329,6 +362,18 @@ and mla_print_media_templates_action</h2>
329
  </div>
330
  <h3>
331
  <i class="icon-custom icon-constant"></i> Constants</h3>
 
 
 
 
 
 
 
 
 
 
 
 
332
  <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">
333
  <h2>Object name for localizing JavaScript - Add Media and related dialogs</h2>
334
  <pre>JAVASCRIPT_MEDIA_MODAL_OBJECT : string</pre>
@@ -365,6 +410,30 @@ and mla_print_media_templates_action</h2>
365
  </tr></table>
366
  </div></div>
367
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
368
  </div>
369
  </div>
370
  </div>
@@ -372,7 +441,7 @@ and mla_print_media_templates_action</h2>
372
  <div class="row"><footer class="span12">
373
  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>
374
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
375
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
376
  </div>
377
  </body>
378
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
58
  <li class="nav-header">
59
  <i class="icon-custom icon-method"></i> Methods</li>
60
  <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>
61
+ <li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Adjust ajax handler for Media Manager queries"><span class="description">Adjust ajax handler for Media Manager queries</span><pre>mla_admin_init_action()</pre></a></li>
62
  <li class="method public "><a href="#mla_attachment_fields_to_edit_filter" title="mla_attachment_fields_to_edit_filter :: Add/change custom fields to the Edit Media screen and Modal Window"><span class="description">Add/change custom fields to the Edit Media screen and Modal Window</span><pre>mla_attachment_fields_to_edit_filter()</pre></a></li>
63
+ <li class="method public "><a href="#mla_fill_compat_fields_action" title='mla_fill_compat_fields_action :: Ajax handler for Media Manager "fill compat-attachment-fields" queries'><span class="description">Ajax handler for Media Manager "fill compat-attachment-fields" queries</span><pre>mla_fill_compat_fields_action()</pre></a></li>
64
  <li class="method public "><a href="#mla_get_media_item_args_filter" title="mla_get_media_item_args_filter :: Saves the get_media_item_args array for the attachment_fields_to_edit filter"><span class="description">Saves the get_media_item_args array for the attachment_fields_to_edit filter</span><pre>mla_get_media_item_args_filter()</pre></a></li>
65
  <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>
66
  <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>
67
  <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>
68
+ <li class="method public "><a href="#mla_query_attachments_action" title='mla_query_attachments_action :: Ajax handler for Media Manager "Query Attachments" queries'><span class="description">Ajax handler for Media Manager "Query Attachments" queries</span><pre>mla_query_attachments_action()</pre></a></li>
69
+ <li class="method public "><a href="#mla_update_compat_fields_action" title='mla_update_compat_fields_action :: Ajax handler for Media Manager "update compat-attachment-fields" queries'><span class="description">Ajax handler for Media Manager "update compat-attachment-fields" queries</span><pre>mla_update_compat_fields_action()</pre></a></li>
70
  <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>
71
  <li class="nav-header private">» Private</li>
72
  <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>
80
  and mla_print_media_templates_action</span><pre>$mla_media_modal_settings</pre></a></li>
81
  <li class="nav-header">
82
  <i class="icon-custom icon-constant"></i> Constants</li>
83
+ <li class="constant "><a href="#JAVASCRIPT_FILL_COMPAT_ACTION" title='JAVASCRIPT_FILL_COMPAT_ACTION :: Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs'><span class="description">Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs</span><pre>JAVASCRIPT_FILL_COMPAT_ACTION</pre></a></li>
84
  <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>
85
  <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>
86
  <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>
87
+ <li class="constant "><a href="#JAVASCRIPT_QUERY_ATTACHMENTS_ACTION" title='JAVASCRIPT_QUERY_ATTACHMENTS_ACTION :: Slug for the "query attachments" action - Add Media and related dialogs'><span class="description">Slug for the "query attachments" action - Add Media and related dialogs</span><pre>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</pre></a></li>
88
+ <li class="constant "><a href="#JAVASCRIPT_UPDATE_COMPAT_ACTION" title='JAVASCRIPT_UPDATE_COMPAT_ACTION :: Slug for the "update compat-attachment-fields" action - Add Media and related dialogs'><span class="description">Slug for the "update compat-attachment-fields" action - Add Media and related dialogs</span><pre>JAVASCRIPT_UPDATE_COMPAT_ACTION</pre></a></li>
89
  </ul>
90
  </div>
91
  <div class="span8">
126
  </tr></table>
127
  </div></div>
128
  </div>
129
+ <a name="mla_admin_init_action" id="mla_admin_init_action"></a><div class="element clickable method public mla_admin_init_action" data-toggle="collapse" data-target=".mla_admin_init_action .collapse">
130
  <h2>Adjust ajax handler for Media Manager queries</h2>
131
+ <pre>mla_admin_init_action() : void</pre>
132
  <div class="labels"></div>
133
  <div class="row collapse"><div class="detail-description">
134
+ <p class="long_description"><p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab.
135
+ Clean up the 'save-attachment-compat' values, removing the taxonomy updates MLS already handled.</p></p>
136
  <table class="table table-bordered"><tr>
137
  <th>since</th>
138
  <td>1.20</td>
167
  <code>array</code>updated descriptors for the "compat-attachment-fields"</div>
168
  </div></div>
169
  </div>
170
+ <a name="mla_fill_compat_fields_action" id="mla_fill_compat_fields_action"></a><div class="element clickable method public mla_fill_compat_fields_action" data-toggle="collapse" data-target=".mla_fill_compat_fields_action .collapse">
171
+ <h2>Ajax handler for Media Manager "fill compat-attachment-fields" queries</h2>
172
+ <pre>mla_fill_compat_fields_action() : void</pre>
173
+ <div class="labels"></div>
174
+ <div class="row collapse"><div class="detail-description">
175
+ <p class="long_description"><p>Prepares an array of (HTML) taxonomy meta boxes with attachment-specific values.</p></p>
176
+ <table class="table table-bordered"><tr>
177
+ <th>since</th>
178
+ <td>1.80</td>
179
+ </tr></table>
180
+ </div></div>
181
+ </div>
182
  <a name="mla_get_media_item_args_filter" id="mla_get_media_item_args_filter"></a><div class="element clickable method public mla_get_media_item_args_filter" data-toggle="collapse" data-target=".mla_get_media_item_args_filter .collapse">
183
  <h2>Saves the get_media_item_args array for the attachment_fields_to_edit filter</h2>
184
  <pre>mla_get_media_item_args_filter(array $args) : array</pre>
258
  </div></div>
259
  </div>
260
  <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">
261
+ <h2>Ajax handler for Media Manager "Query Attachments" queries</h2>
262
  <pre>mla_query_attachments_action() : void</pre>
263
  <div class="labels"></div>
264
  <div class="row collapse"><div class="detail-description">
269
  </tr></table>
270
  </div></div>
271
  </div>
272
+ <a name="mla_update_compat_fields_action" id="mla_update_compat_fields_action"></a><div class="element clickable method public mla_update_compat_fields_action" data-toggle="collapse" data-target=".mla_update_compat_fields_action .collapse">
273
+ <h2>Ajax handler for Media Manager "update compat-attachment-fields" queries</h2>
274
+ <pre>mla_update_compat_fields_action() : void</pre>
275
+ <div class="labels"></div>
276
+ <div class="row collapse"><div class="detail-description">
277
+ <p class="long_description"><p>Updates one (or more) supported taxonomy and returns updated checkbox or tag/term lists</p></p>
278
+ <table class="table table-bordered"><tr>
279
+ <th>since</th>
280
+ <td>1.80</td>
281
+ </tr></table>
282
+ </div></div>
283
+ </div>
284
  <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">
285
  <h2>Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.</h2>
286
  <pre>mla_wp_enqueue_media_action() : void</pre>
362
  </div>
363
  <h3>
364
  <i class="icon-custom icon-constant"></i> Constants</h3>
365
+ <a name="JAVASCRIPT_FILL_COMPAT_ACTION" id="JAVASCRIPT_FILL_COMPAT_ACTION"> </a><div class="element clickable constant JAVASCRIPT_FILL_COMPAT_ACTION" data-toggle="collapse" data-target=".JAVASCRIPT_FILL_COMPAT_ACTION .collapse">
366
+ <h2>Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs</h2>
367
+ <pre>JAVASCRIPT_FILL_COMPAT_ACTION : string</pre>
368
+ <div class="labels"></div>
369
+ <div class="row collapse"><div class="detail-description">
370
+ <p class="long_description"></p>
371
+ <table class="table table-bordered"><tr>
372
+ <th>since</th>
373
+ <td>1.80</td>
374
+ </tr></table>
375
+ </div></div>
376
+ </div>
377
  <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">
378
  <h2>Object name for localizing JavaScript - Add Media and related dialogs</h2>
379
  <pre>JAVASCRIPT_MEDIA_MODAL_OBJECT : string</pre>
410
  </tr></table>
411
  </div></div>
412
  </div>
413
+ <a name="JAVASCRIPT_QUERY_ATTACHMENTS_ACTION" id="JAVASCRIPT_QUERY_ATTACHMENTS_ACTION"> </a><div class="element clickable constant JAVASCRIPT_QUERY_ATTACHMENTS_ACTION" data-toggle="collapse" data-target=".JAVASCRIPT_QUERY_ATTACHMENTS_ACTION .collapse">
414
+ <h2>Slug for the "query attachments" action - Add Media and related dialogs</h2>
415
+ <pre>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION : string</pre>
416
+ <div class="labels"></div>
417
+ <div class="row collapse"><div class="detail-description">
418
+ <p class="long_description"></p>
419
+ <table class="table table-bordered"><tr>
420
+ <th>since</th>
421
+ <td>1.80</td>
422
+ </tr></table>
423
+ </div></div>
424
+ </div>
425
+ <a name="JAVASCRIPT_UPDATE_COMPAT_ACTION" id="JAVASCRIPT_UPDATE_COMPAT_ACTION"> </a><div class="element clickable constant JAVASCRIPT_UPDATE_COMPAT_ACTION" data-toggle="collapse" data-target=".JAVASCRIPT_UPDATE_COMPAT_ACTION .collapse">
426
+ <h2>Slug for the "update compat-attachment-fields" action - Add Media and related dialogs</h2>
427
+ <pre>JAVASCRIPT_UPDATE_COMPAT_ACTION : string</pre>
428
+ <div class="labels"></div>
429
+ <div class="row collapse"><div class="detail-description">
430
+ <p class="long_description"></p>
431
+ <table class="table table-bordered"><tr>
432
+ <th>since</th>
433
+ <td>1.80</td>
434
+ </tr></table>
435
+ </div></div>
436
+ </div>
437
  </div>
438
  </div>
439
  </div>
441
  <div class="row"><footer class="span12">
442
  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>
443
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
444
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
445
  </div>
446
  </body>
447
  </html>
phpDocs/classes/MLAObjects.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -169,7 +172,7 @@ which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
169
  <div class="row"><footer class="span12">
170
  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>
171
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
172
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
173
  </div>
174
  </body>
175
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
172
  <div class="row"><footer class="span12">
173
  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>
174
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
175
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
176
  </div>
177
  </body>
178
  </html>
phpDocs/classes/MLAOptions.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -69,6 +72,7 @@
69
  <li class="method public "><a href="#mla_get_option" title="mla_get_option :: Return the stored value or default value of a defined MLA option"><span class="description">Return the stored value or default value of a defined MLA option</span><pre>mla_get_option()</pre></a></li>
70
  <li class="method public "><a href="#mla_get_style_templates" title="mla_get_style_templates :: Get ALL style templates from $mla_templates, including 'default'"><span class="description">Get ALL style templates from $mla_templates, including 'default'</span><pre>mla_get_style_templates()</pre></a></li>
71
  <li class="method public "><a href="#mla_iptc_exif_option_handler" title="mla_iptc_exif_option_handler :: Render and manage iptc/exif support options"><span class="description">Render and manage iptc/exif support options</span><pre>mla_iptc_exif_option_handler()</pre></a></li>
 
72
  <li class="method public "><a href="#mla_localize_option_definitions_array" title="mla_localize_option_definitions_array :: Localize $mla_option_definitions array"><span class="description">Localize $mla_option_definitions array</span><pre>mla_localize_option_definitions_array()</pre></a></li>
73
  <li class="method public "><a href="#mla_put_markup_templates" title="mla_put_markup_templates :: Put user-defined markup templates to $mla_templates and database"><span class="description">Put user-defined markup templates to $mla_templates and database</span><pre>mla_put_markup_templates()</pre></a></li>
74
  <li class="method public "><a href="#mla_put_style_templates" title="mla_put_style_templates :: Put user-defined style templates to $mla_templates and database"><span class="description">Put user-defined style templates to $mla_templates and database</span><pre>mla_put_style_templates()</pre></a></li>
@@ -109,8 +113,11 @@ settings are being updated or reset.</span><pre>mla_taxonomy_support()</pre></a>
109
  <li class="property private "><a href="#%24mla_option_templates" title="$mla_option_templates :: Style and Markup templates"><span class="description">Style and Markup templates</span><pre>$mla_option_templates</pre></a></li>
110
  <li class="nav-header">
111
  <i class="icon-custom icon-constant"></i> Constants</li>
 
112
  <li class="constant "><a href="#MLA_DEFAULT_ORDER" title="MLA_DEFAULT_ORDER :: Provides a unique name for the default order option"><span class="description">Provides a unique name for the default order option</span><pre>MLA_DEFAULT_ORDER</pre></a></li>
113
  <li class="constant "><a href="#MLA_DEFAULT_ORDERBY" title="MLA_DEFAULT_ORDERBY :: Provides a unique name for the default orderby option"><span class="description">Provides a unique name for the default orderby option</span><pre>MLA_DEFAULT_ORDERBY</pre></a></li>
 
 
114
  <li class="constant "><a href="#MLA_ENABLE_MLA_ICONS" title="MLA_ENABLE_MLA_ICONS :: Provides a unique name for the Enable MLA Icons option"><span class="description">Provides a unique name for the Enable MLA Icons option</span><pre>MLA_ENABLE_MLA_ICONS</pre></a></li>
115
  <li class="constant "><a href="#MLA_ENABLE_POST_MIME_TYPES" title="MLA_ENABLE_POST_MIME_TYPES :: Provides a unique name for the Enable Post MIME Types option"><span class="description">Provides a unique name for the Enable Post MIME Types option</span><pre>MLA_ENABLE_POST_MIME_TYPES</pre></a></li>
116
  <li class="constant "><a href="#MLA_ENABLE_UPLOAD_MIMES" title="MLA_ENABLE_UPLOAD_MIMES :: Provides a unique name for the Enable Upload MIME Types option"><span class="description">Provides a unique name for the Enable Upload MIME Types option</span><pre>MLA_ENABLE_UPLOAD_MIMES</pre></a></li>
@@ -131,7 +138,9 @@ This option is for flat taxonomies, e.g., "Att.</span><pre>MLA_MEDIA_MODAL_DETAI
131
  <li class="constant "><a href="#MLA_MEDIA_MODAL_ORDERBY" title="MLA_MEDIA_MODAL_ORDERBY :: Provides a unique name for the Media Manager orderby option"><span class="description">Provides a unique name for the Media Manager orderby option</span><pre>MLA_MEDIA_MODAL_ORDERBY</pre></a></li>
132
  <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>
133
  <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>
134
- <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>
 
 
135
  <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>
136
  <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>
137
  <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>
@@ -140,7 +149,8 @@ This option is for flat taxonomies, e.g., "Att.</span><pre>MLA_MEDIA_MODAL_DETAI
140
  <li class="constant "><a href="#MLA_SCREEN_MENU_TITLE" title="MLA_SCREEN_MENU_TITLE :: Provides a unique name for the admin screen menu title option"><span class="description">Provides a unique name for the admin screen menu title option</span><pre>MLA_SCREEN_MENU_TITLE</pre></a></li>
141
  <li class="constant "><a href="#MLA_SCREEN_ORDER" title="MLA_SCREEN_ORDER :: Provides a unique name for the admin screen menu order option"><span class="description">Provides a unique name for the admin screen menu order option</span><pre>MLA_SCREEN_ORDER</pre></a></li>
142
  <li class="constant "><a href="#MLA_SCREEN_PAGE_TITLE" title="MLA_SCREEN_PAGE_TITLE :: Provides a unique name for the admin screen page title option"><span class="description">Provides a unique name for the admin screen page title option</span><pre>MLA_SCREEN_PAGE_TITLE</pre></a></li>
143
- <li class="constant "><a href="#MLA_TABLE_VIEWS_WIDTH" title="MLA_TABLE_VIEWS_WIDTH :: Provides a unique name for the default table views width option"><span class="description">Provides a unique name for the default table views width option</span><pre>MLA_TABLE_VIEWS_WIDTH</pre></a></li>
 
144
  <li class="constant "><a href="#MLA_TAXONOMY_FILTER_DEPTH" title="MLA_TAXONOMY_FILTER_DEPTH :: Provides a unique name for the taxonomy filter maximum depth option"><span class="description">Provides a unique name for the taxonomy filter maximum depth option</span><pre>MLA_TAXONOMY_FILTER_DEPTH</pre></a></li>
145
  <li class="constant "><a href="#MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN" title="MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN :: Provides a unique name for the taxonomy filter maximum depth option"><span class="description">Provides a unique name for the taxonomy filter maximum depth option</span><pre>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN</pre></a></li>
146
  <li class="constant "><a href="#MLA_TAXONOMY_SUPPORT" title="MLA_TAXONOMY_SUPPORT :: Provides a unique name for the taxonomy support option"><span class="description">Provides a unique name for the taxonomy support option</span><pre>MLA_TAXONOMY_SUPPORT</pre></a></li>
@@ -546,6 +556,26 @@ Isolates clients from changes to _evaluate_data_source().</p></p>
546
  <code>string</code>HTML table row markup for 'render' else message(s) reflecting the results of the operation.</div>
547
  </div></div>
548
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
549
  <a name="mla_localize_option_definitions_array" id="mla_localize_option_definitions_array"></a><div class="element clickable method public mla_localize_option_definitions_array" data-toggle="collapse" data-target=".mla_localize_option_definitions_array .collapse">
550
  <h2>Localize $mla_option_definitions array</h2>
551
  <pre>mla_localize_option_definitions_array() : void</pre>
@@ -1227,6 +1257,12 @@ added to the Media Library.</p></p>
1227
  </div>
1228
  <h3>
1229
  <i class="icon-custom icon-constant"></i> Constants</h3>
 
 
 
 
 
 
1230
  <a name="MLA_DEFAULT_ORDER" id="MLA_DEFAULT_ORDER"> </a><div class="element clickable constant MLA_DEFAULT_ORDER" data-toggle="collapse" data-target=".MLA_DEFAULT_ORDER .collapse">
1231
  <h2>Provides a unique name for the default order option</h2>
1232
  <pre>MLA_DEFAULT_ORDER </pre>
@@ -1239,6 +1275,18 @@ added to the Media Library.</p></p>
1239
  <div class="labels"></div>
1240
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1241
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
1242
  <a name="MLA_ENABLE_MLA_ICONS" id="MLA_ENABLE_MLA_ICONS"> </a><div class="element clickable constant MLA_ENABLE_MLA_ICONS" data-toggle="collapse" data-target=".MLA_ENABLE_MLA_ICONS .collapse">
1243
  <h2>Provides a unique name for the Enable MLA Icons option</h2>
1244
  <pre>MLA_ENABLE_MLA_ICONS </pre>
@@ -1338,7 +1386,8 @@ This option is for flat taxonomies, e.g., "Att.</h2>
1338
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1339
  </div>
1340
  <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">
1341
- <h2>Provides a unique name for the Media Manager toolbar option</h2>
 
1342
  <pre>MLA_MEDIA_MODAL_TOOLBAR </pre>
1343
  <div class="labels"></div>
1344
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
@@ -1391,8 +1440,14 @@ This option is for flat taxonomies, e.g., "Att.</h2>
1391
  <div class="labels"></div>
1392
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1393
  </div>
 
 
 
 
 
 
1394
  <a name="MLA_TABLE_VIEWS_WIDTH" id="MLA_TABLE_VIEWS_WIDTH"> </a><div class="element clickable constant MLA_TABLE_VIEWS_WIDTH" data-toggle="collapse" data-target=".MLA_TABLE_VIEWS_WIDTH .collapse">
1395
- <h2>Provides a unique name for the default table views width option</h2>
1396
  <pre>MLA_TABLE_VIEWS_WIDTH </pre>
1397
  <div class="labels"></div>
1398
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
@@ -1434,7 +1489,7 @@ This option is for flat taxonomies, e.g., "Att.</h2>
1434
  <div class="row"><footer class="span12">
1435
  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>
1436
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1437
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
1438
  </div>
1439
  </body>
1440
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
72
  <li class="method public "><a href="#mla_get_option" title="mla_get_option :: Return the stored value or default value of a defined MLA option"><span class="description">Return the stored value or default value of a defined MLA option</span><pre>mla_get_option()</pre></a></li>
73
  <li class="method public "><a href="#mla_get_style_templates" title="mla_get_style_templates :: Get ALL style templates from $mla_templates, including 'default'"><span class="description">Get ALL style templates from $mla_templates, including 'default'</span><pre>mla_get_style_templates()</pre></a></li>
74
  <li class="method public "><a href="#mla_iptc_exif_option_handler" title="mla_iptc_exif_option_handler :: Render and manage iptc/exif support options"><span class="description">Render and manage iptc/exif support options</span><pre>mla_iptc_exif_option_handler()</pre></a></li>
75
+ <li class="method public "><a href="#mla_is_data_source" title="mla_is_data_source :: Identify custom field mapping data source"><span class="description">Identify custom field mapping data source</span><pre>mla_is_data_source()</pre></a></li>
76
  <li class="method public "><a href="#mla_localize_option_definitions_array" title="mla_localize_option_definitions_array :: Localize $mla_option_definitions array"><span class="description">Localize $mla_option_definitions array</span><pre>mla_localize_option_definitions_array()</pre></a></li>
77
  <li class="method public "><a href="#mla_put_markup_templates" title="mla_put_markup_templates :: Put user-defined markup templates to $mla_templates and database"><span class="description">Put user-defined markup templates to $mla_templates and database</span><pre>mla_put_markup_templates()</pre></a></li>
78
  <li class="method public "><a href="#mla_put_style_templates" title="mla_put_style_templates :: Put user-defined style templates to $mla_templates and database"><span class="description">Put user-defined style templates to $mla_templates and database</span><pre>mla_put_style_templates()</pre></a></li>
113
  <li class="property private "><a href="#%24mla_option_templates" title="$mla_option_templates :: Style and Markup templates"><span class="description">Style and Markup templates</span><pre>$mla_option_templates</pre></a></li>
114
  <li class="nav-header">
115
  <i class="icon-custom icon-constant"></i> Constants</li>
116
+ <li class="constant "><a href="#MLA_COUNT_TERM_ATTACHMENTS" title="MLA_COUNT_TERM_ATTACHMENTS :: Provides a unique name for the taxonomy count Attachments option"><span class="description">Provides a unique name for the taxonomy count Attachments option</span><pre>MLA_COUNT_TERM_ATTACHMENTS</pre></a></li>
117
  <li class="constant "><a href="#MLA_DEFAULT_ORDER" title="MLA_DEFAULT_ORDER :: Provides a unique name for the default order option"><span class="description">Provides a unique name for the default order option</span><pre>MLA_DEFAULT_ORDER</pre></a></li>
118
  <li class="constant "><a href="#MLA_DEFAULT_ORDERBY" title="MLA_DEFAULT_ORDERBY :: Provides a unique name for the default orderby option"><span class="description">Provides a unique name for the default orderby option</span><pre>MLA_DEFAULT_ORDERBY</pre></a></li>
119
+ <li class="constant "><a href="#MLA_EDIT_MEDIA_META_BOXES" title="MLA_EDIT_MEDIA_META_BOXES :: Provides a unique name for the Edit Media additional meta boxes option"><span class="description">Provides a unique name for the Edit Media additional meta boxes option</span><pre>MLA_EDIT_MEDIA_META_BOXES</pre></a></li>
120
+ <li class="constant "><a href="#MLA_EDIT_MEDIA_SEARCH_TAXONOMY" title='MLA_EDIT_MEDIA_SEARCH_TAXONOMY :: Provides a unique name for the "searchable taxonomies" option'><span class="description">Provides a unique name for the "searchable taxonomies" option</span><pre>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</pre></a></li>
121
  <li class="constant "><a href="#MLA_ENABLE_MLA_ICONS" title="MLA_ENABLE_MLA_ICONS :: Provides a unique name for the Enable MLA Icons option"><span class="description">Provides a unique name for the Enable MLA Icons option</span><pre>MLA_ENABLE_MLA_ICONS</pre></a></li>
122
  <li class="constant "><a href="#MLA_ENABLE_POST_MIME_TYPES" title="MLA_ENABLE_POST_MIME_TYPES :: Provides a unique name for the Enable Post MIME Types option"><span class="description">Provides a unique name for the Enable Post MIME Types option</span><pre>MLA_ENABLE_POST_MIME_TYPES</pre></a></li>
123
  <li class="constant "><a href="#MLA_ENABLE_UPLOAD_MIMES" title="MLA_ENABLE_UPLOAD_MIMES :: Provides a unique name for the Enable Upload MIME Types option"><span class="description">Provides a unique name for the Enable Upload MIME Types option</span><pre>MLA_ENABLE_UPLOAD_MIMES</pre></a></li>
138
  <li class="constant "><a href="#MLA_MEDIA_MODAL_ORDERBY" title="MLA_MEDIA_MODAL_ORDERBY :: Provides a unique name for the Media Manager orderby option"><span class="description">Provides a unique name for the Media Manager orderby option</span><pre>MLA_MEDIA_MODAL_ORDERBY</pre></a></li>
139
  <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>
140
  <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>
141
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_TOOLBAR" title="MLA_MEDIA_MODAL_TOOLBAR :: Provides a unique name for the Media Manager toolbar option, which
142
+ also controls the ATTACHMENT DETAILS enhancements"><span class="description">Provides a unique name for the Media Manager toolbar option, which
143
+ also controls the ATTACHMENT DETAILS enhancements</span><pre>MLA_MEDIA_MODAL_TOOLBAR</pre></a></li>
144
  <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>
145
  <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>
146
  <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>
149
  <li class="constant "><a href="#MLA_SCREEN_MENU_TITLE" title="MLA_SCREEN_MENU_TITLE :: Provides a unique name for the admin screen menu title option"><span class="description">Provides a unique name for the admin screen menu title option</span><pre>MLA_SCREEN_MENU_TITLE</pre></a></li>
150
  <li class="constant "><a href="#MLA_SCREEN_ORDER" title="MLA_SCREEN_ORDER :: Provides a unique name for the admin screen menu order option"><span class="description">Provides a unique name for the admin screen menu order option</span><pre>MLA_SCREEN_ORDER</pre></a></li>
151
  <li class="constant "><a href="#MLA_SCREEN_PAGE_TITLE" title="MLA_SCREEN_PAGE_TITLE :: Provides a unique name for the admin screen page title option"><span class="description">Provides a unique name for the admin screen page title option</span><pre>MLA_SCREEN_PAGE_TITLE</pre></a></li>
152
+ <li class="constant "><a href="#MLA_TABLE_ICON_SIZE" title="MLA_TABLE_ICON_SIZE :: Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option"><span class="description">Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option</span><pre>MLA_TABLE_ICON_SIZE</pre></a></li>
153
+ <li class="constant "><a href="#MLA_TABLE_VIEWS_WIDTH" title="MLA_TABLE_VIEWS_WIDTH :: Provides a unique name for the Media/Assistant submenu table views width option"><span class="description">Provides a unique name for the Media/Assistant submenu table views width option</span><pre>MLA_TABLE_VIEWS_WIDTH</pre></a></li>
154
  <li class="constant "><a href="#MLA_TAXONOMY_FILTER_DEPTH" title="MLA_TAXONOMY_FILTER_DEPTH :: Provides a unique name for the taxonomy filter maximum depth option"><span class="description">Provides a unique name for the taxonomy filter maximum depth option</span><pre>MLA_TAXONOMY_FILTER_DEPTH</pre></a></li>
155
  <li class="constant "><a href="#MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN" title="MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN :: Provides a unique name for the taxonomy filter maximum depth option"><span class="description">Provides a unique name for the taxonomy filter maximum depth option</span><pre>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN</pre></a></li>
156
  <li class="constant "><a href="#MLA_TAXONOMY_SUPPORT" title="MLA_TAXONOMY_SUPPORT :: Provides a unique name for the taxonomy support option"><span class="description">Provides a unique name for the taxonomy support option</span><pre>MLA_TAXONOMY_SUPPORT</pre></a></li>
556
  <code>string</code>HTML table row markup for 'render' else message(s) reflecting the results of the operation.</div>
557
  </div></div>
558
  </div>
559
+ <a name="mla_is_data_source" id="mla_is_data_source"></a><div class="element clickable method public mla_is_data_source" data-toggle="collapse" data-target=".mla_is_data_source .collapse">
560
+ <h2>Identify custom field mapping data source</h2>
561
+ <pre>mla_is_data_source(string $candidate_name) : boolean</pre>
562
+ <div class="labels"></div>
563
+ <div class="row collapse"><div class="detail-description">
564
+ <p class="long_description"><p>Determines whether a name matches any of the element-level data source dropdown options, i.e.,
565
+ excludes "template:" and "meta:" values.</p></p>
566
+ <table class="table table-bordered"><tr>
567
+ <th>since</th>
568
+ <td>1.80</td>
569
+ </tr></table>
570
+ <h3>Parameters</h3>
571
+ <div class="subelement argument">
572
+ <h4>$candidate_name</h4>
573
+ <code>string</code><p>candidate data source name</p></div>
574
+ <h3>Returns</h3>
575
+ <div class="subelement response">
576
+ <code>boolean</code>true if candidate name matches a data source</div>
577
+ </div></div>
578
+ </div>
579
  <a name="mla_localize_option_definitions_array" id="mla_localize_option_definitions_array"></a><div class="element clickable method public mla_localize_option_definitions_array" data-toggle="collapse" data-target=".mla_localize_option_definitions_array .collapse">
580
  <h2>Localize $mla_option_definitions array</h2>
581
  <pre>mla_localize_option_definitions_array() : void</pre>
1257
  </div>
1258
  <h3>
1259
  <i class="icon-custom icon-constant"></i> Constants</h3>
1260
+ <a name="MLA_COUNT_TERM_ATTACHMENTS" id="MLA_COUNT_TERM_ATTACHMENTS"> </a><div class="element clickable constant MLA_COUNT_TERM_ATTACHMENTS" data-toggle="collapse" data-target=".MLA_COUNT_TERM_ATTACHMENTS .collapse">
1261
+ <h2>Provides a unique name for the taxonomy count Attachments option</h2>
1262
+ <pre>MLA_COUNT_TERM_ATTACHMENTS </pre>
1263
+ <div class="labels"></div>
1264
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1265
+ </div>
1266
  <a name="MLA_DEFAULT_ORDER" id="MLA_DEFAULT_ORDER"> </a><div class="element clickable constant MLA_DEFAULT_ORDER" data-toggle="collapse" data-target=".MLA_DEFAULT_ORDER .collapse">
1267
  <h2>Provides a unique name for the default order option</h2>
1268
  <pre>MLA_DEFAULT_ORDER </pre>
1275
  <div class="labels"></div>
1276
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1277
  </div>
1278
+ <a name="MLA_EDIT_MEDIA_META_BOXES" id="MLA_EDIT_MEDIA_META_BOXES"> </a><div class="element clickable constant MLA_EDIT_MEDIA_META_BOXES" data-toggle="collapse" data-target=".MLA_EDIT_MEDIA_META_BOXES .collapse">
1279
+ <h2>Provides a unique name for the Edit Media additional meta boxes option</h2>
1280
+ <pre>MLA_EDIT_MEDIA_META_BOXES </pre>
1281
+ <div class="labels"></div>
1282
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1283
+ </div>
1284
+ <a name="MLA_EDIT_MEDIA_SEARCH_TAXONOMY" id="MLA_EDIT_MEDIA_SEARCH_TAXONOMY"> </a><div class="element clickable constant MLA_EDIT_MEDIA_SEARCH_TAXONOMY" data-toggle="collapse" data-target=".MLA_EDIT_MEDIA_SEARCH_TAXONOMY .collapse">
1285
+ <h2>Provides a unique name for the "searchable taxonomies" option</h2>
1286
+ <pre>MLA_EDIT_MEDIA_SEARCH_TAXONOMY </pre>
1287
+ <div class="labels"></div>
1288
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1289
+ </div>
1290
  <a name="MLA_ENABLE_MLA_ICONS" id="MLA_ENABLE_MLA_ICONS"> </a><div class="element clickable constant MLA_ENABLE_MLA_ICONS" data-toggle="collapse" data-target=".MLA_ENABLE_MLA_ICONS .collapse">
1291
  <h2>Provides a unique name for the Enable MLA Icons option</h2>
1292
  <pre>MLA_ENABLE_MLA_ICONS </pre>
1386
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1387
  </div>
1388
  <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">
1389
+ <h2>Provides a unique name for the Media Manager toolbar option, which
1390
+ also controls the ATTACHMENT DETAILS enhancements</h2>
1391
  <pre>MLA_MEDIA_MODAL_TOOLBAR </pre>
1392
  <div class="labels"></div>
1393
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1440
  <div class="labels"></div>
1441
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1442
  </div>
1443
+ <a name="MLA_TABLE_ICON_SIZE" id="MLA_TABLE_ICON_SIZE"> </a><div class="element clickable constant MLA_TABLE_ICON_SIZE" data-toggle="collapse" data-target=".MLA_TABLE_ICON_SIZE .collapse">
1444
+ <h2>Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option</h2>
1445
+ <pre>MLA_TABLE_ICON_SIZE </pre>
1446
+ <div class="labels"></div>
1447
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1448
+ </div>
1449
  <a name="MLA_TABLE_VIEWS_WIDTH" id="MLA_TABLE_VIEWS_WIDTH"> </a><div class="element clickable constant MLA_TABLE_VIEWS_WIDTH" data-toggle="collapse" data-target=".MLA_TABLE_VIEWS_WIDTH .collapse">
1450
+ <h2>Provides a unique name for the Media/Assistant submenu table views width option</h2>
1451
  <pre>MLA_TABLE_VIEWS_WIDTH </pre>
1452
  <div class="labels"></div>
1453
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1489
  <div class="row"><footer class="span12">
1490
  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>
1491
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1492
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
1493
  </div>
1494
  </body>
1495
  </html>
phpDocs/classes/MLASettings.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -1169,7 +1172,7 @@ render => rendering function for tab messages and content. Usage:
1169
  <div class="row"><footer class="span12">
1170
  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>
1171
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1172
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
1173
  </div>
1174
  </body>
1175
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
1172
  <div class="row"><footer class="span12">
1173
  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>
1174
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1175
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
1176
  </div>
1177
  </body>
1178
  </html>
phpDocs/classes/MLAShortcodes.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -203,6 +206,8 @@ from the return array. If 'include' is non-empty, 'exclude' is ignored.</p>
203
 
204
  <p>minimum - minimum number of attachments a term must have to be included.</p>
205
 
 
 
206
  <p>number - maximum number of term objects to return. Terms are ordered by count,
207
  descending and then by term_id before this value is applied.</p>
208
 
@@ -210,6 +215,8 @@ descending and then by term_id before this value is applied.</p>
210
 
211
  <p>order - 'ASC', 'DESC'</p>
212
 
 
 
213
  <p>preserve_case - 'true', 'false' to make orderby case-sensitive.</p>
214
 
215
  <p>limit - final number of term objects to return, for pagination.</p>
@@ -439,7 +446,7 @@ options to customize the hyperlink behind each term.</p></p>
439
  </div>
440
  <h3>Returns</h3>
441
  <div class="subelement response">
442
- <code>string</code>query specification with HTML escape sequences and line breaks removed</div>
443
  </div></div>
444
  </div>
445
  <a name="_sanitize_query_specification" id="_sanitize_query_specification"></a><div class="element clickable method private _sanitize_query_specification" data-toggle="collapse" data-target="._sanitize_query_specification .collapse">
@@ -568,7 +575,7 @@ any further logic required to translate those values is contained in the filter.
568
  <div class="row"><footer class="span12">
569
  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>
570
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
571
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
572
  </div>
573
  </body>
574
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
206
 
207
  <p>minimum - minimum number of attachments a term must have to be included.</p>
208
 
209
+ <p>no_count - true to to suppress count of attachments per term else false</p>
210
+
211
  <p>number - maximum number of term objects to return. Terms are ordered by count,
212
  descending and then by term_id before this value is applied.</p>
213
 
215
 
216
  <p>order - 'ASC', 'DESC'</p>
217
 
218
+ <p>no_orderby - true to suppress ALL sorting clauses else false</p>
219
+
220
  <p>preserve_case - 'true', 'false' to make orderby case-sensitive.</p>
221
 
222
  <p>limit - final number of term objects to return, for pagination.</p>
446
  </div>
447
  <h3>Returns</h3>
448
  <div class="subelement response">
449
+ <code>string</code>parameter with brackets, braces, substitution parameters and templates processed</div>
450
  </div></div>
451
  </div>
452
  <a name="_sanitize_query_specification" id="_sanitize_query_specification"></a><div class="element clickable method private _sanitize_query_specification" data-toggle="collapse" data-target="._sanitize_query_specification .collapse">
575
  <div class="row"><footer class="span12">
576
  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>
577
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
578
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
579
  </div>
580
  </body>
581
  </html>
phpDocs/classes/MLATest.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -162,7 +165,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
162
  <div class="row"><footer class="span12">
163
  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>
164
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
165
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
166
  </div>
167
  </body>
168
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
165
  <div class="row"><footer class="span12">
166
  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>
167
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
168
+ generated on 2014-03-27T17:01:49-07:00.<br></footer></div>
169
  </div>
170
  </body>
171
  </html>
phpDocs/classes/MLATextWidget.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -175,7 +178,7 @@
175
  <div class="row"><footer class="span12">
176
  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>
177
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
178
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
179
  </div>
180
  </body>
181
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
178
  <div class="row"><footer class="span12">
179
  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>
180
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
181
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
182
  </div>
183
  </body>
184
  </html>
phpDocs/classes/MLA_Checklist_Walker.html ADDED
@@ -0,0 +1,169 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 » \MLA_Checklist_Walker</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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
+ </li>
26
+ <li class="dropdown" id="charts-menu">
27
+ <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
28
+ 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>
29
+ </li>
30
+ <li class="dropdown" id="reports-menu">
31
+ <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
32
+ Reports <b class="caret"></b></a><ul class="dropdown-menu">
33
+ <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
34
+ <span class="label label-info">0</span></a></li>
35
+ <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
36
+ <ul><li>todo 
37
+ <span class="label label-info">1</span>
38
+ </li></ul></a></li>
39
+ <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
40
+ <span class="label label-info">0</span></a></li>
41
+ </ul>
42
+ </li>
43
+ </ul></div>
44
+ </div></div>
45
+ <div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
46
+ </div>
47
+ <div id="___" class="container">
48
+ <noscript><div class="alert alert-warning">
49
+ Javascript is disabled; several features are only available
50
+ if Javascript is enabled.
51
+ </div></noscript>
52
+ <div class="row">
53
+ <div class="span4">
54
+ <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">
55
+ <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>
56
+ </div>
57
+ <ul class="side-nav nav nav-list">
58
+ <li class="nav-header">
59
+ <i class="icon-custom icon-method"></i> Methods</li>
60
+ <li class="method public "><a href="#end_el" title="end_el :: Ends the element output, if needed."><span class="description">Ends the element output, if needed.</span><pre>end_el()</pre></a></li>
61
+ <li class="method public "><a href="#start_el" title="start_el :: Start the element output."><span class="description">Start the element output.</span><pre>start_el()</pre></a></li>
62
+ </ul>
63
+ </div>
64
+ <div class="span8">
65
+ <a name="%5CMLA_Checklist_Walker" id="\MLA_Checklist_Walker"></a><ul class="breadcrumb">
66
+ <li>
67
+ <a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span>
68
+ </li>
69
+ <li><a href="../namespaces/global.html">global</a></li>
70
+ <li class="active">
71
+ <span class="divider">\</span><a href="../classes/MLA_Checklist_Walker.html">MLA_Checklist_Walker</a>
72
+ </li>
73
+ </ul>
74
+ <div href="../classes/MLA_Checklist_Walker.html" class="element class">
75
+ <p class="short_description">Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output</p>
76
+ <div class="details">
77
+ <p class="long_description"><p>This walker is used to build the meta boxes for flat taxonomies, e.g., Tags, Att. Tags.
78
+ Class Walker_Category is defined in /wp-includes/category-template.php.
79
+ Class Walker is defined in /wp-includes/class-wp-walker.php.</p></p>
80
+ <table class="table table-bordered">
81
+ <tr>
82
+ <th>package</th>
83
+ <td><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></td>
84
+ </tr>
85
+ <tr>
86
+ <th>since</th>
87
+ <td>1.80</td>
88
+ </tr>
89
+ </table>
90
+ <h3>
91
+ <i class="icon-custom icon-method"></i> Methods</h3>
92
+ <a name="end_el" id="end_el"></a><div class="element clickable method public end_el" data-toggle="collapse" data-target=".end_el .collapse">
93
+ <h2>Ends the element output, if needed.</h2>
94
+ <pre>end_el(string $output, object $category, int $depth, array $args) </pre>
95
+ <div class="labels"></div>
96
+ <div class="row collapse"><div class="detail-description">
97
+ <p class="long_description"></p>
98
+ <table class="table table-bordered">
99
+ <tr>
100
+ <th>see</th>
101
+ <td>\global\Walker::end_el()</td>
102
+ </tr>
103
+ <tr>
104
+ <th>since</th>
105
+ <td>1.80</td>
106
+ </tr>
107
+ </table>
108
+ <h3>Parameters</h3>
109
+ <div class="subelement argument">
110
+ <h4>$output</h4>
111
+ <code>string</code><p>Passed by reference. Used to append additional content.</p></div>
112
+ <div class="subelement argument">
113
+ <h4>$category</h4>
114
+ <code>object</code><p>The current term object.</p></div>
115
+ <div class="subelement argument">
116
+ <h4>$depth</h4>
117
+ <code>int</code><p>Depth of the term in reference to parents. Default 0.</p></div>
118
+ <div class="subelement argument">
119
+ <h4>$args</h4>
120
+ <code>array</code><p>An array of arguments. @see wp_terms_checklist()</p>
121
+ </div>
122
+ </div></div>
123
+ </div>
124
+ <a name="start_el" id="start_el"></a><div class="element clickable method public start_el" data-toggle="collapse" data-target=".start_el .collapse">
125
+ <h2>Start the element output.</h2>
126
+ <pre>start_el(string $output, object $taxonomy_object, int $depth, array $args, int $id) </pre>
127
+ <div class="labels"></div>
128
+ <div class="row collapse"><div class="detail-description">
129
+ <p class="long_description"></p>
130
+ <table class="table table-bordered">
131
+ <tr>
132
+ <th>see</th>
133
+ <td>\global\Walker::start_el()</td>
134
+ </tr>
135
+ <tr>
136
+ <th>since</th>
137
+ <td>1.80</td>
138
+ </tr>
139
+ </table>
140
+ <h3>Parameters</h3>
141
+ <div class="subelement argument">
142
+ <h4>$output</h4>
143
+ <code>string</code><p>Passed by reference. Used to append additional content.</p></div>
144
+ <div class="subelement argument">
145
+ <h4>$taxonomy_object</h4>
146
+ <code>object</code><p>Taxonomy data object.</p></div>
147
+ <div class="subelement argument">
148
+ <h4>$depth</h4>
149
+ <code>int</code><p>Depth of category in reference to parents. Default 0.</p></div>
150
+ <div class="subelement argument">
151
+ <h4>$args</h4>
152
+ <code>array</code><p>An array of arguments. @see wp_list_categories()</p>
153
+ </div>
154
+ <div class="subelement argument">
155
+ <h4>$id</h4>
156
+ <code>int</code><p>ID of the current category.</p></div>
157
+ </div></div>
158
+ </div>
159
+ </div>
160
+ </div>
161
+ </div>
162
+ </div>
163
+ <div class="row"><footer class="span12">
164
+ 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>
165
+ Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
166
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
167
+ </div>
168
+ </body>
169
+ </html>
phpDocs/classes/MLA_List_Table.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -1110,7 +1113,7 @@ MLA_List_Table::mla_admin_init_action.</p></p>
1110
  <div class="row"><footer class="span12">
1111
  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>
1112
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1113
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
1114
  </div>
1115
  </body>
1116
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
1113
  <div class="row"><footer class="span12">
1114
  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>
1115
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1116
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
1117
  </div>
1118
  </body>
1119
  </html>
phpDocs/classes/MLA_Upload_List_Table.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -733,7 +736,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
733
  <div class="row"><footer class="span12">
734
  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>
735
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
736
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
737
  </div>
738
  </body>
739
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
736
  <div class="row"><footer class="span12">
737
  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>
738
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
739
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
740
  </div>
741
  </body>
742
  </html>
phpDocs/classes/MLA_Upload_Optional_List_Table.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -551,7 +554,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
551
  <div class="row"><footer class="span12">
552
  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>
553
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
554
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
555
  </div>
556
  </body>
557
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
554
  <div class="row"><footer class="span12">
555
  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>
556
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
557
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
558
  </div>
559
  </body>
560
  </html>
phpDocs/classes/MLA_View_List_Table.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -630,7 +633,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
630
  <div class="row"><footer class="span12">
631
  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>
632
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
633
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
634
  </div>
635
  </body>
636
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
633
  <div class="row"><footer class="span12">
634
  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>
635
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
636
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
637
  </div>
638
  </body>
639
  </html>
phpDocs/deprecated.html CHANGED
@@ -18,7 +18,10 @@
18
  <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
19
  <li class="dropdown">
20
  <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
21
- API Documentation <b class="caret"></b></a><ul class="dropdown-menu"></ul>
 
 
 
22
  </li>
23
  <li class="dropdown" id="charts-menu">
24
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
@@ -64,7 +67,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 2014-02-11T20:56:42-08:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
67
  <div class="row"><footer class="span12">
68
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
69
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
70
+ generated on 2014-03-27T17:01:49-07:00.<br></footer></div>
71
  </div>
72
  </body>
73
  </html>
phpDocs/errors.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -78,12 +81,22 @@
78
  <div class="package-contents"></div>
79
  <div class="package-contents"></div>
80
  <div class="package-contents"></div>
 
 
 
 
 
 
 
 
 
 
81
  </div>
82
  </div>
83
  <div class="row"><footer class="span12">
84
  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>
85
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
86
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
87
  </div>
88
  </body>
89
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
81
  <div class="package-contents"></div>
82
  <div class="package-contents"></div>
83
  <div class="package-contents"></div>
84
+ <div class="package-contents"></div>
85
+ <div class="package-contents"></div>
86
+ <div class="package-contents"></div>
87
+ <div class="package-contents"></div>
88
+ <div class="package-contents"></div>
89
+ <div class="package-contents"></div>
90
+ <div class="package-contents"></div>
91
+ <div class="package-contents"></div>
92
+ <div class="package-contents"></div>
93
+ <div class="package-contents"></div>
94
  </div>
95
  </div>
96
  <div class="row"><footer class="span12">
97
  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>
98
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
99
+ generated on 2014-03-27T17:01:49-07:00.<br></footer></div>
100
  </div>
101
  </body>
102
  </html>
phpDocs/graph_class.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -61,7 +64,7 @@
61
  </script><div class="row"><footer class="span12">
62
  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>
63
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
64
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
65
  </div>
66
  </body>
67
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
64
  </script><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 2014-03-27T17:01:49-07:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
phpDocs/index.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -83,7 +86,7 @@
83
  <div class="row"><footer class="span12">
84
  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>
85
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
86
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
87
  </div>
88
  </body>
89
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
86
  <div class="row"><footer class="span12">
87
  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>
88
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
89
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
90
  </div>
91
  </body>
92
  </html>
phpDocs/markers.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -76,7 +79,7 @@
76
  </tr>
77
  <tr>
78
  <td>todo</td>
79
- <td>3068</td>
80
  <td>encode the rest</td>
81
  </tr>
82
  </table></div>
@@ -86,7 +89,7 @@
86
  <div class="row"><footer class="span12">
87
  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>
88
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
89
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
90
  </div>
91
  </body>
92
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
79
  </tr>
80
  <tr>
81
  <td>todo</td>
82
+ <td>3244</td>
83
  <td>encode the rest</td>
84
  </tr>
85
  </table></div>
89
  <div class="row"><footer class="span12">
90
  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>
91
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
92
+ generated on 2014-03-27T17:01:49-07:00.<br></footer></div>
93
  </div>
94
  </body>
95
  </html>
phpDocs/namespaces/global.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -69,6 +72,29 @@
69
  <div class="namespace-indent">
70
  <h3>
71
  <i class="icon-custom icon-function"></i> Functions</h3>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
72
  <a name="mla_name_conflict_reporting_action" id="mla_name_conflict_reporting_action"></a><div class="element clickable function mla_name_conflict_reporting_action" data-toggle="collapse" data-target=".mla_name_conflict_reporting_action .collapse">
73
  <h2>Displays name conflict error messages at the top of the Dashboard</h2>
74
  <pre>mla_name_conflict_reporting_action() </pre>
@@ -81,6 +107,21 @@
81
  </tr></table>
82
  </div></div>
83
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  <a name="mla_plugin_loader_reporting_action" id="mla_plugin_loader_reporting_action"></a><div class="element clickable function mla_plugin_loader_reporting_action" data-toggle="collapse" data-target=".mla_plugin_loader_reporting_action .collapse">
85
  <h2>Displays version conflict error messages at the top of the Dashboard</h2>
86
  <pre>mla_plugin_loader_reporting_action() </pre>
@@ -93,6 +134,34 @@
93
  </tr></table>
94
  </div></div>
95
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
  <h3>
97
  <i class="icon-custom icon-class"></i> Classes and interfaces</h3>
98
  <a name="MLA" id="MLA"></a><div class="element ajax clickable class" href="../classes/MLA.html">
@@ -176,6 +245,13 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
176
  <div class="details collapse"></div>
177
  <a href="../classes/MLATextWidget.html" class="more">« More »</a>
178
  </div>
 
 
 
 
 
 
 
179
  <a name="MLA_List_Table" id="MLA_List_Table"></a><div class="element ajax clickable class" href="../classes/MLA_List_Table.html">
180
  <h1>MLA_List_Table<a href="../classes/MLA_List_Table.html">¶</a>
181
  </h1>
@@ -237,7 +313,7 @@ searchable database of exension/type associations for the "Uploads" admin settin
237
  <div class="row"><footer class="span12">
238
  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>
239
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
240
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
241
  </div>
242
  </body>
243
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
72
  <div class="namespace-indent">
73
  <h3>
74
  <i class="icon-custom icon-function"></i> Functions</h3>
75
+ <a name="mla_custom_terms_list" id="mla_custom_terms_list"></a><div class="element clickable function mla_custom_terms_list" data-toggle="collapse" data-target=".mla_custom_terms_list .collapse">
76
+ <h2>Generate a list of taxonomy- and term-specific links to the page of your choice,
77
+ listing the terms assigned to a specific post or Media Library item.</h2>
78
+ <pre>mla_custom_terms_list(integer $ID, array $attr) : void</pre>
79
+ <div class="labels"></div>
80
+ <div class="row collapse"><div class="detail-description">
81
+ <p class="long_description"></p>
82
+ <h3>Parameters</h3>
83
+ <div class="subelement argument">
84
+ <h4>$ID</h4>
85
+ <code>integer</code><p>ID of the post/page to generate terms for</p>
86
+ </div>
87
+ <div class="subelement argument">
88
+ <h4>$attr</h4>
89
+ <code>array</code><p>Attributes of the function: site_url, page_url, taxonomy</p></div>
90
+ </div></div>
91
+ </div>
92
+ <a name="mla_insert_social_tags" id="mla_insert_social_tags"></a><div class="element clickable function mla_insert_social_tags" data-toggle="collapse" data-target=".mla_insert_social_tags .collapse">
93
+ <h2>Insert thumbnail image tags for Facebook, Twitter, etc.</h2>
94
+ <pre>mla_insert_social_tags() : void</pre>
95
+ <div class="labels"></div>
96
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
97
+ </div>
98
  <a name="mla_name_conflict_reporting_action" id="mla_name_conflict_reporting_action"></a><div class="element clickable function mla_name_conflict_reporting_action" data-toggle="collapse" data-target=".mla_name_conflict_reporting_action .collapse">
99
  <h2>Displays name conflict error messages at the top of the Dashboard</h2>
100
  <pre>mla_name_conflict_reporting_action() </pre>
107
  </tr></table>
108
  </div></div>
109
  </div>
110
+ <a name="mla_paginated_term_gallery" id="mla_paginated_term_gallery"></a><div class="element clickable function mla_paginated_term_gallery" data-toggle="collapse" data-target=".mla_paginated_term_gallery .collapse">
111
+ <h2>Generate a taxonomy- and term-specific [mla_gallery], limited by current_page and posts_per_page</h2>
112
+ <pre>mla_paginated_term_gallery(array $attr) : integer</pre>
113
+ <div class="labels"></div>
114
+ <div class="row collapse"><div class="detail-description">
115
+ <p class="long_description"><p>This function uses $wpdb functions for efficiency.</p></p>
116
+ <h3>Parameters</h3>
117
+ <div class="subelement argument">
118
+ <h4>$attr</h4>
119
+ <code>array</code><p>Attributes of the function: taxonomy, term, post_mime_type, posts_per_page, current_page</p></div>
120
+ <h3>Returns</h3>
121
+ <div class="subelement response">
122
+ <code>integer</code>number of posts matching taxonomy & term, before LIMIT. echoes HTML <h3>, <p> and <a> tags</div>
123
+ </div></div>
124
+ </div>
125
  <a name="mla_plugin_loader_reporting_action" id="mla_plugin_loader_reporting_action"></a><div class="element clickable function mla_plugin_loader_reporting_action" data-toggle="collapse" data-target=".mla_plugin_loader_reporting_action .collapse">
126
  <h2>Displays version conflict error messages at the top of the Dashboard</h2>
127
  <pre>mla_plugin_loader_reporting_action() </pre>
134
  </tr></table>
135
  </div></div>
136
  </div>
137
+ <a name="mla_tag_gallery" id="mla_tag_gallery"></a><div class="element clickable function mla_tag_gallery" data-toggle="collapse" data-target=".mla_tag_gallery .collapse">
138
+ <h2>Generate a taxonomy- and term-specific [mla_gallery]</h2>
139
+ <pre>mla_tag_gallery(array $attr) : void</pre>
140
+ <div class="labels"></div>
141
+ <div class="row collapse"><div class="detail-description">
142
+ <p class="long_description"></p>
143
+ <h3>Parameters</h3>
144
+ <div class="subelement argument">
145
+ <h4>$attr</h4>
146
+ <code>array</code><p>Attributes of the function: taxonomy, term</p></div>
147
+ </div></div>
148
+ </div>
149
+ <a name="mla_taxonomy_terms_list" id="mla_taxonomy_terms_list"></a><div class="element clickable function mla_taxonomy_terms_list" data-toggle="collapse" data-target=".mla_taxonomy_terms_list .collapse">
150
+ <h2>Generate a list of taxonomy- and term-specific links to the page of your choice.</h2>
151
+ <pre>mla_taxonomy_terms_list(array $attr) : string</pre>
152
+ <div class="labels"></div>
153
+ <div class="row collapse"><div class="detail-description">
154
+ <p class="long_description"><p>Best used with the Collapse-O-Matic plugin, which uses the [expand] shortcode to
155
+ display an "accordian-style" list.</p></p>
156
+ <h3>Parameters</h3>
157
+ <div class="subelement argument">
158
+ <h4>$attr</h4>
159
+ <code>array</code><p>Attributes of the function: taxonomy</p></div>
160
+ <h3>Returns</h3>
161
+ <div class="subelement response">
162
+ <code>string</code>HTML <h3>, <p> and <a> tags</div>
163
+ </div></div>
164
+ </div>
165
  <h3>
166
  <i class="icon-custom icon-class"></i> Classes and interfaces</h3>
167
  <a name="MLA" id="MLA"></a><div class="element ajax clickable class" href="../classes/MLA.html">
245
  <div class="details collapse"></div>
246
  <a href="../classes/MLATextWidget.html" class="more">« More »</a>
247
  </div>
248
+ <a name="MLA_Checklist_Walker" id="MLA_Checklist_Walker"></a><div class="element ajax clickable class" href="../classes/MLA_Checklist_Walker.html">
249
+ <h1>MLA_Checklist_Walker<a href="../classes/MLA_Checklist_Walker.html">¶</a>
250
+ </h1>
251
+ <p class="short_description">Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output</p>
252
+ <div class="details collapse"></div>
253
+ <a href="../classes/MLA_Checklist_Walker.html" class="more">« More »</a>
254
+ </div>
255
  <a name="MLA_List_Table" id="MLA_List_Table"></a><div class="element ajax clickable class" href="../classes/MLA_List_Table.html">
256
  <h1>MLA_List_Table<a href="../classes/MLA_List_Table.html">¶</a>
257
  </h1>
313
  <div class="row"><footer class="span12">
314
  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>
315
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
316
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
317
  </div>
318
  </body>
319
  </html>
phpDocs/packages/Media Library Assistant.MLA.Child.Theme.html ADDED
@@ -0,0 +1,162 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 » Media Library Assistant\MLA\Child\Theme</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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
+ </li>
26
+ <li class="dropdown" id="charts-menu">
27
+ <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
28
+ 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>
29
+ </li>
30
+ <li class="dropdown" id="reports-menu">
31
+ <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
32
+ Reports <b class="caret"></b></a><ul class="dropdown-menu">
33
+ <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
34
+ <span class="label label-info">0</span></a></li>
35
+ <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
36
+ <ul><li>todo 
37
+ <span class="label label-info">1</span>
38
+ </li></ul></a></li>
39
+ <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
40
+ <span class="label label-info">0</span></a></li>
41
+ </ul>
42
+ </li>
43
+ </ul></div>
44
+ </div></div>
45
+ <div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
46
+ </div>
47
+ <div id="___" class="container">
48
+ <noscript><div class="alert alert-warning">
49
+ Javascript is disabled; several features are only available
50
+ if Javascript is enabled.
51
+ </div></noscript>
52
+ <div class="row">
53
+ <div class="span4">
54
+ <div class="btn-group view pull-right" data-toggle="buttons-radio">
55
+ <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>
56
+ </div>
57
+ <ul class="side-nav nav nav-list">
58
+ <li class="nav-header">
59
+ <i class="icon-map-marker"></i> Packages</li>
60
+ <li>
61
+ <a href="../packages/Media%20Library%20Assistant.MLA.Child.Theme.html" title="Theme"><i class="icon-folder-open"></i>Theme</a><ul class="nav nav-list nav-packages"></ul>
62
+ </li>
63
+ <li class="nav-header">
64
+ <i class="icon-custom icon-function"></i> Functions</li>
65
+ <li class="function "><a href="#mla_custom_terms_list" title="mla_custom_terms_list :: Generate a list of taxonomy- and term-specific links to the page of your choice,
66
+ listing the terms assigned to a specific post or Media Library item."><span class="description">Generate a list of taxonomy- and term-specific links to the page of your choice,
67
+ listing the terms assigned to a specific post or Media Library item.</span><pre>mla_custom_terms_list</pre></a></li>
68
+ <li class="function "><a href="#mla_insert_social_tags" title="mla_insert_social_tags :: Insert thumbnail image tags for Facebook, Twitter, etc."><span class="description">Insert thumbnail image tags for Facebook, Twitter, etc.</span><pre>mla_insert_social_tags</pre></a></li>
69
+ <li class="function "><a href="#mla_paginated_term_gallery" title="mla_paginated_term_gallery :: Generate a taxonomy- and term-specific [mla_gallery], limited by current_page and posts_per_page"><span class="description">Generate a taxonomy- and term-specific [mla_gallery], limited by current_page and posts_per_page</span><pre>mla_paginated_term_gallery</pre></a></li>
70
+ <li class="function "><a href="#mla_tag_gallery" title="mla_tag_gallery :: Generate a taxonomy- and term-specific [mla_gallery]"><span class="description">Generate a taxonomy- and term-specific [mla_gallery]</span><pre>mla_tag_gallery</pre></a></li>
71
+ <li class="function "><a href="#mla_taxonomy_terms_list" title="mla_taxonomy_terms_list :: Generate a list of taxonomy- and term-specific links to the page of your choice."><span class="description">Generate a list of taxonomy- and term-specific links to the page of your choice.</span><pre>mla_taxonomy_terms_list</pre></a></li>
72
+ </ul>
73
+ </div>
74
+ <div class="span8 package-contents">
75
+ <ul class="breadcrumb">
76
+ <li>
77
+ <a href="../index.html"><i class="icon-folder-open"></i></a><span class="divider">\</span>
78
+ </li>
79
+ <li><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></li>
80
+ <span class="divider">\</span><li><a href="../packages/Media%20Library%20Assistant.MLA.html">MLA</a></li>
81
+ <span class="divider">\</span><li><a href="../packages/Media%20Library%20Assistant.MLA.Child.html">Child</a></li>
82
+ <span class="divider">\</span><li class="active"><a href="../packages/Media%20Library%20Assistant.MLA.Child.Theme.html">Theme</a></li>
83
+ </ul>
84
+ <div class="package-indent">
85
+ <h3>
86
+ <i class="icon-custom icon-function"></i> Functions</h3>
87
+ <a name="mla_custom_terms_list" id="mla_custom_terms_list"></a><div class="element clickable function mla_custom_terms_list" data-toggle="collapse" data-target=".mla_custom_terms_list .collapse">
88
+ <h2>Generate a list of taxonomy- and term-specific links to the page of your choice,
89
+ listing the terms assigned to a specific post or Media Library item.</h2>
90
+ <pre>mla_custom_terms_list(integer $ID, array $attr) : void</pre>
91
+ <div class="labels"></div>
92
+ <div class="row collapse"><div class="detail-description">
93
+ <p class="long_description"></p>
94
+ <h3>Parameters</h3>
95
+ <div class="subelement argument">
96
+ <h4>$ID</h4>
97
+ <code>integer</code><p>ID of the post/page to generate terms for</p>
98
+ </div>
99
+ <div class="subelement argument">
100
+ <h4>$attr</h4>
101
+ <code>array</code><p>Attributes of the function: site_url, page_url, taxonomy</p></div>
102
+ </div></div>
103
+ </div>
104
+ <a name="mla_insert_social_tags" id="mla_insert_social_tags"></a><div class="element clickable function mla_insert_social_tags" data-toggle="collapse" data-target=".mla_insert_social_tags .collapse">
105
+ <h2>Insert thumbnail image tags for Facebook, Twitter, etc.</h2>
106
+ <pre>mla_insert_social_tags() : void</pre>
107
+ <div class="labels"></div>
108
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
109
+ </div>
110
+ <a name="mla_paginated_term_gallery" id="mla_paginated_term_gallery"></a><div class="element clickable function mla_paginated_term_gallery" data-toggle="collapse" data-target=".mla_paginated_term_gallery .collapse">
111
+ <h2>Generate a taxonomy- and term-specific [mla_gallery], limited by current_page and posts_per_page</h2>
112
+ <pre>mla_paginated_term_gallery(array $attr) : integer</pre>
113
+ <div class="labels"></div>
114
+ <div class="row collapse"><div class="detail-description">
115
+ <p class="long_description"><p>This function uses $wpdb functions for efficiency.</p></p>
116
+ <h3>Parameters</h3>
117
+ <div class="subelement argument">
118
+ <h4>$attr</h4>
119
+ <code>array</code><p>Attributes of the function: taxonomy, term, post_mime_type, posts_per_page, current_page</p></div>
120
+ <h3>Returns</h3>
121
+ <div class="subelement response">
122
+ <code>integer</code>number of posts matching taxonomy & term, before LIMIT. echoes HTML <h3>, <p> and <a> tags</div>
123
+ </div></div>
124
+ </div>
125
+ <a name="mla_tag_gallery" id="mla_tag_gallery"></a><div class="element clickable function mla_tag_gallery" data-toggle="collapse" data-target=".mla_tag_gallery .collapse">
126
+ <h2>Generate a taxonomy- and term-specific [mla_gallery]</h2>
127
+ <pre>mla_tag_gallery(array $attr) : void</pre>
128
+ <div class="labels"></div>
129
+ <div class="row collapse"><div class="detail-description">
130
+ <p class="long_description"></p>
131
+ <h3>Parameters</h3>
132
+ <div class="subelement argument">
133
+ <h4>$attr</h4>
134
+ <code>array</code><p>Attributes of the function: taxonomy, term</p></div>
135
+ </div></div>
136
+ </div>
137
+ <a name="mla_taxonomy_terms_list" id="mla_taxonomy_terms_list"></a><div class="element clickable function mla_taxonomy_terms_list" data-toggle="collapse" data-target=".mla_taxonomy_terms_list .collapse">
138
+ <h2>Generate a list of taxonomy- and term-specific links to the page of your choice.</h2>
139
+ <pre>mla_taxonomy_terms_list(array $attr) : string</pre>
140
+ <div class="labels"></div>
141
+ <div class="row collapse"><div class="detail-description">
142
+ <p class="long_description"><p>Best used with the Collapse-O-Matic plugin, which uses the [expand] shortcode to
143
+ display an "accordian-style" list.</p></p>
144
+ <h3>Parameters</h3>
145
+ <div class="subelement argument">
146
+ <h4>$attr</h4>
147
+ <code>array</code><p>Attributes of the function: taxonomy</p></div>
148
+ <h3>Returns</h3>
149
+ <div class="subelement response">
150
+ <code>string</code>HTML <h3>, <p> and <a> tags</div>
151
+ </div></div>
152
+ </div>
153
+ </div>
154
+ </div>
155
+ </div>
156
+ <div class="row"><footer class="span12">
157
+ 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>
158
+ Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
159
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
160
+ </div>
161
+ </body>
162
+ </html>
phpDocs/packages/Media Library Assistant.MLA.Child.html ADDED
@@ -0,0 +1,165 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 » Media Library Assistant\MLA\Child</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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
+ </li>
26
+ <li class="dropdown" id="charts-menu">
27
+ <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
28
+ 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>
29
+ </li>
30
+ <li class="dropdown" id="reports-menu">
31
+ <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
32
+ Reports <b class="caret"></b></a><ul class="dropdown-menu">
33
+ <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
34
+ <span class="label label-info">0</span></a></li>
35
+ <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
36
+ <ul><li>todo 
37
+ <span class="label label-info">1</span>
38
+ </li></ul></a></li>
39
+ <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
40
+ <span class="label label-info">0</span></a></li>
41
+ </ul>
42
+ </li>
43
+ </ul></div>
44
+ </div></div>
45
+ <div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
46
+ </div>
47
+ <div id="___" class="container">
48
+ <noscript><div class="alert alert-warning">
49
+ Javascript is disabled; several features are only available
50
+ if Javascript is enabled.
51
+ </div></noscript>
52
+ <div class="row">
53
+ <div class="span4">
54
+ <div class="btn-group view pull-right" data-toggle="buttons-radio">
55
+ <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>
56
+ </div>
57
+ <ul class="side-nav nav nav-list">
58
+ <li class="nav-header">
59
+ <i class="icon-map-marker"></i> Packages</li>
60
+ <li>
61
+ <span class="empty-package"><i class="icon-folder-close"></i>Child</span><ul class="nav nav-list nav-packages"><li>
62
+ <a href="../packages/Media%20Library%20Assistant.MLA.Child.Theme.html" title="Theme"><i class="icon-folder-open"></i>Theme</a><ul class="nav nav-list nav-packages"></ul>
63
+ </li></ul>
64
+ </li>
65
+ </ul>
66
+ </div>
67
+ <div class="span8 package-contents">
68
+ <ul class="breadcrumb">
69
+ <li>
70
+ <a href="../index.html"><i class="icon-folder-open"></i></a><span class="divider">\</span>
71
+ </li>
72
+ <li><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></li>
73
+ <span class="divider">\</span><li><a href="../packages/Media%20Library%20Assistant.MLA.html">MLA</a></li>
74
+ <span class="divider">\</span><li class="active"><a href="../packages/Media%20Library%20Assistant.MLA.Child.html">Child</a></li>
75
+ </ul>
76
+ <div class="package-indent">
77
+ <ul class="breadcrumb">
78
+ <li>
79
+ <a href="../index.html"><i class="icon-folder-open"></i></a><span class="divider">\</span>
80
+ </li>
81
+ <li><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></li>
82
+ <span class="divider">\</span><li><a href="../packages/Media%20Library%20Assistant.MLA.html">MLA</a></li>
83
+ <span class="divider">\</span><li><a href="../packages/Media%20Library%20Assistant.MLA.Child.html">Child</a></li>
84
+ <span class="divider">\</span><li class="active"><a href="../packages/Media%20Library%20Assistant.MLA.Child.Theme.html">Theme</a></li>
85
+ </ul>
86
+ <div class="package-indent">
87
+ <h3>
88
+ <i class="icon-custom icon-function"></i> Functions</h3>
89
+ <a name="mla_custom_terms_list" id="mla_custom_terms_list"></a><div class="element clickable function mla_custom_terms_list" data-toggle="collapse" data-target=".mla_custom_terms_list .collapse">
90
+ <h2>Generate a list of taxonomy- and term-specific links to the page of your choice,
91
+ listing the terms assigned to a specific post or Media Library item.</h2>
92
+ <pre>mla_custom_terms_list(integer $ID, array $attr) : void</pre>
93
+ <div class="labels"></div>
94
+ <div class="row collapse"><div class="detail-description">
95
+ <p class="long_description"></p>
96
+ <h3>Parameters</h3>
97
+ <div class="subelement argument">
98
+ <h4>$ID</h4>
99
+ <code>integer</code><p>ID of the post/page to generate terms for</p>
100
+ </div>
101
+ <div class="subelement argument">
102
+ <h4>$attr</h4>
103
+ <code>array</code><p>Attributes of the function: site_url, page_url, taxonomy</p></div>
104
+ </div></div>
105
+ </div>
106
+ <a name="mla_insert_social_tags" id="mla_insert_social_tags"></a><div class="element clickable function mla_insert_social_tags" data-toggle="collapse" data-target=".mla_insert_social_tags .collapse">
107
+ <h2>Insert thumbnail image tags for Facebook, Twitter, etc.</h2>
108
+ <pre>mla_insert_social_tags() : void</pre>
109
+ <div class="labels"></div>
110
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
111
+ </div>
112
+ <a name="mla_paginated_term_gallery" id="mla_paginated_term_gallery"></a><div class="element clickable function mla_paginated_term_gallery" data-toggle="collapse" data-target=".mla_paginated_term_gallery .collapse">
113
+ <h2>Generate a taxonomy- and term-specific [mla_gallery], limited by current_page and posts_per_page</h2>
114
+ <pre>mla_paginated_term_gallery(array $attr) : integer</pre>
115
+ <div class="labels"></div>
116
+ <div class="row collapse"><div class="detail-description">
117
+ <p class="long_description"><p>This function uses $wpdb functions for efficiency.</p></p>
118
+ <h3>Parameters</h3>
119
+ <div class="subelement argument">
120
+ <h4>$attr</h4>
121
+ <code>array</code><p>Attributes of the function: taxonomy, term, post_mime_type, posts_per_page, current_page</p></div>
122
+ <h3>Returns</h3>
123
+ <div class="subelement response">
124
+ <code>integer</code>number of posts matching taxonomy & term, before LIMIT. echoes HTML <h3>, <p> and <a> tags</div>
125
+ </div></div>
126
+ </div>
127
+ <a name="mla_tag_gallery" id="mla_tag_gallery"></a><div class="element clickable function mla_tag_gallery" data-toggle="collapse" data-target=".mla_tag_gallery .collapse">
128
+ <h2>Generate a taxonomy- and term-specific [mla_gallery]</h2>
129
+ <pre>mla_tag_gallery(array $attr) : void</pre>
130
+ <div class="labels"></div>
131
+ <div class="row collapse"><div class="detail-description">
132
+ <p class="long_description"></p>
133
+ <h3>Parameters</h3>
134
+ <div class="subelement argument">
135
+ <h4>$attr</h4>
136
+ <code>array</code><p>Attributes of the function: taxonomy, term</p></div>
137
+ </div></div>
138
+ </div>
139
+ <a name="mla_taxonomy_terms_list" id="mla_taxonomy_terms_list"></a><div class="element clickable function mla_taxonomy_terms_list" data-toggle="collapse" data-target=".mla_taxonomy_terms_list .collapse">
140
+ <h2>Generate a list of taxonomy- and term-specific links to the page of your choice.</h2>
141
+ <pre>mla_taxonomy_terms_list(array $attr) : string</pre>
142
+ <div class="labels"></div>
143
+ <div class="row collapse"><div class="detail-description">
144
+ <p class="long_description"><p>Best used with the Collapse-O-Matic plugin, which uses the [expand] shortcode to
145
+ display an "accordian-style" list.</p></p>
146
+ <h3>Parameters</h3>
147
+ <div class="subelement argument">
148
+ <h4>$attr</h4>
149
+ <code>array</code><p>Attributes of the function: taxonomy</p></div>
150
+ <h3>Returns</h3>
151
+ <div class="subelement response">
152
+ <code>string</code>HTML <h3>, <p> and <a> tags</div>
153
+ </div></div>
154
+ </div>
155
+ </div>
156
+ </div>
157
+ </div>
158
+ </div>
159
+ <div class="row"><footer class="span12">
160
+ Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
161
+ Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
162
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
163
+ </div>
164
+ </body>
165
+ </html>
phpDocs/packages/Media Library Assistant.MLA.html ADDED
@@ -0,0 +1,176 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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 » Media Library Assistant\MLA</title>
7
+ <meta name="author" content="Mike van Riel">
8
+ <meta name="description" content="">
9
+ <link href="../css/template.css" rel="stylesheet" media="all">
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
+ </li>
26
+ <li class="dropdown" id="charts-menu">
27
+ <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
28
+ 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>
29
+ </li>
30
+ <li class="dropdown" id="reports-menu">
31
+ <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
32
+ Reports <b class="caret"></b></a><ul class="dropdown-menu">
33
+ <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
34
+ <span class="label label-info">0</span></a></li>
35
+ <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
36
+ <ul><li>todo 
37
+ <span class="label label-info">1</span>
38
+ </li></ul></a></li>
39
+ <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
40
+ <span class="label label-info">0</span></a></li>
41
+ </ul>
42
+ </li>
43
+ </ul></div>
44
+ </div></div>
45
+ <div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
46
+ </div>
47
+ <div id="___" class="container">
48
+ <noscript><div class="alert alert-warning">
49
+ Javascript is disabled; several features are only available
50
+ if Javascript is enabled.
51
+ </div></noscript>
52
+ <div class="row">
53
+ <div class="span4">
54
+ <div class="btn-group view pull-right" data-toggle="buttons-radio">
55
+ <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>
56
+ </div>
57
+ <ul class="side-nav nav nav-list">
58
+ <li class="nav-header">
59
+ <i class="icon-map-marker"></i> Packages</li>
60
+ <li>
61
+ <span class="empty-package"><i class="icon-folder-close"></i>MLA</span><ul class="nav nav-list nav-packages"><li>
62
+ <span class="empty-package"><i class="icon-folder-close"></i>Child</span><ul class="nav nav-list nav-packages"><li>
63
+ <a href="../packages/Media%20Library%20Assistant.MLA.Child.Theme.html" title="Theme"><i class="icon-folder-open"></i>Theme</a><ul class="nav nav-list nav-packages"></ul>
64
+ </li></ul>
65
+ </li></ul>
66
+ </li>
67
+ </ul>
68
+ </div>
69
+ <div class="span8 package-contents">
70
+ <ul class="breadcrumb">
71
+ <li>
72
+ <a href="../index.html"><i class="icon-folder-open"></i></a><span class="divider">\</span>
73
+ </li>
74
+ <li><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></li>
75
+ <span class="divider">\</span><li class="active"><a href="../packages/Media%20Library%20Assistant.MLA.html">MLA</a></li>
76
+ </ul>
77
+ <div class="package-indent">
78
+ <ul class="breadcrumb">
79
+ <li>
80
+ <a href="../index.html"><i class="icon-folder-open"></i></a><span class="divider">\</span>
81
+ </li>
82
+ <li><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></li>
83
+ <span class="divider">\</span><li><a href="../packages/Media%20Library%20Assistant.MLA.html">MLA</a></li>
84
+ <span class="divider">\</span><li class="active"><a href="../packages/Media%20Library%20Assistant.MLA.Child.html">Child</a></li>
85
+ </ul>
86
+ <div class="package-indent">
87
+ <ul class="breadcrumb">
88
+ <li>
89
+ <a href="../index.html"><i class="icon-folder-open"></i></a><span class="divider">\</span>
90
+ </li>
91
+ <li><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></li>
92
+ <span class="divider">\</span><li><a href="../packages/Media%20Library%20Assistant.MLA.html">MLA</a></li>
93
+ <span class="divider">\</span><li><a href="../packages/Media%20Library%20Assistant.MLA.Child.html">Child</a></li>
94
+ <span class="divider">\</span><li class="active"><a href="../packages/Media%20Library%20Assistant.MLA.Child.Theme.html">Theme</a></li>
95
+ </ul>
96
+ <div class="package-indent">
97
+ <h3>
98
+ <i class="icon-custom icon-function"></i> Functions</h3>
99
+ <a name="mla_custom_terms_list" id="mla_custom_terms_list"></a><div class="element clickable function mla_custom_terms_list" data-toggle="collapse" data-target=".mla_custom_terms_list .collapse">
100
+ <h2>Generate a list of taxonomy- and term-specific links to the page of your choice,
101
+ listing the terms assigned to a specific post or Media Library item.</h2>
102
+ <pre>mla_custom_terms_list(integer $ID, array $attr) : void</pre>
103
+ <div class="labels"></div>
104
+ <div class="row collapse"><div class="detail-description">
105
+ <p class="long_description"></p>
106
+ <h3>Parameters</h3>
107
+ <div class="subelement argument">
108
+ <h4>$ID</h4>
109
+ <code>integer</code><p>ID of the post/page to generate terms for</p>
110
+ </div>
111
+ <div class="subelement argument">
112
+ <h4>$attr</h4>
113
+ <code>array</code><p>Attributes of the function: site_url, page_url, taxonomy</p></div>
114
+ </div></div>
115
+ </div>
116
+ <a name="mla_insert_social_tags" id="mla_insert_social_tags"></a><div class="element clickable function mla_insert_social_tags" data-toggle="collapse" data-target=".mla_insert_social_tags .collapse">
117
+ <h2>Insert thumbnail image tags for Facebook, Twitter, etc.</h2>
118
+ <pre>mla_insert_social_tags() : void</pre>
119
+ <div class="labels"></div>
120
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
121
+ </div>
122
+ <a name="mla_paginated_term_gallery" id="mla_paginated_term_gallery"></a><div class="element clickable function mla_paginated_term_gallery" data-toggle="collapse" data-target=".mla_paginated_term_gallery .collapse">
123
+ <h2>Generate a taxonomy- and term-specific [mla_gallery], limited by current_page and posts_per_page</h2>
124
+ <pre>mla_paginated_term_gallery(array $attr) : integer</pre>
125
+ <div class="labels"></div>
126
+ <div class="row collapse"><div class="detail-description">
127
+ <p class="long_description"><p>This function uses $wpdb functions for efficiency.</p></p>
128
+ <h3>Parameters</h3>
129
+ <div class="subelement argument">
130
+ <h4>$attr</h4>
131
+ <code>array</code><p>Attributes of the function: taxonomy, term, post_mime_type, posts_per_page, current_page</p></div>
132
+ <h3>Returns</h3>
133
+ <div class="subelement response">
134
+ <code>integer</code>number of posts matching taxonomy & term, before LIMIT. echoes HTML <h3>, <p> and <a> tags</div>
135
+ </div></div>
136
+ </div>
137
+ <a name="mla_tag_gallery" id="mla_tag_gallery"></a><div class="element clickable function mla_tag_gallery" data-toggle="collapse" data-target=".mla_tag_gallery .collapse">
138
+ <h2>Generate a taxonomy- and term-specific [mla_gallery]</h2>
139
+ <pre>mla_tag_gallery(array $attr) : void</pre>
140
+ <div class="labels"></div>
141
+ <div class="row collapse"><div class="detail-description">
142
+ <p class="long_description"></p>
143
+ <h3>Parameters</h3>
144
+ <div class="subelement argument">
145
+ <h4>$attr</h4>
146
+ <code>array</code><p>Attributes of the function: taxonomy, term</p></div>
147
+ </div></div>
148
+ </div>
149
+ <a name="mla_taxonomy_terms_list" id="mla_taxonomy_terms_list"></a><div class="element clickable function mla_taxonomy_terms_list" data-toggle="collapse" data-target=".mla_taxonomy_terms_list .collapse">
150
+ <h2>Generate a list of taxonomy- and term-specific links to the page of your choice.</h2>
151
+ <pre>mla_taxonomy_terms_list(array $attr) : string</pre>
152
+ <div class="labels"></div>
153
+ <div class="row collapse"><div class="detail-description">
154
+ <p class="long_description"><p>Best used with the Collapse-O-Matic plugin, which uses the [expand] shortcode to
155
+ display an "accordian-style" list.</p></p>
156
+ <h3>Parameters</h3>
157
+ <div class="subelement argument">
158
+ <h4>$attr</h4>
159
+ <code>array</code><p>Attributes of the function: taxonomy</p></div>
160
+ <h3>Returns</h3>
161
+ <div class="subelement response">
162
+ <code>string</code>HTML <h3>, <p> and <a> tags</div>
163
+ </div></div>
164
+ </div>
165
+ </div>
166
+ </div>
167
+ </div>
168
+ </div>
169
+ </div>
170
+ <div class="row"><footer class="span12">
171
+ 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>
172
+ Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
173
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
174
+ </div>
175
+ </body>
176
+ </html>
phpDocs/packages/Media Library Assistant.html CHANGED
@@ -18,7 +18,10 @@
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">
@@ -55,7 +58,13 @@
55
  <li class="nav-header">
56
  <i class="icon-map-marker"></i> Packages</li>
57
  <li>
58
- <a href="../packages/Media%20Library%20Assistant.html" title="Media Library Assistant"><i class="icon-folder-open"></i>Media Library Assistant</a><ul class="nav nav-list nav-packages"></ul>
 
 
 
 
 
 
59
  </li>
60
  <li class="nav-header">
61
  <i class="icon-custom icon-function"></i> Functions</li>
@@ -65,6 +74,7 @@
65
  <i class="icon-custom icon-class"></i> Classes</li>
66
  <li><a href="#MLAData" title="Class MLA (Media Library Assistant) Data provides database and template file access for MLA needs">MLAData</a></li>
67
  <li><a href="#MLAEdit" title="Class MLA (Media Library Assistant) Edit contains meta boxes for the Edit Media (advanced-form-edit.php) screen">MLAEdit</a></li>
 
68
  <li><a href="#MLA_List_Table" title='Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu'>MLA_List_Table</a></li>
69
  <li><a href="#MLA" title="Class MLA (Media Library Assistant) provides several enhancements to the handling
70
  of images and files held in the WordPress Media Library.">MLA</a></li>
@@ -208,6 +218,13 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
208
  <div class="details collapse"></div>
209
  <a href="../classes/MLATextWidget.html" class="more">« More »</a>
210
  </div>
 
 
 
 
 
 
 
211
  <a name="MLA_List_Table" id="MLA_List_Table"></a><div class="element ajax clickable class" href="../classes/MLA_List_Table.html">
212
  <h1>MLA_List_Table<a href="../classes/MLA_List_Table.html">¶</a>
213
  </h1>
@@ -263,13 +280,111 @@ searchable database of exension/type associations for the "Uploads" admin settin
263
  <div class="labels"></div>
264
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
265
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
266
  </div>
267
  </div>
268
  </div>
269
  <div class="row"><footer class="span12">
270
  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>
271
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
272
- generated on 2014-02-11T20:56:42-08:00.<br></footer></div>
273
  </div>
274
  </body>
275
  </html>
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">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
  </li>
26
  <li class="dropdown" id="charts-menu">
27
  <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
58
  <li class="nav-header">
59
  <i class="icon-map-marker"></i> Packages</li>
60
  <li>
61
+ <a href="../packages/Media%20Library%20Assistant.html" title="Media Library Assistant"><i class="icon-folder-open"></i>Media Library Assistant</a><ul class="nav nav-list nav-packages"><li>
62
+ <span class="empty-package"><i class="icon-folder-close"></i>MLA</span><ul class="nav nav-list nav-packages"><li>
63
+ <span class="empty-package"><i class="icon-folder-close"></i>Child</span><ul class="nav nav-list nav-packages"><li>
64
+ <a href="../packages/Media%20Library%20Assistant.MLA.Child.Theme.html" title="Theme"><i class="icon-folder-open"></i>Theme</a><ul class="nav nav-list nav-packages"></ul>
65
+ </li></ul>
66
+ </li></ul>
67
+ </li></ul>
68
  </li>
69
  <li class="nav-header">
70
  <i class="icon-custom icon-function"></i> Functions</li>
74
  <i class="icon-custom icon-class"></i> Classes</li>
75
  <li><a href="#MLAData" title="Class MLA (Media Library Assistant) Data provides database and template file access for MLA needs">MLAData</a></li>
76
  <li><a href="#MLAEdit" title="Class MLA (Media Library Assistant) Edit contains meta boxes for the Edit Media (advanced-form-edit.php) screen">MLAEdit</a></li>
77
+ <li><a href="#MLA_Checklist_Walker" title="Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output">MLA_Checklist_Walker</a></li>
78
  <li><a href="#MLA_List_Table" title='Class MLA (Media Library Assistant) List Table implements the "Assistant" admin submenu'>MLA_List_Table</a></li>
79
  <li><a href="#MLA" title="Class MLA (Media Library Assistant) provides several enhancements to the handling
80
  of images and files held in the WordPress Media Library.">MLA</a></li>
218
  <div class="details collapse"></div>
219
  <a href="../classes/MLATextWidget.html" class="more">« More »</a>
220
  </div>
221
+ <a name="MLA_Checklist_Walker" id="MLA_Checklist_Walker"></a><div class="element ajax clickable class" href="../classes/MLA_Checklist_Walker.html">
222
+ <h1>MLA_Checklist_Walker<a href="../classes/MLA_Checklist_Walker.html">¶</a>
223
+ </h1>
224
+ <p class="short_description">Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output</p>
225
+ <div class="details collapse"></div>
226
+ <a href="../classes/MLA_Checklist_Walker.html" class="more">« More »</a>
227
+ </div>
228
  <a name="MLA_List_Table" id="MLA_List_Table"></a><div class="element ajax clickable class" href="../classes/MLA_List_Table.html">
229
  <h1>MLA_List_Table<a href="../classes/MLA_List_Table.html">¶</a>
230
  </h1>
280
  <div class="labels"></div>
281
  <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
282
  </div>
283
+ <ul class="breadcrumb">
284
+ <li>
285
+ <a href="../index.html"><i class="icon-folder-open"></i></a><span class="divider">\</span>
286
+ </li>
287
+ <li><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></li>
288
+ <span class="divider">\</span><li class="active"><a href="../packages/Media%20Library%20Assistant.MLA.html">MLA</a></li>
289
+ </ul>
290
+ <div class="package-indent">
291
+ <ul class="breadcrumb">
292
+ <li>
293
+ <a href="../index.html"><i class="icon-folder-open"></i></a><span class="divider">\</span>
294
+ </li>
295
+ <li><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></li>
296
+ <span class="divider">\</span><li><a href="../packages/Media%20Library%20Assistant.MLA.html">MLA</a></li>
297
+ <span class="divider">\</span><li class="active"><a href="../packages/Media%20Library%20Assistant.MLA.Child.html">Child</a></li>
298
+ </ul>
299
+ <div class="package-indent">
300
+ <ul class="breadcrumb">
301
+ <li>
302
+ <a href="../index.html"><i class="icon-folder-open"></i></a><span class="divider">\</span>
303
+ </li>
304
+ <li><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></li>
305
+ <span class="divider">\</span><li><a href="../packages/Media%20Library%20Assistant.MLA.html">MLA</a></li>
306
+ <span class="divider">\</span><li><a href="../packages/Media%20Library%20Assistant.MLA.Child.html">Child</a></li>
307
+ <span class="divider">\</span><li class="active"><a href="../packages/Media%20Library%20Assistant.MLA.Child.Theme.html">Theme</a></li>
308
+ </ul>
309
+ <div class="package-indent">
310
+ <h3>
311
+ <i class="icon-custom icon-function"></i> Functions</h3>
312
+ <a name="mla_custom_terms_list" id="mla_custom_terms_list"></a><div class="element clickable function mla_custom_terms_list" data-toggle="collapse" data-target=".mla_custom_terms_list .collapse">
313
+ <h2>Generate a list of taxonomy- and term-specific links to the page of your choice,
314
+ listing the terms assigned to a specific post or Media Library item.</h2>
315
+ <pre>mla_custom_terms_list(integer $ID, array $attr) : void</pre>
316
+ <div class="labels"></div>
317
+ <div class="row collapse"><div class="detail-description">
318
+ <p class="long_description"></p>
319
+ <h3>Parameters</h3>
320
+ <div class="subelement argument">
321
+ <h4>$ID</h4>
322
+ <code>integer</code><p>ID of the post/page to generate terms for</p>
323
+ </div>
324
+ <div class="subelement argument">
325
+ <h4>$attr</h4>
326
+ <code>array</code><p>Attributes of the function: site_url, page_url, taxonomy</p></div>
327
+ </div></div>
328
+ </div>
329
+ <a name="mla_insert_social_tags" id="mla_insert_social_tags"></a><div class="element clickable function mla_insert_social_tags" data-toggle="collapse" data-target=".mla_insert_social_tags .collapse">
330
+ <h2>Insert thumbnail image tags for Facebook, Twitter, etc.</h2>
331
+ <pre>mla_insert_social_tags() : void</pre>
332
+ <div class="labels"></div>
333
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
334
+ </div>
335
+ <a name="mla_paginated_term_gallery" id="mla_paginated_term_gallery"></a><div class="element clickable function mla_paginated_term_gallery" data-toggle="collapse" data-target=".mla_paginated_term_gallery .collapse">
336
+ <h2>Generate a taxonomy- and term-specific [mla_gallery], limited by current_page and posts_per_page</h2>
337
+ <pre>mla_paginated_term_gallery(array $attr) : integer</pre>
338
+ <div class="labels"></div>
339
+ <div class="row collapse"><div class="detail-description">
340
+ <p class="long_description"><p>This function uses $wpdb functions for efficiency.</p></p>
341
+ <h3>Parameters</h3>
342
+ <div class="subelement argument">
343
+ <h4>$attr</h4>
344
+ <code>array</code><p>Attributes of the function: taxonomy, term, post_mime_type, posts_per_page, current_page</p></div>
345
+ <h3>Returns</h3>
346
+ <div class="subelement response">
347
+ <code>integer</code>number of posts matching taxonomy & term, before LIMIT. echoes HTML <h3>, <p> and <a> tags</div>
348
+ </div></div>
349
+ </div>
350
+ <a name="mla_tag_gallery" id="mla_tag_gallery"></a><div class="element clickable function mla_tag_gallery" data-toggle="collapse" data-target=".mla_tag_gallery .collapse">
351
+ <h2>Generate a taxonomy- and term-specific [mla_gallery]</h2>
352
+ <pre>mla_tag_gallery(array $attr) : void</pre>
353
+ <div class="labels"></div>
354
+ <div class="row collapse"><div class="detail-description">
355
+ <p class="long_description"></p>
356
+ <h3>Parameters</h3>
357
+ <div class="subelement argument">
358
+ <h4>$attr</h4>
359
+ <code>array</code><p>Attributes of the function: taxonomy, term</p></div>
360
+ </div></div>
361
+ </div>
362
+ <a name="mla_taxonomy_terms_list" id="mla_taxonomy_terms_list"></a><div class="element clickable function mla_taxonomy_terms_list" data-toggle="collapse" data-target=".mla_taxonomy_terms_list .collapse">
363
+ <h2>Generate a list of taxonomy- and term-specific links to the page of your choice.</h2>
364
+ <pre>mla_taxonomy_terms_list(array $attr) : string</pre>
365
+ <div class="labels"></div>
366
+ <div class="row collapse"><div class="detail-description">
367
+ <p class="long_description"><p>Best used with the Collapse-O-Matic plugin, which uses the [expand] shortcode to
368
+ display an "accordian-style" list.</p></p>
369
+ <h3>Parameters</h3>
370
+ <div class="subelement argument">
371
+ <h4>$attr</h4>
372
+ <code>array</code><p>Attributes of the function: taxonomy</p></div>
373
+ <h3>Returns</h3>
374
+ <div class="subelement response">
375
+ <code>string</code>HTML <h3>, <p> and <a> tags</div>
376
+ </div></div>
377
+ </div>
378
+ </div>
379
+ </div>
380
+ </div>
381
  </div>
382
  </div>
383
  </div>
384
  <div class="row"><footer class="span12">
385
  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>
386
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
387
+ generated on 2014-03-27T17:01:48-07:00.<br></footer></div>
388
  </div>
389
  </body>
390
  </html>
phpDocs/structure.xml CHANGED
@@ -1,6 +1,217 @@
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="3fa8cea626ce22f80b493f2a43110946" 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>
@@ -41,38 +252,38 @@ ALT Text and custom field columns.</p>]]></long-description>
41
  </tag>
42
  </docblock>
43
  </property>
44
- <property final="false" static="true" visibility="private" line="1099" namespace="global" package="Media Library Assistant">
45
  <name>$mla_list_table_items</name>
46
  <default><![CDATA[NULL]]></default>
47
- <docblock line="1092">
48
  <description><![CDATA[Cache the results of mla_count_list_table_items for reuse in mla_query_list_table_items]]></description>
49
  <long-description><![CDATA[]]></long-description>
50
- <tag line="1092" name="since" description="1.40"/>
51
- <tag line="1092" name="var" description="" type="array">
52
  <type by_reference="false">array</type>
53
  </tag>
54
  </docblock>
55
  </property>
56
- <property final="false" static="true" visibility="private" line="1204" namespace="global" package="Media Library Assistant">
57
  <name>$query_parameters</name>
58
  <default><![CDATA[array()]]></default>
59
- <docblock line="1191">
60
  <description><![CDATA[WP_Query filter "parameters"]]></description>
61
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
62
  The parameters are set up in the _prepare_list_table_query function, and
63
  any further logic required to translate those values is contained in the filters.</p>
64
 
65
  <p>Array index values are: use_postmeta_view, postmeta_key, postmeta_value, patterns, detached, orderby, order, mla-metavalue, debug, s, mla_search_connector, mla_search_fields, sentence, exact</p>]]></long-description>
66
- <tag line="1191" name="since" description="0.30"/>
67
- <tag line="1191" name="var" description="" type="array">
68
  <type by_reference="false">array</type>
69
  </tag>
70
  </docblock>
71
  </property>
72
- <property final="false" static="true" visibility="private" line="2504" namespace="global" package="Media Library Assistant">
73
  <name>$galleries</name>
74
  <default><![CDATA[null]]></default>
75
- <docblock line="2485">
76
  <description><![CDATA[Objects containing [gallery] shortcodes]]></description>
77
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
78
  and array(s) of which attachments each [gallery] contains. The arrays are built once
@@ -85,113 +296,113 @@ each page load and cached for subsequent calls.</p>
85
  ['galleries'] array of [gallery] entries numbered from one (1), containing:
86
  galleries[X]['query'] contains a string with the arguments of the [gallery],
87
  galleries[X]['results'] contains an array ( ID ) of post_ids for the objects in the gallery.</p>]]></long-description>
88
- <tag line="2485" name="since" description="0.70"/>
89
- <tag line="2485" name="var" description="" type="array">
90
  <type by_reference="false">array</type>
91
  </tag>
92
  </docblock>
93
  </property>
94
- <property final="false" static="true" visibility="private" line="2517" namespace="global" package="Media Library Assistant">
95
  <name>$mla_galleries</name>
96
  <default><![CDATA[null]]></default>
97
- <docblock line="2506">
98
  <description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
99
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
100
  and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
101
  each page load and cached for subsequent calls.</p>]]></long-description>
102
- <tag line="2506" name="since" description="0.70"/>
103
- <tag line="2506" name="var" description="" type="array">
104
  <type by_reference="false">array</type>
105
  </tag>
106
  </docblock>
107
  </property>
108
- <property final="false" static="true" visibility="private" line="2708" namespace="global" package="Media Library Assistant">
109
  <name>$pdf_indirect_objects</name>
110
  <default><![CDATA[NULL]]></default>
111
- <docblock line="2697">
112
  <description><![CDATA[Array of PDF indirect objects]]></description>
113
  <long-description><![CDATA[<p>This array contains all of the indirect object offsets and lengths.
114
  The array key is ( object ID * 1000 ) + object generation.
115
  The array value is array( number, generation, start, optional /length )</p>]]></long-description>
116
- <tag line="2697" name="since" description="1.50"/>
117
- <tag line="2697" name="var" description="" type="array">
118
  <type by_reference="false">array</type>
119
  </tag>
120
  </docblock>
121
  </property>
122
- <property final="false" static="true" visibility="private" line="3819" namespace="global" package="Media Library Assistant">
123
  <name>$utf8_chars</name>
124
  <default><![CDATA[array("\xC2\x80", "\xC2\x81", "\xC2\x82", "\xC2\x83", "\xC2\x84", "\xC2\x85", "\xC2\x86", "\xC2\x87", "\xC2\x88", "\xC2\x89", "\xC2\x8A", "\xC2\x8B", "\xC2\x8C", "\xC2\x8D", "\xC2\x8E", "\xC2\x8F", "\xC2\x90", "\xC2\x91", "\xC2\x92", "\xC2\x93", "\xC2\x94", "\xC2\x95", "\xC2\x96", "\xC2\x97", "\xC2\x98", "\xC2\x99", "\xC2\x9A", "\xC2\x9B", "\xC2\x9C", "\xC2\x9D", "\xC2\x9E", "\xC2\x9F", "\xC2\xA0", "\xC2\xA1", "\xC2\xA2", "\xC2\xA3", "\xC2\xA4", "\xC2\xA5", "\xC2\xA6", "\xC2\xA7", "\xC2\xA8", "\xC2\xA9", "\xC2\xAA", "\xC2\xAB", "\xC2\xAC", "\xC2\xAD", "\xC2\xAE", "\xC2\xAF", "\xC2\xB0", "\xC2\xB1", "\xC2\xB2", "\xC2\xB3", "\xC2\xB4", "\xC2\xB5", "\xC2\xB6", "\xC2\xB7", "\xC2\xB8", "\xC2\xB9", "\xC2\xBA", "\xC2\xBB", "\xC2\xBC", "\xC2\xBD", "\xC2\xBE", "\xC2\xBF", "\xC3\x80", "\xC3\x81", "\xC3\x82", "\xC3\x83", "\xC3\x84", "\xC3\x85", "\xC3\x86", "\xC3\x87", "\xC3\x88", "\xC3\x89", "\xC3\x8A", "\xC3\x8B", "\xC3\x8C", "\xC3\x8D", "\xC3\x8E", "\xC3\x8F", "\xC3\x90", "\xC3\x91", "\xC3\x92", "\xC3\x93", "\xC3\x94", "\xC3\x95", "\xC3\x96", "\xC3\x97", "\xC3\x98", "\xC3\x99", "\xC3\x9A", "\xC3\x9B", "\xC3\x9C", "\xC3\x9D", "\xC3\x9E", "\xC3\x9F", "\xC3\xA0", "\xC3\xA1", "\xC3\xA2", "\xC3\xA3", "\xC3\xA4", "\xC3\xA5", "\xC3\xA6", "\xC3\xA7", "\xC3\xA8", "\xC3\xA9", "\xC3\xAA", "\xC3\xAB", "\xC3\xAC", "\xC3\xAD", "\xC3\xAE", "\xC3\xAF", "\xC3\xB0", "\xC3\xB1", "\xC3\xB2", "\xC3\xB3", "\xC3\xB4", "\xC3\xB5", "\xC3\xB6", "\xC3\xB7", "\xC3\xB8", "\xC3\xB9", "\xC3\xBA", "\xC3\xBB", "\xC3\xBC", "\xC3\xBD", "\xC3\xBE", "\xC3\xBF")]]></default>
125
- <docblock line="3812">
126
  <description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
127
  <long-description><![CDATA[]]></long-description>
128
- <tag line="3812" name="since" description="1.41"/>
129
- <tag line="3812" name="var" description="" type="array">
130
  <type by_reference="false">array</type>
131
  </tag>
132
  </docblock>
133
  </property>
134
- <property final="false" static="true" visibility="private" line="3879" namespace="global" package="Media Library Assistant">
135
  <name>$mla_iptc_records</name>
136
  <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>
137
- <docblock line="3869">
138
  <description><![CDATA[IPTC Dataset identifiers and names]]></description>
139
  <long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
140
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
141
- <tag line="3869" name="since" description="0.90"/>
142
- <tag line="3869" name="var" description="" type="array">
143
  <type by_reference="false">array</type>
144
  </tag>
145
  </docblock>
146
  </property>
147
- <property final="false" static="true" visibility="public" line="3978" namespace="global" package="Media Library Assistant">
148
  <name>$mla_iptc_keys</name>
149
  <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>
150
- <docblock line="3968">
151
  <description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
152
  <long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
153
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
154
- <tag line="3968" name="since" description="0.90"/>
155
- <tag line="3968" name="var" description="" type="array">
156
  <type by_reference="false">array</type>
157
  </tag>
158
  </docblock>
159
  </property>
160
- <property final="false" static="true" visibility="private" line="4077" namespace="global" package="Media Library Assistant">
161
  <name>$mla_iptc_descriptions</name>
162
  <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>
163
- <docblock line="4067">
164
  <description><![CDATA[IPTC Dataset descriptions]]></description>
165
  <long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
166
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
167
- <tag line="4067" name="since" description="0.90"/>
168
- <tag line="4067" name="var" description="" type="array">
169
  <type by_reference="false">array</type>
170
  </tag>
171
  </docblock>
172
  </property>
173
- <property final="false" static="true" visibility="private" line="4176" namespace="global" package="Media Library Assistant">
174
  <name>$mla_iptc_formats</name>
175
  <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>
176
- <docblock line="4166">
177
  <description><![CDATA[IPTC file format identifiers and descriptions]]></description>
178
  <long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
179
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
180
- <tag line="4166" name="since" description="0.90"/>
181
- <tag line="4166" name="var" description="" type="array">
182
  <type by_reference="false">array</type>
183
  </tag>
184
  </docblock>
185
  </property>
186
- <property final="false" static="true" visibility="private" line="4219" namespace="global" package="Media Library Assistant">
187
  <name>$mla_iptc_image_types</name>
188
  <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>
189
- <docblock line="4209">
190
  <description><![CDATA[IPTC image type identifiers and descriptions]]></description>
191
  <long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
192
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
193
- <tag line="4209" name="since" description="0.90"/>
194
- <tag line="4209" name="var" description="" type="array">
195
  <type by_reference="false">array</type>
196
  </tag>
197
  </docblock>
@@ -544,1347 +755,1410 @@ All but request and query require an attachment ID.</p>]]></long-description>
544
  <type/>
545
  </argument>
546
  </method>
547
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1022" package="Media Library Assistant">
548
  <name>mla_get_template_placeholders</name>
549
  <full_name>mla_get_template_placeholders</full_name>
550
- <docblock line="1011">
551
  <description><![CDATA[Analyze a template, returning an array of the placeholders it contains]]></description>
552
  <long-description><![CDATA[]]></long-description>
553
- <tag line="1011" name="since" description="0.90"/>
554
- <tag line="1011" name="param" description="A formatting string containing [+placeholders+]" type="string" variable="$tpl">
555
  <type by_reference="false">string</type>
556
  </tag>
557
- <tag line="1011" name="param" description="Optional: default option value" type="string" variable="$default_option">
558
  <type by_reference="false">string</type>
559
  </tag>
560
- <tag line="1011" name="return" description="Placeholder information: each entry is an array with ['prefix'] =&gt; string, ['value'] =&gt; string, ['option'] =&gt; string 'text'|single'|'export'|'array'|'multi'" type="array">
561
  <type by_reference="false">array</type>
562
  </tag>
563
  </docblock>
564
- <argument line="1022">
565
  <name>$tpl</name>
566
  <default><![CDATA[]]></default>
567
  <type/>
568
  </argument>
569
- <argument line="1022">
570
  <name>$default_option</name>
571
  <default><![CDATA['text']]></default>
572
  <type/>
573
  </argument>
574
  </method>
575
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1112" package="Media Library Assistant">
576
  <name>mla_count_list_table_items</name>
577
  <full_name>mla_count_list_table_items</full_name>
578
- <docblock line="1101">
579
  <description><![CDATA[Get the total number of attachment posts]]></description>
580
  <long-description><![CDATA[]]></long-description>
581
- <tag line="1101" name="since" description="0.30"/>
582
- <tag line="1101" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
583
  <type by_reference="false">array</type>
584
  </tag>
585
- <tag line="1101" name="param" description="(optional) number of rows to skip over to reach desired page" type="int" variable="$offset">
586
  <type by_reference="false">int</type>
587
  </tag>
588
- <tag line="1101" name="param" description="(optional) number of rows on each page" type="int" variable="$count">
589
  <type by_reference="false">int</type>
590
  </tag>
591
- <tag line="1101" name="return" description="Number of attachment posts" type="integer">
592
  <type by_reference="false">integer</type>
593
  </tag>
594
  </docblock>
595
- <argument line="1112">
596
  <name>$request</name>
597
  <default><![CDATA[]]></default>
598
  <type/>
599
  </argument>
600
- <argument line="1112">
601
  <name>$offset</name>
602
  <default><![CDATA[NULL]]></default>
603
  <type/>
604
  </argument>
605
- <argument line="1112">
606
  <name>$count</name>
607
  <default><![CDATA[NULL]]></default>
608
  <type/>
609
  </argument>
610
  </method>
611
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1140" package="Media Library Assistant">
612
  <name>mla_query_list_table_items</name>
613
  <full_name>mla_query_list_table_items</full_name>
614
- <docblock line="1126">
615
  <description><![CDATA[Retrieve attachment objects for list table display]]></description>
616
  <long-description><![CDATA[<p>Supports prepare_items in class-mla-list-table.php.
617
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
618
- <tag line="1126" name="since" description="0.1"/>
619
- <tag line="1126" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
620
  <type by_reference="false">array</type>
621
  </tag>
622
- <tag line="1126" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
623
  <type by_reference="false">int</type>
624
  </tag>
625
- <tag line="1126" name="param" description="number of rows on each page" type="int" variable="$count">
626
  <type by_reference="false">int</type>
627
  </tag>
628
- <tag line="1126" name="return" description="attachment objects (posts) including parent data, meta data and references" type="array">
629
  <type by_reference="false">array</type>
630
  </tag>
631
  </docblock>
632
- <argument line="1140">
633
  <name>$request</name>
634
  <default><![CDATA[]]></default>
635
  <type/>
636
  </argument>
637
- <argument line="1140">
638
  <name>$offset</name>
639
  <default><![CDATA[]]></default>
640
  <type/>
641
  </argument>
642
- <argument line="1140">
643
  <name>$count</name>
644
  <default><![CDATA[]]></default>
645
  <type/>
646
  </argument>
647
  </method>
648
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1186" package="Media Library Assistant">
649
  <name>mla_query_media_modal_items</name>
650
  <full_name>mla_query_media_modal_items</full_name>
651
- <docblock line="1173">
652
  <description><![CDATA[Retrieve attachment objects for the WordPress Media Manager]]></description>
653
  <long-description><![CDATA[<p>Supports month-year and taxonomy-term filters as well as the enhanced search box</p>]]></long-description>
654
- <tag line="1173" name="since" description="1.20"/>
655
- <tag line="1173" name="param" description="query parameters from Media Manager" type="array" variable="$request">
656
  <type by_reference="false">array</type>
657
  </tag>
658
- <tag line="1173" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
659
  <type by_reference="false">int</type>
660
  </tag>
661
- <tag line="1173" name="param" description="number of rows on each page" type="int" variable="$count">
662
  <type by_reference="false">int</type>
663
  </tag>
664
- <tag line="1173" name="return" description="attachment objects (posts)" type="array">
665
  <type by_reference="false">array</type>
666
  </tag>
667
  </docblock>
668
- <argument line="1186">
669
  <name>$request</name>
670
  <default><![CDATA[]]></default>
671
  <type/>
672
  </argument>
673
- <argument line="1186">
674
  <name>$offset</name>
675
  <default><![CDATA[]]></default>
676
  <type/>
677
  </argument>
678
- <argument line="1186">
679
  <name>$count</name>
680
  <default><![CDATA[]]></default>
681
  <type/>
682
  </argument>
683
  </method>
684
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1220" package="Media Library Assistant">
685
  <name>_prepare_list_table_query</name>
686
  <full_name>_prepare_list_table_query</full_name>
687
- <docblock line="1206">
688
  <description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
689
  <long-description><![CDATA[<p>Prepare the arguments for WP_Query.
690
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
691
- <tag line="1206" name="since" description="0.1"/>
692
- <tag line="1206" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
693
  <type by_reference="false">array</type>
694
  </tag>
695
- <tag line="1206" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
696
  <type by_reference="false">int</type>
697
  </tag>
698
- <tag line="1206" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
699
  <type by_reference="false">int</type>
700
  </tag>
701
- <tag line="1206" name="return" description="revised arguments suitable for WP_Query" type="array">
702
  <type by_reference="false">array</type>
703
  </tag>
704
  </docblock>
705
- <argument line="1220">
706
  <name>$raw_request</name>
707
  <default><![CDATA[]]></default>
708
  <type/>
709
  </argument>
710
- <argument line="1220">
711
  <name>$offset</name>
712
  <default><![CDATA[0]]></default>
713
  <type/>
714
  </argument>
715
- <argument line="1220">
716
  <name>$count</name>
717
  <default><![CDATA[0]]></default>
718
  <type/>
719
  </argument>
720
  </method>
721
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1563" package="Media Library Assistant">
722
  <name>_execute_list_table_query</name>
723
  <full_name>_execute_list_table_query</full_name>
724
- <docblock line="1554">
725
  <description><![CDATA[Add filters, run query, remove filters]]></description>
726
  <long-description><![CDATA[]]></long-description>
727
- <tag line="1554" name="since" description="0.30"/>
728
- <tag line="1554" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
729
  <type by_reference="false">array</type>
730
  </tag>
731
- <tag line="1554" name="return" description="WP_Query object with query results" type="object">
732
  <type by_reference="false">object</type>
733
  </tag>
734
  </docblock>
735
- <argument line="1563">
736
  <name>$request</name>
737
  <default><![CDATA[]]></default>
738
  <type/>
739
  </argument>
740
  </method>
741
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1641" package="Media Library Assistant">
742
  <name>mla_search_terms_tidy</name>
743
  <full_name>mla_search_terms_tidy</full_name>
744
- <docblock line="1630">
745
  <description><![CDATA[Replaces a WordPress function deprecated in v3.7]]></description>
746
  <long-description><![CDATA[<p>Defined as public because it's a callback from array_map().</p>]]></long-description>
747
- <tag line="1630" name="since" description="1.51"/>
748
- <tag line="1630" name="param" description="search term before modification" type="string" variable="$term">
749
  <type by_reference="false">string</type>
750
  </tag>
751
- <tag line="1630" name="return" description="cleaned up search term" type="string">
752
  <type by_reference="false">string</type>
753
  </tag>
754
  </docblock>
755
- <argument line="1641">
756
  <name>$term</name>
757
  <default><![CDATA[]]></default>
758
  <type/>
759
  </argument>
760
  </method>
761
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1657" package="Media Library Assistant">
762
  <name>mla_query_posts_search_filter</name>
763
  <full_name>mla_query_posts_search_filter</full_name>
764
- <docblock line="1645">
765
  <description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
766
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
767
- <tag line="1645" name="since" description="0.60"/>
768
- <tag line="1645" name="param" description="query clause before modification" type="string" variable="$search_string">
769
  <type by_reference="false">string</type>
770
  </tag>
771
- <tag line="1645" name="param" description="WP_Query object" type="object" variable="$query_object">
772
  <type by_reference="false">object</type>
773
  </tag>
774
- <tag line="1645" name="return" description="query clause after keyword search addition" type="string">
775
  <type by_reference="false">string</type>
776
  </tag>
777
  </docblock>
778
- <argument line="1657">
779
  <name>$search_string</name>
780
  <default><![CDATA[]]></default>
781
  <type/>
782
  </argument>
783
- <argument line="1657">
784
  <name>$query_object</name>
785
  <default><![CDATA[]]></default>
786
  <type/>
787
  </argument>
788
  </method>
789
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1775" package="Media Library Assistant">
790
  <name>mla_query_posts_join_filter</name>
791
  <full_name>mla_query_posts_join_filter</full_name>
792
- <docblock line="1764">
793
  <description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text]]></description>
794
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
795
- <tag line="1764" name="since" description="0.30"/>
796
- <tag line="1764" name="param" description="query clause before modification" type="string" variable="$join_clause">
797
  <type by_reference="false">string</type>
798
  </tag>
799
- <tag line="1764" name="return" description="query clause after &quot;LEFT JOIN view ON post_id&quot; item modification" type="string">
800
  <type by_reference="false">string</type>
801
  </tag>
802
  </docblock>
803
- <argument line="1775">
804
  <name>$join_clause</name>
805
  <default><![CDATA[]]></default>
806
  <type/>
807
  </argument>
808
  </method>
809
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1802" package="Media Library Assistant">
810
  <name>mla_query_posts_where_filter</name>
811
  <full_name>mla_query_posts_where_filter</full_name>
812
- <docblock line="1790">
813
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
814
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
815
  Defined as public because it's a filter.</p>]]></long-description>
816
- <tag line="1790" name="since" description="0.1"/>
817
- <tag line="1790" name="param" description="query clause before modification" type="string" variable="$where_clause">
818
  <type by_reference="false">string</type>
819
  </tag>
820
- <tag line="1790" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
821
  <type by_reference="false">string</type>
822
  </tag>
823
  </docblock>
824
- <argument line="1802">
825
  <name>$where_clause</name>
826
  <default><![CDATA[]]></default>
827
  <type/>
828
  </argument>
829
  </method>
830
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1851" package="Media Library Assistant">
831
  <name>mla_query_posts_orderby_filter</name>
832
  <full_name>mla_query_posts_orderby_filter</full_name>
833
- <docblock line="1839">
834
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
835
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
836
  Defined as public because it's a filter.</p>]]></long-description>
837
- <tag line="1839" name="since" description="0.30"/>
838
- <tag line="1839" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
839
  <type by_reference="false">string</type>
840
  </tag>
841
- <tag line="1839" name="return" description="updated query clause" type="string">
842
  <type by_reference="false">string</type>
843
  </tag>
844
  </docblock>
845
- <argument line="1851">
846
  <name>$orderby_clause</name>
847
  <default><![CDATA[]]></default>
848
  <type/>
849
  </argument>
850
  </method>
851
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1915" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
852
  <name>mla_get_attachment_by_id</name>
853
  <full_name>mla_get_attachment_by_id</full_name>
854
- <docblock line="1903">
855
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
856
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
857
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
858
- <tag line="1903" name="since" description="0.1"/>
859
- <tag line="1903" name="uses" description="\global\$post" refers="\global\$post"/>
860
- <tag line="1903" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
861
  <type by_reference="false">int</type>
862
  </tag>
863
- <tag line="1903" name="return" description="NULL on failure else associative array" type="NULL|array">
864
  <type by_reference="false">NULL</type>
865
  <type by_reference="false">array</type>
866
  </tag>
867
  </docblock>
868
- <argument line="1915">
869
  <name>$post_id</name>
870
  <default><![CDATA[]]></default>
871
  <type/>
872
  </argument>
873
  </method>
874
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1971" package="Media Library Assistant">
875
  <name>mla_fetch_attachment_parent_data</name>
876
  <full_name>mla_fetch_attachment_parent_data</full_name>
877
- <docblock line="1962">
878
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
879
  <long-description><![CDATA[]]></long-description>
880
- <tag line="1962" name="since" description="0.1"/>
881
- <tag line="1962" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
882
  <type by_reference="false">int</type>
883
  </tag>
884
- <tag line="1962" name="return" description="Parent information; post_date, post_title and post_type" type="array">
885
  <type by_reference="false">array</type>
886
  </tag>
887
  </docblock>
888
- <argument line="1971">
889
  <name>$parent_id</name>
890
  <default><![CDATA[]]></default>
891
  <type/>
892
  </argument>
893
  </method>
894
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2013" package="Media Library Assistant">
895
  <name>_set_array_element</name>
896
  <full_name>_set_array_element</full_name>
897
- <docblock line="2002">
898
  <description><![CDATA[Adds or replaces the value of a key in a possibly nested array structure]]></description>
899
  <long-description><![CDATA[]]></long-description>
900
- <tag line="2002" name="since" description="1.51"/>
901
- <tag line="2002" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
902
  <type by_reference="false">string</type>
903
  </tag>
904
- <tag line="2002" name="param" description="replacement value, string or array, by reference" type="mixed" variable="$value">
905
  <type by_reference="false">mixed</type>
906
  </tag>
907
- <tag line="2002" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
908
  <type by_reference="false">array</type>
909
  </tag>
910
- <tag line="2002" name="return" description="true if $needle element set, false if not" type="boolean">
911
  <type by_reference="false">boolean</type>
912
  </tag>
913
  </docblock>
914
- <argument line="2013">
915
  <name>$needle</name>
916
  <default><![CDATA[]]></default>
917
  <type/>
918
  </argument>
919
- <argument line="2013">
920
  <name>$value</name>
921
  <default><![CDATA[]]></default>
922
  <type/>
923
  </argument>
924
- <argument line="2013">
925
  <name>$haystack</name>
926
  <default><![CDATA[]]></default>
927
  <type/>
928
  </argument>
929
  </method>
930
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2047" package="Media Library Assistant">
931
  <name>_unset_array_element</name>
932
  <full_name>_unset_array_element</full_name>
933
- <docblock line="2037">
934
  <description><![CDATA[Deletes the value of a key in a possibly nested array structure]]></description>
935
  <long-description><![CDATA[]]></long-description>
936
- <tag line="2037" name="since" description="1.51"/>
937
- <tag line="2037" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
938
  <type by_reference="false">string</type>
939
  </tag>
940
- <tag line="2037" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
941
  <type by_reference="false">array</type>
942
  </tag>
943
- <tag line="2037" name="return" description="true if $needle element found, false if not" type="boolean">
944
  <type by_reference="false">boolean</type>
945
  </tag>
946
  </docblock>
947
- <argument line="2047">
948
  <name>$needle</name>
949
  <default><![CDATA[]]></default>
950
  <type/>
951
  </argument>
952
- <argument line="2047">
953
  <name>$haystack</name>
954
  <default><![CDATA[]]></default>
955
  <type/>
956
  </argument>
957
  </method>
958
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2082" package="Media Library Assistant">
959
  <name>mla_find_array_element</name>
960
  <full_name>mla_find_array_element</full_name>
961
- <docblock line="2067">
962
  <description><![CDATA[Finds the value of a key in a possibly nested array structure]]></description>
963
  <long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
964
  Could also be used with the ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
965
- <tag line="2067" name="since" description="1.30"/>
966
- <tag line="2067" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
967
  <type by_reference="false">string</type>
968
  </tag>
969
- <tag line="2067" name="param" description="PHP nested arrays" type="array" variable="$haystack">
970
  <type by_reference="false">array</type>
971
  </tag>
972
- <tag line="2067" name="param" description="data option 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
973
  <type by_reference="false">string</type>
974
  </tag>
975
- <tag line="2067" name="param" description="keep existing values - for 'multi' option" type="boolean" variable="$keep_existing">
976
  <type by_reference="false">boolean</type>
977
  </tag>
978
- <tag line="2067" name="return" description="string or array value matching key(.key ...) or ''" type="mixed">
979
  <type by_reference="false">mixed</type>
980
  </tag>
981
  </docblock>
982
- <argument line="2082">
983
  <name>$needle</name>
984
  <default><![CDATA[]]></default>
985
  <type/>
986
  </argument>
987
- <argument line="2082">
988
  <name>$haystack</name>
989
  <default><![CDATA[]]></default>
990
  <type/>
991
  </argument>
992
- <argument line="2082">
993
  <name>$option</name>
994
  <default><![CDATA[]]></default>
995
  <type/>
996
  </argument>
997
- <argument line="2082">
998
  <name>$keep_existing</name>
999
  <default><![CDATA[false]]></default>
1000
  <type/>
1001
  </argument>
1002
  </method>
1003
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2135" package="Media Library Assistant">
1004
  <name>mla_fetch_attachment_metadata</name>
1005
  <full_name>mla_fetch_attachment_metadata</full_name>
1006
- <docblock line="2123">
1007
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
1008
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
1009
  are stripped out or converted to an 'mla</em>' equivalent.</p>]]></long-description>
1010
- <tag line="2123" name="since" description="0.1"/>
1011
- <tag line="2123" name="param" description="post ID of attachment" type="int" variable="$post_id">
1012
  <type by_reference="false">int</type>
1013
  </tag>
1014
- <tag line="2123" name="return" description="Meta data variables" type="array">
1015
  <type by_reference="false">array</type>
1016
  </tag>
1017
  </docblock>
1018
- <argument line="2135">
1019
  <name>$post_id</name>
1020
  <default><![CDATA[]]></default>
1021
  <type/>
1022
  </argument>
1023
  </method>
1024
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2220" package="Media Library Assistant">
1025
  <name>mla_fetch_attachment_references</name>
1026
  <full_name>mla_fetch_attachment_references</full_name>
1027
- <docblock line="2207">
1028
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
1029
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
1030
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
1031
- <tag line="2207" name="since" description="0.1"/>
1032
- <tag line="2207" name="param" description="post ID of attachment" type="int" variable="$ID">
1033
  <type by_reference="false">int</type>
1034
  </tag>
1035
- <tag line="2207" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
1036
  <type by_reference="false">int</type>
1037
  </tag>
1038
- <tag line="2207" name="return" description="Reference information; see $references array comments" type="array">
1039
  <type by_reference="false">array</type>
1040
  </tag>
1041
  </docblock>
1042
- <argument line="2220">
1043
  <name>$ID</name>
1044
  <default><![CDATA[]]></default>
1045
  <type/>
1046
  </argument>
1047
- <argument line="2220">
1048
  <name>$parent</name>
1049
  <default><![CDATA[]]></default>
1050
  <type/>
1051
  </argument>
1052
  </method>
1053
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2528" package="Media Library Assistant">
1054
  <name>mla_flush_mla_galleries</name>
1055
  <full_name>mla_flush_mla_galleries</full_name>
1056
- <docblock line="2519">
1057
  <description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
1058
  <long-description><![CDATA[]]></long-description>
1059
- <tag line="2519" name="since" description="1.00"/>
1060
- <tag line="2519" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
1061
  <type by_reference="false">string</type>
1062
  </tag>
1063
- <tag line="2519" name="return" description="" type="void">
1064
  <type by_reference="false">void</type>
1065
  </tag>
1066
  </docblock>
1067
- <argument line="2528">
1068
  <name>$option_name</name>
1069
  <default><![CDATA[]]></default>
1070
  <type/>
1071
  </argument>
1072
  </method>
1073
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2552" package="Media Library Assistant">
1074
  <name>mla_save_post_action</name>
1075
  <full_name>mla_save_post_action</full_name>
1076
- <docblock line="2543">
1077
  <description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
1078
  <long-description><![CDATA[]]></long-description>
1079
- <tag line="2543" name="since" description="1.00"/>
1080
- <tag line="2543" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
1081
  <type by_reference="false">integer</type>
1082
  </tag>
1083
- <tag line="2543" name="return" description="" type="void">
1084
  <type by_reference="false">void</type>
1085
  </tag>
1086
  </docblock>
1087
- <argument line="2552">
1088
  <name>$post_id</name>
1089
  <default><![CDATA[]]></default>
1090
  <type/>
1091
  </argument>
1092
  </method>
1093
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2569" package="Media Library Assistant">
1094
  <name>_build_mla_galleries</name>
1095
  <full_name>_build_mla_galleries</full_name>
1096
- <docblock line="2557">
1097
  <description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
1098
  <long-description><![CDATA[]]></long-description>
1099
- <tag line="2557" name="since" description="0.70"/>
1100
- <tag line="2557" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
1101
  <type by_reference="false">string</type>
1102
  </tag>
1103
- <tag line="2557" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
1104
  <type by_reference="false">array</type>
1105
  </tag>
1106
- <tag line="2557" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
1107
  <type by_reference="false">string</type>
1108
  </tag>
1109
- <tag line="2557" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
1110
  <type by_reference="false">boolean</type>
1111
  </tag>
1112
- <tag line="2557" name="return" description="true if the galleries array is not empty" type="boolean">
1113
  <type by_reference="false">boolean</type>
1114
  </tag>
1115
  </docblock>
1116
- <argument line="2569">
1117
  <name>$option_name</name>
1118
  <default><![CDATA[]]></default>
1119
  <type/>
1120
  </argument>
1121
- <argument line="2569">
1122
  <name>$galleries_array</name>
1123
  <default><![CDATA[]]></default>
1124
  <type/>
1125
  </argument>
1126
- <argument line="2569">
1127
  <name>$shortcode</name>
1128
  <default><![CDATA[]]></default>
1129
  <type/>
1130
  </argument>
1131
- <argument line="2569">
1132
  <name>$exclude_revisions</name>
1133
  <default><![CDATA[]]></default>
1134
  <type/>
1135
  </argument>
1136
  </method>
1137
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2684" package="Media Library Assistant">
1138
  <name>_search_mla_galleries</name>
1139
  <full_name>_search_mla_galleries</full_name>
1140
- <docblock line="2673">
1141
  <description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
1142
  <long-description><![CDATA[]]></long-description>
1143
- <tag line="2673" name="since" description="0.70"/>
1144
- <tag line="2673" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
1145
  <type by_reference="false">array</type>
1146
  </tag>
1147
- <tag line="2673" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
1148
  <type by_reference="false">int</type>
1149
  </tag>
1150
- <tag line="2673" 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">
1151
  <type by_reference="false">array</type>
1152
  </tag>
1153
  </docblock>
1154
- <argument line="2684">
1155
  <name>$galleries_array</name>
1156
  <default><![CDATA[]]></default>
1157
  <type/>
1158
  </argument>
1159
- <argument line="2684">
1160
  <name>$attachment_id</name>
1161
  <default><![CDATA[]]></default>
1162
  <type/>
1163
  </argument>
1164
  </method>
1165
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2723" package="Media Library Assistant">
1166
  <name>_parse_pdf_xref_subsection</name>
1167
  <full_name>_parse_pdf_xref_subsection</full_name>
1168
- <docblock line="2710">
1169
  <description><![CDATA[Parse a cross-reference table subsection into the array of indirect object definitions]]></description>
1170
  <long-description><![CDATA[<p>A cross-reference subsection is a sequence of 20-byte entries, each with offset and generation values.</p>]]></long-description>
1171
- <tag line="2710" name="since" description="1.50"/>
1172
- <tag line="2710" name="param" description="buffer containing the subsection" type="string" variable="$xref_section">
1173
  <type by_reference="false">string</type>
1174
  </tag>
1175
- <tag line="2710" name="param" description="offset within the buffer of the first entry" type="integer" variable="$offset">
1176
  <type by_reference="false">integer</type>
1177
  </tag>
1178
- <tag line="2710" name="param" description="number of the first object in the subsection" type="integer" variable="$object_id">
1179
  <type by_reference="false">integer</type>
1180
  </tag>
1181
- <tag line="2710" name="param" description="number of entries in the subsection" type="integer" variable="$count">
1182
  <type by_reference="false">integer</type>
1183
  </tag>
1184
- <tag line="2710" name="return" description="" type="void">
1185
  <type by_reference="false">void</type>
1186
  </tag>
1187
  </docblock>
1188
- <argument line="2723">
1189
  <name>$xref_section</name>
1190
  <default><![CDATA[]]></default>
1191
  <type/>
1192
  </argument>
1193
- <argument line="2723">
1194
  <name>$offset</name>
1195
  <default><![CDATA[]]></default>
1196
  <type/>
1197
  </argument>
1198
- <argument line="2723">
1199
  <name>$object_id</name>
1200
  <default><![CDATA[]]></default>
1201
  <type/>
1202
  </argument>
1203
- <argument line="2723">
1204
  <name>$count</name>
1205
  <default><![CDATA[]]></default>
1206
  <type/>
1207
  </argument>
1208
  </method>
1209
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2755" package="Media Library Assistant">
1210
  <name>_parse_pdf_xref_section</name>
1211
  <full_name>_parse_pdf_xref_section</full_name>
1212
- <docblock line="2744">
1213
  <description><![CDATA[Parse a cross-reference table section into the array of indirect object definitions]]></description>
1214
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
1215
- <tag line="2744" name="since" description="1.50"/>
1216
- <tag line="2744" name="param" description="full path and file name" type="string" variable="$file_name">
1217
  <type by_reference="false">string</type>
1218
  </tag>
1219
- <tag line="2744" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
1220
  <type by_reference="false">integer</type>
1221
  </tag>
1222
- <tag line="2744" name="return" description="length of the section" type="integer">
1223
  <type by_reference="false">integer</type>
1224
  </tag>
1225
  </docblock>
1226
- <argument line="2755">
1227
  <name>$file_name</name>
1228
  <default><![CDATA[]]></default>
1229
  <type/>
1230
  </argument>
1231
- <argument line="2755">
1232
  <name>$file_offset</name>
1233
  <default><![CDATA[]]></default>
1234
  <type/>
1235
  </argument>
1236
  </method>
1237
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2789" package="Media Library Assistant">
1238
  <name>_parse_pdf_xref_stream</name>
1239
  <full_name>_parse_pdf_xref_stream</full_name>
1240
- <docblock line="2777">
1241
  <description><![CDATA[Parse a cross-reference steam into the array of indirect object definitions]]></description>
1242
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
1243
- <tag line="2777" name="since" description="1.50"/>
1244
- <tag line="2777" name="param" description="full path and file name" type="string" variable="$file_name">
1245
  <type by_reference="false">string</type>
1246
  </tag>
1247
- <tag line="2777" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
1248
  <type by_reference="false">integer</type>
1249
  </tag>
1250
- <tag line="2777" name="param" description="&quot;/W&quot; entry, representing the size of the fields in a single entry" type="string" variable="$entry_parms_string">
1251
  <type by_reference="false">string</type>
1252
  </tag>
1253
- <tag line="2777" name="return" description="length of the stream" type="integer">
1254
  <type by_reference="false">integer</type>
1255
  </tag>
1256
  </docblock>
1257
- <argument line="2789">
1258
  <name>$file_name</name>
1259
  <default><![CDATA[]]></default>
1260
  <type/>
1261
  </argument>
1262
- <argument line="2789">
1263
  <name>$file_offset</name>
1264
  <default><![CDATA[]]></default>
1265
  <type/>
1266
  </argument>
1267
- <argument line="2789">
1268
  <name>$entry_parms_string</name>
1269
  <default><![CDATA[]]></default>
1270
  <type/>
1271
  </argument>
1272
  </method>
1273
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2868" package="Media Library Assistant">
1274
  <name>_build_pdf_indirect_objects</name>
1275
  <full_name>_build_pdf_indirect_objects</full_name>
1276
- <docblock line="2858">
1277
  <description><![CDATA[Build an array of indirect object definitions]]></description>
1278
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
1279
- <tag line="2858" name="since" description="1.50"/>
1280
- <tag line="2858" name="param" description="The entire PDF document, passsed by reference" type="string" variable="$string">
1281
  <type by_reference="false">string</type>
1282
  </tag>
1283
- <tag line="2858" name="return" description="" type="void">
1284
  <type by_reference="false">void</type>
1285
  </tag>
1286
  </docblock>
1287
- <argument line="2868">
1288
  <name>$string</name>
1289
  <default><![CDATA[]]></default>
1290
  <type/>
1291
  </argument>
1292
  </method>
1293
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2916" package="Media Library Assistant">
1294
  <name>_find_pdf_indirect_dictionary</name>
1295
  <full_name>_find_pdf_indirect_dictionary</full_name>
1296
- <docblock line="2902">
1297
  <description><![CDATA[Find the offset, length and contents of an indirect object containing a dictionary]]></description>
1298
  <long-description><![CDATA[<p>The function searches the entire file, if necessary, to find the last/most recent copy of the object.
1299
  This is required because Adobe Acrobat does NOT increment the generation number when it reuses an object.</p>]]></long-description>
1300
- <tag line="2902" name="since" description="1.50"/>
1301
- <tag line="2902" name="param" description="full path and file name" type="string" variable="$file_name">
1302
  <type by_reference="false">string</type>
1303
  </tag>
1304
- <tag line="2902" name="param" description="The object number" type="integer" variable="$object">
1305
  <type by_reference="false">integer</type>
1306
  </tag>
1307
- <tag line="2902" name="param" description="The object generation number; default zero (0)" type="integer" variable="$generation">
1308
  <type by_reference="false">integer</type>
1309
  </tag>
1310
- <tag line="2902" name="return" description="NULL on failure else array( 'start' =&gt; offset in the file, 'length' =&gt; object length, 'content' =&gt; dictionary contents )" type="mixed">
1311
  <type by_reference="false">mixed</type>
1312
  </tag>
1313
  </docblock>
1314
- <argument line="2916">
1315
  <name>$file_name</name>
1316
  <default><![CDATA[]]></default>
1317
  <type/>
1318
  </argument>
1319
- <argument line="2916">
1320
  <name>$object</name>
1321
  <default><![CDATA[]]></default>
1322
  <type/>
1323
  </argument>
1324
- <argument line="2916">
1325
  <name>$generation</name>
1326
  <default><![CDATA[0]]></default>
1327
  <type/>
1328
  </argument>
1329
  </method>
1330
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3013" package="Media Library Assistant">
1331
  <name>_parse_iso8601_date</name>
1332
  <full_name>_parse_iso8601_date</full_name>
1333
- <docblock line="3004">
1334
  <description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
1335
  <long-description><![CDATA[]]></long-description>
1336
- <tag line="3004" name="since" description="1.50"/>
1337
- <tag line="3004" name="param" description="ISO string of the form YYYY-MM-DDTHH:MM:SS-HH:MM (inc time zone)" type="string" variable="$source_string">
1338
  <type by_reference="false">string</type>
1339
  </tag>
1340
- <tag line="3004" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
1341
  <type by_reference="false">string</type>
1342
  </tag>
1343
  </docblock>
1344
- <argument line="3013">
1345
  <name>$source_string</name>
1346
  <default><![CDATA[]]></default>
1347
  <type/>
1348
  </argument>
1349
  </method>
1350
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3036" package="Media Library Assistant">
1351
  <name>_parse_pdf_date</name>
1352
  <full_name>_parse_pdf_date</full_name>
1353
- <docblock line="3027">
1354
  <description><![CDATA[Parse a PDF date string]]></description>
1355
  <long-description><![CDATA[]]></long-description>
1356
- <tag line="3027" name="since" description="1.50"/>
1357
- <tag line="3027" name="param" description="PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm" type="string" variable="$source_string">
1358
  <type by_reference="false">string</type>
1359
  </tag>
1360
- <tag line="3027" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
1361
  <type by_reference="false">string</type>
1362
  </tag>
1363
  </docblock>
1364
- <argument line="3036">
1365
  <name>$source_string</name>
1366
  <default><![CDATA[]]></default>
1367
  <type/>
1368
  </argument>
1369
  </method>
1370
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3059" package="Media Library Assistant">
1371
  <name>_parse_pdf_UTF16BE</name>
1372
  <full_name>_parse_pdf_UTF16BE</full_name>
1373
- <docblock line="3050">
1374
  <description><![CDATA[Parse a PDF Unicode (16-bit Big Endian) object]]></description>
1375
  <long-description><![CDATA[]]></long-description>
1376
- <tag line="3050" name="since" description="1.50"/>
1377
- <tag line="3050" name="param" description="PDF string of 16-bit characters" type="string" variable="$source_string">
1378
  <type by_reference="false">string</type>
1379
  </tag>
1380
- <tag line="3050" name="return" description="UTF-8 encoded string" type="string">
1381
  <type by_reference="false">string</type>
1382
  </tag>
1383
  </docblock>
1384
- <argument line="3059">
1385
  <name>$source_string</name>
1386
  <default><![CDATA[]]></default>
1387
  <type/>
1388
  </argument>
1389
  </method>
1390
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3088" package="Media Library Assistant">
1391
  <name>_parse_pdf_string</name>
1392
  <full_name>_parse_pdf_string</full_name>
1393
- <docblock line="3075">
1394
  <description><![CDATA[Parse a PDF string object]]></description>
1395
  <long-description><![CDATA[<p>Returns an array with one dictionary entry. The array also has a '/length' element containing
1396
  the number of bytes occupied by the string in the source string, including the enclosing parentheses.</p>]]></long-description>
1397
- <tag line="3075" name="since" description="1.50"/>
1398
- <tag line="3075" name="param" description="data within which the string occurs" type="string" variable="$source_string">
1399
  <type by_reference="false">string</type>
1400
  </tag>
1401
- <tag line="3075" name="param" description="offset within the source string of the opening '(' character." type="integer" variable="$offset">
1402
  <type by_reference="false">integer</type>
1403
  </tag>
1404
- <tag line="3075" name="return" description="( key =&gt; array( 'type' =&gt; type, 'value' =&gt; value, '/length' =&gt; length ) ) for the string" type="array">
1405
  <type by_reference="false">array</type>
1406
  </tag>
1407
  </docblock>
1408
- <argument line="3088">
1409
  <name>$source_string</name>
1410
  <default><![CDATA[]]></default>
1411
  <type/>
1412
  </argument>
1413
- <argument line="3088">
1414
  <name>$offset</name>
1415
  <default><![CDATA[]]></default>
1416
  <type/>
1417
  </argument>
1418
  </method>
1419
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3182" package="Media Library Assistant">
1420
  <name>_parse_pdf_LPD_dictionary</name>
1421
  <full_name>_parse_pdf_LPD_dictionary</full_name>
1422
- <docblock line="3168">
1423
  <description><![CDATA[Parse a PDF Linearization Parameter Dictionary object]]></description>
1424
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
1425
  indirect (object), name, array, dictionary, stream, and null.
1426
  The array also has a '/length' element containing the number of bytes occupied by the
1427
  dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
1428
- <tag line="3168" name="since" description="1.50"/>
1429
- <tag line="3168" name="param" description="data within which the object occurs, typically the start of a PDF document" type="string" variable="$source_string">
1430
  <type by_reference="false">string</type>
1431
  </tag>
1432
- <tag line="3168" name="param" description="filesize of the PDF document, for validation purposes, or zero (0) to ignore filesize" type="integer" variable="$filesize">
1433
  <type by_reference="false">integer</type>
1434
  </tag>
1435
- <tag line="3168" name="return" description="array of dictionary objects on success, false on failure" type="mixed">
1436
  <type by_reference="false">mixed</type>
1437
  </tag>
1438
  </docblock>
1439
- <argument line="3182">
1440
  <name>$source_string</name>
1441
  <default><![CDATA[]]></default>
1442
  <type/>
1443
  </argument>
1444
- <argument line="3182">
1445
  <name>$filesize</name>
1446
  <default><![CDATA[]]></default>
1447
  <type/>
1448
  </argument>
1449
  </method>
1450
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3207" package="Media Library Assistant">
1451
  <name>_parse_pdf_dictionary</name>
1452
  <full_name>_parse_pdf_dictionary</full_name>
1453
- <docblock line="3193">
1454
  <description><![CDATA[Parse a PDF dictionary object]]></description>
1455
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
1456
  indirect (object), name, array, dictionary, stream, and null.
1457
  The array also has a '/length' element containing the number of bytes occupied by the
1458
  dictionary in the source string, excluding the enclosing delimiters.</p>]]></long-description>
1459
- <tag line="3193" name="since" description="1.50"/>
1460
- <tag line="3193" name="param" description="data within which the string occurs" type="string" variable="$source_string">
1461
  <type by_reference="false">string</type>
1462
  </tag>
1463
- <tag line="3193" name="param" description="offset within the source string of the opening '&lt;&lt;' characters or the first content character." type="integer" variable="$offset">
1464
  <type by_reference="false">integer</type>
1465
  </tag>
1466
- <tag line="3193" name="return" description="( '/length' =&gt; length, key =&gt; array( 'type' =&gt; type, 'value' =&gt; value ) ) for each dictionary field" type="array">
1467
  <type by_reference="false">array</type>
1468
  </tag>
1469
  </docblock>
1470
- <argument line="3207">
1471
  <name>$source_string</name>
1472
  <default><![CDATA[]]></default>
1473
  <type/>
1474
  </argument>
1475
- <argument line="3207">
1476
  <name>$offset</name>
1477
  <default><![CDATA[]]></default>
1478
  <type/>
1479
  </argument>
1480
  </method>
1481
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3339" package="Media Library Assistant">
1482
  <name>_parse_xmp_metadata</name>
1483
  <full_name>_parse_xmp_metadata</full_name>
1484
- <docblock line="3325">
1485
  <description><![CDATA[Parse an XMP object]]></description>
1486
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
1487
  indirect (object), name, array, dictionary, stream, and null.
1488
  The array also has a '/length' element containing the number of bytes occupied by the
1489
  dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
1490
- <tag line="3325" name="since" description="1.50"/>
1491
- <tag line="3325" name="param" description="full path and file name" type="string" variable="$file_name">
1492
  <type by_reference="false">string</type>
1493
  </tag>
1494
- <tag line="3325" name="param" description="offset within the file of the search start point" type="integer" variable="$file_offset">
1495
  <type by_reference="false">integer</type>
1496
  </tag>
1497
- <tag line="3325" name="return" description="array of metadata values or NULL on failure" type="mixed">
1498
  <type by_reference="false">mixed</type>
1499
  </tag>
1500
  </docblock>
1501
- <argument line="3339">
1502
  <name>$file_name</name>
1503
  <default><![CDATA[]]></default>
1504
  <type/>
1505
  </argument>
1506
- <argument line="3339">
1507
  <name>$file_offset</name>
1508
  <default><![CDATA[]]></default>
1509
  <type/>
1510
  </argument>
1511
  </method>
1512
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3628" package="Media Library Assistant">
1513
  <name>_extract_pdf_trailer</name>
1514
  <full_name>_extract_pdf_trailer</full_name>
1515
- <docblock line="3618">
1516
  <description><![CDATA[Extract dictionary from traditional cross-reference + trailer documents]]></description>
1517
  <long-description><![CDATA[]]></long-description>
1518
- <tag line="3618" name="since" description="1.50"/>
1519
- <tag line="3618" name="param" description="full path to the desired file" type="string" variable="$file_name">
1520
  <type by_reference="false">string</type>
1521
  </tag>
1522
- <tag line="3618" name="param" description="offset within file of the cross-reference table" type="integer" variable="$file_offset">
1523
  <type by_reference="false">integer</type>
1524
  </tag>
1525
- <tag line="3618" name="return" description="array of &quot;PDF dictionary arrays&quot;, newest first, or NULL on failure" type="mixed">
1526
  <type by_reference="false">mixed</type>
1527
  </tag>
1528
  </docblock>
1529
- <argument line="3628">
1530
  <name>$file_name</name>
1531
  <default><![CDATA[]]></default>
1532
  <type/>
1533
  </argument>
1534
- <argument line="3628">
1535
  <name>$file_offset</name>
1536
  <default><![CDATA[]]></default>
1537
  <type/>
1538
  </argument>
1539
  </method>
1540
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3714" package="Media Library Assistant">
1541
  <name>_extract_pdf_metadata</name>
1542
  <full_name>_extract_pdf_metadata</full_name>
1543
- <docblock line="3705">
1544
  <description><![CDATA[Extract Metadata from a PDF file]]></description>
1545
  <long-description><![CDATA[]]></long-description>
1546
- <tag line="3705" name="since" description="1.50"/>
1547
- <tag line="3705" name="param" description="full path to the desired file" type="string" variable="$file_name">
1548
  <type by_reference="false">string</type>
1549
  </tag>
1550
- <tag line="3705" name="return" description="( key =&gt; value ) for each metadata field, in string format" type="array">
1551
  <type by_reference="false">array</type>
1552
  </tag>
1553
  </docblock>
1554
- <argument line="3714">
1555
  <name>$file_name</name>
1556
  <default><![CDATA[]]></default>
1557
  <type/>
1558
  </argument>
1559
  </method>
1560
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3847" package="Media Library Assistant">
1561
  <name>_bin_to_utf8</name>
1562
  <full_name>_bin_to_utf8</full_name>
1563
- <docblock line="3838">
1564
  <description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
1565
  <long-description><![CDATA[]]></long-description>
1566
- <tag line="3838" name="since" description="1.41"/>
1567
- <tag line="3838" name="param" description="unencoded string" type="string" variable="$string">
1568
  <type by_reference="false">string</type>
1569
  </tag>
1570
- <tag line="3838" name="return" description="UTF-8 encoded string" type="string">
1571
  <type by_reference="false">string</type>
1572
  </tag>
1573
  </docblock>
1574
- <argument line="3847">
1575
  <name>$string</name>
1576
  <default><![CDATA[]]></default>
1577
  <type/>
1578
  </argument>
1579
  </method>
1580
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4245" package="Media Library Assistant">
1581
  <name>mla_iptc_metadata_value</name>
1582
  <full_name>mla_iptc_metadata_value</full_name>
1583
- <docblock line="4235">
1584
  <description><![CDATA[Parse one IPTC metadata field]]></description>
1585
  <long-description><![CDATA[]]></long-description>
1586
- <tag line="4235" name="since" description="1.41"/>
1587
- <tag line="4235" name="param" description="field name - IPTC Identifier or friendly name/slug" type="string" variable="$iptc_key">
1588
  <type by_reference="false">string</type>
1589
  </tag>
1590
- <tag line="4235" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
1591
  <type by_reference="false">string</type>
1592
  </tag>
1593
- <tag line="4235" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
1594
  <type by_reference="false">mixed</type>
1595
  </tag>
1596
  </docblock>
1597
- <argument line="4245">
1598
  <name>$iptc_key</name>
1599
  <default><![CDATA[]]></default>
1600
  <type/>
1601
  </argument>
1602
- <argument line="4245">
1603
  <name>$item_metadata</name>
1604
  <default><![CDATA[]]></default>
1605
  <type/>
1606
  </argument>
1607
  </method>
1608
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4277" package="Media Library Assistant">
1609
  <name>mla_exif_metadata_value</name>
1610
  <full_name>mla_exif_metadata_value</full_name>
1611
- <docblock line="4265">
1612
  <description><![CDATA[Parse one EXIF metadata field]]></description>
1613
  <long-description><![CDATA[<p>Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
1614
- <tag line="4265" name="since" description="1.13"/>
1615
- <tag line="4265" name="param" description="field name" type="string" variable="$exif_key">
1616
  <type by_reference="false">string</type>
1617
  </tag>
1618
- <tag line="4265" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
1619
  <type by_reference="false">string</type>
1620
  </tag>
1621
- <tag line="4265" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
1622
  <type by_reference="false">mixed</type>
1623
  </tag>
1624
  </docblock>
1625
- <argument line="4277">
1626
  <name>$exif_key</name>
1627
  <default><![CDATA[]]></default>
1628
  <type/>
1629
  </argument>
1630
- <argument line="4277">
1631
  <name>$item_metadata</name>
1632
  <default><![CDATA[]]></default>
1633
  <type/>
1634
  </argument>
1635
  </method>
1636
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4338" package="Media Library Assistant">
1637
  <name>mla_pdf_metadata_value</name>
1638
  <full_name>mla_pdf_metadata_value</full_name>
1639
- <docblock line="4326">
1640
  <description><![CDATA[Parse one PDF metadata field]]></description>
1641
  <long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
1642
- <tag line="4326" name="since" description="1.50"/>
1643
- <tag line="4326" name="param" description="field name" type="string" variable="$pdf_key">
1644
  <type by_reference="false">string</type>
1645
  </tag>
1646
- <tag line="4326" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
1647
  <type by_reference="false">string</type>
1648
  </tag>
1649
- <tag line="4326" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
1650
  <type by_reference="false">mixed</type>
1651
  </tag>
1652
  </docblock>
1653
- <argument line="4338">
1654
  <name>$pdf_key</name>
1655
  <default><![CDATA[]]></default>
1656
  <type/>
1657
  </argument>
1658
- <argument line="4338">
1659
  <name>$item_metadata</name>
1660
  <default><![CDATA[]]></default>
1661
  <type/>
1662
  </argument>
1663
  </method>
1664
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4380" package="Media Library Assistant">
1665
  <name>_rational_to_decimal</name>
1666
  <full_name>_rational_to_decimal</full_name>
1667
- <docblock line="4371">
1668
  <description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
1669
  <long-description><![CDATA[]]></long-description>
1670
- <tag line="4371" name="since" description="1.50"/>
1671
- <tag line="4371" name="param" description="array( 0 =&gt; numerator, 1 =&gt; denominator )" type="array" variable="$rational">
1672
  <type by_reference="false">array</type>
1673
  </tag>
1674
- <tag line="4371" name="return" description="numerator/denominator" type="float">
1675
  <type by_reference="false">float</type>
1676
  </tag>
1677
  </docblock>
1678
- <argument line="4380">
1679
  <name>$rational</name>
1680
  <default><![CDATA[]]></default>
1681
  <type/>
1682
  </argument>
1683
  </method>
1684
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4395" package="Media Library Assistant">
1685
  <name>mla_fetch_attachment_image_metadata</name>
1686
  <full_name>mla_fetch_attachment_image_metadata</full_name>
1687
- <docblock line="4385">
1688
  <description><![CDATA[Fetch and filter IPTC and EXIF or PDF metadata for an image attachment]]></description>
1689
  <long-description><![CDATA[]]></long-description>
1690
- <tag line="4385" name="since" description="0.90"/>
1691
- <tag line="4385" name="param" description="post ID of attachment" type="int" variable="$post_id">
1692
  <type by_reference="false">int</type>
1693
  </tag>
1694
- <tag line="4385" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
1695
  <type by_reference="false">string</type>
1696
  </tag>
1697
- <tag line="4385" name="return" description="Meta data variables, IPTC and EXIF or PDF" type="array">
1698
  <type by_reference="false">array</type>
1699
  </tag>
1700
  </docblock>
1701
- <argument line="4395">
1702
  <name>$post_id</name>
1703
  <default><![CDATA[]]></default>
1704
  <type/>
1705
  </argument>
1706
- <argument line="4395">
1707
  <name>$path</name>
1708
  <default><![CDATA['']]></default>
1709
  <type/>
1710
  </argument>
1711
  </method>
1712
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4567" package="Media Library Assistant">
1713
  <name>mla_update_wp_attachment_metadata</name>
1714
  <full_name>mla_update_wp_attachment_metadata</full_name>
1715
- <docblock line="4557">
1716
  <description><![CDATA[Update "meta:" data for a single attachment]]></description>
1717
  <long-description><![CDATA[]]></long-description>
1718
- <tag line="4557" name="since" description="1.51"/>
1719
- <tag line="4557" name="param" description="The current wp_attachment_metadata value" type="array" variable="$current_values">
1720
  <type by_reference="false">array</type>
1721
  </tag>
1722
- <tag line="4557" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
1723
  <type by_reference="false">array</type>
1724
  </tag>
1725
- <tag line="4557" name="return" description="success/failure message(s); empty string if no changes." type="string">
1726
  <type by_reference="false">string</type>
1727
  </tag>
1728
  </docblock>
1729
- <argument line="4567">
1730
  <name>$current_values</name>
1731
  <default><![CDATA[]]></default>
1732
  <type/>
1733
  </argument>
1734
- <argument line="4567">
1735
  <name>$new_meta</name>
1736
  <default><![CDATA[]]></default>
1737
  <type/>
1738
  </argument>
1739
  </method>
1740
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4650" package="Media Library Assistant">
1741
  <name>mla_update_item_postmeta</name>
1742
  <full_name>mla_update_item_postmeta</full_name>
1743
- <docblock line="4640">
1744
  <description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
1745
  <long-description><![CDATA[]]></long-description>
1746
- <tag line="4640" name="since" description="1.40"/>
1747
- <tag line="4640" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
1748
  <type by_reference="false">int</type>
1749
  </tag>
1750
- <tag line="4640" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
1751
  <type by_reference="false">array</type>
1752
  </tag>
1753
- <tag line="4640" name="return" description="success/failure message(s)" type="string">
1754
  <type by_reference="false">string</type>
1755
  </tag>
1756
  </docblock>
1757
- <argument line="4650">
1758
  <name>$post_id</name>
1759
  <default><![CDATA[]]></default>
1760
  <type/>
1761
  </argument>
1762
- <argument line="4650">
1763
  <name>$new_meta</name>
1764
  <default><![CDATA[]]></default>
1765
  <type/>
1766
  </argument>
1767
  </method>
1768
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4817" package="Media Library Assistant">
1769
  <name>mla_update_single_item</name>
1770
  <full_name>mla_update_single_item</full_name>
1771
- <docblock line="4804">
1772
  <description><![CDATA[Update a single item; change the "post" data, taxonomy terms
1773
  and meta data for a single attachment]]></description>
1774
  <long-description><![CDATA[]]></long-description>
1775
- <tag line="4804" name="since" description="0.1"/>
1776
- <tag line="4804" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
1777
  <type by_reference="false">int</type>
1778
  </tag>
1779
- <tag line="4804" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
1780
  <type by_reference="false">array</type>
1781
  </tag>
1782
- <tag line="4804" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
1783
  <type by_reference="false">array</type>
1784
  </tag>
1785
- <tag line="4804" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
1786
  <type by_reference="false">array</type>
1787
  </tag>
1788
- <tag line="4804" name="return" description="success/failure message and NULL content" type="array">
1789
  <type by_reference="false">array</type>
1790
  </tag>
1791
  </docblock>
1792
- <argument line="4817">
1793
  <name>$post_id</name>
1794
  <default><![CDATA[]]></default>
1795
  <type/>
1796
  </argument>
1797
- <argument line="4817">
1798
  <name>$new_data</name>
1799
  <default><![CDATA[]]></default>
1800
  <type/>
1801
  </argument>
1802
- <argument line="4817">
1803
  <name>$tax_input</name>
1804
  <default><![CDATA[NULL]]></default>
1805
  <type/>
1806
  </argument>
1807
- <argument line="4817">
1808
  <name>$tax_actions</name>
1809
  <default><![CDATA[NULL]]></default>
1810
  <type/>
1811
  </argument>
1812
  </method>
1813
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="5065" package="Media Library Assistant">
1814
  <name>_remove_tags</name>
1815
  <full_name>_remove_tags</full_name>
1816
- <docblock line="5054">
1817
  <description><![CDATA[Remove tags from a term ids list]]></description>
1818
  <long-description><![CDATA[]]></long-description>
1819
- <tag line="5054" name="since" description="0.40"/>
1820
- <tag line="5054" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
1821
  <type by_reference="false">array</type>
1822
  </tag>
1823
- <tag line="5054" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
1824
  <type by_reference="false">array</type>
1825
  </tag>
1826
- <tag line="5054" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
1827
  <type by_reference="false">object</type>
1828
  </tag>
1829
- <tag line="5054" name="return" description="Term ids of the surviving tags" type="array">
1830
  <type by_reference="false">array</type>
1831
  </tag>
1832
  </docblock>
1833
- <argument line="5065">
1834
  <name>$terms_before</name>
1835
  <default><![CDATA[]]></default>
1836
  <type/>
1837
  </argument>
1838
- <argument line="5065">
1839
  <name>$tags</name>
1840
  <default><![CDATA[]]></default>
1841
  <type/>
1842
  </argument>
1843
- <argument line="5065">
1844
  <name>$taxonomy_obj</name>
1845
  <default><![CDATA[]]></default>
1846
  <type/>
1847
  </argument>
1848
  </method>
1849
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5114" package="Media Library Assistant">
1850
  <name>_hex_dump</name>
1851
  <full_name>_hex_dump</full_name>
1852
- <docblock line="5102">
1853
  <description><![CDATA[Format printable version of binary data]]></description>
1854
  <long-description><![CDATA[]]></long-description>
1855
- <tag line="5102" name="since" description="0.90"/>
1856
- <tag line="5102" name="param" description="Binary data" type="string" variable="$data">
1857
  <type by_reference="false">string</type>
1858
  </tag>
1859
- <tag line="5102" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
1860
  <type by_reference="false">integer</type>
1861
  </tag>
1862
- <tag line="5102" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
1863
  <type by_reference="false">\intger</type>
1864
  </tag>
1865
- <tag line="5102" name="param" description="offset of initial byte, or -1 to suppress printing offset information" type="integer" variable="$offset">
1866
  <type by_reference="false">integer</type>
1867
  </tag>
1868
- <tag line="5102" name="return" description="Printable representation of $data" type="string">
1869
  <type by_reference="false">string</type>
1870
  </tag>
1871
  </docblock>
1872
- <argument line="5114">
1873
  <name>$data</name>
1874
  <default><![CDATA[]]></default>
1875
  <type/>
1876
  </argument>
1877
- <argument line="5114">
1878
  <name>$limit</name>
1879
  <default><![CDATA[0]]></default>
1880
  <type/>
1881
  </argument>
1882
- <argument line="5114">
1883
  <name>$bytes_per_row</name>
1884
  <default><![CDATA[16]]></default>
1885
  <type/>
1886
  </argument>
1887
- <argument line="5114">
1888
  <name>$offset</name>
1889
  <default><![CDATA[-1]]></default>
1890
  <type/>
@@ -1892,10 +2166,10 @@ and meta data for a single attachment]]></description>
1892
  </method>
1893
  </class>
1894
  <markers>
1895
- <todo line="3068">encode the rest</todo>
1896
  </markers>
1897
  </file>
1898
- <file path="includes\class-mla-edit-media.php" hash="a6b3718de45abc2d4ede825d0a6eead0" package="Media Library Assistant">
1899
  <docblock line="2">
1900
  <description><![CDATA[Media Library Assistant Edit Media screen enhancements]]></description>
1901
  <long-description><![CDATA[]]></long-description>
@@ -1951,15 +2225,15 @@ and meta data for a single attachment]]></description>
1951
  </tag>
1952
  </docblock>
1953
  </constant>
1954
- <property final="false" static="true" visibility="private" line="340" namespace="global" package="Media Library Assistant">
1955
  <name>$mla_references</name>
1956
  <default><![CDATA[null]]></default>
1957
- <docblock line="330">
1958
  <description><![CDATA[Where-used values for the current item]]></description>
1959
  <long-description><![CDATA[<p>This array contains the Featured/Inserted/Gallery/MLA Gallery references for the item.
1960
  The array is built once each page load and cached for subsequent calls.</p>]]></long-description>
1961
- <tag line="330" name="since" description="0.80"/>
1962
- <tag line="330" name="var" description="" type="array">
1963
  <type by_reference="false">array</type>
1964
  </tag>
1965
  </docblock>
@@ -1988,308 +2262,434 @@ The array is built once each page load and cached for subsequent calls.</p>]]></
1988
  </tag>
1989
  </docblock>
1990
  </method>
1991
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="122" package="Media Library Assistant">
1992
  <name>mla_admin_enqueue_scripts_action</name>
1993
  <full_name>mla_admin_enqueue_scripts_action</full_name>
1994
- <docblock line="113">
1995
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
1996
  <long-description><![CDATA[]]></long-description>
1997
- <tag line="113" name="since" description="1.71"/>
1998
- <tag line="113" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
1999
  <type by_reference="false">string</type>
2000
  </tag>
2001
- <tag line="113" name="return" description="" type="void">
2002
  <type by_reference="false">void</type>
2003
  </tag>
2004
  </docblock>
2005
- <argument line="122">
2006
  <name>$page_hook</name>
2007
  <default><![CDATA[]]></default>
2008
  <type/>
2009
  </argument>
2010
  </method>
2011
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="158" package="Media Library Assistant">
2012
  <name>mla_post_updated_messages_filter</name>
2013
  <full_name>mla_post_updated_messages_filter</full_name>
2014
- <docblock line="148">
2015
  <description><![CDATA[Adds mapping update messages for display at the top of the Edit Media screen.]]></description>
2016
  <long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
2017
- <tag line="148" name="since" description="1.10"/>
2018
- <tag line="148" name="param" description="messages for the Edit screen" type="array" variable="$messages">
2019
  <type by_reference="false">array</type>
2020
  </tag>
2021
- <tag line="148" name="return" description="updated messages" type="array">
2022
  <type by_reference="false">array</type>
2023
  </tag>
2024
  </docblock>
2025
- <argument line="158">
2026
  <name>$messages</name>
2027
  <default><![CDATA[]]></default>
2028
  <type/>
2029
  </argument>
2030
  </method>
2031
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="175" package="Media Library Assistant">
2032
  <name>mla_attachment_submitbox_action</name>
2033
  <full_name>mla_attachment_submitbox_action</full_name>
2034
- <docblock line="167">
2035
  <description><![CDATA[Adds Last Modified date to the Submit box on the Edit Media screen.]]></description>
2036
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
2037
- <tag line="167" name="since" description="0.80"/>
2038
- <tag line="167" name="return" description="echoes the HTML markup for the label and value" type="void">
2039
  <type by_reference="false">void</type>
2040
  </tag>
2041
  </docblock>
2042
  </method>
2043
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="211" package="Media Library Assistant">
2044
  <name>mla_add_meta_boxes_action</name>
2045
  <full_name>mla_add_meta_boxes_action</full_name>
2046
- <docblock line="200">
2047
  <description><![CDATA[Registers meta boxes for the Edit Media screen.]]></description>
2048
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
2049
- <tag line="200" name="since" description="0.80"/>
2050
- <tag line="200" name="param" description="type of the current post, e.g., 'attachment' (optional, default 'unknown')" type="string" variable="$post_type">
2051
  <type by_reference="false">string</type>
2052
  </tag>
2053
- <tag line="200" name="param" description="current post (optional, default (object) array ( 'ID' =&gt; 0 ))" type="object" variable="$post">
2054
  <type by_reference="false">object</type>
2055
  </tag>
2056
- <tag line="200" name="return" description="" type="void">
2057
  <type by_reference="false">void</type>
2058
  </tag>
2059
  </docblock>
2060
- <argument line="211">
2061
  <name>$post_type</name>
2062
  <default><![CDATA['unknown']]></default>
2063
  <type/>
2064
  </argument>
2065
- <argument line="211">
2066
  <name>$post</name>
2067
  <default><![CDATA[NULL]]></default>
2068
  <type/>
2069
  </argument>
2070
  </method>
2071
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="290" package="Media Library Assistant">
2072
  <name>mla_edit_add_help_tab</name>
2073
  <full_name>mla_edit_add_help_tab</full_name>
2074
- <docblock line="280">
2075
  <description><![CDATA[Add contextual help tabs to the WordPress Edit Media page]]></description>
2076
  <long-description><![CDATA[]]></long-description>
2077
- <tag line="280" name="since" description="0.90"/>
2078
- <tag line="280" name="param" description="title as shown on the screen" type="string" variable="$admin_title">
2079
  <type by_reference="false">string</type>
2080
  </tag>
2081
- <tag line="280" name="param" description="title as shown in the HTML header" type="string" variable="$title">
2082
  <type by_reference="false">string</type>
2083
  </tag>
2084
- <tag line="280" name="return" description="" type="void">
2085
  <type by_reference="false">void</type>
2086
  </tag>
2087
  </docblock>
2088
- <argument line="290">
2089
  <name>$admin_title</name>
2090
  <default><![CDATA[]]></default>
2091
  <type/>
2092
  </argument>
2093
- <argument line="290">
2094
  <name>$title</name>
2095
  <default><![CDATA[]]></default>
2096
  <type/>
2097
  </argument>
2098
  </method>
2099
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="352" package="Media Library Assistant">
2100
  <name>mla_parent_info_handler</name>
2101
  <full_name>mla_parent_info_handler</full_name>
2102
- <docblock line="342">
2103
  <description><![CDATA[Renders the Parent Info meta box on the Edit Media page.]]></description>
2104
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2105
- <tag line="342" name="since" description="0.80"/>
2106
- <tag line="342" name="param" description="current post" type="object" variable="$post">
2107
  <type by_reference="false">object</type>
2108
  </tag>
2109
- <tag line="342" name="return" description="echoes the HTML markup for the meta box content" type="void">
2110
  <type by_reference="false">void</type>
2111
  </tag>
2112
  </docblock>
2113
- <argument line="352">
2114
  <name>$post</name>
2115
  <default><![CDATA[]]></default>
2116
  <type/>
2117
  </argument>
2118
  </method>
2119
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="379" package="Media Library Assistant">
2120
  <name>mla_menu_order_handler</name>
2121
  <full_name>mla_menu_order_handler</full_name>
2122
- <docblock line="369">
2123
  <description><![CDATA[Renders the Menu Order meta box on the Edit Media page.]]></description>
2124
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2125
- <tag line="369" name="since" description="0.80"/>
2126
- <tag line="369" name="param" description="current post" type="object" variable="$post">
2127
  <type by_reference="false">object</type>
2128
  </tag>
2129
- <tag line="369" name="return" description="echoes the HTML markup for the meta box content" type="void">
2130
  <type by_reference="false">void</type>
2131
  </tag>
2132
  </docblock>
2133
- <argument line="379">
2134
  <name>$post</name>
2135
  <default><![CDATA[]]></default>
2136
  <type/>
2137
  </argument>
2138
  </method>
2139
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="394" package="Media Library Assistant">
2140
  <name>mla_image_metadata_handler</name>
2141
  <full_name>mla_image_metadata_handler</full_name>
2142
- <docblock line="384">
2143
  <description><![CDATA[Renders the Image Metadata meta box on the Edit Media page.]]></description>
2144
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2145
- <tag line="384" name="since" description="0.80"/>
2146
- <tag line="384" name="param" description="current post" type="object" variable="$post">
2147
  <type by_reference="false">object</type>
2148
  </tag>
2149
- <tag line="384" name="return" description="echoes the HTML markup for the meta box content" type="void">
2150
  <type by_reference="false">void</type>
2151
  </tag>
2152
  </docblock>
2153
- <argument line="394">
2154
  <name>$post</name>
2155
  <default><![CDATA[]]></default>
2156
  <type/>
2157
  </argument>
2158
  </method>
2159
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="416" package="Media Library Assistant">
2160
  <name>mla_featured_in_handler</name>
2161
  <full_name>mla_featured_in_handler</full_name>
2162
- <docblock line="406">
2163
  <description><![CDATA[Renders the Featured in meta box on the Edit Media page.]]></description>
2164
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2165
- <tag line="406" name="since" description="0.80"/>
2166
- <tag line="406" name="param" description="current post" type="object" variable="$post">
2167
  <type by_reference="false">object</type>
2168
  </tag>
2169
- <tag line="406" name="return" description="echoes the HTML markup for the meta box content" type="void">
2170
  <type by_reference="false">void</type>
2171
  </tag>
2172
  </docblock>
2173
- <argument line="416">
2174
  <name>$post</name>
2175
  <default><![CDATA[]]></default>
2176
  <type/>
2177
  </argument>
2178
  </method>
2179
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="448" package="Media Library Assistant">
2180
  <name>mla_inserted_in_handler</name>
2181
  <full_name>mla_inserted_in_handler</full_name>
2182
- <docblock line="438">
2183
  <description><![CDATA[Renders the Inserted in meta box on the Edit Media page.]]></description>
2184
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2185
- <tag line="438" name="since" description="0.80"/>
2186
- <tag line="438" name="param" description="current post" type="object" variable="$post">
2187
  <type by_reference="false">object</type>
2188
  </tag>
2189
- <tag line="438" name="return" description="echoes the HTML markup for the meta box content" type="void">
2190
  <type by_reference="false">void</type>
2191
  </tag>
2192
  </docblock>
2193
- <argument line="448">
2194
  <name>$post</name>
2195
  <default><![CDATA[]]></default>
2196
  <type/>
2197
  </argument>
2198
  </method>
2199
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="484" package="Media Library Assistant">
2200
  <name>mla_gallery_in_handler</name>
2201
  <full_name>mla_gallery_in_handler</full_name>
2202
- <docblock line="474">
2203
  <description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
2204
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2205
- <tag line="474" name="since" description="0.80"/>
2206
- <tag line="474" name="param" description="current post" type="object" variable="$post">
2207
  <type by_reference="false">object</type>
2208
  </tag>
2209
- <tag line="474" name="return" description="echoes the HTML markup for the meta box content" type="void">
2210
  <type by_reference="false">void</type>
2211
  </tag>
2212
  </docblock>
2213
- <argument line="484">
2214
  <name>$post</name>
2215
  <default><![CDATA[]]></default>
2216
  <type/>
2217
  </argument>
2218
  </method>
2219
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="516" package="Media Library Assistant">
2220
  <name>mla_mla_gallery_in_handler</name>
2221
  <full_name>mla_mla_gallery_in_handler</full_name>
2222
- <docblock line="506">
2223
  <description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
2224
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2225
- <tag line="506" name="since" description="0.80"/>
2226
- <tag line="506" name="param" description="current post" type="object" variable="$post">
2227
  <type by_reference="false">object</type>
2228
  </tag>
2229
- <tag line="506" name="return" description="echoes the HTML markup for the meta box content" type="void">
2230
  <type by_reference="false">void</type>
2231
  </tag>
2232
  </docblock>
2233
- <argument line="516">
2234
  <name>$post</name>
2235
  <default><![CDATA[]]></default>
2236
  <type/>
2237
  </argument>
2238
  </method>
2239
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="548" package="Media Library Assistant">
2240
  <name>mla_edit_attachment_action</name>
2241
  <full_name>mla_edit_attachment_action</full_name>
2242
- <docblock line="538">
2243
  <description><![CDATA[Saves updates from the Edit Media screen.]]></description>
2244
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
2245
- <tag line="538" name="since" description="0.80"/>
2246
- <tag line="538" name="param" description="ID of the current post" type="integer" variable="$post_ID">
2247
  <type by_reference="false">integer</type>
2248
  </tag>
2249
- <tag line="538" name="return" description="" type="void">
2250
  <type by_reference="false">void</type>
2251
  </tag>
2252
  </docblock>
2253
- <argument line="548">
2254
  <name>$post_ID</name>
2255
  <default><![CDATA[]]></default>
2256
  <type/>
2257
  </argument>
2258
  </method>
2259
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="578" package="Media Library Assistant">
2260
- <name>mla_hierarchical_meta_box</name>
2261
- <full_name>mla_hierarchical_meta_box</full_name>
2262
- <docblock line="563">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2263
  <description><![CDATA[Display taxonomy "checklist" form fields]]></description>
2264
- <long-description><![CDATA[<p>Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.
2265
  Includes the "? Search" area to filter the term checklist by entering part
2266
  or all of a word/phrase in the term label.
2267
  Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p>]]></long-description>
2268
- <tag line="563" name="since" description="1.71"/>
2269
- <tag line="563" name="param" description="The current post" type="object" variable="$post">
2270
  <type by_reference="false">object</type>
2271
  </tag>
2272
- <tag line="563" name="param" description="The meta box parameters" type="array" variable="$box">
2273
  <type by_reference="false">array</type>
2274
  </tag>
2275
- <tag line="563" name="return" description="Echoes HTML for the form fields" type="void">
2276
  <type by_reference="false">void</type>
2277
  </tag>
2278
  </docblock>
2279
- <argument line="578">
2280
- <name>$post</name>
2281
  <default><![CDATA[]]></default>
2282
  <type/>
2283
  </argument>
2284
- <argument line="578">
2285
  <name>$box</name>
2286
  <default><![CDATA[]]></default>
2287
  <type/>
2288
  </argument>
2289
  </method>
2290
  </class>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2291
  </file>
2292
- <file path="includes\class-mla-list-table.php" hash="b64a62ac1b4af8cd93ec10023ec73830" package="Media Library Assistant">
2293
  <docblock line="2">
2294
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
2295
  <long-description><![CDATA[]]></long-description>
@@ -2669,605 +3069,605 @@ is given special treatment when columns are processed.</p>]]></long-description>
2669
  <type/>
2670
  </argument>
2671
  </method>
2672
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="649" package="Media Library Assistant">
2673
  <name>column_ID_parent</name>
2674
  <full_name>column_ID_parent</full_name>
2675
- <docblock line="641">
2676
  <description><![CDATA[Supply the content for a custom column]]></description>
2677
  <long-description><![CDATA[]]></long-description>
2678
- <tag line="641" name="since" description="0.1"/>
2679
- <tag line="641" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2680
  <type by_reference="false">array</type>
2681
  </tag>
2682
- <tag line="641" name="return" description="HTML markup to be placed inside the column" type="string">
2683
  <type by_reference="false">string</type>
2684
  </tag>
2685
  </docblock>
2686
- <argument line="649">
2687
  <name>$item</name>
2688
  <default><![CDATA[]]></default>
2689
  <type/>
2690
  </argument>
2691
  </method>
2692
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="682" package="Media Library Assistant">
2693
  <name>column_title_name</name>
2694
  <full_name>column_title_name</full_name>
2695
- <docblock line="674">
2696
  <description><![CDATA[Supply the content for a custom column]]></description>
2697
  <long-description><![CDATA[]]></long-description>
2698
- <tag line="674" name="since" description="0.1"/>
2699
- <tag line="674" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2700
  <type by_reference="false">array</type>
2701
  </tag>
2702
- <tag line="674" name="return" description="HTML markup to be placed inside the column" type="string">
2703
  <type by_reference="false">string</type>
2704
  </tag>
2705
  </docblock>
2706
- <argument line="682">
2707
  <name>$item</name>
2708
  <default><![CDATA[]]></default>
2709
  <type/>
2710
  </argument>
2711
  </method>
2712
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="706" package="Media Library Assistant">
2713
  <name>column_post_title</name>
2714
  <full_name>column_post_title</full_name>
2715
- <docblock line="698">
2716
  <description><![CDATA[Supply the content for a custom column]]></description>
2717
  <long-description><![CDATA[]]></long-description>
2718
- <tag line="698" name="since" description="0.1"/>
2719
- <tag line="698" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2720
  <type by_reference="false">array</type>
2721
  </tag>
2722
- <tag line="698" name="return" description="HTML markup to be placed inside the column" type="string">
2723
  <type by_reference="false">string</type>
2724
  </tag>
2725
  </docblock>
2726
- <argument line="706">
2727
  <name>$item</name>
2728
  <default><![CDATA[]]></default>
2729
  <type/>
2730
  </argument>
2731
  </method>
2732
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="724" package="Media Library Assistant">
2733
  <name>column_post_name</name>
2734
  <full_name>column_post_name</full_name>
2735
- <docblock line="716">
2736
  <description><![CDATA[Supply the content for a custom column]]></description>
2737
  <long-description><![CDATA[]]></long-description>
2738
- <tag line="716" name="since" description="0.1"/>
2739
- <tag line="716" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2740
  <type by_reference="false">array</type>
2741
  </tag>
2742
- <tag line="716" name="return" description="HTML markup to be placed inside the column" type="string">
2743
  <type by_reference="false">string</type>
2744
  </tag>
2745
  </docblock>
2746
- <argument line="724">
2747
  <name>$item</name>
2748
  <default><![CDATA[]]></default>
2749
  <type/>
2750
  </argument>
2751
  </method>
2752
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="742" package="Media Library Assistant">
2753
  <name>column_parent</name>
2754
  <full_name>column_parent</full_name>
2755
- <docblock line="734">
2756
  <description><![CDATA[Supply the content for a custom column]]></description>
2757
  <long-description><![CDATA[]]></long-description>
2758
- <tag line="734" name="since" description="0.1"/>
2759
- <tag line="734" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2760
  <type by_reference="false">array</type>
2761
  </tag>
2762
- <tag line="734" name="return" description="HTML markup to be placed inside the column" type="string">
2763
  <type by_reference="false">string</type>
2764
  </tag>
2765
  </docblock>
2766
- <argument line="742">
2767
  <name>$item</name>
2768
  <default><![CDATA[]]></default>
2769
  <type/>
2770
  </argument>
2771
  </method>
2772
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="768" package="Media Library Assistant">
2773
  <name>column_menu_order</name>
2774
  <full_name>column_menu_order</full_name>
2775
- <docblock line="760">
2776
  <description><![CDATA[Supply the content for a custom column]]></description>
2777
  <long-description><![CDATA[]]></long-description>
2778
- <tag line="760" name="since" description="0.60"/>
2779
- <tag line="760" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2780
  <type by_reference="false">array</type>
2781
  </tag>
2782
- <tag line="760" name="return" description="HTML markup to be placed inside the column" type="string">
2783
  <type by_reference="false">string</type>
2784
  </tag>
2785
  </docblock>
2786
- <argument line="768">
2787
  <name>$item</name>
2788
  <default><![CDATA[]]></default>
2789
  <type/>
2790
  </argument>
2791
  </method>
2792
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="780" package="Media Library Assistant">
2793
  <name>column_featured</name>
2794
  <full_name>column_featured</full_name>
2795
- <docblock line="772">
2796
  <description><![CDATA[Supply the content for a custom column]]></description>
2797
  <long-description><![CDATA[]]></long-description>
2798
- <tag line="772" name="since" description="0.1"/>
2799
- <tag line="772" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2800
  <type by_reference="false">array</type>
2801
  </tag>
2802
- <tag line="772" name="return" description="HTML markup to be placed inside the column" type="string">
2803
  <type by_reference="false">string</type>
2804
  </tag>
2805
  </docblock>
2806
- <argument line="780">
2807
  <name>$item</name>
2808
  <default><![CDATA[]]></default>
2809
  <type/>
2810
  </argument>
2811
  </method>
2812
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="814" package="Media Library Assistant">
2813
  <name>column_inserted</name>
2814
  <full_name>column_inserted</full_name>
2815
- <docblock line="806">
2816
  <description><![CDATA[Supply the content for a custom column]]></description>
2817
  <long-description><![CDATA[]]></long-description>
2818
- <tag line="806" name="since" description="0.1"/>
2819
- <tag line="806" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2820
  <type by_reference="false">array</type>
2821
  </tag>
2822
- <tag line="806" name="return" description="HTML markup to be placed inside the column" type="string">
2823
  <type by_reference="false">string</type>
2824
  </tag>
2825
  </docblock>
2826
- <argument line="814">
2827
  <name>$item</name>
2828
  <default><![CDATA[]]></default>
2829
  <type/>
2830
  </argument>
2831
  </method>
2832
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="852" package="Media Library Assistant">
2833
  <name>column_galleries</name>
2834
  <full_name>column_galleries</full_name>
2835
- <docblock line="844">
2836
  <description><![CDATA[Supply the content for a custom column]]></description>
2837
  <long-description><![CDATA[]]></long-description>
2838
- <tag line="844" name="since" description="0.70"/>
2839
- <tag line="844" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2840
  <type by_reference="false">array</type>
2841
  </tag>
2842
- <tag line="844" name="return" description="HTML markup to be placed inside the column" type="string">
2843
  <type by_reference="false">string</type>
2844
  </tag>
2845
  </docblock>
2846
- <argument line="852">
2847
  <name>$item</name>
2848
  <default><![CDATA[]]></default>
2849
  <type/>
2850
  </argument>
2851
  </method>
2852
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="886" package="Media Library Assistant">
2853
  <name>column_mla_galleries</name>
2854
  <full_name>column_mla_galleries</full_name>
2855
- <docblock line="878">
2856
  <description><![CDATA[Supply the content for a custom column]]></description>
2857
  <long-description><![CDATA[]]></long-description>
2858
- <tag line="878" name="since" description="0.70"/>
2859
- <tag line="878" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2860
  <type by_reference="false">array</type>
2861
  </tag>
2862
- <tag line="878" name="return" description="HTML markup to be placed inside the column" type="string">
2863
  <type by_reference="false">string</type>
2864
  </tag>
2865
  </docblock>
2866
- <argument line="886">
2867
  <name>$item</name>
2868
  <default><![CDATA[]]></default>
2869
  <type/>
2870
  </argument>
2871
  </method>
2872
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="920" package="Media Library Assistant">
2873
  <name>column_alt_text</name>
2874
  <full_name>column_alt_text</full_name>
2875
- <docblock line="912">
2876
  <description><![CDATA[Supply the content for a custom column]]></description>
2877
  <long-description><![CDATA[]]></long-description>
2878
- <tag line="912" name="since" description="0.1"/>
2879
- <tag line="912" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2880
  <type by_reference="false">array</type>
2881
  </tag>
2882
- <tag line="912" name="return" description="HTML markup to be placed inside the column" type="string">
2883
  <type by_reference="false">string</type>
2884
  </tag>
2885
  </docblock>
2886
- <argument line="920">
2887
  <name>$item</name>
2888
  <default><![CDATA[]]></default>
2889
  <type/>
2890
  </argument>
2891
  </method>
2892
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="941" package="Media Library Assistant">
2893
  <name>column_caption</name>
2894
  <full_name>column_caption</full_name>
2895
- <docblock line="933">
2896
  <description><![CDATA[Supply the content for a custom column]]></description>
2897
  <long-description><![CDATA[]]></long-description>
2898
- <tag line="933" name="since" description="0.1"/>
2899
- <tag line="933" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2900
  <type by_reference="false">array</type>
2901
  </tag>
2902
- <tag line="933" name="return" description="HTML markup to be placed inside the column" type="string">
2903
  <type by_reference="false">string</type>
2904
  </tag>
2905
  </docblock>
2906
- <argument line="941">
2907
  <name>$item</name>
2908
  <default><![CDATA[]]></default>
2909
  <type/>
2910
  </argument>
2911
  </method>
2912
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="953" package="Media Library Assistant">
2913
  <name>column_description</name>
2914
  <full_name>column_description</full_name>
2915
- <docblock line="945">
2916
  <description><![CDATA[Supply the content for a custom column]]></description>
2917
  <long-description><![CDATA[]]></long-description>
2918
- <tag line="945" name="since" description="0.1"/>
2919
- <tag line="945" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2920
  <type by_reference="false">array</type>
2921
  </tag>
2922
- <tag line="945" name="return" description="HTML markup to be placed inside the column" type="string">
2923
  <type by_reference="false">string</type>
2924
  </tag>
2925
  </docblock>
2926
- <argument line="953">
2927
  <name>$item</name>
2928
  <default><![CDATA[]]></default>
2929
  <type/>
2930
  </argument>
2931
  </method>
2932
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="965" package="Media Library Assistant">
2933
  <name>column_post_mime_type</name>
2934
  <full_name>column_post_mime_type</full_name>
2935
- <docblock line="957">
2936
  <description><![CDATA[Supply the content for a custom column]]></description>
2937
  <long-description><![CDATA[]]></long-description>
2938
- <tag line="957" name="since" description="0.30"/>
2939
- <tag line="957" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2940
  <type by_reference="false">array</type>
2941
  </tag>
2942
- <tag line="957" name="return" description="HTML markup to be placed inside the column" type="string">
2943
  <type by_reference="false">string</type>
2944
  </tag>
2945
  </docblock>
2946
- <argument line="965">
2947
  <name>$item</name>
2948
  <default><![CDATA[]]></default>
2949
  <type/>
2950
  </argument>
2951
  </method>
2952
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="981" package="Media Library Assistant">
2953
  <name>column_file_url</name>
2954
  <full_name>column_file_url</full_name>
2955
- <docblock line="973">
2956
  <description><![CDATA[Supply the content for a custom column]]></description>
2957
  <long-description><![CDATA[]]></long-description>
2958
- <tag line="973" name="since" description="0.1"/>
2959
- <tag line="973" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2960
  <type by_reference="false">array</type>
2961
  </tag>
2962
- <tag line="973" name="return" description="HTML markup to be placed inside the column" type="string">
2963
  <type by_reference="false">string</type>
2964
  </tag>
2965
  </docblock>
2966
- <argument line="981">
2967
  <name>$item</name>
2968
  <default><![CDATA[]]></default>
2969
  <type/>
2970
  </argument>
2971
  </method>
2972
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="995" package="Media Library Assistant">
2973
  <name>column_base_file</name>
2974
  <full_name>column_base_file</full_name>
2975
- <docblock line="987">
2976
  <description><![CDATA[Supply the content for a custom column]]></description>
2977
  <long-description><![CDATA[]]></long-description>
2978
- <tag line="987" name="since" description="0.1"/>
2979
- <tag line="987" name="param" description="A singular attachment (post) object" type="array" variable="$item">
2980
  <type by_reference="false">array</type>
2981
  </tag>
2982
- <tag line="987" name="return" description="HTML markup to be placed inside the column" type="string">
2983
  <type by_reference="false">string</type>
2984
  </tag>
2985
  </docblock>
2986
- <argument line="995">
2987
  <name>$item</name>
2988
  <default><![CDATA[]]></default>
2989
  <type/>
2990
  </argument>
2991
  </method>
2992
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1007" package="Media Library Assistant">
2993
  <name>column_date</name>
2994
  <full_name>column_date</full_name>
2995
- <docblock line="999">
2996
  <description><![CDATA[Supply the content for a custom column]]></description>
2997
  <long-description><![CDATA[]]></long-description>
2998
- <tag line="999" name="since" description="0.1"/>
2999
- <tag line="999" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3000
  <type by_reference="false">array</type>
3001
  </tag>
3002
- <tag line="999" name="return" description="HTML markup to be placed inside the column" type="string">
3003
  <type by_reference="false">string</type>
3004
  </tag>
3005
  </docblock>
3006
- <argument line="1007">
3007
  <name>$item</name>
3008
  <default><![CDATA[]]></default>
3009
  <type/>
3010
  </argument>
3011
  </method>
3012
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1039" package="Media Library Assistant">
3013
  <name>column_modified</name>
3014
  <full_name>column_modified</full_name>
3015
- <docblock line="1031">
3016
  <description><![CDATA[Supply the content for a custom column]]></description>
3017
  <long-description><![CDATA[]]></long-description>
3018
- <tag line="1031" name="since" description="0.30"/>
3019
- <tag line="1031" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3020
  <type by_reference="false">array</type>
3021
  </tag>
3022
- <tag line="1031" name="return" description="HTML markup to be placed inside the column" type="string">
3023
  <type by_reference="false">string</type>
3024
  </tag>
3025
  </docblock>
3026
- <argument line="1039">
3027
  <name>$item</name>
3028
  <default><![CDATA[]]></default>
3029
  <type/>
3030
  </argument>
3031
  </method>
3032
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1068" package="Media Library Assistant">
3033
  <name>column_author</name>
3034
  <full_name>column_author</full_name>
3035
- <docblock line="1060">
3036
  <description><![CDATA[Supply the content for a custom column]]></description>
3037
  <long-description><![CDATA[]]></long-description>
3038
- <tag line="1060" name="since" description="0.30"/>
3039
- <tag line="1060" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3040
  <type by_reference="false">array</type>
3041
  </tag>
3042
- <tag line="1060" name="return" description="HTML markup to be placed inside the column" type="string">
3043
  <type by_reference="false">string</type>
3044
  </tag>
3045
  </docblock>
3046
- <argument line="1068">
3047
  <name>$item</name>
3048
  <default><![CDATA[]]></default>
3049
  <type/>
3050
  </argument>
3051
  </method>
3052
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1090" package="Media Library Assistant">
3053
  <name>column_attached_to</name>
3054
  <full_name>column_attached_to</full_name>
3055
- <docblock line="1082">
3056
  <description><![CDATA[Supply the content for a custom column]]></description>
3057
  <long-description><![CDATA[]]></long-description>
3058
- <tag line="1082" name="since" description="0.1"/>
3059
- <tag line="1082" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3060
  <type by_reference="false">array</type>
3061
  </tag>
3062
- <tag line="1082" name="return" description="HTML markup to be placed inside the column" type="string">
3063
  <type by_reference="false">string</type>
3064
  </tag>
3065
  </docblock>
3066
- <argument line="1090">
3067
  <name>$item</name>
3068
  <default><![CDATA[]]></default>
3069
  <type/>
3070
  </argument>
3071
  </method>
3072
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1124" package="Media Library Assistant">
3073
  <name>mla_submenu_arguments</name>
3074
  <full_name>mla_submenu_arguments</full_name>
3075
- <docblock line="1115">
3076
  <description><![CDATA[Process $_REQUEST, building $submenu_arguments]]></description>
3077
  <long-description><![CDATA[]]></long-description>
3078
- <tag line="1115" name="since" description="1.42"/>
3079
- <tag line="1115" name="param" description="Optional: Include the &quot;click filter&quot; values in the results" type="boolean" variable="$include_filters">
3080
  <type by_reference="false">boolean</type>
3081
  </tag>
3082
- <tag line="1115" name="return" description="non-empty view, search, filter and sort arguments" type="array">
3083
  <type by_reference="false">array</type>
3084
  </tag>
3085
  </docblock>
3086
- <argument line="1124">
3087
  <name>$include_filters</name>
3088
  <default><![CDATA[true]]></default>
3089
  <type/>
3090
  </argument>
3091
  </method>
3092
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1228" package="Media Library Assistant">
3093
  <name>pagination</name>
3094
  <full_name>pagination</full_name>
3095
- <docblock line="1220">
3096
  <description><![CDATA[Display the pagination, adding view, search and filter arguments]]></description>
3097
  <long-description><![CDATA[]]></long-description>
3098
- <tag line="1220" name="since" description="1.42"/>
3099
- <tag line="1220" name="param" description="'top' | 'bottom'" type="string" variable="$which">
3100
  <type by_reference="false">string</type>
3101
  </tag>
3102
- <tag line="1220" name="return" description="" type="void">
3103
  <type by_reference="false">void</type>
3104
  </tag>
3105
  </docblock>
3106
- <argument line="1228">
3107
  <name>$which</name>
3108
  <default><![CDATA[]]></default>
3109
  <type/>
3110
  </argument>
3111
  </method>
3112
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1242" package="Media Library Assistant">
3113
  <name>get_columns</name>
3114
  <full_name>get_columns</full_name>
3115
- <docblock line="1235">
3116
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
3117
  <long-description><![CDATA[]]></long-description>
3118
- <tag line="1235" name="since" description="0.1"/>
3119
- <tag line="1235" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
3120
  <type by_reference="false">array</type>
3121
  </tag>
3122
  </docblock>
3123
  </method>
3124
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1254" package="Media Library Assistant">
3125
  <name>get_hidden_columns</name>
3126
  <full_name>get_hidden_columns</full_name>
3127
- <docblock line="1246">
3128
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
3129
  from default values if the option is not set]]></description>
3130
  <long-description><![CDATA[]]></long-description>
3131
- <tag line="1246" name="since" description="0.1"/>
3132
- <tag line="1246" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
3133
  <type by_reference="false">array</type>
3134
  </tag>
3135
  </docblock>
3136
  </method>
3137
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1274" package="Media Library Assistant">
3138
  <name>get_sortable_columns</name>
3139
  <full_name>get_sortable_columns</full_name>
3140
- <docblock line="1264">
3141
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
3142
  and the value is db column to sort by.]]></description>
3143
  <long-description><![CDATA[<p>Also notes the current sort column,
3144
  if set.</p>]]></long-description>
3145
- <tag line="1264" name="since" description="0.1"/>
3146
- <tag line="1264" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
3147
  <type by_reference="false">array</type>
3148
  </tag>
3149
  </docblock>
3150
  </method>
3151
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1300" package="Media Library Assistant">
3152
  <name>print_column_headers</name>
3153
  <full_name>print_column_headers</full_name>
3154
- <docblock line="1293">
3155
  <description><![CDATA[Print column headers, adding view, search and filter arguments]]></description>
3156
  <long-description><![CDATA[]]></long-description>
3157
- <tag line="1293" name="since" description="1.42"/>
3158
- <tag line="1293" name="param" description="Whether to set the id attribute or not" type="bool" variable="$with_id">
3159
  <type by_reference="false">bool</type>
3160
  </tag>
3161
  </docblock>
3162
- <argument line="1300">
3163
  <name>$with_id</name>
3164
  <default><![CDATA[true]]></default>
3165
  <type/>
3166
  </argument>
3167
  </method>
3168
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1317" package="Media Library Assistant">
3169
  <name>_get_view</name>
3170
  <full_name>_get_view</full_name>
3171
- <docblock line="1307">
3172
  <description><![CDATA[Returns HTML markup for one view that can be used with this table]]></description>
3173
  <long-description><![CDATA[]]></long-description>
3174
- <tag line="1307" name="since" description="1.40"/>
3175
- <tag line="1307" name="param" description="View slug, key to MLA_POST_MIME_TYPES array" type="string" variable="$view_slug">
3176
  <type by_reference="false">string</type>
3177
  </tag>
3178
- <tag line="1307" name="param" description="Slug for current view" type="string" variable="$current_view">
3179
  <type by_reference="false">string</type>
3180
  </tag>
3181
- <tag line="1307" name="return" description="| false HTML for link to display the view, false if count = zero" type="string">
3182
  <type by_reference="false">string</type>
3183
  </tag>
3184
  </docblock>
3185
- <argument line="1317">
3186
  <name>$view_slug</name>
3187
  <default><![CDATA[]]></default>
3188
  <type/>
3189
  </argument>
3190
- <argument line="1317">
3191
  <name>$current_view</name>
3192
  <default><![CDATA[]]></default>
3193
  <type/>
3194
  </argument>
3195
  </method>
3196
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1443" package="Media Library Assistant">
3197
  <name>get_views</name>
3198
  <full_name>get_views</full_name>
3199
- <docblock line="1435">
3200
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
3201
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
3202
- <tag line="1435" name="since" description="0.1"/>
3203
- <tag line="1435" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
3204
  <type by_reference="false">array</type>
3205
  </tag>
3206
  </docblock>
3207
  </method>
3208
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1494" package="Media Library Assistant">
3209
  <name>get_bulk_actions</name>
3210
  <full_name>get_bulk_actions</full_name>
3211
- <docblock line="1486">
3212
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
3213
  of bulk actions available on this table.]]></description>
3214
  <long-description><![CDATA[]]></long-description>
3215
- <tag line="1486" name="since" description="0.1"/>
3216
- <tag line="1486" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
3217
  <type by_reference="false">array</type>
3218
  </tag>
3219
  </docblock>
3220
  </method>
3221
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1524" package="Media Library Assistant">
3222
  <name>extra_tablenav</name>
3223
  <full_name>extra_tablenav</full_name>
3224
- <docblock line="1513">
3225
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
3226
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
3227
- <tag line="1513" name="since" description="0.1"/>
3228
- <tag line="1513" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
3229
  <type by_reference="false">string</type>
3230
  </tag>
3231
- <tag line="1513" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
3232
  <type by_reference="false">array</type>
3233
  </tag>
3234
  </docblock>
3235
- <argument line="1524">
3236
  <name>$which</name>
3237
  <default><![CDATA[]]></default>
3238
  <type/>
3239
  </argument>
3240
  </method>
3241
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1560" package="Media Library Assistant">
3242
  <name>prepare_items</name>
3243
  <full_name>prepare_items</full_name>
3244
- <docblock line="1548">
3245
  <description><![CDATA[Prepares the list of items for displaying]]></description>
3246
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
3247
  be used to query the database, sort and filter the data, and generally
3248
  get it ready to be displayed. At a minimum, we should set $this->items and
3249
  $this->set_pagination_args().</p>]]></long-description>
3250
- <tag line="1548" name="since" description="0.1"/>
3251
- <tag line="1548" name="return" description="" type="void">
3252
  <type by_reference="false">void</type>
3253
  </tag>
3254
  </docblock>
3255
  </method>
3256
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1607" package="Media Library Assistant">
3257
  <name>single_row</name>
3258
  <full_name>single_row</full_name>
3259
- <docblock line="1598">
3260
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
3261
  <long-description><![CDATA[]]></long-description>
3262
- <tag line="1598" name="since" description=".20"/>
3263
- <tag line="1598" name="param" description="the current item" type="object" variable="$item">
3264
  <type by_reference="false">object</type>
3265
  </tag>
3266
- <tag line="1598" name="return" description="Echoes the row HTML" type="void">
3267
  <type by_reference="false">void</type>
3268
  </tag>
3269
  </docblock>
3270
- <argument line="1607">
3271
  <name>$item</name>
3272
  <default><![CDATA[]]></default>
3273
  <type/>
@@ -3275,7 +3675,7 @@ $this->set_pagination_args().</p>]]></long-description>
3275
  </method>
3276
  </class>
3277
  </file>
3278
- <file path="includes\class-mla-main.php" hash="b8be73b15413fe7eff5ec5f2ba5100de" package="Media Library Assistant">
3279
  <docblock line="2">
3280
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
3281
  <long-description><![CDATA[]]></long-description>
@@ -3299,7 +3699,7 @@ of images and files held in the WordPress Media Library.]]></description>
3299
  <constant namespace="global" line="32" package="Media Library Assistant">
3300
  <name>CURRENT_MLA_VERSION</name>
3301
  <full_name>CURRENT_MLA_VERSION</full_name>
3302
- <value><![CDATA['1.71']]></value>
3303
  <docblock line="25">
3304
  <description><![CDATA[Current version number]]></description>
3305
  <long-description><![CDATA[]]></long-description>
@@ -3721,176 +4121,204 @@ going to the Edit Media screen.</p>]]></long-description>
3721
  <type/>
3722
  </argument>
3723
  </method>
3724
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="691" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3725
  <name>mla_render_admin_page</name>
3726
  <full_name>mla_render_admin_page</full_name>
3727
- <docblock line="684">
3728
  <description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
3729
  <long-description><![CDATA[]]></long-description>
3730
- <tag line="684" name="since" description="0.1"/>
3731
- <tag line="684" name="return" description="" type="void">
3732
  <type by_reference="false">void</type>
3733
  </tag>
3734
  </docblock>
3735
  </method>
3736
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1088" package="Media Library Assistant">
3737
  <name>mla_inline_edit_action</name>
3738
  <full_name>mla_inline_edit_action</full_name>
3739
- <docblock line="1079">
3740
  <description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
3741
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
3742
- <tag line="1079" name="since" description="0.20"/>
3743
- <tag line="1079" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
3744
  <type by_reference="false">void</type>
3745
  </tag>
3746
  </docblock>
3747
  </method>
3748
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1187" package="Media Library Assistant">
3749
  <name>_build_inline_edit_form</name>
3750
  <full_name>_build_inline_edit_form</full_name>
3751
- <docblock line="1176">
3752
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
3753
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
3754
- <tag line="1176" name="since" description="0.20"/>
3755
- <tag line="1176" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
3756
  <type by_reference="false">object</type>
3757
  </tag>
3758
- <tag line="1176" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
3759
  <type by_reference="false">string</type>
3760
  </tag>
3761
  </docblock>
3762
- <argument line="1187">
3763
  <name>$MLAListTable</name>
3764
  <default><![CDATA[]]></default>
3765
  <type/>
3766
  </argument>
3767
  </method>
3768
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1366" package="Media Library Assistant">
3769
  <name>_authors_dropdown</name>
3770
  <full_name>_authors_dropdown</full_name>
3771
- <docblock line="1355">
3772
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
3773
  <long-description><![CDATA[]]></long-description>
3774
- <tag line="1355" name="since" description="0.20"/>
3775
- <tag line="1355" name="param" description="Optional User ID of the current author, default 0" type="integer" variable="$author">
3776
  <type by_reference="false">integer</type>
3777
  </tag>
3778
- <tag line="1355" name="param" description="Optional HTML name attribute, default 'post_author'" type="string" variable="$name">
3779
  <type by_reference="false">string</type>
3780
  </tag>
3781
- <tag line="1355" name="param" description="Optional HTML class attribute, default 'authors'" type="string" variable="$class">
3782
  <type by_reference="false">string</type>
3783
  </tag>
3784
- <tag line="1355" name="return" description="HTML markup for the dropdown field or False" type="string|false">
3785
  <type by_reference="false">string</type>
3786
  <type by_reference="false">false</type>
3787
  </tag>
3788
  </docblock>
3789
- <argument line="1366">
3790
  <name>$author</name>
3791
  <default><![CDATA[0]]></default>
3792
  <type/>
3793
  </argument>
3794
- <argument line="1366">
3795
  <name>$name</name>
3796
  <default><![CDATA['post_author']]></default>
3797
  <type/>
3798
  </argument>
3799
- <argument line="1366">
3800
  <name>$class</name>
3801
  <default><![CDATA['authors']]></default>
3802
  <type/>
3803
  </argument>
3804
  </method>
3805
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1400" package="Media Library Assistant">
3806
  <name>_current_bulk_action</name>
3807
  <full_name>_current_bulk_action</full_name>
3808
- <docblock line="1393">
3809
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
3810
  <long-description><![CDATA[]]></long-description>
3811
- <tag line="1393" name="since" description="0.1"/>
3812
- <tag line="1393" name="return" description="The action name or False if no action was selected" type="string|false">
3813
  <type by_reference="false">string</type>
3814
  <type by_reference="false">false</type>
3815
  </tag>
3816
  </docblock>
3817
  </method>
3818
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1431" package="Media Library Assistant">
3819
  <name>_delete_single_item</name>
3820
  <full_name>_delete_single_item</full_name>
3821
- <docblock line="1422">
3822
  <description><![CDATA[Delete a single item permanently]]></description>
3823
  <long-description><![CDATA[]]></long-description>
3824
- <tag line="1422" name="since" description="0.1"/>
3825
- <tag line="1422" name="param" description="The form POST data" type="array" variable="$post_id">
3826
  <type by_reference="false">array</type>
3827
  </tag>
3828
- <tag line="1422" name="return" description="success/failure message and NULL content" type="array">
3829
  <type by_reference="false">array</type>
3830
  </tag>
3831
  </docblock>
3832
- <argument line="1431">
3833
  <name>$post_id</name>
3834
  <default><![CDATA[]]></default>
3835
  <type/>
3836
  </argument>
3837
  </method>
3838
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1466" package="Media Library Assistant">
3839
  <name>_display_single_item</name>
3840
  <full_name>_display_single_item</full_name>
3841
- <docblock line="1454">
3842
  <description><![CDATA[Display a single item sub page; prepare the form to
3843
  change the meta data for a single attachment.]]></description>
3844
  <long-description><![CDATA[<p>This function is not used in WordPress 3.5 and later.</p>]]></long-description>
3845
- <tag line="1454" name="since" description="0.1"/>
3846
- <tag line="1454" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
3847
  <type by_reference="false">int</type>
3848
  </tag>
3849
- <tag line="1454" name="return" description="message and/or HTML content" type="array">
3850
  <type by_reference="false">array</type>
3851
  </tag>
3852
  </docblock>
3853
- <argument line="1466">
3854
  <name>$post_id</name>
3855
  <default><![CDATA[]]></default>
3856
  <type/>
3857
  </argument>
3858
  </method>
3859
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1747" package="Media Library Assistant">
3860
  <name>_restore_single_item</name>
3861
  <full_name>_restore_single_item</full_name>
3862
- <docblock line="1738">
3863
  <description><![CDATA[Restore a single item from the Trash]]></description>
3864
  <long-description><![CDATA[]]></long-description>
3865
- <tag line="1738" name="since" description="0.1"/>
3866
- <tag line="1738" name="param" description="The form POST data" type="array" variable="$post_id">
3867
  <type by_reference="false">array</type>
3868
  </tag>
3869
- <tag line="1738" name="return" description="success/failure message and NULL content" type="array">
3870
  <type by_reference="false">array</type>
3871
  </tag>
3872
  </docblock>
3873
- <argument line="1747">
3874
  <name>$post_id</name>
3875
  <default><![CDATA[]]></default>
3876
  <type/>
3877
  </argument>
3878
  </method>
3879
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1787" package="Media Library Assistant">
3880
  <name>_trash_single_item</name>
3881
  <full_name>_trash_single_item</full_name>
3882
- <docblock line="1778">
3883
  <description><![CDATA[Move a single item to Trash]]></description>
3884
  <long-description><![CDATA[]]></long-description>
3885
- <tag line="1778" name="since" description="0.1"/>
3886
- <tag line="1778" name="param" description="The form POST data" type="array" variable="$post_id">
3887
  <type by_reference="false">array</type>
3888
  </tag>
3889
- <tag line="1778" name="return" description="success/failure message and NULL content" type="array">
3890
  <type by_reference="false">array</type>
3891
  </tag>
3892
  </docblock>
3893
- <argument line="1787">
3894
  <name>$post_id</name>
3895
  <default><![CDATA[]]></default>
3896
  <type/>
@@ -3898,13 +4326,16 @@ change the meta data for a single attachment.]]></description>
3898
  </method>
3899
  </class>
3900
  </file>
3901
- <file path="includes\class-mla-media-modal.php" hash="39e9555dea3d4bf0ef6b9140c1547ce4" package="Media Library Assistant">
3902
  <docblock line="2">
3903
  <description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
3904
  <long-description><![CDATA[]]></long-description>
3905
  <tag line="2" name="package" description="Media Library Assistant"/>
3906
  <tag line="2" name="since" description="1.20"/>
3907
  </docblock>
 
 
 
3908
  <class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
3909
  <extends/>
3910
  <name>MLAModal</name>
@@ -3954,67 +4385,106 @@ change the meta data for a single attachment.]]></description>
3954
  </tag>
3955
  </docblock>
3956
  </constant>
3957
- <property final="false" static="true" visibility="private" line="101" namespace="global" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3958
  <name>$media_item_args</name>
3959
  <default><![CDATA[array('errors' => null, 'in_modal' => false)]]></default>
3960
- <docblock line="94">
3961
  <description><![CDATA[The get_media_item_args array]]></description>
3962
  <long-description><![CDATA[]]></long-description>
3963
- <tag line="94" name="since" description="1.71"/>
3964
- <tag line="94" name="var" description="( 'errors' =&gt; array of strings, 'in_modal =&gt; boolean )" type="array">
3965
  <type by_reference="false">array</type>
3966
  </tag>
3967
  </docblock>
3968
  </property>
3969
- <property final="false" static="true" visibility="private" line="254" namespace="global" package="Media Library Assistant">
3970
  <name>$mla_media_modal_settings</name>
3971
- <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>
3972
- <docblock line="246">
3973
  <description><![CDATA[Share the settings values between mla_media_view_settings_filter
3974
  and mla_print_media_templates_action]]></description>
3975
  <long-description><![CDATA[]]></long-description>
3976
- <tag line="246" name="since" description="1.20"/>
3977
- <tag line="246" name="var" description="" type="array">
3978
  <type by_reference="false">array</type>
3979
  </tag>
3980
  </docblock>
3981
  </property>
3982
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="50" package="Media Library Assistant">
3983
  <name>initialize</name>
3984
  <full_name>initialize</full_name>
3985
- <docblock line="43">
3986
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
3987
  <long-description><![CDATA[]]></long-description>
3988
- <tag line="43" name="since" description="1.20"/>
3989
- <tag line="43" name="return" description="" type="void">
3990
  <type by_reference="false">void</type>
3991
  </tag>
3992
  </docblock>
3993
  </method>
3994
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="89" package="Media Library Assistant">
3995
  <name>mla_get_media_item_args_filter</name>
3996
  <full_name>mla_get_media_item_args_filter</full_name>
3997
- <docblock line="78">
3998
  <description><![CDATA[Saves the get_media_item_args array for the attachment_fields_to_edit filter]]></description>
3999
  <long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
4000
- <tag line="78" name="since" description="1.71"/>
4001
- <tag line="78" name="param" description="arguments for the get_media_item function in /wp-admin/includes/media.php" type="array" variable="$args">
4002
  <type by_reference="false">array</type>
4003
  </tag>
4004
- <tag line="78" name="return" description="arguments for the get_media_item function (unchanged)" type="array">
4005
  <type by_reference="false">array</type>
4006
  </tag>
4007
  </docblock>
4008
- <argument line="89">
4009
  <name>$args</name>
4010
  <default><![CDATA[]]></default>
4011
  <type/>
4012
  </argument>
4013
  </method>
4014
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="120" package="Media Library Assistant">
4015
  <name>mla_attachment_fields_to_edit_filter</name>
4016
  <full_name>mla_attachment_fields_to_edit_filter</full_name>
4017
- <docblock line="103">
4018
  <description><![CDATA[Add/change custom fields to the Edit Media screen and Modal Window]]></description>
4019
  <long-description><![CDATA[<p>Called from /wp-admin/includes/media.php, function get_compat_media_markup();
4020
  If "get_media_item_args"['in_modal'] => false ) its the Edit Media screen.
@@ -4022,175 +4492,200 @@ If "get_media_item_args"['in_modal'] => true ) its the Media Manager Modal Windo
4022
  For the Modal Window, $form_fields contains all the "compat-attachment-fields"
4023
  including the taxonomies, which we want to enhance.
4024
  Declared public because it is a filter.</p>]]></long-description>
4025
- <tag line="103" name="since" description="1.71"/>
4026
- <tag line="103" name="param" description="descriptors for the &quot;compat-attachment-fields&quot;" type="array" variable="$form_fields">
4027
  <type by_reference="false">array</type>
4028
  </tag>
4029
- <tag line="103" name="param" description="the post to be edited" type="object" variable="$post">
4030
  <type by_reference="false">object</type>
4031
  </tag>
4032
- <tag line="103" name="return" description="updated descriptors for the &quot;compat-attachment-fields&quot;" type="array">
4033
  <type by_reference="false">array</type>
4034
  </tag>
4035
  </docblock>
4036
- <argument line="120">
4037
  <name>$form_fields</name>
4038
  <default><![CDATA[]]></default>
4039
  <type/>
4040
  </argument>
4041
- <argument line="120">
4042
  <name>$post</name>
4043
  <default><![CDATA[]]></default>
4044
  <type/>
4045
  </argument>
4046
  </method>
4047
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="180" package="Media Library Assistant">
4048
  <name>_months_dropdown</name>
4049
  <full_name>_months_dropdown</full_name>
4050
- <docblock line="169">
4051
  <description><![CDATA[Display a monthly dropdown for filtering items]]></description>
4052
  <long-description><![CDATA[<p>Adapted from /wp-admin/includes/class-wp-list-table.php function months_dropdown()</p>]]></long-description>
4053
- <tag line="169" name="since" description="1.20"/>
4054
- <tag line="169" name="param" description="post_type, e.g., 'attachment'" type="string" variable="$post_type">
4055
  <type by_reference="false">string</type>
4056
  </tag>
4057
- <tag line="169" name="return" description="( value =&gt; label ) pairs" type="array">
4058
  <type by_reference="false">array</type>
4059
  </tag>
4060
  </docblock>
4061
- <argument line="180">
4062
  <name>$post_type</name>
4063
  <default><![CDATA[]]></default>
4064
  <type/>
4065
  </argument>
4066
  </method>
4067
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="221" package="Media Library Assistant">
4068
  <name>_terms_options</name>
4069
  <full_name>_terms_options</full_name>
4070
- <docblock line="212">
4071
  <description><![CDATA[Extract value and text elements from Dropdown HTML option tags]]></description>
4072
  <long-description><![CDATA[]]></long-description>
4073
- <tag line="212" name="since" description="1.20"/>
4074
- <tag line="212" name="param" description="HTML markup for taxonomy terms dropdown &lt;select&gt; tag" type="string" variable="$markup">
4075
  <type by_reference="false">string</type>
4076
  </tag>
4077
- <tag line="212" name="return" description="( value =&gt; label ) pairs" type="array">
4078
  <type by_reference="false">array</type>
4079
  </tag>
4080
  </docblock>
4081
- <argument line="221">
4082
  <name>$markup</name>
4083
  <default><![CDATA[]]></default>
4084
  <type/>
4085
  </argument>
4086
  </method>
4087
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="282" package="Media Library Assistant">
4088
  <name>mla_media_view_settings_filter</name>
4089
  <full_name>mla_media_view_settings_filter</full_name>
4090
- <docblock line="271">
4091
  <description><![CDATA[Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
4092
  <long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
4093
- <tag line="271" name="since" description="1.20"/>
4094
- <tag line="271" name="param" description="associative array with setting =&gt; value pairs" type="array" variable="$settings">
4095
  <type by_reference="false">array</type>
4096
  </tag>
4097
- <tag line="271" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
4098
  <type by_reference="false">object</type>
4099
  </tag>
4100
- <tag line="271" name="return" description="updated $settings array" type="array">
4101
  <type by_reference="false">array</type>
4102
  </tag>
4103
  </docblock>
4104
- <argument line="282">
4105
  <name>$settings</name>
4106
  <default><![CDATA[]]></default>
4107
  <type/>
4108
  </argument>
4109
- <argument line="282">
4110
  <name>$post</name>
4111
  <default><![CDATA[]]></default>
4112
  <type/>
4113
  </argument>
4114
  </method>
4115
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="322" package="Media Library Assistant">
4116
  <name>mla_media_view_strings_filter</name>
4117
  <full_name>mla_media_view_strings_filter</full_name>
4118
- <docblock line="311">
4119
  <description><![CDATA[Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
4120
  <long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
4121
- <tag line="311" name="since" description="1.20"/>
4122
- <tag line="311" name="param" description="associative array with string =&gt; value pairs" type="array" variable="$strings">
4123
  <type by_reference="false">array</type>
4124
  </tag>
4125
- <tag line="311" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
4126
  <type by_reference="false">object</type>
4127
  </tag>
4128
- <tag line="311" name="return" description="updated $strings array" type="array">
4129
  <type by_reference="false">array</type>
4130
  </tag>
4131
  </docblock>
4132
- <argument line="322">
4133
  <name>$strings</name>
4134
  <default><![CDATA[]]></default>
4135
  <type/>
4136
  </argument>
4137
- <argument line="322">
4138
  <name>$post</name>
4139
  <default><![CDATA[]]></default>
4140
  <type/>
4141
  </argument>
4142
  </method>
4143
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="339" package="Media Library Assistant">
4144
  <name>mla_wp_enqueue_media_action</name>
4145
  <full_name>mla_wp_enqueue_media_action</full_name>
4146
- <docblock line="331">
4147
  <description><![CDATA[Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.]]></description>
4148
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
4149
- <tag line="331" name="since" description="1.20"/>
4150
- <tag line="331" name="return" description="" type="void">
4151
  <type by_reference="false">void</type>
4152
  </tag>
4153
  </docblock>
4154
  </method>
4155
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="357" package="Media Library Assistant">
4156
  <name>mla_print_media_templates_action</name>
4157
  <full_name>mla_print_media_templates_action</full_name>
4158
- <docblock line="349">
4159
  <description><![CDATA[Prints the templates used in the MLA Media Manager enhancements.]]></description>
4160
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
4161
- <tag line="349" name="since" description="1.20"/>
4162
- <tag line="349" name="return" description="echoes HTML script tags for the templates" type="void">
4163
  <type by_reference="false">void</type>
4164
  </tag>
4165
  </docblock>
4166
  </method>
4167
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="472" package="Media Library Assistant">
4168
- <name>mla_admin_init_ajax_action</name>
4169
- <full_name>mla_admin_init_ajax_action</full_name>
4170
- <docblock line="463">
4171
  <description><![CDATA[Adjust ajax handler for Media Manager queries]]></description>
4172
- <long-description><![CDATA[<p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab</p>]]></long-description>
4173
- <tag line="463" name="since" description="1.20"/>
4174
- <tag line="463" name="return" description="" type="void">
 
 
 
 
 
 
 
 
 
 
 
 
 
4175
  <type by_reference="false">void</type>
4176
  </tag>
4177
  </docblock>
4178
  </method>
4179
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="497" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
4180
  <name>mla_query_attachments_action</name>
4181
  <full_name>mla_query_attachments_action</full_name>
4182
- <docblock line="488">
4183
- <description><![CDATA[Ajax handler for Media Manager queries]]></description>
4184
  <long-description><![CDATA[<p>Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
4185
- <tag line="488" name="since" description="1.20"/>
4186
- <tag line="488" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
4187
  <type by_reference="false">void</type>
4188
  </tag>
4189
  </docblock>
4190
  </method>
4191
  </class>
4192
  </file>
4193
- <file path="includes\class-mla-mime-types.php" hash="2e3b6bf8b169720136daea4bfc43af09" package="Media Library Assistant">
4194
  <docblock line="2">
4195
  <description><![CDATA[Media Library Assistant MIME Type Support]]></description>
4196
  <long-description><![CDATA[]]></long-description>
@@ -4293,25 +4788,37 @@ the Views and Uploads Settings tabs]]></description>
4293
  </docblock>
4294
  </property>
4295
  <property final="false" static="true" visibility="private" line="1522" namespace="global" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
4296
  <name>$mla_upload_mime_highest_ID</name>
4297
  <default><![CDATA[0]]></default>
4298
- <docblock line="1515">
4299
  <description><![CDATA[Highest existing Upload MIME Type ID value]]></description>
4300
  <long-description><![CDATA[]]></long-description>
4301
- <tag line="1515" name="since" description="1.40"/>
4302
- <tag line="1515" name="var" description="" type="integer">
4303
  <type by_reference="false">integer</type>
4304
  </tag>
4305
  </docblock>
4306
  </property>
4307
- <property final="false" static="true" visibility="private" line="2314" namespace="global" package="Media Library Assistant">
4308
  <name>$mla_optional_upload_mime_templates</name>
4309
  <default><![CDATA[NULL]]></default>
4310
- <docblock line="2307">
4311
  <description><![CDATA[In-memory representation of the (read-only) Optional Upload MIME Types]]></description>
4312
  <long-description><![CDATA[]]></long-description>
4313
- <tag line="2307" name="since" description="1.40"/>
4314
- <tag line="2307" name="var" description="( ID, slug, mime_type, core_type, mla_type, description )" type="array">
4315
  <type by_reference="false">array</type>
4316
  </tag>
4317
  </docblock>
@@ -5062,361 +5569,361 @@ Defined as public because it's a filter.</p>]]></long-description>
5062
  <type/>
5063
  </argument>
5064
  </method>
5065
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1531" package="Media Library Assistant">
5066
  <name>_get_core_icon_types</name>
5067
  <full_name>_get_core_icon_types</full_name>
5068
- <docblock line="1524">
5069
  <description><![CDATA[Assemble the list of icon types without MLA filtering]]></description>
5070
  <long-description><![CDATA[]]></long-description>
5071
- <tag line="1524" name="since" description="1.40"/>
5072
- <tag line="1524" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
5073
  <type by_reference="false">boolean</type>
5074
  </tag>
5075
  </docblock>
5076
  </method>
5077
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1569" package="Media Library Assistant">
5078
  <name>_get_current_icon_types</name>
5079
  <full_name>_get_current_icon_types</full_name>
5080
- <docblock line="1562">
5081
  <description><![CDATA[Assemble the list of icon types with MLA filtering]]></description>
5082
  <long-description><![CDATA[]]></long-description>
5083
- <tag line="1562" name="since" description="1.40"/>
5084
- <tag line="1562" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
5085
  <type by_reference="false">boolean</type>
5086
  </tag>
5087
  </docblock>
5088
  </method>
5089
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1622" package="Media Library Assistant">
5090
  <name>mla_get_core_icon_type</name>
5091
  <full_name>mla_get_core_icon_type</full_name>
5092
- <docblock line="1613">
5093
  <description><![CDATA[Retrieve a standard icon type, i.e., without MLA filtering]]></description>
5094
  <long-description><![CDATA[]]></long-description>
5095
- <tag line="1613" name="since" description="1.40"/>
5096
- <tag line="1613" name="param" description="file extension" type="string" variable="$extension">
5097
  <type by_reference="false">string</type>
5098
  </tag>
5099
- <tag line="1613" name="return" description="icon type for the requested extension; 'default' if extension not found" type="string">
5100
  <type by_reference="false">string</type>
5101
  </tag>
5102
  </docblock>
5103
- <argument line="1622">
5104
  <name>$extension</name>
5105
  <default><![CDATA[]]></default>
5106
  <type/>
5107
  </argument>
5108
  </method>
5109
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1642" package="Media Library Assistant">
5110
  <name>mla_get_icon_type_image</name>
5111
  <full_name>mla_get_icon_type_image</full_name>
5112
- <docblock line="1632">
5113
  <description><![CDATA[Get an HTML img element representing an attachment icon]]></description>
5114
  <long-description><![CDATA[]]></long-description>
5115
- <tag line="1632" name="since" description="1.40"/>
5116
- <tag line="1632" name="param" description="Icon Type, e.g., audio, video, spreadsheet" type="string" variable="$icon_type">
5117
  <type by_reference="false">string</type>
5118
  </tag>
5119
- <tag line="1632" name="param" description="( width, height ) optional image size, default (64, 64)." type="array" variable="$size">
5120
  <type by_reference="false">array</type>
5121
  </tag>
5122
- <tag line="1632" name="return" description="HTML img element or empty string on failure." type="string">
5123
  <type by_reference="false">string</type>
5124
  </tag>
5125
  </docblock>
5126
- <argument line="1642">
5127
  <name>$icon_type</name>
5128
  <default><![CDATA[]]></default>
5129
  <type/>
5130
  </argument>
5131
- <argument line="1642">
5132
  <name>$size</name>
5133
  <default><![CDATA[NULL]]></default>
5134
  <type/>
5135
  </argument>
5136
  </method>
5137
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1677" package="Media Library Assistant">
5138
  <name>mla_get_current_icon_types</name>
5139
  <full_name>mla_get_current_icon_types</full_name>
5140
- <docblock line="1670">
5141
  <description><![CDATA[Get an array of current Icon Type names]]></description>
5142
  <long-description><![CDATA[]]></long-description>
5143
- <tag line="1670" name="since" description="1.40"/>
5144
- <tag line="1670" name="return" description="( icon_type ) or false on failure." type="array">
5145
  <type by_reference="false">array</type>
5146
  </tag>
5147
  </docblock>
5148
  </method>
5149
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1693" package="Media Library Assistant">
5150
  <name>_get_upload_mime_templates</name>
5151
  <full_name>_get_upload_mime_templates</full_name>
5152
- <docblock line="1685">
5153
  <description><![CDATA[Assemble the in-memory representation of the Upload MIME Types]]></description>
5154
  <long-description><![CDATA[]]></long-description>
5155
- <tag line="1685" name="since" description="1.40"/>
5156
- <tag line="1685" name="param" description="Force a reload/recalculation of types" type="boolean" variable="$force_refresh">
5157
  <type by_reference="false">boolean</type>
5158
  </tag>
5159
- <tag line="1685" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
5160
  <type by_reference="false">boolean</type>
5161
  </tag>
5162
  </docblock>
5163
- <argument line="1693">
5164
  <name>$force_refresh</name>
5165
  <default><![CDATA[false]]></default>
5166
  <type/>
5167
  </argument>
5168
  </method>
5169
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1913" package="Media Library Assistant">
5170
  <name>_put_upload_mime_templates</name>
5171
  <full_name>_put_upload_mime_templates</full_name>
5172
- <docblock line="1906">
5173
  <description><![CDATA[Store the options portion of the Upload MIME Types]]></description>
5174
  <long-description><![CDATA[]]></long-description>
5175
- <tag line="1906" name="since" description="1.40"/>
5176
- <tag line="1906" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
5177
  <type by_reference="false">boolean</type>
5178
  </tag>
5179
  </docblock>
5180
  </method>
5181
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1948" package="Media Library Assistant">
5182
  <name>mla_add_upload_mime</name>
5183
  <full_name>mla_add_upload_mime</full_name>
5184
- <docblock line="1939">
5185
  <description><![CDATA[Add an MLA Upload MIME Type object]]></description>
5186
  <long-description><![CDATA[]]></long-description>
5187
- <tag line="1939" name="since" description="1.40"/>
5188
- <tag line="1939" name="param" description="Query variables for a single object, including slug" type="array" variable="$request">
5189
  <type by_reference="false">array</type>
5190
  </tag>
5191
- <tag line="1939" name="return" description="Message(s) reflecting the results of the operation" type="array">
5192
  <type by_reference="false">array</type>
5193
  </tag>
5194
  </docblock>
5195
- <argument line="1948">
5196
  <name>$request</name>
5197
  <default><![CDATA[]]></default>
5198
  <type/>
5199
  </argument>
5200
  </method>
5201
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2047" package="Media Library Assistant">
5202
  <name>mla_update_upload_mime</name>
5203
  <full_name>mla_update_upload_mime</full_name>
5204
- <docblock line="2038">
5205
  <description><![CDATA[Update an MLA Upload MIME Type object]]></description>
5206
  <long-description><![CDATA[]]></long-description>
5207
- <tag line="2038" name="since" description="1.40"/>
5208
- <tag line="2038" name="param" description="Query variables for new object values, including optional original_slug" type="array" variable="$request">
5209
  <type by_reference="false">array</type>
5210
  </tag>
5211
- <tag line="2038" name="return" description="Message(s) reflecting the results of the operation" type="array">
5212
  <type by_reference="false">array</type>
5213
  </tag>
5214
  </docblock>
5215
- <argument line="2047">
5216
  <name>$request</name>
5217
- <default><![CDATA[]]></default>
5218
  <type/>
5219
  </argument>
5220
  </method>
5221
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2228" package="Media Library Assistant">
5222
  <name>mla_get_upload_mime_slug</name>
5223
  <full_name>mla_get_upload_mime_slug</full_name>
5224
- <docblock line="2219">
5225
  <description><![CDATA[Retrieve an MLA Upload MIME Type slug given a post_ID]]></description>
5226
  <long-description><![CDATA[]]></long-description>
5227
- <tag line="2219" name="since" description="1.40"/>
5228
- <tag line="2219" name="param" description="MLA Upload MIME Type post_ID" type="integer" variable="$post_ID">
5229
  <type by_reference="false">integer</type>
5230
  </tag>
5231
- <tag line="2219" name="return" description="string with slug of the requested object; false if object not found" type="mixed">
5232
  <type by_reference="false">mixed</type>
5233
  </tag>
5234
  </docblock>
5235
- <argument line="2228">
5236
  <name>$post_ID</name>
5237
  <default><![CDATA[]]></default>
5238
  <type/>
5239
  </argument>
5240
  </method>
5241
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2249" package="Media Library Assistant">
5242
  <name>mla_get_upload_mime</name>
5243
  <full_name>mla_get_upload_mime</full_name>
5244
- <docblock line="2240">
5245
  <description><![CDATA[Retrieve an MLA Upload MIME Type object]]></description>
5246
  <long-description><![CDATA[]]></long-description>
5247
- <tag line="2240" name="since" description="1.40"/>
5248
- <tag line="2240" name="param" description="MLA Upload MIME Type slug" type="string" variable="$slug">
5249
  <type by_reference="false">string</type>
5250
  </tag>
5251
- <tag line="2240" name="return" description="Array of elements, including slug, for the requested object; false if object not found" type="mixed">
5252
  <type by_reference="false">mixed</type>
5253
  </tag>
5254
  </docblock>
5255
- <argument line="2249">
5256
  <name>$slug</name>
5257
  <default><![CDATA[]]></default>
5258
  <type/>
5259
  </argument>
5260
  </method>
5261
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2270" package="Media Library Assistant">
5262
  <name>mla_delete_upload_mime</name>
5263
  <full_name>mla_delete_upload_mime</full_name>
5264
- <docblock line="2261">
5265
  <description><![CDATA[Delete an MLA Upload MIME Type object]]></description>
5266
  <long-description><![CDATA[]]></long-description>
5267
- <tag line="2261" name="since" description="1.40"/>
5268
- <tag line="2261" name="param" description="MLA Upload MIME Type slug" type="string" variable="$slug">
5269
  <type by_reference="false">string</type>
5270
  </tag>
5271
- <tag line="2261" name="return" description="Message(s) reflecting the results of the operation" type="array">
5272
  <type by_reference="false">array</type>
5273
  </tag>
5274
  </docblock>
5275
- <argument line="2270">
5276
  <name>$slug</name>
5277
  <default><![CDATA[]]></default>
5278
  <type/>
5279
  </argument>
5280
  </method>
5281
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2327" package="Media Library Assistant">
5282
  <name>_prepare_optional_upload_items_query</name>
5283
  <full_name>_prepare_optional_upload_items_query</full_name>
5284
- <docblock line="2316">
5285
  <description><![CDATA[Sanitize and expand Optional Upload MIME Type query arguments from request variables]]></description>
5286
  <long-description><![CDATA[]]></long-description>
5287
- <tag line="2316" name="since" description="1.40"/>
5288
- <tag line="2316" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
5289
  <type by_reference="false">array</type>
5290
  </tag>
5291
- <tag line="2316" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
5292
  <type by_reference="false">int</type>
5293
  </tag>
5294
- <tag line="2316" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
5295
  <type by_reference="false">int</type>
5296
  </tag>
5297
- <tag line="2316" name="return" description="revised arguments suitable for query" type="array">
5298
  <type by_reference="false">array</type>
5299
  </tag>
5300
  </docblock>
5301
- <argument line="2327">
5302
  <name>$raw_request</name>
5303
  <default><![CDATA[]]></default>
5304
  <type/>
5305
  </argument>
5306
- <argument line="2327">
5307
  <name>$offset</name>
5308
  <default><![CDATA[0]]></default>
5309
  <type/>
5310
  </argument>
5311
- <argument line="2327">
5312
  <name>$count</name>
5313
  <default><![CDATA[0]]></default>
5314
  <type/>
5315
  </argument>
5316
  </method>
5317
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2400" package="Media Library Assistant">
5318
  <name>_execute_optional_upload_items_query</name>
5319
  <full_name>_execute_optional_upload_items_query</full_name>
5320
- <docblock line="2391">
5321
  <description><![CDATA[Execute an Optional Upload MIME Types query]]></description>
5322
  <long-description><![CDATA[]]></long-description>
5323
- <tag line="2391" name="since" description="1.40"/>
5324
- <tag line="2391" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
5325
  <type by_reference="false">array</type>
5326
  </tag>
5327
- <tag line="2391" name="return" description="query results; array of MLA Optional Upload MIME Type objects" type="array">
5328
  <type by_reference="false">array</type>
5329
  </tag>
5330
  </docblock>
5331
- <argument line="2400">
5332
  <name>$request</name>
5333
  <default><![CDATA[]]></default>
5334
  <type/>
5335
  </argument>
5336
  </method>
5337
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2482" package="Media Library Assistant">
5338
  <name>mla_count_optional_upload_items</name>
5339
  <full_name>mla_count_optional_upload_items</full_name>
5340
- <docblock line="2473">
5341
  <description><![CDATA[Get the total number of MLA Upload MIME Type objects]]></description>
5342
  <long-description><![CDATA[]]></long-description>
5343
- <tag line="2473" name="since" description="1.40"/>
5344
- <tag line="2473" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
5345
  <type by_reference="false">array</type>
5346
  </tag>
5347
- <tag line="2473" name="return" description="Number of MLA Upload MIME Type objects" type="integer">
5348
  <type by_reference="false">integer</type>
5349
  </tag>
5350
  </docblock>
5351
- <argument line="2482">
5352
  <name>$request</name>
5353
  <default><![CDATA[]]></default>
5354
  <type/>
5355
  </argument>
5356
  </method>
5357
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2499" package="Media Library Assistant">
5358
  <name>mla_query_optional_upload_items</name>
5359
  <full_name>mla_query_optional_upload_items</full_name>
5360
- <docblock line="2488">
5361
  <description><![CDATA[Retrieve MLA Upload MIME Type objects for list table display]]></description>
5362
  <long-description><![CDATA[]]></long-description>
5363
- <tag line="2488" name="since" description="1.40"/>
5364
- <tag line="2488" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
5365
  <type by_reference="false">array</type>
5366
  </tag>
5367
- <tag line="2488" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
5368
  <type by_reference="false">int</type>
5369
  </tag>
5370
- <tag line="2488" name="param" description="number of rows on each page" type="int" variable="$count">
5371
  <type by_reference="false">int</type>
5372
  </tag>
5373
- <tag line="2488" name="return" description="MLA Upload MIME Type objects" type="array">
5374
  <type by_reference="false">array</type>
5375
  </tag>
5376
  </docblock>
5377
- <argument line="2499">
5378
  <name>$request</name>
5379
  <default><![CDATA[]]></default>
5380
  <type/>
5381
  </argument>
5382
- <argument line="2499">
5383
  <name>$offset</name>
5384
  <default><![CDATA[]]></default>
5385
  <type/>
5386
  </argument>
5387
- <argument line="2499">
5388
  <name>$count</name>
5389
  <default><![CDATA[]]></default>
5390
  <type/>
5391
  </argument>
5392
  </method>
5393
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2512" package="Media Library Assistant">
5394
  <name>_get_optional_upload_mime_templates</name>
5395
  <full_name>_get_optional_upload_mime_templates</full_name>
5396
- <docblock line="2505">
5397
  <description><![CDATA[Assemble the in-memory representation of the (read-only) Optional Upload MIME Types]]></description>
5398
  <long-description><![CDATA[]]></long-description>
5399
- <tag line="2505" name="since" description="1.40"/>
5400
- <tag line="2505" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
5401
  <type by_reference="false">boolean</type>
5402
  </tag>
5403
  </docblock>
5404
  </method>
5405
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2557" package="Media Library Assistant">
5406
  <name>mla_get_optional_upload_mime</name>
5407
  <full_name>mla_get_optional_upload_mime</full_name>
5408
- <docblock line="2548">
5409
  <description><![CDATA[Retrieve an MLA Optional Upload MIME Type given an ID]]></description>
5410
  <long-description><![CDATA[]]></long-description>
5411
- <tag line="2548" name="since" description="1.40"/>
5412
- <tag line="2548" name="param" description="MLA Optional Upload MIME Type ID" type="integer" variable="$ID">
5413
  <type by_reference="false">integer</type>
5414
  </tag>
5415
- <tag line="2548" name="return" description="the requested object; false if object not found" type="mixed">
5416
  <type by_reference="false">mixed</type>
5417
  </tag>
5418
  </docblock>
5419
- <argument line="2557">
5420
  <name>$ID</name>
5421
  <default><![CDATA[]]></default>
5422
  <type/>
@@ -5424,7 +5931,7 @@ Defined as public because it's a filter.</p>]]></long-description>
5424
  </method>
5425
  </class>
5426
  </file>
5427
- <file path="includes\class-mla-objects.php" hash="3a767c9d2658046426e7d397855c473b" package="Media Library Assistant">
5428
  <docblock line="2">
5429
  <description><![CDATA[Media Library Assistant Custom Taxonomy and Widget objects]]></description>
5430
  <long-description><![CDATA[]]></long-description>
@@ -5465,185 +5972,185 @@ Defined as public because it's a filter.</p>]]></long-description>
5465
  </tag>
5466
  </docblock>
5467
  </method>
5468
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="115" package="Media Library Assistant">
5469
  <name>mla_taxonomy_get_columns_filter</name>
5470
  <full_name>mla_taxonomy_get_columns_filter</full_name>
5471
- <docblock line="105">
5472
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
5473
  which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
5474
  <long-description><![CDATA[]]></long-description>
5475
- <tag line="105" name="since" description="0.30"/>
5476
- <tag line="105" name="param" description="column definitions for the edit taxonomy list table" type="array" variable="$columns">
5477
  <type by_reference="false">array</type>
5478
  </tag>
5479
- <tag line="105" name="return" description="updated column definitions for the edit taxonomy list table" type="array">
5480
  <type by_reference="false">array</type>
5481
  </tag>
5482
  </docblock>
5483
- <argument line="115">
5484
  <name>$columns</name>
5485
  <default><![CDATA[]]></default>
5486
  <type/>
5487
  </argument>
5488
  </method>
5489
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="150" package="Media Library Assistant">
5490
  <name>mla_taxonomy_column_filter</name>
5491
  <full_name>mla_taxonomy_column_filter</full_name>
5492
- <docblock line="137">
5493
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
5494
  which returns a count of the attachments assigned a given term]]></description>
5495
  <long-description><![CDATA[]]></long-description>
5496
- <tag line="137" name="since" description="0.30"/>
5497
- <tag line="137" name="param" description="current column value; always ''" type="string" variable="$place_holder">
5498
  <type by_reference="false">string</type>
5499
  </tag>
5500
- <tag line="137" name="param" description="name of the column" type="array" variable="$column_name">
5501
  <type by_reference="false">array</type>
5502
  </tag>
5503
- <tag line="137" name="param" description="ID of the term for which the count is desired" type="array" variable="$term_id">
5504
  <type by_reference="false">array</type>
5505
  </tag>
5506
- <tag line="137" name="return" description="HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them" type="array">
5507
  <type by_reference="false">array</type>
5508
  </tag>
5509
  </docblock>
5510
- <argument line="150">
5511
  <name>$place_holder</name>
5512
  <default><![CDATA[]]></default>
5513
  <type/>
5514
  </argument>
5515
- <argument line="150">
5516
  <name>$column_name</name>
5517
  <default><![CDATA[]]></default>
5518
  <type/>
5519
  </argument>
5520
- <argument line="150">
5521
  <name>$term_id</name>
5522
  <default><![CDATA[]]></default>
5523
  <type/>
5524
  </argument>
5525
  </method>
5526
  </class>
5527
- <class final="false" abstract="false" namespace="global" line="212" package="Media Library Assistant">
5528
  <extends>\WP_Widget</extends>
5529
  <name>MLATextWidget</name>
5530
  <full_name>\MLATextWidget</full_name>
5531
- <docblock line="206">
5532
  <description><![CDATA[Class MLA (Media Library Assistant) Text Widget defines a shortcode-enabled version of the WordPress Text widget]]></description>
5533
  <long-description><![CDATA[]]></long-description>
5534
- <tag line="206" name="package" description="Media Library Assistant"/>
5535
- <tag line="206" name="since" description="1.60"/>
5536
  </docblock>
5537
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="221" package="Media Library Assistant">
5538
  <name>__construct</name>
5539
  <full_name>__construct</full_name>
5540
- <docblock line="214">
5541
  <description><![CDATA[Calls the parent constructor to set some defaults.]]></description>
5542
  <long-description><![CDATA[]]></long-description>
5543
- <tag line="214" name="since" description="1.60"/>
5544
- <tag line="214" name="return" description="" type="void">
5545
  <type by_reference="false">void</type>
5546
  </tag>
5547
  </docblock>
5548
  </method>
5549
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="245" package="Media Library Assistant">
5550
  <name>widget</name>
5551
  <full_name>widget</full_name>
5552
- <docblock line="235">
5553
  <description><![CDATA[Display the widget content - called from the WordPress "front end"]]></description>
5554
  <long-description><![CDATA[]]></long-description>
5555
- <tag line="235" name="since" description="1.60"/>
5556
- <tag line="235" name="param" description="Widget arguments" type="array" variable="$args">
5557
  <type by_reference="false">array</type>
5558
  </tag>
5559
- <tag line="235" name="param" description="Widget definition, from the database" type="array" variable="$instance">
5560
  <type by_reference="false">array</type>
5561
  </tag>
5562
- <tag line="235" name="return" description="Echoes widget output" type="void">
5563
  <type by_reference="false">void</type>
5564
  </tag>
5565
  </docblock>
5566
- <argument line="245">
5567
  <name>$args</name>
5568
  <default><![CDATA[]]></default>
5569
  <type/>
5570
  </argument>
5571
- <argument line="245">
5572
  <name>$instance</name>
5573
  <default><![CDATA[]]></default>
5574
  <type/>
5575
  </argument>
5576
  </method>
5577
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="264" package="Media Library Assistant">
5578
  <name>form</name>
5579
  <full_name>form</full_name>
5580
- <docblock line="255">
5581
  <description><![CDATA[Echo the "edit widget" form on the Appearance/Widgets admin screen]]></description>
5582
  <long-description><![CDATA[]]></long-description>
5583
- <tag line="255" name="since" description="1.60"/>
5584
- <tag line="255" name="param" description="Previous definition values, from the database" type="array" variable="$instance">
5585
  <type by_reference="false">array</type>
5586
  </tag>
5587
- <tag line="255" name="return" description="Echoes &quot;edit widget&quot; form" type="void">
5588
  <type by_reference="false">void</type>
5589
  </tag>
5590
  </docblock>
5591
- <argument line="264">
5592
  <name>$instance</name>
5593
  <default><![CDATA[]]></default>
5594
  <type/>
5595
  </argument>
5596
  </method>
5597
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="288" package="Media Library Assistant">
5598
  <name>update</name>
5599
  <full_name>update</full_name>
5600
- <docblock line="278">
5601
  <description><![CDATA[Sanitize widget definition as it is saved to the database]]></description>
5602
  <long-description><![CDATA[]]></long-description>
5603
- <tag line="278" name="since" description="1.60"/>
5604
- <tag line="278" name="param" description="Current definition values, to be saved in the database" type="array" variable="$new_instance">
5605
  <type by_reference="false">array</type>
5606
  </tag>
5607
- <tag line="278" name="param" description="Previous definition values, from the database" type="array" variable="$old_instance">
5608
  <type by_reference="false">array</type>
5609
  </tag>
5610
- <tag line="278" name="return" description="Updated definition values to be saved in the database" type="array">
5611
  <type by_reference="false">array</type>
5612
  </tag>
5613
  </docblock>
5614
- <argument line="288">
5615
  <name>$new_instance</name>
5616
  <default><![CDATA[]]></default>
5617
  <type/>
5618
  </argument>
5619
- <argument line="288">
5620
  <name>$old_instance</name>
5621
  <default><![CDATA[]]></default>
5622
  <type/>
5623
  </argument>
5624
  </method>
5625
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="310" package="Media Library Assistant">
5626
  <name>mla_text_widget_widgets_init_action</name>
5627
  <full_name>mla_text_widget_widgets_init_action</full_name>
5628
- <docblock line="301">
5629
  <description><![CDATA[Register the widget with WordPress]]></description>
5630
  <long-description><![CDATA[<p>Defined as public because it's an action.</p>]]></long-description>
5631
- <tag line="301" name="since" description="1.60"/>
5632
- <tag line="301" name="return" description="" type="void">
5633
  <type by_reference="false">void</type>
5634
  </tag>
5635
  </docblock>
5636
  </method>
5637
  </class>
5638
  </file>
5639
- <file path="includes\class-mla-options.php" hash="c9711d039aff5e9ecc6c689bb22a8f17" package="Media Library Assistant">
5640
  <docblock line="2">
5641
  <description><![CDATA[Manages the plugin option settings]]></description>
5642
  <long-description><![CDATA[]]></long-description>
5643
  <tag line="2" name="package" description="Media Library Assistant"/>
5644
  <tag line="2" name="since" description="1.00"/>
5645
  </docblock>
5646
- <include line="1544" type="Require" package="Media Library Assistant">
5647
  <name/>
5648
  </include>
5649
  <class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
@@ -5712,302 +6219,339 @@ and provides functions to get and put them from/to WordPress option variables]]>
5712
  </docblock>
5713
  </constant>
5714
  <constant namespace="global" line="52" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
5715
  <name>MLA_TAXONOMY_SUPPORT</name>
5716
  <full_name>MLA_TAXONOMY_SUPPORT</full_name>
5717
  <value><![CDATA['taxonomy_support']]></value>
5718
- <docblock line="49">
5719
  <description><![CDATA[Provides a unique name for the taxonomy support option]]></description>
5720
  <long-description><![CDATA[]]></long-description>
5721
  </docblock>
5722
  </constant>
5723
- <constant namespace="global" line="57" package="Media Library Assistant">
5724
  <name>MLA_SCREEN_PAGE_TITLE</name>
5725
  <full_name>MLA_SCREEN_PAGE_TITLE</full_name>
5726
  <value><![CDATA['admin_screen_page_title']]></value>
5727
- <docblock line="54">
5728
  <description><![CDATA[Provides a unique name for the admin screen page title option]]></description>
5729
  <long-description><![CDATA[]]></long-description>
5730
  </docblock>
5731
  </constant>
5732
- <constant namespace="global" line="62" package="Media Library Assistant">
5733
  <name>MLA_SCREEN_MENU_TITLE</name>
5734
  <full_name>MLA_SCREEN_MENU_TITLE</full_name>
5735
  <value><![CDATA['admin_screen_menu_title']]></value>
5736
- <docblock line="59">
5737
  <description><![CDATA[Provides a unique name for the admin screen menu title option]]></description>
5738
  <long-description><![CDATA[]]></long-description>
5739
  </docblock>
5740
  </constant>
5741
- <constant namespace="global" line="67" package="Media Library Assistant">
5742
  <name>MLA_SCREEN_ORDER</name>
5743
  <full_name>MLA_SCREEN_ORDER</full_name>
5744
  <value><![CDATA['admin_screen_menu_order']]></value>
5745
- <docblock line="64">
5746
  <description><![CDATA[Provides a unique name for the admin screen menu order option]]></description>
5747
  <long-description><![CDATA[]]></long-description>
5748
  </docblock>
5749
  </constant>
5750
- <constant namespace="global" line="72" package="Media Library Assistant">
5751
  <name>MLA_SCREEN_DISPLAY_LIBRARY</name>
5752
  <full_name>MLA_SCREEN_DISPLAY_LIBRARY</full_name>
5753
  <value><![CDATA['admin_screen_display_default']]></value>
5754
- <docblock line="69">
5755
  <description><![CDATA[Provides a unique name for the admin screen remove Media/Library option]]></description>
5756
  <long-description><![CDATA[]]></long-description>
5757
  </docblock>
5758
  </constant>
5759
- <constant namespace="global" line="77" package="Media Library Assistant">
5760
  <name>MLA_DEFAULT_ORDERBY</name>
5761
  <full_name>MLA_DEFAULT_ORDERBY</full_name>
5762
  <value><![CDATA['default_orderby']]></value>
5763
- <docblock line="74">
5764
  <description><![CDATA[Provides a unique name for the default orderby option]]></description>
5765
  <long-description><![CDATA[]]></long-description>
5766
  </docblock>
5767
  </constant>
5768
- <constant namespace="global" line="82" package="Media Library Assistant">
5769
  <name>MLA_DEFAULT_ORDER</name>
5770
  <full_name>MLA_DEFAULT_ORDER</full_name>
5771
  <value><![CDATA['default_order']]></value>
5772
- <docblock line="79">
5773
  <description><![CDATA[Provides a unique name for the default order option]]></description>
5774
  <long-description><![CDATA[]]></long-description>
5775
  </docblock>
5776
  </constant>
5777
- <constant namespace="global" line="87" package="Media Library Assistant">
5778
  <name>MLA_TABLE_VIEWS_WIDTH</name>
5779
  <full_name>MLA_TABLE_VIEWS_WIDTH</full_name>
5780
  <value><![CDATA['table_views_width']]></value>
5781
- <docblock line="84">
5782
- <description><![CDATA[Provides a unique name for the default table views width option]]></description>
5783
  <long-description><![CDATA[]]></long-description>
5784
  </docblock>
5785
  </constant>
5786
- <constant namespace="global" line="92" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
5787
  <name>MLA_TAXONOMY_FILTER_DEPTH</name>
5788
  <full_name>MLA_TAXONOMY_FILTER_DEPTH</full_name>
5789
  <value><![CDATA['taxonomy_filter_depth']]></value>
5790
- <docblock line="89">
5791
  <description><![CDATA[Provides a unique name for the taxonomy filter maximum depth option]]></description>
5792
  <long-description><![CDATA[]]></long-description>
5793
  </docblock>
5794
  </constant>
5795
- <constant namespace="global" line="97" package="Media Library Assistant">
5796
  <name>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN</name>
5797
  <full_name>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN</full_name>
5798
  <value><![CDATA['taxonomy_filter_include_children']]></value>
5799
- <docblock line="94">
5800
  <description><![CDATA[Provides a unique name for the taxonomy filter maximum depth option]]></description>
5801
  <long-description><![CDATA[]]></long-description>
5802
  </docblock>
5803
  </constant>
5804
- <constant namespace="global" line="102" package="Media Library Assistant">
5805
  <name>MLA_EXIF_SIZE</name>
5806
  <full_name>MLA_EXIF_SIZE</full_name>
5807
  <value><![CDATA[30]]></value>
5808
- <docblock line="99">
5809
  <description><![CDATA[Provides a "size" attribute value for the EXIF/Template Value field]]></description>
5810
  <long-description><![CDATA[]]></long-description>
5811
  </docblock>
5812
  </constant>
5813
- <constant namespace="global" line="107" package="Media Library Assistant">
5814
  <name>MLA_NEW_CUSTOM_RULE</name>
5815
  <full_name>MLA_NEW_CUSTOM_RULE</full_name>
5816
  <value><![CDATA['__NEW RULE__']]></value>
5817
- <docblock line="104">
5818
  <description><![CDATA[Provides a unique name for the Custom Field "new rule" key]]></description>
5819
  <long-description><![CDATA[]]></long-description>
5820
  </docblock>
5821
  </constant>
5822
- <constant namespace="global" line="112" package="Media Library Assistant">
5823
  <name>MLA_NEW_CUSTOM_FIELD</name>
5824
  <full_name>MLA_NEW_CUSTOM_FIELD</full_name>
5825
  <value><![CDATA['__NEW FIELD__']]></value>
5826
- <docblock line="109">
5827
  <description><![CDATA[Provides a unique name for the Custom Field "new field" key]]></description>
5828
  <long-description><![CDATA[]]></long-description>
5829
  </docblock>
5830
  </constant>
5831
- <constant namespace="global" line="117" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5832
  <name>MLA_MEDIA_MODAL_TOOLBAR</name>
5833
  <full_name>MLA_MEDIA_MODAL_TOOLBAR</full_name>
5834
  <value><![CDATA['media_modal_toolbar']]></value>
5835
- <docblock line="114">
5836
- <description><![CDATA[Provides a unique name for the Media Manager toolbar option]]></description>
 
5837
  <long-description><![CDATA[]]></long-description>
5838
  </docblock>
5839
  </constant>
5840
- <constant namespace="global" line="122" package="Media Library Assistant">
5841
  <name>MLA_MEDIA_MODAL_MIMETYPES</name>
5842
  <full_name>MLA_MEDIA_MODAL_MIMETYPES</full_name>
5843
  <value><![CDATA['media_modal_mimetypes']]></value>
5844
- <docblock line="119">
5845
  <description><![CDATA[Provides a unique name for the Media Manager toolbar MIME Types option]]></description>
5846
  <long-description><![CDATA[]]></long-description>
5847
  </docblock>
5848
  </constant>
5849
- <constant namespace="global" line="127" package="Media Library Assistant">
5850
  <name>MLA_MEDIA_MODAL_MONTHS</name>
5851
  <full_name>MLA_MEDIA_MODAL_MONTHS</full_name>
5852
  <value><![CDATA['media_modal_months']]></value>
5853
- <docblock line="124">
5854
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Month and Year option]]></description>
5855
  <long-description><![CDATA[]]></long-description>
5856
  </docblock>
5857
  </constant>
5858
- <constant namespace="global" line="132" package="Media Library Assistant">
5859
  <name>MLA_MEDIA_MODAL_TERMS</name>
5860
  <full_name>MLA_MEDIA_MODAL_TERMS</full_name>
5861
  <value><![CDATA['media_modal_terms']]></value>
5862
- <docblock line="129">
5863
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy Terms option]]></description>
5864
  <long-description><![CDATA[]]></long-description>
5865
  </docblock>
5866
  </constant>
5867
- <constant namespace="global" line="137" package="Media Library Assistant">
5868
  <name>MLA_MEDIA_MODAL_SEARCHBOX</name>
5869
  <full_name>MLA_MEDIA_MODAL_SEARCHBOX</full_name>
5870
  <value><![CDATA['media_modal_searchbox']]></value>
5871
- <docblock line="134">
5872
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box option]]></description>
5873
  <long-description><![CDATA[]]></long-description>
5874
  </docblock>
5875
  </constant>
5876
- <constant namespace="global" line="143" package="Media Library Assistant">
5877
  <name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</name>
5878
  <full_name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</full_name>
5879
  <value><![CDATA['media_modal_details_category_metabox']]></value>
5880
- <docblock line="139">
5881
  <description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
5882
  This option is for hierarchical taxonomies, e.g., "Att.]]></description>
5883
  <long-description><![CDATA[<p>Categories".</p>]]></long-description>
5884
  </docblock>
5885
  </constant>
5886
- <constant namespace="global" line="149" package="Media Library Assistant">
5887
  <name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</name>
5888
  <full_name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</full_name>
5889
  <value><![CDATA['media_modal_details_tag_metabox']]></value>
5890
- <docblock line="145">
5891
  <description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
5892
  This option is for flat taxonomies, e.g., "Att.]]></description>
5893
  <long-description><![CDATA[<p>Tags".</p>]]></long-description>
5894
  </docblock>
5895
  </constant>
5896
- <constant namespace="global" line="154" package="Media Library Assistant">
5897
  <name>MLA_MEDIA_MODAL_ORDERBY</name>
5898
  <full_name>MLA_MEDIA_MODAL_ORDERBY</full_name>
5899
  <value><![CDATA['media_modal_orderby']]></value>
5900
- <docblock line="151">
5901
  <description><![CDATA[Provides a unique name for the Media Manager orderby option]]></description>
5902
  <long-description><![CDATA[]]></long-description>
5903
  </docblock>
5904
  </constant>
5905
- <constant namespace="global" line="159" package="Media Library Assistant">
5906
  <name>MLA_MEDIA_MODAL_ORDER</name>
5907
  <full_name>MLA_MEDIA_MODAL_ORDER</full_name>
5908
  <value><![CDATA['media_modal_order']]></value>
5909
- <docblock line="156">
5910
  <description><![CDATA[Provides a unique name for the Media Manager order option]]></description>
5911
  <long-description><![CDATA[]]></long-description>
5912
  </docblock>
5913
  </constant>
5914
- <constant namespace="global" line="164" package="Media Library Assistant">
5915
  <name>MLA_POST_MIME_TYPES</name>
5916
  <full_name>MLA_POST_MIME_TYPES</full_name>
5917
  <value><![CDATA['post_mime_types']]></value>
5918
- <docblock line="161">
5919
  <description><![CDATA[Provides a unique name for the Post MIME Types option]]></description>
5920
  <long-description><![CDATA[]]></long-description>
5921
  </docblock>
5922
  </constant>
5923
- <constant namespace="global" line="169" package="Media Library Assistant">
5924
  <name>MLA_ENABLE_POST_MIME_TYPES</name>
5925
  <full_name>MLA_ENABLE_POST_MIME_TYPES</full_name>
5926
  <value><![CDATA['enable_post_mime_types']]></value>
5927
- <docblock line="166">
5928
  <description><![CDATA[Provides a unique name for the Enable Post MIME Types option]]></description>
5929
  <long-description><![CDATA[]]></long-description>
5930
  </docblock>
5931
  </constant>
5932
- <constant namespace="global" line="174" package="Media Library Assistant">
5933
  <name>MLA_UPLOAD_MIMES</name>
5934
  <full_name>MLA_UPLOAD_MIMES</full_name>
5935
  <value><![CDATA['upload_mimes']]></value>
5936
- <docblock line="171">
5937
  <description><![CDATA[Provides a unique name for the Upload MIME Types option]]></description>
5938
  <long-description><![CDATA[]]></long-description>
5939
  </docblock>
5940
  </constant>
5941
- <constant namespace="global" line="179" package="Media Library Assistant">
5942
  <name>MLA_ENABLE_UPLOAD_MIMES</name>
5943
  <full_name>MLA_ENABLE_UPLOAD_MIMES</full_name>
5944
  <value><![CDATA['enable_upload_mimes']]></value>
5945
- <docblock line="176">
5946
  <description><![CDATA[Provides a unique name for the Enable Upload MIME Types option]]></description>
5947
  <long-description><![CDATA[]]></long-description>
5948
  </docblock>
5949
  </constant>
5950
- <constant namespace="global" line="184" package="Media Library Assistant">
5951
  <name>MLA_ENABLE_MLA_ICONS</name>
5952
  <full_name>MLA_ENABLE_MLA_ICONS</full_name>
5953
  <value><![CDATA['enable_mla_icons']]></value>
5954
- <docblock line="181">
5955
  <description><![CDATA[Provides a unique name for the Enable MLA Icons option]]></description>
5956
  <long-description><![CDATA[]]></long-description>
5957
  </docblock>
5958
  </constant>
5959
- <property final="false" static="true" visibility="public" line="195" namespace="global" package="Media Library Assistant">
5960
  <name>$process_featured_in</name>
5961
  <default><![CDATA[true]]></default>
5962
- <docblock line="186">
5963
  <description><![CDATA[Option setting for "Featured in" reporting]]></description>
5964
  <long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
5965
- <tag line="186" name="since" description="1.00"/>
5966
- <tag line="186" name="var" description="" type="boolean">
5967
  <type by_reference="false">boolean</type>
5968
  </tag>
5969
  </docblock>
5970
  </property>
5971
- <property final="false" static="true" visibility="public" line="206" namespace="global" package="Media Library Assistant">
5972
  <name>$process_inserted_in</name>
5973
  <default><![CDATA[true]]></default>
5974
- <docblock line="197">
5975
  <description><![CDATA[Option setting for "Inserted in" reporting]]></description>
5976
  <long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
5977
- <tag line="197" name="since" description="1.00"/>
5978
- <tag line="197" name="var" description="" type="boolean">
5979
  <type by_reference="false">boolean</type>
5980
  </tag>
5981
  </docblock>
5982
  </property>
5983
- <property final="false" static="true" visibility="public" line="217" namespace="global" package="Media Library Assistant">
5984
  <name>$process_gallery_in</name>
5985
  <default><![CDATA[true]]></default>
5986
- <docblock line="208">
5987
  <description><![CDATA[Option setting for "Gallery in" reporting]]></description>
5988
  <long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
5989
- <tag line="208" name="since" description="1.00"/>
5990
- <tag line="208" name="var" description="" type="boolean">
5991
  <type by_reference="false">boolean</type>
5992
  </tag>
5993
  </docblock>
5994
  </property>
5995
- <property final="false" static="true" visibility="public" line="228" namespace="global" package="Media Library Assistant">
5996
  <name>$process_mla_gallery_in</name>
5997
  <default><![CDATA[true]]></default>
5998
- <docblock line="219">
5999
  <description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
6000
  <long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
6001
- <tag line="219" name="since" description="1.00"/>
6002
- <tag line="219" name="var" description="" type="boolean">
6003
  <type by_reference="false">boolean</type>
6004
  </tag>
6005
  </docblock>
6006
  </property>
6007
- <property final="false" static="true" visibility="public" line="260" namespace="global" package="Media Library Assistant">
6008
  <name>$mla_option_definitions</name>
6009
  <default><![CDATA[array()]]></default>
6010
- <docblock line="230">
6011
  <description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them]]></description>
6012
  <long-description><![CDATA[<p>The array must be populated at runtime in MLAOptions::mla_localize_option_definitions_array(),
6013
  because Localization calls cannot be placed in the "public static" array definition itself.</p>
@@ -6036,1142 +6580,1163 @@ reset => reset function for 'custom' options; returns nothing. Usage:
6036
  $message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
6037
  </docblock>
6038
  </property>
6039
- <property final="false" static="true" visibility="private" line="307" namespace="global" package="Media Library Assistant">
6040
  <name>$mla_option_templates</name>
6041
  <default><![CDATA[null]]></default>
6042
- <docblock line="300">
6043
  <description><![CDATA[Style and Markup templates]]></description>
6044
  <long-description><![CDATA[]]></long-description>
6045
- <tag line="300" name="since" description="0.80"/>
6046
- <tag line="300" name="var" description="" type="array">
6047
  <type by_reference="false">array</type>
6048
  </tag>
6049
  </docblock>
6050
  </property>
6051
- <property final="false" static="true" visibility="private" line="1563" namespace="global" package="Media Library Assistant">
6052
  <name>$add_attachment_id</name>
6053
  <default><![CDATA[0]]></default>
6054
- <docblock line="1553">
6055
  <description><![CDATA[Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter]]></description>
6056
  <long-description><![CDATA[<p>Ensures that IPTC/EXIF and Custom Field mapping is only performed when the attachment is first
6057
  added to the Media Library.</p>]]></long-description>
6058
- <tag line="1553" name="since" description="1.70"/>
6059
- <tag line="1553" name="var" description="" type="integer">
6060
  <type by_reference="false">integer</type>
6061
  </tag>
6062
  </docblock>
6063
  </property>
6064
- <property final="false" static="true" visibility="private" line="2483" namespace="global" package="Media Library Assistant">
6065
  <name>$custom_field_data_sources</name>
6066
  <default><![CDATA[array('absolute_path', 'absolute_file_name', 'base_file', 'path', 'file_name', 'name_only', 'extension', 'file_size', 'upload_date', 'mime_type', 'dimensions', 'pixels', 'width', 'height', 'orientation', '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', 'parent_date', 'parent_type', 'parent_title', 'parent_issues', 'reference_issues', 'featured_in', 'featured_in_title', 'inserted_in', 'inserted_in_title', 'gallery_in', 'gallery_in_title', 'mla_gallery_in', 'mla_gallery_in_title', 'aperture', 'credit', 'camera', 'caption', 'created_timestamp', 'copyright', 'focal_length', 'iso', 'shutter_speed', 'title')]]></default>
6067
- <docblock line="2476">
6068
  <description><![CDATA[Array of Data Source names for custom field mapping]]></description>
6069
  <long-description><![CDATA[]]></long-description>
6070
- <tag line="2476" name="since" description="1.10"/>
6071
- <tag line="2476" name="var" description="" type="array">
6072
  <type by_reference="false">array</type>
6073
  </tag>
6074
  </docblock>
6075
  </property>
6076
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="269" package="Media Library Assistant">
6077
  <name>initialize</name>
6078
  <full_name>initialize</full_name>
6079
- <docblock line="262">
6080
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
6081
  <long-description><![CDATA[]]></long-description>
6082
- <tag line="262" name="since" description="1.00"/>
6083
- <tag line="262" name="return" description="" type="void">
6084
  <type by_reference="false">void</type>
6085
  </tag>
6086
  </docblock>
6087
  </method>
6088
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="316" package="Media Library Assistant">
6089
  <name>_load_option_templates</name>
6090
  <full_name>_load_option_templates</full_name>
6091
- <docblock line="309">
6092
  <description><![CDATA[Load style and markup templates to $mla_templates]]></description>
6093
  <long-description><![CDATA[]]></long-description>
6094
- <tag line="309" name="since" description="0.80"/>
6095
- <tag line="309" name="return" description="" type="void">
6096
  <type by_reference="false">void</type>
6097
  </tag>
6098
  </docblock>
6099
  </method>
6100
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="363" package="Media Library Assistant">
6101
  <name>mla_localize_option_definitions_array</name>
6102
  <full_name>mla_localize_option_definitions_array</full_name>
6103
- <docblock line="353">
6104
  <description><![CDATA[Localize $mla_option_definitions array]]></description>
6105
  <long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
6106
  in the "public static" array definition itself.</p>]]></long-description>
6107
- <tag line="353" name="since" description="1.70"/>
6108
- <tag line="353" name="return" description="" type="void">
6109
  <type by_reference="false">void</type>
6110
  </tag>
6111
  </docblock>
6112
  </method>
6113
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1053" package="Media Library Assistant">
6114
  <name>mla_fetch_gallery_template</name>
6115
  <full_name>mla_fetch_gallery_template</full_name>
6116
- <docblock line="1043">
6117
  <description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
6118
  <long-description><![CDATA[]]></long-description>
6119
- <tag line="1043" name="since" description="0.80"/>
6120
- <tag line="1043" name="param" description="Template name" type="string" variable="$key">
6121
  <type by_reference="false">string</type>
6122
  </tag>
6123
- <tag line="1043" name="param" description="Template type; 'style' (default) or 'markup'" type="string" variable="$type">
6124
  <type by_reference="false">string</type>
6125
  </tag>
6126
- <tag line="1043" name="return" description="requested template, false if not found or null if no templates" type="string|boolean|null">
6127
  <type by_reference="false">string</type>
6128
  <type by_reference="false">boolean</type>
6129
  <type by_reference="false">null</type>
6130
  </tag>
6131
  </docblock>
6132
- <argument line="1053">
6133
  <name>$key</name>
6134
  <default><![CDATA[]]></default>
6135
  <type/>
6136
  </argument>
6137
- <argument line="1053">
6138
  <name>$type</name>
6139
  <default><![CDATA['style']]></default>
6140
  <type/>
6141
  </argument>
6142
  </method>
6143
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1075" package="Media Library Assistant">
6144
  <name>mla_get_style_templates</name>
6145
  <full_name>mla_get_style_templates</full_name>
6146
- <docblock line="1068">
6147
  <description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
6148
  <long-description><![CDATA[]]></long-description>
6149
- <tag line="1068" name="since" description="0.80"/>
6150
- <tag line="1068" name="return" description="name =&gt; value for all style templates or null if no templates" type="array|null">
6151
  <type by_reference="false">array</type>
6152
  <type by_reference="false">null</type>
6153
  </tag>
6154
  </docblock>
6155
  </method>
6156
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1101" package="Media Library Assistant">
6157
  <name>mla_put_style_templates</name>
6158
  <full_name>mla_put_style_templates</full_name>
6159
- <docblock line="1093">
6160
  <description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
6161
  <long-description><![CDATA[]]></long-description>
6162
- <tag line="1093" name="since" description="0.80"/>
6163
- <tag line="1093" name="param" description="name =&gt; value for all user-defined style templates" type="array" variable="$templates">
6164
  <type by_reference="false">array</type>
6165
  </tag>
6166
- <tag line="1093" name="return" description="true if success, false if failure" type="boolean">
6167
  <type by_reference="false">boolean</type>
6168
  </tag>
6169
  </docblock>
6170
- <argument line="1101">
6171
  <name>$templates</name>
6172
  <default><![CDATA[]]></default>
6173
  <type/>
6174
  </argument>
6175
  </method>
6176
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1117" package="Media Library Assistant">
6177
  <name>mla_get_markup_templates</name>
6178
  <full_name>mla_get_markup_templates</full_name>
6179
- <docblock line="1110">
6180
  <description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
6181
  <long-description><![CDATA[]]></long-description>
6182
- <tag line="1110" name="since" description="0.80"/>
6183
- <tag line="1110" name="return" description="name =&gt; value for all markup templates or null if no templates" type="array|null">
6184
  <type by_reference="false">array</type>
6185
  <type by_reference="false">null</type>
6186
  </tag>
6187
  </docblock>
6188
  </method>
6189
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1172" package="Media Library Assistant">
6190
  <name>mla_put_markup_templates</name>
6191
  <full_name>mla_put_markup_templates</full_name>
6192
- <docblock line="1164">
6193
  <description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
6194
  <long-description><![CDATA[]]></long-description>
6195
- <tag line="1164" name="since" description="0.80"/>
6196
- <tag line="1164" name="param" description="name =&gt; value for all user-defined markup templates" type="array" variable="$templates">
6197
  <type by_reference="false">array</type>
6198
  </tag>
6199
- <tag line="1164" name="return" description="true if success, false if failure" type="boolean">
6200
  <type by_reference="false">boolean</type>
6201
  </tag>
6202
  </docblock>
6203
- <argument line="1172">
6204
  <name>$templates</name>
6205
  <default><![CDATA[]]></default>
6206
  <type/>
6207
  </argument>
6208
  </method>
6209
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1192" package="Media Library Assistant">
6210
  <name>mla_get_option</name>
6211
  <full_name>mla_get_option</full_name>
6212
- <docblock line="1181">
6213
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
6214
  <long-description><![CDATA[]]></long-description>
6215
- <tag line="1181" name="since" description="0.1"/>
6216
- <tag line="1181" name="param" description="Name of the desired option" type="string" variable="$option">
6217
  <type by_reference="false">string</type>
6218
  </tag>
6219
- <tag line="1181" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
6220
  <type by_reference="false">boolean</type>
6221
  </tag>
6222
- <tag line="1181" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
6223
  <type by_reference="false">boolean</type>
6224
  </tag>
6225
- <tag line="1181" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
6226
  <type by_reference="false">mixed</type>
6227
  </tag>
6228
  </docblock>
6229
- <argument line="1192">
6230
  <name>$option</name>
6231
  <default><![CDATA[]]></default>
6232
  <type/>
6233
  </argument>
6234
- <argument line="1192">
6235
  <name>$get_default</name>
6236
  <default><![CDATA[false]]></default>
6237
  <type/>
6238
  </argument>
6239
- <argument line="1192">
6240
  <name>$get_stored</name>
6241
  <default><![CDATA[false]]></default>
6242
  <type/>
6243
  </argument>
6244
  </method>
6245
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1222" package="Media Library Assistant">
6246
  <name>mla_update_option</name>
6247
  <full_name>mla_update_option</full_name>
6248
- <docblock line="1212">
6249
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
6250
  <long-description><![CDATA[]]></long-description>
6251
- <tag line="1212" name="since" description="0.1"/>
6252
- <tag line="1212" name="param" description="Name of the desired option" type="string" variable="$option">
6253
  <type by_reference="false">string</type>
6254
  </tag>
6255
- <tag line="1212" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
6256
  <type by_reference="false">mixed</type>
6257
  </tag>
6258
- <tag line="1212" name="return" description="True if the value was changed or false if the update failed" type="boolean">
6259
  <type by_reference="false">boolean</type>
6260
  </tag>
6261
  </docblock>
6262
- <argument line="1222">
6263
  <name>$option</name>
6264
  <default><![CDATA[]]></default>
6265
  <type/>
6266
  </argument>
6267
- <argument line="1222">
6268
  <name>$newvalue</name>
6269
  <default><![CDATA[]]></default>
6270
  <type/>
6271
  </argument>
6272
  </method>
6273
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1239" package="Media Library Assistant">
6274
  <name>mla_delete_option</name>
6275
  <full_name>mla_delete_option</full_name>
6276
- <docblock line="1230">
6277
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
6278
  <long-description><![CDATA[]]></long-description>
6279
- <tag line="1230" name="since" description="0.1"/>
6280
- <tag line="1230" name="param" description="Name of the desired option" type="string" variable="$option">
6281
  <type by_reference="false">string</type>
6282
  </tag>
6283
- <tag line="1230" name="return" description="True if the option was deleted, otherwise false" type="boolean">
6284
  <type by_reference="false">boolean</type>
6285
  </tag>
6286
  </docblock>
6287
- <argument line="1239">
6288
  <name>$option</name>
6289
  <default><![CDATA[]]></default>
6290
  <type/>
6291
  </argument>
6292
  </method>
6293
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1260" package="Media Library Assistant">
6294
  <name>mla_taxonomy_support</name>
6295
  <full_name>mla_taxonomy_support</full_name>
6296
- <docblock line="1247">
6297
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
6298
  settings are being updated or reset.]]></description>
6299
  <long-description><![CDATA[]]></long-description>
6300
- <tag line="1247" name="since" description="0.30"/>
6301
- <tag line="1247" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
6302
  <type by_reference="false">string</type>
6303
  </tag>
6304
- <tag line="1247" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
6305
  <type by_reference="false">string</type>
6306
  </tag>
6307
- <tag line="1247" 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">
6308
  <type by_reference="false">boolean</type>
6309
  <type by_reference="false">string</type>
6310
  </tag>
6311
  </docblock>
6312
- <argument line="1260">
6313
  <name>$tax_name</name>
6314
  <default><![CDATA[]]></default>
6315
  <type/>
6316
  </argument>
6317
- <argument line="1260">
6318
  <name>$support_type</name>
6319
  <default><![CDATA['support']]></default>
6320
  <type/>
6321
  </argument>
6322
  </method>
6323
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1337" package="Media Library Assistant">
6324
  <name>mla_attachment_display_settings_option_handler</name>
6325
  <full_name>mla_attachment_display_settings_option_handler</full_name>
6326
- <docblock line="1324">
6327
  <description><![CDATA[Render and manage Attachment Display Settings options; alignment, link type and size]]></description>
6328
  <long-description><![CDATA[]]></long-description>
6329
- <tag line="1324" name="since" description="1.71"/>
6330
- <tag line="1324" name="uses" description="\global\MLASettings::$page_template_array" refers="\global\MLASettings::$page_template_array"/>
6331
- <tag line="1324" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
6332
  <type by_reference="false">string</type>
6333
  </tag>
6334
- <tag line="1324" name="param" description="option name, e.g., 'image_default_align'" type="string" variable="$key">
6335
  <type by_reference="false">string</type>
6336
  </tag>
6337
- <tag line="1324" name="param" description="option parameters" type="array" variable="$value">
6338
  <type by_reference="false">array</type>
6339
  </tag>
6340
- <tag line="1324" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
6341
  <type by_reference="false">array</type>
6342
  </tag>
6343
- <tag line="1324" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
6344
  <type by_reference="false">string</type>
6345
  </tag>
6346
  </docblock>
6347
- <argument line="1337">
6348
  <name>$action</name>
6349
  <default><![CDATA[]]></default>
6350
  <type/>
6351
  </argument>
6352
- <argument line="1337">
6353
  <name>$key</name>
6354
  <default><![CDATA[]]></default>
6355
  <type/>
6356
  </argument>
6357
- <argument line="1337">
6358
  <name>$value</name>
6359
  <default><![CDATA[]]></default>
6360
  <type/>
6361
  </argument>
6362
- <argument line="1337">
6363
  <name>$args</name>
6364
  <default><![CDATA[null]]></default>
6365
  <type/>
6366
  </argument>
6367
  </method>
6368
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1401" package="Media Library Assistant">
6369
  <name>mla_taxonomy_option_handler</name>
6370
  <full_name>mla_taxonomy_option_handler</full_name>
6371
- <docblock line="1388">
6372
  <description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
6373
  <long-description><![CDATA[]]></long-description>
6374
- <tag line="1388" name="since" description="0.30"/>
6375
- <tag line="1388" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
6376
- <tag line="1388" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
6377
  <type by_reference="false">string</type>
6378
  </tag>
6379
- <tag line="1388" name="param" description="option name, e.g., 'taxonomy_support'" type="string" variable="$key">
6380
  <type by_reference="false">string</type>
6381
  </tag>
6382
- <tag line="1388" name="param" description="option parameters" type="array" variable="$value">
6383
  <type by_reference="false">array</type>
6384
  </tag>
6385
- <tag line="1388" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
6386
  <type by_reference="false">array</type>
6387
  </tag>
6388
- <tag line="1388" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
6389
  <type by_reference="false">string</type>
6390
  </tag>
6391
  </docblock>
6392
- <argument line="1401">
6393
  <name>$action</name>
6394
  <default><![CDATA[]]></default>
6395
  <type/>
6396
  </argument>
6397
- <argument line="1401">
6398
  <name>$key</name>
6399
  <default><![CDATA[]]></default>
6400
  <type/>
6401
  </argument>
6402
- <argument line="1401">
6403
  <name>$value</name>
6404
  <default><![CDATA[]]></default>
6405
  <type/>
6406
  </argument>
6407
- <argument line="1401">
6408
  <name>$args</name>
6409
  <default><![CDATA[null]]></default>
6410
  <type/>
6411
  </argument>
6412
  </method>
6413
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1525" package="Media Library Assistant">
6414
  <name>mla_wp_handle_upload_prefilter_filter</name>
6415
  <full_name>mla_wp_handle_upload_prefilter_filter</full_name>
6416
- <docblock line="1516">
6417
  <description><![CDATA[Examine or alter the filename before the file is made permanent]]></description>
6418
  <long-description><![CDATA[]]></long-description>
6419
- <tag line="1516" name="since" description="1.70"/>
6420
- <tag line="1516" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
6421
  <type by_reference="false">array</type>
6422
  </tag>
6423
- <tag line="1516" name="return" description="updated file parameters" type="array">
6424
  <type by_reference="false">array</type>
6425
  </tag>
6426
  </docblock>
6427
- <argument line="1525">
6428
  <name>$file</name>
6429
  <default><![CDATA[]]></default>
6430
  <type/>
6431
  </argument>
6432
  </method>
6433
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1542" package="Media Library Assistant">
6434
  <name>mla_wp_handle_upload_filter</name>
6435
  <full_name>mla_wp_handle_upload_filter</full_name>
6436
- <docblock line="1533">
6437
  <description><![CDATA[Called once for each file uploaded]]></description>
6438
  <long-description><![CDATA[]]></long-description>
6439
- <tag line="1533" name="since" description="1.70"/>
6440
- <tag line="1533" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
6441
  <type by_reference="false">array</type>
6442
  </tag>
6443
- <tag line="1533" name="return" description="updated file parameters" type="array">
6444
  <type by_reference="false">array</type>
6445
  </tag>
6446
  </docblock>
6447
- <argument line="1542">
6448
  <name>$file</name>
6449
  <default><![CDATA[]]></default>
6450
  <type/>
6451
  </argument>
6452
  </method>
6453
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1576" package="Media Library Assistant">
6454
  <name>mla_add_attachment_action</name>
6455
  <full_name>mla_add_attachment_action</full_name>
6456
- <docblock line="1565">
6457
  <description><![CDATA[Set $add_attachment_id to just-inserted attachment]]></description>
6458
  <long-description><![CDATA[<p>All of the actual processing is done later, in mla_update_attachment_metadata_filter.</p>]]></long-description>
6459
- <tag line="1565" name="since" description="1.00"/>
6460
- <tag line="1565" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_ID">
6461
  <type by_reference="false">integer</type>
6462
  </tag>
6463
- <tag line="1565" name="return" description="" type="void">
6464
  <type by_reference="false">void</type>
6465
  </tag>
6466
  </docblock>
6467
- <argument line="1576">
6468
  <name>$post_ID</name>
6469
  <default><![CDATA[]]></default>
6470
  <type/>
6471
  </argument>
6472
  </method>
6473
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1591" package="Media Library Assistant">
6474
  <name>_update_attachment_metadata</name>
6475
  <full_name>_update_attachment_metadata</full_name>
6476
- <docblock line="1581">
6477
  <description><![CDATA[Update _wp_attachment_metadata for just-inserted attachment]]></description>
6478
  <long-description><![CDATA[]]></long-description>
6479
- <tag line="1581" name="since" description="1.70"/>
6480
- <tag line="1581" name="param" description="Attachment metadata updates" type="array" variable="$updates">
6481
  <type by_reference="false">array</type>
6482
  </tag>
6483
- <tag line="1581" name="param" description="Attachment metadata, by reference; updated by this function" type="array" variable="$data">
6484
  <type by_reference="false">array</type>
6485
  </tag>
6486
- <tag line="1581" name="return" description="Attachment metadata updates, with &quot;meta:&quot; elements removed" type="array">
6487
  <type by_reference="false">array</type>
6488
  </tag>
6489
  </docblock>
6490
- <argument line="1591">
6491
  <name>$updates</name>
6492
  <default><![CDATA[]]></default>
6493
  <type/>
6494
  </argument>
6495
- <argument line="1591">
6496
  <name>$data</name>
6497
  <default><![CDATA[]]></default>
6498
  <type/>
6499
  </argument>
6500
  </method>
6501
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1627" package="Media Library Assistant">
6502
  <name>mla_update_attachment_metadata_filter</name>
6503
  <full_name>mla_update_attachment_metadata_filter</full_name>
6504
- <docblock line="1614">
6505
  <description><![CDATA[Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment]]></description>
6506
  <long-description><![CDATA[<p>This filter tests the $add_attachment_id variable set by the mla_add_attachment_action
6507
  to ensure that mapping is only performed for new additions, not metadata updates.</p>]]></long-description>
6508
- <tag line="1614" name="since" description="1.10"/>
6509
- <tag line="1614" name="param" description="Attachment metadata for just-inserted attachment" type="array" variable="$data">
6510
  <type by_reference="false">array</type>
6511
  </tag>
6512
- <tag line="1614" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
6513
  <type by_reference="false">integer</type>
6514
  </tag>
6515
- <tag line="1614" name="return" description="" type="void">
6516
  <type by_reference="false">void</type>
6517
  </tag>
6518
  </docblock>
6519
- <argument line="1627">
6520
  <name>$data</name>
6521
  <default><![CDATA[]]></default>
6522
  <type/>
6523
  </argument>
6524
- <argument line="1627">
6525
  <name>$post_id</name>
6526
  <default><![CDATA[]]></default>
6527
  <type/>
6528
  </argument>
6529
  </method>
6530
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1693" package="Media Library Assistant">
6531
  <name>mla_custom_field_option_value</name>
6532
  <full_name>mla_custom_field_option_value</full_name>
6533
- <docblock line="1684">
6534
  <description><![CDATA[Fetch custom field option value given a slug]]></description>
6535
  <long-description><![CDATA[]]></long-description>
6536
- <tag line="1684" name="since" description="1.10"/>
6537
- <tag line="1684" name="param" description="slug, e.g., 'c_file-size' for the 'File Size' field" type="string" variable="$slug">
6538
  <type by_reference="false">string</type>
6539
  </tag>
6540
- <tag line="1684" name="return" description="option value, e.g., array( 'name' =&gt; 'File Size', ... )" type="array">
6541
  <type by_reference="false">array</type>
6542
  </tag>
6543
  </docblock>
6544
- <argument line="1693">
6545
  <name>$slug</name>
6546
  <default><![CDATA[]]></default>
6547
  <type/>
6548
  </argument>
6549
  </method>
6550
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1714" package="Media Library Assistant">
6551
  <name>mla_custom_field_support</name>
6552
  <full_name>mla_custom_field_support</full_name>
6553
- <docblock line="1705">
6554
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
6555
  <long-description><![CDATA[]]></long-description>
6556
- <tag line="1705" name="since" description="1.10"/>
6557
- <tag line="1705" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
6558
  <type by_reference="false">string</type>
6559
  </tag>
6560
- <tag line="1705" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
6561
  <type by_reference="false">array</type>
6562
  </tag>
6563
  </docblock>
6564
- <argument line="1714">
6565
  <name>$support_type</name>
6566
  <default><![CDATA['default_columns']]></default>
6567
  <type/>
6568
  </argument>
6569
  </method>
6570
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1765" package="Media Library Assistant">
6571
  <name>_evaluate_file_information</name>
6572
  <full_name>_evaluate_file_information</full_name>
6573
- <docblock line="1753">
6574
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
6575
  <long-description><![CDATA[]]></long-description>
6576
- <tag line="1753" name="since" description="1.10"/>
6577
- <tag line="1753" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
6578
  <type by_reference="false">string</type>
6579
  </tag>
6580
- <tag line="1753" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
6581
  <type by_reference="false">array</type>
6582
  </tag>
6583
- <tag line="1753" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
6584
  <type by_reference="false">array</type>
6585
  </tag>
6586
- <tag line="1753" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
6587
  <type by_reference="false">integer</type>
6588
  </tag>
6589
- <tag line="1753" name="return" description="absolute_path_raw, absolute_path, absolute_file_name_raw, absolute_file_name, absolute_file, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes" type="array">
6590
  <type by_reference="false">array</type>
6591
  </tag>
6592
  </docblock>
6593
- <argument line="1765">
6594
  <name>$upload_dir</name>
6595
  <default><![CDATA[]]></default>
6596
  <type/>
6597
  </argument>
6598
- <argument line="1765">
6599
  <name>$wp_attached_files</name>
6600
  <default><![CDATA[]]></default>
6601
  <type/>
6602
  </argument>
6603
- <argument line="1765">
6604
  <name>$wp_attachment_metadata</name>
6605
  <default><![CDATA[]]></default>
6606
  <type/>
6607
  </argument>
6608
- <argument line="1765">
6609
  <name>$post_id</name>
6610
  <default><![CDATA[]]></default>
6611
  <type/>
6612
  </argument>
6613
  </method>
6614
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1851" package="Media Library Assistant">
6615
  <name>_evaluate_post_information</name>
6616
  <full_name>_evaluate_post_information</full_name>
6617
- <docblock line="1840">
6618
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
6619
  <long-description><![CDATA[]]></long-description>
6620
- <tag line="1840" name="since" description="1.40"/>
6621
- <tag line="1840" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
6622
  <type by_reference="false">integer</type>
6623
  </tag>
6624
- <tag line="1840" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
6625
  <type by_reference="false">string</type>
6626
  </tag>
6627
- <tag line="1840" name="param" description="data source name ( post_date or post_parent )" type="string" variable="$data_source">
6628
  <type by_reference="false">string</type>
6629
  </tag>
6630
- <tag line="1840" name="return" description="'post_date' =&gt; (string) upload date, 'post_parent' =&gt; (integer) ID of parent or zero )" type="mixed">
6631
  <type by_reference="false">mixed</type>
6632
  </tag>
6633
  </docblock>
6634
- <argument line="1851">
6635
  <name>$post_id</name>
6636
  <default><![CDATA[]]></default>
6637
  <type/>
6638
  </argument>
6639
- <argument line="1851">
6640
  <name>$category</name>
6641
  <default><![CDATA[]]></default>
6642
  <type/>
6643
  </argument>
6644
- <argument line="1851">
6645
  <name>$data_source</name>
6646
  <default><![CDATA[]]></default>
6647
  <type/>
6648
  </argument>
6649
  </method>
6650
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1886" package="Media Library Assistant">
6651
  <name>_evaluate_array_result</name>
6652
  <full_name>_evaluate_array_result</full_name>
6653
- <docblock line="1875">
6654
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
6655
  <long-description><![CDATA[]]></long-description>
6656
- <tag line="1875" name="since" description="1.40"/>
6657
- <tag line="1875" name="param" description="field value(s)" type="array" variable="$value">
6658
  <type by_reference="false">array</type>
6659
  </tag>
6660
- <tag line="1875" name="param" description="format option text|single|export|array|multi" type="string" variable="$option">
6661
  <type by_reference="false">string</type>
6662
  </tag>
6663
- <tag line="1875" name="param" description="keep existing value(s) - for 'multi' option" type="boolean" variable="$keep_existing">
6664
  <type by_reference="false">boolean</type>
6665
  </tag>
6666
- <tag line="1875" name="return" description="array for option = array|multi else string" type="mixed">
6667
  <type by_reference="false">mixed</type>
6668
  </tag>
6669
  </docblock>
6670
- <argument line="1886">
6671
  <name>$value</name>
6672
  <default><![CDATA[]]></default>
6673
  <type/>
6674
  </argument>
6675
- <argument line="1886">
6676
  <name>$option</name>
6677
  <default><![CDATA[]]></default>
6678
  <type/>
6679
  </argument>
6680
- <argument line="1886">
6681
  <name>$keep_existing</name>
6682
  <default><![CDATA[]]></default>
6683
  <type/>
6684
  </argument>
6685
  </method>
6686
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1926" package="Media Library Assistant">
6687
  <name>mla_get_data_source</name>
6688
  <full_name>mla_get_data_source</full_name>
6689
- <docblock line="1911">
6690
  <description><![CDATA[Get IPTC/EXIF or custom field mapping data source]]></description>
6691
  <long-description><![CDATA[<p>Defined as public so MLA Mapping Hooks clients can call it.
6692
  Isolates clients from changes to _evaluate_data_source().</p>]]></long-description>
6693
- <tag line="1911" name="since" description="1.70"/>
6694
- <tag line="1911" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
6695
  <type by_reference="false">integer</type>
6696
  </tag>
6697
- <tag line="1911" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
6698
  <type by_reference="false">string</type>
6699
  </tag>
6700
- <tag line="1911" name="param" description="data source specification ( name, *data_source, *keep_existing, *format, mla_column, quick_edit, bulk_edit, *meta_name, *option, no_null )" type="array" variable="$data_value">
6701
  <type by_reference="false">array</type>
6702
  </tag>
6703
- <tag line="1911" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
6704
  <type by_reference="false">array</type>
6705
  </tag>
6706
- <tag line="1911" name="return" description="data source value" type="string|array">
6707
  <type by_reference="false">string</type>
6708
  <type by_reference="false">array</type>
6709
  </tag>
6710
  </docblock>
6711
- <argument line="1926">
6712
  <name>$post_id</name>
6713
  <default><![CDATA[]]></default>
6714
  <type/>
6715
  </argument>
6716
- <argument line="1926">
6717
  <name>$category</name>
6718
  <default><![CDATA[]]></default>
6719
  <type/>
6720
  </argument>
6721
- <argument line="1926">
6722
  <name>$data_value</name>
6723
  <default><![CDATA[]]></default>
6724
  <type/>
6725
  </argument>
6726
- <argument line="1926">
6727
  <name>$attachment_metadata</name>
6728
  <default><![CDATA[NULL]]></default>
6729
  <type/>
6730
  </argument>
6731
  </method>
6732
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1951" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6733
  <name>_evaluate_data_source</name>
6734
  <full_name>_evaluate_data_source</full_name>
6735
- <docblock line="1939">
6736
  <description><![CDATA[Evaluate custom field mapping data source]]></description>
6737
  <long-description><![CDATA[]]></long-description>
6738
- <tag line="1939" name="since" description="1.10"/>
6739
- <tag line="1939" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
6740
  <type by_reference="false">integer</type>
6741
  </tag>
6742
- <tag line="1939" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
6743
  <type by_reference="false">string</type>
6744
  </tag>
6745
- <tag line="1939" name="param" description="data source specification ( name, *data_source, *keep_existing, *format, mla_column, quick_edit, bulk_edit, *meta_name, *option, no_null )" type="array" variable="$data_value">
6746
  <type by_reference="false">array</type>
6747
  </tag>
6748
- <tag line="1939" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
6749
  <type by_reference="false">array</type>
6750
  </tag>
6751
- <tag line="1939" name="return" description="data source value" type="string|array">
6752
  <type by_reference="false">string</type>
6753
  <type by_reference="false">array</type>
6754
  </tag>
6755
  </docblock>
6756
- <argument line="1951">
6757
  <name>$post_id</name>
6758
  <default><![CDATA[]]></default>
6759
  <type/>
6760
  </argument>
6761
- <argument line="1951">
6762
  <name>$category</name>
6763
  <default><![CDATA[]]></default>
6764
  <type/>
6765
  </argument>
6766
- <argument line="1951">
6767
  <name>$data_value</name>
6768
  <default><![CDATA[]]></default>
6769
  <type/>
6770
  </argument>
6771
- <argument line="1951">
6772
  <name>$attachment_metadata</name>
6773
  <default><![CDATA[NULL]]></default>
6774
  <type/>
6775
  </argument>
6776
  </method>
6777
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2350" package="Media Library Assistant">
6778
  <name>mla_evaluate_custom_field_mapping</name>
6779
  <full_name>mla_evaluate_custom_field_mapping</full_name>
6780
- <docblock line="2338">
6781
  <description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
6782
  <long-description><![CDATA[]]></long-description>
6783
- <tag line="2338" name="since" description="1.10"/>
6784
- <tag line="2338" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
6785
  <type by_reference="false">integer</type>
6786
  </tag>
6787
- <tag line="2338" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
6788
  <type by_reference="false">string</type>
6789
  </tag>
6790
- <tag line="2338" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
6791
  <type by_reference="false">array</type>
6792
  </tag>
6793
- <tag line="2338" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
6794
  <type by_reference="false">array</type>
6795
  </tag>
6796
- <tag line="2338" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
6797
  <type by_reference="false">array</type>
6798
  </tag>
6799
  </docblock>
6800
- <argument line="2350">
6801
  <name>$post_id</name>
6802
  <default><![CDATA[]]></default>
6803
  <type/>
6804
  </argument>
6805
- <argument line="2350">
6806
  <name>$category</name>
6807
  <default><![CDATA[]]></default>
6808
  <type/>
6809
  </argument>
6810
- <argument line="2350">
6811
  <name>$settings</name>
6812
  <default><![CDATA[NULL]]></default>
6813
  <type/>
6814
  </argument>
6815
- <argument line="2350">
6816
  <name>$attachment_metadata</name>
6817
  <default><![CDATA[NULL]]></default>
6818
  <type/>
6819
  </argument>
6820
  </method>
6821
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2449" package="Media Library Assistant">
6822
  <name>_compose_custom_field_option_list</name>
6823
  <full_name>_compose_custom_field_option_list</full_name>
6824
- <docblock line="2438">
6825
  <description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
6826
  <long-description><![CDATA[]]></long-description>
6827
- <tag line="2438" name="since" description="1.10"/>
6828
- <tag line="2438" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
6829
- <tag line="2438" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
6830
  <type by_reference="false">string</type>
6831
  </tag>
6832
- <tag line="2438" name="param" description="optional list of terms to exclude from the list" type="array" variable="$blacklist">
6833
  <type by_reference="false">array</type>
6834
  </tag>
6835
- <tag line="2438" name="return" description="HTML markup with select field options" type="string">
6836
  <type by_reference="false">string</type>
6837
  </tag>
6838
  </docblock>
6839
- <argument line="2449">
6840
  <name>$selection</name>
6841
  <default><![CDATA['none']]></default>
6842
  <type/>
6843
  </argument>
6844
- <argument line="2449">
6845
  <name>$blacklist</name>
6846
  <default><![CDATA[array()]]></default>
6847
  <type/>
6848
  </argument>
6849
  </method>
6850
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2545" package="Media Library Assistant">
6851
  <name>_compose_data_source_option_list</name>
6852
  <full_name>_compose_data_source_option_list</full_name>
6853
- <docblock line="2535">
6854
  <description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
6855
  <long-description><![CDATA[]]></long-description>
6856
- <tag line="2535" name="since" description="1.10"/>
6857
- <tag line="2535" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
6858
- <tag line="2535" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
6859
  <type by_reference="false">string</type>
6860
  </tag>
6861
- <tag line="2535" name="return" description="HTML markup with select field options" type="string">
6862
  <type by_reference="false">string</type>
6863
  </tag>
6864
  </docblock>
6865
- <argument line="2545">
6866
  <name>$selection</name>
6867
  <default><![CDATA['none']]></default>
6868
  <type/>
6869
  </argument>
6870
  </method>
6871
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2609" package="Media Library Assistant">
6872
  <name>_update_custom_field_mapping</name>
6873
  <full_name>_update_custom_field_mapping</full_name>
6874
- <docblock line="2599">
6875
  <description><![CDATA[Update custom field mappings]]></description>
6876
  <long-description><![CDATA[]]></long-description>
6877
- <tag line="2599" name="since" description="1.10"/>
6878
- <tag line="2599" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
6879
  <type by_reference="false">array</type>
6880
  </tag>
6881
- <tag line="2599" name="param" description="new values" type="array" variable="$new_values">
6882
  <type by_reference="false">array</type>
6883
  </tag>
6884
- <tag line="2599" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated custom_field_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
6885
  <type by_reference="false">array</type>
6886
  </tag>
6887
  </docblock>
6888
- <argument line="2609">
6889
  <name>$current_values</name>
6890
  <default><![CDATA[]]></default>
6891
  <type/>
6892
  </argument>
6893
- <argument line="2609">
6894
  <name>$new_values</name>
6895
  <default><![CDATA[]]></default>
6896
  <type/>
6897
  </argument>
6898
  </method>
6899
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2822" package="Media Library Assistant">
6900
  <name>mla_custom_field_option_handler</name>
6901
  <full_name>mla_custom_field_option_handler</full_name>
6902
- <docblock line="2809">
6903
  <description><![CDATA[Render and manage custom field mapping options]]></description>
6904
  <long-description><![CDATA[]]></long-description>
6905
- <tag line="2809" name="since" description="1.10"/>
6906
- <tag line="2809" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
6907
- <tag line="2809" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
6908
  <type by_reference="false">string</type>
6909
  </tag>
6910
- <tag line="2809" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
6911
  <type by_reference="false">string</type>
6912
  </tag>
6913
- <tag line="2809" name="param" description="option parameters" type="array" variable="$value">
6914
  <type by_reference="false">array</type>
6915
  </tag>
6916
- <tag line="2809" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
6917
  <type by_reference="false">array</type>
6918
  </tag>
6919
- <tag line="2809" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
6920
  <type by_reference="false">string</type>
6921
  </tag>
6922
  </docblock>
6923
- <argument line="2822">
6924
  <name>$action</name>
6925
  <default><![CDATA[]]></default>
6926
  <type/>
6927
  </argument>
6928
- <argument line="2822">
6929
  <name>$key</name>
6930
  <default><![CDATA[]]></default>
6931
  <type/>
6932
  </argument>
6933
- <argument line="2822">
6934
  <name>$value</name>
6935
  <default><![CDATA[]]></default>
6936
  <type/>
6937
  </argument>
6938
- <argument line="2822">
6939
  <name>$args</name>
6940
  <default><![CDATA[null]]></default>
6941
  <type/>
6942
  </argument>
6943
  </method>
6944
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3075" package="Media Library Assistant">
6945
  <name>mla_evaluate_iptc_exif_mapping</name>
6946
  <full_name>mla_evaluate_iptc_exif_mapping</full_name>
6947
- <docblock line="3063">
6948
  <description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
6949
  <long-description><![CDATA[]]></long-description>
6950
- <tag line="3063" name="since" description="1.00"/>
6951
- <tag line="3063" name="param" description="post object with current values" type="object" variable="$post">
6952
  <type by_reference="false">object</type>
6953
  </tag>
6954
- <tag line="3063" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
6955
  <type by_reference="false">string</type>
6956
  </tag>
6957
- <tag line="3063" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
6958
  <type by_reference="false">array</type>
6959
  </tag>
6960
- <tag line="3063" name="param" description="(optional) _wp_attachment_metadata, for MLAOptions::mla_update_attachment_metadata_filter" type="array" variable="$attachment_metadata">
6961
  <type by_reference="false">array</type>
6962
  </tag>
6963
- <tag line="3063" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
6964
  <type by_reference="false">array</type>
6965
  </tag>
6966
  </docblock>
6967
- <argument line="3075">
6968
  <name>$post</name>
6969
  <default><![CDATA[]]></default>
6970
  <type/>
6971
  </argument>
6972
- <argument line="3075">
6973
  <name>$category</name>
6974
  <default><![CDATA[]]></default>
6975
  <type/>
6976
  </argument>
6977
- <argument line="3075">
6978
  <name>$settings</name>
6979
  <default><![CDATA[NULL]]></default>
6980
  <type/>
6981
  </argument>
6982
- <argument line="3075">
6983
  <name>$attachment_metadata</name>
6984
  <default><![CDATA[NULL]]></default>
6985
  <type/>
6986
  </argument>
6987
  </method>
6988
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3386" package="Media Library Assistant">
6989
  <name>_compose_iptc_option_list</name>
6990
  <full_name>_compose_iptc_option_list</full_name>
6991
- <docblock line="3376">
6992
  <description><![CDATA[Compose an IPTC Options list with current selection]]></description>
6993
  <long-description><![CDATA[]]></long-description>
6994
- <tag line="3376" name="since" description="1.00"/>
6995
- <tag line="3376" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
6996
- <tag line="3376" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
6997
  <type by_reference="false">string</type>
6998
  </tag>
6999
- <tag line="3376" name="return" description="HTML markup with select field options" type="string">
7000
  <type by_reference="false">string</type>
7001
  </tag>
7002
  </docblock>
7003
- <argument line="3386">
7004
  <name>$selection</name>
7005
  <default><![CDATA['none']]></default>
7006
  <type/>
7007
  </argument>
7008
  </method>
7009
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3419" package="Media Library Assistant">
7010
  <name>_compose_parent_option_list</name>
7011
  <full_name>_compose_parent_option_list</full_name>
7012
- <docblock line="3408">
7013
  <description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
7014
  <long-description><![CDATA[]]></long-description>
7015
- <tag line="3408" name="since" description="1.00"/>
7016
- <tag line="3408" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7017
- <tag line="3408" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
7018
  <type by_reference="false">string</type>
7019
  </tag>
7020
- <tag line="3408" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
7021
  <type by_reference="false">integer</type>
7022
  </tag>
7023
- <tag line="3408" name="return" description="HTML markup with select field options" type="string">
7024
  <type by_reference="false">string</type>
7025
  </tag>
7026
  </docblock>
7027
- <argument line="3419">
7028
  <name>$taxonomy</name>
7029
  <default><![CDATA[]]></default>
7030
  <type/>
7031
  </argument>
7032
- <argument line="3419">
7033
  <name>$selection</name>
7034
  <default><![CDATA[0]]></default>
7035
  <type/>
7036
  </argument>
7037
  </method>
7038
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3465" package="Media Library Assistant">
7039
  <name>_update_iptc_exif_standard_mapping</name>
7040
  <full_name>_update_iptc_exif_standard_mapping</full_name>
7041
- <docblock line="3455">
7042
  <description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
7043
  <long-description><![CDATA[]]></long-description>
7044
- <tag line="3455" name="since" description="1.00"/>
7045
- <tag line="3455" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
7046
  <type by_reference="false">array</type>
7047
  </tag>
7048
- <tag line="3455" name="param" description="new values" type="array" variable="$new_values">
7049
  <type by_reference="false">array</type>
7050
  </tag>
7051
- <tag line="3455" 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">
7052
  <type by_reference="false">array</type>
7053
  </tag>
7054
  </docblock>
7055
- <argument line="3465">
7056
  <name>$current_values</name>
7057
  <default><![CDATA[]]></default>
7058
  <type/>
7059
  </argument>
7060
- <argument line="3465">
7061
  <name>$new_values</name>
7062
  <default><![CDATA[]]></default>
7063
  <type/>
7064
  </argument>
7065
  </method>
7066
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3558" package="Media Library Assistant">
7067
  <name>_update_iptc_exif_taxonomy_mapping</name>
7068
  <full_name>_update_iptc_exif_taxonomy_mapping</full_name>
7069
- <docblock line="3548">
7070
  <description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
7071
  <long-description><![CDATA[]]></long-description>
7072
- <tag line="3548" name="since" description="1.00"/>
7073
- <tag line="3548" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
7074
  <type by_reference="false">array</type>
7075
  </tag>
7076
- <tag line="3548" name="param" description="new values" type="array" variable="$new_values">
7077
  <type by_reference="false">array</type>
7078
  </tag>
7079
- <tag line="3548" 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">
7080
  <type by_reference="false">array</type>
7081
  </tag>
7082
  </docblock>
7083
- <argument line="3558">
7084
  <name>$current_values</name>
7085
  <default><![CDATA[]]></default>
7086
  <type/>
7087
  </argument>
7088
- <argument line="3558">
7089
  <name>$new_values</name>
7090
  <default><![CDATA[]]></default>
7091
  <type/>
7092
  </argument>
7093
  </method>
7094
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3660" package="Media Library Assistant">
7095
  <name>_update_iptc_exif_custom_mapping</name>
7096
  <full_name>_update_iptc_exif_custom_mapping</full_name>
7097
- <docblock line="3650">
7098
  <description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
7099
  <long-description><![CDATA[]]></long-description>
7100
- <tag line="3650" name="since" description="1.00"/>
7101
- <tag line="3650" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
7102
  <type by_reference="false">array</type>
7103
  </tag>
7104
- <tag line="3650" name="param" description="new values" type="array" variable="$new_values">
7105
  <type by_reference="false">array</type>
7106
  </tag>
7107
- <tag line="3650" 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">
7108
  <type by_reference="false">array</type>
7109
  </tag>
7110
  </docblock>
7111
- <argument line="3660">
7112
  <name>$current_values</name>
7113
  <default><![CDATA[]]></default>
7114
  <type/>
7115
  </argument>
7116
- <argument line="3660">
7117
  <name>$new_values</name>
7118
  <default><![CDATA[]]></default>
7119
  <type/>
7120
  </argument>
7121
  </method>
7122
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3790" package="Media Library Assistant">
7123
  <name>_get_custom_field_names</name>
7124
  <full_name>_get_custom_field_names</full_name>
7125
- <docblock line="3780">
7126
  <description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
7127
  <long-description><![CDATA[<p>The list will include any Custom Field and IPTC/EXIF rules that
7128
  haven't been mapped to any attachments, yet.</p>]]></long-description>
7129
- <tag line="3780" name="since" description="1.00"/>
7130
- <tag line="3780" name="return" description="Custom field names from the postmeta table and MLA rules" type="array">
7131
  <type by_reference="false">array</type>
7132
  </tag>
7133
  </docblock>
7134
  </method>
7135
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3836" package="Media Library Assistant">
7136
  <name>mla_iptc_exif_option_handler</name>
7137
  <full_name>mla_iptc_exif_option_handler</full_name>
7138
- <docblock line="3823">
7139
  <description><![CDATA[Render and manage iptc/exif support options]]></description>
7140
  <long-description><![CDATA[]]></long-description>
7141
- <tag line="3823" name="since" description="1.00"/>
7142
- <tag line="3823" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7143
- <tag line="3823" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
7144
  <type by_reference="false">string</type>
7145
  </tag>
7146
- <tag line="3823" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
7147
  <type by_reference="false">string</type>
7148
  </tag>
7149
- <tag line="3823" name="param" description="option parameters" type="array" variable="$value">
7150
  <type by_reference="false">array</type>
7151
  </tag>
7152
- <tag line="3823" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
7153
  <type by_reference="false">array</type>
7154
  </tag>
7155
- <tag line="3823" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
7156
  <type by_reference="false">string</type>
7157
  </tag>
7158
  </docblock>
7159
- <argument line="3836">
7160
  <name>$action</name>
7161
  <default><![CDATA[]]></default>
7162
  <type/>
7163
  </argument>
7164
- <argument line="3836">
7165
  <name>$key</name>
7166
  <default><![CDATA[]]></default>
7167
  <type/>
7168
  </argument>
7169
- <argument line="3836">
7170
  <name>$value</name>
7171
  <default><![CDATA[]]></default>
7172
  <type/>
7173
  </argument>
7174
- <argument line="3836">
7175
  <name>$args</name>
7176
  <default><![CDATA[null]]></default>
7177
  <type/>
@@ -7179,7 +7744,7 @@ haven't been mapped to any attachments, yet.</p>]]></long-description>
7179
  </method>
7180
  </class>
7181
  </file>
7182
- <file path="includes\class-mla-settings.php" hash="5ca93901c8e3141c36f4a2fd071a327b" package="Media Library Assistant">
7183
  <docblock line="2">
7184
  <description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
7185
  <long-description><![CDATA[]]></long-description>
@@ -7269,23 +7834,23 @@ haven't been mapped to any attachments, yet.</p>]]></long-description>
7269
  </tag>
7270
  </docblock>
7271
  </property>
7272
- <property final="false" static="true" visibility="public" line="839" namespace="global" package="Media Library Assistant">
7273
  <name>$page_template_array</name>
7274
  <default><![CDATA[null]]></default>
7275
- <docblock line="829">
7276
  <description><![CDATA[Template file for the Settings page(s) and parts]]></description>
7277
  <long-description><![CDATA[<p>This array contains all of the template parts for the Settings page(s). The array is built once
7278
  each page load and cached for subsequent use.</p>]]></long-description>
7279
- <tag line="829" name="since" description="0.80"/>
7280
- <tag line="829" name="var" description="" type="array">
7281
  <type by_reference="false">array</type>
7282
  </tag>
7283
  </docblock>
7284
  </property>
7285
- <property final="false" static="true" visibility="private" line="858" namespace="global" package="Media Library Assistant">
7286
  <name>$mla_tablist</name>
7287
  <default><![CDATA[array()]]></default>
7288
- <docblock line="841">
7289
  <description><![CDATA[Definitions for Settings page tab ids, titles and handlers
7290
  Each tab is defined by an array with the following elements:]]></description>
7291
  <long-description><![CDATA[<p>The array must be populated at runtime in MLASettings::mla_localize_tablist(),
@@ -7296,8 +7861,8 @@ because Localization calls cannot be placed in the "public static" array definit
7296
  <p>title => tab label / heading text
7297
  render => rendering function for tab messages and content. Usage:
7298
  $tab_content = <a href="">'render'</a>;</p>]]></long-description>
7299
- <tag line="841" name="since" description="0.80"/>
7300
- <tag line="841" name="var" description="" type="array">
7301
  <type by_reference="false">array</type>
7302
  </tag>
7303
  </docblock>
@@ -7326,804 +7891,804 @@ render => rendering function for tab messages and content. Usage:
7326
 
1
  <?xml version="1.0" encoding="utf-8"?>
2
  <project version="2.0.0a8" title="Media Library Assistant">
3
+ <file path="examples\twentytwelve-mla\content-category-listing.php" hash="d90c521620803d3b0ed094294002b69a" package="Media Library Assistant\MLA\Child\Theme">
4
+ <docblock line="2">
5
+ <description><![CDATA[The template used for displaying "Category Listing" content in page-category-listing.php]]></description>
6
+ <long-description><![CDATA[<p>The default taxonomy slug is “attachment_tag”. You can select the taxonomy you want by adding
7
+ a query parameter to the URL, e.g., "?taxonomy=attachment_category".</p>
8
+
9
+ <p>For this page to work well, you should install and activate the Collapse-O-Matic plugin.</p>]]></long-description>
10
+ <tag line="2" name="package" description="Media Library Assistant"/>
11
+ <tag line="2" name="subpackage" description="MLA_Child_Theme"/>
12
+ <tag line="2" name="version" description="1.00"/>
13
+ <tag line="2" name="since" description="MLA 1.80"/>
14
+ </docblock>
15
+ </file>
16
+ <file path="examples\twentytwelve-mla\content-media.php" hash="ec1896bb3521f787fe6d6a2c58f544e5" package="Media Library Assistant\MLA\Child\Theme">
17
+ <docblock line="2">
18
+ <description><![CDATA[The template for displaying posts in the Image post format,
19
+ called from the taxonomy.php template.]]></description>
20
+ <long-description><![CDATA[]]></long-description>
21
+ <tag line="2" name="package" description="Media Library Assistant"/>
22
+ <tag line="2" name="subpackage" description="MLA_Child_Theme"/>
23
+ <tag line="2" name="version" description="1.00"/>
24
+ <tag line="2" name="since" description="MLA 1.80"/>
25
+ </docblock>
26
+ </file>
27
+ <file path="examples\twentytwelve-mla\content-tag-gallery.php" hash="6ab750eaaf484ca5ad2d6dfc817292e5" package="Media Library Assistant\MLA\Child\Theme">
28
+ <docblock line="2">
29
+ <description><![CDATA[The template used for displaying "Tag Gallery" content in page-tag-gallery.php]]></description>
30
+ <long-description><![CDATA[<p>The default taxonomy slug is "attachment_tag". You can select the taxonomy you want by adding
31
+ a query parameter to the URL, e.g., "?my_taxonomy=attachment_category".</p>
32
+
33
+ <p>The default taxonomy term is empty. You must select the term you want by adding
34
+ a query parameter to the URL, e.g., "?my_term=yellow".</p>]]></long-description>
35
+ <tag line="2" name="package" description="Media Library Assistant"/>
36
+ <tag line="2" name="subpackage" description="MLA_Child_Theme"/>
37
+ <tag line="2" name="version" description="1.00"/>
38
+ <tag line="2" name="since" description="MLA 1.80"/>
39
+ </docblock>
40
+ </file>
41
+ <file path="examples\twentytwelve-mla\functions.php" hash="5e8ae4129d371c30c248407a847e64bf" package="Media Library Assistant\MLA\Child\Theme">
42
+ <docblock line="2">
43
+ <description><![CDATA[MLA Child for Twenty Twelve functions and definitions]]></description>
44
+ <long-description><![CDATA[<p>Sets up the theme and provides some helper functions, which are used
45
+ in the theme as custom template tags. Others are attached to action and
46
+ filter hooks in WordPress to change core functionality.</p>]]></long-description>
47
+ <tag line="2" name="package" description="Media Library Assistant"/>
48
+ <tag line="2" name="subpackage" description="MLA_Child_Theme"/>
49
+ <tag line="2" name="version" description="1.00"/>
50
+ <tag line="2" name="since" description="MLA 1.80"/>
51
+ </docblock>
52
+ <function namespace="global" line="37" package="Media Library Assistant\MLA\Child\Theme">
53
+ <name>mla_tag_gallery</name>
54
+ <full_name>\mla_tag_gallery</full_name>
55
+ <docblock line="30">
56
+ <description><![CDATA[Generate a taxonomy- and term-specific [mla_gallery]]]></description>
57
+ <long-description><![CDATA[]]></long-description>
58
+ <tag line="30" name="param" description="Attributes of the function: taxonomy, term" type="array" variable="$attr">
59
+ <type by_reference="false">array</type>
60
+ </tag>
61
+ <tag line="30" name="return" description="echoes HTML &lt;h3&gt;, &lt;p&gt; and &lt;a&gt; tags" type="void">
62
+ <type by_reference="false">void</type>
63
+ </tag>
64
+ </docblock>
65
+ <argument line="37">
66
+ <name>$attr</name>
67
+ <default><![CDATA[NULL]]></default>
68
+ <type/>
69
+ </argument>
70
+ </function>
71
+ <function namespace="global" line="85" package="Media Library Assistant\MLA\Child\Theme">
72
+ <name>mla_paginated_term_gallery</name>
73
+ <full_name>\mla_paginated_term_gallery</full_name>
74
+ <docblock line="76">
75
+ <description><![CDATA[Generate a taxonomy- and term-specific [mla_gallery], limited by current_page and posts_per_page]]></description>
76
+ <long-description><![CDATA[<p>This function uses $wpdb functions for efficiency.</p>]]></long-description>
77
+ <tag line="76" name="param" description="Attributes of the function: taxonomy, term, post_mime_type, posts_per_page, current_page" type="array" variable="$attr">
78
+ <type by_reference="false">array</type>
79
+ </tag>
80
+ <tag line="76" name="return" description="number of posts matching taxonomy &amp; term, before LIMIT. echoes HTML &lt;h3&gt;, &lt;p&gt; and &lt;a&gt; tags" type="integer">
81
+ <type by_reference="false">integer</type>
82
+ </tag>
83
+ </docblock>
84
+ <argument line="85">
85
+ <name>$attr</name>
86
+ <default><![CDATA[NULL]]></default>
87
+ <type/>
88
+ </argument>
89
+ </function>
90
+ <function namespace="global" line="157" package="Media Library Assistant\MLA\Child\Theme">
91
+ <name>mla_custom_terms_list</name>
92
+ <full_name>\mla_custom_terms_list</full_name>
93
+ <docblock line="148">
94
+ <description><![CDATA[Generate a list of taxonomy- and term-specific links to the page of your choice,
95
+ listing the terms assigned to a specific post or Media Library item.]]></description>
96
+ <long-description><![CDATA[]]></long-description>
97
+ <tag line="148" name="param" description="ID of the post/page to generate terms for" type="integer" variable="$ID">
98
+ <type by_reference="false">integer</type>
99
+ </tag>
100
+ <tag line="148" name="param" description="Attributes of the function: site_url, page_url, taxonomy" type="array" variable="$attr">
101
+ <type by_reference="false">array</type>
102
+ </tag>
103
+ <tag line="148" name="return" description="echoes HTML &lt;h3&gt;, &lt;p&gt; and &lt;a&gt; tags" type="void">
104
+ <type by_reference="false">void</type>
105
+ </tag>
106
+ </docblock>
107
+ <argument line="157">
108
+ <name>$ID</name>
109
+ <default><![CDATA[]]></default>
110
+ <type/>
111
+ </argument>
112
+ <argument line="157">
113
+ <name>$attr</name>
114
+ <default><![CDATA[NULL]]></default>
115
+ <type/>
116
+ </argument>
117
+ </function>
118
+ <function namespace="global" line="205" package="Media Library Assistant\MLA\Child\Theme">
119
+ <name>mla_taxonomy_terms_list</name>
120
+ <full_name>\mla_taxonomy_terms_list</full_name>
121
+ <docblock line="196">
122
+ <description><![CDATA[Generate a list of taxonomy- and term-specific links to the page of your choice.]]></description>
123
+ <long-description><![CDATA[<p>Best used with the Collapse-O-Matic plugin, which uses the [expand] shortcode to
124
+ display an "accordian-style" list.</p>]]></long-description>
125
+ <tag line="196" name="param" description="Attributes of the function: taxonomy" type="array" variable="$attr">
126
+ <type by_reference="false">array</type>
127
+ </tag>
128
+ <tag line="196" name="return" description="HTML &lt;h3&gt;, &lt;p&gt; and &lt;a&gt; tags" type="string">
129
+ <type by_reference="false">string</type>
130
+ </tag>
131
+ </docblock>
132
+ <argument line="205">
133
+ <name>$attr</name>
134
+ <default><![CDATA[NULL]]></default>
135
+ <type/>
136
+ </argument>
137
+ </function>
138
+ <function namespace="global" line="241" package="Media Library Assistant\MLA\Child\Theme">
139
+ <name>mla_insert_social_tags</name>
140
+ <full_name>\mla_insert_social_tags</full_name>
141
+ <docblock line="236">
142
+ <description><![CDATA[Insert thumbnail image tags for Facebook, Twitter, etc.]]></description>
143
+ <long-description><![CDATA[]]></long-description>
144
+ <tag line="236" name="return" description="echoes HTML &lt;meta&gt; tags" type="void">
145
+ <type by_reference="false">void</type>
146
+ </tag>
147
+ </docblock>
148
+ </function>
149
+ </file>
150
+ <file path="examples\twentytwelve-mla\header.php" hash="48a88253a6b010c7612504cb366ef159" package="Media Library Assistant\MLA\Child\Theme">
151
+ <docblock line="2">
152
+ <description><![CDATA[The Header template for our theme]]></description>
153
+ <long-description><![CDATA[<p>Displays all of the <head> section and everything up till</p>
154
+
155
+ <p>&lt;</p>
156
+
157
+ <p>div id="main">
158
+ The mla-child version has code to insert thumbnail image tags for Facebook, Twitter, etc.</p>]]></long-description>
159
+ <tag line="2" name="package" description="Media Library Assistant"/>
160
+ <tag line="2" name="subpackage" description="MLA_Child_Theme"/>
161
+ <tag line="2" name="version" description="1.00"/>
162
+ <tag line="2" name="since" description="MLA 1.80"/>
163
+ </docblock>
164
+ </file>
165
+ <file path="examples\twentytwelve-mla\image.php" hash="93516d28363cbaf5d538df05b27c2cad" package="Media Library Assistant\MLA\Child\Theme">
166
+ <docblock line="2">
167
+ <description><![CDATA[The template for displaying "Attachment Posts" for $mimetype = "image",
168
+ a more specific alternative to the generic "attachment.php" template.]]></description>
169
+ <long-description><![CDATA[]]></long-description>
170
+ <tag line="2" name="link" description="http://codex.wordpress.org/Template_Hierarchy" link="http://codex.wordpress.org/Template_Hierarchy"/>
171
+ <tag line="2" name="package" description="Media Library Assistant"/>
172
+ <tag line="2" name="subpackage" description="MLA_Child_Theme"/>
173
+ <tag line="2" name="version" description="1.00"/>
174
+ <tag line="2" name="since" description="MLA 1.80"/>
175
+ </docblock>
176
+ </file>
177
+ <file path="examples\twentytwelve-mla\page-category-listing.php" hash="9d2b804b07ba9477777eb07c31b57212" package="Media Library Assistant\MLA\Child\Theme">
178
+ <docblock line="2">
179
+ <description><![CDATA[The template for displaying the "Category Listing" page, which
180
+ must be defined as a static WordPress "Page" post type.]]></description>
181
+ <long-description><![CDATA[<p>Please note that this is the WordPress construct of pages
182
+ and that other 'pages' on your WordPress site will use a
183
+ different template.</p>]]></long-description>
184
+ <tag line="2" name="package" description="Media Library Assistant"/>
185
+ <tag line="2" name="subpackage" description="MLA_Child_Theme"/>
186
+ <tag line="2" name="version" description="1.00"/>
187
+ <tag line="2" name="since" description="MLA 1.80"/>
188
+ </docblock>
189
+ </file>
190
+ <file path="examples\twentytwelve-mla\page-tag-gallery.php" hash="8744ff3f2f0a844dfa3326a61d4bf5d3" package="Media Library Assistant\MLA\Child\Theme">
191
+ <docblock line="2">
192
+ <description><![CDATA[The template for displaying the "Tag Gallery" page, which
193
+ must be defined as a static WordPress "Page" post type.]]></description>
194
+ <long-description><![CDATA[<p>Please note that this is the WordPress construct of pages
195
+ and that other 'pages' on your WordPress site will use a
196
+ different template.</p>]]></long-description>
197
+ <tag line="2" name="package" description="Media Library Assistant"/>
198
+ <tag line="2" name="subpackage" description="MLA_Child_Theme"/>
199
+ <tag line="2" name="version" description="1.00"/>
200
+ <tag line="2" name="since" description="MLA 1.80"/>
201
+ </docblock>
202
+ </file>
203
+ <file path="examples\twentytwelve-mla\taxonomy.php" hash="90dbcf28ab7c00a7ab541a84c83571dc" package="Media Library Assistant\MLA\Child\Theme">
204
+ <docblock line="2">
205
+ <description><![CDATA[The template for displaying Custom Taxonomy Archive pages]]></description>
206
+ <long-description><![CDATA[<p>Twenty Twelve already has tag.php for Tag archives and category.php for Category archives.</p>]]></long-description>
207
+ <tag line="2" name="link" description="http://codex.wordpress.org/Template_Hierarchy" link="http://codex.wordpress.org/Template_Hierarchy"/>
208
+ <tag line="2" name="package" description="Media Library Assistant"/>
209
+ <tag line="2" name="subpackage" description="MLA_Child_Theme"/>
210
+ <tag line="2" name="version" description="1.00"/>
211
+ <tag line="2" name="since" description="MLA 1.80"/>
212
+ </docblock>
213
+ </file>
214
+ <file path="includes\class-mla-data.php" hash="3fcf287f52cdda82ccb83420576b81d9" package="Media Library Assistant">
215
  <docblock line="2">
216
  <description><![CDATA[Database and template file access for MLA needs]]></description>
217
  <long-description><![CDATA[]]></long-description>
252
  </tag>
253
  </docblock>
254
  </property>
255
+ <property final="false" static="true" visibility="private" line="1125" namespace="global" package="Media Library Assistant">
256
  <name>$mla_list_table_items</name>
257
  <default><![CDATA[NULL]]></default>
258
+ <docblock line="1118">
259
  <description><![CDATA[Cache the results of mla_count_list_table_items for reuse in mla_query_list_table_items]]></description>
260
  <long-description><![CDATA[]]></long-description>
261
+ <tag line="1118" name="since" description="1.40"/>
262
+ <tag line="1118" name="var" description="" type="array">
263
  <type by_reference="false">array</type>
264
  </tag>
265
  </docblock>
266
  </property>
267
+ <property final="false" static="true" visibility="private" line="1230" namespace="global" package="Media Library Assistant">
268
  <name>$query_parameters</name>
269
  <default><![CDATA[array()]]></default>
270
+ <docblock line="1217">
271
  <description><![CDATA[WP_Query filter "parameters"]]></description>
272
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
273
  The parameters are set up in the _prepare_list_table_query function, and
274
  any further logic required to translate those values is contained in the filters.</p>
275
 
276
  <p>Array index values are: use_postmeta_view, postmeta_key, postmeta_value, patterns, detached, orderby, order, mla-metavalue, debug, s, mla_search_connector, mla_search_fields, sentence, exact</p>]]></long-description>
277
+ <tag line="1217" name="since" description="0.30"/>
278
+ <tag line="1217" name="var" description="" type="array">
279
  <type by_reference="false">array</type>
280
  </tag>
281
  </docblock>
282
  </property>
283
+ <property final="false" static="true" visibility="private" line="2681" namespace="global" package="Media Library Assistant">
284
  <name>$galleries</name>
285
  <default><![CDATA[null]]></default>
286
+ <docblock line="2662">
287
  <description><![CDATA[Objects containing [gallery] shortcodes]]></description>
288
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
289
  and array(s) of which attachments each [gallery] contains. The arrays are built once
296
  ['galleries'] array of [gallery] entries numbered from one (1), containing:
297
  galleries[X]['query'] contains a string with the arguments of the [gallery],
298
  galleries[X]['results'] contains an array ( ID ) of post_ids for the objects in the gallery.</p>]]></long-description>
299
+ <tag line="2662" name="since" description="0.70"/>
300
+ <tag line="2662" name="var" description="" type="array">
301
  <type by_reference="false">array</type>
302
  </tag>
303
  </docblock>
304
  </property>
305
+ <property final="false" static="true" visibility="private" line="2694" namespace="global" package="Media Library Assistant">
306
  <name>$mla_galleries</name>
307
  <default><![CDATA[null]]></default>
308
+ <docblock line="2683">
309
  <description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
310
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
311
  and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
312
  each page load and cached for subsequent calls.</p>]]></long-description>
313
+ <tag line="2683" name="since" description="0.70"/>
314
+ <tag line="2683" name="var" description="" type="array">
315
  <type by_reference="false">array</type>
316
  </tag>
317
  </docblock>
318
  </property>
319
+ <property final="false" static="true" visibility="private" line="2884" namespace="global" package="Media Library Assistant">
320
  <name>$pdf_indirect_objects</name>
321
  <default><![CDATA[NULL]]></default>
322
+ <docblock line="2873">
323
  <description><![CDATA[Array of PDF indirect objects]]></description>
324
  <long-description><![CDATA[<p>This array contains all of the indirect object offsets and lengths.
325
  The array key is ( object ID * 1000 ) + object generation.
326
  The array value is array( number, generation, start, optional /length )</p>]]></long-description>
327
+ <tag line="2873" name="since" description="1.50"/>
328
+ <tag line="2873" name="var" description="" type="array">
329
  <type by_reference="false">array</type>
330
  </tag>
331
  </docblock>
332
  </property>
333
+ <property final="false" static="true" visibility="private" line="3995" namespace="global" package="Media Library Assistant">
334
  <name>$utf8_chars</name>
335
  <default><![CDATA[array("\xC2\x80", "\xC2\x81", "\xC2\x82", "\xC2\x83", "\xC2\x84", "\xC2\x85", "\xC2\x86", "\xC2\x87", "\xC2\x88", "\xC2\x89", "\xC2\x8A", "\xC2\x8B", "\xC2\x8C", "\xC2\x8D", "\xC2\x8E", "\xC2\x8F", "\xC2\x90", "\xC2\x91", "\xC2\x92", "\xC2\x93", "\xC2\x94", "\xC2\x95", "\xC2\x96", "\xC2\x97", "\xC2\x98", "\xC2\x99", "\xC2\x9A", "\xC2\x9B", "\xC2\x9C", "\xC2\x9D", "\xC2\x9E", "\xC2\x9F", "\xC2\xA0", "\xC2\xA1", "\xC2\xA2", "\xC2\xA3", "\xC2\xA4", "\xC2\xA5", "\xC2\xA6", "\xC2\xA7", "\xC2\xA8", "\xC2\xA9", "\xC2\xAA", "\xC2\xAB", "\xC2\xAC", "\xC2\xAD", "\xC2\xAE", "\xC2\xAF", "\xC2\xB0", "\xC2\xB1", "\xC2\xB2", "\xC2\xB3", "\xC2\xB4", "\xC2\xB5", "\xC2\xB6", "\xC2\xB7", "\xC2\xB8", "\xC2\xB9", "\xC2\xBA", "\xC2\xBB", "\xC2\xBC", "\xC2\xBD", "\xC2\xBE", "\xC2\xBF", "\xC3\x80", "\xC3\x81", "\xC3\x82", "\xC3\x83", "\xC3\x84", "\xC3\x85", "\xC3\x86", "\xC3\x87", "\xC3\x88", "\xC3\x89", "\xC3\x8A", "\xC3\x8B", "\xC3\x8C", "\xC3\x8D", "\xC3\x8E", "\xC3\x8F", "\xC3\x90", "\xC3\x91", "\xC3\x92", "\xC3\x93", "\xC3\x94", "\xC3\x95", "\xC3\x96", "\xC3\x97", "\xC3\x98", "\xC3\x99", "\xC3\x9A", "\xC3\x9B", "\xC3\x9C", "\xC3\x9D", "\xC3\x9E", "\xC3\x9F", "\xC3\xA0", "\xC3\xA1", "\xC3\xA2", "\xC3\xA3", "\xC3\xA4", "\xC3\xA5", "\xC3\xA6", "\xC3\xA7", "\xC3\xA8", "\xC3\xA9", "\xC3\xAA", "\xC3\xAB", "\xC3\xAC", "\xC3\xAD", "\xC3\xAE", "\xC3\xAF", "\xC3\xB0", "\xC3\xB1", "\xC3\xB2", "\xC3\xB3", "\xC3\xB4", "\xC3\xB5", "\xC3\xB6", "\xC3\xB7", "\xC3\xB8", "\xC3\xB9", "\xC3\xBA", "\xC3\xBB", "\xC3\xBC", "\xC3\xBD", "\xC3\xBE", "\xC3\xBF")]]></default>
336
+ <docblock line="3988">
337
  <description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
338
  <long-description><![CDATA[]]></long-description>
339
+ <tag line="3988" name="since" description="1.41"/>
340
+ <tag line="3988" name="var" description="" type="array">
341
  <type by_reference="false">array</type>
342
  </tag>
343
  </docblock>
344
  </property>
345
+ <property final="false" static="true" visibility="private" line="4055" namespace="global" package="Media Library Assistant">
346
  <name>$mla_iptc_records</name>
347
  <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>
348
+ <docblock line="4045">
349
  <description><![CDATA[IPTC Dataset identifiers and names]]></description>
350
  <long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
351
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
352
+ <tag line="4045" name="since" description="0.90"/>
353
+ <tag line="4045" name="var" description="" type="array">
354
  <type by_reference="false">array</type>
355
  </tag>
356
  </docblock>
357
  </property>
358
+ <property final="false" static="true" visibility="public" line="4154" namespace="global" package="Media Library Assistant">
359
  <name>$mla_iptc_keys</name>
360
  <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>
361
+ <docblock line="4144">
362
  <description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
363
  <long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
364
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
365
+ <tag line="4144" name="since" description="0.90"/>
366
+ <tag line="4144" name="var" description="" type="array">
367
  <type by_reference="false">array</type>
368
  </tag>
369
  </docblock>
370
  </property>
371
+ <property final="false" static="true" visibility="private" line="4253" namespace="global" package="Media Library Assistant">
372
  <name>$mla_iptc_descriptions</name>
373
  <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>
374
+ <docblock line="4243">
375
  <description><![CDATA[IPTC Dataset descriptions]]></description>
376
  <long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
377
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
378
+ <tag line="4243" name="since" description="0.90"/>
379
+ <tag line="4243" name="var" description="" type="array">
380
  <type by_reference="false">array</type>
381
  </tag>
382
  </docblock>
383
  </property>
384
+ <property final="false" static="true" visibility="private" line="4352" namespace="global" package="Media Library Assistant">
385
  <name>$mla_iptc_formats</name>
386
  <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>
387
+ <docblock line="4342">
388
  <description><![CDATA[IPTC file format identifiers and descriptions]]></description>
389
  <long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
390
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
391
+ <tag line="4342" name="since" description="0.90"/>
392
+ <tag line="4342" name="var" description="" type="array">
393
  <type by_reference="false">array</type>
394
  </tag>
395
  </docblock>
396
  </property>
397
+ <property final="false" static="true" visibility="private" line="4395" namespace="global" package="Media Library Assistant">
398
  <name>$mla_iptc_image_types</name>
399
  <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>
400
+ <docblock line="4385">
401
  <description><![CDATA[IPTC image type identifiers and descriptions]]></description>
402
  <long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
403
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
404
+ <tag line="4385" name="since" description="0.90"/>
405
+ <tag line="4385" name="var" description="" type="array">
406
  <type by_reference="false">array</type>
407
  </tag>
408
  </docblock>
755
  <type/>
756
  </argument>
757
  </method>
758
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1041" package="Media Library Assistant">
759
  <name>mla_get_template_placeholders</name>
760
  <full_name>mla_get_template_placeholders</full_name>
761
+ <docblock line="1030">
762
  <description><![CDATA[Analyze a template, returning an array of the placeholders it contains]]></description>
763
  <long-description><![CDATA[]]></long-description>
764
+ <tag line="1030" name="since" description="0.90"/>
765
+ <tag line="1030" name="param" description="A formatting string containing [+placeholders+]" type="string" variable="$tpl">
766
  <type by_reference="false">string</type>
767
  </tag>
768
+ <tag line="1030" name="param" description="Optional: default option value" type="string" variable="$default_option">
769
  <type by_reference="false">string</type>
770
  </tag>
771
+ <tag line="1030" name="return" description="Placeholder information: each entry is an array with ['prefix'] =&gt; string, ['value'] =&gt; string, ['option'] =&gt; string 'text'|single'|'export'|'array'|'multi'" type="array">
772
  <type by_reference="false">array</type>
773
  </tag>
774
  </docblock>
775
+ <argument line="1041">
776
  <name>$tpl</name>
777
  <default><![CDATA[]]></default>
778
  <type/>
779
  </argument>
780
+ <argument line="1041">
781
  <name>$default_option</name>
782
  <default><![CDATA['text']]></default>
783
  <type/>
784
  </argument>
785
  </method>
786
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1138" package="Media Library Assistant">
787
  <name>mla_count_list_table_items</name>
788
  <full_name>mla_count_list_table_items</full_name>
789
+ <docblock line="1127">
790
  <description><![CDATA[Get the total number of attachment posts]]></description>
791
  <long-description><![CDATA[]]></long-description>
792
+ <tag line="1127" name="since" description="0.30"/>
793
+ <tag line="1127" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
794
  <type by_reference="false">array</type>
795
  </tag>
796
+ <tag line="1127" name="param" description="(optional) number of rows to skip over to reach desired page" type="int" variable="$offset">
797
  <type by_reference="false">int</type>
798
  </tag>
799
+ <tag line="1127" name="param" description="(optional) number of rows on each page" type="int" variable="$count">
800
  <type by_reference="false">int</type>
801
  </tag>
802
+ <tag line="1127" name="return" description="Number of attachment posts" type="integer">
803
  <type by_reference="false">integer</type>
804
  </tag>
805
  </docblock>
806
+ <argument line="1138">
807
  <name>$request</name>
808
  <default><![CDATA[]]></default>
809
  <type/>
810
  </argument>
811
+ <argument line="1138">
812
  <name>$offset</name>
813
  <default><![CDATA[NULL]]></default>
814
  <type/>
815
  </argument>
816
+ <argument line="1138">
817
  <name>$count</name>
818
  <default><![CDATA[NULL]]></default>
819
  <type/>
820
  </argument>
821
  </method>
822
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1166" package="Media Library Assistant">
823
  <name>mla_query_list_table_items</name>
824
  <full_name>mla_query_list_table_items</full_name>
825
+ <docblock line="1152">
826
  <description><![CDATA[Retrieve attachment objects for list table display]]></description>
827
  <long-description><![CDATA[<p>Supports prepare_items in class-mla-list-table.php.
828
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
829
+ <tag line="1152" name="since" description="0.1"/>
830
+ <tag line="1152" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
831
  <type by_reference="false">array</type>
832
  </tag>
833
+ <tag line="1152" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
834
  <type by_reference="false">int</type>
835
  </tag>
836
+ <tag line="1152" name="param" description="number of rows on each page" type="int" variable="$count">
837
  <type by_reference="false">int</type>
838
  </tag>
839
+ <tag line="1152" name="return" description="attachment objects (posts) including parent data, meta data and references" type="array">
840
  <type by_reference="false">array</type>
841
  </tag>
842
  </docblock>
843
+ <argument line="1166">
844
  <name>$request</name>
845
  <default><![CDATA[]]></default>
846
  <type/>
847
  </argument>
848
+ <argument line="1166">
849
  <name>$offset</name>
850
  <default><![CDATA[]]></default>
851
  <type/>
852
  </argument>
853
+ <argument line="1166">
854
  <name>$count</name>
855
  <default><![CDATA[]]></default>
856
  <type/>
857
  </argument>
858
  </method>
859
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1212" package="Media Library Assistant">
860
  <name>mla_query_media_modal_items</name>
861
  <full_name>mla_query_media_modal_items</full_name>
862
+ <docblock line="1199">
863
  <description><![CDATA[Retrieve attachment objects for the WordPress Media Manager]]></description>
864
  <long-description><![CDATA[<p>Supports month-year and taxonomy-term filters as well as the enhanced search box</p>]]></long-description>
865
+ <tag line="1199" name="since" description="1.20"/>
866
+ <tag line="1199" name="param" description="query parameters from Media Manager" type="array" variable="$request">
867
  <type by_reference="false">array</type>
868
  </tag>
869
+ <tag line="1199" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
870
  <type by_reference="false">int</type>
871
  </tag>
872
+ <tag line="1199" name="param" description="number of rows on each page" type="int" variable="$count">
873
  <type by_reference="false">int</type>
874
  </tag>
875
+ <tag line="1199" name="return" description="attachment objects (posts)" type="array">
876
  <type by_reference="false">array</type>
877
  </tag>
878
  </docblock>
879
+ <argument line="1212">
880
  <name>$request</name>
881
  <default><![CDATA[]]></default>
882
  <type/>
883
  </argument>
884
+ <argument line="1212">
885
  <name>$offset</name>
886
  <default><![CDATA[]]></default>
887
  <type/>
888
  </argument>
889
+ <argument line="1212">
890
  <name>$count</name>
891
  <default><![CDATA[]]></default>
892
  <type/>
893
  </argument>
894
  </method>
895
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1246" package="Media Library Assistant">
896
  <name>_prepare_list_table_query</name>
897
  <full_name>_prepare_list_table_query</full_name>
898
+ <docblock line="1232">
899
  <description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
900
  <long-description><![CDATA[<p>Prepare the arguments for WP_Query.
901
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
902
+ <tag line="1232" name="since" description="0.1"/>
903
+ <tag line="1232" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
904
  <type by_reference="false">array</type>
905
  </tag>
906
+ <tag line="1232" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
907
  <type by_reference="false">int</type>
908
  </tag>
909
+ <tag line="1232" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
910
  <type by_reference="false">int</type>
911
  </tag>
912
+ <tag line="1232" name="return" description="revised arguments suitable for WP_Query" type="array">
913
  <type by_reference="false">array</type>
914
  </tag>
915
  </docblock>
916
+ <argument line="1246">
917
  <name>$raw_request</name>
918
  <default><![CDATA[]]></default>
919
  <type/>
920
  </argument>
921
+ <argument line="1246">
922
  <name>$offset</name>
923
  <default><![CDATA[0]]></default>
924
  <type/>
925
  </argument>
926
+ <argument line="1246">
927
  <name>$count</name>
928
  <default><![CDATA[0]]></default>
929
  <type/>
930
  </argument>
931
  </method>
932
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1587" package="Media Library Assistant">
933
  <name>_execute_list_table_query</name>
934
  <full_name>_execute_list_table_query</full_name>
935
+ <docblock line="1578">
936
  <description><![CDATA[Add filters, run query, remove filters]]></description>
937
  <long-description><![CDATA[]]></long-description>
938
+ <tag line="1578" name="since" description="0.30"/>
939
+ <tag line="1578" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
940
  <type by_reference="false">array</type>
941
  </tag>
942
+ <tag line="1578" name="return" description="WP_Query object with query results" type="object">
943
  <type by_reference="false">object</type>
944
  </tag>
945
  </docblock>
946
+ <argument line="1587">
947
  <name>$request</name>
948
  <default><![CDATA[]]></default>
949
  <type/>
950
  </argument>
951
  </method>
952
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1688" package="Media Library Assistant">
953
  <name>mla_search_terms_tidy</name>
954
  <full_name>mla_search_terms_tidy</full_name>
955
+ <docblock line="1677">
956
  <description><![CDATA[Replaces a WordPress function deprecated in v3.7]]></description>
957
  <long-description><![CDATA[<p>Defined as public because it's a callback from array_map().</p>]]></long-description>
958
+ <tag line="1677" name="since" description="1.51"/>
959
+ <tag line="1677" name="param" description="search term before modification" type="string" variable="$term">
960
  <type by_reference="false">string</type>
961
  </tag>
962
+ <tag line="1677" name="return" description="cleaned up search term" type="string">
963
  <type by_reference="false">string</type>
964
  </tag>
965
  </docblock>
966
+ <argument line="1688">
967
  <name>$term</name>
968
  <default><![CDATA[]]></default>
969
  <type/>
970
  </argument>
971
  </method>
972
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1704" package="Media Library Assistant">
973
  <name>mla_query_posts_search_filter</name>
974
  <full_name>mla_query_posts_search_filter</full_name>
975
+ <docblock line="1692">
976
  <description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
977
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
978
+ <tag line="1692" name="since" description="0.60"/>
979
+ <tag line="1692" name="param" description="query clause before modification" type="string" variable="$search_string">
980
  <type by_reference="false">string</type>
981
  </tag>
982
+ <tag line="1692" name="param" description="WP_Query object" type="object" variable="$query_object">
983
  <type by_reference="false">object</type>
984
  </tag>
985
+ <tag line="1692" name="return" description="query clause after keyword search addition" type="string">
986
  <type by_reference="false">string</type>
987
  </tag>
988
  </docblock>
989
+ <argument line="1704">
990
  <name>$search_string</name>
991
  <default><![CDATA[]]></default>
992
  <type/>
993
  </argument>
994
+ <argument line="1704">
995
  <name>$query_object</name>
996
  <default><![CDATA[]]></default>
997
  <type/>
998
  </argument>
999
  </method>
1000
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1817" package="Media Library Assistant">
1001
  <name>mla_query_posts_join_filter</name>
1002
  <full_name>mla_query_posts_join_filter</full_name>
1003
+ <docblock line="1806">
1004
  <description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text]]></description>
1005
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
1006
+ <tag line="1806" name="since" description="0.30"/>
1007
+ <tag line="1806" name="param" description="query clause before modification" type="string" variable="$join_clause">
1008
  <type by_reference="false">string</type>
1009
  </tag>
1010
+ <tag line="1806" name="return" description="query clause after &quot;LEFT JOIN view ON post_id&quot; item modification" type="string">
1011
  <type by_reference="false">string</type>
1012
  </tag>
1013
  </docblock>
1014
+ <argument line="1817">
1015
  <name>$join_clause</name>
1016
  <default><![CDATA[]]></default>
1017
  <type/>
1018
  </argument>
1019
  </method>
1020
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1861" package="Media Library Assistant">
1021
  <name>mla_query_posts_where_filter</name>
1022
  <full_name>mla_query_posts_where_filter</full_name>
1023
+ <docblock line="1849">
1024
  <description><![CDATA[Adds a WHERE clause for detached items]]></description>
1025
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
1026
  Defined as public because it's a filter.</p>]]></long-description>
1027
+ <tag line="1849" name="since" description="0.1"/>
1028
+ <tag line="1849" name="param" description="query clause before modification" type="string" variable="$where_clause">
1029
  <type by_reference="false">string</type>
1030
  </tag>
1031
+ <tag line="1849" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
1032
  <type by_reference="false">string</type>
1033
  </tag>
1034
  </docblock>
1035
+ <argument line="1861">
1036
  <name>$where_clause</name>
1037
  <default><![CDATA[]]></default>
1038
  <type/>
1039
  </argument>
1040
  </method>
1041
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1926" package="Media Library Assistant">
1042
  <name>mla_query_posts_orderby_filter</name>
1043
  <full_name>mla_query_posts_orderby_filter</full_name>
1044
+ <docblock line="1914">
1045
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
1046
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
1047
  Defined as public because it's a filter.</p>]]></long-description>
1048
+ <tag line="1914" name="since" description="0.30"/>
1049
+ <tag line="1914" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
1050
  <type by_reference="false">string</type>
1051
  </tag>
1052
+ <tag line="1914" name="return" description="updated query clause" type="string">
1053
  <type by_reference="false">string</type>
1054
  </tag>
1055
  </docblock>
1056
+ <argument line="1926">
1057
  <name>$orderby_clause</name>
1058
  <default><![CDATA[]]></default>
1059
  <type/>
1060
  </argument>
1061
  </method>
1062
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2004" package="Media Library Assistant">
1063
+ <name>mla_query_relevanssi_admin_search_ok_filter</name>
1064
+ <full_name>mla_query_relevanssi_admin_search_ok_filter</full_name>
1065
+ <docblock line="1994">
1066
+ <description><![CDATA[Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
1067
+ Defined as public because it's a filter.]]></description>
1068
+ <long-description><![CDATA[]]></long-description>
1069
+ <tag line="1994" name="since" description="1.80"/>
1070
+ <tag line="1994" name="param" description="Default setting" type="boolean" variable="$admin_search_ok">
1071
+ <type by_reference="false">boolean</type>
1072
+ </tag>
1073
+ <tag line="1994" name="return" description="Updated setting" type="boolean">
1074
+ <type by_reference="false">boolean</type>
1075
+ </tag>
1076
+ </docblock>
1077
+ <argument line="2004">
1078
+ <name>$admin_search_ok</name>
1079
+ <default><![CDATA[]]></default>
1080
+ <type/>
1081
+ </argument>
1082
+ </method>
1083
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2020" package="Media Library Assistant">
1084
+ <name>mla_query_posts_clauses_filter</name>
1085
+ <full_name>mla_query_posts_clauses_filter</full_name>
1086
+ <docblock line="2008">
1087
+ <description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
1088
+ <long-description><![CDATA[<p>This is for debug purposes only.
1089
+ Defined as public because it's a filter.</p>]]></long-description>
1090
+ <tag line="2008" name="since" description="1.80"/>
1091
+ <tag line="2008" name="param" description="query clauses before modification" type="array" variable="$pieces">
1092
+ <type by_reference="false">array</type>
1093
+ </tag>
1094
+ <tag line="2008" name="return" description="query clauses after modification (none)" type="array">
1095
+ <type by_reference="false">array</type>
1096
+ </tag>
1097
+ </docblock>
1098
+ <argument line="2020">
1099
+ <name>$pieces</name>
1100
+ <default><![CDATA[]]></default>
1101
+ <type/>
1102
+ </argument>
1103
+ </method>
1104
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2044" package="Media Library Assistant">
1105
+ <name>mla_query_posts_clauses_request_filter</name>
1106
+ <full_name>mla_query_posts_clauses_request_filter</full_name>
1107
+ <docblock line="2032">
1108
+ <description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
1109
+ <long-description><![CDATA[<p>This is for debug purposes only.
1110
+ Defined as public because it's a filter.</p>]]></long-description>
1111
+ <tag line="2032" name="since" description="1.80"/>
1112
+ <tag line="2032" name="param" description="query clauses before modification" type="array" variable="$pieces">
1113
+ <type by_reference="false">array</type>
1114
+ </tag>
1115
+ <tag line="2032" name="return" description="query clauses after modification (none)" type="array">
1116
+ <type by_reference="false">array</type>
1117
+ </tag>
1118
+ </docblock>
1119
+ <argument line="2044">
1120
+ <name>$pieces</name>
1121
+ <default><![CDATA[]]></default>
1122
+ <type/>
1123
+ </argument>
1124
+ </method>
1125
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="2068" package="Media Library Assistant">
1126
  <name>mla_get_attachment_by_id</name>
1127
  <full_name>mla_get_attachment_by_id</full_name>
1128
+ <docblock line="2056">
1129
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
1130
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
1131
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
1132
+ <tag line="2056" name="since" description="0.1"/>
1133
+ <tag line="2056" name="uses" description="\global\$post" refers="\global\$post"/>
1134
+ <tag line="2056" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
1135
  <type by_reference="false">int</type>
1136
  </tag>
1137
+ <tag line="2056" name="return" description="NULL on failure else associative array" type="NULL|array">
1138
  <type by_reference="false">NULL</type>
1139
  <type by_reference="false">array</type>
1140
  </tag>
1141
  </docblock>
1142
+ <argument line="2068">
1143
  <name>$post_id</name>
1144
  <default><![CDATA[]]></default>
1145
  <type/>
1146
  </argument>
1147
  </method>
1148
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2124" package="Media Library Assistant">
1149
  <name>mla_fetch_attachment_parent_data</name>
1150
  <full_name>mla_fetch_attachment_parent_data</full_name>
1151
+ <docblock line="2115">
1152
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
1153
  <long-description><![CDATA[]]></long-description>
1154
+ <tag line="2115" name="since" description="0.1"/>
1155
+ <tag line="2115" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
1156
  <type by_reference="false">int</type>
1157
  </tag>
1158
+ <tag line="2115" name="return" description="Parent information; post_date, post_title and post_type" type="array">
1159
  <type by_reference="false">array</type>
1160
  </tag>
1161
  </docblock>
1162
+ <argument line="2124">
1163
  <name>$parent_id</name>
1164
  <default><![CDATA[]]></default>
1165
  <type/>
1166
  </argument>
1167
  </method>
1168
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2166" package="Media Library Assistant">
1169
  <name>_set_array_element</name>
1170
  <full_name>_set_array_element</full_name>
1171
+ <docblock line="2155">
1172
  <description><![CDATA[Adds or replaces the value of a key in a possibly nested array structure]]></description>
1173
  <long-description><![CDATA[]]></long-description>
1174
+ <tag line="2155" name="since" description="1.51"/>
1175
+ <tag line="2155" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
1176
  <type by_reference="false">string</type>
1177
  </tag>
1178
+ <tag line="2155" name="param" description="replacement value, string or array, by reference" type="mixed" variable="$value">
1179
  <type by_reference="false">mixed</type>
1180
  </tag>
1181
+ <tag line="2155" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
1182
  <type by_reference="false">array</type>
1183
  </tag>
1184
+ <tag line="2155" name="return" description="true if $needle element set, false if not" type="boolean">
1185
  <type by_reference="false">boolean</type>
1186
  </tag>
1187
  </docblock>
1188
+ <argument line="2166">
1189
  <name>$needle</name>
1190
  <default><![CDATA[]]></default>
1191
  <type/>
1192
  </argument>
1193
+ <argument line="2166">
1194
  <name>$value</name>
1195
  <default><![CDATA[]]></default>
1196
  <type/>
1197
  </argument>
1198
+ <argument line="2166">
1199
  <name>$haystack</name>
1200
  <default><![CDATA[]]></default>
1201
  <type/>
1202
  </argument>
1203
  </method>
1204
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2200" package="Media Library Assistant">
1205
  <name>_unset_array_element</name>
1206
  <full_name>_unset_array_element</full_name>
1207
+ <docblock line="2190">
1208
  <description><![CDATA[Deletes the value of a key in a possibly nested array structure]]></description>
1209
  <long-description><![CDATA[]]></long-description>
1210
+ <tag line="2190" name="since" description="1.51"/>
1211
+ <tag line="2190" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
1212
  <type by_reference="false">string</type>
1213
  </tag>
1214
+ <tag line="2190" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
1215
  <type by_reference="false">array</type>
1216
  </tag>
1217
+ <tag line="2190" name="return" description="true if $needle element found, false if not" type="boolean">
1218
  <type by_reference="false">boolean</type>
1219
  </tag>
1220
  </docblock>
1221
+ <argument line="2200">
1222
  <name>$needle</name>
1223
  <default><![CDATA[]]></default>
1224
  <type/>
1225
  </argument>
1226
+ <argument line="2200">
1227
  <name>$haystack</name>
1228
  <default><![CDATA[]]></default>
1229
  <type/>
1230
  </argument>
1231
  </method>
1232
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2235" package="Media Library Assistant">
1233
  <name>mla_find_array_element</name>
1234
  <full_name>mla_find_array_element</full_name>
1235
+ <docblock line="2220">
1236
  <description><![CDATA[Finds the value of a key in a possibly nested array structure]]></description>
1237
  <long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
1238
  Could also be used with the ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
1239
+ <tag line="2220" name="since" description="1.30"/>
1240
+ <tag line="2220" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
1241
  <type by_reference="false">string</type>
1242
  </tag>
1243
+ <tag line="2220" name="param" description="PHP nested arrays" type="array" variable="$haystack">
1244
  <type by_reference="false">array</type>
1245
  </tag>
1246
+ <tag line="2220" name="param" description="data option 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
1247
  <type by_reference="false">string</type>
1248
  </tag>
1249
+ <tag line="2220" name="param" description="keep existing values - for 'multi' option" type="boolean" variable="$keep_existing">
1250
  <type by_reference="false">boolean</type>
1251
  </tag>
1252
+ <tag line="2220" name="return" description="string or array value matching key(.key ...) or ''" type="mixed">
1253
  <type by_reference="false">mixed</type>
1254
  </tag>
1255
  </docblock>
1256
+ <argument line="2235">
1257
  <name>$needle</name>
1258
  <default><![CDATA[]]></default>
1259
  <type/>
1260
  </argument>
1261
+ <argument line="2235">
1262
  <name>$haystack</name>
1263
  <default><![CDATA[]]></default>
1264
  <type/>
1265
  </argument>
1266
+ <argument line="2235">
1267
  <name>$option</name>
1268
  <default><![CDATA[]]></default>
1269
  <type/>
1270
  </argument>
1271
+ <argument line="2235">
1272
  <name>$keep_existing</name>
1273
  <default><![CDATA[false]]></default>
1274
  <type/>
1275
  </argument>
1276
  </method>
1277
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2288" package="Media Library Assistant">
1278
  <name>mla_fetch_attachment_metadata</name>
1279
  <full_name>mla_fetch_attachment_metadata</full_name>
1280
+ <docblock line="2276">
1281
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
1282
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
1283
  are stripped out or converted to an 'mla</em>' equivalent.</p>]]></long-description>
1284
+ <tag line="2276" name="since" description="0.1"/>
1285
+ <tag line="2276" name="param" description="post ID of attachment" type="int" variable="$post_id">
1286
  <type by_reference="false">int</type>
1287
  </tag>
1288
+ <tag line="2276" name="return" description="Meta data variables" type="array">
1289
  <type by_reference="false">array</type>
1290
  </tag>
1291
  </docblock>
1292
+ <argument line="2288">
1293
  <name>$post_id</name>
1294
  <default><![CDATA[]]></default>
1295
  <type/>
1296
  </argument>
1297
  </method>
1298
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2373" package="Media Library Assistant">
1299
  <name>mla_fetch_attachment_references</name>
1300
  <full_name>mla_fetch_attachment_references</full_name>
1301
+ <docblock line="2360">
1302
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
1303
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
1304
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
1305
+ <tag line="2360" name="since" description="0.1"/>
1306
+ <tag line="2360" name="param" description="post ID of attachment" type="int" variable="$ID">
1307
  <type by_reference="false">int</type>
1308
  </tag>
1309
+ <tag line="2360" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
1310
  <type by_reference="false">int</type>
1311
  </tag>
1312
+ <tag line="2360" name="return" description="Reference information; see $references array comments" type="array">
1313
  <type by_reference="false">array</type>
1314
  </tag>
1315
  </docblock>
1316
+ <argument line="2373">
1317
  <name>$ID</name>
1318
  <default><![CDATA[]]></default>
1319
  <type/>
1320
  </argument>
1321
+ <argument line="2373">
1322
  <name>$parent</name>
1323
  <default><![CDATA[]]></default>
1324
  <type/>
1325
  </argument>
1326
  </method>
1327
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2705" package="Media Library Assistant">
1328
  <name>mla_flush_mla_galleries</name>
1329
  <full_name>mla_flush_mla_galleries</full_name>
1330
+ <docblock line="2696">
1331
  <description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
1332
  <long-description><![CDATA[]]></long-description>
1333
+ <tag line="2696" name="since" description="1.00"/>
1334
+ <tag line="2696" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
1335
  <type by_reference="false">string</type>
1336
  </tag>
1337
+ <tag line="2696" name="return" description="" type="void">
1338
  <type by_reference="false">void</type>
1339
  </tag>
1340
  </docblock>
1341
+ <argument line="2705">
1342
  <name>$option_name</name>
1343
  <default><![CDATA[]]></default>
1344
  <type/>
1345
  </argument>
1346
  </method>
1347
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2729" package="Media Library Assistant">
1348
  <name>mla_save_post_action</name>
1349
  <full_name>mla_save_post_action</full_name>
1350
+ <docblock line="2720">
1351
  <description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
1352
  <long-description><![CDATA[]]></long-description>
1353
+ <tag line="2720" name="since" description="1.00"/>
1354
+ <tag line="2720" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
1355
  <type by_reference="false">integer</type>
1356
  </tag>
1357
+ <tag line="2720" name="return" description="" type="void">
1358
  <type by_reference="false">void</type>
1359
  </tag>
1360
  </docblock>
1361
+ <argument line="2729">
1362
  <name>$post_id</name>
1363
  <default><![CDATA[]]></default>
1364
  <type/>
1365
  </argument>
1366
  </method>
1367
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2746" package="Media Library Assistant">
1368
  <name>_build_mla_galleries</name>
1369
  <full_name>_build_mla_galleries</full_name>
1370
+ <docblock line="2734">
1371
  <description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
1372
  <long-description><![CDATA[]]></long-description>
1373
+ <tag line="2734" name="since" description="0.70"/>
1374
+ <tag line="2734" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
1375
  <type by_reference="false">string</type>
1376
  </tag>
1377
+ <tag line="2734" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
1378
  <type by_reference="false">array</type>
1379
  </tag>
1380
+ <tag line="2734" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
1381
  <type by_reference="false">string</type>
1382
  </tag>
1383
+ <tag line="2734" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
1384
  <type by_reference="false">boolean</type>
1385
  </tag>
1386
+ <tag line="2734" name="return" description="true if the galleries array is not empty" type="boolean">
1387
  <type by_reference="false">boolean</type>
1388
  </tag>
1389
  </docblock>
1390
+ <argument line="2746">
1391
  <name>$option_name</name>
1392
  <default><![CDATA[]]></default>
1393
  <type/>
1394
  </argument>
1395
+ <argument line="2746">
1396
  <name>$galleries_array</name>
1397
  <default><![CDATA[]]></default>
1398
  <type/>
1399
  </argument>
1400
+ <argument line="2746">
1401
  <name>$shortcode</name>
1402
  <default><![CDATA[]]></default>
1403
  <type/>
1404
  </argument>
1405
+ <argument line="2746">
1406
  <name>$exclude_revisions</name>
1407
  <default><![CDATA[]]></default>
1408
  <type/>
1409
  </argument>
1410
  </method>
1411
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2860" package="Media Library Assistant">
1412
  <name>_search_mla_galleries</name>
1413
  <full_name>_search_mla_galleries</full_name>
1414
+ <docblock line="2849">
1415
  <description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
1416
  <long-description><![CDATA[]]></long-description>
1417
+ <tag line="2849" name="since" description="0.70"/>
1418
+ <tag line="2849" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
1419
  <type by_reference="false">array</type>
1420
  </tag>
1421
+ <tag line="2849" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
1422
  <type by_reference="false">int</type>
1423
  </tag>
1424
+ <tag line="2849" 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">
1425
  <type by_reference="false">array</type>
1426
  </tag>
1427
  </docblock>
1428
+ <argument line="2860">
1429
  <name>$galleries_array</name>
1430
  <default><![CDATA[]]></default>
1431
  <type/>
1432
  </argument>
1433
+ <argument line="2860">
1434
  <name>$attachment_id</name>
1435
  <default><![CDATA[]]></default>
1436
  <type/>
1437
  </argument>
1438
  </method>
1439
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2899" package="Media Library Assistant">
1440
  <name>_parse_pdf_xref_subsection</name>
1441
  <full_name>_parse_pdf_xref_subsection</full_name>
1442
+ <docblock line="2886">
1443
  <description><![CDATA[Parse a cross-reference table subsection into the array of indirect object definitions]]></description>
1444
  <long-description><![CDATA[<p>A cross-reference subsection is a sequence of 20-byte entries, each with offset and generation values.</p>]]></long-description>
1445
+ <tag line="2886" name="since" description="1.50"/>
1446
+ <tag line="2886" name="param" description="buffer containing the subsection" type="string" variable="$xref_section">
1447
  <type by_reference="false">string</type>
1448
  </tag>
1449
+ <tag line="2886" name="param" description="offset within the buffer of the first entry" type="integer" variable="$offset">
1450
  <type by_reference="false">integer</type>
1451
  </tag>
1452
+ <tag line="2886" name="param" description="number of the first object in the subsection" type="integer" variable="$object_id">
1453
  <type by_reference="false">integer</type>
1454
  </tag>
1455
+ <tag line="2886" name="param" description="number of entries in the subsection" type="integer" variable="$count">
1456
  <type by_reference="false">integer</type>
1457
  </tag>
1458
+ <tag line="2886" name="return" description="" type="void">
1459
  <type by_reference="false">void</type>
1460
  </tag>
1461
  </docblock>
1462
+ <argument line="2899">
1463
  <name>$xref_section</name>
1464
  <default><![CDATA[]]></default>
1465
  <type/>
1466
  </argument>
1467
+ <argument line="2899">
1468
  <name>$offset</name>
1469
  <default><![CDATA[]]></default>
1470
  <type/>
1471
  </argument>
1472
+ <argument line="2899">
1473
  <name>$object_id</name>
1474
  <default><![CDATA[]]></default>
1475
  <type/>
1476
  </argument>
1477
+ <argument line="2899">
1478
  <name>$count</name>
1479
  <default><![CDATA[]]></default>
1480
  <type/>
1481
  </argument>
1482
  </method>
1483
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2931" package="Media Library Assistant">
1484
  <name>_parse_pdf_xref_section</name>
1485
  <full_name>_parse_pdf_xref_section</full_name>
1486
+ <docblock line="2920">
1487
  <description><![CDATA[Parse a cross-reference table section into the array of indirect object definitions]]></description>
1488
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
1489
+ <tag line="2920" name="since" description="1.50"/>
1490
+ <tag line="2920" name="param" description="full path and file name" type="string" variable="$file_name">
1491
  <type by_reference="false">string</type>
1492
  </tag>
1493
+ <tag line="2920" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
1494
  <type by_reference="false">integer</type>
1495
  </tag>
1496
+ <tag line="2920" name="return" description="length of the section" type="integer">
1497
  <type by_reference="false">integer</type>
1498
  </tag>
1499
  </docblock>
1500
+ <argument line="2931">
1501
  <name>$file_name</name>
1502
  <default><![CDATA[]]></default>
1503
  <type/>
1504
  </argument>
1505
+ <argument line="2931">
1506
  <name>$file_offset</name>
1507
  <default><![CDATA[]]></default>
1508
  <type/>
1509
  </argument>
1510
  </method>
1511
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2965" package="Media Library Assistant">
1512
  <name>_parse_pdf_xref_stream</name>
1513
  <full_name>_parse_pdf_xref_stream</full_name>
1514
+ <docblock line="2953">
1515
  <description><![CDATA[Parse a cross-reference steam into the array of indirect object definitions]]></description>
1516
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
1517
+ <tag line="2953" name="since" description="1.50"/>
1518
+ <tag line="2953" name="param" description="full path and file name" type="string" variable="$file_name">
1519
  <type by_reference="false">string</type>
1520
  </tag>
1521
+ <tag line="2953" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
1522
  <type by_reference="false">integer</type>
1523
  </tag>
1524
+ <tag line="2953" name="param" description="&quot;/W&quot; entry, representing the size of the fields in a single entry" type="string" variable="$entry_parms_string">
1525
  <type by_reference="false">string</type>
1526
  </tag>
1527
+ <tag line="2953" name="return" description="length of the stream" type="integer">
1528
  <type by_reference="false">integer</type>
1529
  </tag>
1530
  </docblock>
1531
+ <argument line="2965">
1532
  <name>$file_name</name>
1533
  <default><![CDATA[]]></default>
1534
  <type/>
1535
  </argument>
1536
+ <argument line="2965">
1537
  <name>$file_offset</name>
1538
  <default><![CDATA[]]></default>
1539
  <type/>
1540
  </argument>
1541
+ <argument line="2965">
1542
  <name>$entry_parms_string</name>
1543
  <default><![CDATA[]]></default>
1544
  <type/>
1545
  </argument>
1546
  </method>
1547
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3044" package="Media Library Assistant">
1548
  <name>_build_pdf_indirect_objects</name>
1549
  <full_name>_build_pdf_indirect_objects</full_name>
1550
+ <docblock line="3034">
1551
  <description><![CDATA[Build an array of indirect object definitions]]></description>
1552
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
1553
+ <tag line="3034" name="since" description="1.50"/>
1554
+ <tag line="3034" name="param" description="The entire PDF document, passsed by reference" type="string" variable="$string">
1555
  <type by_reference="false">string</type>
1556
  </tag>
1557
+ <tag line="3034" name="return" description="" type="void">
1558
  <type by_reference="false">void</type>
1559
  </tag>
1560
  </docblock>
1561
+ <argument line="3044">
1562
  <name>$string</name>
1563
  <default><![CDATA[]]></default>
1564
  <type/>
1565
  </argument>
1566
  </method>
1567
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3092" package="Media Library Assistant">
1568
  <name>_find_pdf_indirect_dictionary</name>
1569
  <full_name>_find_pdf_indirect_dictionary</full_name>
1570
+ <docblock line="3078">
1571
  <description><![CDATA[Find the offset, length and contents of an indirect object containing a dictionary]]></description>
1572
  <long-description><![CDATA[<p>The function searches the entire file, if necessary, to find the last/most recent copy of the object.
1573
  This is required because Adobe Acrobat does NOT increment the generation number when it reuses an object.</p>]]></long-description>
1574
+ <tag line="3078" name="since" description="1.50"/>
1575
+ <tag line="3078" name="param" description="full path and file name" type="string" variable="$file_name">
1576
  <type by_reference="false">string</type>
1577
  </tag>
1578
+ <tag line="3078" name="param" description="The object number" type="integer" variable="$object">
1579
  <type by_reference="false">integer</type>
1580
  </tag>
1581
+ <tag line="3078" name="param" description="The object generation number; default zero (0)" type="integer" variable="$generation">
1582
  <type by_reference="false">integer</type>
1583
  </tag>
1584
+ <tag line="3078" name="return" description="NULL on failure else array( 'start' =&gt; offset in the file, 'length' =&gt; object length, 'content' =&gt; dictionary contents )" type="mixed">
1585
  <type by_reference="false">mixed</type>
1586
  </tag>
1587
  </docblock>
1588
+ <argument line="3092">
1589
  <name>$file_name</name>
1590
  <default><![CDATA[]]></default>
1591
  <type/>
1592
  </argument>
1593
+ <argument line="3092">
1594
  <name>$object</name>
1595
  <default><![CDATA[]]></default>
1596
  <type/>
1597
  </argument>
1598
+ <argument line="3092">
1599
  <name>$generation</name>
1600
  <default><![CDATA[0]]></default>
1601
  <type/>
1602
  </argument>
1603
  </method>
1604
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3189" package="Media Library Assistant">
1605
  <name>_parse_iso8601_date</name>
1606
  <full_name>_parse_iso8601_date</full_name>
1607
+ <docblock line="3180">
1608
  <description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
1609
  <long-description><![CDATA[]]></long-description>
1610
+ <tag line="3180" name="since" description="1.50"/>
1611
+ <tag line="3180" name="param" description="ISO string of the form YYYY-MM-DDTHH:MM:SS-HH:MM (inc time zone)" type="string" variable="$source_string">
1612
  <type by_reference="false">string</type>
1613
  </tag>
1614
+ <tag line="3180" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
1615
  <type by_reference="false">string</type>
1616
  </tag>
1617
  </docblock>
1618
+ <argument line="3189">
1619
  <name>$source_string</name>
1620
  <default><![CDATA[]]></default>
1621
  <type/>
1622
  </argument>
1623
  </method>
1624
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3212" package="Media Library Assistant">
1625
  <name>_parse_pdf_date</name>
1626
  <full_name>_parse_pdf_date</full_name>
1627
+ <docblock line="3203">
1628
  <description><![CDATA[Parse a PDF date string]]></description>
1629
  <long-description><![CDATA[]]></long-description>
1630
+ <tag line="3203" name="since" description="1.50"/>
1631
+ <tag line="3203" name="param" description="PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm" type="string" variable="$source_string">
1632
  <type by_reference="false">string</type>
1633
  </tag>
1634
+ <tag line="3203" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
1635
  <type by_reference="false">string</type>
1636
  </tag>
1637
  </docblock>
1638
+ <argument line="3212">
1639
  <name>$source_string</name>
1640
  <default><![CDATA[]]></default>
1641
  <type/>
1642
  </argument>
1643
  </method>
1644
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3235" package="Media Library Assistant">
1645
  <name>_parse_pdf_UTF16BE</name>
1646
  <full_name>_parse_pdf_UTF16BE</full_name>
1647
+ <docblock line="3226">
1648
  <description><![CDATA[Parse a PDF Unicode (16-bit Big Endian) object]]></description>
1649
  <long-description><![CDATA[]]></long-description>
1650
+ <tag line="3226" name="since" description="1.50"/>
1651
+ <tag line="3226" name="param" description="PDF string of 16-bit characters" type="string" variable="$source_string">
1652
  <type by_reference="false">string</type>
1653
  </tag>
1654
+ <tag line="3226" name="return" description="UTF-8 encoded string" type="string">
1655
  <type by_reference="false">string</type>
1656
  </tag>
1657
  </docblock>
1658
+ <argument line="3235">
1659
  <name>$source_string</name>
1660
  <default><![CDATA[]]></default>
1661
  <type/>
1662
  </argument>
1663
  </method>
1664
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3264" package="Media Library Assistant">
1665
  <name>_parse_pdf_string</name>
1666
  <full_name>_parse_pdf_string</full_name>
1667
+ <docblock line="3251">
1668
  <description><![CDATA[Parse a PDF string object]]></description>
1669
  <long-description><![CDATA[<p>Returns an array with one dictionary entry. The array also has a '/length' element containing
1670
  the number of bytes occupied by the string in the source string, including the enclosing parentheses.</p>]]></long-description>
1671
+ <tag line="3251" name="since" description="1.50"/>
1672
+ <tag line="3251" name="param" description="data within which the string occurs" type="string" variable="$source_string">
1673
  <type by_reference="false">string</type>
1674
  </tag>
1675
+ <tag line="3251" name="param" description="offset within the source string of the opening '(' character." type="integer" variable="$offset">
1676
  <type by_reference="false">integer</type>
1677
  </tag>
1678
+ <tag line="3251" name="return" description="( key =&gt; array( 'type' =&gt; type, 'value' =&gt; value, '/length' =&gt; length ) ) for the string" type="array">
1679
  <type by_reference="false">array</type>
1680
  </tag>
1681
  </docblock>
1682
+ <argument line="3264">
1683
  <name>$source_string</name>
1684
  <default><![CDATA[]]></default>
1685
  <type/>
1686
  </argument>
1687
+ <argument line="3264">
1688
  <name>$offset</name>
1689
  <default><![CDATA[]]></default>
1690
  <type/>
1691
  </argument>
1692
  </method>
1693
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3358" package="Media Library Assistant">
1694
  <name>_parse_pdf_LPD_dictionary</name>
1695
  <full_name>_parse_pdf_LPD_dictionary</full_name>
1696
+ <docblock line="3344">
1697
  <description><![CDATA[Parse a PDF Linearization Parameter Dictionary object]]></description>
1698
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
1699
  indirect (object), name, array, dictionary, stream, and null.
1700
  The array also has a '/length' element containing the number of bytes occupied by the
1701
  dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
1702
+ <tag line="3344" name="since" description="1.50"/>
1703
+ <tag line="3344" name="param" description="data within which the object occurs, typically the start of a PDF document" type="string" variable="$source_string">
1704
  <type by_reference="false">string</type>
1705
  </tag>
1706
+ <tag line="3344" name="param" description="filesize of the PDF document, for validation purposes, or zero (0) to ignore filesize" type="integer" variable="$filesize">
1707
  <type by_reference="false">integer</type>
1708
  </tag>
1709
+ <tag line="3344" name="return" description="array of dictionary objects on success, false on failure" type="mixed">
1710
  <type by_reference="false">mixed</type>
1711
  </tag>
1712
  </docblock>
1713
+ <argument line="3358">
1714
  <name>$source_string</name>
1715
  <default><![CDATA[]]></default>
1716
  <type/>
1717
  </argument>
1718
+ <argument line="3358">
1719
  <name>$filesize</name>
1720
  <default><![CDATA[]]></default>
1721
  <type/>
1722
  </argument>
1723
  </method>
1724
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3383" package="Media Library Assistant">
1725
  <name>_parse_pdf_dictionary</name>
1726
  <full_name>_parse_pdf_dictionary</full_name>
1727
+ <docblock line="3369">
1728
  <description><![CDATA[Parse a PDF dictionary object]]></description>
1729
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
1730
  indirect (object), name, array, dictionary, stream, and null.
1731
  The array also has a '/length' element containing the number of bytes occupied by the
1732
  dictionary in the source string, excluding the enclosing delimiters.</p>]]></long-description>
1733
+ <tag line="3369" name="since" description="1.50"/>
1734
+ <tag line="3369" name="param" description="data within which the string occurs" type="string" variable="$source_string">
1735
  <type by_reference="false">string</type>
1736
  </tag>
1737
+ <tag line="3369" name="param" description="offset within the source string of the opening '&lt;&lt;' characters or the first content character." type="integer" variable="$offset">
1738
  <type by_reference="false">integer</type>
1739
  </tag>
1740
+ <tag line="3369" name="return" description="( '/length' =&gt; length, key =&gt; array( 'type' =&gt; type, 'value' =&gt; value ) ) for each dictionary field" type="array">
1741
  <type by_reference="false">array</type>
1742
  </tag>
1743
  </docblock>
1744
+ <argument line="3383">
1745
  <name>$source_string</name>
1746
  <default><![CDATA[]]></default>
1747
  <type/>
1748
  </argument>
1749
+ <argument line="3383">
1750
  <name>$offset</name>
1751
  <default><![CDATA[]]></default>
1752
  <type/>
1753
  </argument>
1754
  </method>
1755
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3515" package="Media Library Assistant">
1756
  <name>_parse_xmp_metadata</name>
1757
  <full_name>_parse_xmp_metadata</full_name>
1758
+ <docblock line="3501">
1759
  <description><![CDATA[Parse an XMP object]]></description>
1760
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
1761
  indirect (object), name, array, dictionary, stream, and null.
1762
  The array also has a '/length' element containing the number of bytes occupied by the
1763
  dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
1764
+ <tag line="3501" name="since" description="1.50"/>
1765
+ <tag line="3501" name="param" description="full path and file name" type="string" variable="$file_name">
1766
  <type by_reference="false">string</type>
1767
  </tag>
1768
+ <tag line="3501" name="param" description="offset within the file of the search start point" type="integer" variable="$file_offset">
1769
  <type by_reference="false">integer</type>
1770
  </tag>
1771
+ <tag line="3501" name="return" description="array of metadata values or NULL on failure" type="mixed">
1772
  <type by_reference="false">mixed</type>
1773
  </tag>
1774
  </docblock>
1775
+ <argument line="3515">
1776
  <name>$file_name</name>
1777
  <default><![CDATA[]]></default>
1778
  <type/>
1779
  </argument>
1780
+ <argument line="3515">
1781
  <name>$file_offset</name>
1782
  <default><![CDATA[]]></default>
1783
  <type/>
1784
  </argument>
1785
  </method>
1786
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3804" package="Media Library Assistant">
1787
  <name>_extract_pdf_trailer</name>
1788
  <full_name>_extract_pdf_trailer</full_name>
1789
+ <docblock line="3794">
1790
  <description><![CDATA[Extract dictionary from traditional cross-reference + trailer documents]]></description>
1791
  <long-description><![CDATA[]]></long-description>
1792
+ <tag line="3794" name="since" description="1.50"/>
1793
+ <tag line="3794" name="param" description="full path to the desired file" type="string" variable="$file_name">
1794
  <type by_reference="false">string</type>
1795
  </tag>
1796
+ <tag line="3794" name="param" description="offset within file of the cross-reference table" type="integer" variable="$file_offset">
1797
  <type by_reference="false">integer</type>
1798
  </tag>
1799
+ <tag line="3794" name="return" description="array of &quot;PDF dictionary arrays&quot;, newest first, or NULL on failure" type="mixed">
1800
  <type by_reference="false">mixed</type>
1801
  </tag>
1802
  </docblock>
1803
+ <argument line="3804">
1804
  <name>$file_name</name>
1805
  <default><![CDATA[]]></default>
1806
  <type/>
1807
  </argument>
1808
+ <argument line="3804">
1809
  <name>$file_offset</name>
1810
  <default><![CDATA[]]></default>
1811
  <type/>
1812
  </argument>
1813
  </method>
1814
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3890" package="Media Library Assistant">
1815
  <name>_extract_pdf_metadata</name>
1816
  <full_name>_extract_pdf_metadata</full_name>
1817
+ <docblock line="3881">
1818
  <description><![CDATA[Extract Metadata from a PDF file]]></description>
1819
  <long-description><![CDATA[]]></long-description>
1820
+ <tag line="3881" name="since" description="1.50"/>
1821
+ <tag line="3881" name="param" description="full path to the desired file" type="string" variable="$file_name">
1822
  <type by_reference="false">string</type>
1823
  </tag>
1824
+ <tag line="3881" name="return" description="( key =&gt; value ) for each metadata field, in string format" type="array">
1825
  <type by_reference="false">array</type>
1826
  </tag>
1827
  </docblock>
1828
+ <argument line="3890">
1829
  <name>$file_name</name>
1830
  <default><![CDATA[]]></default>
1831
  <type/>
1832
  </argument>
1833
  </method>
1834
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4023" package="Media Library Assistant">
1835
  <name>_bin_to_utf8</name>
1836
  <full_name>_bin_to_utf8</full_name>
1837
+ <docblock line="4014">
1838
  <description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
1839
  <long-description><![CDATA[]]></long-description>
1840
+ <tag line="4014" name="since" description="1.41"/>
1841
+ <tag line="4014" name="param" description="unencoded string" type="string" variable="$string">
1842
  <type by_reference="false">string</type>
1843
  </tag>
1844
+ <tag line="4014" name="return" description="UTF-8 encoded string" type="string">
1845
  <type by_reference="false">string</type>
1846
  </tag>
1847
  </docblock>
1848
+ <argument line="4023">
1849
  <name>$string</name>
1850
  <default><![CDATA[]]></default>
1851
  <type/>
1852
  </argument>
1853
  </method>
1854
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4421" package="Media Library Assistant">
1855
  <name>mla_iptc_metadata_value</name>
1856
  <full_name>mla_iptc_metadata_value</full_name>
1857
+ <docblock line="4411">
1858
  <description><![CDATA[Parse one IPTC metadata field]]></description>
1859
  <long-description><![CDATA[]]></long-description>
1860
+ <tag line="4411" name="since" description="1.41"/>
1861
+ <tag line="4411" name="param" description="field name - IPTC Identifier or friendly name/slug" type="string" variable="$iptc_key">
1862
  <type by_reference="false">string</type>
1863
  </tag>
1864
+ <tag line="4411" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
1865
  <type by_reference="false">string</type>
1866
  </tag>
1867
+ <tag line="4411" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
1868
  <type by_reference="false">mixed</type>
1869
  </tag>
1870
  </docblock>
1871
+ <argument line="4421">
1872
  <name>$iptc_key</name>
1873
  <default><![CDATA[]]></default>
1874
  <type/>
1875
  </argument>
1876
+ <argument line="4421">
1877
  <name>$item_metadata</name>
1878
  <default><![CDATA[]]></default>
1879
  <type/>
1880
  </argument>
1881
  </method>
1882
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4453" package="Media Library Assistant">
1883
  <name>mla_exif_metadata_value</name>
1884
  <full_name>mla_exif_metadata_value</full_name>
1885
+ <docblock line="4441">
1886
  <description><![CDATA[Parse one EXIF metadata field]]></description>
1887
  <long-description><![CDATA[<p>Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
1888
+ <tag line="4441" name="since" description="1.13"/>
1889
+ <tag line="4441" name="param" description="field name" type="string" variable="$exif_key">
1890
  <type by_reference="false">string</type>
1891
  </tag>
1892
+ <tag line="4441" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
1893
  <type by_reference="false">string</type>
1894
  </tag>
1895
+ <tag line="4441" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
1896
  <type by_reference="false">mixed</type>
1897
  </tag>
1898
  </docblock>
1899
+ <argument line="4453">
1900
  <name>$exif_key</name>
1901
  <default><![CDATA[]]></default>
1902
  <type/>
1903
  </argument>
1904
+ <argument line="4453">
1905
  <name>$item_metadata</name>
1906
  <default><![CDATA[]]></default>
1907
  <type/>
1908
  </argument>
1909
  </method>
1910
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4514" package="Media Library Assistant">
1911
  <name>mla_pdf_metadata_value</name>
1912
  <full_name>mla_pdf_metadata_value</full_name>
1913
+ <docblock line="4502">
1914
  <description><![CDATA[Parse one PDF metadata field]]></description>
1915
  <long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
1916
+ <tag line="4502" name="since" description="1.50"/>
1917
+ <tag line="4502" name="param" description="field name" type="string" variable="$pdf_key">
1918
  <type by_reference="false">string</type>
1919
  </tag>
1920
+ <tag line="4502" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
1921
  <type by_reference="false">string</type>
1922
  </tag>
1923
+ <tag line="4502" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
1924
  <type by_reference="false">mixed</type>
1925
  </tag>
1926
  </docblock>
1927
+ <argument line="4514">
1928
  <name>$pdf_key</name>
1929
  <default><![CDATA[]]></default>
1930
  <type/>
1931
  </argument>
1932
+ <argument line="4514">
1933
  <name>$item_metadata</name>
1934
  <default><![CDATA[]]></default>
1935
  <type/>
1936
  </argument>
1937
  </method>
1938
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4556" package="Media Library Assistant">
1939
  <name>_rational_to_decimal</name>
1940
  <full_name>_rational_to_decimal</full_name>
1941
+ <docblock line="4547">
1942
  <description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
1943
  <long-description><![CDATA[]]></long-description>
1944
+ <tag line="4547" name="since" description="1.50"/>
1945
+ <tag line="4547" name="param" description="array( 0 =&gt; numerator, 1 =&gt; denominator )" type="array" variable="$rational">
1946
  <type by_reference="false">array</type>
1947
  </tag>
1948
+ <tag line="4547" name="return" description="numerator/denominator" type="float">
1949
  <type by_reference="false">float</type>
1950
  </tag>
1951
  </docblock>
1952
+ <argument line="4556">
1953
  <name>$rational</name>
1954
  <default><![CDATA[]]></default>
1955
  <type/>
1956
  </argument>
1957
  </method>
1958
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4571" package="Media Library Assistant">
1959
  <name>mla_fetch_attachment_image_metadata</name>
1960
  <full_name>mla_fetch_attachment_image_metadata</full_name>
1961
+ <docblock line="4561">
1962
  <description><![CDATA[Fetch and filter IPTC and EXIF or PDF metadata for an image attachment]]></description>
1963
  <long-description><![CDATA[]]></long-description>
1964
+ <tag line="4561" name="since" description="0.90"/>
1965
+ <tag line="4561" name="param" description="post ID of attachment" type="int" variable="$post_id">
1966
  <type by_reference="false">int</type>
1967
  </tag>
1968
+ <tag line="4561" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
1969
  <type by_reference="false">string</type>
1970
  </tag>
1971
+ <tag line="4561" name="return" description="Meta data variables, IPTC and EXIF or PDF" type="array">
1972
  <type by_reference="false">array</type>
1973
  </tag>
1974
  </docblock>
1975
+ <argument line="4571">
1976
  <name>$post_id</name>
1977
  <default><![CDATA[]]></default>
1978
  <type/>
1979
  </argument>
1980
+ <argument line="4571">
1981
  <name>$path</name>
1982
  <default><![CDATA['']]></default>
1983
  <type/>
1984
  </argument>
1985
  </method>
1986
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4743" package="Media Library Assistant">
1987
  <name>mla_update_wp_attachment_metadata</name>
1988
  <full_name>mla_update_wp_attachment_metadata</full_name>
1989
+ <docblock line="4733">
1990
  <description><![CDATA[Update "meta:" data for a single attachment]]></description>
1991
  <long-description><![CDATA[]]></long-description>
1992
+ <tag line="4733" name="since" description="1.51"/>
1993
+ <tag line="4733" name="param" description="The current wp_attachment_metadata value" type="array" variable="$current_values">
1994
  <type by_reference="false">array</type>
1995
  </tag>
1996
+ <tag line="4733" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
1997
  <type by_reference="false">array</type>
1998
  </tag>
1999
+ <tag line="4733" name="return" description="success/failure message(s); empty string if no changes." type="string">
2000
  <type by_reference="false">string</type>
2001
  </tag>
2002
  </docblock>
2003
+ <argument line="4743">
2004
  <name>$current_values</name>
2005
  <default><![CDATA[]]></default>
2006
  <type/>
2007
  </argument>
2008
+ <argument line="4743">
2009
  <name>$new_meta</name>
2010
  <default><![CDATA[]]></default>
2011
  <type/>
2012
  </argument>
2013
  </method>
2014
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4826" package="Media Library Assistant">
2015
  <name>mla_update_item_postmeta</name>
2016
  <full_name>mla_update_item_postmeta</full_name>
2017
+ <docblock line="4816">
2018
  <description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
2019
  <long-description><![CDATA[]]></long-description>
2020
+ <tag line="4816" name="since" description="1.40"/>
2021
+ <tag line="4816" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
2022
  <type by_reference="false">int</type>
2023
  </tag>
2024
+ <tag line="4816" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
2025
  <type by_reference="false">array</type>
2026
  </tag>
2027
+ <tag line="4816" name="return" description="success/failure message(s)" type="string">
2028
  <type by_reference="false">string</type>
2029
  </tag>
2030
  </docblock>
2031
+ <argument line="4826">
2032
  <name>$post_id</name>
2033
  <default><![CDATA[]]></default>
2034
  <type/>
2035
  </argument>
2036
+ <argument line="4826">
2037
  <name>$new_meta</name>
2038
  <default><![CDATA[]]></default>
2039
  <type/>
2040
  </argument>
2041
  </method>
2042
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4993" package="Media Library Assistant">
2043
  <name>mla_update_single_item</name>
2044
  <full_name>mla_update_single_item</full_name>
2045
+ <docblock line="4980">
2046
  <description><![CDATA[Update a single item; change the "post" data, taxonomy terms
2047
  and meta data for a single attachment]]></description>
2048
  <long-description><![CDATA[]]></long-description>
2049
+ <tag line="4980" name="since" description="0.1"/>
2050
+ <tag line="4980" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
2051
  <type by_reference="false">int</type>
2052
  </tag>
2053
+ <tag line="4980" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
2054
  <type by_reference="false">array</type>
2055
  </tag>
2056
+ <tag line="4980" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
2057
  <type by_reference="false">array</type>
2058
  </tag>
2059
+ <tag line="4980" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
2060
  <type by_reference="false">array</type>
2061
  </tag>
2062
+ <tag line="4980" name="return" description="success/failure message and NULL content" type="array">
2063
  <type by_reference="false">array</type>
2064
  </tag>
2065
  </docblock>
2066
+ <argument line="4993">
2067
  <name>$post_id</name>
2068
  <default><![CDATA[]]></default>
2069
  <type/>
2070
  </argument>
2071
+ <argument line="4993">
2072
  <name>$new_data</name>
2073
  <default><![CDATA[]]></default>
2074
  <type/>
2075
  </argument>
2076
+ <argument line="4993">
2077
  <name>$tax_input</name>
2078
  <default><![CDATA[NULL]]></default>
2079
  <type/>
2080
  </argument>
2081
+ <argument line="4993">
2082
  <name>$tax_actions</name>
2083
  <default><![CDATA[NULL]]></default>
2084
  <type/>
2085
  </argument>
2086
  </method>
2087
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="5269" package="Media Library Assistant">
2088
  <name>_remove_tags</name>
2089
  <full_name>_remove_tags</full_name>
2090
+ <docblock line="5258">
2091
  <description><![CDATA[Remove tags from a term ids list]]></description>
2092
  <long-description><![CDATA[]]></long-description>
2093
+ <tag line="5258" name="since" description="0.40"/>
2094
+ <tag line="5258" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
2095
  <type by_reference="false">array</type>
2096
  </tag>
2097
+ <tag line="5258" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
2098
  <type by_reference="false">array</type>
2099
  </tag>
2100
+ <tag line="5258" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
2101
  <type by_reference="false">object</type>
2102
  </tag>
2103
+ <tag line="5258" name="return" description="Term ids of the surviving tags" type="array">
2104
  <type by_reference="false">array</type>
2105
  </tag>
2106
  </docblock>
2107
+ <argument line="5269">
2108
  <name>$terms_before</name>
2109
  <default><![CDATA[]]></default>
2110
  <type/>
2111
  </argument>
2112
+ <argument line="5269">
2113
  <name>$tags</name>
2114
  <default><![CDATA[]]></default>
2115
  <type/>
2116
  </argument>
2117
+ <argument line="5269">
2118
  <name>$taxonomy_obj</name>
2119
  <default><![CDATA[]]></default>
2120
  <type/>
2121
  </argument>
2122
  </method>
2123
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5318" package="Media Library Assistant">
2124
  <name>_hex_dump</name>
2125
  <full_name>_hex_dump</full_name>
2126
+ <docblock line="5306">
2127
  <description><![CDATA[Format printable version of binary data]]></description>
2128
  <long-description><![CDATA[]]></long-description>
2129
+ <tag line="5306" name="since" description="0.90"/>
2130
+ <tag line="5306" name="param" description="Binary data" type="string" variable="$data">
2131
  <type by_reference="false">string</type>
2132
  </tag>
2133
+ <tag line="5306" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
2134
  <type by_reference="false">integer</type>
2135
  </tag>
2136
+ <tag line="5306" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
2137
  <type by_reference="false">\intger</type>
2138
  </tag>
2139
+ <tag line="5306" name="param" description="offset of initial byte, or -1 to suppress printing offset information" type="integer" variable="$offset">
2140
  <type by_reference="false">integer</type>
2141
  </tag>
2142
+ <tag line="5306" name="return" description="Printable representation of $data" type="string">
2143
  <type by_reference="false">string</type>
2144
  </tag>
2145
  </docblock>
2146
+ <argument line="5318">
2147
  <name>$data</name>
2148
  <default><![CDATA[]]></default>
2149
  <type/>
2150
  </argument>
2151
+ <argument line="5318">
2152
  <name>$limit</name>
2153
  <default><![CDATA[0]]></default>
2154
  <type/>
2155
  </argument>
2156
+ <argument line="5318">
2157
  <name>$bytes_per_row</name>
2158
  <default><![CDATA[16]]></default>
2159
  <type/>
2160
  </argument>
2161
+ <argument line="5318">
2162
  <name>$offset</name>
2163
  <default><![CDATA[-1]]></default>
2164
  <type/>
2166
  </method>
2167
  </class>
2168
  <markers>
2169
+ <todo line="3244">encode the rest</todo>
2170
  </markers>
2171
  </file>
2172
+ <file path="includes\class-mla-edit-media.php" hash="5d59001c1d3fa4d250f86c69b9e3dd0c" package="Media Library Assistant">
2173
  <docblock line="2">
2174
  <description><![CDATA[Media Library Assistant Edit Media screen enhancements]]></description>
2175
  <long-description><![CDATA[]]></long-description>
2225
  </tag>
2226
  </docblock>
2227
  </constant>
2228
+ <property final="false" static="true" visibility="private" line="369" namespace="global" package="Media Library Assistant">
2229
  <name>$mla_references</name>
2230
  <default><![CDATA[null]]></default>
2231
+ <docblock line="359">
2232
  <description><![CDATA[Where-used values for the current item]]></description>
2233
  <long-description><![CDATA[<p>This array contains the Featured/Inserted/Gallery/MLA Gallery references for the item.
2234
  The array is built once each page load and cached for subsequent calls.</p>]]></long-description>
2235
+ <tag line="359" name="since" description="0.80"/>
2236
+ <tag line="359" name="var" description="" type="array">
2237
  <type by_reference="false">array</type>
2238
  </tag>
2239
  </docblock>
2262
  </tag>
2263
  </docblock>
2264
  </method>
2265
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="143" package="Media Library Assistant">
2266
  <name>mla_admin_enqueue_scripts_action</name>
2267
  <full_name>mla_admin_enqueue_scripts_action</full_name>
2268
+ <docblock line="134">
2269
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
2270
  <long-description><![CDATA[]]></long-description>
2271
+ <tag line="134" name="since" description="1.71"/>
2272
+ <tag line="134" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
2273
  <type by_reference="false">string</type>
2274
  </tag>
2275
+ <tag line="134" name="return" description="" type="void">
2276
  <type by_reference="false">void</type>
2277
  </tag>
2278
  </docblock>
2279
+ <argument line="143">
2280
  <name>$page_hook</name>
2281
  <default><![CDATA[]]></default>
2282
  <type/>
2283
  </argument>
2284
  </method>
2285
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="179" package="Media Library Assistant">
2286
  <name>mla_post_updated_messages_filter</name>
2287
  <full_name>mla_post_updated_messages_filter</full_name>
2288
+ <docblock line="169">
2289
  <description><![CDATA[Adds mapping update messages for display at the top of the Edit Media screen.]]></description>
2290
  <long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
2291
+ <tag line="169" name="since" description="1.10"/>
2292
+ <tag line="169" name="param" description="messages for the Edit screen" type="array" variable="$messages">
2293
  <type by_reference="false">array</type>
2294
  </tag>
2295
+ <tag line="169" name="return" description="updated messages" type="array">
2296
  <type by_reference="false">array</type>
2297
  </tag>
2298
  </docblock>
2299
+ <argument line="179">
2300
  <name>$messages</name>
2301
  <default><![CDATA[]]></default>
2302
  <type/>
2303
  </argument>
2304
  </method>
2305
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="196" package="Media Library Assistant">
2306
  <name>mla_attachment_submitbox_action</name>
2307
  <full_name>mla_attachment_submitbox_action</full_name>
2308
+ <docblock line="188">
2309
  <description><![CDATA[Adds Last Modified date to the Submit box on the Edit Media screen.]]></description>
2310
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
2311
+ <tag line="188" name="since" description="0.80"/>
2312
+ <tag line="188" name="return" description="echoes the HTML markup for the label and value" type="void">
2313
  <type by_reference="false">void</type>
2314
  </tag>
2315
  </docblock>
2316
  </method>
2317
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="232" package="Media Library Assistant">
2318
  <name>mla_add_meta_boxes_action</name>
2319
  <full_name>mla_add_meta_boxes_action</full_name>
2320
+ <docblock line="221">
2321
  <description><![CDATA[Registers meta boxes for the Edit Media screen.]]></description>
2322
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
2323
+ <tag line="221" name="since" description="0.80"/>
2324
+ <tag line="221" name="param" description="type of the current post, e.g., 'attachment' (optional, default 'unknown')" type="string" variable="$post_type">
2325
  <type by_reference="false">string</type>
2326
  </tag>
2327
+ <tag line="221" name="param" description="current post (optional, default (object) array ( 'ID' =&gt; 0 ))" type="object" variable="$post">
2328
  <type by_reference="false">object</type>
2329
  </tag>
2330
+ <tag line="221" name="return" description="" type="void">
2331
  <type by_reference="false">void</type>
2332
  </tag>
2333
  </docblock>
2334
+ <argument line="232">
2335
  <name>$post_type</name>
2336
  <default><![CDATA['unknown']]></default>
2337
  <type/>
2338
  </argument>
2339
+ <argument line="232">
2340
  <name>$post</name>
2341
  <default><![CDATA[NULL]]></default>
2342
  <type/>
2343
  </argument>
2344
  </method>
2345
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="319" package="Media Library Assistant">
2346
  <name>mla_edit_add_help_tab</name>
2347
  <full_name>mla_edit_add_help_tab</full_name>
2348
+ <docblock line="309">
2349
  <description><![CDATA[Add contextual help tabs to the WordPress Edit Media page]]></description>
2350
  <long-description><![CDATA[]]></long-description>
2351
+ <tag line="309" name="since" description="0.90"/>
2352
+ <tag line="309" name="param" description="title as shown on the screen" type="string" variable="$admin_title">
2353
  <type by_reference="false">string</type>
2354
  </tag>
2355
+ <tag line="309" name="param" description="title as shown in the HTML header" type="string" variable="$title">
2356
  <type by_reference="false">string</type>
2357
  </tag>
2358
+ <tag line="309" name="return" description="" type="void">
2359
  <type by_reference="false">void</type>
2360
  </tag>
2361
  </docblock>
2362
+ <argument line="319">
2363
  <name>$admin_title</name>
2364
  <default><![CDATA[]]></default>
2365
  <type/>
2366
  </argument>
2367
+ <argument line="319">
2368
  <name>$title</name>
2369
  <default><![CDATA[]]></default>
2370
  <type/>
2371
  </argument>
2372
  </method>
2373
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="381" package="Media Library Assistant">
2374
  <name>mla_parent_info_handler</name>
2375
  <full_name>mla_parent_info_handler</full_name>
2376
+ <docblock line="371">
2377
  <description><![CDATA[Renders the Parent Info meta box on the Edit Media page.]]></description>
2378
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2379
+ <tag line="371" name="since" description="0.80"/>
2380
+ <tag line="371" name="param" description="current post" type="object" variable="$post">
2381
  <type by_reference="false">object</type>
2382
  </tag>
2383
+ <tag line="371" name="return" description="echoes the HTML markup for the meta box content" type="void">
2384
  <type by_reference="false">void</type>
2385
  </tag>
2386
  </docblock>
2387
+ <argument line="381">
2388
  <name>$post</name>
2389
  <default><![CDATA[]]></default>
2390
  <type/>
2391
  </argument>
2392
  </method>
2393
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="408" package="Media Library Assistant">
2394
  <name>mla_menu_order_handler</name>
2395
  <full_name>mla_menu_order_handler</full_name>
2396
+ <docblock line="398">
2397
  <description><![CDATA[Renders the Menu Order meta box on the Edit Media page.]]></description>
2398
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2399
+ <tag line="398" name="since" description="0.80"/>
2400
+ <tag line="398" name="param" description="current post" type="object" variable="$post">
2401
  <type by_reference="false">object</type>
2402
  </tag>
2403
+ <tag line="398" name="return" description="echoes the HTML markup for the meta box content" type="void">
2404
  <type by_reference="false">void</type>
2405
  </tag>
2406
  </docblock>
2407
+ <argument line="408">
2408
  <name>$post</name>
2409
  <default><![CDATA[]]></default>
2410
  <type/>
2411
  </argument>
2412
  </method>
2413
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="423" package="Media Library Assistant">
2414
  <name>mla_image_metadata_handler</name>
2415
  <full_name>mla_image_metadata_handler</full_name>
2416
+ <docblock line="413">
2417
  <description><![CDATA[Renders the Image Metadata meta box on the Edit Media page.]]></description>
2418
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2419
+ <tag line="413" name="since" description="0.80"/>
2420
+ <tag line="413" name="param" description="current post" type="object" variable="$post">
2421
  <type by_reference="false">object</type>
2422
  </tag>
2423
+ <tag line="413" name="return" description="echoes the HTML markup for the meta box content" type="void">
2424
  <type by_reference="false">void</type>
2425
  </tag>
2426
  </docblock>
2427
+ <argument line="423">
2428
  <name>$post</name>
2429
  <default><![CDATA[]]></default>
2430
  <type/>
2431
  </argument>
2432
  </method>
2433
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="445" package="Media Library Assistant">
2434
  <name>mla_featured_in_handler</name>
2435
  <full_name>mla_featured_in_handler</full_name>
2436
+ <docblock line="435">
2437
  <description><![CDATA[Renders the Featured in meta box on the Edit Media page.]]></description>
2438
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2439
+ <tag line="435" name="since" description="0.80"/>
2440
+ <tag line="435" name="param" description="current post" type="object" variable="$post">
2441
  <type by_reference="false">object</type>
2442
  </tag>
2443
+ <tag line="435" name="return" description="echoes the HTML markup for the meta box content" type="void">
2444
  <type by_reference="false">void</type>
2445
  </tag>
2446
  </docblock>
2447
+ <argument line="445">
2448
  <name>$post</name>
2449
  <default><![CDATA[]]></default>
2450
  <type/>
2451
  </argument>
2452
  </method>
2453
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="477" package="Media Library Assistant">
2454
  <name>mla_inserted_in_handler</name>
2455
  <full_name>mla_inserted_in_handler</full_name>
2456
+ <docblock line="467">
2457
  <description><![CDATA[Renders the Inserted in meta box on the Edit Media page.]]></description>
2458
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2459
+ <tag line="467" name="since" description="0.80"/>
2460
+ <tag line="467" name="param" description="current post" type="object" variable="$post">
2461
  <type by_reference="false">object</type>
2462
  </tag>
2463
+ <tag line="467" name="return" description="echoes the HTML markup for the meta box content" type="void">
2464
  <type by_reference="false">void</type>
2465
  </tag>
2466
  </docblock>
2467
+ <argument line="477">
2468
  <name>$post</name>
2469
  <default><![CDATA[]]></default>
2470
  <type/>
2471
  </argument>
2472
  </method>
2473
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="513" package="Media Library Assistant">
2474
  <name>mla_gallery_in_handler</name>
2475
  <full_name>mla_gallery_in_handler</full_name>
2476
+ <docblock line="503">
2477
  <description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
2478
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2479
+ <tag line="503" name="since" description="0.80"/>
2480
+ <tag line="503" name="param" description="current post" type="object" variable="$post">
2481
  <type by_reference="false">object</type>
2482
  </tag>
2483
+ <tag line="503" name="return" description="echoes the HTML markup for the meta box content" type="void">
2484
  <type by_reference="false">void</type>
2485
  </tag>
2486
  </docblock>
2487
+ <argument line="513">
2488
  <name>$post</name>
2489
  <default><![CDATA[]]></default>
2490
  <type/>
2491
  </argument>
2492
  </method>
2493
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="545" package="Media Library Assistant">
2494
  <name>mla_mla_gallery_in_handler</name>
2495
  <full_name>mla_mla_gallery_in_handler</full_name>
2496
+ <docblock line="535">
2497
  <description><![CDATA[Renders the Gallery in meta box on the Edit Media page.]]></description>
2498
  <long-description><![CDATA[<p>Declared public because it is a callback function.</p>]]></long-description>
2499
+ <tag line="535" name="since" description="0.80"/>
2500
+ <tag line="535" name="param" description="current post" type="object" variable="$post">
2501
  <type by_reference="false">object</type>
2502
  </tag>
2503
+ <tag line="535" name="return" description="echoes the HTML markup for the meta box content" type="void">
2504
  <type by_reference="false">void</type>
2505
  </tag>
2506
  </docblock>
2507
+ <argument line="545">
2508
  <name>$post</name>
2509
  <default><![CDATA[]]></default>
2510
  <type/>
2511
  </argument>
2512
  </method>
2513
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="577" package="Media Library Assistant">
2514
  <name>mla_edit_attachment_action</name>
2515
  <full_name>mla_edit_attachment_action</full_name>
2516
+ <docblock line="567">
2517
  <description><![CDATA[Saves updates from the Edit Media screen.]]></description>
2518
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
2519
+ <tag line="567" name="since" description="0.80"/>
2520
+ <tag line="567" name="param" description="ID of the current post" type="integer" variable="$post_ID">
2521
  <type by_reference="false">integer</type>
2522
  </tag>
2523
+ <tag line="567" name="return" description="" type="void">
2524
  <type by_reference="false">void</type>
2525
  </tag>
2526
  </docblock>
2527
+ <argument line="577">
2528
  <name>$post_ID</name>
2529
  <default><![CDATA[]]></default>
2530
  <type/>
2531
  </argument>
2532
  </method>
2533
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="604" package="Media Library Assistant">
2534
+ <name>_mla_ajax_add_flat_term</name>
2535
+ <full_name>_mla_ajax_add_flat_term</full_name>
2536
+ <docblock line="592">
2537
+ <description><![CDATA[Add flat taxonomy term from "checklist" meta box on both the Edit/Edit Media screen and
2538
+ the Media Manager Modal WIndow]]></description>
2539
+ <long-description><![CDATA[<p>Adapted from the WordPress post_categories_meta_box() in /wp-admin/includes/meta-boxes.php.</p>]]></long-description>
2540
+ <tag line="592" name="since" description="1.80"/>
2541
+ <tag line="592" name="param" description="The taxonomy name, from $_POST['action']" type="string" variable="$key">
2542
+ <type by_reference="false">string</type>
2543
+ </tag>
2544
+ <tag line="592" name="return" description="Sends JSON response with updated HTML for the checklist" type="void">
2545
+ <type by_reference="false">void</type>
2546
+ </tag>
2547
+ </docblock>
2548
+ <argument line="604">
2549
+ <name>$key</name>
2550
+ <default><![CDATA[]]></default>
2551
+ <type/>
2552
+ </argument>
2553
+ </method>
2554
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="668" package="Media Library Assistant">
2555
+ <name>mla_checklist_meta_box</name>
2556
+ <full_name>mla_checklist_meta_box</full_name>
2557
+ <docblock line="653">
2558
  <description><![CDATA[Display taxonomy "checklist" form fields]]></description>
2559
+ <long-description><![CDATA[<p>Adapted from /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term().
2560
  Includes the "? Search" area to filter the term checklist by entering part
2561
  or all of a word/phrase in the term label.
2562
  Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p>]]></long-description>
2563
+ <tag line="653" name="since" description="1.71"/>
2564
+ <tag line="653" name="param" description="The current post" type="object" variable="$target_post">
2565
  <type by_reference="false">object</type>
2566
  </tag>
2567
+ <tag line="653" name="param" description="The meta box parameters" type="array" variable="$box">
2568
  <type by_reference="false">array</type>
2569
  </tag>
2570
+ <tag line="653" name="return" description="Echoes HTML for the form fields" type="void">
2571
  <type by_reference="false">void</type>
2572
  </tag>
2573
  </docblock>
2574
+ <argument line="668">
2575
+ <name>$target_post</name>
2576
  <default><![CDATA[]]></default>
2577
  <type/>
2578
  </argument>
2579
+ <argument line="668">
2580
  <name>$box</name>
2581
  <default><![CDATA[]]></default>
2582
  <type/>
2583
  </argument>
2584
  </method>
2585
  </class>
2586
+ <class final="false" abstract="false" namespace="global" line="831" package="Media Library Assistant">
2587
+ <extends>\Walker_Category</extends>
2588
+ <name>MLA_Checklist_Walker</name>
2589
+ <full_name>\MLA_Checklist_Walker</full_name>
2590
+ <docblock line="821">
2591
+ <description><![CDATA[Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output]]></description>
2592
+ <long-description><![CDATA[<p>This walker is used to build the meta boxes for flat taxonomies, e.g., Tags, Att. Tags.
2593
+ Class Walker_Category is defined in /wp-includes/category-template.php.
2594
+ Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-description>
2595
+ <tag line="821" name="package" description="Media Library Assistant"/>
2596
+ <tag line="821" name="since" description="1.80"/>
2597
+ </docblock>
2598
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="845" package="Media Library Assistant">
2599
+ <name>start_el</name>
2600
+ <full_name>start_el</full_name>
2601
+ <docblock line="832">
2602
+ <description><![CDATA[Start the element output.]]></description>
2603
+ <long-description><![CDATA[]]></long-description>
2604
+ <tag line="832" name="see" description="\global\Walker::start_el()" refers="\global\Walker::start_el()"/>
2605
+ <tag line="832" name="since" description="1.80"/>
2606
+ <tag line="832" name="param" description="Passed by reference. Used to append additional content." type="string" variable="$output">
2607
+ <type by_reference="false">string</type>
2608
+ </tag>
2609
+ <tag line="832" name="param" description="Taxonomy data object." type="object" variable="$taxonomy_object">
2610
+ <type by_reference="false">object</type>
2611
+ </tag>
2612
+ <tag line="832" name="param" description="Depth of category in reference to parents. Default 0." type="int" variable="$depth">
2613
+ <type by_reference="false">int</type>
2614
+ </tag>
2615
+ <tag line="832" name="param" description="An array of arguments. @see wp_list_categories()" type="array" variable="$args">
2616
+ <type by_reference="false">array</type>
2617
+ </tag>
2618
+ <tag line="832" name="param" description="ID of the current category." type="int" variable="$id">
2619
+ <type by_reference="false">int</type>
2620
+ </tag>
2621
+ </docblock>
2622
+ <argument line="845">
2623
+ <name>$output</name>
2624
+ <default><![CDATA[]]></default>
2625
+ <type/>
2626
+ </argument>
2627
+ <argument line="845">
2628
+ <name>$taxonomy_object</name>
2629
+ <default><![CDATA[]]></default>
2630
+ <type/>
2631
+ </argument>
2632
+ <argument line="845">
2633
+ <name>$depth</name>
2634
+ <default><![CDATA[0]]></default>
2635
+ <type/>
2636
+ </argument>
2637
+ <argument line="845">
2638
+ <name>$args</name>
2639
+ <default><![CDATA[array()]]></default>
2640
+ <type/>
2641
+ </argument>
2642
+ <argument line="845">
2643
+ <name>$id</name>
2644
+ <default><![CDATA[0]]></default>
2645
+ <type/>
2646
+ </argument>
2647
+ </method>
2648
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="878" package="Media Library Assistant">
2649
+ <name>end_el</name>
2650
+ <full_name>end_el</full_name>
2651
+ <docblock line="866">
2652
+ <description><![CDATA[Ends the element output, if needed.]]></description>
2653
+ <long-description><![CDATA[]]></long-description>
2654
+ <tag line="866" name="see" description="\global\Walker::end_el()" refers="\global\Walker::end_el()"/>
2655
+ <tag line="866" name="since" description="1.80"/>
2656
+ <tag line="866" name="param" description="Passed by reference. Used to append additional content." type="string" variable="$output">
2657
+ <type by_reference="false">string</type>
2658
+ </tag>
2659
+ <tag line="866" name="param" description="The current term object." type="object" variable="$category">
2660
+ <type by_reference="false">object</type>
2661
+ </tag>
2662
+ <tag line="866" name="param" description="Depth of the term in reference to parents. Default 0." type="int" variable="$depth">
2663
+ <type by_reference="false">int</type>
2664
+ </tag>
2665
+ <tag line="866" name="param" description="An array of arguments. @see wp_terms_checklist()" type="array" variable="$args">
2666
+ <type by_reference="false">array</type>
2667
+ </tag>
2668
+ </docblock>
2669
+ <argument line="878">
2670
+ <name>$output</name>
2671
+ <default><![CDATA[]]></default>
2672
+ <type/>
2673
+ </argument>
2674
+ <argument line="878">
2675
+ <name>$category</name>
2676
+ <default><![CDATA[]]></default>
2677
+ <type/>
2678
+ </argument>
2679
+ <argument line="878">
2680
+ <name>$depth</name>
2681
+ <default><![CDATA[0]]></default>
2682
+ <type/>
2683
+ </argument>
2684
+ <argument line="878">
2685
+ <name>$args</name>
2686
+ <default><![CDATA[array()]]></default>
2687
+ <type/>
2688
+ </argument>
2689
+ </method>
2690
+ </class>
2691
  </file>
2692
+ <file path="includes\class-mla-list-table.php" hash="593d64be1421a66a7250df9cf1449fd2" package="Media Library Assistant">
2693
  <docblock line="2">
2694
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
2695
  <long-description><![CDATA[]]></long-description>
3069
  <type/>
3070
  </argument>
3071
  </method>
3072
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="654" package="Media Library Assistant">
3073
  <name>column_ID_parent</name>
3074
  <full_name>column_ID_parent</full_name>
3075
+ <docblock line="646">
3076
  <description><![CDATA[Supply the content for a custom column]]></description>
3077
  <long-description><![CDATA[]]></long-description>
3078
+ <tag line="646" name="since" description="0.1"/>
3079
+ <tag line="646" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3080
  <type by_reference="false">array</type>
3081
  </tag>
3082
+ <tag line="646" name="return" description="HTML markup to be placed inside the column" type="string">
3083
  <type by_reference="false">string</type>
3084
  </tag>
3085
  </docblock>
3086
+ <argument line="654">
3087
  <name>$item</name>
3088
  <default><![CDATA[]]></default>
3089
  <type/>
3090
  </argument>
3091
  </method>
3092
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="687" package="Media Library Assistant">
3093
  <name>column_title_name</name>
3094
  <full_name>column_title_name</full_name>
3095
+ <docblock line="679">
3096
  <description><![CDATA[Supply the content for a custom column]]></description>
3097
  <long-description><![CDATA[]]></long-description>
3098
+ <tag line="679" name="since" description="0.1"/>
3099
+ <tag line="679" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3100
  <type by_reference="false">array</type>
3101
  </tag>
3102
+ <tag line="679" name="return" description="HTML markup to be placed inside the column" type="string">
3103
  <type by_reference="false">string</type>
3104
  </tag>
3105
  </docblock>
3106
+ <argument line="687">
3107
  <name>$item</name>
3108
  <default><![CDATA[]]></default>
3109
  <type/>
3110
  </argument>
3111
  </method>
3112
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="711" package="Media Library Assistant">
3113
  <name>column_post_title</name>
3114
  <full_name>column_post_title</full_name>
3115
+ <docblock line="703">
3116
  <description><![CDATA[Supply the content for a custom column]]></description>
3117
  <long-description><![CDATA[]]></long-description>
3118
+ <tag line="703" name="since" description="0.1"/>
3119
+ <tag line="703" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3120
  <type by_reference="false">array</type>
3121
  </tag>
3122
+ <tag line="703" name="return" description="HTML markup to be placed inside the column" type="string">
3123
  <type by_reference="false">string</type>
3124
  </tag>
3125
  </docblock>
3126
+ <argument line="711">
3127
  <name>$item</name>
3128
  <default><![CDATA[]]></default>
3129
  <type/>
3130
  </argument>
3131
  </method>
3132
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="729" package="Media Library Assistant">
3133
  <name>column_post_name</name>
3134
  <full_name>column_post_name</full_name>
3135
+ <docblock line="721">
3136
  <description><![CDATA[Supply the content for a custom column]]></description>
3137
  <long-description><![CDATA[]]></long-description>
3138
+ <tag line="721" name="since" description="0.1"/>
3139
+ <tag line="721" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3140
  <type by_reference="false">array</type>
3141
  </tag>
3142
+ <tag line="721" name="return" description="HTML markup to be placed inside the column" type="string">
3143
  <type by_reference="false">string</type>
3144
  </tag>
3145
  </docblock>
3146
+ <argument line="729">
3147
  <name>$item</name>
3148
  <default><![CDATA[]]></default>
3149
  <type/>
3150
  </argument>
3151
  </method>
3152
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="747" package="Media Library Assistant">
3153
  <name>column_parent</name>
3154
  <full_name>column_parent</full_name>
3155
+ <docblock line="739">
3156
  <description><![CDATA[Supply the content for a custom column]]></description>
3157
  <long-description><![CDATA[]]></long-description>
3158
+ <tag line="739" name="since" description="0.1"/>
3159
+ <tag line="739" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3160
  <type by_reference="false">array</type>
3161
  </tag>
3162
+ <tag line="739" name="return" description="HTML markup to be placed inside the column" type="string">
3163
  <type by_reference="false">string</type>
3164
  </tag>
3165
  </docblock>
3166
+ <argument line="747">
3167
  <name>$item</name>
3168
  <default><![CDATA[]]></default>
3169
  <type/>
3170
  </argument>
3171
  </method>
3172
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="773" package="Media Library Assistant">
3173
  <name>column_menu_order</name>
3174
  <full_name>column_menu_order</full_name>
3175
+ <docblock line="765">
3176
  <description><![CDATA[Supply the content for a custom column]]></description>
3177
  <long-description><![CDATA[]]></long-description>
3178
+ <tag line="765" name="since" description="0.60"/>
3179
+ <tag line="765" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3180
  <type by_reference="false">array</type>
3181
  </tag>
3182
+ <tag line="765" name="return" description="HTML markup to be placed inside the column" type="string">
3183
  <type by_reference="false">string</type>
3184
  </tag>
3185
  </docblock>
3186
+ <argument line="773">
3187
  <name>$item</name>
3188
  <default><![CDATA[]]></default>
3189
  <type/>
3190
  </argument>
3191
  </method>
3192
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="785" package="Media Library Assistant">
3193
  <name>column_featured</name>
3194
  <full_name>column_featured</full_name>
3195
+ <docblock line="777">
3196
  <description><![CDATA[Supply the content for a custom column]]></description>
3197
  <long-description><![CDATA[]]></long-description>
3198
+ <tag line="777" name="since" description="0.1"/>
3199
+ <tag line="777" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3200
  <type by_reference="false">array</type>
3201
  </tag>
3202
+ <tag line="777" name="return" description="HTML markup to be placed inside the column" type="string">
3203
  <type by_reference="false">string</type>
3204
  </tag>
3205
  </docblock>
3206
+ <argument line="785">
3207
  <name>$item</name>
3208
  <default><![CDATA[]]></default>
3209
  <type/>
3210
  </argument>
3211
  </method>
3212
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="819" package="Media Library Assistant">
3213
  <name>column_inserted</name>
3214
  <full_name>column_inserted</full_name>
3215
+ <docblock line="811">
3216
  <description><![CDATA[Supply the content for a custom column]]></description>
3217
  <long-description><![CDATA[]]></long-description>
3218
+ <tag line="811" name="since" description="0.1"/>
3219
+ <tag line="811" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3220
  <type by_reference="false">array</type>
3221
  </tag>
3222
+ <tag line="811" name="return" description="HTML markup to be placed inside the column" type="string">
3223
  <type by_reference="false">string</type>
3224
  </tag>
3225
  </docblock>
3226
+ <argument line="819">
3227
  <name>$item</name>
3228
  <default><![CDATA[]]></default>
3229
  <type/>
3230
  </argument>
3231
  </method>
3232
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="857" package="Media Library Assistant">
3233
  <name>column_galleries</name>
3234
  <full_name>column_galleries</full_name>
3235
+ <docblock line="849">
3236
  <description><![CDATA[Supply the content for a custom column]]></description>
3237
  <long-description><![CDATA[]]></long-description>
3238
+ <tag line="849" name="since" description="0.70"/>
3239
+ <tag line="849" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3240
  <type by_reference="false">array</type>
3241
  </tag>
3242
+ <tag line="849" name="return" description="HTML markup to be placed inside the column" type="string">
3243
  <type by_reference="false">string</type>
3244
  </tag>
3245
  </docblock>
3246
+ <argument line="857">
3247
  <name>$item</name>
3248
  <default><![CDATA[]]></default>
3249
  <type/>
3250
  </argument>
3251
  </method>
3252
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="891" package="Media Library Assistant">
3253
  <name>column_mla_galleries</name>
3254
  <full_name>column_mla_galleries</full_name>
3255
+ <docblock line="883">
3256
  <description><![CDATA[Supply the content for a custom column]]></description>
3257
  <long-description><![CDATA[]]></long-description>
3258
+ <tag line="883" name="since" description="0.70"/>
3259
+ <tag line="883" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3260
  <type by_reference="false">array</type>
3261
  </tag>
3262
+ <tag line="883" name="return" description="HTML markup to be placed inside the column" type="string">
3263
  <type by_reference="false">string</type>
3264
  </tag>
3265
  </docblock>
3266
+ <argument line="891">
3267
  <name>$item</name>
3268
  <default><![CDATA[]]></default>
3269
  <type/>
3270
  </argument>
3271
  </method>
3272
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="925" package="Media Library Assistant">
3273
  <name>column_alt_text</name>
3274
  <full_name>column_alt_text</full_name>
3275
+ <docblock line="917">
3276
  <description><![CDATA[Supply the content for a custom column]]></description>
3277
  <long-description><![CDATA[]]></long-description>
3278
+ <tag line="917" name="since" description="0.1"/>
3279
+ <tag line="917" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3280
  <type by_reference="false">array</type>
3281
  </tag>
3282
+ <tag line="917" name="return" description="HTML markup to be placed inside the column" type="string">
3283
  <type by_reference="false">string</type>
3284
  </tag>
3285
  </docblock>
3286
+ <argument line="925">
3287
  <name>$item</name>
3288
  <default><![CDATA[]]></default>
3289
  <type/>
3290
  </argument>
3291
  </method>
3292
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="946" package="Media Library Assistant">
3293
  <name>column_caption</name>
3294
  <full_name>column_caption</full_name>
3295
+ <docblock line="938">
3296
  <description><![CDATA[Supply the content for a custom column]]></description>
3297
  <long-description><![CDATA[]]></long-description>
3298
+ <tag line="938" name="since" description="0.1"/>
3299
+ <tag line="938" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3300
  <type by_reference="false">array</type>
3301
  </tag>
3302
+ <tag line="938" name="return" description="HTML markup to be placed inside the column" type="string">
3303
  <type by_reference="false">string</type>
3304
  </tag>
3305
  </docblock>
3306
+ <argument line="946">
3307
  <name>$item</name>
3308
  <default><![CDATA[]]></default>
3309
  <type/>
3310
  </argument>
3311
  </method>
3312
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="958" package="Media Library Assistant">
3313
  <name>column_description</name>
3314
  <full_name>column_description</full_name>
3315
+ <docblock line="950">
3316
  <description><![CDATA[Supply the content for a custom column]]></description>
3317
  <long-description><![CDATA[]]></long-description>
3318
+ <tag line="950" name="since" description="0.1"/>
3319
+ <tag line="950" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3320
  <type by_reference="false">array</type>
3321
  </tag>
3322
+ <tag line="950" name="return" description="HTML markup to be placed inside the column" type="string">
3323
  <type by_reference="false">string</type>
3324
  </tag>
3325
  </docblock>
3326
+ <argument line="958">
3327
  <name>$item</name>
3328
  <default><![CDATA[]]></default>
3329
  <type/>
3330
  </argument>
3331
  </method>
3332
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="970" package="Media Library Assistant">
3333
  <name>column_post_mime_type</name>
3334
  <full_name>column_post_mime_type</full_name>
3335
+ <docblock line="962">
3336
  <description><![CDATA[Supply the content for a custom column]]></description>
3337
  <long-description><![CDATA[]]></long-description>
3338
+ <tag line="962" name="since" description="0.30"/>
3339
+ <tag line="962" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3340
  <type by_reference="false">array</type>
3341
  </tag>
3342
+ <tag line="962" name="return" description="HTML markup to be placed inside the column" type="string">
3343
  <type by_reference="false">string</type>
3344
  </tag>
3345
  </docblock>
3346
+ <argument line="970">
3347
  <name>$item</name>
3348
  <default><![CDATA[]]></default>
3349
  <type/>
3350
  </argument>
3351
  </method>
3352
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="986" package="Media Library Assistant">
3353
  <name>column_file_url</name>
3354
  <full_name>column_file_url</full_name>
3355
+ <docblock line="978">
3356
  <description><![CDATA[Supply the content for a custom column]]></description>
3357
  <long-description><![CDATA[]]></long-description>
3358
+ <tag line="978" name="since" description="0.1"/>
3359
+ <tag line="978" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3360
  <type by_reference="false">array</type>
3361
  </tag>
3362
+ <tag line="978" name="return" description="HTML markup to be placed inside the column" type="string">
3363
  <type by_reference="false">string</type>
3364
  </tag>
3365
  </docblock>
3366
+ <argument line="986">
3367
  <name>$item</name>
3368
  <default><![CDATA[]]></default>
3369
  <type/>
3370
  </argument>
3371
  </method>
3372
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1000" package="Media Library Assistant">
3373
  <name>column_base_file</name>
3374
  <full_name>column_base_file</full_name>
3375
+ <docblock line="992">
3376
  <description><![CDATA[Supply the content for a custom column]]></description>
3377
  <long-description><![CDATA[]]></long-description>
3378
+ <tag line="992" name="since" description="0.1"/>
3379
+ <tag line="992" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3380
  <type by_reference="false">array</type>
3381
  </tag>
3382
+ <tag line="992" name="return" description="HTML markup to be placed inside the column" type="string">
3383
  <type by_reference="false">string</type>
3384
  </tag>
3385
  </docblock>
3386
+ <argument line="1000">
3387
  <name>$item</name>
3388
  <default><![CDATA[]]></default>
3389
  <type/>
3390
  </argument>
3391
  </method>
3392
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1012" package="Media Library Assistant">
3393
  <name>column_date</name>
3394
  <full_name>column_date</full_name>
3395
+ <docblock line="1004">
3396
  <description><![CDATA[Supply the content for a custom column]]></description>
3397
  <long-description><![CDATA[]]></long-description>
3398
+ <tag line="1004" name="since" description="0.1"/>
3399
+ <tag line="1004" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3400
  <type by_reference="false">array</type>
3401
  </tag>
3402
+ <tag line="1004" name="return" description="HTML markup to be placed inside the column" type="string">
3403
  <type by_reference="false">string</type>
3404
  </tag>
3405
  </docblock>
3406
+ <argument line="1012">
3407
  <name>$item</name>
3408
  <default><![CDATA[]]></default>
3409
  <type/>
3410
  </argument>
3411
  </method>
3412
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1044" package="Media Library Assistant">
3413
  <name>column_modified</name>
3414
  <full_name>column_modified</full_name>
3415
+ <docblock line="1036">
3416
  <description><![CDATA[Supply the content for a custom column]]></description>
3417
  <long-description><![CDATA[]]></long-description>
3418
+ <tag line="1036" name="since" description="0.30"/>
3419
+ <tag line="1036" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3420
  <type by_reference="false">array</type>
3421
  </tag>
3422
+ <tag line="1036" name="return" description="HTML markup to be placed inside the column" type="string">
3423
  <type by_reference="false">string</type>
3424
  </tag>
3425
  </docblock>
3426
+ <argument line="1044">
3427
  <name>$item</name>
3428
  <default><![CDATA[]]></default>
3429
  <type/>
3430
  </argument>
3431
  </method>
3432
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1073" package="Media Library Assistant">
3433
  <name>column_author</name>
3434
  <full_name>column_author</full_name>
3435
+ <docblock line="1065">
3436
  <description><![CDATA[Supply the content for a custom column]]></description>
3437
  <long-description><![CDATA[]]></long-description>
3438
+ <tag line="1065" name="since" description="0.30"/>
3439
+ <tag line="1065" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3440
  <type by_reference="false">array</type>
3441
  </tag>
3442
+ <tag line="1065" name="return" description="HTML markup to be placed inside the column" type="string">
3443
  <type by_reference="false">string</type>
3444
  </tag>
3445
  </docblock>
3446
+ <argument line="1073">
3447
  <name>$item</name>
3448
  <default><![CDATA[]]></default>
3449
  <type/>
3450
  </argument>
3451
  </method>
3452
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1095" package="Media Library Assistant">
3453
  <name>column_attached_to</name>
3454
  <full_name>column_attached_to</full_name>
3455
+ <docblock line="1087">
3456
  <description><![CDATA[Supply the content for a custom column]]></description>
3457
  <long-description><![CDATA[]]></long-description>
3458
+ <tag line="1087" name="since" description="0.1"/>
3459
+ <tag line="1087" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3460
  <type by_reference="false">array</type>
3461
  </tag>
3462
+ <tag line="1087" name="return" description="HTML markup to be placed inside the column" type="string">
3463
  <type by_reference="false">string</type>
3464
  </tag>
3465
  </docblock>
3466
+ <argument line="1095">
3467
  <name>$item</name>
3468
  <default><![CDATA[]]></default>
3469
  <type/>
3470
  </argument>
3471
  </method>
3472
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1129" package="Media Library Assistant">
3473
  <name>mla_submenu_arguments</name>
3474
  <full_name>mla_submenu_arguments</full_name>
3475
+ <docblock line="1120">
3476
  <description><![CDATA[Process $_REQUEST, building $submenu_arguments]]></description>
3477
  <long-description><![CDATA[]]></long-description>
3478
+ <tag line="1120" name="since" description="1.42"/>
3479
+ <tag line="1120" name="param" description="Optional: Include the &quot;click filter&quot; values in the results" type="boolean" variable="$include_filters">
3480
  <type by_reference="false">boolean</type>
3481
  </tag>
3482
+ <tag line="1120" name="return" description="non-empty view, search, filter and sort arguments" type="array">
3483
  <type by_reference="false">array</type>
3484
  </tag>
3485
  </docblock>
3486
+ <argument line="1129">
3487
  <name>$include_filters</name>
3488
  <default><![CDATA[true]]></default>
3489
  <type/>
3490
  </argument>
3491
  </method>
3492
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1233" package="Media Library Assistant">
3493
  <name>pagination</name>
3494
  <full_name>pagination</full_name>
3495
+ <docblock line="1225">
3496
  <description><![CDATA[Display the pagination, adding view, search and filter arguments]]></description>
3497
  <long-description><![CDATA[]]></long-description>
3498
+ <tag line="1225" name="since" description="1.42"/>
3499
+ <tag line="1225" name="param" description="'top' | 'bottom'" type="string" variable="$which">
3500
  <type by_reference="false">string</type>
3501
  </tag>
3502
+ <tag line="1225" name="return" description="" type="void">
3503
  <type by_reference="false">void</type>
3504
  </tag>
3505
  </docblock>
3506
+ <argument line="1233">
3507
  <name>$which</name>
3508
  <default><![CDATA[]]></default>
3509
  <type/>
3510
  </argument>
3511
  </method>
3512
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1247" package="Media Library Assistant">
3513
  <name>get_columns</name>
3514
  <full_name>get_columns</full_name>
3515
+ <docblock line="1240">
3516
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
3517
  <long-description><![CDATA[]]></long-description>
3518
+ <tag line="1240" name="since" description="0.1"/>
3519
+ <tag line="1240" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
3520
  <type by_reference="false">array</type>
3521
  </tag>
3522
  </docblock>
3523
  </method>
3524
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1259" package="Media Library Assistant">
3525
  <name>get_hidden_columns</name>
3526
  <full_name>get_hidden_columns</full_name>
3527
+ <docblock line="1251">
3528
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
3529
  from default values if the option is not set]]></description>
3530
  <long-description><![CDATA[]]></long-description>
3531
+ <tag line="1251" name="since" description="0.1"/>
3532
+ <tag line="1251" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
3533
  <type by_reference="false">array</type>
3534
  </tag>
3535
  </docblock>
3536
  </method>
3537
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1279" package="Media Library Assistant">
3538
  <name>get_sortable_columns</name>
3539
  <full_name>get_sortable_columns</full_name>
3540
+ <docblock line="1269">
3541
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
3542
  and the value is db column to sort by.]]></description>
3543
  <long-description><![CDATA[<p>Also notes the current sort column,
3544
  if set.</p>]]></long-description>
3545
+ <tag line="1269" name="since" description="0.1"/>
3546
+ <tag line="1269" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
3547
  <type by_reference="false">array</type>
3548
  </tag>
3549
  </docblock>
3550
  </method>
3551
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1305" package="Media Library Assistant">
3552
  <name>print_column_headers</name>
3553
  <full_name>print_column_headers</full_name>
3554
+ <docblock line="1298">
3555
  <description><![CDATA[Print column headers, adding view, search and filter arguments]]></description>
3556
  <long-description><![CDATA[]]></long-description>
3557
+ <tag line="1298" name="since" description="1.42"/>
3558
+ <tag line="1298" name="param" description="Whether to set the id attribute or not" type="bool" variable="$with_id">
3559
  <type by_reference="false">bool</type>
3560
  </tag>
3561
  </docblock>
3562
+ <argument line="1305">
3563
  <name>$with_id</name>
3564
  <default><![CDATA[true]]></default>
3565
  <type/>
3566
  </argument>
3567
  </method>
3568
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1322" package="Media Library Assistant">
3569
  <name>_get_view</name>
3570
  <full_name>_get_view</full_name>
3571
+ <docblock line="1312">
3572
  <description><![CDATA[Returns HTML markup for one view that can be used with this table]]></description>
3573
  <long-description><![CDATA[]]></long-description>
3574
+ <tag line="1312" name="since" description="1.40"/>
3575
+ <tag line="1312" name="param" description="View slug, key to MLA_POST_MIME_TYPES array" type="string" variable="$view_slug">
3576
  <type by_reference="false">string</type>
3577
  </tag>
3578
+ <tag line="1312" name="param" description="Slug for current view" type="string" variable="$current_view">
3579
  <type by_reference="false">string</type>
3580
  </tag>
3581
+ <tag line="1312" name="return" description="| false HTML for link to display the view, false if count = zero" type="string">
3582
  <type by_reference="false">string</type>
3583
  </tag>
3584
  </docblock>
3585
+ <argument line="1322">
3586
  <name>$view_slug</name>
3587
  <default><![CDATA[]]></default>
3588
  <type/>
3589
  </argument>
3590
+ <argument line="1322">
3591
  <name>$current_view</name>
3592
  <default><![CDATA[]]></default>
3593
  <type/>
3594
  </argument>
3595
  </method>
3596
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1448" package="Media Library Assistant">
3597
  <name>get_views</name>
3598
  <full_name>get_views</full_name>
3599
+ <docblock line="1440">
3600
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
3601
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
3602
+ <tag line="1440" name="since" description="0.1"/>
3603
+ <tag line="1440" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
3604
  <type by_reference="false">array</type>
3605
  </tag>
3606
  </docblock>
3607
  </method>
3608
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1499" package="Media Library Assistant">
3609
  <name>get_bulk_actions</name>
3610
  <full_name>get_bulk_actions</full_name>
3611
+ <docblock line="1491">
3612
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
3613
  of bulk actions available on this table.]]></description>
3614
  <long-description><![CDATA[]]></long-description>
3615
+ <tag line="1491" name="since" description="0.1"/>
3616
+ <tag line="1491" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
3617
  <type by_reference="false">array</type>
3618
  </tag>
3619
  </docblock>
3620
  </method>
3621
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1529" package="Media Library Assistant">
3622
  <name>extra_tablenav</name>
3623
  <full_name>extra_tablenav</full_name>
3624
+ <docblock line="1518">
3625
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
3626
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
3627
+ <tag line="1518" name="since" description="0.1"/>
3628
+ <tag line="1518" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
3629
  <type by_reference="false">string</type>
3630
  </tag>
3631
+ <tag line="1518" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
3632
  <type by_reference="false">array</type>
3633
  </tag>
3634
  </docblock>
3635
+ <argument line="1529">
3636
  <name>$which</name>
3637
  <default><![CDATA[]]></default>
3638
  <type/>
3639
  </argument>
3640
  </method>
3641
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1565" package="Media Library Assistant">
3642
  <name>prepare_items</name>
3643
  <full_name>prepare_items</full_name>
3644
+ <docblock line="1553">
3645
  <description><![CDATA[Prepares the list of items for displaying]]></description>
3646
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
3647
  be used to query the database, sort and filter the data, and generally
3648
  get it ready to be displayed. At a minimum, we should set $this->items and
3649
  $this->set_pagination_args().</p>]]></long-description>
3650
+ <tag line="1553" name="since" description="0.1"/>
3651
+ <tag line="1553" name="return" description="" type="void">
3652
  <type by_reference="false">void</type>
3653
  </tag>
3654
  </docblock>
3655
  </method>
3656
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1612" package="Media Library Assistant">
3657
  <name>single_row</name>
3658
  <full_name>single_row</full_name>
3659
+ <docblock line="1603">
3660
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
3661
  <long-description><![CDATA[]]></long-description>
3662
+ <tag line="1603" name="since" description=".20"/>
3663
+ <tag line="1603" name="param" description="the current item" type="object" variable="$item">
3664
  <type by_reference="false">object</type>
3665
  </tag>
3666
+ <tag line="1603" name="return" description="Echoes the row HTML" type="void">
3667
  <type by_reference="false">void</type>
3668
  </tag>
3669
  </docblock>
3670
+ <argument line="1612">
3671
  <name>$item</name>
3672
  <default><![CDATA[]]></default>
3673
  <type/>
3675
  </method>
3676
  </class>
3677
  </file>
3678
+ <file path="includes\class-mla-main.php" hash="e37573424fbee24039a0b5512b07514f" package="Media Library Assistant">
3679
  <docblock line="2">
3680
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
3681
  <long-description><![CDATA[]]></long-description>
3699
  <constant namespace="global" line="32" package="Media Library Assistant">
3700
  <name>CURRENT_MLA_VERSION</name>
3701
  <full_name>CURRENT_MLA_VERSION</full_name>
3702
+ <value><![CDATA['1.80']]></value>
3703
  <docblock line="25">
3704
  <description><![CDATA[Current version number]]></description>
3705
  <long-description><![CDATA[]]></long-description>
4121
  <type/>
4122
  </argument>
4123
  </method>
4124
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="694" package="Media Library Assistant">
4125
+ <name>_process_bulk_value</name>
4126
+ <full_name>_process_bulk_value</full_name>
4127
+ <docblock line="684">
4128
+ <description><![CDATA[Process bulk edit area fields, which may contain a Content Template]]></description>
4129
+ <long-description><![CDATA[]]></long-description>
4130
+ <tag line="684" name="since" description="1.80"/>
4131
+ <tag line="684" name="param" description="Current post ID" type="integer" variable="$post_id">
4132
+ <type by_reference="false">integer</type>
4133
+ </tag>
4134
+ <tag line="684" name="param" description="Field value as entered" type="string" variable="$bulk_value">
4135
+ <type by_reference="false">string</type>
4136
+ </tag>
4137
+ <tag line="684" name="return" description="Empty, or new value for the field" type="string">
4138
+ <type by_reference="false">string</type>
4139
+ </tag>
4140
+ </docblock>
4141
+ <argument line="694">
4142
+ <name>$post_id</name>
4143
+ <default><![CDATA[]]></default>
4144
+ <type/>
4145
+ </argument>
4146
+ <argument line="694">
4147
+ <name>$bulk_value</name>
4148
+ <default><![CDATA[]]></default>
4149
+ <type/>
4150
+ </argument>
4151
+ </method>
4152
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="725" package="Media Library Assistant">
4153
  <name>mla_render_admin_page</name>
4154
  <full_name>mla_render_admin_page</full_name>
4155
+ <docblock line="718">
4156
  <description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
4157
  <long-description><![CDATA[]]></long-description>
4158
+ <tag line="718" name="since" description="0.1"/>
4159
+ <tag line="718" name="return" description="" type="void">
4160
  <type by_reference="false">void</type>
4161
  </tag>
4162
  </docblock>
4163
  </method>
4164
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1206" package="Media Library Assistant">
4165
  <name>mla_inline_edit_action</name>
4166
  <full_name>mla_inline_edit_action</full_name>
4167
+ <docblock line="1197">
4168
  <description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
4169
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
4170
+ <tag line="1197" name="since" description="0.20"/>
4171
+ <tag line="1197" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
4172
  <type by_reference="false">void</type>
4173
  </tag>
4174
  </docblock>
4175
  </method>
4176
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1305" package="Media Library Assistant">
4177
  <name>_build_inline_edit_form</name>
4178
  <full_name>_build_inline_edit_form</full_name>
4179
+ <docblock line="1294">
4180
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
4181
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
4182
+ <tag line="1294" name="since" description="0.20"/>
4183
+ <tag line="1294" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
4184
  <type by_reference="false">object</type>
4185
  </tag>
4186
+ <tag line="1294" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
4187
  <type by_reference="false">string</type>
4188
  </tag>
4189
  </docblock>
4190
+ <argument line="1305">
4191
  <name>$MLAListTable</name>
4192
  <default><![CDATA[]]></default>
4193
  <type/>
4194
  </argument>
4195
  </method>
4196
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1489" package="Media Library Assistant">
4197
  <name>_authors_dropdown</name>
4198
  <full_name>_authors_dropdown</full_name>
4199
+ <docblock line="1478">
4200
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
4201
  <long-description><![CDATA[]]></long-description>
4202
+ <tag line="1478" name="since" description="0.20"/>
4203
+ <tag line="1478" name="param" description="Optional User ID of the current author, default 0" type="integer" variable="$author">
4204
  <type by_reference="false">integer</type>
4205
  </tag>
4206
+ <tag line="1478" name="param" description="Optional HTML name attribute, default 'post_author'" type="string" variable="$name">
4207
  <type by_reference="false">string</type>
4208
  </tag>
4209
+ <tag line="1478" name="param" description="Optional HTML class attribute, default 'authors'" type="string" variable="$class">
4210
  <type by_reference="false">string</type>
4211
  </tag>
4212
+ <tag line="1478" name="return" description="HTML markup for the dropdown field or False" type="string|false">
4213
  <type by_reference="false">string</type>
4214
  <type by_reference="false">false</type>
4215
  </tag>
4216
  </docblock>
4217
+ <argument line="1489">
4218
  <name>$author</name>
4219
  <default><![CDATA[0]]></default>
4220
  <type/>
4221
  </argument>
4222
+ <argument line="1489">
4223
  <name>$name</name>
4224
  <default><![CDATA['post_author']]></default>
4225
  <type/>
4226
  </argument>
4227
+ <argument line="1489">
4228
  <name>$class</name>
4229
  <default><![CDATA['authors']]></default>
4230
  <type/>
4231
  </argument>
4232
  </method>
4233
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1523" package="Media Library Assistant">
4234
  <name>_current_bulk_action</name>
4235
  <full_name>_current_bulk_action</full_name>
4236
+ <docblock line="1516">
4237
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
4238
  <long-description><![CDATA[]]></long-description>
4239
+ <tag line="1516" name="since" description="0.1"/>
4240
+ <tag line="1516" name="return" description="The action name or False if no action was selected" type="string|false">
4241
  <type by_reference="false">string</type>
4242
  <type by_reference="false">false</type>
4243
  </tag>
4244
  </docblock>
4245
  </method>
4246
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1554" package="Media Library Assistant">
4247
  <name>_delete_single_item</name>
4248
  <full_name>_delete_single_item</full_name>
4249
+ <docblock line="1545">
4250
  <description><![CDATA[Delete a single item permanently]]></description>
4251
  <long-description><![CDATA[]]></long-description>
4252
+ <tag line="1545" name="since" description="0.1"/>
4253
+ <tag line="1545" name="param" description="The form POST data" type="array" variable="$post_id">
4254
  <type by_reference="false">array</type>
4255
  </tag>
4256
+ <tag line="1545" name="return" description="success/failure message and NULL content" type="array">
4257
  <type by_reference="false">array</type>
4258
  </tag>
4259
  </docblock>
4260
+ <argument line="1554">
4261
  <name>$post_id</name>
4262
  <default><![CDATA[]]></default>
4263
  <type/>
4264
  </argument>
4265
  </method>
4266
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1589" package="Media Library Assistant">
4267
  <name>_display_single_item</name>
4268
  <full_name>_display_single_item</full_name>
4269
+ <docblock line="1577">
4270
  <description><![CDATA[Display a single item sub page; prepare the form to
4271
  change the meta data for a single attachment.]]></description>
4272
  <long-description><![CDATA[<p>This function is not used in WordPress 3.5 and later.</p>]]></long-description>
4273
+ <tag line="1577" name="since" description="0.1"/>
4274
+ <tag line="1577" name="param" description="The WordPress Post ID of the attachment item" type="int" variable="$post_id">
4275
  <type by_reference="false">int</type>
4276
  </tag>
4277
+ <tag line="1577" name="return" description="message and/or HTML content" type="array">
4278
  <type by_reference="false">array</type>
4279
  </tag>
4280
  </docblock>
4281
+ <argument line="1589">
4282
  <name>$post_id</name>
4283
  <default><![CDATA[]]></default>
4284
  <type/>
4285
  </argument>
4286
  </method>
4287
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1870" package="Media Library Assistant">
4288
  <name>_restore_single_item</name>
4289
  <full_name>_restore_single_item</full_name>
4290
+ <docblock line="1861">
4291
  <description><![CDATA[Restore a single item from the Trash]]></description>
4292
  <long-description><![CDATA[]]></long-description>
4293
+ <tag line="1861" name="since" description="0.1"/>
4294
+ <tag line="1861" name="param" description="The form POST data" type="array" variable="$post_id">
4295
  <type by_reference="false">array</type>
4296
  </tag>
4297
+ <tag line="1861" name="return" description="success/failure message and NULL content" type="array">
4298
  <type by_reference="false">array</type>
4299
  </tag>
4300
  </docblock>
4301
+ <argument line="1870">
4302
  <name>$post_id</name>
4303
  <default><![CDATA[]]></default>
4304
  <type/>
4305
  </argument>
4306
  </method>
4307
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1910" package="Media Library Assistant">
4308
  <name>_trash_single_item</name>
4309
  <full_name>_trash_single_item</full_name>
4310
+ <docblock line="1901">
4311
  <description><![CDATA[Move a single item to Trash]]></description>
4312
  <long-description><![CDATA[]]></long-description>
4313
+ <tag line="1901" name="since" description="0.1"/>
4314
+ <tag line="1901" name="param" description="The form POST data" type="array" variable="$post_id">
4315
  <type by_reference="false">array</type>
4316
  </tag>
4317
+ <tag line="1901" name="return" description="success/failure message and NULL content" type="array">
4318
  <type by_reference="false">array</type>
4319
  </tag>
4320
  </docblock>
4321
+ <argument line="1910">
4322
  <name>$post_id</name>
4323
  <default><![CDATA[]]></default>
4324
  <type/>
4326
  </method>
4327
  </class>
4328
  </file>
4329
+ <file path="includes\class-mla-media-modal.php" hash="87faaf37af52dbcbf0723a118b9d02c7" package="Media Library Assistant">
4330
  <docblock line="2">
4331
  <description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
4332
  <long-description><![CDATA[]]></long-description>
4333
  <tag line="2" name="package" description="Media Library Assistant"/>
4334
  <tag line="2" name="since" description="1.20"/>
4335
  </docblock>
4336
+ <include line="500" type="Require Once" package="Media Library Assistant">
4337
+ <name/>
4338
+ </include>
4339
  <class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
4340
  <extends/>
4341
  <name>MLAModal</name>
4385
  </tag>
4386
  </docblock>
4387
  </constant>
4388
+ <constant namespace="global" line="50" package="Media Library Assistant">
4389
+ <name>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</name>
4390
+ <full_name>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</full_name>
4391
+ <value><![CDATA['mla-query-attachments']]></value>
4392
+ <docblock line="43">
4393
+ <description><![CDATA[Slug for the "query attachments" action - Add Media and related dialogs]]></description>
4394
+ <long-description><![CDATA[]]></long-description>
4395
+ <tag line="43" name="since" description="1.80"/>
4396
+ <tag line="43" name="var" description="" type="string">
4397
+ <type by_reference="false">string</type>
4398
+ </tag>
4399
+ </docblock>
4400
+ </constant>
4401
+ <constant namespace="global" line="59" package="Media Library Assistant">
4402
+ <name>JAVASCRIPT_FILL_COMPAT_ACTION</name>
4403
+ <full_name>JAVASCRIPT_FILL_COMPAT_ACTION</full_name>
4404
+ <value><![CDATA['mla-fill-compat-fields']]></value>
4405
+ <docblock line="52">
4406
+ <description><![CDATA[Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs]]></description>
4407
+ <long-description><![CDATA[]]></long-description>
4408
+ <tag line="52" name="since" description="1.80"/>
4409
+ <tag line="52" name="var" description="" type="string">
4410
+ <type by_reference="false">string</type>
4411
+ </tag>
4412
+ </docblock>
4413
+ </constant>
4414
+ <constant namespace="global" line="68" package="Media Library Assistant">
4415
+ <name>JAVASCRIPT_UPDATE_COMPAT_ACTION</name>
4416
+ <full_name>JAVASCRIPT_UPDATE_COMPAT_ACTION</full_name>
4417
+ <value><![CDATA['mla-update-compat-fields']]></value>
4418
+ <docblock line="61">
4419
+ <description><![CDATA[Slug for the "update compat-attachment-fields" action - Add Media and related dialogs]]></description>
4420
+ <long-description><![CDATA[]]></long-description>
4421
+ <tag line="61" name="since" description="1.80"/>
4422
+ <tag line="61" name="var" description="" type="string">
4423
+ <type by_reference="false">string</type>
4424
+ </tag>
4425
+ </docblock>
4426
+ </constant>
4427
+ <property final="false" static="true" visibility="private" line="131" namespace="global" package="Media Library Assistant">
4428
  <name>$media_item_args</name>
4429
  <default><![CDATA[array('errors' => null, 'in_modal' => false)]]></default>
4430
+ <docblock line="124">
4431
  <description><![CDATA[The get_media_item_args array]]></description>
4432
  <long-description><![CDATA[]]></long-description>
4433
+ <tag line="124" name="since" description="1.71"/>
4434
+ <tag line="124" name="var" description="( 'errors' =&gt; array of strings, 'in_modal =&gt; boolean )" type="array">
4435
  <type by_reference="false">array</type>
4436
  </tag>
4437
  </docblock>
4438
  </property>
4439
+ <property final="false" static="true" visibility="private" line="353" namespace="global" package="Media Library Assistant">
4440
  <name>$mla_media_modal_settings</name>
4441
+ <default><![CDATA[array('ajaxQueryAttachmentsAction' => self::JAVASCRIPT_QUERY_ATTACHMENTS_ACTION, 'ajaxFillCompatAction' => self::JAVASCRIPT_FILL_COMPAT_ACTION, 'ajaxUpdateCompatAction' => self::JAVASCRIPT_UPDATE_COMPAT_ACTION, 'ajaxFillCompatNonce' => '', 'ajaxUpdateCompatNonce' => '', 'enableMimeTypes' => false, 'enableMonthsDropdown' => false, 'enableTermsDropdown' => false, 'enableSearchBox' => false, 'enableDetailsCategory' => false, 'enableDetailsTag' => false, 'mimeTypes' => '', 'months' => '', 'termsClass' => array(), 'termsValue' => array(), 'termsText' => array(), 'searchValue' => '', 'searchFields' => array('title', 'content'), 'searchConnector' => 'AND')]]></default>
4442
+ <docblock line="345">
4443
  <description><![CDATA[Share the settings values between mla_media_view_settings_filter
4444
  and mla_print_media_templates_action]]></description>
4445
  <long-description><![CDATA[]]></long-description>
4446
+ <tag line="345" name="since" description="1.20"/>
4447
+ <tag line="345" name="var" description="" type="array">
4448
  <type by_reference="false">array</type>
4449
  </tag>
4450
  </docblock>
4451
  </property>
4452
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="77" package="Media Library Assistant">
4453
  <name>initialize</name>
4454
  <full_name>initialize</full_name>
4455
+ <docblock line="70">
4456
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
4457
  <long-description><![CDATA[]]></long-description>
4458
+ <tag line="70" name="since" description="1.20"/>
4459
+ <tag line="70" name="return" description="" type="void">
4460
  <type by_reference="false">void</type>
4461
  </tag>
4462
  </docblock>
4463
  </method>
4464
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="119" package="Media Library Assistant">
4465
  <name>mla_get_media_item_args_filter</name>
4466
  <full_name>mla_get_media_item_args_filter</full_name>
4467
+ <docblock line="108">
4468
  <description><![CDATA[Saves the get_media_item_args array for the attachment_fields_to_edit filter]]></description>
4469
  <long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
4470
+ <tag line="108" name="since" description="1.71"/>
4471
+ <tag line="108" name="param" description="arguments for the get_media_item function in /wp-admin/includes/media.php" type="array" variable="$args">
4472
  <type by_reference="false">array</type>
4473
  </tag>
4474
+ <tag line="108" name="return" description="arguments for the get_media_item function (unchanged)" type="array">
4475
  <type by_reference="false">array</type>
4476
  </tag>
4477
  </docblock>
4478
+ <argument line="119">
4479
  <name>$args</name>
4480
  <default><![CDATA[]]></default>
4481
  <type/>
4482
  </argument>
4483
  </method>
4484
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="150" package="Media Library Assistant">
4485
  <name>mla_attachment_fields_to_edit_filter</name>
4486
  <full_name>mla_attachment_fields_to_edit_filter</full_name>
4487
+ <docblock line="133">
4488
  <description><![CDATA[Add/change custom fields to the Edit Media screen and Modal Window]]></description>
4489
  <long-description><![CDATA[<p>Called from /wp-admin/includes/media.php, function get_compat_media_markup();
4490
  If "get_media_item_args"['in_modal'] => false ) its the Edit Media screen.
4492
  For the Modal Window, $form_fields contains all the "compat-attachment-fields"
4493
  including the taxonomies, which we want to enhance.
4494
  Declared public because it is a filter.</p>]]></long-description>
4495
+ <tag line="133" name="since" description="1.71"/>
4496
+ <tag line="133" name="param" description="descriptors for the &quot;compat-attachment-fields&quot;" type="array" variable="$form_fields">
4497
  <type by_reference="false">array</type>
4498
  </tag>
4499
+ <tag line="133" name="param" description="the post to be edited" type="object" variable="$post">
4500
  <type by_reference="false">object</type>
4501
  </tag>
4502
+ <tag line="133" name="return" description="updated descriptors for the &quot;compat-attachment-fields&quot;" type="array">
4503
  <type by_reference="false">array</type>
4504
  </tag>
4505
  </docblock>
4506
+ <argument line="150">
4507
  <name>$form_fields</name>
4508
  <default><![CDATA[]]></default>
4509
  <type/>
4510
  </argument>
4511
+ <argument line="150">
4512
  <name>$post</name>
4513
  <default><![CDATA[]]></default>
4514
  <type/>
4515
  </argument>
4516
  </method>
4517
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="278" package="Media Library Assistant">
4518
  <name>_months_dropdown</name>
4519
  <full_name>_months_dropdown</full_name>
4520
+ <docblock line="267">
4521
  <description><![CDATA[Display a monthly dropdown for filtering items]]></description>
4522
  <long-description><![CDATA[<p>Adapted from /wp-admin/includes/class-wp-list-table.php function months_dropdown()</p>]]></long-description>
4523
+ <tag line="267" name="since" description="1.20"/>
4524
+ <tag line="267" name="param" description="post_type, e.g., 'attachment'" type="string" variable="$post_type">
4525
  <type by_reference="false">string</type>
4526
  </tag>
4527
+ <tag line="267" name="return" description="( value =&gt; label ) pairs" type="array">
4528
  <type by_reference="false">array</type>
4529
  </tag>
4530
  </docblock>
4531
+ <argument line="278">
4532
  <name>$post_type</name>
4533
  <default><![CDATA[]]></default>
4534
  <type/>
4535
  </argument>
4536
  </method>
4537
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="319" package="Media Library Assistant">
4538
  <name>_terms_options</name>
4539
  <full_name>_terms_options</full_name>
4540
+ <docblock line="310">
4541
  <description><![CDATA[Extract value and text elements from Dropdown HTML option tags]]></description>
4542
  <long-description><![CDATA[]]></long-description>
4543
+ <tag line="310" name="since" description="1.20"/>
4544
+ <tag line="310" name="param" description="HTML markup for taxonomy terms dropdown &lt;select&gt; tag" type="string" variable="$markup">
4545
  <type by_reference="false">string</type>
4546
  </tag>
4547
+ <tag line="310" name="return" description="( value =&gt; label ) pairs" type="array">
4548
  <type by_reference="false">array</type>
4549
  </tag>
4550
  </docblock>
4551
+ <argument line="319">
4552
  <name>$markup</name>
4553
  <default><![CDATA[]]></default>
4554
  <type/>
4555
  </argument>
4556
  </method>
4557
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="386" package="Media Library Assistant">
4558
  <name>mla_media_view_settings_filter</name>
4559
  <full_name>mla_media_view_settings_filter</full_name>
4560
+ <docblock line="375">
4561
  <description><![CDATA[Adds settings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
4562
  <long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
4563
+ <tag line="375" name="since" description="1.20"/>
4564
+ <tag line="375" name="param" description="associative array with setting =&gt; value pairs" type="array" variable="$settings">
4565
  <type by_reference="false">array</type>
4566
  </tag>
4567
+ <tag line="375" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
4568
  <type by_reference="false">object</type>
4569
  </tag>
4570
+ <tag line="375" name="return" description="updated $settings array" type="array">
4571
  <type by_reference="false">array</type>
4572
  </tag>
4573
  </docblock>
4574
+ <argument line="386">
4575
  <name>$settings</name>
4576
  <default><![CDATA[]]></default>
4577
  <type/>
4578
  </argument>
4579
+ <argument line="386">
4580
  <name>$post</name>
4581
  <default><![CDATA[]]></default>
4582
  <type/>
4583
  </argument>
4584
  </method>
4585
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="428" package="Media Library Assistant">
4586
  <name>mla_media_view_strings_filter</name>
4587
  <full_name>mla_media_view_strings_filter</full_name>
4588
+ <docblock line="417">
4589
  <description><![CDATA[Adds strings values to be passed to the Media Manager in /wp-includes/js/media-views.js.]]></description>
4590
  <long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
4591
+ <tag line="417" name="since" description="1.20"/>
4592
+ <tag line="417" name="param" description="associative array with string =&gt; value pairs" type="array" variable="$strings">
4593
  <type by_reference="false">array</type>
4594
  </tag>
4595
+ <tag line="417" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
4596
  <type by_reference="false">object</type>
4597
  </tag>
4598
+ <tag line="417" name="return" description="updated $strings array" type="array">
4599
  <type by_reference="false">array</type>
4600
  </tag>
4601
  </docblock>
4602
+ <argument line="428">
4603
  <name>$strings</name>
4604
  <default><![CDATA[]]></default>
4605
  <type/>
4606
  </argument>
4607
+ <argument line="428">
4608
  <name>$post</name>
4609
  <default><![CDATA[]]></default>
4610
  <type/>
4611
  </argument>
4612
  </method>
4613
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="446" package="Media Library Assistant">
4614
  <name>mla_wp_enqueue_media_action</name>
4615
  <full_name>mla_wp_enqueue_media_action</full_name>
4616
+ <docblock line="438">
4617
  <description><![CDATA[Enqueues the mla-media-modal-scripts.js file, adding it to the Media Manager scripts.]]></description>
4618
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
4619
+ <tag line="438" name="since" description="1.20"/>
4620
+ <tag line="438" name="return" description="" type="void">
4621
  <type by_reference="false">void</type>
4622
  </tag>
4623
  </docblock>
4624
  </method>
4625
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="464" package="Media Library Assistant">
4626
  <name>mla_print_media_templates_action</name>
4627
  <full_name>mla_print_media_templates_action</full_name>
4628
+ <docblock line="456">
4629
  <description><![CDATA[Prints the templates used in the MLA Media Manager enhancements.]]></description>
4630
  <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
4631
+ <tag line="456" name="since" description="1.20"/>
4632
+ <tag line="456" name="return" description="echoes HTML script tags for the templates" type="void">
4633
  <type by_reference="false">void</type>
4634
  </tag>
4635
  </docblock>
4636
  </method>
4637
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="513" package="Media Library Assistant">
4638
+ <name>mla_admin_init_action</name>
4639
+ <full_name>mla_admin_init_action</full_name>
4640
+ <docblock line="503">
4641
  <description><![CDATA[Adjust ajax handler for Media Manager queries]]></description>
4642
+ <long-description><![CDATA[<p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab.
4643
+ Clean up the 'save-attachment-compat' values, removing the taxonomy updates MLS already handled.</p>]]></long-description>
4644
+ <tag line="503" name="since" description="1.20"/>
4645
+ <tag line="503" name="return" description="" type="void">
4646
+ <type by_reference="false">void</type>
4647
+ </tag>
4648
+ </docblock>
4649
+ </method>
4650
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="648" package="Media Library Assistant">
4651
+ <name>mla_fill_compat_fields_action</name>
4652
+ <full_name>mla_fill_compat_fields_action</full_name>
4653
+ <docblock line="639">
4654
+ <description><![CDATA[Ajax handler for Media Manager "fill compat-attachment-fields" queries]]></description>
4655
+ <long-description><![CDATA[<p>Prepares an array of (HTML) taxonomy meta boxes with attachment-specific values.</p>]]></long-description>
4656
+ <tag line="639" name="since" description="1.80"/>
4657
+ <tag line="639" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
4658
  <type by_reference="false">void</type>
4659
  </tag>
4660
  </docblock>
4661
  </method>
4662
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="822" package="Media Library Assistant">
4663
+ <name>mla_update_compat_fields_action</name>
4664
+ <full_name>mla_update_compat_fields_action</full_name>
4665
+ <docblock line="813">
4666
+ <description><![CDATA[Ajax handler for Media Manager "update compat-attachment-fields" queries]]></description>
4667
+ <long-description><![CDATA[<p>Updates one (or more) supported taxonomy and returns updated checkbox or tag/term lists</p>]]></long-description>
4668
+ <tag line="813" name="since" description="1.80"/>
4669
+ <tag line="813" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
4670
+ <type by_reference="false">void</type>
4671
+ </tag>
4672
+ </docblock>
4673
+ </method>
4674
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="896" package="Media Library Assistant">
4675
  <name>mla_query_attachments_action</name>
4676
  <full_name>mla_query_attachments_action</full_name>
4677
+ <docblock line="887">
4678
+ <description><![CDATA[Ajax handler for Media Manager "Query Attachments" queries]]></description>
4679
  <long-description><![CDATA[<p>Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
4680
+ <tag line="887" name="since" description="1.20"/>
4681
+ <tag line="887" name="return" description="passes array of post arrays to wp_send_json_success() for JSON encoding and transmission" type="void">
4682
  <type by_reference="false">void</type>
4683
  </tag>
4684
  </docblock>
4685
  </method>
4686
  </class>
4687
  </file>
4688
+ <file path="includes\class-mla-mime-types.php" hash="e8d3e45f05098910cd1ece032a7653f6" package="Media Library Assistant">
4689
  <docblock line="2">
4690
  <description><![CDATA[Media Library Assistant MIME Type Support]]></description>
4691
  <long-description><![CDATA[]]></long-description>
4788
  </docblock>
4789
  </property>
4790
  <property final="false" static="true" visibility="private" line="1522" namespace="global" package="Media Library Assistant">
4791
+ <name>$mla_upload_mime_descriptions</name>
4792
+ <default><![CDATA[NULL]]></default>
4793
+ <docblock line="1515">
4794
+ <description><![CDATA[In-memory cache of the default Upload MIME Type descriptions]]></description>
4795
+ <long-description><![CDATA[]]></long-description>
4796
+ <tag line="1515" name="since" description="1.80"/>
4797
+ <tag line="1515" name="var" description="extension =&gt; description" type="array">
4798
+ <type by_reference="false">array</type>
4799
+ </tag>
4800
+ </docblock>
4801
+ </property>
4802
+ <property final="false" static="true" visibility="private" line="1531" namespace="global" package="Media Library Assistant">
4803
  <name>$mla_upload_mime_highest_ID</name>
4804
  <default><![CDATA[0]]></default>
4805
+ <docblock line="1524">
4806
  <description><![CDATA[Highest existing Upload MIME Type ID value]]></description>
4807
  <long-description><![CDATA[]]></long-description>
4808
+ <tag line="1524" name="since" description="1.40"/>
4809
+ <tag line="1524" name="var" description="" type="integer">
4810
  <type by_reference="false">integer</type>
4811
  </tag>
4812
  </docblock>
4813
  </property>
4814
+ <property final="false" static="true" visibility="private" line="2335" namespace="global" package="Media Library Assistant">
4815
  <name>$mla_optional_upload_mime_templates</name>
4816
  <default><![CDATA[NULL]]></default>
4817
+ <docblock line="2328">
4818
  <description><![CDATA[In-memory representation of the (read-only) Optional Upload MIME Types]]></description>
4819
  <long-description><![CDATA[]]></long-description>
4820
+ <tag line="2328" name="since" description="1.40"/>
4821
+ <tag line="2328" name="var" description="( ID, slug, mime_type, core_type, mla_type, description )" type="array">
4822
  <type by_reference="false">array</type>
4823
  </tag>
4824
  </docblock>
5569
  <type/>
5570
  </argument>
5571
  </method>
5572
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1540" package="Media Library Assistant">
5573
  <name>_get_core_icon_types</name>
5574
  <full_name>_get_core_icon_types</full_name>
5575
+ <docblock line="1533">
5576
  <description><![CDATA[Assemble the list of icon types without MLA filtering]]></description>
5577
  <long-description><![CDATA[]]></long-description>
5578
+ <tag line="1533" name="since" description="1.40"/>
5579
+ <tag line="1533" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
5580
  <type by_reference="false">boolean</type>
5581
  </tag>
5582
  </docblock>
5583
  </method>
5584
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1578" package="Media Library Assistant">
5585
  <name>_get_current_icon_types</name>
5586
  <full_name>_get_current_icon_types</full_name>
5587
+ <docblock line="1571">
5588
  <description><![CDATA[Assemble the list of icon types with MLA filtering]]></description>
5589
  <long-description><![CDATA[]]></long-description>
5590
+ <tag line="1571" name="since" description="1.40"/>
5591
+ <tag line="1571" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
5592
  <type by_reference="false">boolean</type>
5593
  </tag>
5594
  </docblock>
5595
  </method>
5596
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1631" package="Media Library Assistant">
5597
  <name>mla_get_core_icon_type</name>
5598
  <full_name>mla_get_core_icon_type</full_name>
5599
+ <docblock line="1622">
5600
  <description><![CDATA[Retrieve a standard icon type, i.e., without MLA filtering]]></description>
5601
  <long-description><![CDATA[]]></long-description>
5602
+ <tag line="1622" name="since" description="1.40"/>
5603
+ <tag line="1622" name="param" description="file extension" type="string" variable="$extension">
5604
  <type by_reference="false">string</type>
5605
  </tag>
5606
+ <tag line="1622" name="return" description="icon type for the requested extension; 'default' if extension not found" type="string">
5607
  <type by_reference="false">string</type>
5608
  </tag>
5609
  </docblock>
5610
+ <argument line="1631">
5611
  <name>$extension</name>
5612
  <default><![CDATA[]]></default>
5613
  <type/>
5614
  </argument>
5615
  </method>
5616
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1651" package="Media Library Assistant">
5617
  <name>mla_get_icon_type_image</name>
5618
  <full_name>mla_get_icon_type_image</full_name>
5619
+ <docblock line="1641">
5620
  <description><![CDATA[Get an HTML img element representing an attachment icon]]></description>
5621
  <long-description><![CDATA[]]></long-description>
5622
+ <tag line="1641" name="since" description="1.40"/>
5623
+ <tag line="1641" name="param" description="Icon Type, e.g., audio, video, spreadsheet" type="string" variable="$icon_type">
5624
  <type by_reference="false">string</type>
5625
  </tag>
5626
+ <tag line="1641" name="param" description="( width, height ) optional image size, default (64, 64)." type="array" variable="$size">
5627
  <type by_reference="false">array</type>
5628
  </tag>
5629
+ <tag line="1641" name="return" description="HTML img element or empty string on failure." type="string">
5630
  <type by_reference="false">string</type>
5631
  </tag>
5632
  </docblock>
5633
+ <argument line="1651">
5634
  <name>$icon_type</name>
5635
  <default><![CDATA[]]></default>
5636
  <type/>
5637
  </argument>
5638
+ <argument line="1651">
5639
  <name>$size</name>
5640
  <default><![CDATA[NULL]]></default>
5641
  <type/>
5642
  </argument>
5643
  </method>
5644
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1686" package="Media Library Assistant">
5645
  <name>mla_get_current_icon_types</name>
5646
  <full_name>mla_get_current_icon_types</full_name>
5647
+ <docblock line="1679">
5648
  <description><![CDATA[Get an array of current Icon Type names]]></description>
5649
  <long-description><![CDATA[]]></long-description>
5650
+ <tag line="1679" name="since" description="1.40"/>
5651
+ <tag line="1679" name="return" description="( icon_type ) or false on failure." type="array">
5652
  <type by_reference="false">array</type>
5653
  </tag>
5654
  </docblock>
5655
  </method>
5656
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1702" package="Media Library Assistant">
5657
  <name>_get_upload_mime_templates</name>
5658
  <full_name>_get_upload_mime_templates</full_name>
5659
+ <docblock line="1694">
5660
  <description><![CDATA[Assemble the in-memory representation of the Upload MIME Types]]></description>
5661
  <long-description><![CDATA[]]></long-description>
5662
+ <tag line="1694" name="since" description="1.40"/>
5663
+ <tag line="1694" name="param" description="Force a reload/recalculation of types" type="boolean" variable="$force_refresh">
5664
  <type by_reference="false">boolean</type>
5665
  </tag>
5666
+ <tag line="1694" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
5667
  <type by_reference="false">boolean</type>
5668
  </tag>
5669
  </docblock>
5670
+ <argument line="1702">
5671
  <name>$force_refresh</name>
5672
  <default><![CDATA[false]]></default>
5673
  <type/>
5674
  </argument>
5675
  </method>
5676
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1926" package="Media Library Assistant">
5677
  <name>_put_upload_mime_templates</name>
5678
  <full_name>_put_upload_mime_templates</full_name>
5679
+ <docblock line="1919">
5680
  <description><![CDATA[Store the options portion of the Upload MIME Types]]></description>
5681
  <long-description><![CDATA[]]></long-description>
5682
+ <tag line="1919" name="since" description="1.40"/>
5683
+ <tag line="1919" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
5684
  <type by_reference="false">boolean</type>
5685
  </tag>
5686
  </docblock>
5687
  </method>
5688
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1961" package="Media Library Assistant">
5689
  <name>mla_add_upload_mime</name>
5690
  <full_name>mla_add_upload_mime</full_name>
5691
+ <docblock line="1952">
5692
  <description><![CDATA[Add an MLA Upload MIME Type object]]></description>
5693
  <long-description><![CDATA[]]></long-description>
5694
+ <tag line="1952" name="since" description="1.40"/>
5695
+ <tag line="1952" name="param" description="Query variables for a single object, including slug" type="array" variable="$request">
5696
  <type by_reference="false">array</type>
5697
  </tag>
5698
+ <tag line="1952" name="return" description="Message(s) reflecting the results of the operation" type="array">
5699
  <type by_reference="false">array</type>
5700
  </tag>
5701
  </docblock>
5702
+ <argument line="1961">
5703
  <name>$request</name>
5704
  <default><![CDATA[]]></default>
5705
  <type/>
5706
  </argument>
5707
  </method>
5708
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2060" package="Media Library Assistant">
5709
  <name>mla_update_upload_mime</name>
5710
  <full_name>mla_update_upload_mime</full_name>
5711
+ <docblock line="2051">
5712
  <description><![CDATA[Update an MLA Upload MIME Type object]]></description>
5713
  <long-description><![CDATA[]]></long-description>
5714
+ <tag line="2051" name="since" description="1.40"/>
5715
+ <tag line="2051" name="param" description="Query variables for new object values, including optional original_slug" type="array" variable="$request">
5716
  <type by_reference="false">array</type>
5717
  </tag>
5718
+ <tag line="2051" name="return" description="Message(s) reflecting the results of the operation" type="array">
5719
  <type by_reference="false">array</type>
5720
  </tag>
5721
  </docblock>
5722
+ <argument line="2060">
5723
  <name>$request</name>
5724
+ <default><![CDATA[NULL]]></default>
5725
  <type/>
5726
  </argument>
5727
  </method>
5728
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2249" package="Media Library Assistant">
5729
  <name>mla_get_upload_mime_slug</name>
5730
  <full_name>mla_get_upload_mime_slug</full_name>
5731
+ <docblock line="2240">
5732
  <description><![CDATA[Retrieve an MLA Upload MIME Type slug given a post_ID]]></description>
5733
  <long-description><![CDATA[]]></long-description>
5734
+ <tag line="2240" name="since" description="1.40"/>
5735
+ <tag line="2240" name="param" description="MLA Upload MIME Type post_ID" type="integer" variable="$post_ID">
5736
  <type by_reference="false">integer</type>
5737
  </tag>
5738
+ <tag line="2240" name="return" description="string with slug of the requested object; false if object not found" type="mixed">
5739
  <type by_reference="false">mixed</type>
5740
  </tag>
5741
  </docblock>
5742
+ <argument line="2249">
5743
  <name>$post_ID</name>
5744
  <default><![CDATA[]]></default>
5745
  <type/>
5746
  </argument>
5747
  </method>
5748
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2270" package="Media Library Assistant">
5749
  <name>mla_get_upload_mime</name>
5750
  <full_name>mla_get_upload_mime</full_name>
5751
+ <docblock line="2261">
5752
  <description><![CDATA[Retrieve an MLA Upload MIME Type object]]></description>
5753
  <long-description><![CDATA[]]></long-description>
5754
+ <tag line="2261" name="since" description="1.40"/>
5755
+ <tag line="2261" name="param" description="MLA Upload MIME Type slug" type="string" variable="$slug">
5756
  <type by_reference="false">string</type>
5757
  </tag>
5758
+ <tag line="2261" name="return" description="Array of elements, including slug, for the requested object; false if object not found" type="mixed">
5759
  <type by_reference="false">mixed</type>
5760
  </tag>
5761
  </docblock>
5762
+ <argument line="2270">
5763
  <name>$slug</name>
5764
  <default><![CDATA[]]></default>
5765
  <type/>
5766
  </argument>
5767
  </method>
5768
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2291" package="Media Library Assistant">
5769
  <name>mla_delete_upload_mime</name>
5770
  <full_name>mla_delete_upload_mime</full_name>
5771
+ <docblock line="2282">
5772
  <description><![CDATA[Delete an MLA Upload MIME Type object]]></description>
5773
  <long-description><![CDATA[]]></long-description>
5774
+ <tag line="2282" name="since" description="1.40"/>
5775
+ <tag line="2282" name="param" description="MLA Upload MIME Type slug" type="string" variable="$slug">
5776
  <type by_reference="false">string</type>
5777
  </tag>
5778
+ <tag line="2282" name="return" description="Message(s) reflecting the results of the operation" type="array">
5779
  <type by_reference="false">array</type>
5780
  </tag>
5781
  </docblock>
5782
+ <argument line="2291">
5783
  <name>$slug</name>
5784
  <default><![CDATA[]]></default>
5785
  <type/>
5786
  </argument>
5787
  </method>
5788
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2348" package="Media Library Assistant">
5789
  <name>_prepare_optional_upload_items_query</name>
5790
  <full_name>_prepare_optional_upload_items_query</full_name>
5791
+ <docblock line="2337">
5792
  <description><![CDATA[Sanitize and expand Optional Upload MIME Type query arguments from request variables]]></description>
5793
  <long-description><![CDATA[]]></long-description>
5794
+ <tag line="2337" name="since" description="1.40"/>
5795
+ <tag line="2337" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
5796
  <type by_reference="false">array</type>
5797
  </tag>
5798
+ <tag line="2337" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
5799
  <type by_reference="false">int</type>
5800
  </tag>
5801
+ <tag line="2337" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
5802
  <type by_reference="false">int</type>
5803
  </tag>
5804
+ <tag line="2337" name="return" description="revised arguments suitable for query" type="array">
5805
  <type by_reference="false">array</type>
5806
  </tag>
5807
  </docblock>
5808
+ <argument line="2348">
5809
  <name>$raw_request</name>
5810
  <default><![CDATA[]]></default>
5811
  <type/>
5812
  </argument>
5813
+ <argument line="2348">
5814
  <name>$offset</name>
5815
  <default><![CDATA[0]]></default>
5816
  <type/>
5817
  </argument>
5818
+ <argument line="2348">
5819
  <name>$count</name>
5820
  <default><![CDATA[0]]></default>
5821
  <type/>
5822
  </argument>
5823
  </method>
5824
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2421" package="Media Library Assistant">
5825
  <name>_execute_optional_upload_items_query</name>
5826
  <full_name>_execute_optional_upload_items_query</full_name>
5827
+ <docblock line="2412">
5828
  <description><![CDATA[Execute an Optional Upload MIME Types query]]></description>
5829
  <long-description><![CDATA[]]></long-description>
5830
+ <tag line="2412" name="since" description="1.40"/>
5831
+ <tag line="2412" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
5832
  <type by_reference="false">array</type>
5833
  </tag>
5834
+ <tag line="2412" name="return" description="query results; array of MLA Optional Upload MIME Type objects" type="array">
5835
  <type by_reference="false">array</type>
5836
  </tag>
5837
  </docblock>
5838
+ <argument line="2421">
5839
  <name>$request</name>
5840
  <default><![CDATA[]]></default>
5841
  <type/>
5842
  </argument>
5843
  </method>
5844
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2503" package="Media Library Assistant">
5845
  <name>mla_count_optional_upload_items</name>
5846
  <full_name>mla_count_optional_upload_items</full_name>
5847
+ <docblock line="2494">
5848
  <description><![CDATA[Get the total number of MLA Upload MIME Type objects]]></description>
5849
  <long-description><![CDATA[]]></long-description>
5850
+ <tag line="2494" name="since" description="1.40"/>
5851
+ <tag line="2494" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
5852
  <type by_reference="false">array</type>
5853
  </tag>
5854
+ <tag line="2494" name="return" description="Number of MLA Upload MIME Type objects" type="integer">
5855
  <type by_reference="false">integer</type>
5856
  </tag>
5857
  </docblock>
5858
+ <argument line="2503">
5859
  <name>$request</name>
5860
  <default><![CDATA[]]></default>
5861
  <type/>
5862
  </argument>
5863
  </method>
5864
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2520" package="Media Library Assistant">
5865
  <name>mla_query_optional_upload_items</name>
5866
  <full_name>mla_query_optional_upload_items</full_name>
5867
+ <docblock line="2509">
5868
  <description><![CDATA[Retrieve MLA Upload MIME Type objects for list table display]]></description>
5869
  <long-description><![CDATA[]]></long-description>
5870
+ <tag line="2509" name="since" description="1.40"/>
5871
+ <tag line="2509" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
5872
  <type by_reference="false">array</type>
5873
  </tag>
5874
+ <tag line="2509" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
5875
  <type by_reference="false">int</type>
5876
  </tag>
5877
+ <tag line="2509" name="param" description="number of rows on each page" type="int" variable="$count">
5878
  <type by_reference="false">int</type>
5879
  </tag>
5880
+ <tag line="2509" name="return" description="MLA Upload MIME Type objects" type="array">
5881
  <type by_reference="false">array</type>
5882
  </tag>
5883
  </docblock>
5884
+ <argument line="2520">
5885
  <name>$request</name>
5886
  <default><![CDATA[]]></default>
5887
  <type/>
5888
  </argument>
5889
+ <argument line="2520">
5890
  <name>$offset</name>
5891
  <default><![CDATA[]]></default>
5892
  <type/>
5893
  </argument>
5894
+ <argument line="2520">
5895
  <name>$count</name>
5896
  <default><![CDATA[]]></default>
5897
  <type/>
5898
  </argument>
5899
  </method>
5900
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2533" package="Media Library Assistant">
5901
  <name>_get_optional_upload_mime_templates</name>
5902
  <full_name>_get_optional_upload_mime_templates</full_name>
5903
+ <docblock line="2526">
5904
  <description><![CDATA[Assemble the in-memory representation of the (read-only) Optional Upload MIME Types]]></description>
5905
  <long-description><![CDATA[]]></long-description>
5906
+ <tag line="2526" name="since" description="1.40"/>
5907
+ <tag line="2526" name="return" description="Success (true) or failure (false) of the operation" type="boolean">
5908
  <type by_reference="false">boolean</type>
5909
  </tag>
5910
  </docblock>
5911
  </method>
5912
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2578" package="Media Library Assistant">
5913
  <name>mla_get_optional_upload_mime</name>
5914
  <full_name>mla_get_optional_upload_mime</full_name>
5915
+ <docblock line="2569">
5916
  <description><![CDATA[Retrieve an MLA Optional Upload MIME Type given an ID]]></description>
5917
  <long-description><![CDATA[]]></long-description>
5918
+ <tag line="2569" name="since" description="1.40"/>
5919
+ <tag line="2569" name="param" description="MLA Optional Upload MIME Type ID" type="integer" variable="$ID">
5920
  <type by_reference="false">integer</type>
5921
  </tag>
5922
+ <tag line="2569" name="return" description="the requested object; false if object not found" type="mixed">
5923
  <type by_reference="false">mixed</type>
5924
  </tag>
5925
  </docblock>
5926
+ <argument line="2578">
5927
  <name>$ID</name>
5928
  <default><![CDATA[]]></default>
5929
  <type/>
5931
  </method>
5932
  </class>
5933
  </file>
5934
+ <file path="includes\class-mla-objects.php" hash="ae5e2a31ea6c67d6b4e9a321d5b82bb8" package="Media Library Assistant">
5935
  <docblock line="2">
5936
  <description><![CDATA[Media Library Assistant Custom Taxonomy and Widget objects]]></description>
5937
  <long-description><![CDATA[]]></long-description>
5972
  </tag>
5973
  </docblock>
5974
  </method>
5975
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="112" package="Media Library Assistant">
5976
  <name>mla_taxonomy_get_columns_filter</name>
5977
  <full_name>mla_taxonomy_get_columns_filter</full_name>
5978
+ <docblock line="102">
5979
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
5980
  which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
5981
  <long-description><![CDATA[]]></long-description>
5982
+ <tag line="102" name="since" description="0.30"/>
5983
+ <tag line="102" name="param" description="column definitions for the edit taxonomy list table" type="array" variable="$columns">
5984
  <type by_reference="false">array</type>
5985
  </tag>
5986
+ <tag line="102" name="return" description="updated column definitions for the edit taxonomy list table" type="array">
5987
  <type by_reference="false">array</type>
5988
  </tag>
5989
  </docblock>
5990
+ <argument line="112">
5991
  <name>$columns</name>
5992
  <default><![CDATA[]]></default>
5993
  <type/>
5994
  </argument>
5995
  </method>
5996
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="147" package="Media Library Assistant">
5997
  <name>mla_taxonomy_column_filter</name>
5998
  <full_name>mla_taxonomy_column_filter</full_name>
5999
+ <docblock line="134">
6000
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
6001
  which returns a count of the attachments assigned a given term]]></description>
6002
  <long-description><![CDATA[]]></long-description>
6003
+ <tag line="134" name="since" description="0.30"/>
6004
+ <tag line="134" name="param" description="current column value; always ''" type="string" variable="$place_holder">
6005
  <type by_reference="false">string</type>
6006
  </tag>
6007
+ <tag line="134" name="param" description="name of the column" type="array" variable="$column_name">
6008
  <type by_reference="false">array</type>
6009
  </tag>
6010
+ <tag line="134" name="param" description="ID of the term for which the count is desired" type="array" variable="$term_id">
6011
  <type by_reference="false">array</type>
6012
  </tag>
6013
+ <tag line="134" name="return" description="HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them" type="array">
6014
  <type by_reference="false">array</type>
6015
  </tag>
6016
  </docblock>
6017
+ <argument line="147">
6018
  <name>$place_holder</name>
6019
  <default><![CDATA[]]></default>
6020
  <type/>
6021
  </argument>
6022
+ <argument line="147">
6023
  <name>$column_name</name>
6024
  <default><![CDATA[]]></default>
6025
  <type/>
6026
  </argument>
6027
+ <argument line="147">
6028
  <name>$term_id</name>
6029
  <default><![CDATA[]]></default>
6030
  <type/>
6031
  </argument>
6032
  </method>
6033
  </class>
6034
+ <class final="false" abstract="false" namespace="global" line="216" package="Media Library Assistant">
6035
  <extends>\WP_Widget</extends>
6036
  <name>MLATextWidget</name>
6037
  <full_name>\MLATextWidget</full_name>
6038
+ <docblock line="210">
6039
  <description><![CDATA[Class MLA (Media Library Assistant) Text Widget defines a shortcode-enabled version of the WordPress Text widget]]></description>
6040
  <long-description><![CDATA[]]></long-description>
6041
+ <tag line="210" name="package" description="Media Library Assistant"/>
6042
+ <tag line="210" name="since" description="1.60"/>
6043
  </docblock>
6044
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="225" package="Media Library Assistant">
6045
  <name>__construct</name>
6046
  <full_name>__construct</full_name>
6047
+ <docblock line="218">
6048
  <description><![CDATA[Calls the parent constructor to set some defaults.]]></description>
6049
  <long-description><![CDATA[]]></long-description>
6050
+ <tag line="218" name="since" description="1.60"/>
6051
+ <tag line="218" name="return" description="" type="void">
6052
  <type by_reference="false">void</type>
6053
  </tag>
6054
  </docblock>
6055
  </method>
6056
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="249" package="Media Library Assistant">
6057
  <name>widget</name>
6058
  <full_name>widget</full_name>
6059
+ <docblock line="239">
6060
  <description><![CDATA[Display the widget content - called from the WordPress "front end"]]></description>
6061
  <long-description><![CDATA[]]></long-description>
6062
+ <tag line="239" name="since" description="1.60"/>
6063
+ <tag line="239" name="param" description="Widget arguments" type="array" variable="$args">
6064
  <type by_reference="false">array</type>
6065
  </tag>
6066
+ <tag line="239" name="param" description="Widget definition, from the database" type="array" variable="$instance">
6067
  <type by_reference="false">array</type>
6068
  </tag>
6069
+ <tag line="239" name="return" description="Echoes widget output" type="void">
6070
  <type by_reference="false">void</type>
6071
  </tag>
6072
  </docblock>
6073
+ <argument line="249">
6074
  <name>$args</name>
6075
  <default><![CDATA[]]></default>
6076
  <type/>
6077
  </argument>
6078
+ <argument line="249">
6079
  <name>$instance</name>
6080
  <default><![CDATA[]]></default>
6081
  <type/>
6082
  </argument>
6083
  </method>
6084
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="268" package="Media Library Assistant">
6085
  <name>form</name>
6086
  <full_name>form</full_name>
6087
+ <docblock line="259">
6088
  <description><![CDATA[Echo the "edit widget" form on the Appearance/Widgets admin screen]]></description>
6089
  <long-description><![CDATA[]]></long-description>
6090
+ <tag line="259" name="since" description="1.60"/>
6091
+ <tag line="259" name="param" description="Previous definition values, from the database" type="array" variable="$instance">
6092
  <type by_reference="false">array</type>
6093
  </tag>
6094
+ <tag line="259" name="return" description="Echoes &quot;edit widget&quot; form" type="void">
6095
  <type by_reference="false">void</type>
6096
  </tag>
6097
  </docblock>
6098
+ <argument line="268">
6099
  <name>$instance</name>
6100
  <default><![CDATA[]]></default>
6101
  <type/>
6102
  </argument>
6103
  </method>
6104
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="292" package="Media Library Assistant">
6105
  <name>update</name>
6106
  <full_name>update</full_name>
6107
+ <docblock line="282">
6108
  <description><![CDATA[Sanitize widget definition as it is saved to the database]]></description>
6109
  <long-description><![CDATA[]]></long-description>
6110
+ <tag line="282" name="since" description="1.60"/>
6111
+ <tag line="282" name="param" description="Current definition values, to be saved in the database" type="array" variable="$new_instance">
6112
  <type by_reference="false">array</type>
6113
  </tag>
6114
+ <tag line="282" name="param" description="Previous definition values, from the database" type="array" variable="$old_instance">
6115
  <type by_reference="false">array</type>
6116
  </tag>
6117
+ <tag line="282" name="return" description="Updated definition values to be saved in the database" type="array">
6118
  <type by_reference="false">array</type>
6119
  </tag>
6120
  </docblock>
6121
+ <argument line="292">
6122
  <name>$new_instance</name>
6123
  <default><![CDATA[]]></default>
6124
  <type/>
6125
  </argument>
6126
+ <argument line="292">
6127
  <name>$old_instance</name>
6128
  <default><![CDATA[]]></default>
6129
  <type/>
6130
  </argument>
6131
  </method>
6132
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="314" package="Media Library Assistant">
6133
  <name>mla_text_widget_widgets_init_action</name>
6134
  <full_name>mla_text_widget_widgets_init_action</full_name>
6135
+ <docblock line="305">
6136
  <description><![CDATA[Register the widget with WordPress]]></description>
6137
  <long-description><![CDATA[<p>Defined as public because it's an action.</p>]]></long-description>
6138
+ <tag line="305" name="since" description="1.60"/>
6139
+ <tag line="305" name="return" description="" type="void">
6140
  <type by_reference="false">void</type>
6141
  </tag>
6142
  </docblock>
6143
  </method>
6144
  </class>
6145
  </file>
6146
+ <file path="includes\class-mla-options.php" hash="0ce2be89aa340bcfb8ac5b96ef953e88" package="Media Library Assistant">
6147
  <docblock line="2">
6148
  <description><![CDATA[Manages the plugin option settings]]></description>
6149
  <long-description><![CDATA[]]></long-description>
6150
  <tag line="2" name="package" description="Media Library Assistant"/>
6151
  <tag line="2" name="since" description="1.00"/>
6152
  </docblock>
6153
+ <include line="1627" type="Require" package="Media Library Assistant">
6154
  <name/>
6155
  </include>
6156
  <class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
6219
  </docblock>
6220
  </constant>
6221
  <constant namespace="global" line="52" package="Media Library Assistant">
6222
+ <name>MLA_COUNT_TERM_ATTACHMENTS</name>
6223
+ <full_name>MLA_COUNT_TERM_ATTACHMENTS</full_name>
6224
+ <value><![CDATA['count_term_attachments']]></value>
6225
+ <docblock line="49">
6226
+ <description><![CDATA[Provides a unique name for the taxonomy count Attachments option]]></description>
6227
+ <long-description><![CDATA[]]></long-description>
6228
+ </docblock>
6229
+ </constant>
6230
+ <constant namespace="global" line="57" package="Media Library Assistant">
6231
  <name>MLA_TAXONOMY_SUPPORT</name>
6232
  <full_name>MLA_TAXONOMY_SUPPORT</full_name>
6233
  <value><![CDATA['taxonomy_support']]></value>
6234
+ <docblock line="54">
6235
  <description><![CDATA[Provides a unique name for the taxonomy support option]]></description>
6236
  <long-description><![CDATA[]]></long-description>
6237
  </docblock>
6238
  </constant>
6239
+ <constant namespace="global" line="62" package="Media Library Assistant">
6240
  <name>MLA_SCREEN_PAGE_TITLE</name>
6241
  <full_name>MLA_SCREEN_PAGE_TITLE</full_name>
6242
  <value><![CDATA['admin_screen_page_title']]></value>
6243
+ <docblock line="59">
6244
  <description><![CDATA[Provides a unique name for the admin screen page title option]]></description>
6245
  <long-description><![CDATA[]]></long-description>
6246
  </docblock>
6247
  </constant>
6248
+ <constant namespace="global" line="67" package="Media Library Assistant">
6249
  <name>MLA_SCREEN_MENU_TITLE</name>
6250
  <full_name>MLA_SCREEN_MENU_TITLE</full_name>
6251
  <value><![CDATA['admin_screen_menu_title']]></value>
6252
+ <docblock line="64">
6253
  <description><![CDATA[Provides a unique name for the admin screen menu title option]]></description>
6254
  <long-description><![CDATA[]]></long-description>
6255
  </docblock>
6256
  </constant>
6257
+ <constant namespace="global" line="72" package="Media Library Assistant">
6258
  <name>MLA_SCREEN_ORDER</name>
6259
  <full_name>MLA_SCREEN_ORDER</full_name>
6260
  <value><![CDATA['admin_screen_menu_order']]></value>
6261
+ <docblock line="69">
6262
  <description><![CDATA[Provides a unique name for the admin screen menu order option]]></description>
6263
  <long-description><![CDATA[]]></long-description>
6264
  </docblock>
6265
  </constant>
6266
+ <constant namespace="global" line="77" package="Media Library Assistant">
6267
  <name>MLA_SCREEN_DISPLAY_LIBRARY</name>
6268
  <full_name>MLA_SCREEN_DISPLAY_LIBRARY</full_name>
6269
  <value><![CDATA['admin_screen_display_default']]></value>
6270
+ <docblock line="74">
6271
  <description><![CDATA[Provides a unique name for the admin screen remove Media/Library option]]></description>
6272
  <long-description><![CDATA[]]></long-description>
6273
  </docblock>
6274
  </constant>
6275
+ <constant namespace="global" line="82" package="Media Library Assistant">
6276
  <name>MLA_DEFAULT_ORDERBY</name>
6277
  <full_name>MLA_DEFAULT_ORDERBY</full_name>
6278
  <value><![CDATA['default_orderby']]></value>
6279
+ <docblock line="79">
6280
  <description><![CDATA[Provides a unique name for the default orderby option]]></description>
6281
  <long-description><![CDATA[]]></long-description>
6282
  </docblock>
6283
  </constant>
6284
+ <constant namespace="global" line="87" package="Media Library Assistant">
6285
  <name>MLA_DEFAULT_ORDER</name>
6286
  <full_name>MLA_DEFAULT_ORDER</full_name>
6287
  <value><![CDATA['default_order']]></value>
6288
+ <docblock line="84">
6289
  <description><![CDATA[Provides a unique name for the default order option]]></description>
6290
  <long-description><![CDATA[]]></long-description>
6291
  </docblock>
6292
  </constant>
6293
+ <constant namespace="global" line="92" package="Media Library Assistant">
6294
  <name>MLA_TABLE_VIEWS_WIDTH</name>
6295
  <full_name>MLA_TABLE_VIEWS_WIDTH</full_name>
6296
  <value><![CDATA['table_views_width']]></value>
6297
+ <docblock line="89">
6298
+ <description><![CDATA[Provides a unique name for the Media/Assistant submenu table views width option]]></description>
6299
  <long-description><![CDATA[]]></long-description>
6300
  </docblock>
6301
  </constant>
6302
+ <constant namespace="global" line="97" package="Media Library Assistant">
6303
+ <name>MLA_TABLE_ICON_SIZE</name>
6304
+ <full_name>MLA_TABLE_ICON_SIZE</full_name>
6305
+ <value><![CDATA['table_icon_size']]></value>
6306
+ <docblock line="94">
6307
+ <description><![CDATA[Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option]]></description>
6308
+ <long-description><![CDATA[]]></long-description>
6309
+ </docblock>
6310
+ </constant>
6311
+ <constant namespace="global" line="102" package="Media Library Assistant">
6312
  <name>MLA_TAXONOMY_FILTER_DEPTH</name>
6313
  <full_name>MLA_TAXONOMY_FILTER_DEPTH</full_name>
6314
  <value><![CDATA['taxonomy_filter_depth']]></value>
6315
+ <docblock line="99">
6316
  <description><![CDATA[Provides a unique name for the taxonomy filter maximum depth option]]></description>
6317
  <long-description><![CDATA[]]></long-description>
6318
  </docblock>
6319
  </constant>
6320
+ <constant namespace="global" line="107" package="Media Library Assistant">
6321
  <name>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN</name>
6322
  <full_name>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN</full_name>
6323
  <value><![CDATA['taxonomy_filter_include_children']]></value>
6324
+ <docblock line="104">
6325
  <description><![CDATA[Provides a unique name for the taxonomy filter maximum depth option]]></description>
6326
  <long-description><![CDATA[]]></long-description>
6327
  </docblock>
6328
  </constant>
6329
+ <constant namespace="global" line="112" package="Media Library Assistant">
6330
  <name>MLA_EXIF_SIZE</name>
6331
  <full_name>MLA_EXIF_SIZE</full_name>
6332
  <value><![CDATA[30]]></value>
6333
+ <docblock line="109">
6334
  <description><![CDATA[Provides a "size" attribute value for the EXIF/Template Value field]]></description>
6335
  <long-description><![CDATA[]]></long-description>
6336
  </docblock>
6337
  </constant>
6338
+ <constant namespace="global" line="117" package="Media Library Assistant">
6339
  <name>MLA_NEW_CUSTOM_RULE</name>
6340
  <full_name>MLA_NEW_CUSTOM_RULE</full_name>
6341
  <value><![CDATA['__NEW RULE__']]></value>
6342
+ <docblock line="114">
6343
  <description><![CDATA[Provides a unique name for the Custom Field "new rule" key]]></description>
6344
  <long-description><![CDATA[]]></long-description>
6345
  </docblock>
6346
  </constant>
6347
+ <constant namespace="global" line="122" package="Media Library Assistant">
6348
  <name>MLA_NEW_CUSTOM_FIELD</name>
6349
  <full_name>MLA_NEW_CUSTOM_FIELD</full_name>
6350
  <value><![CDATA['__NEW FIELD__']]></value>
6351
+ <docblock line="119">
6352
  <description><![CDATA[Provides a unique name for the Custom Field "new field" key]]></description>
6353
  <long-description><![CDATA[]]></long-description>
6354
  </docblock>
6355
  </constant>
6356
+ <constant namespace="global" line="127" package="Media Library Assistant">
6357
+ <name>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</name>
6358
+ <full_name>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</full_name>
6359
+ <value><![CDATA['edit_media_search_taxonomy']]></value>
6360
+ <docblock line="124">
6361
+ <description><![CDATA[Provides a unique name for the "searchable taxonomies" option]]></description>
6362
+ <long-description><![CDATA[]]></long-description>
6363
+ </docblock>
6364
+ </constant>
6365
+ <constant namespace="global" line="132" package="Media Library Assistant">
6366
+ <name>MLA_EDIT_MEDIA_META_BOXES</name>
6367
+ <full_name>MLA_EDIT_MEDIA_META_BOXES</full_name>
6368
+ <value><![CDATA['edit_media_meta_boxes']]></value>
6369
+ <docblock line="129">
6370
+ <description><![CDATA[Provides a unique name for the Edit Media additional meta boxes option]]></description>
6371
+ <long-description><![CDATA[]]></long-description>
6372
+ </docblock>
6373
+ </constant>
6374
+ <constant namespace="global" line="138" package="Media Library Assistant">
6375
  <name>MLA_MEDIA_MODAL_TOOLBAR</name>
6376
  <full_name>MLA_MEDIA_MODAL_TOOLBAR</full_name>
6377
  <value><![CDATA['media_modal_toolbar']]></value>
6378
+ <docblock line="134">
6379
+ <description><![CDATA[Provides a unique name for the Media Manager toolbar option, which
6380
+ also controls the ATTACHMENT DETAILS enhancements]]></description>
6381
  <long-description><![CDATA[]]></long-description>
6382
  </docblock>
6383
  </constant>
6384
+ <constant namespace="global" line="143" package="Media Library Assistant">
6385
  <name>MLA_MEDIA_MODAL_MIMETYPES</name>
6386
  <full_name>MLA_MEDIA_MODAL_MIMETYPES</full_name>
6387
  <value><![CDATA['media_modal_mimetypes']]></value>
6388
+ <docblock line="140">
6389
  <description><![CDATA[Provides a unique name for the Media Manager toolbar MIME Types option]]></description>
6390
  <long-description><![CDATA[]]></long-description>
6391
  </docblock>
6392
  </constant>
6393
+ <constant namespace="global" line="148" package="Media Library Assistant">
6394
  <name>MLA_MEDIA_MODAL_MONTHS</name>
6395
  <full_name>MLA_MEDIA_MODAL_MONTHS</full_name>
6396
  <value><![CDATA['media_modal_months']]></value>
6397
+ <docblock line="145">
6398
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Month and Year option]]></description>
6399
  <long-description><![CDATA[]]></long-description>
6400
  </docblock>
6401
  </constant>
6402
+ <constant namespace="global" line="153" package="Media Library Assistant">
6403
  <name>MLA_MEDIA_MODAL_TERMS</name>
6404
  <full_name>MLA_MEDIA_MODAL_TERMS</full_name>
6405
  <value><![CDATA['media_modal_terms']]></value>
6406
+ <docblock line="150">
6407
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy Terms option]]></description>
6408
  <long-description><![CDATA[]]></long-description>
6409
  </docblock>
6410
  </constant>
6411
+ <constant namespace="global" line="158" package="Media Library Assistant">
6412
  <name>MLA_MEDIA_MODAL_SEARCHBOX</name>
6413
  <full_name>MLA_MEDIA_MODAL_SEARCHBOX</full_name>
6414
  <value><![CDATA['media_modal_searchbox']]></value>
6415
+ <docblock line="155">
6416
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box option]]></description>
6417
  <long-description><![CDATA[]]></long-description>
6418
  </docblock>
6419
  </constant>
6420
+ <constant namespace="global" line="164" package="Media Library Assistant">
6421
  <name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</name>
6422
  <full_name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</full_name>
6423
  <value><![CDATA['media_modal_details_category_metabox']]></value>
6424
+ <docblock line="160">
6425
  <description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
6426
  This option is for hierarchical taxonomies, e.g., "Att.]]></description>
6427
  <long-description><![CDATA[<p>Categories".</p>]]></long-description>
6428
  </docblock>
6429
  </constant>
6430
+ <constant namespace="global" line="170" package="Media Library Assistant">
6431
  <name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</name>
6432
  <full_name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</full_name>
6433
  <value><![CDATA['media_modal_details_tag_metabox']]></value>
6434
+ <docblock line="166">
6435
  <description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
6436
  This option is for flat taxonomies, e.g., "Att.]]></description>
6437
  <long-description><![CDATA[<p>Tags".</p>]]></long-description>
6438
  </docblock>
6439
  </constant>
6440
+ <constant namespace="global" line="175" package="Media Library Assistant">
6441
  <name>MLA_MEDIA_MODAL_ORDERBY</name>
6442
  <full_name>MLA_MEDIA_MODAL_ORDERBY</full_name>
6443
  <value><![CDATA['media_modal_orderby']]></value>
6444
+ <docblock line="172">
6445
  <description><![CDATA[Provides a unique name for the Media Manager orderby option]]></description>
6446
  <long-description><![CDATA[]]></long-description>
6447
  </docblock>
6448
  </constant>
6449
+ <constant namespace="global" line="180" package="Media Library Assistant">
6450
  <name>MLA_MEDIA_MODAL_ORDER</name>
6451
  <full_name>MLA_MEDIA_MODAL_ORDER</full_name>
6452
  <value><![CDATA['media_modal_order']]></value>
6453
+ <docblock line="177">
6454
  <description><![CDATA[Provides a unique name for the Media Manager order option]]></description>
6455
  <long-description><![CDATA[]]></long-description>
6456
  </docblock>
6457
  </constant>
6458
+ <constant namespace="global" line="185" package="Media Library Assistant">
6459
  <name>MLA_POST_MIME_TYPES</name>
6460
  <full_name>MLA_POST_MIME_TYPES</full_name>
6461
  <value><![CDATA['post_mime_types']]></value>
6462
+ <docblock line="182">
6463
  <description><![CDATA[Provides a unique name for the Post MIME Types option]]></description>
6464
  <long-description><![CDATA[]]></long-description>
6465
  </docblock>
6466
  </constant>
6467
+ <constant namespace="global" line="190" package="Media Library Assistant">
6468
  <name>MLA_ENABLE_POST_MIME_TYPES</name>
6469
  <full_name>MLA_ENABLE_POST_MIME_TYPES</full_name>
6470
  <value><![CDATA['enable_post_mime_types']]></value>
6471
+ <docblock line="187">
6472
  <description><![CDATA[Provides a unique name for the Enable Post MIME Types option]]></description>
6473
  <long-description><![CDATA[]]></long-description>
6474
  </docblock>
6475
  </constant>
6476
+ <constant namespace="global" line="195" package="Media Library Assistant">
6477
  <name>MLA_UPLOAD_MIMES</name>
6478
  <full_name>MLA_UPLOAD_MIMES</full_name>
6479
  <value><![CDATA['upload_mimes']]></value>
6480
+ <docblock line="192">
6481
  <description><![CDATA[Provides a unique name for the Upload MIME Types option]]></description>
6482
  <long-description><![CDATA[]]></long-description>
6483
  </docblock>
6484
  </constant>
6485
+ <constant namespace="global" line="200" package="Media Library Assistant">
6486
  <name>MLA_ENABLE_UPLOAD_MIMES</name>
6487
  <full_name>MLA_ENABLE_UPLOAD_MIMES</full_name>
6488
  <value><![CDATA['enable_upload_mimes']]></value>
6489
+ <docblock line="197">
6490
  <description><![CDATA[Provides a unique name for the Enable Upload MIME Types option]]></description>
6491
  <long-description><![CDATA[]]></long-description>
6492
  </docblock>
6493
  </constant>
6494
+ <constant namespace="global" line="205" package="Media Library Assistant">
6495
  <name>MLA_ENABLE_MLA_ICONS</name>
6496
  <full_name>MLA_ENABLE_MLA_ICONS</full_name>
6497
  <value><![CDATA['enable_mla_icons']]></value>
6498
+ <docblock line="202">
6499
  <description><![CDATA[Provides a unique name for the Enable MLA Icons option]]></description>
6500
  <long-description><![CDATA[]]></long-description>
6501
  </docblock>
6502
  </constant>
6503
+ <property final="false" static="true" visibility="public" line="216" namespace="global" package="Media Library Assistant">
6504
  <name>$process_featured_in</name>
6505
  <default><![CDATA[true]]></default>
6506
+ <docblock line="207">
6507
  <description><![CDATA[Option setting for "Featured in" reporting]]></description>
6508
  <long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
6509
+ <tag line="207" name="since" description="1.00"/>
6510
+ <tag line="207" name="var" description="" type="boolean">
6511
  <type by_reference="false">boolean</type>
6512
  </tag>
6513
  </docblock>
6514
  </property>
6515
+ <property final="false" static="true" visibility="public" line="227" namespace="global" package="Media Library Assistant">
6516
  <name>$process_inserted_in</name>
6517
  <default><![CDATA[true]]></default>
6518
+ <docblock line="218">
6519
  <description><![CDATA[Option setting for "Inserted in" reporting]]></description>
6520
  <long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
6521
+ <tag line="218" name="since" description="1.00"/>
6522
+ <tag line="218" name="var" description="" type="boolean">
6523
  <type by_reference="false">boolean</type>
6524
  </tag>
6525
  </docblock>
6526
  </property>
6527
+ <property final="false" static="true" visibility="public" line="238" namespace="global" package="Media Library Assistant">
6528
  <name>$process_gallery_in</name>
6529
  <default><![CDATA[true]]></default>
6530
+ <docblock line="229">
6531
  <description><![CDATA[Option setting for "Gallery in" reporting]]></description>
6532
  <long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
6533
+ <tag line="229" name="since" description="1.00"/>
6534
+ <tag line="229" name="var" description="" type="boolean">
6535
  <type by_reference="false">boolean</type>
6536
  </tag>
6537
  </docblock>
6538
  </property>
6539
+ <property final="false" static="true" visibility="public" line="249" namespace="global" package="Media Library Assistant">
6540
  <name>$process_mla_gallery_in</name>
6541
  <default><![CDATA[true]]></default>
6542
+ <docblock line="240">
6543
  <description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
6544
  <long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
6545
+ <tag line="240" name="since" description="1.00"/>
6546
+ <tag line="240" name="var" description="" type="boolean">
6547
  <type by_reference="false">boolean</type>
6548
  </tag>
6549
  </docblock>
6550
  </property>
6551
+ <property final="false" static="true" visibility="public" line="281" namespace="global" package="Media Library Assistant">
6552
  <name>$mla_option_definitions</name>
6553
  <default><![CDATA[array()]]></default>
6554
+ <docblock line="251">
6555
  <description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them]]></description>
6556
  <long-description><![CDATA[<p>The array must be populated at runtime in MLAOptions::mla_localize_option_definitions_array(),
6557
  because Localization calls cannot be placed in the "public static" array definition itself.</p>
6580
  $message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
6581
  </docblock>
6582
  </property>
6583
+ <property final="false" static="true" visibility="private" line="328" namespace="global" package="Media Library Assistant">
6584
  <name>$mla_option_templates</name>
6585
  <default><![CDATA[null]]></default>
6586
+ <docblock line="321">
6587
  <description><![CDATA[Style and Markup templates]]></description>
6588
  <long-description><![CDATA[]]></long-description>
6589
+ <tag line="321" name="since" description="0.80"/>
6590
+ <tag line="321" name="var" description="" type="array">
6591
  <type by_reference="false">array</type>
6592
  </tag>
6593
  </docblock>
6594
  </property>
6595
+ <property final="false" static="true" visibility="private" line="1646" namespace="global" package="Media Library Assistant">
6596
  <name>$add_attachment_id</name>
6597
  <default><![CDATA[0]]></default>
6598
+ <docblock line="1636">
6599
  <description><![CDATA[Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter]]></description>
6600
  <long-description><![CDATA[<p>Ensures that IPTC/EXIF and Custom Field mapping is only performed when the attachment is first
6601
  added to the Media Library.</p>]]></long-description>
6602
+ <tag line="1636" name="since" description="1.70"/>
6603
+ <tag line="1636" name="var" description="" type="integer">
6604
  <type by_reference="false">integer</type>
6605
  </tag>
6606
  </docblock>
6607
  </property>
6608
+ <property final="false" static="true" visibility="private" line="2602" namespace="global" package="Media Library Assistant">
6609
  <name>$custom_field_data_sources</name>
6610
  <default><![CDATA[array('absolute_path', 'absolute_file_name', 'base_file', 'path', 'file_name', 'name_only', 'extension', 'file_size', 'upload_date', 'mime_type', 'dimensions', 'pixels', 'width', 'height', 'orientation', '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', 'parent_date', 'parent_type', 'parent_title', 'parent_issues', 'reference_issues', 'featured_in', 'featured_in_title', 'inserted_in', 'inserted_in_title', 'gallery_in', 'gallery_in_title', 'mla_gallery_in', 'mla_gallery_in_title', 'aperture', 'credit', 'camera', 'caption', 'created_timestamp', 'copyright', 'focal_length', 'iso', 'shutter_speed', 'title')]]></default>
6611
+ <docblock line="2595">
6612
  <description><![CDATA[Array of Data Source names for custom field mapping]]></description>
6613
  <long-description><![CDATA[]]></long-description>
6614
+ <tag line="2595" name="since" description="1.10"/>
6615
+ <tag line="2595" name="var" description="" type="array">
6616
  <type by_reference="false">array</type>
6617
  </tag>
6618
  </docblock>
6619
  </property>
6620
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="290" package="Media Library Assistant">
6621
  <name>initialize</name>
6622
  <full_name>initialize</full_name>
6623
+ <docblock line="283">
6624
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
6625
  <long-description><![CDATA[]]></long-description>
6626
+ <tag line="283" name="since" description="1.00"/>
6627
+ <tag line="283" name="return" description="" type="void">
6628
  <type by_reference="false">void</type>
6629
  </tag>
6630
  </docblock>
6631
  </method>
6632
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="337" package="Media Library Assistant">
6633
  <name>_load_option_templates</name>
6634
  <full_name>_load_option_templates</full_name>
6635
+ <docblock line="330">
6636
  <description><![CDATA[Load style and markup templates to $mla_templates]]></description>
6637
  <long-description><![CDATA[]]></long-description>
6638
+ <tag line="330" name="since" description="0.80"/>
6639
+ <tag line="330" name="return" description="" type="void">
6640
  <type by_reference="false">void</type>
6641
  </tag>
6642
  </docblock>
6643
  </method>
6644
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="384" package="Media Library Assistant">
6645
  <name>mla_localize_option_definitions_array</name>
6646
  <full_name>mla_localize_option_definitions_array</full_name>
6647
+ <docblock line="374">
6648
  <description><![CDATA[Localize $mla_option_definitions array]]></description>
6649
  <long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
6650
  in the "public static" array definition itself.</p>]]></long-description>
6651
+ <tag line="374" name="since" description="1.70"/>
6652
+ <tag line="374" name="return" description="" type="void">
6653
  <type by_reference="false">void</type>
6654
  </tag>
6655
  </docblock>
6656
  </method>
6657
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1102" package="Media Library Assistant">
6658
  <name>mla_fetch_gallery_template</name>
6659
  <full_name>mla_fetch_gallery_template</full_name>
6660
+ <docblock line="1092">
6661
  <description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
6662
  <long-description><![CDATA[]]></long-description>
6663
+ <tag line="1092" name="since" description="0.80"/>
6664
+ <tag line="1092" name="param" description="Template name" type="string" variable="$key">
6665
  <type by_reference="false">string</type>
6666
  </tag>
6667
+ <tag line="1092" name="param" description="Template type; 'style' (default) or 'markup'" type="string" variable="$type">
6668
  <type by_reference="false">string</type>
6669
  </tag>
6670
+ <tag line="1092" name="return" description="requested template, false if not found or null if no templates" type="string|boolean|null">
6671
  <type by_reference="false">string</type>
6672
  <type by_reference="false">boolean</type>
6673
  <type by_reference="false">null</type>
6674
  </tag>
6675
  </docblock>
6676
+ <argument line="1102">
6677
  <name>$key</name>
6678
  <default><![CDATA[]]></default>
6679
  <type/>
6680
  </argument>
6681
+ <argument line="1102">
6682
  <name>$type</name>
6683
  <default><![CDATA['style']]></default>
6684
  <type/>
6685
  </argument>
6686
  </method>
6687
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1124" package="Media Library Assistant">
6688
  <name>mla_get_style_templates</name>
6689
  <full_name>mla_get_style_templates</full_name>
6690
+ <docblock line="1117">
6691
  <description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
6692
  <long-description><![CDATA[]]></long-description>
6693
+ <tag line="1117" name="since" description="0.80"/>
6694
+ <tag line="1117" name="return" description="name =&gt; value for all style templates or null if no templates" type="array|null">
6695
  <type by_reference="false">array</type>
6696
  <type by_reference="false">null</type>
6697
  </tag>
6698
  </docblock>
6699
  </method>
6700
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1150" package="Media Library Assistant">
6701
  <name>mla_put_style_templates</name>
6702
  <full_name>mla_put_style_templates</full_name>
6703
+ <docblock line="1142">
6704
  <description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
6705
  <long-description><![CDATA[]]></long-description>
6706
+ <tag line="1142" name="since" description="0.80"/>
6707
+ <tag line="1142" name="param" description="name =&gt; value for all user-defined style templates" type="array" variable="$templates">
6708
  <type by_reference="false">array</type>
6709
  </tag>
6710
+ <tag line="1142" name="return" description="true if success, false if failure" type="boolean">
6711
  <type by_reference="false">boolean</type>
6712
  </tag>
6713
  </docblock>
6714
+ <argument line="1150">
6715
  <name>$templates</name>
6716
  <default><![CDATA[]]></default>
6717
  <type/>
6718
  </argument>
6719
  </method>
6720
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1166" package="Media Library Assistant">
6721
  <name>mla_get_markup_templates</name>
6722
  <full_name>mla_get_markup_templates</full_name>
6723
+ <docblock line="1159">
6724
  <description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
6725
  <long-description><![CDATA[]]></long-description>
6726
+ <tag line="1159" name="since" description="0.80"/>
6727
+ <tag line="1159" name="return" description="name =&gt; value for all markup templates or null if no templates" type="array|null">
6728
  <type by_reference="false">array</type>
6729
  <type by_reference="false">null</type>
6730
  </tag>
6731
  </docblock>
6732
  </method>
6733
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1221" package="Media Library Assistant">
6734
  <name>mla_put_markup_templates</name>
6735
  <full_name>mla_put_markup_templates</full_name>
6736
+ <docblock line="1213">
6737
  <description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
6738
  <long-description><![CDATA[]]></long-description>
6739
+ <tag line="1213" name="since" description="0.80"/>
6740
+ <tag line="1213" name="param" description="name =&gt; value for all user-defined markup templates" type="array" variable="$templates">
6741
  <type by_reference="false">array</type>
6742
  </tag>
6743
+ <tag line="1213" name="return" description="true if success, false if failure" type="boolean">
6744
  <type by_reference="false">boolean</type>
6745
  </tag>
6746
  </docblock>
6747
+ <argument line="1221">
6748
  <name>$templates</name>
6749
  <default><![CDATA[]]></default>
6750
  <type/>
6751
  </argument>
6752
  </method>
6753
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1241" package="Media Library Assistant">
6754
  <name>mla_get_option</name>
6755
  <full_name>mla_get_option</full_name>
6756
+ <docblock line="1230">
6757
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
6758
  <long-description><![CDATA[]]></long-description>
6759
+ <tag line="1230" name="since" description="0.1"/>
6760
+ <tag line="1230" name="param" description="Name of the desired option" type="string" variable="$option">
6761
  <type by_reference="false">string</type>
6762
  </tag>
6763
+ <tag line="1230" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
6764
  <type by_reference="false">boolean</type>
6765
  </tag>
6766
+ <tag line="1230" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
6767
  <type by_reference="false">boolean</type>
6768
  </tag>
6769
+ <tag line="1230" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
6770
  <type by_reference="false">mixed</type>
6771
  </tag>
6772
  </docblock>
6773
+ <argument line="1241">
6774
  <name>$option</name>
6775
  <default><![CDATA[]]></default>
6776
  <type/>
6777
  </argument>
6778
+ <argument line="1241">
6779
  <name>$get_default</name>
6780
  <default><![CDATA[false]]></default>
6781
  <type/>
6782
  </argument>
6783
+ <argument line="1241">
6784
  <name>$get_stored</name>
6785
  <default><![CDATA[false]]></default>
6786
  <type/>
6787
  </argument>
6788
  </method>
6789
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1271" package="Media Library Assistant">
6790
  <name>mla_update_option</name>
6791
  <full_name>mla_update_option</full_name>
6792
+ <docblock line="1261">
6793
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
6794
  <long-description><![CDATA[]]></long-description>
6795
+ <tag line="1261" name="since" description="0.1"/>
6796
+ <tag line="1261" name="param" description="Name of the desired option" type="string" variable="$option">
6797
  <type by_reference="false">string</type>
6798
  </tag>
6799
+ <tag line="1261" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
6800
  <type by_reference="false">mixed</type>
6801
  </tag>
6802
+ <tag line="1261" name="return" description="True if the value was changed or false if the update failed" type="boolean">
6803
  <type by_reference="false">boolean</type>
6804
  </tag>
6805
  </docblock>
6806
+ <argument line="1271">
6807
  <name>$option</name>
6808
  <default><![CDATA[]]></default>
6809
  <type/>
6810
  </argument>
6811
+ <argument line="1271">
6812
  <name>$newvalue</name>
6813
  <default><![CDATA[]]></default>
6814
  <type/>
6815
  </argument>
6816
  </method>
6817
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1288" package="Media Library Assistant">
6818
  <name>mla_delete_option</name>
6819
  <full_name>mla_delete_option</full_name>
6820
+ <docblock line="1279">
6821
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
6822
  <long-description><![CDATA[]]></long-description>
6823
+ <tag line="1279" name="since" description="0.1"/>
6824
+ <tag line="1279" name="param" description="Name of the desired option" type="string" variable="$option">
6825
  <type by_reference="false">string</type>
6826
  </tag>
6827
+ <tag line="1279" name="return" description="True if the option was deleted, otherwise false" type="boolean">
6828
  <type by_reference="false">boolean</type>
6829
  </tag>
6830
  </docblock>
6831
+ <argument line="1288">
6832
  <name>$option</name>
6833
  <default><![CDATA[]]></default>
6834
  <type/>
6835
  </argument>
6836
  </method>
6837
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1309" package="Media Library Assistant">
6838
  <name>mla_taxonomy_support</name>
6839
  <full_name>mla_taxonomy_support</full_name>
6840
+ <docblock line="1296">
6841
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
6842
  settings are being updated or reset.]]></description>
6843
  <long-description><![CDATA[]]></long-description>
6844
+ <tag line="1296" name="since" description="0.30"/>
6845
+ <tag line="1296" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
6846
  <type by_reference="false">string</type>
6847
  </tag>
6848
+ <tag line="1296" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
6849
  <type by_reference="false">string</type>
6850
  </tag>
6851
+ <tag line="1296" 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">
6852
  <type by_reference="false">boolean</type>
6853
  <type by_reference="false">string</type>
6854
  </tag>
6855
  </docblock>
6856
+ <argument line="1309">
6857
  <name>$tax_name</name>
6858
  <default><![CDATA[]]></default>
6859
  <type/>
6860
  </argument>
6861
+ <argument line="1309">
6862
  <name>$support_type</name>
6863
  <default><![CDATA['support']]></default>
6864
  <type/>
6865
  </argument>
6866
  </method>
6867
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1397" package="Media Library Assistant">
6868
  <name>mla_attachment_display_settings_option_handler</name>
6869
  <full_name>mla_attachment_display_settings_option_handler</full_name>
6870
+ <docblock line="1384">
6871
  <description><![CDATA[Render and manage Attachment Display Settings options; alignment, link type and size]]></description>
6872
  <long-description><![CDATA[]]></long-description>
6873
+ <tag line="1384" name="since" description="1.71"/>
6874
+ <tag line="1384" name="uses" description="\global\MLASettings::$page_template_array" refers="\global\MLASettings::$page_template_array"/>
6875
+ <tag line="1384" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
6876
  <type by_reference="false">string</type>
6877
  </tag>
6878
+ <tag line="1384" name="param" description="option name, e.g., 'image_default_align'" type="string" variable="$key">
6879
  <type by_reference="false">string</type>
6880
  </tag>
6881
+ <tag line="1384" name="param" description="option parameters" type="array" variable="$value">
6882
  <type by_reference="false">array</type>
6883
  </tag>
6884
+ <tag line="1384" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
6885
  <type by_reference="false">array</type>
6886
  </tag>
6887
+ <tag line="1384" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
6888
  <type by_reference="false">string</type>
6889
  </tag>
6890
  </docblock>
6891
+ <argument line="1397">
6892
  <name>$action</name>
6893
  <default><![CDATA[]]></default>
6894
  <type/>
6895
  </argument>
6896
+ <argument line="1397">
6897
  <name>$key</name>
6898
  <default><![CDATA[]]></default>
6899
  <type/>
6900
  </argument>
6901
+ <argument line="1397">
6902
  <name>$value</name>
6903
  <default><![CDATA[]]></default>
6904
  <type/>
6905
  </argument>
6906
+ <argument line="1397">
6907
  <name>$args</name>
6908
  <default><![CDATA[null]]></default>
6909
  <type/>
6910
  </argument>
6911
  </method>
6912
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1461" package="Media Library Assistant">
6913
  <name>mla_taxonomy_option_handler</name>
6914
  <full_name>mla_taxonomy_option_handler</full_name>
6915
+ <docblock line="1448">
6916
  <description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
6917
  <long-description><![CDATA[]]></long-description>
6918
+ <tag line="1448" name="since" description="0.30"/>
6919
+ <tag line="1448" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
6920
+ <tag line="1448" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
6921
  <type by_reference="false">string</type>
6922
  </tag>
6923
+ <tag line="1448" name="param" description="option name, e.g., 'taxonomy_support'" type="string" variable="$key">
6924
  <type by_reference="false">string</type>
6925
  </tag>
6926
+ <tag line="1448" name="param" description="option parameters" type="array" variable="$value">
6927
  <type by_reference="false">array</type>
6928
  </tag>
6929
+ <tag line="1448" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
6930
  <type by_reference="false">array</type>
6931
  </tag>
6932
+ <tag line="1448" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
6933
  <type by_reference="false">string</type>
6934
  </tag>
6935
  </docblock>
6936
+ <argument line="1461">
6937
  <name>$action</name>
6938
  <default><![CDATA[]]></default>
6939
  <type/>
6940
  </argument>
6941
+ <argument line="1461">
6942
  <name>$key</name>
6943
  <default><![CDATA[]]></default>
6944
  <type/>
6945
  </argument>
6946
+ <argument line="1461">
6947
  <name>$value</name>
6948
  <default><![CDATA[]]></default>
6949
  <type/>
6950
  </argument>
6951
+ <argument line="1461">
6952
  <name>$args</name>
6953
  <default><![CDATA[null]]></default>
6954
  <type/>
6955
  </argument>
6956
  </method>
6957
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1608" package="Media Library Assistant">
6958
  <name>mla_wp_handle_upload_prefilter_filter</name>
6959
  <full_name>mla_wp_handle_upload_prefilter_filter</full_name>
6960
+ <docblock line="1599">
6961
  <description><![CDATA[Examine or alter the filename before the file is made permanent]]></description>
6962
  <long-description><![CDATA[]]></long-description>
6963
+ <tag line="1599" name="since" description="1.70"/>
6964
+ <tag line="1599" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
6965
  <type by_reference="false">array</type>
6966
  </tag>
6967
+ <tag line="1599" name="return" description="updated file parameters" type="array">
6968
  <type by_reference="false">array</type>
6969
  </tag>
6970
  </docblock>
6971
+ <argument line="1608">
6972
  <name>$file</name>
6973
  <default><![CDATA[]]></default>
6974
  <type/>
6975
  </argument>
6976
  </method>
6977
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1625" package="Media Library Assistant">
6978
  <name>mla_wp_handle_upload_filter</name>
6979
  <full_name>mla_wp_handle_upload_filter</full_name>
6980
+ <docblock line="1616">
6981
  <description><![CDATA[Called once for each file uploaded]]></description>
6982
  <long-description><![CDATA[]]></long-description>
6983
+ <tag line="1616" name="since" description="1.70"/>
6984
+ <tag line="1616" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
6985
  <type by_reference="false">array</type>
6986
  </tag>
6987
+ <tag line="1616" name="return" description="updated file parameters" type="array">
6988
  <type by_reference="false">array</type>
6989
  </tag>
6990
  </docblock>
6991
+ <argument line="1625">
6992
  <name>$file</name>
6993
  <default><![CDATA[]]></default>
6994
  <type/>
6995
  </argument>
6996
  </method>
6997
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1659" package="Media Library Assistant">
6998
  <name>mla_add_attachment_action</name>
6999
  <full_name>mla_add_attachment_action</full_name>
7000
+ <docblock line="1648">
7001
  <description><![CDATA[Set $add_attachment_id to just-inserted attachment]]></description>
7002
  <long-description><![CDATA[<p>All of the actual processing is done later, in mla_update_attachment_metadata_filter.</p>]]></long-description>
7003
+ <tag line="1648" name="since" description="1.00"/>
7004
+ <tag line="1648" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_ID">
7005
  <type by_reference="false">integer</type>
7006
  </tag>
7007
+ <tag line="1648" name="return" description="" type="void">
7008
  <type by_reference="false">void</type>
7009
  </tag>
7010
  </docblock>
7011
+ <argument line="1659">
7012
  <name>$post_ID</name>
7013
  <default><![CDATA[]]></default>
7014
  <type/>
7015
  </argument>
7016
  </method>
7017
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1674" package="Media Library Assistant">
7018
  <name>_update_attachment_metadata</name>
7019
  <full_name>_update_attachment_metadata</full_name>
7020
+ <docblock line="1664">
7021
  <description><![CDATA[Update _wp_attachment_metadata for just-inserted attachment]]></description>
7022
  <long-description><![CDATA[]]></long-description>
7023
+ <tag line="1664" name="since" description="1.70"/>
7024
+ <tag line="1664" name="param" description="Attachment metadata updates" type="array" variable="$updates">
7025
  <type by_reference="false">array</type>
7026
  </tag>
7027
+ <tag line="1664" name="param" description="Attachment metadata, by reference; updated by this function" type="array" variable="$data">
7028
  <type by_reference="false">array</type>
7029
  </tag>
7030
+ <tag line="1664" name="return" description="Attachment metadata updates, with &quot;meta:&quot; elements removed" type="array">
7031
  <type by_reference="false">array</type>
7032
  </tag>
7033
  </docblock>
7034
+ <argument line="1674">
7035
  <name>$updates</name>
7036
  <default><![CDATA[]]></default>
7037
  <type/>
7038
  </argument>
7039
+ <argument line="1674">
7040
  <name>$data</name>
7041
  <default><![CDATA[]]></default>
7042
  <type/>
7043
  </argument>
7044
  </method>
7045
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1710" package="Media Library Assistant">
7046
  <name>mla_update_attachment_metadata_filter</name>
7047
  <full_name>mla_update_attachment_metadata_filter</full_name>
7048
+ <docblock line="1697">
7049
  <description><![CDATA[Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment]]></description>
7050
  <long-description><![CDATA[<p>This filter tests the $add_attachment_id variable set by the mla_add_attachment_action
7051
  to ensure that mapping is only performed for new additions, not metadata updates.</p>]]></long-description>
7052
+ <tag line="1697" name="since" description="1.10"/>
7053
+ <tag line="1697" name="param" description="Attachment metadata for just-inserted attachment" type="array" variable="$data">
7054
  <type by_reference="false">array</type>
7055
  </tag>
7056
+ <tag line="1697" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
7057
  <type by_reference="false">integer</type>
7058
  </tag>
7059
+ <tag line="1697" name="return" description="" type="void">
7060
  <type by_reference="false">void</type>
7061
  </tag>
7062
  </docblock>
7063
+ <argument line="1710">
7064
  <name>$data</name>
7065
  <default><![CDATA[]]></default>
7066
  <type/>
7067
  </argument>
7068
+ <argument line="1710">
7069
  <name>$post_id</name>
7070
  <default><![CDATA[]]></default>
7071
  <type/>
7072
  </argument>
7073
  </method>
7074
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1776" package="Media Library Assistant">
7075
  <name>mla_custom_field_option_value</name>
7076
  <full_name>mla_custom_field_option_value</full_name>
7077
+ <docblock line="1767">
7078
  <description><![CDATA[Fetch custom field option value given a slug]]></description>
7079
  <long-description><![CDATA[]]></long-description>
7080
+ <tag line="1767" name="since" description="1.10"/>
7081
+ <tag line="1767" name="param" description="slug, e.g., 'c_file-size' for the 'File Size' field" type="string" variable="$slug">
7082
  <type by_reference="false">string</type>
7083
  </tag>
7084
+ <tag line="1767" name="return" description="option value, e.g., array( 'name' =&gt; 'File Size', ... )" type="array">
7085
  <type by_reference="false">array</type>
7086
  </tag>
7087
  </docblock>
7088
+ <argument line="1776">
7089
  <name>$slug</name>
7090
  <default><![CDATA[]]></default>
7091
  <type/>
7092
  </argument>
7093
  </method>
7094
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1797" package="Media Library Assistant">
7095
  <name>mla_custom_field_support</name>
7096
  <full_name>mla_custom_field_support</full_name>
7097
+ <docblock line="1788">
7098
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
7099
  <long-description><![CDATA[]]></long-description>
7100
+ <tag line="1788" name="since" description="1.10"/>
7101
+ <tag line="1788" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
7102
  <type by_reference="false">string</type>
7103
  </tag>
7104
+ <tag line="1788" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
7105
  <type by_reference="false">array</type>
7106
  </tag>
7107
  </docblock>
7108
+ <argument line="1797">
7109
  <name>$support_type</name>
7110
  <default><![CDATA['default_columns']]></default>
7111
  <type/>
7112
  </argument>
7113
  </method>
7114
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1848" package="Media Library Assistant">
7115
  <name>_evaluate_file_information</name>
7116
  <full_name>_evaluate_file_information</full_name>
7117
+ <docblock line="1836">
7118
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
7119
  <long-description><![CDATA[]]></long-description>
7120
+ <tag line="1836" name="since" description="1.10"/>
7121
+ <tag line="1836" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
7122
  <type by_reference="false">string</type>
7123
  </tag>
7124
+ <tag line="1836" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
7125
  <type by_reference="false">array</type>
7126
  </tag>
7127
+ <tag line="1836" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
7128
  <type by_reference="false">array</type>
7129
  </tag>
7130
+ <tag line="1836" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
7131
  <type by_reference="false">integer</type>
7132
  </tag>
7133
+ <tag line="1836" name="return" description="absolute_path_raw, absolute_path, absolute_file_name_raw, absolute_file_name, absolute_file, base_file, path, file_name, extension, dimensions, width, height, hwstring_small, array of intermediate sizes" type="array">
7134
  <type by_reference="false">array</type>
7135
  </tag>
7136
  </docblock>
7137
+ <argument line="1848">
7138
  <name>$upload_dir</name>
7139
  <default><![CDATA[]]></default>
7140
  <type/>
7141
  </argument>
7142
+ <argument line="1848">
7143
  <name>$wp_attached_files</name>
7144
  <default><![CDATA[]]></default>
7145
  <type/>
7146
  </argument>
7147
+ <argument line="1848">
7148
  <name>$wp_attachment_metadata</name>
7149
  <default><![CDATA[]]></default>
7150
  <type/>
7151
  </argument>
7152
+ <argument line="1848">
7153
  <name>$post_id</name>
7154
  <default><![CDATA[]]></default>
7155
  <type/>
7156
  </argument>
7157
  </method>
7158
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1934" package="Media Library Assistant">
7159
  <name>_evaluate_post_information</name>
7160
  <full_name>_evaluate_post_information</full_name>
7161
+ <docblock line="1923">
7162
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
7163
  <long-description><![CDATA[]]></long-description>
7164
+ <tag line="1923" name="since" description="1.40"/>
7165
+ <tag line="1923" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
7166
  <type by_reference="false">integer</type>
7167
  </tag>
7168
+ <tag line="1923" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
7169
  <type by_reference="false">string</type>
7170
  </tag>
7171
+ <tag line="1923" name="param" description="data source name ( post_date or post_parent )" type="string" variable="$data_source">
7172
  <type by_reference="false">string</type>
7173
  </tag>
7174
+ <tag line="1923" name="return" description="'post_date' =&gt; (string) upload date, 'post_parent' =&gt; (integer) ID of parent or zero )" type="mixed">
7175
  <type by_reference="false">mixed</type>
7176
  </tag>
7177
  </docblock>
7178
+ <argument line="1934">
7179
  <name>$post_id</name>
7180
  <default><![CDATA[]]></default>
7181
  <type/>
7182
  </argument>
7183
+ <argument line="1934">
7184
  <name>$category</name>
7185
  <default><![CDATA[]]></default>
7186
  <type/>
7187
  </argument>
7188
+ <argument line="1934">
7189
  <name>$data_source</name>
7190
  <default><![CDATA[]]></default>
7191
  <type/>
7192
  </argument>
7193
  </method>
7194
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1969" package="Media Library Assistant">
7195
  <name>_evaluate_array_result</name>
7196
  <full_name>_evaluate_array_result</full_name>
7197
+ <docblock line="1958">
7198
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
7199
  <long-description><![CDATA[]]></long-description>
7200
+ <tag line="1958" name="since" description="1.40"/>
7201
+ <tag line="1958" name="param" description="field value(s)" type="array" variable="$value">
7202
  <type by_reference="false">array</type>
7203
  </tag>
7204
+ <tag line="1958" name="param" description="format option text|single|export|array|multi" type="string" variable="$option">
7205
  <type by_reference="false">string</type>
7206
  </tag>
7207
+ <tag line="1958" name="param" description="keep existing value(s) - for 'multi' option" type="boolean" variable="$keep_existing">
7208
  <type by_reference="false">boolean</type>
7209
  </tag>
7210
+ <tag line="1958" name="return" description="array for option = array|multi else string" type="mixed">
7211
  <type by_reference="false">mixed</type>
7212
  </tag>
7213
  </docblock>
7214
+ <argument line="1969">
7215
  <name>$value</name>
7216
  <default><![CDATA[]]></default>
7217
  <type/>
7218
  </argument>
7219
+ <argument line="1969">
7220
  <name>$option</name>
7221
  <default><![CDATA[]]></default>
7222
  <type/>
7223
  </argument>
7224
+ <argument line="1969">
7225
  <name>$keep_existing</name>
7226
  <default><![CDATA[]]></default>
7227
  <type/>
7228
  </argument>
7229
  </method>
7230
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2009" package="Media Library Assistant">
7231
  <name>mla_get_data_source</name>
7232
  <full_name>mla_get_data_source</full_name>
7233
+ <docblock line="1994">
7234
  <description><![CDATA[Get IPTC/EXIF or custom field mapping data source]]></description>
7235
  <long-description><![CDATA[<p>Defined as public so MLA Mapping Hooks clients can call it.
7236
  Isolates clients from changes to _evaluate_data_source().</p>]]></long-description>
7237
+ <tag line="1994" name="since" description="1.70"/>
7238
+ <tag line="1994" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
7239
  <type by_reference="false">integer</type>
7240
  </tag>
7241
+ <tag line="1994" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
7242
  <type by_reference="false">string</type>
7243
  </tag>
7244
+ <tag line="1994" name="param" description="data source specification ( name, *data_source, *keep_existing, *format, mla_column, quick_edit, bulk_edit, *meta_name, *option, no_null )" type="array" variable="$data_value">
7245
  <type by_reference="false">array</type>
7246
  </tag>
7247
+ <tag line="1994" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
7248
  <type by_reference="false">array</type>
7249
  </tag>
7250
+ <tag line="1994" name="return" description="data source value" type="string|array">
7251
  <type by_reference="false">string</type>
7252
  <type by_reference="false">array</type>
7253
  </tag>
7254
  </docblock>
7255
+ <argument line="2009">
7256
  <name>$post_id</name>
7257
  <default><![CDATA[]]></default>
7258
  <type/>
7259
  </argument>
7260
+ <argument line="2009">
7261
  <name>$category</name>
7262
  <default><![CDATA[]]></default>
7263
  <type/>
7264
  </argument>
7265
+ <argument line="2009">
7266
  <name>$data_value</name>
7267
  <default><![CDATA[]]></default>
7268
  <type/>
7269
  </argument>
7270
+ <argument line="2009">
7271
  <name>$attachment_metadata</name>
7272
  <default><![CDATA[NULL]]></default>
7273
  <type/>
7274
  </argument>
7275
  </method>
7276
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2034" package="Media Library Assistant">
7277
+ <name>mla_is_data_source</name>
7278
+ <full_name>mla_is_data_source</full_name>
7279
+ <docblock line="2022">
7280
+ <description><![CDATA[Identify custom field mapping data source]]></description>
7281
+ <long-description><![CDATA[<p>Determines whether a name matches any of the element-level data source dropdown options, i.e.,
7282
+ excludes "template:" and "meta:" values.</p>]]></long-description>
7283
+ <tag line="2022" name="since" description="1.80"/>
7284
+ <tag line="2022" name="param" description="candidate data source name" type="string" variable="$candidate_name">
7285
+ <type by_reference="false">string</type>
7286
+ </tag>
7287
+ <tag line="2022" name="return" description="true if candidate name matches a data source" type="boolean">
7288
+ <type by_reference="false">boolean</type>
7289
+ </tag>
7290
+ </docblock>
7291
+ <argument line="2034">
7292
+ <name>$candidate_name</name>
7293
+ <default><![CDATA[]]></default>
7294
+ <type/>
7295
+ </argument>
7296
+ </method>
7297
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2069" package="Media Library Assistant">
7298
  <name>_evaluate_data_source</name>
7299
  <full_name>_evaluate_data_source</full_name>
7300
+ <docblock line="2057">
7301
  <description><![CDATA[Evaluate custom field mapping data source]]></description>
7302
  <long-description><![CDATA[]]></long-description>
7303
+ <tag line="2057" name="since" description="1.10"/>
7304
+ <tag line="2057" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
7305
  <type by_reference="false">integer</type>
7306
  </tag>
7307
+ <tag line="2057" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
7308
  <type by_reference="false">string</type>
7309
  </tag>
7310
+ <tag line="2057" name="param" description="data source specification ( name, *data_source, *keep_existing, *format, mla_column, quick_edit, bulk_edit, *meta_name, *option, no_null )" type="array" variable="$data_value">
7311
  <type by_reference="false">array</type>
7312
  </tag>
7313
+ <tag line="2057" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
7314
  <type by_reference="false">array</type>
7315
  </tag>
7316
+ <tag line="2057" name="return" description="data source value" type="string|array">
7317
  <type by_reference="false">string</type>
7318
  <type by_reference="false">array</type>
7319
  </tag>
7320
  </docblock>
7321
+ <argument line="2069">
7322
  <name>$post_id</name>
7323
  <default><![CDATA[]]></default>
7324
  <type/>
7325
  </argument>
7326
+ <argument line="2069">
7327
  <name>$category</name>
7328
  <default><![CDATA[]]></default>
7329
  <type/>
7330
  </argument>
7331
+ <argument line="2069">
7332
  <name>$data_value</name>
7333
  <default><![CDATA[]]></default>
7334
  <type/>
7335
  </argument>
7336
+ <argument line="2069">
7337
  <name>$attachment_metadata</name>
7338
  <default><![CDATA[NULL]]></default>
7339
  <type/>
7340
  </argument>
7341
  </method>
7342
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2469" package="Media Library Assistant">
7343
  <name>mla_evaluate_custom_field_mapping</name>
7344
  <full_name>mla_evaluate_custom_field_mapping</full_name>
7345
+ <docblock line="2457">
7346
  <description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
7347
  <long-description><![CDATA[]]></long-description>
7348
+ <tag line="2457" name="since" description="1.10"/>
7349
+ <tag line="2457" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
7350
  <type by_reference="false">integer</type>
7351
  </tag>
7352
+ <tag line="2457" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
7353
  <type by_reference="false">string</type>
7354
  </tag>
7355
+ <tag line="2457" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
7356
  <type by_reference="false">array</type>
7357
  </tag>
7358
+ <tag line="2457" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
7359
  <type by_reference="false">array</type>
7360
  </tag>
7361
+ <tag line="2457" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
7362
  <type by_reference="false">array</type>
7363
  </tag>
7364
  </docblock>
7365
+ <argument line="2469">
7366
  <name>$post_id</name>
7367
  <default><![CDATA[]]></default>
7368
  <type/>
7369
  </argument>
7370
+ <argument line="2469">
7371
  <name>$category</name>
7372
  <default><![CDATA[]]></default>
7373
  <type/>
7374
  </argument>
7375
+ <argument line="2469">
7376
  <name>$settings</name>
7377
  <default><![CDATA[NULL]]></default>
7378
  <type/>
7379
  </argument>
7380
+ <argument line="2469">
7381
  <name>$attachment_metadata</name>
7382
  <default><![CDATA[NULL]]></default>
7383
  <type/>
7384
  </argument>
7385
  </method>
7386
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2568" package="Media Library Assistant">
7387
  <name>_compose_custom_field_option_list</name>
7388
  <full_name>_compose_custom_field_option_list</full_name>
7389
+ <docblock line="2557">
7390
  <description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
7391
  <long-description><![CDATA[]]></long-description>
7392
+ <tag line="2557" name="since" description="1.10"/>
7393
+ <tag line="2557" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7394
+ <tag line="2557" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
7395
  <type by_reference="false">string</type>
7396
  </tag>
7397
+ <tag line="2557" name="param" description="optional list of terms to exclude from the list" type="array" variable="$blacklist">
7398
  <type by_reference="false">array</type>
7399
  </tag>
7400
+ <tag line="2557" name="return" description="HTML markup with select field options" type="string">
7401
  <type by_reference="false">string</type>
7402
  </tag>
7403
  </docblock>
7404
+ <argument line="2568">
7405
  <name>$selection</name>
7406
  <default><![CDATA['none']]></default>
7407
  <type/>
7408
  </argument>
7409
+ <argument line="2568">
7410
  <name>$blacklist</name>
7411
  <default><![CDATA[array()]]></default>
7412
  <type/>
7413
  </argument>
7414
  </method>
7415
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2664" package="Media Library Assistant">
7416
  <name>_compose_data_source_option_list</name>
7417
  <full_name>_compose_data_source_option_list</full_name>
7418
+ <docblock line="2654">
7419
  <description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
7420
  <long-description><![CDATA[]]></long-description>
7421
+ <tag line="2654" name="since" description="1.10"/>
7422
+ <tag line="2654" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7423
+ <tag line="2654" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
7424
  <type by_reference="false">string</type>
7425
  </tag>
7426
+ <tag line="2654" name="return" description="HTML markup with select field options" type="string">
7427
  <type by_reference="false">string</type>
7428
  </tag>
7429
  </docblock>
7430
+ <argument line="2664">
7431
  <name>$selection</name>
7432
  <default><![CDATA['none']]></default>
7433
  <type/>
7434
  </argument>
7435
  </method>
7436
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2728" package="Media Library Assistant">
7437
  <name>_update_custom_field_mapping</name>
7438
  <full_name>_update_custom_field_mapping</full_name>
7439
+ <docblock line="2718">
7440
  <description><![CDATA[Update custom field mappings]]></description>
7441
  <long-description><![CDATA[]]></long-description>
7442
+ <tag line="2718" name="since" description="1.10"/>
7443
+ <tag line="2718" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
7444
  <type by_reference="false">array</type>
7445
  </tag>
7446
+ <tag line="2718" name="param" description="new values" type="array" variable="$new_values">
7447
  <type by_reference="false">array</type>
7448
  </tag>
7449
+ <tag line="2718" name="return" description="( 'message' =&gt; HTML message(s) reflecting results, 'values' =&gt; updated custom_field_mapping values, 'changed' =&gt; true if any changes detected else false )" type="array">
7450
  <type by_reference="false">array</type>
7451
  </tag>
7452
  </docblock>
7453
+ <argument line="2728">
7454
  <name>$current_values</name>
7455
  <default><![CDATA[]]></default>
7456
  <type/>
7457
  </argument>
7458
+ <argument line="2728">
7459
  <name>$new_values</name>
7460
  <default><![CDATA[]]></default>
7461
  <type/>
7462
  </argument>
7463
  </method>
7464
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2941" package="Media Library Assistant">
7465
  <name>mla_custom_field_option_handler</name>
7466
  <full_name>mla_custom_field_option_handler</full_name>
7467
+ <docblock line="2928">
7468
  <description><![CDATA[Render and manage custom field mapping options]]></description>
7469
  <long-description><![CDATA[]]></long-description>
7470
+ <tag line="2928" name="since" description="1.10"/>
7471
+ <tag line="2928" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7472
+ <tag line="2928" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
7473
  <type by_reference="false">string</type>
7474
  </tag>
7475
+ <tag line="2928" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
7476
  <type by_reference="false">string</type>
7477
  </tag>
7478
+ <tag line="2928" name="param" description="option parameters" type="array" variable="$value">
7479
  <type by_reference="false">array</type>
7480
  </tag>
7481
+ <tag line="2928" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
7482
  <type by_reference="false">array</type>
7483
  </tag>
7484
+ <tag line="2928" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
7485
  <type by_reference="false">string</type>
7486
  </tag>
7487
  </docblock>
7488
+ <argument line="2941">
7489
  <name>$action</name>
7490
  <default><![CDATA[]]></default>
7491
  <type/>
7492
  </argument>
7493
+ <argument line="2941">
7494
  <name>$key</name>
7495
  <default><![CDATA[]]></default>
7496
  <type/>
7497
  </argument>
7498
+ <argument line="2941">
7499
  <name>$value</name>
7500
  <default><![CDATA[]]></default>
7501
  <type/>
7502
  </argument>
7503
+ <argument line="2941">
7504
  <name>$args</name>
7505
  <default><![CDATA[null]]></default>
7506
  <type/>
7507
  </argument>
7508
  </method>
7509
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3194" package="Media Library Assistant">
7510
  <name>mla_evaluate_iptc_exif_mapping</name>
7511
  <full_name>mla_evaluate_iptc_exif_mapping</full_name>
7512
+ <docblock line="3182">
7513
  <description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
7514
  <long-description><![CDATA[]]></long-description>
7515
+ <tag line="3182" name="since" description="1.00"/>
7516
+ <tag line="3182" name="param" description="post object with current values" type="object" variable="$post">
7517
  <type by_reference="false">object</type>
7518
  </tag>
7519
+ <tag line="3182" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
7520
  <type by_reference="false">string</type>
7521
  </tag>
7522
+ <tag line="3182" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
7523
  <type by_reference="false">array</type>
7524
  </tag>
7525
+ <tag line="3182" name="param" description="(optional) _wp_attachment_metadata, for MLAOptions::mla_update_attachment_metadata_filter" type="array" variable="$attachment_metadata">
7526
  <type by_reference="false">array</type>
7527
  </tag>
7528
+ <tag line="3182" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
7529
  <type by_reference="false">array</type>
7530
  </tag>
7531
  </docblock>
7532
+ <argument line="3194">
7533
  <name>$post</name>
7534
  <default><![CDATA[]]></default>
7535
  <type/>
7536
  </argument>
7537
+ <argument line="3194">
7538
  <name>$category</name>
7539
  <default><![CDATA[]]></default>
7540
  <type/>
7541
  </argument>
7542
+ <argument line="3194">
7543
  <name>$settings</name>
7544
  <default><![CDATA[NULL]]></default>
7545
  <type/>
7546
  </argument>
7547
+ <argument line="3194">
7548
  <name>$attachment_metadata</name>
7549
  <default><![CDATA[NULL]]></default>
7550
  <type/>
7551
  </argument>
7552
  </method>
7553
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3505" package="Media Library Assistant">
7554
  <name>_compose_iptc_option_list</name>
7555
  <full_name>_compose_iptc_option_list</full_name>
7556
+ <docblock line="3495">
7557
  <description><![CDATA[Compose an IPTC Options list with current selection]]></description>
7558
  <long-description><![CDATA[]]></long-description>
7559
+ <tag line="3495" name="since" description="1.00"/>
7560
+ <tag line="3495" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7561
+ <tag line="3495" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
7562
  <type by_reference="false">string</type>
7563
  </tag>
7564
+ <tag line="3495" name="return" description="HTML markup with select field options" type="string">
7565
  <type by_reference="false">string</type>
7566
  </tag>
7567
  </docblock>
7568
+ <argument line="3505">
7569
  <name>$selection</name>
7570
  <default><![CDATA['none']]></default>
7571
  <type/>
7572
  </argument>
7573
  </method>
7574
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3538" package="Media Library Assistant">
7575
  <name>_compose_parent_option_list</name>
7576
  <full_name>_compose_parent_option_list</full_name>
7577
+ <docblock line="3527">
7578
  <description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
7579
  <long-description><![CDATA[]]></long-description>
7580
+ <tag line="3527" name="since" description="1.00"/>
7581
+ <tag line="3527" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7582
+ <tag line="3527" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
7583
  <type by_reference="false">string</type>
7584
  </tag>
7585
+ <tag line="3527" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
7586
  <type by_reference="false">integer</type>
7587
  </tag>
7588
+ <tag line="3527" name="return" description="HTML markup with select field options" type="string">
7589
  <type by_reference="false">string</type>
7590
  </tag>
7591
  </docblock>
7592
+ <argument line="3538">
7593
  <name>$taxonomy</name>
7594
  <default><![CDATA[]]></default>
7595
  <type/>
7596
  </argument>
7597
+ <argument line="3538">
7598
  <name>$selection</name>
7599
  <default><![CDATA[0]]></default>
7600
  <type/>
7601
  </argument>
7602
  </method>
7603
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3584" package="Media Library Assistant">
7604
  <name>_update_iptc_exif_standard_mapping</name>
7605
  <full_name>_update_iptc_exif_standard_mapping</full_name>
7606
+ <docblock line="3574">
7607
  <description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
7608
  <long-description><![CDATA[]]></long-description>
7609
+ <tag line="3574" name="since" description="1.00"/>
7610
+ <tag line="3574" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
7611
  <type by_reference="false">array</type>
7612
  </tag>
7613
+ <tag line="3574" name="param" description="new values" type="array" variable="$new_values">
7614
  <type by_reference="false">array</type>
7615
  </tag>
7616
+ <tag line="3574" 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">
7617
  <type by_reference="false">array</type>
7618
  </tag>
7619
  </docblock>
7620
+ <argument line="3584">
7621
  <name>$current_values</name>
7622
  <default><![CDATA[]]></default>
7623
  <type/>
7624
  </argument>
7625
+ <argument line="3584">
7626
  <name>$new_values</name>
7627
  <default><![CDATA[]]></default>
7628
  <type/>
7629
  </argument>
7630
  </method>
7631
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3677" package="Media Library Assistant">
7632
  <name>_update_iptc_exif_taxonomy_mapping</name>
7633
  <full_name>_update_iptc_exif_taxonomy_mapping</full_name>
7634
+ <docblock line="3667">
7635
  <description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
7636
  <long-description><![CDATA[]]></long-description>
7637
+ <tag line="3667" name="since" description="1.00"/>
7638
+ <tag line="3667" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
7639
  <type by_reference="false">array</type>
7640
  </tag>
7641
+ <tag line="3667" name="param" description="new values" type="array" variable="$new_values">
7642
  <type by_reference="false">array</type>
7643
  </tag>
7644
+ <tag line="3667" 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">
7645
  <type by_reference="false">array</type>
7646
  </tag>
7647
  </docblock>
7648
+ <argument line="3677">
7649
  <name>$current_values</name>
7650
  <default><![CDATA[]]></default>
7651
  <type/>
7652
  </argument>
7653
+ <argument line="3677">
7654
  <name>$new_values</name>
7655
  <default><![CDATA[]]></default>
7656
  <type/>
7657
  </argument>
7658
  </method>
7659
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3779" package="Media Library Assistant">
7660
  <name>_update_iptc_exif_custom_mapping</name>
7661
  <full_name>_update_iptc_exif_custom_mapping</full_name>
7662
+ <docblock line="3769">
7663
  <description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
7664
  <long-description><![CDATA[]]></long-description>
7665
+ <tag line="3769" name="since" description="1.00"/>
7666
+ <tag line="3769" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
7667
  <type by_reference="false">array</type>
7668
  </tag>
7669
+ <tag line="3769" name="param" description="new values" type="array" variable="$new_values">
7670
  <type by_reference="false">array</type>
7671
  </tag>
7672
+ <tag line="3769" 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">
7673
  <type by_reference="false">array</type>
7674
  </tag>
7675
  </docblock>
7676
+ <argument line="3779">
7677
  <name>$current_values</name>
7678
  <default><![CDATA[]]></default>
7679
  <type/>
7680
  </argument>
7681
+ <argument line="3779">
7682
  <name>$new_values</name>
7683
  <default><![CDATA[]]></default>
7684
  <type/>
7685
  </argument>
7686
  </method>
7687
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3909" package="Media Library Assistant">
7688
  <name>_get_custom_field_names</name>
7689
  <full_name>_get_custom_field_names</full_name>
7690
+ <docblock line="3899">
7691
  <description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
7692
  <long-description><![CDATA[<p>The list will include any Custom Field and IPTC/EXIF rules that
7693
  haven't been mapped to any attachments, yet.</p>]]></long-description>
7694
+ <tag line="3899" name="since" description="1.00"/>
7695
+ <tag line="3899" name="return" description="Custom field names from the postmeta table and MLA rules" type="array">
7696
  <type by_reference="false">array</type>
7697
  </tag>
7698
  </docblock>
7699
  </method>
7700
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3955" package="Media Library Assistant">
7701
  <name>mla_iptc_exif_option_handler</name>
7702
  <full_name>mla_iptc_exif_option_handler</full_name>
7703
+ <docblock line="3942">
7704
  <description><![CDATA[Render and manage iptc/exif support options]]></description>
7705
  <long-description><![CDATA[]]></long-description>
7706
+ <tag line="3942" name="since" description="1.00"/>
7707
+ <tag line="3942" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7708
+ <tag line="3942" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
7709
  <type by_reference="false">string</type>
7710
  </tag>
7711
+ <tag line="3942" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
7712
  <type by_reference="false">string</type>
7713
  </tag>
7714
+ <tag line="3942" name="param" description="option parameters" type="array" variable="$value">
7715
  <type by_reference="false">array</type>
7716
  </tag>
7717
+ <tag line="3942" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
7718
  <type by_reference="false">array</type>
7719
  </tag>
7720
+ <tag line="3942" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
7721
  <type by_reference="false">string</type>
7722
  </tag>
7723
  </docblock>
7724
+ <argument line="3955">
7725
  <name>$action</name>
7726
  <default><![CDATA[]]></default>
7727
  <type/>
7728
  </argument>
7729
+ <argument line="3955">
7730
  <name>$key</name>
7731
  <default><![CDATA[]]></default>
7732
  <type/>
7733
  </argument>
7734
+ <argument line="3955">
7735
  <name>$value</name>
7736
  <default><![CDATA[]]></default>
7737
  <type/>
7738
  </argument>
7739
+ <argument line="3955">
7740
  <name>$args</name>
7741
  <default><![CDATA[null]]></default>
7742
  <type/>
7744
  </method>
7745
  </class>
7746
  </file>
7747
+ <file path="includes\class-mla-settings.php" hash="9d982bc2fcaecb4159b64604e9ce6c94" package="Media Library Assistant">
7748
  <docblock line="2">
7749
  <description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
7750
  <long-description><![CDATA[]]></long-description>
7834
  </tag>
7835
  </docblock>
7836
  </property>
7837
+ <property final="false" static="true" visibility="public" line="846" namespace="global" package="Media Library Assistant">
7838
  <name>$page_template_array</name>
7839
  <default><![CDATA[null]]></default>
7840
+ <docblock line="836">
7841
  <description><![CDATA[Template file for the Settings page(s) and parts]]></description>
7842
  <long-description><![CDATA[<p>This array contains all of the template parts for the Settings page(s). The array is built once
7843
  each page load and cached for subsequent use.</p>]]></long-description>
7844
+ <tag line="836" name="since" description="0.80"/>
7845
+ <tag line="836" name="var" description="" type="array">
7846
  <type by_reference="false">array</type>
7847
  </tag>
7848
  </docblock>
7849
  </property>
7850
+ <property final="false" static="true" visibility="private" line="865" namespace="global" package="Media Library Assistant">
7851
  <name>$mla_tablist</name>
7852
  <default><![CDATA[array()]]></default>
7853
+ <docblock line="848">
7854
  <description><![CDATA[Definitions for Settings page tab ids, titles and handlers
7855
  Each tab is defined by an array with the following elements:]]></description>
7856
  <long-description><![CDATA[<p>The array must be populated at runtime in MLASettings::mla_localize_tablist(),
7861
  <p>title => tab label / heading text
7862
  render => rendering function for tab messages and content. Usage:
7863
  $tab_content = <a href="">'render'</a>;</p>]]></long-description>
7864
+ <tag line="848" name="since" description="0.80"/>
7865
+ <tag line="848" name="var" description="" type="array">
7866
  <type by_reference="false">array</type>
7867
  </tag>
7868
  </docblock>
7891