Media Library Assistant - Version 2.00

Version Description

  • New: Requires WordPress v3.5 or greater.
  • New: Enhanced Keyword(s) Search and Taxonomy term keyword(s) search for the [mla_gallery] shortcode. See the Other Notes section section or the Settings/Media Library Assistant Documentation tab for more information.
  • New: Ajax-powered Bulk Edit processing lets you see the progress of large update batches and prevents script timeouts.
  • New: Ajax-powered Custom Field and IPTC/EXIF mapping lets you see the progress of large update runs and prevents script timeouts.
  • New: For custom field mapping rules, the "Raw" Format avoids the conversion of numeric zero values to blanks.
  • New: On the Media/Assistant submenu table Content Templates, including template:[+empty+], have been added to the Bulk Edit area processing for custom fields.
  • New: On the Media/Assistant submenu table the Download rollover action is more secure. Downloads now require a WordPress admin-mode nonce check to succeed.
  • New: For the [mla_tag_cloud] shortcode, the mla_get_terms_clauses filter lets you inspect or modify the SQL clauses used to retrieve terms for the cloud.
  • New: Two (2) new filters for the Media/Assistant submenu table let you intercept the beginning and end of Bulk Edit actions.
  • Fix: For [mla_gallery], the keyword search parameter ("s") now works properly when the user is not logged in.
  • Fix: For IPTC/EXIF mapping of custom fields, field names containing uppercase letters, whitespace and punctuation are now handled correctly.
Download this release

Release Info

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

Code changes from version 1.95 to 2.00

Files changed (58) hide show
  1. css/mla-media-modal-style.css +1 -1
  2. css/mla-style.css +84 -0
  3. examples/alexa-paige-plugin.php.txt +1226 -0
  4. examples/mla-acf-checkbox-example.php.txt +352 -0
  5. examples/mla-audio-shortcode-example.php.txt +143 -0
  6. examples/mla-cloud-hooks-example.php.txt +22 -3
  7. examples/mla-image-source-control-example.php.txt +379 -0
  8. examples/mla-list-table-hooks-example.php.txt +52 -3
  9. examples/mla-mapping-hooks-example.php.txt +1 -1
  10. examples/mla-metadata-mapping-hooks-example.php.txt +1 -1
  11. examples/mla-simple-mapping-hooks-example.php.txt +1 -1
  12. examples/mla-zip-archive-example.php.txt +188 -0
  13. examples/mqtranslate-example.php.txt +106 -0
  14. examples/woofixit.php.txt +1364 -0
  15. includes/class-mla-data.php +92 -59
  16. includes/class-mla-list-table.php +5 -2
  17. includes/class-mla-main.php +370 -190
  18. includes/class-mla-options.php +37 -7
  19. includes/class-mla-settings.php +443 -56
  20. includes/class-mla-shortcodes.php +253 -80
  21. includes/mla-force-download.php +0 -46
  22. includes/mla-plugin-loader.php +1 -1
  23. index.php +2 -2
  24. js/mla-inline-edit-scripts.js +240 -23
  25. js/mla-inline-edit-scripts.min.js +1 -1
  26. js/mla-inline-mapping-scripts.js +241 -0
  27. js/mla-inline-mapping-scripts.min.js +1 -0
  28. js/mla-media-modal-scripts.js +1 -1
  29. js/mla-media-modal-scripts.min.js +1 -1
  30. languages/media-library-assistant-en_US.pot +1017 -911
  31. phpDocs/classes/MLA.html +50 -4
  32. phpDocs/classes/MLAData.html +37 -5
  33. phpDocs/classes/MLAEdit.html +1 -1
  34. phpDocs/classes/MLAMime.html +1 -1
  35. phpDocs/classes/MLAModal.html +1 -1
  36. phpDocs/classes/MLAObjects.html +1 -1
  37. phpDocs/classes/MLAOptions.html +8 -1
  38. phpDocs/classes/MLASettings.html +100 -9
  39. phpDocs/classes/MLAShortcodes.html +1 -1
  40. phpDocs/classes/MLATest.html +2 -2
  41. phpDocs/classes/MLATextWidget.html +1 -1
  42. phpDocs/classes/MLA_Checklist_Walker.html +1 -1
  43. phpDocs/classes/MLA_List_Table.html +26 -43
  44. phpDocs/classes/MLA_Upload_List_Table.html +1 -1
  45. phpDocs/classes/MLA_Upload_Optional_List_Table.html +1 -1
  46. phpDocs/classes/MLA_View_List_Table.html +1 -1
  47. phpDocs/classes/MNA_Pad_Counts_Walker.html +1 -1
  48. phpDocs/deprecated.html +1 -1
  49. phpDocs/errors.html +1 -2
  50. phpDocs/graph_class.html +1 -1
  51. phpDocs/index.html +1 -1
  52. phpDocs/markers.html +2 -2
  53. phpDocs/namespaces/global.html +1 -1
  54. phpDocs/packages/Media Library Assistant.MLA.Child.Theme.html +1 -1
  55. phpDocs/packages/Media Library Assistant.MLA.Child.html +1 -1
  56. phpDocs/packages/Media Library Assistant.MLA.html +1 -1
  57. phpDocs/packages/Media Library Assistant.html +1 -1
  58. phpDocs/structure.xml +1837 -1656
css/mla-media-modal-style.css CHANGED
@@ -48,7 +48,7 @@
48
 
49
  .mode-grid.media-frame .media-toolbar input#media-search-input,
50
  .mode-grid.media-frame .media-toolbar input#mla-search-submit {
51
- margin-top: 11px;
52
  position: static;
53
  width:auto
54
  }
48
 
49
  .mode-grid.media-frame .media-toolbar input#media-search-input,
50
  .mode-grid.media-frame .media-toolbar input#mla-search-submit {
51
+ /* margin-top: 11px; */
52
  position: static;
53
  width:auto
54
  }
css/mla-style.css CHANGED
@@ -138,6 +138,18 @@ textarea[readonly] {
138
  width: 49%
139
  }
140
 
 
 
 
 
 
 
 
 
 
 
 
 
141
  .quick-edit-row-attachment fieldset.inline-edit-col-left label span.title,
142
  .bulk-edit-row-attachment fieldset.inline-edit-col-right label span.title {
143
  width: 6em
@@ -184,6 +196,78 @@ textarea[readonly] {
184
  width: 99%
185
  }
186
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
187
  /*
188
  * MLA Settings page, Views and Uploads tab inline editing - adapted from load-styles.php
189
  */
138
  width: 49%
139
  }
140
 
141
+ #wpbody-content tr#bulk-progress .inline-edit-col-left {
142
+ width: 30%
143
+ }
144
+
145
+ #wpbody-content tr#bulk-progress .inline-edit-col-center {
146
+ width: 30%
147
+ }
148
+
149
+ #wpbody-content tr#bulk-progress .inline-edit-col-right {
150
+ width: 40%
151
+ }
152
+
153
  .quick-edit-row-attachment fieldset.inline-edit-col-left label span.title,
154
  .bulk-edit-row-attachment fieldset.inline-edit-col-right label span.title {
155
  width: 6em
196
  width: 99%
197
  }
198
 
199
+ .bulk-progress-titles div a:before {
200
+ background: none;
201
+ color: #bbb;
202
+ content: '\f153';
203
+ display: block !important;
204
+ font: normal 16px/1 'dashicons';
205
+ speak: none;
206
+ height: 20px;
207
+ text-align: center;
208
+ width: 20px;
209
+ -webkit-font-smoothing: antialiased !important;
210
+ }
211
+
212
+ .bulk-progress-titles div a:before {
213
+ margin: 2px 0;
214
+ }
215
+
216
+ .bulk-progress-titles div a:hover:before {
217
+ color: #c00;
218
+ }
219
+
220
+ .bulk-progress-titles {
221
+ display: block;
222
+ height: 12em;
223
+ border: 1px solid #ddd;
224
+ overflow-y: scroll;
225
+ padding: 0 5px;
226
+ margin: 0 0 5px;
227
+ }
228
+
229
+ .bulk-progress-titles div {
230
+ font-style: normal;
231
+ font-size: 11px;
232
+ }
233
+
234
+ .bulk-progress-titles {
235
+ line-height: 140%;
236
+ }
237
+ .bulk-progress-titles div {
238
+ margin: 0.2em 0.3em;
239
+ }
240
+
241
+ .bulk-progress-titles div a {
242
+ cursor: pointer;
243
+ display: block;
244
+ float: left;
245
+ height: 18px;
246
+ margin: 0 3px 0 -2px;
247
+ overflow: hidden;
248
+ position: relative;
249
+ width: 20px;
250
+ }
251
+
252
+ .bulk-progress-titles div a:before {
253
+ position: relative;
254
+ top: -3px;
255
+ }
256
+
257
+ @media screen and ( max-width: 782px ) {
258
+ .bulk-progress-titles div {
259
+ font-size: 16px;
260
+ }
261
+
262
+ .bulk-progress-titles div {
263
+ margin: 0.8em 0.3em;
264
+ }
265
+
266
+ .bulk-progress-titles div a {
267
+ height: 22px;
268
+ }
269
+ }
270
+
271
  /*
272
  * MLA Settings page, Views and Uploads tab inline editing - adapted from load-styles.php
273
  */
examples/alexa-paige-plugin.php.txt ADDED
@@ -0,0 +1,1226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Provides support for [mla_gallery] BuddyPress URLs, simplified taxonomy queries
4
+ * and multi-taxonomy and term checkbox queries.
5
+ *
6
+ * In this plugin:
7
+ *
8
+ * - The [axp_checkbox_form] shortcode generates a form with checkboxes for taxonomies and terms.
9
+ *
10
+ * - The [axp_checkbox_form] results are used to add a "tax_query" parameter to any [mla_gallery]
11
+ * shortcode with a "checkbox_query=true" parameter. The tax_query will select any term in any
12
+ * taxonomy for inclusion in the [mla_gallery] results.
13
+ *
14
+ * - The WordPress "attachment/media page" links are replaced by "BuddyPress/rtMedia page"
15
+ * links. For audio and video files, an option is provided to substitute the "cover_art"
16
+ * thumbnail image for the item Title in the thumbnail_content.
17
+ *
18
+ * - The "single_query()" and "double_query()" functions provide simplified, higher-performance
19
+ * alternatives to the standard WordPress tax_query.
20
+ *
21
+ * @package Alexa Paige Plugin for BuddyPress & rtMedia
22
+ * @version 1.02
23
+ */
24
+
25
+ /*
26
+ Plugin Name: Alexa Paige Plugin for BuddyPress & rtMedia
27
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
28
+ Description: Supports BuddyPress URLs and multi-taxonomy and term checkbox queries
29
+ Author: David Lingren
30
+ Version: 1.02
31
+ Author URI: http://fairtradejudaica.org/our-story/staff/
32
+
33
+ Copyright 2014 David Lingren
34
+
35
+ This program is free software; you can redistribute it and/or modify
36
+ it under the terms of the GNU General Public License as published by
37
+ the Free Software Foundation; either version 2 of the License, or
38
+ (at your option) any later version.
39
+
40
+ This program is distributed in the hope that it will be useful,
41
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
42
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
43
+ GNU General Public License for more details.
44
+
45
+ You can get a copy of the GNU General Public License by writing to the
46
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
47
+ */
48
+
49
+ /**
50
+ * Class Alexa Paige Plugin hooks several of the filters provided by the [mla_gallery] shortcode
51
+ *
52
+ * Call it anything you want, but give it an unlikely and hopefully unique name. Hiding
53
+ * everything else inside a class means this is the only name you have to worry about.
54
+ *
55
+ * @package Alexa Paige Plugin for BuddyPress & rtMedia
56
+ * @since 1.00
57
+ */
58
+ class AlexaPaigePlugin {
59
+ /**
60
+ * Initialization function, similar to __construct()
61
+ *
62
+ * @since 1.00
63
+ *
64
+ * @return void
65
+ */
66
+ public static function initialize() {
67
+ /*
68
+ * The filters are only useful for front-end posts/pages; exit if in the admin section
69
+ */
70
+ if ( is_admin() )
71
+ return;
72
+
73
+ /*
74
+ * Add the custom shortcode for generating the checkbox form
75
+ */
76
+ add_shortcode( 'axp_checkbox_form', 'AlexaPaigePlugin::axp_checkbox_form' );
77
+
78
+ /*
79
+ * add_filter parameters:
80
+ * $tag - name of the hook you're filtering; defined by [mla_gallery]
81
+ * $function_to_add - function to be called when [mla_gallery] applies the filter
82
+ * $priority - default 10; lower runs earlier, higher runs later
83
+ * $accepted_args - number of arguments your function accepts
84
+ */
85
+ add_filter( 'mla_gallery_attributes', 'AlexaPaigePlugin::axp_gallery_attributes_filter', 10, 1 );
86
+ add_filter( 'mla_gallery_arguments', 'AlexaPaigePlugin::axp_gallery_arguments_filter', 10, 1 );
87
+ add_filter( 'mla_gallery_query_attributes', 'AlexaPaigePlugin::axp_gallery_query_attributes_filter', 10, 1 );
88
+ add_filter( 'mla_gallery_query_arguments', 'AlexaPaigePlugin::axp_gallery_query_arguments_filter', 10, 1 );
89
+ add_action( 'mla_gallery_wp_query_object', 'AlexaPaigePlugin::axp_gallery_wp_query_object_action', 10, 1 );
90
+ add_filter( 'mla_gallery_item_values', 'AlexaPaigePlugin::axp_gallery_item_values_filter', 10, 1 );
91
+ }
92
+
93
+ /**
94
+ * AXP Checkbox Form shortcode
95
+ *
96
+ * This shortcode generates an HTML form with checkbox controls for
97
+ * taxonomy and term choices.
98
+ *
99
+ * @since 1.00
100
+ *
101
+ * @param array the shortcode parameters
102
+ *
103
+ * @return string HTML markup for the generated form
104
+ */
105
+ public static function axp_checkbox_form( $attr ) {
106
+ //error_log( 'AlexaPaigePlugin::axp_checkbox_form $attr = ' . var_export( $attr, true ), 0 );
107
+
108
+ // Extract the checkbox_query parameters in $_REQUEST, so we can check the boxes
109
+ if ( isset( $_REQUEST['axp_taxonomies'] ) ) {
110
+ $axp_taxonomies = $_REQUEST['axp_taxonomies'];
111
+ if ( is_string( $axp_taxonomies ) ) {
112
+ $axp_taxonomies = explode( ',', $axp_taxonomies );
113
+ }
114
+ } else {
115
+ $axp_taxonomies = array();
116
+ }
117
+
118
+ if ( isset( $_REQUEST['axp_terms'] ) ) {
119
+ $axp_terms = $_REQUEST['axp_terms'];
120
+ if ( is_string( $axp_terms ) ) {
121
+ $axp_terms = explode( ',', $axp_terms );
122
+ }
123
+ } else {
124
+ $axp_terms = array();
125
+ }
126
+ //error_log( 'AlexaPaigePlugin::axp_checkbox_form $axp_taxonomies = ' . var_export( $axp_taxonomies, true ), 0 );
127
+ //error_log( 'AlexaPaigePlugin::axp_checkbox_form $axp_terms = ' . var_export( $axp_terms, true ), 0 );
128
+
129
+ // Make sure $attr is an array, even if it's empty
130
+ if ( empty( $attr ) ) {
131
+ $attr = array();
132
+ } elseif ( is_string( $attr ) ) {
133
+ $attr = shortcode_parse_atts( $attr );
134
+ }
135
+
136
+ // These are the default parameters.
137
+ $defaults = array(
138
+ 'taxonomy' => 'rt_male,rt_female',
139
+ 'include' => NULL,
140
+ 'exclude' => NULL,
141
+ 'taxonomy_label' => 'Show&nbsp;me:',
142
+ 'term_label' => 'In&nbsp;categories',
143
+ 'action' => '.',
144
+ );
145
+
146
+ /*
147
+ * Look for 'request' substitution parameters,
148
+ * which can be added to any input parameter
149
+ */
150
+ foreach ( $attr as $attr_key => $attr_value ) {
151
+ // Only expand our own parameters
152
+ if ( array_key_exists( $attr_key, $defaults ) ) {
153
+ $attr_value = str_replace( '{+', '[+', str_replace( '+}', '+]', $attr_value ) );
154
+ $replacement_values = MLAData::mla_expand_field_level_parameters( $attr_value );
155
+
156
+ if ( ! empty( $replacement_values ) ) {
157
+ $attr[ $attr_key ] = MLAData::mla_parse_template( $attr_value, $replacement_values );
158
+ }
159
+ }
160
+ }
161
+
162
+ $arguments = shortcode_atts( $defaults, $attr );
163
+ //error_log( 'AlexaPaigePlugin::axp_checkbox_form $arguments = ' . var_export( $arguments, true ), 0 );
164
+
165
+ // Convert include and exclude arrays, if provided
166
+ $include = array();
167
+ $exclude = array();
168
+ if ( is_string( $arguments['include'] ) ) {
169
+ $include = explode( ',', $arguments['include'] );
170
+ } elseif ( is_string( $arguments['exclude'] ) ) {
171
+ $exclude = explode( ',', $arguments['exclude'] );
172
+ }
173
+
174
+ // Build the term list
175
+ $taxonomies = explode( ',', $arguments['taxonomy'] );
176
+ $display_taxonomies = array();
177
+ $terms = array();
178
+ $args = array( 'hide_empty' => false, 'exclude' => $exclude, 'include' => $include, );
179
+ foreach( $taxonomies as $key => $taxonomy ) {
180
+ $term_objects = get_terms( $taxonomy, $args );
181
+ //error_log( "AlexaPaigePlugin::axp_checkbox_form term_objects [ {$taxonomy} ] = " . var_export( $term_objects, true ), 0 );
182
+ if ( is_array( $term_objects ) ) {
183
+ // Get the name for display purposes
184
+ $display_taxonomies[ $taxonomy ] = get_taxonomy( $taxonomy );
185
+
186
+ foreach ( $term_objects as $term ) {
187
+ // Keep only the fields we want and index by slug to identify duplicates
188
+ if ( isset( $terms[ $term->slug ] ) ) {
189
+ $terms[ $term->slug ]->ttids[] = $term->term_taxonomy_id;
190
+ } else {
191
+ $terms[ $term->slug ] = (object) array( 'term_id' => $term->term_id, 'name' => $term->name, 'ttids' => array ( $term->term_taxonomy_id ) );
192
+ }
193
+ }
194
+ } else {
195
+ // Remove bad values from the list
196
+ unset( $taxonomies[ $key ] );
197
+ }
198
+ } // foreach taxonomy
199
+ //error_log( 'AlexaPaigePlugin::axp_checkbox_form $terms = ' . var_export( $terms, true ), 0 );
200
+
201
+ // Re-organize by term name for display purposes
202
+ $display_terms = array ();
203
+ foreach ( $terms as $key => $term ) {
204
+ /*
205
+ * A term Label has multiple slug/term_id values if
206
+ * it is a child of multiple parents in one taxonomy.
207
+ *
208
+ * A term has multiple term_taxonomy_id values if
209
+ * it appears in multiple taxonomies.
210
+ */
211
+ if ( isset( $display_terms[ $term->name ] ) ) {
212
+ $display_terms[ $term->name ] .= ',' . $key . ':' . $term->term_id . ':' . implode( '/', $term->ttids );
213
+ } else {
214
+ $display_terms[ $term->name ] = $key . ':' . $term->term_id . ':' . implode( '/', $term->ttids );
215
+ }
216
+ }
217
+ //error_log( 'AlexaPaigePlugin::axp_checkbox_form $display_terms = ' . var_export( $display_terms, true ), 0 );
218
+
219
+ // Compose the form
220
+ $output = '<form id="axp-checkbox-form" action="' . $arguments['action'] . '" method="get">' . "\n";
221
+ $output .= "<table>\n";
222
+ $output .= "<tr><td width=1%>\n";
223
+ $output .= $arguments['taxonomy_label'] . "\n";
224
+ $output .= "</td><td>\n";
225
+
226
+ foreach ( $display_taxonomies as $key => $taxonomy ) {
227
+ $checked = ( in_array( $key, $axp_taxonomies ) ) ? 'checked=checked ' : '';
228
+ $output .= sprintf( '<input name="axp_taxonomies[]" id="axp-taxonomy-%1$s" type="checkbox" %2$svalue="%1$s">%3$s&nbsp;&nbsp;', $key, $checked, $taxonomy->label );
229
+ }
230
+
231
+ $output .= "\n</td></tr>\n";
232
+ $output .= "<tr><td width=1%>\n";
233
+ $output .= $arguments['term_label'] . "\n";
234
+ $output .= "</td><td>\n";
235
+
236
+ foreach ( $display_terms as $key => $term ) {
237
+ $checked = ( in_array( esc_attr( $term ), $axp_terms ) ) ? 'checked=checked ' : '';
238
+ $output .= sprintf( '<input name="axp_terms[]" id="axp-term-%1$s" type="checkbox" %2$svalue="%3$s">%4$s&nbsp;&nbsp;', sanitize_title( $term ), $checked, esc_attr( $term ), $key );
239
+ }
240
+
241
+ $output .= "\n</td></tr>\n";
242
+ $output .= "</table>\n";
243
+ $output .= '<input id="axp-checkbox-form-submit" name="axp-checkbox-form-submit" type="submit" value="GO" />
244
+ ' . "\n";
245
+ $output .= "</form>\n";
246
+
247
+ //error_log( 'AlexaPaigePlugin::axp_checkbox_form $output = ' . var_export( $output, true ), 0 );
248
+ return $output;
249
+ } // axp_checkbox_form
250
+
251
+ /**
252
+ * Save the shortcode attributes
253
+ *
254
+ * @since 1.00
255
+ *
256
+ * @var array
257
+ */
258
+ private static $shortcode_attributes = array();
259
+
260
+ /**
261
+ * MLA Gallery (Display) Attributes
262
+ *
263
+ * This filter gives you an opportunity to record or modify the arguments passed in
264
+ * to the shortcode before they are merged with the default arguments used for the
265
+ * gallery display.
266
+ *
267
+ * The $shortcode_attributes array is where you will find any of your own parameters
268
+ * that are coded in the shortcode, e.g., [mla_gallery my_parameter="my value"].
269
+ *
270
+ * @since 1.00
271
+ *
272
+ * @param array the shortcode parameters passed in to the shortcode
273
+ *
274
+ * @return array updated shortcode attributes
275
+ */
276
+ public static function axp_gallery_attributes_filter( $shortcode_attributes ) {
277
+ //error_log( 'AlexaPaigePlugin::axp_gallery_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
278
+
279
+ // Save the attributes for use in the later filters
280
+ self::$shortcode_attributes = $shortcode_attributes;
281
+
282
+ /*
283
+ * The [axp_checkbox_form] results are used to add/modify a "my_custom_sql" parameter to any
284
+ * [mla_gallery] shortcode with a "checkbox_query=true" parameter. The resulting query will
285
+ * select any term in any taxonomy for inclusion in the [mla_gallery] results.
286
+ *
287
+ * We use the 'checkbox_query' shortcode parameter to apply this filter on a
288
+ * gallery-by-gallery basis, leaving other [mla_gallery] instances untouched. If the
289
+ * 'checkbox_query' parameter is not present, we have nothing to do. If the parameter
290
+ * IS present, we use the relevant $_REQUEST parameters to add/modify a "my_custom_sql"
291
+ * parameter for the shortcode parameters.
292
+ */
293
+ if ( isset( self::$shortcode_attributes['checkbox_query'] ) ) {
294
+ $checkbox_query = strtolower( trim( self::$shortcode_attributes['checkbox_query'] ) );
295
+ } else {
296
+ $checkbox_query = 'false';
297
+ }
298
+
299
+ if ( in_array( $checkbox_query, array( 'true', 'tax' ) ) ) {
300
+ //error_log( 'AlexaPaigePlugin::axp_gallery_attributes_filter self::$shortcode_attributes = ' . var_export( self::$shortcode_attributes, true ), 0 );
301
+ //error_log( 'AlexaPaigePlugin::axp_gallery_attributes_filter $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
302
+
303
+ // Extract the checkbox_query parameters
304
+ if ( isset( $_REQUEST['axp_taxonomies'] ) ) {
305
+ $axp_taxonomies = $_REQUEST['axp_taxonomies'];
306
+ if ( is_string( $axp_taxonomies ) ) {
307
+ $axp_taxonomies = explode( ',', $axp_taxonomies );
308
+ }
309
+ } else {
310
+ $axp_taxonomies = array();
311
+ }
312
+
313
+ if ( isset( $_REQUEST['axp_terms'] ) ) {
314
+ $axp_terms = $_REQUEST['axp_terms'];
315
+ if ( is_string( $axp_terms ) ) {
316
+ $axp_terms = explode( ',', $axp_terms );
317
+ }
318
+
319
+ // Convert to term_id values
320
+ $terms = array();
321
+ foreach ( $axp_terms as $key => $axp_term ) {
322
+ // A term Label has multiple slug:term_id values if it is a child of multiple parents
323
+ //$terms = explode( ',', $axp_term );
324
+ foreach ( explode( ',', $axp_term ) as $term ) {
325
+ $parts = explode( ':', $term );
326
+ if ( 'tax' == $checkbox_query ) {
327
+ $terms[] = absint( $parts[1] );
328
+ } else {
329
+ $terms[] = trim( $parts[0] );
330
+ }
331
+ }
332
+ }
333
+ } else {
334
+ $terms = array();
335
+ }
336
+ //error_log( 'AlexaPaigePlugin::axp_gallery_attributes_filter $axp_taxonomies = ' . var_export( $axp_taxonomies, true ), 0 );
337
+ //error_log( 'AlexaPaigePlugin::axp_gallery_attributes_filter $terms = ' . var_export( $terms, true ), 0 );
338
+
339
+
340
+ // Generate a query to find the $terms in any of the $axp_taxonomies
341
+ if ( empty( $axp_taxonomies ) || empty( $terms ) ) {
342
+ self::$shortcode_attributes['checkbox_query'] = "array( array( 'taxonomy' => 'none', 'field' => 'slug', 'terms' => 'none' ) )";
343
+ } else {
344
+ if ( 'tax' == $checkbox_query ) {
345
+ $value = array( 'relation' => 'OR', );
346
+ foreach( $axp_taxonomies as $taxonomy ) {
347
+ $value[] = array(
348
+ 'taxonomy' => $taxonomy,
349
+ 'field' => 'id',
350
+ 'terms' => $terms,
351
+ );
352
+ }
353
+
354
+ self::$shortcode_attributes['checkbox_query'] = $value;
355
+ } else {
356
+ // Add/modify the my_custom_sql parameter
357
+ if ( isset( self::$shortcode_attributes['my_custom_sql'] ) ) {
358
+ $my_query_vars = self::$shortcode_attributes['my_custom_sql'];
359
+ //error_log( 'AlexaPaigePlugin::axp_gallery_attributes_filter checkbox_query self::$shortcode_attributes[my_custom_sql] = ' . var_export( $my_query_vars, true ), 0 );
360
+ if ( empty( $my_query_vars ) ) {
361
+ $my_query_vars = array();
362
+ } elseif ( is_string( $my_query_vars ) ) {
363
+ $my_query_vars = shortcode_parse_atts( $my_query_vars );
364
+ }
365
+ } else {
366
+ $my_query_vars = array();
367
+ }
368
+
369
+ //error_log( 'AlexaPaigePlugin::axp_gallery_attributes_filter checkbox_query $my_query_vars = ' . var_export( $my_query_vars, true ), 0 );
370
+ $new_query_vars = array();
371
+ foreach( $my_query_vars as $key => $value ) {
372
+ $new_query_vars[] = $key . "='" . $value . "'";
373
+ }
374
+
375
+ foreach( $axp_taxonomies as $taxonomy ) {
376
+ $new_query_vars[] = $taxonomy . "='" . implode( ',', $terms ) . "'";
377
+ }
378
+
379
+ unset( self::$shortcode_attributes['checkbox_query'] );
380
+ self::$shortcode_attributes['my_custom_sql'] = implode( ' ', $new_query_vars );
381
+ } // my_custom_sql query
382
+ } // have taxonomies and terms
383
+ //error_log( 'AlexaPaigePlugin::axp_gallery_attributes_filter checkbox_query self::$shortcode_attributes = ' . var_export( self::$shortcode_attributes, true ), 0 );
384
+ } // valid checkbox_query
385
+
386
+ return $shortcode_attributes;
387
+ } // axp_gallery_attributes_filter
388
+
389
+ /**
390
+ * MLA Gallery (Display) Arguments
391
+ *
392
+ * This filter gives you an opportunity to record or modify the gallery display arguments
393
+ * after the shortcode attributes are merged with the default arguments.
394
+ *
395
+ * Note that the values in this array are input or default values, not the final computed
396
+ * values used for the gallery display.
397
+ *
398
+ * @since 1.01
399
+ *
400
+ * @param array shortcode arguments merged with gallery display defaults, so every possible parameter is present
401
+ *
402
+ * @return array updated gallery display arguments
403
+ */
404
+ public static function axp_gallery_arguments_filter( $all_display_parameters ) {
405
+ if ( isset( self::$shortcode_attributes['my_custom_sql'] ) ) {
406
+ /*
407
+ * Determine output type; if it's pagination, count the rows and add the result
408
+ * to the parameters. See the "single_query()" and "double_query()" functions.
409
+ */
410
+ $output_parameters = array_map( 'strtolower', array_map( 'trim', explode( ',', $all_display_parameters['mla_output'] ) ) );
411
+ $is_pagination = in_array( $output_parameters[0], array( 'previous_page', 'next_page', 'paginate_links' ) );
412
+
413
+ if ( $is_pagination ) {
414
+ // Determine query type
415
+ if ( isset( self::$shortcode_attributes['post_mime_type'] ) ) {
416
+ $is_double = true;
417
+ } else {
418
+ $my_query_vars = self::$shortcode_attributes['my_custom_sql'];
419
+ if ( empty( $my_query_vars ) ) {
420
+ $my_query_vars = array();
421
+ } elseif ( is_string( $my_query_vars ) ) {
422
+ $my_query_vars = shortcode_parse_atts( $my_query_vars );
423
+ }
424
+
425
+ if ( isset( $my_query_vars['order'] ) || isset( $my_query_vars['orderby'] ) ) {
426
+ $is_double = true;
427
+ } else {
428
+ $is_double = false;
429
+ }
430
+ }
431
+
432
+ if ( $is_double ) {
433
+ $all_display_parameters['mla_paginate_rows'] = self::double_query( NULL, true );
434
+ } else {
435
+ $all_display_parameters['mla_paginate_rows'] = self::single_query( NULL, true );
436
+ }
437
+ }
438
+ } // my_custom_sql present
439
+
440
+ //error_log( 'AlexaPaigePlugin::axp_gallery_arguments_filter $all_display_parameters = ' . var_export( $all_display_parameters, true ), 0 );
441
+
442
+ return $all_display_parameters;
443
+ } // axp_gallery_arguments_filter
444
+
445
+ /**
446
+ * Save the query attributes
447
+ *
448
+ * @since 1.00
449
+ *
450
+ * @var array
451
+ */
452
+ private static $query_attributes = array();
453
+
454
+ /**
455
+ * MLA Gallery Query Attributes
456
+ *
457
+ * This filter gives you an opportunity to record or modify the arguments passed in to the
458
+ * shortcode before they are merged with the default arguments used to select attachments
459
+ * for the gallery.
460
+ *
461
+ * The query attributes passed in to this filter are the same as those passed through the
462
+ * "MLA Gallery (Display) Attributes" filter above. This filter is provided so you can modify
463
+ * the data selection attributes without disturbing the attributes used for gallery display.
464
+ *
465
+ * @since 1.00
466
+ *
467
+ * @param array the shortcode parameters passed in to the shortcode
468
+ *
469
+ * @return array updated shortcode attributes
470
+ */
471
+ public static function axp_gallery_query_attributes_filter( $query_attributes ) {
472
+ //error_log( 'AlexaPaigePlugin::axp_gallery_query_attributes_filter $query_attributes = ' . var_export( $query_attributes, true ), 0 );
473
+
474
+ if ( isset( self::$shortcode_attributes['checkbox_query'] ) ) {
475
+ $query_attributes['tax_query'] = self::$shortcode_attributes['checkbox_query'];
476
+ } // valid checkbox_query=tax paraneter
477
+
478
+ self::$query_attributes = $query_attributes;
479
+ return $query_attributes;
480
+ } // axp_gallery_query_attributes_filter
481
+
482
+ /**
483
+ * MLA Gallery Query Arguments
484
+ *
485
+ * This filter gives you an opportunity to record or modify the attachment query arguments
486
+ * after the shortcode attributes are merged with the default arguments.
487
+ *
488
+ * @since 1.00
489
+ *
490
+ * @param array shortcode arguments merged with attachment selection defaults, so every possible parameter is present
491
+ *
492
+ * @return array updated attachment query arguments
493
+ */
494
+ public static function axp_gallery_query_arguments_filter( $all_query_parameters ) {
495
+ /*
496
+ * This example executes a custom SQL query that is much simpler than the usual WordPress
497
+ * WP_Query arguments. See the "single_query()" and "double_query()" functions.
498
+ *
499
+ * We use a shortcode parameter of our own to apply this filter on a gallery-by-gallery
500
+ * basis, leaving other [mla_gallery] instances untouched. If the "my_custom_sql"
501
+ * parameter is not present, we have nothing to do. If the parameter IS present,
502
+ * single_query() or double_query() extracts taxonomy values, then builds a custom
503
+ * query that does a simple, high-performance search.
504
+ *
505
+ * The "my_custom_sql" parameter accepts these query arguments:
506
+ * - one or more taxonomy=slug(,slug)... arguments, which will be joined by OR
507
+ * - include_children=true
508
+ * - order and/or orderby
509
+ *
510
+ * The shortcode can also contain the post_mime_type parameter to further filter the results.
511
+ */
512
+ if ( isset( self::$shortcode_attributes['my_custom_sql'] ) ) {
513
+ // Determine query type
514
+ if ( isset( self::$shortcode_attributes['post_mime_type'] ) ) {
515
+ $is_double = true;
516
+ } else {
517
+ $my_query_vars = self::$shortcode_attributes['my_custom_sql'];
518
+ if ( empty( $my_query_vars ) ) {
519
+ $my_query_vars = array();
520
+ } elseif ( is_string( $my_query_vars ) ) {
521
+ $my_query_vars = shortcode_parse_atts( $my_query_vars );
522
+ }
523
+
524
+ if ( isset( $my_query_vars['order'] ) || isset( $my_query_vars['orderby'] ) ) {
525
+ $is_double = true;
526
+ } else {
527
+ $is_double = false;
528
+ }
529
+ }
530
+
531
+ if ( $is_double ) {
532
+ $all_query_parameters = self::double_query( $all_query_parameters );
533
+ } else {
534
+ $all_query_parameters = self::single_query( $all_query_parameters );
535
+ }
536
+ //error_log( 'AlexaPaigePlugin::axp_gallery_query_arguments_filter $is_double = ' . var_export( $is_double, true ), 0 );
537
+ }
538
+
539
+ //error_log( 'AlexaPaigePlugin::axp_gallery_query_arguments_filter $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
540
+ return $all_query_parameters;
541
+ } // axp_gallery_query_arguments_filter
542
+
543
+ /**
544
+ * Save some of the WP_Query object properties
545
+ *
546
+ * @since 1.00
547
+ *
548
+ * @var array
549
+ */
550
+ private static $wp_query_properties = array();
551
+
552
+ /**
553
+ * MLA Gallery WP Query Object
554
+ *
555
+ * This action gives you an opportunity (read-only) to record anything you need from the
556
+ * WP_Query object used to select the attachments for gallery display. This is the ONLY
557
+ * point at which the WP_Query object is defined.
558
+ *
559
+ * If the "buddypress_urls" parameter is present, we add information from the rt_rtm_media
560
+ * table to the self::$wp_query_properties array to be used in the
561
+ * axp_gallery_item_values_filter.
562
+ *
563
+ * @since 1.00
564
+ * @uses MLAShortcodes::$mla_gallery_wp_query_object
565
+ *
566
+ * @param array query arguments passed to WP_Query->query
567
+ *
568
+ * @return void actions never return anything
569
+ */
570
+ public static function axp_gallery_wp_query_object_action( $query_arguments ) {
571
+ //error_log( 'AlexaPaigePlugin::axp_gallery_wp_query_object_action $query_arguments = ' . var_export( $query_arguments, true ), 0 );
572
+
573
+ self::$wp_query_properties = array();
574
+ self::$wp_query_properties ['post_count'] = MLAShortcodes::$mla_gallery_wp_query_object->post_count;
575
+
576
+ // If the "buddypress_urls" parameter is not present, we have nothing to do.
577
+ if ( empty( self::$shortcode_attributes['buddypress_urls'] ) ) {
578
+ return; // Don't need custom URLs
579
+ }
580
+
581
+ if ( 0 == self::$wp_query_properties ['post_count'] ) {
582
+ return; // Empty gallery - nothing to do
583
+ }
584
+
585
+ global $wpdb;
586
+
587
+ // Assemble the WordPress attachment IDs
588
+ $post_info = array();
589
+ foreach( MLAShortcodes::$mla_gallery_wp_query_object->posts as $value ) {
590
+ $post_info[ $value->ID ] = $value->ID;
591
+ }
592
+
593
+ // Build an array of SQL clauses, then run the query
594
+ $query = array();
595
+ $query_parameters = array();
596
+
597
+ $query[] = "SELECT rtm.id, rtm.media_id, rtm.media_author, rtm.media_type, rtm.cover_art, u.user_nicename FROM {$wpdb->prefix}rt_rtm_media AS rtm";
598
+ $query[] = "LEFT JOIN {$wpdb->users} as u";
599
+ $query[] = "ON (rtm.media_author = u.ID)";
600
+
601
+ $placeholders = array();
602
+ foreach ( $post_info as $value ) {
603
+ $placeholders[] = '%s';
604
+ $query_parameters[] = $value;
605
+ }
606
+ $query[] = 'WHERE ( rtm.media_id IN (' . join( ',', $placeholders ) . ') )';
607
+
608
+ $query = join(' ', $query);
609
+ $results = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
610
+
611
+ // Save the values, indexed by WordPress attachment ID, for use in the item filter
612
+ $post_info = array();
613
+ if ( is_array( $results ) ) {
614
+ foreach ( $results as $value ) {
615
+ $post_info[ $value->media_id ] = $value;
616
+ }
617
+ }
618
+
619
+ //error_log( 'AlexaPaigePlugin::axp_gallery_wp_query_object_action $post_info = ' . var_export( $post_info, true ), 0 );
620
+ self::$wp_query_properties ['post_info'] = $post_info;
621
+
622
+ // Unlike Filters, Actions never return anything
623
+ return;
624
+ } // axp_gallery_wp_query_object_action
625
+
626
+ /**
627
+ * MLA Gallery Item Values
628
+ *
629
+ * @since 1.00
630
+ *
631
+ * @param array parameter_name => parameter_value pairs
632
+ *
633
+ * @return array updated substitution parameter name => value pairs
634
+ */
635
+ public static function axp_gallery_item_values_filter( $item_values ) {
636
+ //error_log( 'AlexaPaigePlugin::axp_gallery_item_values_filter $item_values = ' . var_export( $item_values, true ), 0 );
637
+
638
+ /*
639
+ * Look for the custom "prettydate" substitution parameter in the caption.
640
+ */
641
+ if ( preg_match_all( '/\[\+prettydate[ ]?(.*)\+\]/', $item_values['caption'], $matches /*, PREG_OFFSET_CAPTURE*/ ) ) {
642
+ //error_log( 'AlexaPaigePlugin::axp_gallery_item_values_filter $matches = ' . var_export( $matches, true ), 0 );
643
+ /*
644
+ * $matches[0][0] contains the complete match.
645
+ * $matches[1][0] contains the format mask.
646
+ */
647
+ if ( empty( $matches[1][0] ) ) {
648
+ $format = 'F d, Y';
649
+ } else {
650
+ $format = $matches[1][0];
651
+ }
652
+ //error_log( 'AlexaPaigePlugin::axp_gallery_item_values_filter $format = ' . var_export( $format, true ), 0 );
653
+
654
+ /*
655
+ * Default format is YYYY-MM-DD HH:MM:SS (HH = 00 - 23), or 'Y-m-d H:i:s'
656
+ * Convert to UNIX timestamp so any reformat is possible
657
+ */
658
+ $old_date = $item_values['date'];
659
+ $timestamp = mktime( substr( $old_date, 11, 2 ), substr( $old_date, 14, 2 ), substr( $old_date, 17, 2 ), substr( $old_date, 5, 2 ), substr( $old_date, 8, 2 ), substr( $old_date, 0, 4 ) );
660
+
661
+ //error_log( 'AlexaPaigePlugin::axp_gallery_item_values_filter date = ' . var_export( date( $format, $timestamp ), true ), 0 );
662
+ /*
663
+ * Update the caption, replacing the substitution parameter with the formatted value.
664
+ */
665
+ $item_values['caption'] = str_replace( $matches[0][0], date( $format, $timestamp ), $item_values['caption'] );
666
+ }
667
+
668
+ /*
669
+ * We use a shortcode parameter of our own to apply our filters on a gallery-by-gallery
670
+ * basis, leaving other [mla_gallery] instances untouched. If the "buddypress_urls"
671
+ * parameter is not present, we have nothing to do.
672
+ */
673
+ if ( ! isset( self::$shortcode_attributes['buddypress_urls'] ) ) {
674
+ return $item_values; // leave them unchanged
675
+ }
676
+
677
+ if ( isset( self::$wp_query_properties ['post_info'][ $item_values['attachment_ID'] ] ) ) {
678
+ $post_info = self::$wp_query_properties ['post_info'][ $item_values['attachment_ID'] ];
679
+ } else {
680
+ return $item_values; // no matching rtMedia item
681
+ }
682
+
683
+ $new_url = $item_values['site_url'] . '/members/' . $post_info->user_nicename . '/media/' . $post_info->id . '/';
684
+ $new_link = str_replace( $item_values['link_url'], $new_url, $item_values['link'] );
685
+
686
+ // Add the "media thumbnail", if desired and present. Note that the size is fixed at 150x150 pixels.
687
+ if ( 'cover' == strtolower( trim( self::$shortcode_attributes['buddypress_urls'] ) ) ) {
688
+ // Supply a default image for video and music media
689
+ if ( empty( $post_info->cover_art ) && defined( 'RTMEDIA_URL' ) ) {
690
+ switch ( $post_info->media_type ) {
691
+ case 'video':
692
+ $post_info->cover_art = RTMEDIA_URL . 'app/assets/img/video_thumb.png';
693
+ break;
694
+ case 'music':
695
+ $post_info->cover_art = RTMEDIA_URL . 'app/assets/img/audio_thumb.png';
696
+ break;
697
+ }
698
+ }
699
+
700
+ if ( ! empty( $post_info->cover_art ) ) {
701
+ if ( is_numeric( $post_info->cover_art ) ){
702
+ $thumbnail_info = wp_get_attachment_image_src( $post_info->cover_art, 'thumbnail' );
703
+
704
+ if ( false === $thumbnail_info ) {
705
+ $thumbnail_info = wp_get_attachment_image_src( $post_info->cover_art, 'full' );
706
+ }
707
+
708
+ if ( is_array( $thumbnail_info ) ) {
709
+ $post_info->cover_art = $thumbnail_info[ 0 ];
710
+ } else {
711
+ $post_info->cover_art = '';
712
+ }
713
+ }
714
+
715
+ if ( ! empty( $post_info->cover_art ) ) {
716
+ $new_thumbnail = '<img width="150" height="150" src="' . $post_info->cover_art . '" class="attachment-thumbnail" alt="' . $item_values['thumbnail_content'] . '" />';
717
+ $new_link = str_replace( $item_values['thumbnail_content'] . '</a>', $new_thumbnail . '</a>', $new_link );
718
+
719
+ $item_values['thumbnail_content'] = $new_thumbnail;
720
+ $item_values['thumbnail_width'] = '150';
721
+ $item_values['thumbnail_height'] = '150';
722
+ $item_values['thumbnail_url'] = $post_info->cover_art;
723
+ }
724
+ } // has cover art
725
+ } // use cover art
726
+
727
+ $item_values['link_url'] = $new_url;
728
+ $item_values['link'] = $new_link;
729
+
730
+ return $item_values;
731
+ } // axp_gallery_item_values_filter
732
+
733
+ /**
734
+ * Custom query support function, taxonomy terms only
735
+ *
736
+ * Calculates found_rows for pagination or included attachments for gallery.
737
+ *
738
+ * The queries supported in this function's "my_custom_sql" parameter include:
739
+ *
740
+ * - one or more taxonomy term lists, with include_children
741
+ *
742
+ * @since 1.01
743
+ *
744
+ * @param array shortcode arguments merged with attachment selection defaults, so every possible parameter is present
745
+ * @param boolean true for pagination result, false for gallery result
746
+ *
747
+ * @return integer|array found_rows or updated query parameters
748
+ */
749
+ private static function single_query( $all_query_parameters, $is_pagination = false ) {
750
+ global $wpdb;
751
+ //error_log( 'AlexaPaigePlugin::single_query $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
752
+ //error_log( 'AlexaPaigePlugin::single_query $is_pagination = ' . var_export( $is_pagination, true ), 0 );
753
+
754
+ /*
755
+ * This example executes a custom SQL query that is much simpler than the usual
756
+ * WordPress WP_Query arguments.
757
+ *
758
+ * For pagination controls, the number of terms satisfying the query parameters is returned.
759
+ * For gallery display, the query results are fed back to the [mla_gallery] shortcode as a
760
+ * list of attachments using the "include" parameter.
761
+ *
762
+ * The simplification relies on the assumption that the taxonomy and term(s) given as input
763
+ * are ONLY used for Media Library image items, so we can omit the term_relationships/posts
764
+ * JOIN clause for tests on post_mime_type, post_type and post_status.
765
+ */
766
+
767
+ // Make sure $my_query_vars is an array, even if it's empty
768
+ $my_query_vars = self::$shortcode_attributes['my_custom_sql'];
769
+ if ( empty( $my_query_vars ) ) {
770
+ $my_query_vars = array();
771
+ } elseif ( is_string( $my_query_vars ) ) {
772
+ $my_query_vars = shortcode_parse_atts( $my_query_vars );
773
+ }
774
+
775
+ // Start with empty parameter values
776
+ $ttids = array();
777
+
778
+ // Find taxonomy argument, if present, and collect terms
779
+ $taxonomies = get_taxonomies( array( 'object_type' => array( 'attachment' ) ), 'names' );
780
+ foreach( $taxonomies as $taxonomy ) {
781
+ if ( empty( $my_query_vars[ $taxonomy ] ) ) {
782
+ continue;
783
+ }
784
+
785
+ // Found the taxonomy; collect the terms
786
+ $include_children = isset( $my_query_vars['include_children'] ) && 'true' == strtolower( trim( $my_query_vars['include_children'] ) );
787
+
788
+ // Allow for multiple term slug values
789
+ $terms = array();
790
+ $slugs = explode( ',', $my_query_vars[ $taxonomy ] );
791
+ foreach ( $slugs as $slug ) {
792
+ $args = array( 'slug' => $slug, 'hide_empty' => false );
793
+ $terms = array_merge( $terms, get_terms( $taxonomy, $args ) );
794
+ }
795
+
796
+ foreach( $terms as $term ) {
797
+ // Index by ttid to remove duplicates
798
+ $ttids[ $term->term_taxonomy_id ] = $term->term_taxonomy_id;
799
+
800
+ if ( $include_children ) {
801
+ $args = array( 'child_of' => $term->term_id, 'hide_empty' => false );
802
+ $children = get_terms( 'attachment_category', $args );
803
+ foreach( $children as $child ) {
804
+ $ttids[] = $child->term_taxonomy_id;
805
+ }
806
+ } // include_children
807
+ } // $term
808
+
809
+ break;
810
+ }
811
+
812
+ // Build an array of SQL clauses
813
+ $query = array();
814
+ $query_parameters = array();
815
+
816
+ if ( $is_pagination ) {
817
+ $query[] = "SELECT COUNT( DISTINCT object_id ) FROM {$wpdb->term_relationships} as tr";
818
+ } else {
819
+ $query[] = "SELECT DISTINCT tr.object_id FROM {$wpdb->term_relationships} as tr";
820
+ }
821
+
822
+ $placeholders = array();
823
+ if ( ! empty( $ttids ) ) {
824
+ foreach ( $ttids as $ttid ) {
825
+ $placeholders[] = '%s';
826
+ $query_parameters[] = $ttid;
827
+ }
828
+ } else {
829
+ $placeholders[] = '%s';
830
+ $query_parameters[] = '0';
831
+ }
832
+
833
+ $query[] = 'WHERE ( tr.term_taxonomy_id IN (' . join( ',', $placeholders ) . ') )';
834
+
835
+ // ORDER BY clause would go here, if needed
836
+
837
+ if ( ! $is_pagination ) {
838
+ /*
839
+ * Add pagination to our query, then remove it from the query
840
+ * that WordPress will process after we're done.
841
+ * MLA pagination will override WordPress pagination
842
+ */
843
+ $current_page = self::$shortcode_attributes['mla_page_parameter'];
844
+ if ( ! empty( $all_query_parameters[ $current_page ] ) ) {
845
+ if ( isset( $all_query_parameters['mla_paginate_total'] ) && ( $all_query_parameters[ $current_page ] > $all_query_parameters['mla_paginate_total'] ) ) {
846
+ $paged = 0xFFFF; // suppress further output
847
+ } else {
848
+ $paged = $all_query_parameters[ $current_page ];
849
+ }
850
+ } else {
851
+ $paged = $all_query_parameters['paged'];
852
+ }
853
+
854
+ if ( empty( $paged ) ) {
855
+ $paged = 1;
856
+ } elseif ( 'current' == strtolower( $paged ) ) {
857
+ /*
858
+ * Note: The query variable 'page' holds the pagenumber for a single paginated
859
+ * Post or Page that includes the <!--nextpage--> Quicktag in the post content.
860
+ */
861
+ if ( get_query_var( 'page' ) ) {
862
+ $paged = get_query_var( 'page' );
863
+ } else {
864
+ $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
865
+ }
866
+ } elseif ( is_numeric( $paged ) ) {
867
+ $paged = absint( $paged );
868
+ } elseif ( '' === $paged ) {
869
+ $paged = 1;
870
+ }
871
+
872
+ $limit = absint( ! empty( $all_query_parameters['posts_per_page'] ) ? $all_query_parameters['posts_per_page'] : $all_query_parameters['numberposts'] );
873
+ $offset = $limit * ( $paged - 1);
874
+ if ( 0 < $offset && 0 < $limit ) {
875
+ $query[] = 'LIMIT %d, %d';
876
+ $query_parameters[] = $offset;
877
+ $query_parameters[] = $limit;
878
+ } elseif ( 0 < $limit ) {
879
+ $query[] = 'LIMIT %d';
880
+ $query_parameters[] = $limit;
881
+ } elseif ( 0 < $offset ) {
882
+ $query[] = 'LIMIT %d, %d';
883
+ $query_parameters[] = $offset;
884
+ $query_parameters[] = 0x7FFFFFFF; // big number!
885
+ }
886
+
887
+ $all_query_parameters['nopaging'] = true;
888
+ $all_query_parameters['numberposts'] = 0;
889
+ $all_query_parameters['posts_per_page'] = 0;
890
+ $all_query_parameters['paged'] = NULL;
891
+ $all_query_parameters['offset'] = NULL;
892
+ $all_query_parameters[ $current_page ] = NULL;
893
+ $all_query_parameters['mla_paginate_total'] = NULL ;
894
+ } // ! is_pagination
895
+
896
+ $query = join(' ', $query);
897
+ //error_log( 'AlexaPaigePlugin::single_query $query = ' . var_export( $query, true ), 0 );
898
+ //error_log( 'AlexaPaigePlugin::single_query $query_parameters = ' . var_export( $query_parameters, true ), 0 );
899
+ if ( $is_pagination ) {
900
+ $count = $wpdb->get_var( $wpdb->prepare( $query, $query_parameters ) );
901
+ //error_log( 'AlexaPaigePlugin::single_query $count = ' . var_export( $count, true ), 0 );
902
+ return $count;
903
+ }
904
+
905
+ $ids = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
906
+ //error_log( 'AlexaPaigePlugin::single_query $ids = ' . var_export( $ids, true ), 0 );
907
+ if ( is_array( $ids ) ) {
908
+ $includes = array();
909
+ foreach ( $ids as $id ) {
910
+ $includes[] = $id->object_id;
911
+ }
912
+ $all_query_parameters['include'] = implode( ',', $includes );
913
+ } else {
914
+ $all_query_parameters['include'] = '1'; // return no images
915
+ }
916
+
917
+ //error_log( 'AlexaPaigePlugin::single_query $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
918
+ return $all_query_parameters;
919
+ } // single_query
920
+
921
+ /**
922
+ * Custom query support function, taxonomy terms plus post_mime_type and orderby/order fields
923
+ *
924
+ * For pagination controls, the number of terms satisfying the query parameters is returned.
925
+ * For gallery display, the query results are fed back to the [mla_gallery] shortcode as a
926
+ * list of attachments using the "include" parameter.
927
+ *
928
+ * The queries supported in this function's "my_custom_sql" parameter include:
929
+ *
930
+ * - one or more taxonomy term lists, with include_children
931
+ * - one or more post_mime_types
932
+ * - ORDER BY post table fields
933
+ *
934
+ * @since 1.01
935
+ *
936
+ * @param array shortcode arguments merged with attachment selection defaults, so every possible parameter is present
937
+ * @param boolean true for pagination result, false for gallery result
938
+ *
939
+ * @return integer|array found_rows or updated query parameters
940
+ */
941
+ private static function double_query( $all_query_parameters, $is_pagination = false ) {
942
+ global $wpdb;
943
+ //error_log( 'AlexaPaigePlugin::double_query $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
944
+ //error_log( 'AlexaPaigePlugin::double_query $is_pagination = ' . var_export( $is_pagination, true ), 0 );
945
+
946
+ /*
947
+ * This example executes two custom SQL queries that are more efficient than the usual
948
+ * WordPress WP_Query arguments.
949
+ *
950
+ * The first query is on taxonomy and term(s) only, yielding a list of object_id (post ID) values.
951
+ * The second query filters the list by post_mime_type, orders it and paginates it.
952
+ */
953
+
954
+ // Make sure $my_query_vars is an array, even if it's empty
955
+ $my_query_vars = self::$shortcode_attributes['my_custom_sql'];
956
+ if ( empty( $my_query_vars ) ) {
957
+ $my_query_vars = array();
958
+ } elseif ( is_string( $my_query_vars ) ) {
959
+ $my_query_vars = shortcode_parse_atts( $my_query_vars );
960
+ }
961
+ //error_log( 'AlexaPaigePlugin::double_query $my_query_vars = ' . var_export( $my_query_vars, true ), 0 );
962
+
963
+ // Start with empty parameter values
964
+ $ttids = array();
965
+
966
+ // Find taxonomy argument, if present, and collect terms
967
+ $taxonomies = get_taxonomies( array( 'object_type' => array( 'attachment' ) ), 'names' );
968
+ foreach( $taxonomies as $taxonomy ) {
969
+ if ( empty( $my_query_vars[ $taxonomy ] ) ) {
970
+ continue;
971
+ }
972
+
973
+ // Found the taxonomy; collect the terms
974
+ $include_children = isset( $my_query_vars['include_children'] ) && 'true' == strtolower( trim( $my_query_vars['include_children'] ) );
975
+
976
+ // Allow for multiple term slug values
977
+ $terms = array();
978
+ $slugs = explode( ',', $my_query_vars[ $taxonomy ] );
979
+ foreach ( $slugs as $slug ) {
980
+ $args = array( 'slug' => $slug, 'hide_empty' => false );
981
+ $terms = array_merge( $terms, get_terms( $taxonomy, $args ) );
982
+ }
983
+ //error_log( "AlexaPaigePlugin::double_query {$taxonomy} \$terms = " . var_export( $terms, true ), 0 );
984
+
985
+ foreach( $terms as $term ) {
986
+ // Index by ttid to remove duplicates
987
+ $ttids[ $term->term_taxonomy_id ] = $term->term_taxonomy_id;
988
+
989
+ if ( $include_children ) {
990
+ $args = array( 'child_of' => $term->term_id, 'hide_empty' => false );
991
+ $children = get_terms( 'attachment_category', $args );
992
+ foreach( $children as $child ) {
993
+ $ttids[] = $child->term_taxonomy_id;
994
+ }
995
+ } // include_children
996
+ } // $term
997
+ //error_log( "AlexaPaigePlugin::double_query {$taxonomy} \$ttids = " . var_export( $ttids, true ), 0 );
998
+ }
999
+
1000
+ // Build an array of SQL clauses for the term_relationships query
1001
+ $query = array();
1002
+ $query_parameters = array();
1003
+
1004
+ $query[] = "SELECT DISTINCT tr.object_id FROM {$wpdb->term_relationships} as tr";
1005
+
1006
+ $placeholders = array();
1007
+ if ( ! empty( $ttids ) ) {
1008
+ foreach ( $ttids as $ttid ) {
1009
+ $placeholders[] = '%s';
1010
+ $query_parameters[] = $ttid;
1011
+ }
1012
+ } else {
1013
+ $placeholders[] = '%s';
1014
+ $query_parameters[] = '0';
1015
+ }
1016
+
1017
+ $query[] = 'WHERE ( tr.term_taxonomy_id IN (' . join( ',', $placeholders ) . ') )';
1018
+ $query = join(' ', $query);
1019
+ //error_log( 'AlexaPaigePlugin::double_query term_relationships $query = ' . var_export( $query, true ), 0 );
1020
+ //error_log( 'AlexaPaigePlugin::double_query term_relationships $query_parameters = ' . var_export( $query_parameters, true ), 0 );
1021
+ $ids = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
1022
+ //error_log( 'AlexaPaigePlugin::double_query term_relationships $ids = ' . var_export( $ids, true ), 0 );
1023
+ if ( is_array( $ids ) ) {
1024
+ $includes = array();
1025
+ foreach ( $ids as $id ) {
1026
+ $includes[] = $id->object_id;
1027
+ }
1028
+ } else {
1029
+ $all_query_parameters['include'] = '1'; // return no items
1030
+ //error_log( 'AlexaPaigePlugin::double_query empty gallery ', 0 );
1031
+ return $all_query_parameters;
1032
+ }
1033
+
1034
+ // Build an array of SQL clauses for the posts query
1035
+ $query = array();
1036
+ $query_parameters = array();
1037
+
1038
+ if ( $is_pagination ) {
1039
+ $query[] = "SELECT COUNT( * ) FROM {$wpdb->posts} as p";
1040
+ } else {
1041
+ $query[] = "SELECT ID FROM {$wpdb->posts} as p";
1042
+ }
1043
+
1044
+ $placeholders = array();
1045
+ if ( ! empty( $includes ) ) {
1046
+ foreach ( $includes as $include ) {
1047
+ $placeholders[] = '%s';
1048
+ $query_parameters[] = $include;
1049
+ }
1050
+ } else {
1051
+ $placeholders[] = '%s';
1052
+ $query_parameters[] = '0';
1053
+ }
1054
+
1055
+ $query[] = 'WHERE ( ( p.ID IN (' . join( ',', $placeholders ) . ') )';
1056
+
1057
+ if ( ! empty( self::$shortcode_attributes['post_mime_type'] ) ) {
1058
+ if ( 'all' != strtolower( self::$shortcode_attributes['post_mime_type'] ) ) {
1059
+ $query[] = str_replace( '%', '%%', wp_post_mime_type_where( self::$shortcode_attributes['post_mime_type'], 'p' ) );
1060
+ }
1061
+ } else {
1062
+ $query[] = "AND (p.post_mime_type LIKE 'image/%%')";
1063
+ }
1064
+
1065
+ // Close the WHERE clause
1066
+ $query[] = ')';
1067
+
1068
+ /*
1069
+ * ORDER BY clause - we will pre-sort the ids array handed off to the mla_gallery shortcode
1070
+ */
1071
+ $all_query_parameters['orderby'] = 'post__in';
1072
+ $all_query_parameters['order'] = 'ASC';
1073
+
1074
+ $orderby = 'none';
1075
+ $order = 'ASC';
1076
+
1077
+ if ( ! ( $is_pagination || empty( $my_query_vars['orderby'] ) ) ) {
1078
+ $orderby = strtolower( $my_query_vars['orderby'] );
1079
+
1080
+ if ( ! empty( $my_query_vars['order'] ) ) {
1081
+ $order = strtoupper( $my_query_vars['order'] );
1082
+ if ( 'DESC' != $order ) {
1083
+ $order = 'ASC';
1084
+ }
1085
+ }
1086
+ }
1087
+
1088
+ switch ( $orderby ) {
1089
+ case 'id':
1090
+ $query[] = 'ORDER BY p.ID ' . $order;
1091
+ break;
1092
+ case 'author':
1093
+ $query[] = 'ORDER BY p.post_author ' . $order;
1094
+ break;
1095
+ case 'date':
1096
+ $query[] = 'ORDER BY p.post_date ' . $order;
1097
+ break;
1098
+ case 'description':
1099
+ case 'content':
1100
+ $query[] = 'ORDER BY p.post_content ' . $order;
1101
+ break;
1102
+ case 'title':
1103
+ $query[] = 'ORDER BY p.post_title ' . $order;
1104
+ break;
1105
+ case 'caption':
1106
+ case 'excerpt':
1107
+ $query[] = 'ORDER BY p.post_excerpt ' . $order;
1108
+ break;
1109
+ case 'slug':
1110
+ case 'name':
1111
+ $query[] = 'ORDER BY p.post_name ' . $order;
1112
+ break;
1113
+ case 'modified':
1114
+ $query[] = 'ORDER BY p.post_modified ' . $order;
1115
+ break;
1116
+ case 'parent':
1117
+ $query[] = 'ORDER BY p.post_parent ' . $order;
1118
+ break;
1119
+ case 'menu_order':
1120
+ $query[] = 'ORDER BY p.menu_order ' . $order;
1121
+ break;
1122
+ case 'post_mime_type':
1123
+ $query[] = 'ORDER BY p.post_mime_type ' . $order;
1124
+ break;
1125
+ case 'comment_count':
1126
+ $query[] = 'ORDER BY p.comment_count ' . $order;
1127
+ break;
1128
+ case 'rand':
1129
+ case 'random':
1130
+ $query[] = 'ORDER BY RAND() ' . $order;
1131
+ break;
1132
+ case 'none':
1133
+ default:
1134
+ break;
1135
+ }
1136
+
1137
+ if ( ! $is_pagination ) {
1138
+ /*
1139
+ * Add pagination to our query, then remove it from the query
1140
+ * that WordPress will process after we're done.
1141
+ * MLA pagination will override WordPress pagination
1142
+ */
1143
+ $current_page = self::$shortcode_attributes['mla_page_parameter'];
1144
+ if ( ! empty( $all_query_parameters[ $current_page ] ) ) {
1145
+ if ( isset( $all_query_parameters['mla_paginate_total'] ) && ( $all_query_parameters[ $current_page ] > $all_query_parameters['mla_paginate_total'] ) ) {
1146
+ $paged = 0xFFFF; // suppress further output
1147
+ } else {
1148
+ $paged = $all_query_parameters[ $current_page ];
1149
+ }
1150
+ } else {
1151
+ $paged = $all_query_parameters['paged'];
1152
+ }
1153
+
1154
+ if ( empty( $paged ) ) {
1155
+ $paged = 1;
1156
+ } elseif ( 'current' == strtolower( $paged ) ) {
1157
+ /*
1158
+ * Note: The query variable 'page' holds the pagenumber for a single paginated
1159
+ * Post or Page that includes the <!--nextpage--> Quicktag in the post content.
1160
+ */
1161
+ if ( get_query_var( 'page' ) ) {
1162
+ $paged = get_query_var( 'page' );
1163
+ } else {
1164
+ $paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
1165
+ }
1166
+ } elseif ( is_numeric( $paged ) ) {
1167
+ $paged = absint( $paged );
1168
+ } elseif ( '' === $paged ) {
1169
+ $paged = 1;
1170
+ }
1171
+
1172
+ $limit = absint( ! empty( $all_query_parameters['posts_per_page'] ) ? $all_query_parameters['posts_per_page'] : $all_query_parameters['numberposts'] );
1173
+ $offset = $limit * ( $paged - 1);
1174
+ if ( 0 < $offset && 0 < $limit ) {
1175
+ $query[] = 'LIMIT %d, %d';
1176
+ $query_parameters[] = $offset;
1177
+ $query_parameters[] = $limit;
1178
+ } elseif ( 0 < $limit ) {
1179
+ $query[] = 'LIMIT %d';
1180
+ $query_parameters[] = $limit;
1181
+ } elseif ( 0 < $offset ) {
1182
+ $query[] = 'LIMIT %d, %d';
1183
+ $query_parameters[] = $offset;
1184
+ $query_parameters[] = 0x7FFFFFFF; // big number!
1185
+ }
1186
+
1187
+ $all_query_parameters['nopaging'] = true;
1188
+ $all_query_parameters['numberposts'] = 0;
1189
+ $all_query_parameters['posts_per_page'] = 0;
1190
+ $all_query_parameters['paged'] = NULL;
1191
+ $all_query_parameters['offset'] = NULL;
1192
+ $all_query_parameters[ $current_page ] = NULL;
1193
+ $all_query_parameters['mla_paginate_total'] = NULL ;
1194
+ } // ! is_pagination
1195
+
1196
+ $query = join(' ', $query);
1197
+ //error_log( 'AlexaPaigePlugin::double_query posts $query = ' . var_export( $query, true ), 0 );
1198
+ //error_log( 'AlexaPaigePlugin::double_query posts $query_parameters = ' . var_export( $query_parameters, true ), 0 );
1199
+ if ( $is_pagination ) {
1200
+ $count = $wpdb->get_var( $wpdb->prepare( $query, $query_parameters ) );
1201
+ //error_log( 'AlexaPaigePlugin::double_query posts $count = ' . var_export( $count, true ), 0 );
1202
+ return $count;
1203
+ }
1204
+
1205
+ $ids = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
1206
+ //error_log( 'AlexaPaigePlugin::double_query posts $ids = ' . var_export( $ids, true ), 0 );
1207
+ if ( is_array( $ids ) ) {
1208
+ $includes = array();
1209
+ foreach ( $ids as $id ) {
1210
+ $includes[] = $id->ID;
1211
+ }
1212
+ $all_query_parameters['include'] = implode( ',', $includes );
1213
+ } else {
1214
+ $all_query_parameters['include'] = '1'; // return no items
1215
+ }
1216
+
1217
+ //error_log( 'AlexaPaigePlugin::double_query $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
1218
+ return $all_query_parameters;
1219
+ } // double_query
1220
+ } // Class AlexaPaigePlugin
1221
+
1222
+ /*
1223
+ * Install the filters at an early opportunity
1224
+ */
1225
+ add_action('init', 'AlexaPaigePlugin::initialize');
1226
+ ?>
examples/mla-acf-checkbox-example.php.txt ADDED
@@ -0,0 +1,352 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Provides an example of hooking the filters provided by the MLA_List_Table class
4
+ *
5
+ * In this example, an Advanced Custom Fields "checkbox" custom field is added to the
6
+ * Media/Assistant submenu table, Quick Edit and Bulk Edit areas.
7
+ *
8
+ * The custom field name is "acf_checkbox"; this is the ACF "Field Name", not the
9
+ * "Field Label". You can support another field by changing all occurances of the name
10
+ * to match the field you want.
11
+ *
12
+ * You must also define an MLA Custom Field mapping rule for the field. You can leave
13
+ * the Data Source as "-- None (select a value) --" and the other defaults. Check the
14
+ * three boxes for MLA Column, Quick Edit and Bulk Edit support.
15
+ *
16
+ *
17
+ * @package MLA ACF Checkbox Example
18
+ * @version 1.00
19
+ */
20
+
21
+ /*
22
+ Plugin Name: MLA ACF Checkbox Example
23
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
24
+ Description: Provides an example of hooking the filters provided by the MLA_List_Table class
25
+ Author: David Lingren
26
+ Version: 1.00
27
+ Author URI: http://fairtradejudaica.org/our-story/staff/
28
+
29
+ Copyright 2014 David Lingren
30
+
31
+ This program is free software; you can redistribute it and/or modify
32
+ it under the terms of the GNU General Public License as published by
33
+ the Free Software Foundation; either version 2 of the License, or
34
+ (at your option) any later version.
35
+
36
+ This program is distributed in the hope that it will be useful,
37
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
38
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
39
+ GNU General Public License for more details.
40
+
41
+ You can get a copy of the GNU General Public License by writing to the
42
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
43
+ */
44
+
45
+ /**
46
+ * Class MLA ACF Checkbox Example hooks some of the filters provided by the MLA_List_Table class
47
+ *
48
+ * Call it anything you want, but give it an unlikely and hopefully unique name. Hiding everything
49
+ * else inside a class means this is the only name you have to worry about.
50
+ *
51
+ * @package MLA ACF Checkbox Example
52
+ * @since 1.00
53
+ */
54
+ class MLAACFCheckboxExample {
55
+ /**
56
+ * Initialization function, similar to __construct()
57
+ *
58
+ * @since 1.00
59
+ *
60
+ * @return void
61
+ */
62
+ public static function initialize() {
63
+ /*
64
+ * The filters are only useful for the admin section; exit in the front-end posts/pages
65
+ */
66
+ if ( ! is_admin() )
67
+ return;
68
+
69
+ /*
70
+ * add_filter parameters:
71
+ * $tag - name of the hook you're filtering; defined by [mla_gallery]
72
+ * $function_to_add - function to be called when [mla_gallery] applies the filter
73
+ * $priority - default 10; lower runs earlier, higher runs later
74
+ * $accepted_args - number of arguments your function accepts
75
+ */
76
+
77
+ /*
78
+ * Defined in /media-library-assistant/includes/class-mla-main.php
79
+ */
80
+ add_filter( 'mla_list_table_inline_action', 'MLAACFCheckboxExample::mla_list_table_inline_action', 10, 2 ); //
81
+ add_filter( 'mla_list_table_bulk_action', 'MLAACFCheckboxExample::mla_list_table_bulk_action', 10, 3 ); //
82
+ add_filter( 'mla_list_table_inline_values', 'MLAACFCheckboxExample::mla_list_table_inline_values', 10, 1 ); //
83
+
84
+ /*
85
+ * Defined in /media-library-assistant/includes/class-mla-list-table.php
86
+ */
87
+ add_filter( 'mla_list_table_get_columns', 'MLAACFCheckboxExample::mla_list_table_get_columns', 10, 1 ); //
88
+ add_filter( 'mla_list_table_get_hidden_columns', 'MLAACFCheckboxExample::mla_list_table_get_hidden_columns', 10, 1 ); //
89
+ add_filter( 'mla_list_table_get_sortable_columns', 'MLAACFCheckboxExample::mla_list_table_get_sortable_columns', 10, 1 ); //
90
+ add_filter( 'mla_list_table_column_default', 'MLAACFCheckboxExample::mla_list_table_column_default', 10, 3 ); //
91
+ add_filter( 'mla_list_table_build_inline_data', 'MLAACFCheckboxExample::mla_list_table_build_inline_data', 10, 2 );
92
+ }
93
+
94
+ /**
95
+ * Records the list of active search fields
96
+ *
97
+ * @since 1.00
98
+ *
99
+ * @var array
100
+ */
101
+ private static $search_fields = array();
102
+
103
+ /**
104
+ * Process an MLA_List_Table inline action, i.e., Quick Edit
105
+ *
106
+ * This filter gives you an opportunity to pre-process an MLA_List_Table "Quick Edit"
107
+ * action before the MLA handler.
108
+ *
109
+ * @since 1.00
110
+ *
111
+ * @param array $item_content NULL, to indicate no handler.
112
+ * @param integer $post_id the affected attachment.
113
+ *
114
+ * @return object updated $item_content. NULL if no handler, otherwise
115
+ * ( 'message' => error or status message(s), 'body' => '',
116
+ * 'prevent_default' => true to bypass the MLA handler )
117
+ */
118
+ public static function mla_list_table_inline_action( $item_content, $post_id ) {
119
+ /*
120
+ * Convert the comma-delimited string of "checked" checkbox values back to
121
+ * an ACF-compatible array
122
+ */
123
+ if ( isset( $_REQUEST['custom_updates'] ) && isset( $_REQUEST['custom_updates']['acf_checkbox'] ) ) {
124
+ if ( ! empty( $_REQUEST['custom_updates']['acf_checkbox'] ) ) {
125
+ $_REQUEST['custom_updates']['acf_checkbox'] = explode( ',', $_REQUEST['custom_updates']['acf_checkbox'] );
126
+ }
127
+ }
128
+
129
+ return $item_content;
130
+ } // mla_list_table_inline_action
131
+
132
+ /**
133
+ * Process an MLA_List_Table bulk action
134
+ *
135
+ * This filter gives you an opportunity to pre-process an MLA_List_Table page-level
136
+ * or single-item action, standard or custom, before the MLA handler.
137
+ * The filter is called once for each of the items in $_REQUEST['cb_attachment'].
138
+ *
139
+ * @since 1.00
140
+ *
141
+ * @param array $item_content NULL, to indicate no handler.
142
+ * @param string $bulk_action the requested action.
143
+ * @param integer $post_id the affected attachment.
144
+ *
145
+ * @return object updated $item_content. NULL if no handler, otherwise
146
+ * ( 'message' => error or status message(s), 'body' => '',
147
+ * 'prevent_default' => true to bypass the MLA handler )
148
+ */
149
+ public static function mla_list_table_bulk_action( $item_content, $bulk_action, $post_id ) {
150
+ static $acf_checkbox_value = NULL;
151
+
152
+ /*
153
+ * If the field is present and this is the first time we've been called,
154
+ * save the field value for our own update process and remove it from the
155
+ * $_REQUEST array to prevent MLA's default update processing.
156
+ */
157
+ if ( ! empty( $_REQUEST['c_acf_checkbox'] ) ) {
158
+ if ( is_null( $acf_checkbox_value ) ) {
159
+ $acf_checkbox_value = trim( $_REQUEST['c_acf_checkbox'] );
160
+ }
161
+
162
+ $_REQUEST['c_acf_checkbox'] = '';
163
+ }
164
+
165
+ /*
166
+ * If the field is present,apply our own update process. Note the
167
+ * special 'empty' value to bulk-delete the custom field entirely.
168
+ */
169
+ if ( ! empty( $acf_checkbox_value ) ) {
170
+ if ( 'empty' == $acf_checkbox_value ) {
171
+ delete_post_meta( $post_id, 'acf_checkbox' );
172
+ $item_content = array( 'message' => sprintf( __( 'Deleting %1$s', 'media-library-assistant' ) . '<br>', 'acf_checkbox' ) );
173
+ } else {
174
+ update_post_meta( $post_id, 'acf_checkbox', explode( ',', $acf_checkbox_value ) );
175
+ $item_content = array( 'message' => sprintf( __( 'Adding %1$s = %2$s', 'media-library-assistant' ) . '<br>', 'acf_checkbox', $acf_checkbox_value ) );
176
+ }
177
+ }
178
+
179
+ return $item_content;
180
+ } // mla_list_table_bulk_action
181
+
182
+ /**
183
+ * MLA_List_Table inline edit item values
184
+ *
185
+ * This filter gives you a chance to modify and extend the substitution values
186
+ * for the Quick and Bulk Edit forms.
187
+ *
188
+ * @since 1.00
189
+ *
190
+ * @param array $item_values parameter_name => parameter_value pairs
191
+ *
192
+ * @return array updated substitution parameter name => value pairs
193
+ */
194
+ public static function mla_list_table_inline_values( $item_values ) {
195
+ /*
196
+ * Replace the ACF Field Name with a more friendly Field Label
197
+ */
198
+ $item_values['custom_fields'] = str_replace( '>acf_checkbox<', '>ACF Checkbox<', $item_values['custom_fields'] );
199
+ $item_values['bulk_custom_fields'] = str_replace( '>acf_checkbox<', '>ACF Checkbox<', $item_values['bulk_custom_fields'] );
200
+
201
+ return $item_values;
202
+ } // mla_list_table_inline_values
203
+
204
+ /**
205
+ * Filter the MLA_List_Table columns
206
+ *
207
+ * This MLA-specific filter gives you an opportunity to filter the list table columns.
208
+ *
209
+ * @since 1.00
210
+ *
211
+ * @param array $columns An array of columns.
212
+ * format: column_slug => Column Label
213
+ *
214
+ * @return array updated array of columns.
215
+ */
216
+ public static function mla_list_table_get_columns( $columns ) {
217
+ /*
218
+ * Replace the MLA custom field slug with our own slug value
219
+ */
220
+ if ( isset( $columns['c_acf_checkbox'] ) ) {
221
+ unset( $columns['c_acf_checkbox'] );
222
+ $columns['my_acf_checkbox'] = 'ACF Checkbox';
223
+ }
224
+
225
+ return $columns;
226
+ } // mla_list_table_get_columns_filter
227
+
228
+ /**
229
+ * Filter the MLA_List_Table hidden columns
230
+ *
231
+ * This MLA-specific filter gives you an opportunity to filter the hidden list table columns.
232
+ *
233
+ * @since 1.00
234
+ *
235
+ * @param array $hidden_columns An array of columns.
236
+ * format: index => column_slug
237
+ *
238
+ * @return array updated array of columns.
239
+ */
240
+ public static function mla_list_table_get_hidden_columns( $hidden_columns ) {
241
+ /*
242
+ * Replace the MLA custom field slug with our own slug value
243
+ */
244
+ $index = array_search( 'c_acf_checkbox', $hidden_columns );
245
+ if ( false !== $index ) {
246
+ $hidden_columns[ $index ] = 'my_acf_checkbox';
247
+ }
248
+
249
+ return $hidden_columns;
250
+ } // mla_list_table_get_hidden_columns_filter
251
+
252
+ /**
253
+ * Filter the MLA_List_Table sortable columns
254
+ *
255
+ * This MLA-specific filter gives you an opportunity to filter the sortable list table
256
+ * columns; a good alternative to the 'manage_media_page_mla_menu_sortable_columns' filter.
257
+ *
258
+ * @since 1.00
259
+ *
260
+ * @param array $sortable_columns An array of columns.
261
+ * Format: 'column_slug' => 'orderby'
262
+ * or 'column_slug' => array( 'orderby', true )
263
+ *
264
+ * The second format will make the initial sorting order be descending.
265
+ *
266
+ * @return array updated array of columns.
267
+ */
268
+ public static function mla_list_table_get_sortable_columns( $sortable_columns ) {
269
+ /*
270
+ * Replace the MLA custom field slug with our own slug value
271
+ */
272
+ if ( isset( $sortable_columns['c_acf_checkbox'] ) ) {
273
+ $sortable_columns['my_acf_checkbox'] = $sortable_columns['c_acf_checkbox'];
274
+ unset( $sortable_columns['c_acf_checkbox'] );
275
+ }
276
+
277
+ return $sortable_columns;
278
+ } // mla_list_table_get_sortable_columns_filter
279
+
280
+ /**
281
+ * Supply a column value if no column-specific function has been defined
282
+ *
283
+ * Called when the MLA_List_Table can't find a value for a given column.
284
+ *
285
+ * @since 1.00
286
+ *
287
+ * @param string NULL, indicating no default content
288
+ * @param array A singular item (one full row's worth of data)
289
+ * @param array The name/slug of the column to be processed
290
+ * @return string Text or HTML to be placed inside the column
291
+ */
292
+ public static function mla_list_table_column_default( $content, $item, $column_name ) {
293
+ /*
294
+ * Convert the ACF-compatible array to a comma-delimited list of
295
+ * "checked" checkbox values.
296
+ */
297
+ if ( 'my_acf_checkbox' == $column_name ) {
298
+ $values = isset( $item->mla_item_acf_checkbox ) ? $item->mla_item_acf_checkbox : '';
299
+ if ( empty( $values ) ) {
300
+ return '';
301
+ } elseif ( is_array( $values ) ) {
302
+ return '[' . implode( '],[', $values ) . ']';
303
+ } else {
304
+ return $values;
305
+ }
306
+ }
307
+
308
+ return $content;
309
+ } // mla_list_table_column_default_filter
310
+
311
+ /**
312
+ * Filter the data for inline (Quick and Bulk) editing
313
+ *
314
+ * This filter gives you an opportunity to filter the data passed to the
315
+ * JavaScript functions for Quick and Bulk editing.
316
+ *
317
+ * @since 1.00
318
+ *
319
+ * @param string $inline_data The HTML markup for inline data.
320
+ * @param object $item The current Media Library item.
321
+ *
322
+ * @return string updated HTML markup for inline data.
323
+ */
324
+ public static function mla_list_table_build_inline_data( $inline_data, $item ) {
325
+ /*
326
+ * Convert the ACF-compatible array to a comma-delimited list of
327
+ * "checked" checkbox values.
328
+ */
329
+ $match_count = preg_match_all( '/\<div class="c_acf_checkbox"\>(.*)\<\/div\>/', $inline_data, $matches, PREG_OFFSET_CAPTURE );
330
+ if ( ( $match_count == false ) || ( $match_count == 0 ) ) {
331
+ return $inline_data;
332
+ }
333
+
334
+ if ( isset( $item->mla_item_acf_checkbox ) ) {
335
+ $value = $item->mla_item_acf_checkbox;
336
+ if ( is_array( $value ) ) {
337
+ $head = substr( $inline_data, 0, $matches[1][0][1] );
338
+ $value = esc_html( implode( ',', $value ) );
339
+ $tail = substr( $inline_data, ( $matches[1][0][1] + strlen( $matches[1][0][0] ) ) );
340
+ $inline_data = $head . $value . $tail;
341
+ }
342
+ }
343
+
344
+ return $inline_data;
345
+ } // mla_list_table_build_inline_data_filter
346
+ } // Class MLAACFCheckboxExample
347
+
348
+ /*
349
+ * Install the filters at an early opportunity
350
+ */
351
+ add_action('init', 'MLAACFCheckboxExample::initialize');
352
+ ?>
examples/mla-audio-shortcode-example.php.txt ADDED
@@ -0,0 +1,143 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Provides an example of hooking the filters provided by the [mla_gallery] shortcode:
4
+ *
5
+ * This example replaces the gallery item content with "audio player" elements generated
6
+ * by the WordPress [audio] shortcode.
7
+ *
8
+ * @package MLA Audio Shortcode Example
9
+ * @version 1.00
10
+ */
11
+
12
+ /*
13
+ Plugin Name: MLA Audio Shortcode Example
14
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
+ Description: Provides an example of hooking the filters provided by the [mla_gallery] shortcode
16
+ Author: David Lingren
17
+ Version: 1.00
18
+ Author URI: http://fairtradejudaica.org/our-story/staff/
19
+
20
+ Copyright 2013, 2014 David Lingren
21
+
22
+ This program is free software; you can redistribute it and/or modify
23
+ it under the terms of the GNU General Public License as published by
24
+ the Free Software Foundation; either version 2 of the License, or
25
+ (at your option) any later version.
26
+
27
+ This program is distributed in the hope that it will be useful,
28
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
29
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30
+ GNU General Public License for more details.
31
+
32
+ You can get a copy of the GNU General Public License by writing to the
33
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
34
+ */
35
+
36
+ /**
37
+ * Class MLA Audio Shortcode Example hooks two of the filters provided by the [mla_gallery] shortcode
38
+ *
39
+ * Call it anything you want, but give it an unlikely and hopefully unique name. Hiding enerything
40
+ * else inside a class means this is the only name you have to worry about.
41
+ *
42
+ * @package MLA Audio Shortcode Example
43
+ * @since 1.00
44
+ */
45
+ class MLAAudioShortcodeExample {
46
+ /**
47
+ * Initialization function, similar to __construct()
48
+ *
49
+ * @since 1.00
50
+ *
51
+ * @return void
52
+ */
53
+ public static function initialize() {
54
+ /*
55
+ * The filters are only useful for front-end posts/pages; exit if in the admin section
56
+ */
57
+ if ( is_admin() )
58
+ return;
59
+
60
+ /*
61
+ * add_filter parameters:
62
+ * $tag - name of the hook you're filtering; defined by [mla_gallery]
63
+ * $function_to_add - function to be called when [mla_gallery] applies the filter
64
+ * $priority - default 10; lower runs earlier, higher runs later
65
+ * $accepted_args - number of arguments your function accepts
66
+ */
67
+ add_filter( 'mla_gallery_attributes', 'MLAAudioShortcodeExample::mla_gallery_attributes_filter', 10, 1 );
68
+ add_filter( 'mla_gallery_item_values', 'MLAAudioShortcodeExample::mla_gallery_item_values_filter', 10, 1 );
69
+ }
70
+
71
+ /**
72
+ * Save the shortcode attributes
73
+ *
74
+ * @since 1.00
75
+ *
76
+ * @var array
77
+ */
78
+ private static $shortcode_attributes = array();
79
+
80
+ /**
81
+ * MLA Gallery (Display) Attributes
82
+ *
83
+ * This filter gives you an opportunity to record or modify the arguments passed in to the shortcode
84
+ * before they are merged with the default arguments used for the gallery display.
85
+ *
86
+ * The $shortcode_attributes array is where you will find any of your own parameters that are coded in the
87
+ * shortcode, e.g., [mla_gallery my_parameter="my value"].
88
+ *
89
+ * @since 1.00
90
+ *
91
+ * @param array the shortcode parameters passed in to the shortcode
92
+ *
93
+ * @return array updated shortcode attributes
94
+ */
95
+ public static function mla_gallery_attributes_filter( $shortcode_attributes ) {
96
+ /*
97
+ * Save the attributes for use in the later filters
98
+ */
99
+ self::$shortcode_attributes = $shortcode_attributes;
100
+
101
+ return $shortcode_attributes;
102
+ } // mla_gallery_attributes_filter
103
+
104
+ /**
105
+ * MLA Gallery Item Values
106
+ *
107
+ * @since 1.00
108
+ *
109
+ * @param array parameter_name => parameter_value pairs
110
+ *
111
+ * @return array updated substitution parameter name => value pairs
112
+ */
113
+ public static function mla_gallery_item_values_filter( $item_values ) {
114
+ /*
115
+ * We use a shortcode parameter of our own to apply this filter on a gallery-by-gallery
116
+ * basis, leaving other [mla_gallery] instances untouched. If the "my_custom_audio"
117
+ * parameter is not present, we have nothing to do. If the parameter IS present,
118
+ * we replace the [+link+] value with the [audio] shortcode output.
119
+ *
120
+ * The "my_custom_audio" parameter can be used to pass parameters to the [audio] shortcode,
121
+ * such as autoplay, loop and preload. No validation of the parameters is done here.
122
+ */
123
+ if ( isset( self::$shortcode_attributes['my_custom_audio'] ) ) {
124
+ $audio_args = self::$shortcode_attributes['my_custom_audio'];
125
+ if ( empty( $audio_args ) ) {
126
+ $audio_args = array();
127
+ } elseif ( is_string( $audio_args ) ) {
128
+ $audio_args = shortcode_parse_atts( $audio_args );
129
+ }
130
+
131
+ $audio_args['src'] = $item_values['base_url'] . '/' . $item_values['base_file'];
132
+ $item_values['link'] = wp_audio_shortcode( $audio_args );
133
+ }
134
+
135
+ return $item_values;
136
+ } // mla_gallery_item_values_filter
137
+ } // Class MLAAudioShortcodeExample
138
+
139
+ /*
140
+ * Install the filters at an early opportunity
141
+ */
142
+ add_action('init', 'MLAAudioShortcodeExample::initialize');
143
+ ?>
examples/mla-cloud-hooks-example.php.txt CHANGED
@@ -7,7 +7,7 @@
7
  * available in the [mla_tag_cloud] shortcode.
8
  *
9
  * @package MLA Tag Cloud Hooks Example
10
- * @version 1.00
11
  */
12
 
13
  /*
@@ -15,7 +15,7 @@ Plugin Name: MLA Tag Cloud Hooks Example
15
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
16
  Description: Provides an example of hooking the filters provided by the [mla_tag_cloud] shortcode
17
  Author: David Lingren
18
- Version: 1.00
19
  Author URI: http://fairtradejudaica.org/our-story/staff/
20
 
21
  Copyright 2013 David Lingren
@@ -71,6 +71,7 @@ class MLATagCloudHooksExample {
71
  add_filter( 'mla_tag_cloud_arguments', 'MLATagCloudHooksExample::mla_tag_cloud_arguments_filter', 10, 1 );
72
  add_filter( 'mla_get_terms_query_attributes', 'MLATagCloudHooksExample::mla_get_terms_query_attributes_filter', 10, 1 );
73
  add_filter( 'mla_get_terms_query_arguments', 'MLATagCloudHooksExample::mla_get_terms_query_arguments_filter', 10, 1 );
 
74
  add_filter( 'mla_get_terms_query_results', 'MLATagCloudHooksExample::mla_get_terms_query_results_filter', 10, 1 );
75
 
76
  add_filter( 'mla_tag_cloud_scale', 'MLATagCloudHooksExample::mla_tag_cloud_scale_filter', 10, 4 );
@@ -239,6 +240,24 @@ class MLATagCloudHooksExample {
239
  return $all_query_parameters;
240
  } // mla_get_terms_query_arguments_filter
241
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
  /**
243
  * MLA Tag Cloud Query Results
244
  *
@@ -252,7 +271,7 @@ class MLATagCloudHooksExample {
252
  * @return array updated tag objects
253
  */
254
  public static function mla_get_terms_query_results_filter( $tag_objects ) {
255
- //error_log( 'MLATagCloudHooksExample::mla_get_terms_query_results_filter $tag_objects = ' . var_export( $tag_objects, true ), 0 );
256
 
257
  return $tag_objects;
258
  } // mla_get_terms_query_results_filter
7
  * available in the [mla_tag_cloud] shortcode.
8
  *
9
  * @package MLA Tag Cloud Hooks Example
10
+ * @version 1.01
11
  */
12
 
13
  /*
15
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
16
  Description: Provides an example of hooking the filters provided by the [mla_tag_cloud] shortcode
17
  Author: David Lingren
18
+ Version: 1.01
19
  Author URI: http://fairtradejudaica.org/our-story/staff/
20
 
21
  Copyright 2013 David Lingren
71
  add_filter( 'mla_tag_cloud_arguments', 'MLATagCloudHooksExample::mla_tag_cloud_arguments_filter', 10, 1 );
72
  add_filter( 'mla_get_terms_query_attributes', 'MLATagCloudHooksExample::mla_get_terms_query_attributes_filter', 10, 1 );
73
  add_filter( 'mla_get_terms_query_arguments', 'MLATagCloudHooksExample::mla_get_terms_query_arguments_filter', 10, 1 );
74
+ add_filter( 'mla_get_terms_clauses', 'MLATagCloudHooksExample::mla_get_terms_clauses_filter', 10, 1 );
75
  add_filter( 'mla_get_terms_query_results', 'MLATagCloudHooksExample::mla_get_terms_query_results_filter', 10, 1 );
76
 
77
  add_filter( 'mla_tag_cloud_scale', 'MLATagCloudHooksExample::mla_tag_cloud_scale_filter', 10, 4 );
240
  return $all_query_parameters;
241
  } // mla_get_terms_query_arguments_filter
242
 
243
+ /**
244
+ * MLA Tag Cloud Query Clauses
245
+ *
246
+ * This action gives you a final opportunity to inspect or modify
247
+ * the SQL clauses for the data selection process.
248
+ *
249
+ * @since 1.01
250
+ *
251
+ * @param array SQL clauses ( 'fields', 'join', 'where', 'order', 'orderby', 'limits' )
252
+ *
253
+ * @return array updated SQL clauses
254
+ */
255
+ public static function mla_get_terms_clauses_filter( $clauses ) {
256
+ //error_log( 'MLATagCloudHooksExample::mla_get_terms_clauses_filter $clauses = ' . var_export( $clauses, true ), 0 );
257
+
258
+ return $clauses;
259
+ } // mla_get_terms_clauses_filter
260
+
261
  /**
262
  * MLA Tag Cloud Query Results
263
  *
271
  * @return array updated tag objects
272
  */
273
  public static function mla_get_terms_query_results_filter( $tag_objects ) {
274
+ error_log( 'MLATagCloudHooksExample::mla_get_terms_query_results_filter $tag_objects = ' . var_export( $tag_objects, true ), 0 );
275
 
276
  return $tag_objects;
277
  } // mla_get_terms_query_results_filter
examples/mla-image-source-control-example.php.txt ADDED
@@ -0,0 +1,379 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Provides an example of hooking the filters provided by the MLA_List_Table class
4
+ *
5
+ * This example adds friendly column names and edit values for the "Image Source Control" plugin.
6
+ * It is a good example of tailoring custom field handling in the Media/Assistant submenu table.
7
+ *
8
+ * @package MLA Image Source Control Example
9
+ * @version 1.00
10
+ */
11
+
12
+ /*
13
+ Plugin Name: MLA Image Source Control Example
14
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
+ Description: Provides an example of hooking the filters provided by the MLA_List_Table class
16
+ Author: David Lingren
17
+ Version: 1.00
18
+ Author URI: http://fairtradejudaica.org/our-story/staff/
19
+
20
+ Copyright 2014 David Lingren
21
+
22
+ This program is free software; you can redistribute it and/or modify
23
+ it under the terms of the GNU General Public License as published by
24
+ the Free Software Foundation; either version 2 of the License, or
25
+ (at your option) any later version.
26
+
27
+ This program is distributed in the hope that it will be useful,
28
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
29
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30
+ GNU General Public License for more details.
31
+
32
+ You can get a copy of the GNU General Public License by writing to the
33
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
34
+ */
35
+
36
+ /**
37
+ * Class MLA Image Source Control Example hooks all of the filters provided by the MLA_List_Table class
38
+ *
39
+ * Call it anything you want, but give it an unlikely and hopefully unique name. Hiding everything
40
+ * else inside a class means this is the only name you have to worry about.
41
+ *
42
+ * @package MLA Image Source Control Example
43
+ * @since 1.00
44
+ */
45
+ class MLAImageSourceControlExample {
46
+ /**
47
+ * Initialization function, similar to __construct()
48
+ *
49
+ * @since 1.00
50
+ *
51
+ * @return void
52
+ */
53
+ public static function initialize() {
54
+ /*
55
+ * The filters are only useful for the admin section; exit in the front-end posts/pages
56
+ */
57
+ if ( ! is_admin() )
58
+ return;
59
+
60
+ /*
61
+ * add_filter parameters:
62
+ * $tag - name of the hook you're filtering; defined by [mla_gallery]
63
+ * $function_to_add - function to be called when [mla_gallery] applies the filter
64
+ * $priority - default 10; lower runs earlier, higher runs later
65
+ * $accepted_args - number of arguments your function accepts
66
+ */
67
+
68
+ /*
69
+ * Defined in /media-library-assistant/includes/class-mla-main.php
70
+ */
71
+ add_filter( 'mla_list_table_inline_action', 'MLAImageSourceControlExample::mla_list_table_inline_action', 10, 2 );
72
+ add_filter( 'mla_list_table_bulk_action', 'MLAImageSourceControlExample::mla_list_table_bulk_action', 10, 3 );
73
+ add_filter( 'mla_list_table_inline_values', 'MLAImageSourceControlExample::mla_list_table_inline_values', 10, 1 );
74
+
75
+ /*
76
+ * Defined in /media-library-assistant/includes/class-mla-list-table.php
77
+ */
78
+ add_filter( 'mla_list_table_get_columns', 'MLAImageSourceControlExample::mla_list_table_get_columns', 10, 1 );
79
+ add_filter( 'mla_list_table_get_hidden_columns', 'MLAImageSourceControlExample::mla_list_table_get_hidden_columns', 10, 1 );
80
+ add_filter( 'mla_list_table_get_sortable_columns', 'MLAImageSourceControlExample::mla_list_table_get_sortable_columns', 10, 1 );
81
+ add_filter( 'mla_list_table_column_default', 'MLAImageSourceControlExample::mla_list_table_column_default', 10, 3 );
82
+ add_filter( 'mla_list_table_build_inline_data', 'MLAImageSourceControlExample::mla_list_table_build_inline_data', 10, 2 );
83
+ }
84
+
85
+ /**
86
+ * Records the list of active search fields
87
+ *
88
+ * @since 1.00
89
+ *
90
+ * @var array
91
+ */
92
+ private static $search_fields = array();
93
+
94
+ /**
95
+ * Process an MLA_List_Table inline action, i.e., Quick Edit
96
+ *
97
+ * This filter gives you an opportunity to pre-process an MLA_List_Table "Quick Edit"
98
+ * action before the MLA handler.
99
+ *
100
+ * @since 1.00
101
+ *
102
+ * @param array $item_content NULL, to indicate no handler.
103
+ * @param integer $post_id the affected attachment.
104
+ *
105
+ * @return object updated $item_content. NULL if no handler, otherwise
106
+ * ( 'message' => error or status message(s), 'body' => '',
107
+ * 'prevent_default' => true to bypass the MLA handler )
108
+ */
109
+ public static function mla_list_table_inline_action( $item_content, $post_id ) {
110
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_inline_action $item_content = ' . var_export( $item_content, true ), 0 );
111
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_inline_action $post_id = ' . var_export( $post_id, true ), 0 );
112
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_inline_action $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
113
+
114
+ if ( isset( $_REQUEST['custom_updates'] ) && isset( $_REQUEST['custom_updates']['isc_image_source_own'] ) ) {
115
+ if ( 'yes' == trim( strtolower( $_REQUEST['custom_updates']['isc_image_source_own'] ) ) ) {
116
+ $_REQUEST['custom_updates']['isc_image_source_own'] = 1;
117
+ } else {
118
+ $_REQUEST['custom_updates']['isc_image_source_own'] = '';
119
+ }
120
+ }
121
+
122
+ return $item_content;
123
+ } // mla_list_table_inline_action
124
+
125
+ /**
126
+ * Process an MLA_List_Table bulk action
127
+ *
128
+ * This filter gives you an opportunity to pre-process an MLA_List_Table page-level
129
+ * or single-item action, standard or custom, before the MLA handler.
130
+ * The filter is called once for each of the items in $_REQUEST['cb_attachment'].
131
+ *
132
+ * @since 1.00
133
+ *
134
+ * @param array $item_content NULL, to indicate no handler.
135
+ * @param string $bulk_action the requested action.
136
+ * @param integer $post_id the affected attachment.
137
+ *
138
+ * @return object updated $item_content. NULL if no handler, otherwise
139
+ * ( 'message' => error or status message(s), 'body' => '',
140
+ * 'prevent_default' => true to bypass the MLA handler )
141
+ */
142
+ public static function mla_list_table_bulk_action( $item_content, $bulk_action, $post_id ) {
143
+ static $isc_image_source_own_value = NULL;
144
+
145
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_bulk_action $item_content = ' . var_export( $item_content, true ), 0 );
146
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_bulk_action $bulk_action = ' . var_export( $bulk_action, true ), 0 );
147
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_bulk_action $post_id = ' . var_export( $post_id, true ), 0 );
148
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_inline_action $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
149
+
150
+ if ( ! empty( $_REQUEST['c_isc_image_source_own'] ) ) {
151
+ if ( is_null( $isc_image_source_own_value ) ) {
152
+ $isc_image_source_own_value = trim( strtolower( $_REQUEST['c_isc_image_source_own'] ) );
153
+ }
154
+
155
+ $_REQUEST['c_isc_image_source_own'] = '';
156
+ }
157
+
158
+ if ( ! empty( $isc_image_source_own_value ) ) {
159
+ if ( 'yes' == $isc_image_source_own_value ) {
160
+ update_post_meta( $post_id, 'isc_image_source_own', 1 );
161
+ $item_content = array( 'message' => sprintf( __( 'Adding %1$s = %2$s', 'media-library-assistant' ) . '<br>', 'isc_image_source_own', $isc_image_source_own_value ) );
162
+ } else {
163
+ delete_post_meta( $post_id, 'isc_image_source_own' );
164
+ $item_content = array( 'message' => sprintf( __( 'Deleting %1$s', 'media-library-assistant' ) . '<br>', 'isc_image_source_own' ) );
165
+ }
166
+ }
167
+
168
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_inline_action final $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
169
+ return $item_content;
170
+ } // mla_list_table_bulk_action
171
+
172
+ /**
173
+ * MLA_List_Table inline edit item values
174
+ *
175
+ * This filter gives you a chance to modify and extend the substitution values
176
+ * for the Quick and Bulk Edit forms.
177
+ *
178
+ * @since 1.00
179
+ *
180
+ * @param array $item_values parameter_name => parameter_value pairs
181
+ *
182
+ * @return array updated substitution parameter name => value pairs
183
+ */
184
+ public static function mla_list_table_inline_values( $item_values ) {
185
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_inline_values $item_values = ' . var_export( $item_values, true ), 0 );
186
+
187
+ $item_values['custom_fields'] = str_replace( '>isc_image_source<', '>Source<', $item_values['custom_fields'] );
188
+ $item_values['bulk_custom_fields'] = str_replace( '>isc_image_source<', '>Source<', $item_values['bulk_custom_fields'] );
189
+
190
+ $item_values['custom_fields'] = str_replace( '>isc_image_source_own<', '>Own<', $item_values['custom_fields'] );
191
+ $item_values['bulk_custom_fields'] = str_replace( '>isc_image_source_own<', '>Own<', $item_values['bulk_custom_fields'] );
192
+
193
+ $item_values['custom_fields'] = str_replace( '>isc_image_source_url<', '>Source URL<', $item_values['custom_fields'] );
194
+ $item_values['bulk_custom_fields'] = str_replace( '>isc_image_source_url<', '>Source URL<', $item_values['bulk_custom_fields'] );
195
+
196
+ return $item_values;
197
+ } // mla_list_table_inline_values
198
+
199
+ /**
200
+ * Filter the MLA_List_Table columns
201
+ *
202
+ * This MLA-specific filter gives you an opportunity to filter the list table columns.
203
+ *
204
+ * @since 1.00
205
+ *
206
+ * @param array $columns An array of columns.
207
+ * format: column_slug => Column Label
208
+ *
209
+ * @return array updated array of columns.
210
+ */
211
+ public static function mla_list_table_get_columns( $columns ) {
212
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_get_columns $columns = ' . var_export( $columns, true ), 0 );
213
+ if ( isset( $columns['c_isc_image_source'] ) ) {
214
+ unset( $columns['c_isc_image_source'] );
215
+ $columns['my_isc_image_source'] = 'Source';
216
+ }
217
+
218
+ if ( isset( $columns['c_isc_image_source_own'] ) ) {
219
+ unset( $columns['c_isc_image_source_own'] );
220
+ $columns['my_isc_image_source_own'] = 'Own';
221
+ }
222
+
223
+ if ( isset( $columns['c_isc_image_source_url'] ) ) {
224
+ unset( $columns['c_isc_image_source_url'] );
225
+ $columns['my_isc_image_source_url'] = 'Source URL';
226
+ }
227
+
228
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_get_columns final $columns = ' . var_export( $columns, true ), 0 );
229
+ return $columns;
230
+ } // mla_list_table_get_columns_filter
231
+
232
+ /**
233
+ * Filter the MLA_List_Table hidden columns
234
+ *
235
+ * This MLA-specific filter gives you an opportunity to filter the hidden list table columns.
236
+ *
237
+ * @since 1.00
238
+ *
239
+ * @param array $hidden_columns An array of columns.
240
+ * format: index => column_slug
241
+ *
242
+ * @return array updated array of columns.
243
+ */
244
+ public static function mla_list_table_get_hidden_columns( $hidden_columns ) {
245
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_get_hidden_columns $hidden_columns = ' . var_export( $hidden_columns, true ), 0 );
246
+
247
+ $index = array_search( 'c_isc_image_source', $hidden_columns );
248
+ if ( false !== $index ) {
249
+ $hidden_columns[ $index ] = 'my_isc_image_source';
250
+ }
251
+
252
+ $index = array_search( 'c_isc_image_source_own', $hidden_columns );
253
+ if ( false !== $index ) {
254
+ $hidden_columns[ $index ] = 'my_isc_image_source_own';
255
+ }
256
+
257
+ $index = array_search( 'c_isc_image_source_url', $hidden_columns );
258
+ if ( false !== $index ) {
259
+ $hidden_columns[ $index ] = 'my_isc_image_source_url';
260
+ }
261
+
262
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_get_hidden_columns final $hidden_columns = ' . var_export( $hidden_columns, true ), 0 );
263
+ return $hidden_columns;
264
+ } // mla_list_table_get_hidden_columns_filter
265
+
266
+ /**
267
+ * Filter the MLA_List_Table sortable columns
268
+ *
269
+ * This MLA-specific filter gives you an opportunity to filter the sortable list table
270
+ * columns; a good alternative to the 'manage_media_page_mla_menu_sortable_columns' filter.
271
+ *
272
+ * @since 1.00
273
+ *
274
+ * @param array $sortable_columns An array of columns.
275
+ * Format: 'column_slug' => 'orderby'
276
+ * or 'column_slug' => array( 'orderby', true )
277
+ *
278
+ * The second format will make the initial sorting order be descending.
279
+ *
280
+ * @return array updated array of columns.
281
+ */
282
+ public static function mla_list_table_get_sortable_columns( $sortable_columns ) {
283
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_get_sortable_columns $sortable_columns = ' . var_export( $sortable_columns, true ), 0 );
284
+
285
+ if ( isset( $sortable_columns['c_isc_image_source'] ) ) {
286
+ $sortable_columns['my_isc_image_source'] = $sortable_columns['c_isc_image_source'];
287
+ unset( $sortable_columns['c_isc_image_source'] );
288
+ }
289
+
290
+ if ( isset( $sortable_columns['c_isc_image_source_own'] ) ) {
291
+ $sortable_columns['my_isc_image_source_own'] = $sortable_columns['c_isc_image_source_own'];
292
+ unset( $sortable_columns['c_isc_image_source_own'] );
293
+ }
294
+
295
+ if ( isset( $sortable_columns['c_isc_image_source_url'] ) ) {
296
+ $sortable_columns['my_isc_image_source_url'] = $sortable_columns['c_isc_image_source_url'];
297
+ unset( $sortable_columns['c_isc_image_source_url'] );
298
+ }
299
+
300
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_get_sortable_columns final $sortable_columns = ' . var_export( $sortable_columns, true ), 0 );
301
+ return $sortable_columns;
302
+ } // mla_list_table_get_sortable_columns_filter
303
+
304
+ /**
305
+ * Supply a column value if no column-specific function has been defined
306
+ *
307
+ * Called when the MLA_List_Table can't find a value for a given column.
308
+ *
309
+ * @since 1.00
310
+ *
311
+ * @param string NULL, indicating no default content
312
+ * @param array A singular item (one full row's worth of data)
313
+ * @param array The name/slug of the column to be processed
314
+ * @return string Text or HTML to be placed inside the column
315
+ */
316
+ public static function mla_list_table_column_default( $content, $item, $column_name ) {
317
+ //error_log( "MLAImageSourceControlExample::mla_list_table_column_default ({$column_name}) \$item = " . var_export( $item, true ), 0 );
318
+
319
+ if ( 'my_isc_image_source' == $column_name ) {
320
+ return isset( $item->mla_item_isc_image_source ) ? $item->mla_item_isc_image_source : '';
321
+ }
322
+
323
+ if ( 'my_isc_image_source_own' == $column_name ) {
324
+ $values = isset( $item->mla_item_isc_image_source_own ) ? $item->mla_item_isc_image_source_own : '';
325
+ if ( empty( $values ) ) {
326
+ return 'no';
327
+ } else {
328
+ return 'yes';
329
+ }
330
+ }
331
+
332
+ if ( 'my_isc_image_source_url' == $column_name ) {
333
+ return isset( $item->mla_item_isc_image_source_url ) ? $item->mla_item_isc_image_source_url : '';
334
+ }
335
+
336
+ return $content;
337
+ } // mla_list_table_column_default_filter
338
+
339
+ /**
340
+ * Filter the data for inline (Quick and Bulk) editing
341
+ *
342
+ * This filter gives you an opportunity to filter the data passed to the
343
+ * JavaScript functions for Quick and Bulk editing.
344
+ *
345
+ * @since 1.00
346
+ *
347
+ * @param string $inline_data The HTML markup for inline data.
348
+ * @param object $item The current Media Library item.
349
+ *
350
+ * @return string updated HTML markup for inline data.
351
+ */
352
+ public static function mla_list_table_build_inline_data( $inline_data, $item ) {
353
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_build_inline_data $inline_data = ' . var_export( $inline_data, true ), 0 );
354
+ //error_log( 'MLAImageSourceControlExample::mla_list_table_build_inline_data $item = ' . var_export( $item, true ), 0 );
355
+
356
+ $match_count = preg_match_all( '/\<div class="c_isc_image_source_own"\>(.*)\<\/div\>/', $inline_data, $matches, PREG_OFFSET_CAPTURE );
357
+ if ( ( $match_count == false ) || ( $match_count == 0 ) ) {
358
+ return $inline_data;
359
+ }
360
+
361
+ if ( isset( $item->mla_item_isc_image_source_own ) && 1 == $item->mla_item_isc_image_source_own ) {
362
+ $value = esc_html( 'yes' );
363
+ } else {
364
+ $value = esc_html( 'no' );
365
+ }
366
+
367
+ $head = substr( $inline_data, 0, $matches[1][0][1] );
368
+ $tail = substr( $inline_data, ( $matches[1][0][1] + strlen( $matches[1][0][0] ) ) );
369
+ $inline_data = $head . $value . $tail;
370
+
371
+ return $inline_data;
372
+ } // mla_list_table_build_inline_data_filter
373
+ } // Class MLAImageSourceControlExample
374
+
375
+ /*
376
+ * Install the filters at an early opportunity
377
+ */
378
+ add_action('init', 'MLAImageSourceControlExample::initialize');
379
+ ?>
examples/mla-list-table-hooks-example.php.txt CHANGED
@@ -3,7 +3,7 @@
3
  * Provides an example of hooking the filters provided by the MLA_List_Table class
4
  *
5
  * @package MLA List Table Hooks Example
6
- * @version 1.00
7
  */
8
 
9
  /*
@@ -11,7 +11,7 @@ Plugin Name: MLA List Table Hooks Example
11
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
12
  Description: Provides an example of hooking the filters provided by the MLA_List_Table class
13
  Author: David Lingren
14
- Version: 1.00
15
  Author URI: http://fairtradejudaica.org/our-story/staff/
16
 
17
  Copyright 2014 David Lingren
@@ -83,8 +83,12 @@ class MLAListTableHooksExample {
83
  */
84
  add_filter( 'mla_list_table_inline_fields', 'MLAListTableHooksExample::mla_list_table_inline_fields', 10, 1 );
85
  add_filter( 'mla_list_table_inline_action', 'MLAListTableHooksExample::mla_list_table_inline_action', 10, 2 );
 
 
86
  add_filter( 'mla_list_table_bulk_action', 'MLAListTableHooksExample::mla_list_table_bulk_action', 10, 3 );
87
  add_filter( 'mla_list_table_custom_bulk_action', 'MLAListTableHooksExample::mla_list_table_custom_bulk_action', 10, 3 );
 
 
88
  add_filter( 'mla_list_table_single_action', 'MLAListTableHooksExample::mla_list_table_single_action', 10, 3 );
89
  add_filter( 'mla_list_table_custom_single_action', 'MLAListTableHooksExample::mla_list_table_custom_single_action', 10, 3 );
90
  add_action( 'mla_list_table_clear_filter_by', 'MLAListTableHooksExample::mla_list_table_clear_filter_by' );
@@ -338,6 +342,28 @@ class MLAListTableHooksExample {
338
  return $item_content;
339
  } // mla_list_table_inline_action
340
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
341
  /**
342
  * Process an MLA_List_Table bulk action
343
  *
@@ -376,7 +402,8 @@ class MLAListTableHooksExample {
376
  * @param integer $post_id the affected attachment.
377
  *
378
  * @return object updated $item_content. NULL if no handler, otherwise
379
- * ( 'message' => error or status message(s), 'body' => '' )
 
380
  */
381
  public static function mla_list_table_custom_bulk_action( $item_content, $bulk_action, $post_id ) {
382
  //error_log( 'MLAListTableHooksExample::mla_list_table_custom_bulk_action $item_content = ' . var_export( $item_content, true ), 0 );
@@ -385,6 +412,28 @@ class MLAListTableHooksExample {
385
  return $item_content;
386
  } // mla_list_table_custom_bulk_action
387
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
388
  /**
389
  * Process an MLA_List_Table single action
390
  *
3
  * Provides an example of hooking the filters provided by the MLA_List_Table class
4
  *
5
  * @package MLA List Table Hooks Example
6
+ * @version 1.01
7
  */
8
 
9
  /*
11
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
12
  Description: Provides an example of hooking the filters provided by the MLA_List_Table class
13
  Author: David Lingren
14
+ Version: 1.01
15
  Author URI: http://fairtradejudaica.org/our-story/staff/
16
 
17
  Copyright 2014 David Lingren
83
  */
84
  add_filter( 'mla_list_table_inline_fields', 'MLAListTableHooksExample::mla_list_table_inline_fields', 10, 1 );
85
  add_filter( 'mla_list_table_inline_action', 'MLAListTableHooksExample::mla_list_table_inline_action', 10, 2 );
86
+
87
+ add_filter( 'mla_list_table_begin_bulk_action', 'MLAListTableHooksExample::mla_list_table_begin_bulk_action', 10, 2 );
88
  add_filter( 'mla_list_table_bulk_action', 'MLAListTableHooksExample::mla_list_table_bulk_action', 10, 3 );
89
  add_filter( 'mla_list_table_custom_bulk_action', 'MLAListTableHooksExample::mla_list_table_custom_bulk_action', 10, 3 );
90
+ add_filter( 'mla_list_table_end_bulk_action', 'MLAListTableHooksExample::mla_list_table_end_bulk_action', 10, 2 );
91
+
92
  add_filter( 'mla_list_table_single_action', 'MLAListTableHooksExample::mla_list_table_single_action', 10, 3 );
93
  add_filter( 'mla_list_table_custom_single_action', 'MLAListTableHooksExample::mla_list_table_custom_single_action', 10, 3 );
94
  add_action( 'mla_list_table_clear_filter_by', 'MLAListTableHooksExample::mla_list_table_clear_filter_by' );
342
  return $item_content;
343
  } // mla_list_table_inline_action
344
 
345
+ /**
346
+ * Begin an MLA_List_Table bulk action
347
+ *
348
+ * This filter gives you an opportunity to pre-process an MLA_List_Table page-level
349
+ * or single-item action, standard or custom, before the MLA handler.
350
+ * The filter is called once before any of the items in $_REQUEST['cb_attachment'] are processed.
351
+ *
352
+ * @since 1.01
353
+ *
354
+ * @param array $item_content NULL, to indicate no handler.
355
+ * @param string $bulk_action the requested action.
356
+ *
357
+ * @return object updated $item_content. NULL if no handler, otherwise
358
+ * ( 'message' => error or status message(s), 'body' => '',
359
+ * 'prevent_default' => true to bypass the MLA handler )
360
+ */
361
+ public static function mla_list_table_begin_bulk_action( $item_content, $bulk_action ) {
362
+ //error_log( 'MLAListTableHooksExample::mla_list_table_begin_bulk_action $item_content = ' . var_export( $item_content, true ), 0 );
363
+ //error_log( 'MLAListTableHooksExample::mla_list_table_begin_bulk_action $bulk_action = ' . var_export( $bulk_action, true ), 0 );
364
+ return $item_content;
365
+ } // mla_list_table_begin_bulk_action
366
+
367
  /**
368
  * Process an MLA_List_Table bulk action
369
  *
402
  * @param integer $post_id the affected attachment.
403
  *
404
  * @return object updated $item_content. NULL if no handler, otherwise
405
+ * ( 'message' => error or status message(s), 'body' => '',
406
+ * 'prevent_default' => true to bypass the MLA handler )
407
  */
408
  public static function mla_list_table_custom_bulk_action( $item_content, $bulk_action, $post_id ) {
409
  //error_log( 'MLAListTableHooksExample::mla_list_table_custom_bulk_action $item_content = ' . var_export( $item_content, true ), 0 );
412
  return $item_content;
413
  } // mla_list_table_custom_bulk_action
414
 
415
+ /**
416
+ * End an MLA_List_Table bulk action
417
+ *
418
+ * This filter gives you an opportunity to post-process an MLA_List_Table page-level
419
+ * or single-item action, standard or custom.
420
+ * The filter is called once after all of the items in $_REQUEST['cb_attachment'] are processed.
421
+ *
422
+ * @since 1.01
423
+ *
424
+ * @param array $item_content NULL, to indicate no handler.
425
+ * @param string $bulk_action the requested action.
426
+ *
427
+ * @return object updated $item_content. NULL if no handler, otherwise
428
+ * ( 'message' => error or status message(s),
429
+ * 'body' => '' or page content in place of the submenu table )
430
+ */
431
+ public static function mla_list_table_end_bulk_action( $item_content, $bulk_action ) {
432
+ //error_log( 'MLAListTableHooksExample::mla_list_table_end_bulk_action $item_content = ' . var_export( $item_content, true ), 0 );
433
+ //error_log( 'MLAListTableHooksExample::mla_list_table_end_bulk_action $bulk_action = ' . var_export( $bulk_action, true ), 0 );
434
+ return $item_content;
435
+ } // mla_list_table_begin_bulk_action
436
+
437
  /**
438
  * Process an MLA_List_Table single action
439
  *
examples/mla-mapping-hooks-example.php.txt CHANGED
@@ -335,7 +335,7 @@ class MLAMappingHooksExample {
335
  * 'name' => custom field name
336
  * 'data_source' => 'none', 'meta', 'template' or data source name
337
  * 'keep_existing' => boolean; true to preserve existing content
338
- * 'format' => 'native', 'commas'
339
  * 'mla_column' => boolean; not used
340
  * 'quick_edit' => boolean; not used
341
  * 'bulk_edit' => boolean; not used
335
  * 'name' => custom field name
336
  * 'data_source' => 'none', 'meta', 'template' or data source name
337
  * 'keep_existing' => boolean; true to preserve existing content
338
+ * 'format' => 'native', 'commas', 'raw'
339
  * 'mla_column' => boolean; not used
340
  * 'quick_edit' => boolean; not used
341
  * 'bulk_edit' => boolean; not used
examples/mla-metadata-mapping-hooks-example.php.txt CHANGED
@@ -334,7 +334,7 @@ class MLAMetadataHooksExample {
334
  * 'name' => custom field name
335
  * 'data_source' => 'none', 'meta', 'template' or data source name
336
  * 'keep_existing' => boolean; true to preserve existing content
337
- * 'format' => 'native', 'commas'
338
  * 'mla_column' => boolean; not used
339
  * 'quick_edit' => boolean; not used
340
  * 'bulk_edit' => boolean; not used
334
  * 'name' => custom field name
335
  * 'data_source' => 'none', 'meta', 'template' or data source name
336
  * 'keep_existing' => boolean; true to preserve existing content
337
+ * 'format' => 'native', 'commas', 'raw'
338
  * 'mla_column' => boolean; not used
339
  * 'quick_edit' => boolean; not used
340
  * 'bulk_edit' => boolean; not used
examples/mla-simple-mapping-hooks-example.php.txt CHANGED
@@ -308,7 +308,7 @@ class MLASimpleMappingHooksExample {
308
  * 'name' => custom field name
309
  * 'data_source' => 'none', 'meta', 'template' or data source name
310
  * 'keep_existing' => boolean; true to preserve existing content
311
- * 'format' => 'native', 'commas'
312
  * 'mla_column' => boolean; not used
313
  * 'quick_edit' => boolean; not used
314
  * 'bulk_edit' => boolean; not used
308
  * 'name' => custom field name
309
  * 'data_source' => 'none', 'meta', 'template' or data source name
310
  * 'keep_existing' => boolean; true to preserve existing content
311
+ * 'format' => 'native', 'commas', 'raw'
312
  * 'mla_column' => boolean; not used
313
  * 'quick_edit' => boolean; not used
314
  * 'bulk_edit' => boolean; not used
examples/mla-zip-archive-example.php.txt ADDED
@@ -0,0 +1,188 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Provides an example of hooking the filters provided by the MLA_List_Table class
4
+ *
5
+ * In this example, a Bulk Action is created that downloads one or more files as a ZIP archive.
6
+ *
7
+ * @package MLA Download ZIP Example
8
+ * @version 1.00
9
+ */
10
+
11
+ /*
12
+ Plugin Name: MLA Download ZIP Example
13
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
14
+ Description: Provides an example of hooking the filters provided by the MLA_List_Table class
15
+ Author: David Lingren
16
+ Version: 1.00
17
+ Author URI: http://fairtradejudaica.org/our-story/staff/
18
+
19
+ Copyright 2014 David Lingren
20
+
21
+ This program is free software; you can redistribute it and/or modify
22
+ it under the terms of the GNU General Public License as published by
23
+ the Free Software Foundation; either version 2 of the License, or
24
+ (at your option) any later version.
25
+
26
+ This program is distributed in the hope that it will be useful,
27
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
28
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29
+ GNU General Public License for more details.
30
+
31
+ You can get a copy of the GNU General Public License by writing to the
32
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
33
+ */
34
+
35
+ /**
36
+ * Class MLA Download ZIP Example hooks some of the filters provided by the MLA_List_Table class
37
+ *
38
+ * Call it anything you want, but give it an unlikely and hopefully unique name. Hiding everything
39
+ * else inside a class means this is the only name you have to worry about.
40
+ *
41
+ * @package MLA Download ZIP Example
42
+ * @since 1.00
43
+ */
44
+ class MLADownloadZIPExample {
45
+ /**
46
+ * Initialization function, similar to __construct()
47
+ *
48
+ * @since 1.00
49
+ *
50
+ * @return void
51
+ */
52
+ public static function initialize() {
53
+ /*
54
+ * The filters are only useful for the admin section; exit in the front-end posts/pages
55
+ */
56
+ if ( ! is_admin() )
57
+ return;
58
+
59
+ /*
60
+ * Make sure we have ZIP support
61
+ */
62
+ if ( ! class_exists( 'ZipArchive' ) )
63
+ return;
64
+
65
+ /*
66
+ * add_filter parameters:
67
+ * $tag - name of the hook you're filtering; defined by [mla_gallery]
68
+ * $function_to_add - function to be called when [mla_gallery] applies the filter
69
+ * $priority - default 10; lower runs earlier, higher runs later
70
+ * $accepted_args - number of arguments your function accepts
71
+ */
72
+
73
+ add_action( 'admin_init', 'MLADownloadZIPExample::admin_init_action', 10 );
74
+
75
+ /*
76
+ * Defined in /media-library-assistant/includes/class-mla-list-table.php
77
+ */
78
+ add_filter( 'mla_list_table_get_bulk_actions', 'MLADownloadZIPExample::mla_list_table_get_bulk_actions', 10, 1 );
79
+ }
80
+
81
+ /**
82
+ * Process the 'download-zip' bulk action
83
+ *
84
+ * We must take control here so we can successfully issue a wp_redirect for the download.
85
+ *
86
+ * @since 1.00
87
+ */
88
+ public static function admin_init_action() {
89
+ //error_log( 'MLADownloadZIPExample::admin_init_action $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
90
+
91
+ $bulk_action = '';
92
+ if ( isset( $_REQUEST['action'] ) && 'download-zip' == $_REQUEST['action']) {
93
+ $bulk_action = 'download-zip';
94
+ } elseif ( isset( $_REQUEST['action2'] ) && 'download-zip' == $_REQUEST['action2']) {
95
+ $bulk_action = 'download-zip';
96
+ }
97
+
98
+ if ( 'download-zip' !== $bulk_action ) {
99
+ return;
100
+ }
101
+
102
+ if ( empty( $_REQUEST['cb_attachment'] ) ) {
103
+ return;
104
+ }
105
+
106
+ /*
107
+ * Create unique local names to handle the case where the same file name
108
+ * appears in multiple year/month/ directories.
109
+ */
110
+ $file_names = array();
111
+ foreach ( $_REQUEST['cb_attachment'] as $index => $post_id ) {
112
+ $file_name = get_attached_file( $post_id );
113
+ $path_info = pathinfo( $file_name );
114
+ $local_name = $path_info['basename'];
115
+ $suffix = 0;
116
+ while( array_key_exists( $local_name, $file_names ) ) {
117
+ $suffix++;
118
+ $local_name = $path_info['filename'] . $suffix . '.' . $path_info['extension'];
119
+ }
120
+
121
+ $file_names[ $local_name ] = $file_name;
122
+ }
123
+
124
+ /*
125
+ * Create the ZIP archive
126
+ */
127
+ $upload_dir = wp_upload_dir();
128
+ $prefix = ( defined( MLA_OPTION_PREFIX ) ) ? MLA_OPTION_PREFIX : 'mla_';
129
+ $date = date("Ymd_B");
130
+ $archive_name = $upload_dir['basedir'] . '/' . "{$prefix}_options_{$date}.zip";
131
+
132
+ if ( file_exists( $archive_name ) ) {
133
+ @unlink( $archive_name );
134
+ }
135
+
136
+ $zip = new ZipArchive();
137
+ if ( true !== $zip->open( $archive_name, ZIPARCHIVE::CREATE ) ) {
138
+ /* translators: 1: ZIP archive file name */
139
+ $_REQUEST['mla_admin_message'] = sprintf( __( 'ERROR: The ZIP archive ( %1$s ) could not be created.', 'mla-zip-archive-example' ), $archive_name );
140
+ return;
141
+ }
142
+
143
+ foreach( $file_names as $local_name => $file_name ) {
144
+ if ( true !== $zip->addFile( $file_name, $local_name ) ) {
145
+ /* translators: 1: ZIP archive file name */
146
+ $_REQUEST['mla_admin_message'] = sprintf( __( 'ERROR: The file ( %1$s ) could not be added to the ZIP archive.', 'mla-zip-archive-example' ), $file_name );
147
+ return;
148
+ }
149
+ }
150
+
151
+ if ( true !== $zip->close() ) {
152
+ /* translators: 1: ZIP archive file name */
153
+ $_REQUEST['mla_admin_message'] = sprintf( __( 'ERROR: The ZIP archive ( %1$s ) could not be closed.', 'mla-zip-archive-example' ), $archive_name );
154
+ return;
155
+ }
156
+
157
+ $download_args = array( 'page' => MLA::ADMIN_PAGE_SLUG, 'mla_download_file' => urlencode( $archive_name ), 'mla_download_type' => 'application/zip', 'mla_download_disposition' => 'delete' );
158
+
159
+ wp_redirect( add_query_arg( $download_args, wp_nonce_url( 'upload.php', MLA::MLA_ADMIN_NONCE ) ), 302 );
160
+ exit;
161
+ } // admin_init_action
162
+
163
+ /**
164
+ * Filter the MLA_List_Table bulk actions
165
+ *
166
+ * This MLA-specific filter gives you an opportunity to filter the list of bulk actions;
167
+ * a good alternative to the 'bulk_actions-media_page_mla-menu' filter.
168
+ *
169
+ * @since 1.01
170
+ *
171
+ * @param array $actions An array of bulk actions.
172
+ * Format: 'slug' => 'Label'
173
+ *
174
+ * @return array updated array of actions.
175
+ */
176
+ public static function mla_list_table_get_bulk_actions( $actions ) {
177
+ //error_log( 'MLADownloadZIPExample::mla_list_table_get_bulk_actions $actions = ' . var_export( $actions, true ), 0 );
178
+
179
+ $actions[ 'download-zip' ] = __( 'Download', 'mla-zip-archive-example' );
180
+ return $actions;
181
+ } // mla_list_table_get_bulk_actions
182
+ } // Class MLADownloadZIPExample
183
+
184
+ /*
185
+ * Install the filters at an early opportunity
186
+ */
187
+ add_action('init', 'MLADownloadZIPExample::initialize');
188
+ ?>
examples/mqtranslate-example.php.txt ADDED
@@ -0,0 +1,106 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Provides an example of hooking the filters provided by the [mla_tag_cloud] shortcode
4
+ *
5
+ * In this example, MLA Tag Cloud term names are translated and a language prefix is
6
+ * added to the site_url value.
7
+ *
8
+ * @package MLA mqTranslate Example
9
+ * @version 1.01
10
+ */
11
+
12
+ /*
13
+ Plugin Name: MLA mqTranslate Example
14
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
+ Description: Provides an example of hooking the filters provided by the [mla_tag_cloud] shortcode
16
+ Author: David Lingren
17
+ Version: 1.01
18
+ Author URI: http://fairtradejudaica.org/our-story/staff/
19
+
20
+ Copyright 2014 David Lingren
21
+
22
+ This program is free software; you can redistribute it and/or modify
23
+ it under the terms of the GNU General Public License as published by
24
+ the Free Software Foundation; either version 2 of the License, or
25
+ (at your option) any later version.
26
+
27
+ This program is distributed in the hope that it will be useful,
28
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
29
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30
+ GNU General Public License for more details.
31
+
32
+ You can get a copy of the GNU General Public License by writing to the
33
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
34
+ */
35
+
36
+ /**
37
+ * Class MLA mqTranslate Example hooks one of the filters provided by the [mla_tag_cloud] shortcode
38
+ *
39
+ * Call it anything you want, but give it an unlikely and hopefully unique name. Hiding enerything
40
+ * else inside a class means this is the only name you have to worry about.
41
+ *
42
+ * @package MLA mqTranslate Example
43
+ * @since 1.00
44
+ */
45
+ class MLAmqTranslateExample {
46
+ /**
47
+ * Initialization function, similar to __construct()
48
+ *
49
+ * @since 1.00
50
+ *
51
+ * @return void
52
+ */
53
+ public static function initialize() {
54
+ /*
55
+ * The filters are only useful for front-end posts/pages; exit if in the admin section
56
+ */
57
+ if ( is_admin() )
58
+ return;
59
+
60
+ add_filter( 'mla_get_terms_query_results', 'MLAmqTranslateExample::mla_get_terms_query_results_filter', 10, 1 );
61
+ add_filter( 'mla_gallery_open_values', 'MLAmqTranslateExample::mla_gallery_open_values_filter', 10, 1 );
62
+ }
63
+
64
+ /**
65
+ * MLA Tag Cloud Query Results
66
+ *
67
+ * This action gives you an opportunity to inspect, save, modify, reorder, etc.
68
+ * the array of tag objects returned from the data selection process.
69
+ *
70
+ * @since 1.00
71
+ *
72
+ * @param array tag objects
73
+ *
74
+ * @return array updated tag objects
75
+ */
76
+ public static function mla_get_terms_query_results_filter( $tag_objects ) {
77
+ $tag_objects = qtrans_useTermLib( $tag_objects );
78
+
79
+ return $tag_objects;
80
+ } // mla_get_terms_query_results_filter
81
+
82
+ /**
83
+ * MLA Gallery Open Values
84
+ *
85
+ * @since 1.01
86
+ *
87
+ * @param array parameter_name => parameter_value pairs
88
+ *
89
+ * @return array updated substitution parameter name => value pairs
90
+ */
91
+ public static function mla_gallery_open_values_filter( $item_values ) {
92
+ global $q_config;
93
+
94
+ if ( $q_config['language'] != $q_config['default_language'] ) {
95
+ $item_values['site_url'] = $item_values['site_url'] . '/' . $q_config['language'];
96
+ }
97
+
98
+ return $item_values;
99
+ } // mla_gallery_open_values_filter
100
+ } // Class MLAmqTranslateExample
101
+
102
+ /*
103
+ * Install the filters at an early opportunity
104
+ */
105
+ add_action('init', 'MLAmqTranslateExample::initialize');
106
+ ?>
examples/woofixit.php.txt ADDED
@@ -0,0 +1,1364 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Corrects Product Image/Product Gallery issues, synchronizes taxonomy terms
4
+ *
5
+ * Adds a Tools/Woo Fixit submenu with buttons to perform the operations.
6
+ *
7
+ * @package WooCommerce Fixit
8
+ * @version 1.11
9
+ */
10
+
11
+ /*
12
+ Plugin Name: WooCommerce Fixit
13
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
14
+ Description: Corrects Product Image/Product Gallery issues
15
+ Author: David Lingren
16
+ Version: 1.11
17
+ Author URI: http://fairtradejudaica.org/our-story/staff/
18
+
19
+ Copyright 2014 David Lingren
20
+
21
+ This program is free software; you can redistribute it and/or modify
22
+ it under the terms of the GNU General Public License as published by
23
+ the Free Software Foundation; either version 2 of the License, or
24
+ (at your option) any later version.
25
+
26
+ This program is distributed in the hope that it will be useful,
27
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
28
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
29
+ GNU General Public License for more details.
30
+
31
+ You can get a copy of the GNU General Public License by writing to the
32
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
33
+ */
34
+
35
+ /**
36
+ * Class Woo Fixit implements a Tools submenu page with several image-fixing tools.
37
+ *
38
+ * @package WooCommerce Fixit
39
+ * @since 1.00
40
+ */
41
+ class Woo_Fixit {
42
+ /**
43
+ * Current version number
44
+ *
45
+ * @since 1.00
46
+ *
47
+ * @var string
48
+ */
49
+ const CURRENT_VERSION = '1.11';
50
+
51
+ /**
52
+ * Slug prefix for registering and enqueueing submenu pages, style sheets and scripts
53
+ *
54
+ * @since 1.00
55
+ *
56
+ * @var string
57
+ */
58
+ const SLUG_PREFIX = 'woofixit-';
59
+
60
+ /**
61
+ * Initialization function, similar to __construct()
62
+ *
63
+ * @since 1.00
64
+ *
65
+ * @return void
66
+ */
67
+ public static function initialize() {
68
+ add_action( 'admin_init', 'Woo_Fixit::admin_init_action' );
69
+ add_action( 'admin_menu', 'Woo_Fixit::admin_menu_action' );
70
+ }
71
+
72
+ /**
73
+ * Admin Init Action
74
+ *
75
+ * @since 1.00
76
+ *
77
+ * @return void
78
+ */
79
+ public static function admin_init_action() {
80
+ }
81
+
82
+ /**
83
+ * Add submenu page in the "Tools" section
84
+ *
85
+ * @since 1.00
86
+ *
87
+ * @return void
88
+ */
89
+ public static function admin_menu_action( ) {
90
+ $current_page_hook = add_submenu_page( 'tools.php', 'WooCommerce Fixit Tools', 'Woo Fixit', 'manage_options', self::SLUG_PREFIX . 'tools', 'Woo_Fixit::render_tools_page' );
91
+ add_filter( 'plugin_action_links', 'Woo_Fixit::add_plugin_links_filter', 10, 2 );
92
+ }
93
+
94
+ /**
95
+ * Add the "Tools" link to the Plugins section entry
96
+ *
97
+ * @since 1.00
98
+ *
99
+ * @param array array of links for the Plugin, e.g., "Activate"
100
+ * @param string Directory and name of the plugin Index file
101
+ *
102
+ * @return array Updated array of links for the Plugin
103
+ */
104
+ public static function add_plugin_links_filter( $links, $file ) {
105
+ if ( $file == 'woofixit.php' ) {
106
+ $tools_link = sprintf( '<a href="%s">%s</a>', admin_url( 'tools.php?page=' . self::SLUG_PREFIX . 'tools' ), 'Tools' );
107
+ array_unshift( $links, $tools_link );
108
+ }
109
+
110
+ return $links;
111
+ }
112
+
113
+ /**
114
+ * Render (echo) the "WooCommerce Fixit" submenu in the Tools section
115
+ *
116
+ * @since 1.00
117
+ *
118
+ * @return void Echoes HTML markup for the submenu page
119
+ */
120
+ public static function render_tools_page() {
121
+ //error_log( 'Woo_Fixit::render_tools_page() $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
122
+ if ( !current_user_can( 'manage_options' ) ) {
123
+ echo "WooCommerce Fixit - Error</h2>\n";
124
+ wp_die( 'You do not have permission to manage plugin settings.' );
125
+ }
126
+
127
+ $setting_actions = array(
128
+ 'help' => array( 'handler' => '', 'comment' => 'Enter first/last Product ID values above to restrict tool application range. You can find ID values by hovering over the "Name" column in the WooCommerce/Products submenu table.' ),
129
+ 'warning' => array( 'handler' => '', 'comment' => '<strong>These tools make permanent updates to your database.</strong> Make a backup before you use the tools so you can restore your old values if you don&rsquo;t like the results.' ),
130
+
131
+ 'c0' => array( 'handler' => '', 'comment' => '<h3>Operations on ALL Media Library Images</h3>' ),
132
+ 'Clear Title' => array( 'handler' => '_clear_title',
133
+ 'comment' => '<strong>Delete ALL</strong> item Title fields.' ),
134
+ 'c1' => array( 'handler' => '', 'comment' => '<hr>' ),
135
+ 'Fill Title' => array( 'handler' => '_fill_title',
136
+ 'comment' => 'Fill empty item Title field with re-formatted file name.' ),
137
+ 'Replace Title' => array( 'handler' => '_replace_title',
138
+ 'comment' => '<strong>Replace ALL</strong> item Title fields with re-formatted file name.' ),
139
+
140
+ 'c2' => array( 'handler' => '', 'comment' => '<h3>Operations on Product Image/Product Gallery Images</h3>' ),
141
+ 'Clear ALT Text' => array( 'handler' => '_clear_alt_text',
142
+ 'comment' => '<strong>Delete ALL</strong> ALT Text fields for Product Image/Product Gallery items.' ),
143
+ 'c3' => array( 'handler' => '', 'comment' => '<hr>' ),
144
+ 'Fill ALT Text' => array( 'handler' => '_fill_alt_text',
145
+ 'comment' => 'Fill empty ALT Text field with first top-level Product Category.' ),
146
+ 'Replace ALT Text' => array( 'handler' => '_replace_alt_text',
147
+ 'comment' => '<strong>Replace ALL</strong> ALT Text field with first top-level Product Category.' ),
148
+
149
+ 'c4' => array( 'handler' => '', 'comment' => '<h3>Operations on the Featured Image and Product Gallery</h3>' ),
150
+ 'Remove Feature' => array( 'handler' => '_remove_feature',
151
+ 'comment' => 'Remove Product/Featured Image from the Product Gallery.' ),
152
+ 'Restore Feature' => array( 'handler' => '_restore_feature',
153
+ 'comment' => 'Restore Product/Featured Image to the Product Gallery.' ),
154
+ 'Reverse Gallery' => array( 'handler' => '_reverse_gallery',
155
+ 'comment' => 'Reverse the image order in the Product Gallery.' ),
156
+
157
+ 'c5' => array( 'handler' => '', 'comment' => '<h3>Operations on the Product Image and Product Tags Taxonomy</h3>' ),
158
+ 'Clear Product Tags' => array( 'handler' => '_clear_product_tags',
159
+ 'comment' => '<strong>Delete ALL</strong> Product Tags assignments where a Product Image exists.' ),
160
+ 'Fill Product Tags' => array( 'handler' => '_fill_product_tags',
161
+ 'comment' => 'Fill empty Product Tags assignments from Product Image Att. Tags where a Product Image exists.' ),
162
+ 'Add Product Tags' => array( 'handler' => '_fill_product_tags',
163
+ 'comment' => 'Append Product Tags assignments to <strong>ALL Products</strong> from Product Image Att. Tags where a Product Image exists.' ),
164
+ 'Replace Product Tags' => array( 'handler' => '_replace_product_tags',
165
+ 'comment' => '<strong>Replace ALL</strong> Product Tags assignments from Product Image Att. Tags where a Product Image exists.' ),
166
+
167
+ 'c6' => array( 'handler' => '', 'comment' => '<h3>Operations on Products, using the Product Image, Product Categories and Att. Tags</h3>' ),
168
+ 'Clear Product Cats' => array( 'handler' => '_clear_product_categories',
169
+ 'comment' => '<strong>Delete ALL Products&rsquo;</strong> Product Categories assignments where a Product Image exists.' ),
170
+ 'Fill Product Cats' => array( 'handler' => '_fill_product_categories',
171
+ 'comment' => 'Fill empty Product Categories assignments from Product Image Att. Tags,<br>where the Product Image Att. Tag matches an existing Product Category.' ),
172
+ 'Add Product Cats' => array( 'handler' => '_append_product_categories',
173
+ 'comment' => 'Append Product Categories assignments to <strong>ALL Products</strong> from Product Image Att. Tags,<br>where the Product Image Att. Tag matches an existing Product Category.' ),
174
+ 'Replace Product Cats' => array( 'handler' => '_replace_product_categories',
175
+ 'comment' => '<strong>Replace ALL</strong> Product Categories assignments from Product Image Att. Tags,<br>where the Product Image Att. Tag matches an existing Product Category.' ),
176
+
177
+ 'c7' => array( 'handler' => '', 'comment' => '<h3>Operations on the Att. Categories Taxonomy</h3>' ),
178
+ 'Clear Att. Cats' => array( 'handler' => '_clear_attachment_categories',
179
+ 'comment' => '<strong>Delete ALL</strong> Att. Categories assignments.' ),
180
+ 'Fill Att. Cats' => array( 'handler' => '_fill_attachment_categories',
181
+ 'comment' => 'Fill empty Att. Categories assignments from Att. Tags, where the Att. Tag matches an existing Att. Category.' ),
182
+ 'Add Att. Cats' => array( 'handler' => '_append_attachment_categories',
183
+ 'comment' => 'Append Att. Categories assignments to <strong>ALL items</strong> from Att. Tags,<br>where the Att. Tag matches an existing Att. Category.' ),
184
+ 'Replace Att. Cats' => array( 'handler' => '_replace_attachment_categories',
185
+ 'comment' => '<strong>Replace ALL</strong> Att. Categories assignments from Att. Tags, where the Att. Tag matches an existing Att. Category.' ),
186
+ );
187
+
188
+ echo '<div class="wrap">' . "\n";
189
+ echo "\t\t" . '<div id="icon-tools" class="icon32"><br/></div>' . "\n";
190
+ echo "\t\t" . '<h2>WooCommerce Fixit Tools v' . self::CURRENT_VERSION . '</h2>' . "\n";
191
+
192
+ if ( isset( $_REQUEST[ self::SLUG_PREFIX . 'action' ] ) ) {
193
+ $label = $_REQUEST[ self::SLUG_PREFIX . 'action' ];
194
+ if( isset( $setting_actions[ $label ] ) ) {
195
+ $action = $setting_actions[ $label ]['handler'];
196
+ if ( ! empty( $action ) ) {
197
+ echo self::$action();
198
+ } else {
199
+ echo "\t\t<br>ERROR: no handler for action: \"{$label}\"\n";
200
+ }
201
+ } else {
202
+ echo "\t\t<br>ERROR: unknown action: \"{$label}\"\n";
203
+ }
204
+ }
205
+
206
+ echo "\t\t" . '<div style="width:700px">' . "\n";
207
+ echo "\t\t" . '<form action="/wp-admin/tools.php?page=' . self::SLUG_PREFIX . 'tools' . '" method="post" class="' . self::SLUG_PREFIX . 'tools-form-class" id="' . self::SLUG_PREFIX . 'tools-form-id">' . "\n";
208
+ echo "\t\t" . ' <p class="submit" style="padding-bottom: 0;">' . "\n";
209
+ echo "\t\t" . ' <table>' . "\n";
210
+
211
+ echo "\t\t" . ' <tr valign="top"><th style="text-align: right;" scope="row">First Product</th><td style="text-align: left;">' . "\n";
212
+ echo "\t\t" . ' <input name="' . self::SLUG_PREFIX . 'lower" type="text" size="5" value="">' . "\n";
213
+ echo "\t\t" . ' </td></tr>' . "\n";
214
+
215
+ echo "\t\t" . ' <tr valign="top"><th style="text-align: right;" scope="row">Last Product</th><td style="text-align: left;">' . "\n";
216
+ echo "\t\t" . ' <input name="' . self::SLUG_PREFIX . 'upper" type="text" size="5" value="">' . "\n";
217
+ echo "\t\t" . ' </td></tr>' . "\n";
218
+
219
+ foreach ( $setting_actions as $label => $action ) {
220
+ if ( empty( $action['handler'] ) ) {
221
+ echo "\t\t" . ' <tr><td colspan=2 style="padding: 2px 0px;">' . $action['comment'] . "</td></tr>\n";
222
+ } else {
223
+ echo "\t\t" . ' <tr><td width="150px">' . "\n";
224
+ echo "\t\t" . ' <input name="' . self::SLUG_PREFIX . 'action" type="submit" class="button-primary" style="width: 140px;" value="' . $label . '" />&nbsp;&nbsp;' . "\n";
225
+ echo "\t\t" . ' </td><td>' . "\n";
226
+ echo "\t\t" . ' ' . $action['comment'] . "\n";
227
+ echo "\t\t" . ' </td></tr>' . "\n";
228
+ }
229
+ }
230
+
231
+ echo "\t\t" . ' </table>' . "\n";
232
+ echo "\t\t" . ' </p>' . "\n";
233
+ echo "\t\t" . '</form>' . "\n";
234
+ echo "\t\t" . '</div>' . "\n";
235
+ echo "\t\t" . '</div><!-- wrap -->' . "\n";
236
+ }
237
+
238
+ /**
239
+ * Array of Products giving Product Image and Product Gallery attachments:
240
+ * product_id => array( '_thumbnail_id' => image_id, '_product_image_gallery' => gallery_ids (comma-delimited string)
241
+ *
242
+ * @since 1.00
243
+ *
244
+ * @var array
245
+ */
246
+ private static $product_attachments = array();
247
+
248
+ /**
249
+ * Array of Attachments giving Product assignments:
250
+ * attachment_id => array( '_thumbnail_id' => array( thumbnail_ids ), '_product_image_gallery' => array( gallery_ids )
251
+ *
252
+ * @since 1.00
253
+ *
254
+ * @var array
255
+ */
256
+ private static $attachment_products = array();
257
+
258
+ /**
259
+ * Compile array of Product Image and Product Gallery attachments
260
+ *
261
+ * @since 1.00
262
+ *
263
+ * @return void
264
+ */
265
+ private static function _build_product_attachments() {
266
+ global $wpdb;
267
+
268
+ $query = sprintf( 'SELECT m.* FROM %1$s as m INNER JOIN %2$s as p ON m.post_id = p.ID WHERE ( p.post_type = \'product\' ) AND ( m.meta_key IN ( \'_product_image_gallery\', \'_thumbnail_id\' ) ) GROUP BY m.post_id, m.meta_id ORDER BY m.post_id', $wpdb->postmeta, $wpdb->posts );
269
+ $results = $wpdb->get_results( $query );
270
+ //error_log( 'Woo_Fixit::_build_product_attachments() $results = ' . var_export( $results, true ), 0 );
271
+
272
+ if ( ! empty( $_REQUEST[ self::SLUG_PREFIX . 'lower' ] ) ) {
273
+ $lower_bound = (integer) $_REQUEST[ self::SLUG_PREFIX . 'lower' ];
274
+ } else {
275
+ $lower_bound = 0;
276
+ }
277
+
278
+ if ( ! empty( $_REQUEST[ self::SLUG_PREFIX . 'upper' ] ) ) {
279
+ $upper_bound = (integer) $_REQUEST[ self::SLUG_PREFIX . 'upper' ];
280
+ } elseif ( $lower_bound ) {
281
+ $upper_bound = $lower_bound;
282
+ } else {
283
+ $upper_bound = 0x7FFFFFFF;
284
+ }
285
+
286
+ self::$product_attachments = array();
287
+ self::$attachment_products = array();
288
+
289
+ foreach ( $results as $result ) {
290
+ if ( ( $lower_bound > $result->post_id ) || ( $upper_bound < $result->post_id ) ) {
291
+ continue;
292
+ }
293
+
294
+ self::$product_attachments[ $result->post_id ][ $result->meta_key ] = trim( $result->meta_value );
295
+
296
+ if ( '_thumbnail_id' == $result->meta_key ) {
297
+ $key = (integer) $result->meta_value;
298
+ if ( isset( self::$attachment_products[ $key ] ) ) {
299
+ self::$attachment_products[ $key ]['_thumbnail_id'][] = (integer) $result->post_id;
300
+ } else {
301
+ self::$attachment_products[ $key ]['_thumbnail_id'] = array( (integer) $result->post_id );
302
+ }
303
+ } else {
304
+ foreach( explode( ',', $result->meta_value ) as $key ) {
305
+ $key = (integer) trim( $key);
306
+ if ( isset( self::$attachment_products[ $key ] ) ) {
307
+ self::$attachment_products[ $key ]['_product_image_gallery'][] = (integer) $result->post_id;
308
+ } else {
309
+ self::$attachment_products[ $key ]['_product_image_gallery'] = array( (integer) $result->post_id );
310
+ }
311
+ }
312
+ }
313
+ }
314
+ //error_log( 'Woo_Fixit::_build_product_attachments() self::$product_attachments = ' . var_export( self::$product_attachments, true ), 0 );
315
+ //error_log( 'Woo_Fixit::_build_product_attachments() self::$attachment_products = ' . var_export( self::$attachment_products, true ), 0 );
316
+ } // _build_product_attachments
317
+
318
+ /**
319
+ * Replace ALL item Title fields with empty value
320
+ *
321
+ * @since 1.00
322
+ *
323
+ * @return string HTML markup for results/messages
324
+ */
325
+ private static function _clear_title() {
326
+ global $wpdb;
327
+
328
+ $results = $wpdb->query( "UPDATE {$wpdb->posts} SET post_title = '' WHERE post_type = 'attachment'" );
329
+ return "<br>_clear_title() performed {$results} update(s).\n";
330
+ } // _clear_title
331
+
332
+ /**
333
+ * Fill empty item Title field with re-formatted file name
334
+ *
335
+ * @since 1.00
336
+ *
337
+ * @return string HTML markup for results/messages
338
+ */
339
+ private static function _fill_title() {
340
+ global $wpdb;
341
+
342
+ $query = sprintf( 'SELECT m.post_id, m.meta_value FROM %1$s as m INNER JOIN %2$s as p ON m.post_id = p.ID WHERE ( p.post_title = \'\' ) AND ( p.post_type = \'attachment\' ) AND ( m.meta_key IN ( \'_wp_attached_file\' ) )', $wpdb->postmeta, $wpdb->posts );
343
+ $results = $wpdb->get_results( $query );
344
+
345
+ $update_count = 0;
346
+ $select_bits = '';
347
+ $where_bits = array();
348
+ $chunk_count = 0;
349
+ foreach( $results as $result ) {
350
+ $path_info = pathinfo( $result->meta_value );
351
+ $new_title = str_replace( array( '-', '_', '.' ), ' ', $path_info['filename'] );
352
+ $select_bits .= " WHEN ID = {$result->post_id} THEN '{$new_title}'";
353
+ $where_bits[] = $result->post_id;
354
+
355
+ /*
356
+ * Run an update when the chunk is full
357
+ */
358
+ if ( 25 <= ++$chunk_count ) {
359
+ $where_bits = implode( ',', $where_bits );
360
+ $update_query = "UPDATE {$wpdb->posts} SET post_title = CASE{$select_bits} ELSE post_title END WHERE ID IN ( {$where_bits} )";
361
+ $query_result = $wpdb->query( $update_query );
362
+ $update_count += $chunk_count;
363
+ $select_bits = '';
364
+ $where_bits = array();
365
+ $chunk_count = 0;
366
+ }
367
+ }
368
+
369
+ /*
370
+ * Run a final update if the chunk is partially filled
371
+ */
372
+ if ( $chunk_count ) {
373
+ $where_bits = implode( ',', $where_bits );
374
+ $update_query = "UPDATE {$wpdb->posts} SET post_title = CASE{$select_bits} ELSE post_title END WHERE ID IN ( {$where_bits} )";
375
+ $query_result = $wpdb->query( $update_query );
376
+ $update_count += $chunk_count;
377
+ }
378
+
379
+ return "<br>_fill_title() performed {$update_count} update(s).\n";
380
+ } // _fill_title
381
+
382
+ /**
383
+ * Replace ALL item Title fields with re-formatted file name
384
+ *
385
+ * @since 1.00
386
+ *
387
+ * @return string HTML markup for results/messages
388
+ */
389
+ private static function _replace_title() {
390
+ global $wpdb;
391
+
392
+ $query = sprintf( 'SELECT m.post_id, m.meta_value FROM %1$s as m INNER JOIN %2$s as p ON m.post_id = p.ID WHERE ( p.post_mime_type LIKE \'%3$s\' ) AND ( p.post_type = \'attachment\' ) AND ( m.meta_key IN ( \'_wp_attached_file\' ) )', $wpdb->postmeta, $wpdb->posts, 'image/%' );
393
+ $results = $wpdb->get_results( $query );
394
+
395
+ $update_count = 0;
396
+ $select_bits = '';
397
+ $where_bits = array();
398
+ $chunk_count = 0;
399
+ foreach( $results as $result ) {
400
+ $path_info = pathinfo( $result->meta_value );
401
+ $new_title = str_replace( array( '-', '_', '.' ), ' ', $path_info['filename'] );
402
+ $select_bits .= " WHEN ID = {$result->post_id} THEN '{$new_title}'";
403
+ $where_bits[] = $result->post_id;
404
+
405
+ /*
406
+ * Run an update when the chunk is full
407
+ */
408
+ if ( 25 <= ++$chunk_count ) {
409
+ $where_bits = implode( ',', $where_bits );
410
+ $update_query = "UPDATE {$wpdb->posts} SET post_title = CASE{$select_bits} ELSE post_title END WHERE ID IN ( {$where_bits} )";
411
+ $query_result = $wpdb->query( $update_query );
412
+ $update_count += $chunk_count;
413
+ $select_bits = '';
414
+ $where_bits = array();
415
+ $chunk_count = 0;
416
+ }
417
+ }
418
+
419
+ /*
420
+ * Run a final update if the chunk is partially filled
421
+ */
422
+ if ( $chunk_count ) {
423
+ $where_bits = implode( ',', $where_bits );
424
+ $update_query = "UPDATE {$wpdb->posts} SET post_title = CASE{$select_bits} ELSE post_title END WHERE ID IN ( {$where_bits} )";
425
+ $query_result = $wpdb->query( $update_query );
426
+ $update_count += $chunk_count;
427
+ }
428
+
429
+ return "<br>_replace_title() performed {$update_count} update(s).\n";
430
+ } // _replace_title
431
+
432
+ /**
433
+ * Empty ALT Text field in all Product Image/Product Gallery items
434
+ *
435
+ * @since 1.00
436
+ *
437
+ * @return string HTML markup for results/messages
438
+ */
439
+ private static function _clear_alt_text() {
440
+ global $wpdb;
441
+
442
+ self::_build_product_attachments();
443
+ ksort( self::$attachment_products );
444
+ $update_count = 0;
445
+ foreach ( array_chunk( self::$attachment_products, 25, true ) as $chunk ) {
446
+ $keys = implode( ',', array_keys( $chunk ) );
447
+ $delete_query = "DELETE FROM {$wpdb->postmeta} WHERE ( post_id IN ( {$keys} ) ) AND ( meta_key = '_wp_attachment_image_alt' )";
448
+ $query_result = $wpdb->query( $delete_query );
449
+ $update_count += $query_result;
450
+ }
451
+
452
+ return "<br>_clear_alt_text() performed {$update_count} delete(s).\n";
453
+ } // _clear_alt_text
454
+
455
+ /**
456
+ * Fill empty ALT Text field with first top-level Product Category
457
+ *
458
+ * @since 1.00
459
+ *
460
+ * @return string HTML markup for results/messages
461
+ */
462
+ private static function _fill_alt_text() {
463
+ global $wpdb;
464
+
465
+ self::_build_product_attachments();
466
+ $delete_count = 0;
467
+ $insert_count = 0;
468
+ foreach ( array_chunk( self::$product_attachments, 25, true ) as $chunk ) {
469
+ $terms = wp_get_object_terms( array_keys( $chunk ), 'product_cat', array( 'orderby' => 'name', 'fields' => 'all_with_object_id' ) );
470
+
471
+ /*
472
+ * Build an array of "first product category" names
473
+ */
474
+ $product_terms = array();
475
+ foreach ( $terms as $term ) {
476
+ if ( isset( $product_terms[ $term->object_id ] ) ) {
477
+ /*
478
+ * The first top-level term wins
479
+ */
480
+ if ( 0 == $product_terms[ $term->object_id ]['parent'] ) {
481
+ continue;
482
+ } elseif ( ( (integer) $term->parent ) < $product_terms[ $term->object_id ]['parent'] ) {
483
+ $product_terms[ $term->object_id ] = array( 'name' => $term->name, 'parent' => (integer) $term->parent );
484
+ }
485
+ } else {
486
+ $product_terms[ $term->object_id ] = array( 'name' => $term->name, 'parent' => (integer) $term->parent );
487
+ }
488
+ }
489
+
490
+ /*
491
+ * Assign the names to each attachment
492
+ */
493
+ $attachment_values = array();
494
+ foreach ( $chunk as $key => $value ) {
495
+ if ( empty( $product_terms[ $key ] ) ) {
496
+ continue;
497
+ }
498
+
499
+ if ( ! empty( $value['_thumbnail_id'] ) ) {
500
+ $attachment_values[ $value['_thumbnail_id'] ] = $product_terms[ $key ]['name'];
501
+ }
502
+
503
+ if ( ! empty( $value['_product_image_gallery'] ) ) {
504
+ $ids = explode( ',', $value['_product_image_gallery'] );
505
+ foreach( $ids as $id ) {
506
+ $attachment_values[ $id ] = $product_terms[ $key ]['name'];
507
+ }
508
+ }
509
+ }
510
+
511
+ /*
512
+ * Find the existing ALT Text values and remove them from the update
513
+ */
514
+ $keys = implode( ',', array_keys( $attachment_values ) );
515
+ $select_query = "SELECT post_id, meta_value FROM {$wpdb->postmeta} WHERE ( post_id IN ( {$keys} ) ) AND ( meta_key = '_wp_attachment_image_alt' )";
516
+ $empty_values = array();
517
+ foreach( $wpdb->get_results( $select_query ) as $existing_value ) {
518
+ $trim = trim( $existing_value->meta_value );
519
+ if ( empty( $trim ) ) {
520
+ $empty_values[] = $existing_value->post_id;
521
+ continue;
522
+ }
523
+ unset( $attachment_values[ (integer) $existing_value->post_id ] );
524
+ }
525
+
526
+ /*
527
+ * Delete empty ALT Text values
528
+ */
529
+ if ( ! empty( $empty_values ) ) {
530
+ $keys = implode( ',', $empty_values );
531
+ $delete_query = "DELETE FROM {$wpdb->postmeta} WHERE ( post_id IN ( {$keys} ) ) AND ( meta_key = '_wp_attachment_image_alt' )";
532
+ $query_result = $wpdb->query( $delete_query );
533
+ $delete_count += $query_result;
534
+ }
535
+
536
+ /*
537
+ * Insert the new values
538
+ */
539
+ foreach ( $attachment_values as $attachment => $text ) {
540
+ $insert_query = "INSERT INTO {$wpdb->postmeta} ( `post_id`,`meta_key`,`meta_value` )
541
+ VALUES ( {$attachment},'_wp_attachment_image_alt','{$text}' )";
542
+ $query_result = $wpdb->query( $insert_query );
543
+ $insert_count += $query_result;
544
+ }
545
+ }
546
+
547
+ return "<br>_fill_alt_text() performed {$delete_count} delete(s), {$insert_count} inserts(s).\n";
548
+ } // _fill_alt_text
549
+
550
+ /**
551
+ * Replace ALL ALT Text field with first top-level Product Category
552
+ *
553
+ * @since 1.00
554
+ *
555
+ * @return string HTML markup for results/messages
556
+ */
557
+ private static function _replace_alt_text() {
558
+ global $wpdb;
559
+
560
+ self::_build_product_attachments();
561
+ $delete_count = 0;
562
+ $insert_count = 0;
563
+ foreach ( array_chunk( self::$product_attachments, 25, true ) as $chunk ) {
564
+ $terms = wp_get_object_terms( array_keys( $chunk ), 'product_cat', array( 'orderby' => 'name', 'fields' => 'all_with_object_id' ) );
565
+
566
+ /*
567
+ * Build an array of "first product category" names
568
+ */
569
+ $product_terms = array();
570
+ foreach ( $terms as $term ) {
571
+ if ( isset( $product_terms[ $term->object_id ] ) ) {
572
+ /*
573
+ * The first top-level term wins
574
+ */
575
+ if ( 0 == $product_terms[ $term->object_id ]['parent'] ) {
576
+ continue;
577
+ } elseif ( ( (integer) $term->parent ) < $product_terms[ $term->object_id ]['parent'] ) {
578
+ $product_terms[ $term->object_id ] = array( 'name' => $term->name, 'parent' => (integer) $term->parent );
579
+ }
580
+ } else {
581
+ $product_terms[ $term->object_id ] = array( 'name' => $term->name, 'parent' => (integer) $term->parent );
582
+ }
583
+ }
584
+
585
+ /*
586
+ * Assign the names to each attachment
587
+ */
588
+ $attachment_values = array();
589
+ foreach ( $chunk as $key => $value ) {
590
+ if ( isset( $value['_thumbnail_id'] ) ) {
591
+ $attachment_values[ $value['_thumbnail_id'] ] = $product_terms[ $key ]['name'];
592
+ }
593
+
594
+ if ( ! empty( $value['_product_image_gallery'] ) ) {
595
+ $ids = explode( ',', $value['_product_image_gallery'] );
596
+ foreach( $ids as $id ) {
597
+ $attachment_values[ $id ] = $product_terms[ $key ]['name'];
598
+ }
599
+ }
600
+ }
601
+
602
+ /*
603
+ * Remove the old ALT Text values
604
+ */
605
+ $keys = implode( ',', array_keys( $attachment_values ) );
606
+ $delete_query = "DELETE FROM {$wpdb->postmeta} WHERE ( post_id IN ( {$keys} ) ) AND ( meta_key = '_wp_attachment_image_alt' )";
607
+ $query_result = $wpdb->query( $delete_query );
608
+ $delete_count += $query_result;
609
+
610
+ /*
611
+ * Insert the new values
612
+ */
613
+ foreach ( $attachment_values as $attachment => $text ) {
614
+ $insert_query = "INSERT INTO {$wpdb->postmeta} ( `post_id`,`meta_key`,`meta_value` )
615
+ VALUES ( {$attachment},'_wp_attachment_image_alt','{$text}' )";
616
+ $query_result = $wpdb->query( $insert_query );
617
+ $insert_count += $query_result;
618
+ }
619
+ }
620
+
621
+ return "<br>_replace_alt_text() performed {$delete_count} delete(s), {$insert_count} inserts(s).\n";
622
+ } // _replace_alt_text
623
+
624
+ /**
625
+ * Remove Product/Featured Image from the Product Gallery
626
+ *
627
+ * @since 1.10
628
+ *
629
+ * @return string HTML markup for results/messages
630
+ */
631
+ private static function _remove_feature() {
632
+ global $wpdb;
633
+
634
+ self::_build_product_attachments();
635
+
636
+ $update_count = 0;
637
+ $select_bits = '';
638
+ $where_bits = array();
639
+ $chunk_count = 0;
640
+ foreach( self::$product_attachments as $post_id => $result ) {
641
+ if ( empty( $result['_thumbnail_id'] ) ) {
642
+ continue;
643
+ }
644
+
645
+ $feature = (integer) $result['_thumbnail_id'];
646
+ $gallery = array();
647
+ $feature_found = false;
648
+
649
+ if ( ! empty( $result['_product_image_gallery'] ) ) {
650
+ foreach ( explode( ',', $result['_product_image_gallery'] ) as $item ) {
651
+ if ( $feature == (integer) $item ) {
652
+ $feature_found = true;
653
+ } else {
654
+ $gallery[] = $item;
655
+ }
656
+ } // foreach gallery item
657
+ }
658
+
659
+ if ( $feature_found ) {
660
+ $new_gallery = implode( ',', $gallery );
661
+ $select_bits .= " WHEN post_id = {$post_id} THEN '{$new_gallery}'";
662
+ $where_bits[] = $post_id;
663
+
664
+ /*
665
+ * Run an update when the chunk is full
666
+ */
667
+ if ( 25 <= ++$chunk_count ) {
668
+ $where_bits = implode( ',', $where_bits );
669
+ $update_query = "UPDATE {$wpdb->postmeta} SET meta_value = CASE{$select_bits} ELSE meta_value END WHERE post_id IN ( {$where_bits} ) AND meta_key = '_product_image_gallery'";
670
+ $query_result = $wpdb->query( $update_query );
671
+ $update_count += $chunk_count;
672
+ $select_bits = '';
673
+ $where_bits = array();
674
+ $chunk_count = 0;
675
+ }
676
+ } // feature removed
677
+ } // foreach product
678
+
679
+ /*
680
+ * Run a final update if the chunk is partially filled
681
+ */
682
+ if ( $chunk_count ) {
683
+ $where_bits = implode( ',', $where_bits );
684
+ $update_query = "UPDATE {$wpdb->postmeta} SET meta_value = CASE{$select_bits} ELSE meta_value END WHERE post_id IN ( {$where_bits} ) AND meta_key = '_product_image_gallery'";
685
+ $query_result = $wpdb->query( $update_query );
686
+ $update_count += $chunk_count;
687
+ }
688
+
689
+ return "<br>_remove_feature() performed {$update_count} update(s).\n";
690
+ } // _remove_feature
691
+
692
+ /**
693
+ * Restore Product/Featured Image to the Product Gallery
694
+ *
695
+ * @since 1.10
696
+ *
697
+ * @return string HTML markup for results/messages
698
+ */
699
+ private static function _restore_feature() {
700
+ global $wpdb;
701
+
702
+ self::_build_product_attachments();
703
+
704
+ $update_count = 0;
705
+ $select_bits = '';
706
+ $where_bits = array();
707
+ $chunk_count = 0;
708
+ foreach( self::$product_attachments as $post_id => $result ) {
709
+ if ( empty( $result['_thumbnail_id'] ) ) {
710
+ continue;
711
+ }
712
+
713
+ $feature = (integer) $result['_thumbnail_id'];
714
+ $gallery = array();
715
+ $feature_found = false;
716
+ if ( ! empty( $result['_product_image_gallery'] ) ) {
717
+ foreach ( explode( ',', $result['_product_image_gallery'] ) as $item ) {
718
+ if ( $feature == (integer) $item ) {
719
+ $feature_found = true;
720
+ } else {
721
+ $gallery[] = $item;
722
+ }
723
+ } // foreach gallery item
724
+ }
725
+
726
+ if ( ! $feature_found ) {
727
+ if ( count( $gallery ) ) {
728
+ $new_gallery = implode( ',', $gallery ) . ',' . $feature;
729
+ } else {
730
+ $new_gallery = (string) $feature;
731
+ }
732
+
733
+ $select_bits .= " WHEN post_id = {$post_id} THEN '{$new_gallery}'";
734
+ $where_bits[] = $post_id;
735
+
736
+ /*
737
+ * Run an update when the chunk is full
738
+ */
739
+ if ( 25 <= ++$chunk_count ) {
740
+ $where_bits = implode( ',', $where_bits );
741
+ $update_query = "UPDATE {$wpdb->postmeta} SET meta_value = CASE{$select_bits} ELSE meta_value END WHERE post_id IN ( {$where_bits} ) AND meta_key = '_product_image_gallery'";
742
+ $query_result = $wpdb->query( $update_query );
743
+ $update_count += $chunk_count;
744
+ $select_bits = '';
745
+ $where_bits = array();
746
+ $chunk_count = 0;
747
+ }
748
+ } // feature restored
749
+ } // foreach product
750
+
751
+ /*
752
+ * Run a final update if the chunk is partially filled
753
+ */
754
+ if ( $chunk_count ) {
755
+ $where_bits = implode( ',', $where_bits );
756
+ $update_query = "UPDATE {$wpdb->postmeta} SET meta_value = CASE{$select_bits} ELSE meta_value END WHERE post_id IN ( {$where_bits} ) AND meta_key = '_product_image_gallery'";
757
+ $query_result = $wpdb->query( $update_query );
758
+ $update_count += $chunk_count;
759
+ }
760
+
761
+ return "<br>_restore_feature() performed {$update_count} update(s).\n";
762
+ } // _restore_feature
763
+
764
+ /**
765
+ * Reverse the image order in the Product Gallery
766
+ *
767
+ * @since 1.10
768
+ *
769
+ * @return string HTML markup for results/messages
770
+ */
771
+ private static function _reverse_gallery() {
772
+ global $wpdb;
773
+
774
+ self::_build_product_attachments();
775
+
776
+ $update_count = 0;
777
+ $select_bits = '';
778
+ $where_bits = array();
779
+ $chunk_count = 0;
780
+ foreach( self::$product_attachments as $post_id => $result ) {
781
+ if ( empty( $result['_product_image_gallery'] ) ) {
782
+ $gallery = array();
783
+ } else {
784
+ $gallery = explode( ',', $result['_product_image_gallery'] );
785
+ }
786
+
787
+ if ( 1 < count( $gallery ) ) {
788
+ $new_gallery = implode( ',', array_reverse( $gallery ) );
789
+ $select_bits .= " WHEN post_id = {$post_id} THEN '{$new_gallery}'";
790
+ $where_bits[] = $post_id;
791
+
792
+ /*
793
+ * Run an update when the chunk is full
794
+ */
795
+ if ( 25 <= ++$chunk_count ) {
796
+ $where_bits = implode( ',', $where_bits );
797
+ $update_query = "UPDATE {$wpdb->postmeta} SET meta_value = CASE{$select_bits} ELSE meta_value END WHERE post_id IN ( {$where_bits} ) AND meta_key = '_product_image_gallery'";
798
+ $query_result = $wpdb->query( $update_query );
799
+ $update_count += $chunk_count;
800
+ $select_bits = '';
801
+ $where_bits = array();
802
+ $chunk_count = 0;
803
+ }
804
+ } // gallery reversed
805
+ } // foreach product
806
+
807
+ /*
808
+ * Run a final update if the chunk is partially filled
809
+ */
810
+ if ( $chunk_count ) {
811
+ $where_bits = implode( ',', $where_bits );
812
+ $update_query = "UPDATE {$wpdb->postmeta} SET meta_value = CASE{$select_bits} ELSE meta_value END WHERE post_id IN ( {$where_bits} ) AND meta_key = '_product_image_gallery'";
813
+ $query_result = $wpdb->query( $update_query );
814
+ $update_count += $chunk_count;
815
+ }
816
+
817
+ return "<br>_reverse_gallery() performed {$update_count} update(s).\n";
818
+ } // _reverse_gallery
819
+
820
+ /**
821
+ * Delete ALL Products' Product Tags assignments where a Product Image exists
822
+ *
823
+ * @since 1.11
824
+ *
825
+ * @return string HTML markup for results/messages
826
+ */
827
+ private static function _clear_product_tags() {
828
+ return self::_update_product_tags( 'clear' );
829
+ } // _clear_product_tags
830
+
831
+ /**
832
+ * Fill empty Product Tags assignments from Product Image Att. Tags,
833
+ * where the Product Image exists
834
+ *
835
+ * @since 1.11
836
+ *
837
+ * @return string HTML markup for results/messages
838
+ */
839
+ private static function _fill_product_tags() {
840
+ return self::_update_product_tags( 'fill' );
841
+ } // _fill_product_tags
842
+
843
+ /**
844
+ * Append Product Tags assignments to ALL Products from Product Image Att. Tags,
845
+ * where the Product Image exists
846
+ *
847
+ * @since 1.11
848
+ *
849
+ * @return string HTML markup for results/messages
850
+ */
851
+ private static function _append_product_tags() {
852
+ return self::_update_product_tags( 'append' );
853
+ } // _append_product_tags
854
+
855
+ /**
856
+ * Replace ALL Product Tags assignments from Product Image Att. Tags,
857
+ * where the Product Image exists
858
+ *
859
+ * @since 1.11
860
+ *
861
+ * @return string HTML markup for results/messages
862
+ */
863
+ private static function _replace_product_tags() {
864
+ return self::_update_product_tags( 'replace' );
865
+ } // _replace_product_tags
866
+
867
+ /**
868
+ * Common code for the Product Category operations
869
+ *
870
+ * @since 1.11
871
+ *
872
+ * @param string Action to be taken - clear, fill, append, replace
873
+ *
874
+ * @return string HTML markup for results/messages
875
+ */
876
+ private static function _update_product_tags( $action ) {
877
+ global $wpdb;
878
+
879
+ self::_build_product_attachments();
880
+
881
+ $update_count = 0;
882
+ $delete_count = 0;
883
+ $terms_added = 0;
884
+ $terms_removed = 0;
885
+
886
+ foreach ( array_chunk( self::$product_attachments, 25, true ) as $chunk ) {
887
+ // Find the Products that have Product Images
888
+ $products = array();
889
+ foreach ( $chunk as $product_id => $attachments ) {
890
+ if ( ! empty( $attachments['_thumbnail_id'] ) ) {
891
+ $id = absint( $attachments['_thumbnail_id'] );
892
+ $products[ $product_id ] = $id;
893
+ }
894
+ }
895
+
896
+ if ( count( $products ) == 0 ) {
897
+ continue;
898
+ }
899
+
900
+ switch ( $action ) {
901
+ case 'clear':
902
+ case 'fill':
903
+ // Select the attachments that have product_tag term assignments
904
+ $ids = implode( ',', array_keys( $products ) );
905
+ $query = sprintf( 'SELECT DISTINCT tr.object_id FROM %1$s as tr INNER JOIN %2$s as tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE ( tr.object_id IN ( %3$s ) AND tt.taxonomy = \'product_tag\' ) ', $wpdb->term_relationships, $wpdb->term_taxonomy, $ids );
906
+ $assignments = $wpdb->get_col( $query );
907
+
908
+ if ( 'clear' == $action ) {
909
+ foreach ( $assignments as $assignment ) {
910
+ wp_delete_object_term_relationships( $assignment, 'product_tag' );
911
+ $update_count++;
912
+ } // each assignment
913
+ } else {
914
+ // Find the products that have no assignments
915
+ $assignments = array_diff_key( $products, array_flip( $assignments ) );
916
+
917
+ foreach ( $assignments as $product_id => $assignment ) {
918
+ $attachment_tags = wp_get_object_terms( $assignment, 'attachment_tag', array( 'orderby' => 'none', 'fields' => 'names' ) );
919
+
920
+ if ( ! empty( $attachment_tags ) ) {
921
+ $term_taxonomy_ids = wp_set_object_terms( $product_id, $attachment_tags, 'product_tag' );
922
+ $terms_added += count( $term_taxonomy_ids );
923
+ $update_count++;
924
+ }
925
+ } // each assignment
926
+ }
927
+ break;
928
+ case 'append':
929
+ case 'replace':
930
+ foreach ( $products as $product_id => $assignment ) {
931
+ $attachment_tags = wp_get_object_terms( $assignment, 'attachment_tag', array( 'orderby' => 'none', 'fields' => 'names' ) );
932
+
933
+ if ( 'append' == $action ) {
934
+ if ( ! empty( $attachment_tags ) ) {
935
+ $old_term_taxonomy_ids = wp_get_object_terms( $product_id, 'product_tag', array( 'orderby' => 'none', 'fields' => 'tt_ids' ) );
936
+ $term_taxonomy_ids = wp_set_object_terms( $product_id, $attachment_tags, 'product_tag', true );
937
+ $new_terms = count( array_diff( $term_taxonomy_ids, $old_term_taxonomy_ids ) );
938
+ if ( 0 < $new_terms ) {
939
+ $terms_added += $new_terms;
940
+ $update_count++;
941
+ }
942
+ } // common terms
943
+ } else {
944
+ if ( ! empty( $attachment_tags ) ) {
945
+ $term_taxonomy_ids = wp_set_object_terms( $product_id, $attachment_tags, 'product_tag', false );
946
+ $new_terms = count( $term_taxonomy_ids );
947
+ if ( 0 < $new_terms ) {
948
+ $terms_added += $new_terms;
949
+ $update_count++;
950
+ }
951
+ } else {
952
+ $term_taxonomy_ids = wp_get_object_terms( $product_id, 'product_tag', array( 'orderby' => 'none', 'fields' => 'tt_ids' ) );
953
+
954
+ $old_terms = count( $term_taxonomy_ids );
955
+ if ( 0 < $old_terms ) {
956
+ $terms_removed += $old_terms;
957
+ $delete_count++;
958
+ $term_taxonomy_ids = wp_set_object_terms( $product_id, NULL, 'product_tag', false );
959
+ }
960
+ } // no common terms
961
+ }
962
+ } // each assignment
963
+ } // action
964
+ } // each chunk
965
+
966
+ switch ( $action ) {
967
+ case 'clear':
968
+ return "<br>_clear_product_categories() cleared {$update_count} Product(s).\n";
969
+ break;
970
+ case 'fill':
971
+ return "<br>_fill_product_categories() added {$terms_added} term(s) to {$update_count} Product(s).\n";
972
+ break;
973
+ case 'append':
974
+ return "<br>_append_product_categories() added {$terms_added} term(s) to {$update_count} Product(s).\n";
975
+ break;
976
+ case 'replace':
977
+ return "<br>_replace_product_categories() replaced {$terms_added} term(s) in {$update_count} Product(s), and deleted {$terms_removed} term(s) from {$delete_count} Product(s).\n";
978
+ }
979
+
980
+ return "<br>Unknown _update_product_categories action: {$action}";
981
+ } // _update_product_categories
982
+
983
+ /**
984
+ * Delete ALL Products' Product Categories assignments where a Product Image exists
985
+ *
986
+ * @since 1.11
987
+ *
988
+ * @return string HTML markup for results/messages
989
+ */
990
+ private static function _clear_product_categories() {
991
+ return self::_update_product_categories( 'clear' );
992
+ } // _clear_product_categories
993
+
994
+ /**
995
+ * Fill empty Product Categories assignments from Product Image Att. Tags,
996
+ * where the Product Image Att. Tag matches an existing Product Category
997
+ *
998
+ * @since 1.11
999
+ *
1000
+ * @return string HTML markup for results/messages
1001
+ */
1002
+ private static function _fill_product_categories() {
1003
+ return self::_update_product_categories( 'fill' );
1004
+ } // _fill_product_categories
1005
+
1006
+ /**
1007
+ * Append Product Categories assignments to ALL Products from Product Image Att. Tags,
1008
+ * where the Product Image Att. Tag matches an existing Product Category
1009
+ *
1010
+ * @since 1.11
1011
+ *
1012
+ * @return string HTML markup for results/messages
1013
+ */
1014
+ private static function _append_product_categories() {
1015
+ return self::_update_product_categories( 'append' );
1016
+ } // _append_product_categories
1017
+
1018
+ /**
1019
+ * Replace ALL Product Categories assignments from Product Image Att. Tags,
1020
+ * where the Product Image Att. Tag matches an existing Product Category
1021
+ *
1022
+ * @since 1.11
1023
+ *
1024
+ * @return string HTML markup for results/messages
1025
+ */
1026
+ private static function _replace_product_categories() {
1027
+ return self::_update_product_categories( 'replace' );
1028
+ } // _replace_product_categories
1029
+
1030
+ /**
1031
+ * Common code for the Product Category operations
1032
+ *
1033
+ * @since 1.11
1034
+ *
1035
+ * @param string Action to be taken - clear, fill, append, replace
1036
+ *
1037
+ * @return string HTML markup for results/messages
1038
+ */
1039
+ private static function _update_product_categories( $action ) {
1040
+ global $wpdb;
1041
+
1042
+ self::_build_product_attachments();
1043
+
1044
+ if ( 'clear' != $action ) {
1045
+ // Get the array of the Product Category term objects for comparison
1046
+ $product_categories = get_terms( 'product_cat', array( 'orderby' => 'none', 'hide_empty' => 0, 'fields' => 'id=>name' ) );
1047
+ } else {
1048
+ $product_categories = array();
1049
+ }
1050
+
1051
+ $update_count = 0;
1052
+ $delete_count = 0;
1053
+ $terms_added = 0;
1054
+ $terms_removed = 0;
1055
+
1056
+ foreach ( array_chunk( self::$product_attachments, 25, true ) as $chunk ) {
1057
+ // Find the Products that have Product Images
1058
+ $products = array();
1059
+ foreach ( $chunk as $product_id => $attachments ) {
1060
+ if ( ! empty( $attachments['_thumbnail_id'] ) ) {
1061
+ $id = absint( $attachments['_thumbnail_id'] );
1062
+ $products[ $product_id ] = $id;
1063
+ }
1064
+ }
1065
+
1066
+ if ( count( $products ) == 0 ) {
1067
+ continue;
1068
+ }
1069
+
1070
+ switch ( $action ) {
1071
+ case 'clear':
1072
+ case 'fill':
1073
+ // Select the attachments that have product_cat term assignments
1074
+ $ids = implode( ',', array_keys( $products ) );
1075
+ $query = sprintf( 'SELECT DISTINCT tr.object_id FROM %1$s as tr INNER JOIN %2$s as tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE ( tr.object_id IN ( %3$s ) AND tt.taxonomy = \'product_cat\' ) ', $wpdb->term_relationships, $wpdb->term_taxonomy, $ids );
1076
+ $assignments = $wpdb->get_col( $query );
1077
+
1078
+ if ( 'clear' == $action ) {
1079
+ foreach ( $assignments as $assignment ) {
1080
+ wp_delete_object_term_relationships( $assignment, 'product_cat' );
1081
+ $update_count++;
1082
+ } // each assignment
1083
+ } else {
1084
+ // Find the products that have no assignments
1085
+ $assignments = array_diff_key( $products, array_flip( $assignments ) );
1086
+
1087
+ foreach ( $assignments as $product_id => $assignment ) {
1088
+ $attachment_tags = wp_get_object_terms( $assignment, 'attachment_tag', array( 'orderby' => 'none', 'fields' => 'names' ) );
1089
+ $common_terms = array_keys( array_intersect( $product_categories, $attachment_tags ) );
1090
+
1091
+ if ( ! empty( $common_terms ) ) {
1092
+ $term_taxonomy_ids = wp_set_object_terms( $product_id, $common_terms, 'product_cat' );
1093
+ $terms_added += count( $term_taxonomy_ids );
1094
+ $update_count++;
1095
+ } // common terms
1096
+ } // each assignment
1097
+ }
1098
+ break;
1099
+ case 'append':
1100
+ case 'replace':
1101
+ foreach ( $products as $product_id => $assignment ) {
1102
+ $attachment_tags = wp_get_object_terms( $assignment, 'attachment_tag', array( 'orderby' => 'none', 'fields' => 'names' ) );
1103
+ $common_terms = array_keys( array_intersect( $product_categories, $attachment_tags ) );
1104
+
1105
+ if ( 'append' == $action ) {
1106
+ if ( ! empty( $common_terms ) ) {
1107
+ $old_term_taxonomy_ids = wp_get_object_terms( $product_id, 'product_cat', array( 'orderby' => 'none', 'fields' => 'tt_ids' ) );
1108
+ $term_taxonomy_ids = wp_set_object_terms( $product_id, $common_terms, 'product_cat', true );
1109
+ $new_terms = count( array_diff( $term_taxonomy_ids, $old_term_taxonomy_ids ) );
1110
+ if ( 0 < $new_terms ) {
1111
+ $terms_added += $new_terms;
1112
+ $update_count++;
1113
+ }
1114
+ } // common terms
1115
+ } else {
1116
+ if ( ! empty( $common_terms ) ) {
1117
+ $term_taxonomy_ids = wp_set_object_terms( $product_id, $common_terms, 'product_cat', false );
1118
+ $new_terms = count( $term_taxonomy_ids );
1119
+ if ( 0 < $new_terms ) {
1120
+ $terms_added += $new_terms;
1121
+ $update_count++;
1122
+ }
1123
+ } else {
1124
+ $term_taxonomy_ids = wp_get_object_terms( $product_id, 'product_cat', array( 'orderby' => 'none', 'fields' => 'tt_ids' ) );
1125
+
1126
+ $old_terms = count( $term_taxonomy_ids );
1127
+ if ( 0 < $old_terms ) {
1128
+ $terms_removed += $old_terms;
1129
+ $delete_count++;
1130
+ $term_taxonomy_ids = wp_set_object_terms( $product_id, NULL, 'product_cat', false );
1131
+ }
1132
+ } // no common terms
1133
+ }
1134
+ } // each assignment
1135
+ } // action
1136
+ } // each chunk
1137
+
1138
+ switch ( $action ) {
1139
+ case 'clear':
1140
+ return "<br>_clear_product_categories() cleared {$update_count} Product(s).\n";
1141
+ break;
1142
+ case 'fill':
1143
+ return "<br>_fill_product_categories() added {$terms_added} term(s) to {$update_count} Product(s).\n";
1144
+ break;
1145
+ case 'append':
1146
+ return "<br>_append_product_categories() added {$terms_added} term(s) to {$update_count} Product(s).\n";
1147
+ break;
1148
+ case 'replace':
1149
+ return "<br>_replace_product_categories() replaced {$terms_added} term(s) in {$update_count} Product(s), and deleted {$terms_removed} term(s) from {$delete_count} Product(s).\n";
1150
+ }
1151
+
1152
+ return "<br>Unknown _update_product_categories action: {$action}";
1153
+ } // _update_product_categories
1154
+
1155
+ /**
1156
+ * Delete ALL Att. Categories assignments
1157
+ *
1158
+ * @since 1.11
1159
+ *
1160
+ * @return string HTML markup for results/messages
1161
+ */
1162
+ private static function _clear_attachment_categories() {
1163
+ global $wpdb;
1164
+
1165
+ $update_count = 0;
1166
+ $offset = 0;
1167
+ $limit = 25;
1168
+
1169
+ do {
1170
+ // Select a chunk of attachment IDs
1171
+ $query = sprintf( 'SELECT p.ID FROM %1$s as p WHERE ( p.post_type = \'attachment\' ) ORDER BY p.ID LIMIT %2$d, %3$d', $wpdb->posts, $offset, $limit );
1172
+ $results = $wpdb->get_col( $query );
1173
+
1174
+ if ( is_array( $results ) && count( $results ) > 0 ) {
1175
+ // Select the attachments that have attachment_category term assignments
1176
+ $ids = implode( ',', $results );
1177
+ $query = sprintf( 'SELECT DISTINCT tr.object_id FROM %1$s as tr INNER JOIN %2$s as tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE ( tr.object_id IN ( %3$s ) AND tt.taxonomy = \'attachment_category\' ) ', $wpdb->term_relationships, $wpdb->term_taxonomy, $ids );
1178
+ $assignments = $wpdb->get_col( $query );
1179
+
1180
+ foreach ( $assignments as $assignment ) {
1181
+ wp_delete_object_term_relationships( $assignment, 'attachment_category' );
1182
+ $update_count++;
1183
+ }
1184
+ } else {
1185
+ $results = array();
1186
+ }
1187
+
1188
+ $offset += $limit;
1189
+ } while ( count( $results ) == $limit );
1190
+
1191
+ return "<br>_clear_attachment_categories() cleared {$update_count} items(s).\n";
1192
+ } // _clear_attachment_categories
1193
+
1194
+ /**
1195
+ * Fill empty Att. Categories assignments from Att. Tags,
1196
+ * where the Att. Tag matches an existing Att. Category
1197
+ *
1198
+ * @since 1.11
1199
+ *
1200
+ * @return string HTML markup for results/messages
1201
+ */
1202
+ private static function _fill_attachment_categories() {
1203
+ global $wpdb;
1204
+
1205
+ // Get the array of the Att. Category term objects for comparison
1206
+ $attachment_categories = get_terms( 'attachment_category', array( 'orderby' => 'none', 'hide_empty' => 0, 'fields' => 'id=>name' ) );
1207
+
1208
+ $update_count = 0;
1209
+ $terms_added = 0;
1210
+ $offset = 0;
1211
+ $limit = 25;
1212
+
1213
+ do {
1214
+ // Select a chunk of attachment IDs
1215
+ $query = sprintf( 'SELECT p.ID FROM %1$s as p WHERE ( p.post_type = \'attachment\' ) ORDER BY p.ID LIMIT %2$d, %3$d', $wpdb->posts, $offset, $limit );
1216
+ $results = $wpdb->get_col( $query );
1217
+
1218
+ if ( is_array( $results ) && count( $results ) > 0 ) {
1219
+ // Select the attachments that have attachment_category term assignments
1220
+ $ids = implode( ',', $results );
1221
+ $query = sprintf( 'SELECT DISTINCT tr.object_id FROM %1$s as tr INNER JOIN %2$s as tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE ( tr.object_id IN ( %3$s ) AND tt.taxonomy = \'attachment_category\' ) ', $wpdb->term_relationships, $wpdb->term_taxonomy, $ids );
1222
+ $assignments = $wpdb->get_col( $query );
1223
+
1224
+ // find the attachments that have no assignments
1225
+ $assignments = array_diff( $results, $assignments );
1226
+
1227
+ foreach ( $assignments as $assignment ) {
1228
+ $attachment_tags = wp_get_object_terms( $assignment, 'attachment_tag', array( 'orderby' => 'none', 'fields' => 'names' ) );
1229
+ $common_terms = array_keys( array_intersect( $attachment_categories, $attachment_tags ) );
1230
+ if ( ! empty( $common_terms ) ) {
1231
+ $term_taxonomy_ids = wp_set_object_terms( $assignment, $common_terms, 'attachment_category' );
1232
+ $terms_added += count( $term_taxonomy_ids );
1233
+ $update_count++;
1234
+ }
1235
+ }
1236
+ } else {
1237
+ $results = array();
1238
+ }
1239
+
1240
+ $offset += $limit;
1241
+ } while ( count( $results ) == $limit );
1242
+
1243
+ return "<br>_fill_attachment_categories() added {$terms_added} term(s) to {$update_count} item(s).\n";
1244
+ } // _fill_attachment_categories
1245
+
1246
+ /**
1247
+ * Append Att. Categories assignments to ALL items from Att. Tags,
1248
+ * where the Att. Tag matches an existing Att. Category
1249
+ *
1250
+ * @since 1.11
1251
+ *
1252
+ * @return string HTML markup for results/messages
1253
+ */
1254
+ private static function _append_attachment_categories() {
1255
+ global $wpdb;
1256
+
1257
+ // Get the array of the Att. Category term objects for comparison
1258
+ $attachment_categories = get_terms( 'attachment_category', array( 'orderby' => 'none', 'hide_empty' => 0, 'fields' => 'id=>name' ) );
1259
+
1260
+ $update_count = 0;
1261
+ $terms_added = 0;
1262
+ $offset = 0;
1263
+ $limit = 25;
1264
+
1265
+ do {
1266
+ // Select a chunk of attachment IDs
1267
+ $query = sprintf( 'SELECT p.ID FROM %1$s as p WHERE ( p.post_type = \'attachment\' ) ORDER BY p.ID LIMIT %2$d, %3$d', $wpdb->posts, $offset, $limit );
1268
+ $results = $wpdb->get_col( $query );
1269
+
1270
+ if ( is_array( $results ) && count( $results ) > 0 ) {
1271
+ // Select the attachments that have attachment_tag term assignments
1272
+ $ids = implode( ',', $results );
1273
+ $query = sprintf( 'SELECT DISTINCT tr.object_id FROM %1$s as tr INNER JOIN %2$s as tt ON tr.term_taxonomy_id = tt.term_taxonomy_id WHERE ( tr.object_id IN ( %3$s ) AND tt.taxonomy = \'attachment_tag\' ) ', $wpdb->term_relationships, $wpdb->term_taxonomy, $ids );
1274
+ $assignments = $wpdb->get_col( $query );
1275
+
1276
+ foreach ( $assignments as $assignment ) {
1277
+ $attachment_tags = wp_get_object_terms( $assignment, 'attachment_tag', array( 'orderby' => 'none', 'fields' => 'names' ) );
1278
+ $common_terms = array_keys( array_intersect( $attachment_categories, $attachment_tags ) );
1279
+ if ( ! empty( $common_terms ) ) {
1280
+ $old_term_taxonomy_ids = wp_get_object_terms( $assignment, 'attachment_category', array( 'orderby' => 'none', 'fields' => 'tt_ids' ) );
1281
+ $term_taxonomy_ids = wp_set_object_terms( $assignment, $common_terms, 'attachment_category', true );
1282
+
1283
+ $new_terms = count( array_diff( $term_taxonomy_ids, $old_term_taxonomy_ids ) );
1284
+ if ( 0 < $new_terms ) {
1285
+ $terms_added += $new_terms;
1286
+ $update_count++;
1287
+ }
1288
+ }
1289
+ }
1290
+ } else {
1291
+ $results = array();
1292
+ }
1293
+
1294
+ $offset += $limit;
1295
+ } while ( count( $results ) == $limit );
1296
+
1297
+ return "<br>_append_attachment_categories() added {$terms_added} term(s) to {$update_count} item(s).\n";
1298
+ } // _append_attachment_categories
1299
+
1300
+ /**
1301
+ * Replace ALL Att. Categories assignments from Att. Tags,
1302
+ * where the Att. Tag matches an existing Att. Category
1303
+ *
1304
+ * @since 1.11
1305
+ *
1306
+ * @return string HTML markup for results/messages
1307
+ */
1308
+ private static function _replace_attachment_categories() {
1309
+ global $wpdb;
1310
+
1311
+ // Get the array of the Att. Category term objects for comparison
1312
+ $attachment_categories = get_terms( 'attachment_category', array( 'orderby' => 'none', 'hide_empty' => 0, 'fields' => 'id=>name' ) );
1313
+
1314
+ $update_count = 0;
1315
+ $delete_count = 0;
1316
+ $terms_added = 0;
1317
+ $terms_removed = 0;
1318
+
1319
+ $offset = 0;
1320
+ $limit = 25;
1321
+
1322
+ do {
1323
+ // Select a chunk of attachment IDs
1324
+ $query = sprintf( 'SELECT p.ID FROM %1$s as p WHERE ( p.post_type = \'attachment\' ) ORDER BY p.ID LIMIT %2$d, %3$d', $wpdb->posts, $offset, $limit );
1325
+ $results = $wpdb->get_col( $query );
1326
+
1327
+ if ( is_array( $results ) && count( $results ) > 0 ) {
1328
+ foreach ( $results as $assignment ) {
1329
+ $attachment_tags = wp_get_object_terms( $assignment, 'attachment_tag', array( 'orderby' => 'none', 'fields' => 'names' ) );
1330
+ $common_terms = array_keys( array_intersect( $attachment_categories, $attachment_tags ) );
1331
+
1332
+ if ( ! empty( $common_terms ) ) {
1333
+ $term_taxonomy_ids = wp_set_object_terms( $assignment, $common_terms, 'attachment_category' );
1334
+ $new_terms = count( $term_taxonomy_ids );
1335
+ if ( 0 < $new_terms ) {
1336
+ $terms_added += $new_terms;
1337
+ $update_count++;
1338
+ }
1339
+ } else {
1340
+ $term_taxonomy_ids = wp_get_object_terms( $assignment, 'attachment_category', array( 'orderby' => 'none', 'fields' => 'tt_ids' ) );
1341
+ $old_terms = count( $term_taxonomy_ids );
1342
+ if ( 0 < $old_terms ) {
1343
+ $terms_removed += $old_terms;
1344
+ $delete_count++;
1345
+ $term_taxonomy_ids = wp_set_object_terms( $assignment, NULL, 'attachment_category' );
1346
+ }
1347
+ } // no common terms
1348
+ }
1349
+ } else {
1350
+ $results = array();
1351
+ }
1352
+
1353
+ $offset += $limit;
1354
+ } while ( count( $results ) == $limit );
1355
+
1356
+ return "<br>_replace_attachment_categories() replaced {$terms_added} term(s) in {$update_count} item(s), and deleted {$terms_removed} term(s) from {$delete_count} item(s).\n";
1357
+ } // _replace_attachment_categories
1358
+ } //Woo_Fixit
1359
+
1360
+ /*
1361
+ * Install the submenu at an early opportunity
1362
+ */
1363
+ add_action('init', 'Woo_Fixit::initialize');
1364
+ ?>
includes/class-mla-data.php CHANGED
@@ -1240,7 +1240,8 @@ class MLAData {
1240
  * The parameters are set up in the _prepare_list_table_query function, and
1241
  * any further logic required to translate those values is contained in the filters.
1242
  *
1243
- * 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
 
1244
  *
1245
  * @since 0.30
1246
  *
@@ -1248,6 +1249,35 @@ class MLAData {
1248
  */
1249
  private static $query_parameters = array();
1250
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1251
  /**
1252
  * Sanitize and expand query arguments from request variables
1253
  *
@@ -1441,11 +1471,12 @@ class MLAData {
1441
  } // foreach $raw_request
1442
 
1443
  /*
1444
- * Pass query parameters to the filters for _execute_list_table_query
1445
  */
1446
  self::$query_parameters = array( 'use_postmeta_view' => false, 'orderby' => $clean_request['orderby'], 'order' => $clean_request['order'] );
1447
  self::$query_parameters['detached'] = isset( $clean_request['detached'] ) ? $clean_request['detached'] : NULL;
1448
-
 
1449
  /*
1450
  * Matching a meta_value to NULL requires a LEFT JOIN to a view and a special WHERE clause
1451
  * Matching a wildcard pattern requires mainpulating the WHERE clause, too
@@ -1462,6 +1493,7 @@ class MLAData {
1462
 
1463
  if ( isset( $clean_request['debug'] ) ) {
1464
  self::$query_parameters['debug'] = $clean_request['debug'];
 
1465
  unset( $clean_request['debug'] );
1466
  }
1467
 
@@ -1476,7 +1508,7 @@ class MLAData {
1476
  * We will handle "Terms Search" in the mla_query_posts_search_filter.
1477
  */
1478
  if ( isset( $clean_request['mla_terms_search'] ) ) {
1479
- self::$query_parameters['mla_terms_search'] = $clean_request['mla_terms_search'];
1480
 
1481
  /*
1482
  * The Terms Search overrides any terms-based keyword search for now; too complicated.
@@ -1494,13 +1526,13 @@ class MLAData {
1494
  * We will handle keyword search in the mla_query_posts_search_filter.
1495
  */
1496
  if ( isset( $clean_request['s'] ) ) {
1497
- self::$query_parameters['s'] = $clean_request['s'];
1498
- self::$query_parameters['mla_search_connector'] = $clean_request['mla_search_connector'];
1499
- self::$query_parameters['mla_search_fields'] = $clean_request['mla_search_fields'];
1500
- self::$query_parameters['sentence'] = isset( $clean_request['sentence'] );
1501
- self::$query_parameters['exact'] = isset( $clean_request['exact'] );
1502
 
1503
- if ( in_array( 'alt-text', self::$query_parameters['mla_search_fields'] ) ) {
1504
  self::$query_parameters['use_postmeta_view'] = true;
1505
  self::$query_parameters['postmeta_key'] = '_wp_attachment_image_alt';
1506
  }
@@ -1769,8 +1801,8 @@ class MLAData {
1769
  /*
1770
  * Process the Terms Search arguments, if present.
1771
  */
1772
- if ( isset( self::$query_parameters['mla_terms_search'] ) ) {
1773
- $terms = array_map( 'trim', explode( ',', self::$query_parameters['mla_terms_search']['phrases'] ) );
1774
  if ( 1 < count( $terms ) ) {
1775
  $terms_connector = '(';
1776
  } else {
@@ -1784,7 +1816,7 @@ class MLAData {
1784
  $tax_terms = array();
1785
  $tax_counts = array();
1786
  foreach ( $phrases as $phrase ) {
1787
- $the_terms = get_terms( self::$query_parameters['mla_terms_search']['taxonomies'], array( 'name__like' => $phrase, 'fields' => 'all', 'hide_empty' => false ) );
1788
  foreach( $the_terms as $the_term ) {
1789
  $tax_terms[ $the_term->taxonomy ][ $the_term->term_id ] = (integer) $the_term->term_taxonomy_id;
1790
 
@@ -1799,7 +1831,7 @@ class MLAData {
1799
  /*
1800
  * For the AND connector, a taxonomy term must have all of the search terms within it
1801
  */
1802
- if ( 'AND' == self::$query_parameters['mla_terms_search']['radio_phrases'] ) {
1803
  $search_term_count = count( $phrases );
1804
  foreach ($tax_terms as $taxonomy => $term_ids ) {
1805
  foreach ( $term_ids as $term_id => $term_taxonomy_id ) {
@@ -1826,7 +1858,7 @@ class MLAData {
1826
  $inner_connector = ' OR';
1827
  } // foreach tax_term
1828
 
1829
- $terms_connector = ' ) ' . self::$query_parameters['mla_terms_search']['radio_terms'] . ' (';
1830
  } // tax_terms present
1831
  } // foreach term
1832
 
@@ -1837,42 +1869,38 @@ class MLAData {
1837
  if ( empty( $tax_clause ) ) {
1838
  $tax_clause = '1=0';
1839
  } else {
1840
- self::$query_parameters['tax_terms_count'] = $tax_index;
1841
  };
1842
  } // isset mla_terms_search
1843
 
1844
  /*
1845
  * Process the keyword search argument, if present.
1846
  */
1847
- if ( isset( self::$query_parameters['s'] ) ) {
1848
- if ( isset( self::$query_parameters['debug'] ) ) {
1849
- $debug_array = array( 's' => self::$query_parameters['s'] );
1850
- } // debug
1851
-
1852
  /*
1853
- * Interpret a numeric value as the ID of a specific attachment or the ID of a parent post/page;
1854
- * add it to the regular text-based search.
1855
  */
1856
- if ( is_numeric( self::$query_parameters['s'] ) ) {
1857
- $id = absint( self::$query_parameters['s'] );
1858
  $numeric_clause = '( ( ' . $wpdb->posts . '.ID = ' . $id . ' ) OR ( ' . $wpdb->posts . '.post_parent = ' . $id . ' ) ) OR ';
1859
  } else {
1860
  $numeric_clause = '';
1861
  }
1862
 
1863
  // WordPress v3.7 says: there are no line breaks in <input /> fields
1864
- self::$query_parameters['s'] = str_replace( array( "\r", "\n" ), '', self::$query_parameters['s'] );
1865
 
1866
- if ( self::$query_parameters['sentence'] ) {
1867
- $terms_search = array( self::$query_parameters['s'] );
1868
  } else {
1869
  // v3.6.1 was '/".*?("|$)|((?<=[\r\n\t ",+])|^)[^\r\n\t ",+]+/'
1870
- preg_match_all('/".*?("|$)|((?<=[\t ",+])|^)[^\t ",+]+/', self::$query_parameters['s'], $matches);
1871
  $terms_search = array_map('MLAData::mla_search_terms_tidy', $matches[0]);
1872
  }
1873
 
1874
- $fields = apply_filters( 'mla_list_table_search_filter_fields', self::$query_parameters['mla_search_fields'], array( 'content', 'title', 'excerpt', 'alt-text', 'name', 'terms' ) );
1875
- $percent = self::$query_parameters['exact'] ? '' : '%';
1876
  $connector = '';
1877
 
1878
  if ( empty( $fields ) ) {
@@ -1921,7 +1949,7 @@ class MLAData {
1921
 
1922
  if ( ! empty($inner_clause) ) {
1923
  $search_clause .= "{$connector}({$inner_clause})";
1924
- $connector = ' ' . self::$query_parameters['mla_search_connector'] . ' ';
1925
  }
1926
 
1927
  /*
@@ -1946,7 +1974,7 @@ class MLAData {
1946
  /*
1947
  * For the AND connector, a taxonomy term must have all of the search terms within it
1948
  */
1949
- if ( 'AND' == self::$query_parameters['mla_search_connector'] ) {
1950
  $search_term_count = count( $terms_search );
1951
  foreach ($tax_terms as $taxonomy => $term_ids ) {
1952
  foreach ( $term_ids as $term_id => $term_taxonomy_id ) {
@@ -1972,17 +2000,16 @@ class MLAData {
1972
  $tax_clause = '1=0';
1973
  }
1974
  } else {
1975
- self::$query_parameters['tax_terms'] = $tax_terms;
1976
  $tax_index = 0;
1977
  $inner_connector = '';
1978
 
1979
- foreach( self::$query_parameters['tax_terms'] as $tax_term ) {
1980
  $prefix = 'mlatt' . $tax_index++;
1981
  $tax_clause .= sprintf( '%1$s %2$s.term_taxonomy_id IN (%3$s)', $inner_connector, $prefix, implode( ',', $tax_term ) );
1982
  $inner_connector = ' OR';
1983
  } // foreach tax_term
1984
 
1985
- self::$query_parameters['tax_terms_count'] = $tax_index;
1986
  $tax_connector = 'OR';
1987
  } // tax_terms present
1988
  } // terms in fields
@@ -1997,21 +2024,23 @@ class MLAData {
1997
  $search_clause = " AND ( {$numeric_clause}{$search_clause}{$tax_clause} ) ";
1998
 
1999
  if ( ! is_user_logged_in() ) {
2000
- $post_password = $wpdb->posts.post_password;
2001
- $search_clause .= " AND ( {$post_password} = '' ) ";
2002
  }
2003
  }
2004
 
2005
- if ( isset( self::$query_parameters['debug'] ) ) {
2006
- $debug_array['search_clause'] = $search_clause;
2007
  $debug_array['search_string'] = $search_string;
 
 
2008
 
2009
- if ( 'console' == self::$query_parameters['debug'] ) {
 
 
2010
  /* translators: 1: search filter details */
2011
- trigger_error( sprintf( __( 'mla_query_posts_search_filter not numeric, = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
2012
  } else {
2013
  /* translators: 1: search filter details */
2014
- error_log( sprintf( _x( 'DEBUG: mla_query_posts_search_filter not numeric, = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
2015
  }
2016
  } // debug
2017
 
@@ -2114,11 +2143,11 @@ class MLAData {
2114
  $join_clause .= sprintf( ' LEFT JOIN %1$s ON (%2$s.ID = %1$s.post_id)', self::$mla_alt_text_view, $wpdb->posts );
2115
  }
2116
 
2117
- if ( isset( self::$query_parameters['tax_terms_count'] ) ) {
2118
  $tax_index = 0;
2119
  $tax_clause = '';
2120
 
2121
- while ( $tax_index < self::$query_parameters['tax_terms_count'] ) {
2122
  $prefix = 'mlatt' . $tax_index++;
2123
  $tax_clause .= sprintf( ' INNER JOIN %1$s AS %2$s ON (%3$s.ID = %2$s.object_id)', $wpdb->term_relationships, $prefix, $wpdb->posts );
2124
  }
@@ -2156,7 +2185,7 @@ class MLAData {
2156
  public static function mla_query_posts_groupby_filter( $groupby_clause ) {
2157
  global $wpdb;
2158
 
2159
- if ( isset( self::$query_parameters['tax_terms_count'] ) ) {
2160
  $groupby_clause = "{$wpdb->posts}.ID";
2161
  }
2162
 
@@ -2967,7 +2996,7 @@ class MLAData {
2967
  $files = array();
2968
  foreach ( $attachments as $index => $attachment ) {
2969
  $attachment_ids[ $index ] = $attachment->ID;
2970
- $references = array();
2971
  if ( isset( $attachment->mla_wp_attached_file ) ) {
2972
  $references['base_file'] = $attachment->mla_wp_attached_file;
2973
  } else {
@@ -2997,18 +3026,21 @@ class MLAData {
2997
  }
2998
  }
2999
 
3000
- $base_type = wp_check_filetype( $references['file'] );
3001
- $base_reference = array(
3002
- 'file' => $references['file'],
3003
- 'width' => isset( $attachment_metadata['width'] ) ? $attachment_metadata['width'] : 0,
3004
- 'height' => isset( $attachment_metadata['height'] ) ? $attachment_metadata['height'] : 0,
3005
- 'mime_type' => isset( $base_type['type'] ) ? $base_type['type'] : 'unknown',
3006
- );
 
3007
 
3008
- $references['files'][ $references['base_file'] ] = $base_reference;
 
 
3009
  $files[ $index ] = $references;
3010
  }
3011
-
3012
  if ('checked' == MLAOptions::mla_get_option( MLAOptions::MLA_EXCLUDE_REVISIONS ) ) {
3013
  $exclude_revisions = " AND (p.post_type <> 'revision')";
3014
  } else {
@@ -3084,7 +3116,7 @@ class MLAData {
3084
  } // foreach attachment
3085
  } // results
3086
  } // process_inserted_in
3087
-
3088
  if ( MLAOptions::$process_mla_gallery_in ) {
3089
  $have_mla_galleries = self::_build_mla_galleries( MLAOptions::MLA_MLA_GALLERY_IN_TUNING, self::$mla_galleries, '[mla_gallery', $exclude_revisions );
3090
  } else {
@@ -5418,6 +5450,7 @@ class MLAData {
5418
  } // one-element array
5419
  } // Multi-key value
5420
 
 
5421
  $old_value = self::mla_find_array_element( $key, $current_values, 'array' );
5422
  if ( ! empty( $old_value ) ) {
5423
  if ( empty( $value ) ) {
@@ -5515,7 +5548,7 @@ class MLAData {
5515
 
5516
  $delete = empty( $old_meta_value );
5517
  } else {
5518
- $delete = NULL == $meta_value;
5519
  }
5520
 
5521
  if ( $delete) {
@@ -5527,7 +5560,7 @@ class MLAData {
5527
  continue;
5528
  }
5529
  } else {
5530
- if ( NULL != $meta_value ) {
5531
  if ( $multi_key ) {
5532
  foreach ( $meta_value as $new_value ) {
5533
  if ( add_post_meta( $post_id, $meta_key, $new_value ) ) {
1240
  * The parameters are set up in the _prepare_list_table_query function, and
1241
  * any further logic required to translate those values is contained in the filters.
1242
  *
1243
+ * Array index values are: use_postmeta_view, postmeta_key, postmeta_value, patterns,
1244
+ * detached, orderby, order, mla-metavalue, debug (also in search_parameters)
1245
  *
1246
  * @since 0.30
1247
  *
1249
  */
1250
  private static $query_parameters = array();
1251
 
1252
+ /**
1253
+ * WP_Query 'posts_search' filter "parameters"
1254
+ *
1255
+ * This array defines parameters for the query's posts_search filter, which uses
1256
+ * 'search_string' to add a clause to the query's WHERE clause. It is shared between
1257
+ * the list_table-query functions here and the mla_get_shortcode_attachments function
1258
+ * in class-mla-shortcodes.php. This array passes the relevant parameters to the filter.
1259
+ *
1260
+ * Array index values are:
1261
+ * ['mla_terms_search']['phrases']
1262
+ * ['mla_terms_search']['taxonomies']
1263
+ * ['mla_terms_search']['radio_phrases'] => AND/OR
1264
+ * ['mla_terms_search']['radio_terms'] => AND/OR
1265
+ * ['s'] => numeric for ID/parent search
1266
+ * ['mla_search_fields'] => 'content', 'title', 'excerpt', 'alt-text', 'name', 'terms'
1267
+ * Note: 'alt-text' is not supported in [mla_gallery]
1268
+ * ['mla_search_connector'] => AND/OR
1269
+ * ['sentence'] => entire string must match as one "keyword"
1270
+ * ['exact'] => entire string must match entire field value
1271
+ * ['debug'] => internal element, console/log/shortcode/none
1272
+ * ['mla_debug_messages'] => internal element, added when debug = 'shortcode'
1273
+ * ['tax_terms_count'] => internal element, shared with JOIN and GROUP BY filters
1274
+ *
1275
+ * @since 2.00
1276
+ *
1277
+ * @var array
1278
+ */
1279
+ public static $search_parameters = array();
1280
+
1281
  /**
1282
  * Sanitize and expand query arguments from request variables
1283
  *
1471
  } // foreach $raw_request
1472
 
1473
  /*
1474
+ * Pass query and search parameters to the filters for _execute_list_table_query
1475
  */
1476
  self::$query_parameters = array( 'use_postmeta_view' => false, 'orderby' => $clean_request['orderby'], 'order' => $clean_request['order'] );
1477
  self::$query_parameters['detached'] = isset( $clean_request['detached'] ) ? $clean_request['detached'] : NULL;
1478
+ self::$search_parameters = array( 'debug' => 'none' );
1479
+
1480
  /*
1481
  * Matching a meta_value to NULL requires a LEFT JOIN to a view and a special WHERE clause
1482
  * Matching a wildcard pattern requires mainpulating the WHERE clause, too
1493
 
1494
  if ( isset( $clean_request['debug'] ) ) {
1495
  self::$query_parameters['debug'] = $clean_request['debug'];
1496
+ self::$search_parameters['debug'] = $clean_request['debug'];
1497
  unset( $clean_request['debug'] );
1498
  }
1499
 
1508
  * We will handle "Terms Search" in the mla_query_posts_search_filter.
1509
  */
1510
  if ( isset( $clean_request['mla_terms_search'] ) ) {
1511
+ self::$search_parameters['mla_terms_search'] = $clean_request['mla_terms_search'];
1512
 
1513
  /*
1514
  * The Terms Search overrides any terms-based keyword search for now; too complicated.
1526
  * We will handle keyword search in the mla_query_posts_search_filter.
1527
  */
1528
  if ( isset( $clean_request['s'] ) ) {
1529
+ self::$search_parameters['s'] = $clean_request['s'];
1530
+ self::$search_parameters['mla_search_fields'] = apply_filters( 'mla_list_table_search_filter_fields', $clean_request['mla_search_fields'], array( 'content', 'title', 'excerpt', 'alt-text', 'name', 'terms' ) );
1531
+ self::$search_parameters['mla_search_connector'] = $clean_request['mla_search_connector'];
1532
+ self::$search_parameters['sentence'] = isset( $clean_request['sentence'] );
1533
+ self::$search_parameters['exact'] = isset( $clean_request['exact'] );
1534
 
1535
+ if ( in_array( 'alt-text', self::$search_parameters['mla_search_fields'] ) ) {
1536
  self::$query_parameters['use_postmeta_view'] = true;
1537
  self::$query_parameters['postmeta_key'] = '_wp_attachment_image_alt';
1538
  }
1801
  /*
1802
  * Process the Terms Search arguments, if present.
1803
  */
1804
+ if ( isset( self::$search_parameters['mla_terms_search'] ) ) {
1805
+ $terms = array_map( 'trim', explode( ',', self::$search_parameters['mla_terms_search']['phrases'] ) );
1806
  if ( 1 < count( $terms ) ) {
1807
  $terms_connector = '(';
1808
  } else {
1816
  $tax_terms = array();
1817
  $tax_counts = array();
1818
  foreach ( $phrases as $phrase ) {
1819
+ $the_terms = get_terms( self::$search_parameters['mla_terms_search']['taxonomies'], array( 'name__like' => $phrase, 'fields' => 'all', 'hide_empty' => false ) );
1820
  foreach( $the_terms as $the_term ) {
1821
  $tax_terms[ $the_term->taxonomy ][ $the_term->term_id ] = (integer) $the_term->term_taxonomy_id;
1822
 
1831
  /*
1832
  * For the AND connector, a taxonomy term must have all of the search terms within it
1833
  */
1834
+ if ( 'AND' == self::$search_parameters['mla_terms_search']['radio_phrases'] ) {
1835
  $search_term_count = count( $phrases );
1836
  foreach ($tax_terms as $taxonomy => $term_ids ) {
1837
  foreach ( $term_ids as $term_id => $term_taxonomy_id ) {
1858
  $inner_connector = ' OR';
1859
  } // foreach tax_term
1860
 
1861
+ $terms_connector = ' ) ' . self::$search_parameters['mla_terms_search']['radio_terms'] . ' (';
1862
  } // tax_terms present
1863
  } // foreach term
1864
 
1869
  if ( empty( $tax_clause ) ) {
1870
  $tax_clause = '1=0';
1871
  } else {
1872
+ self::$search_parameters['tax_terms_count'] = $tax_index;
1873
  };
1874
  } // isset mla_terms_search
1875
 
1876
  /*
1877
  * Process the keyword search argument, if present.
1878
  */
1879
+ if ( isset( self::$search_parameters['s'] ) ) {
 
 
 
 
1880
  /*
1881
+ * Interpret a numeric value as the ID of a specific attachment or the ID of
1882
+ * a parent post/page; add it to the regular text-based search.
1883
  */
1884
+ if ( is_numeric( self::$search_parameters['s'] ) ) {
1885
+ $id = absint( self::$search_parameters['s'] );
1886
  $numeric_clause = '( ( ' . $wpdb->posts . '.ID = ' . $id . ' ) OR ( ' . $wpdb->posts . '.post_parent = ' . $id . ' ) ) OR ';
1887
  } else {
1888
  $numeric_clause = '';
1889
  }
1890
 
1891
  // WordPress v3.7 says: there are no line breaks in <input /> fields
1892
+ self::$search_parameters['s'] = str_replace( array( "\r", "\n" ), '', self::$search_parameters['s'] );
1893
 
1894
+ if ( self::$search_parameters['sentence'] ) {
1895
+ $terms_search = array( self::$search_parameters['s'] );
1896
  } else {
1897
  // v3.6.1 was '/".*?("|$)|((?<=[\r\n\t ",+])|^)[^\r\n\t ",+]+/'
1898
+ preg_match_all('/".*?("|$)|((?<=[\t ",+])|^)[^\t ",+]+/', self::$search_parameters['s'], $matches);
1899
  $terms_search = array_map('MLAData::mla_search_terms_tidy', $matches[0]);
1900
  }
1901
 
1902
+ $fields = self::$search_parameters['mla_search_fields'];
1903
+ $percent = self::$search_parameters['exact'] ? '' : '%';
1904
  $connector = '';
1905
 
1906
  if ( empty( $fields ) ) {
1949
 
1950
  if ( ! empty($inner_clause) ) {
1951
  $search_clause .= "{$connector}({$inner_clause})";
1952
+ $connector = ' ' . self::$search_parameters['mla_search_connector'] . ' ';
1953
  }
1954
 
1955
  /*
1974
  /*
1975
  * For the AND connector, a taxonomy term must have all of the search terms within it
1976
  */
1977
+ if ( 'AND' == self::$search_parameters['mla_search_connector'] ) {
1978
  $search_term_count = count( $terms_search );
1979
  foreach ($tax_terms as $taxonomy => $term_ids ) {
1980
  foreach ( $term_ids as $term_id => $term_taxonomy_id ) {
2000
  $tax_clause = '1=0';
2001
  }
2002
  } else {
 
2003
  $tax_index = 0;
2004
  $inner_connector = '';
2005
 
2006
+ foreach( $tax_terms as $tax_term ) {
2007
  $prefix = 'mlatt' . $tax_index++;
2008
  $tax_clause .= sprintf( '%1$s %2$s.term_taxonomy_id IN (%3$s)', $inner_connector, $prefix, implode( ',', $tax_term ) );
2009
  $inner_connector = ' OR';
2010
  } // foreach tax_term
2011
 
2012
+ self::$search_parameters['tax_terms_count'] = $tax_index;
2013
  $tax_connector = 'OR';
2014
  } // tax_terms present
2015
  } // terms in fields
2024
  $search_clause = " AND ( {$numeric_clause}{$search_clause}{$tax_clause} ) ";
2025
 
2026
  if ( ! is_user_logged_in() ) {
2027
+ $search_clause .= " AND ( {$wpdb->posts}.post_password = '' ) ";
 
2028
  }
2029
  }
2030
 
2031
+ if ( 'none' != self::$search_parameters['debug'] ) {
 
2032
  $debug_array['search_string'] = $search_string;
2033
+ $debug_array['search_parameters'] = self::$search_parameters;
2034
+ $debug_array['search_clause'] = $search_clause;
2035
 
2036
+ if ( 'shortcode' == self::$search_parameters['debug'] ) {
2037
+ self::$search_parameters['mla_debug_messages'] = '<p><strong>mla_debug posts_search filter</strong> = ' . var_export( $debug_array, true ) . '</p>';
2038
+ } elseif ( 'console' == self::$search_parameters['debug'] ) {
2039
  /* translators: 1: search filter details */
2040
+ trigger_error( sprintf( __( 'mla_query_posts_search_filter = "%1$s".', 'media-library-assistant' ), var_export( $debug_array, true ) ), E_USER_WARNING );
2041
  } else {
2042
  /* translators: 1: search filter details */
2043
+ error_log( sprintf( _x( 'DEBUG: mla_query_posts_search_filter = "%1$s".', 'error_log', 'media-library-assistant' ), var_export( $debug_array, true ) ), 0 );
2044
  }
2045
  } // debug
2046
 
2143
  $join_clause .= sprintf( ' LEFT JOIN %1$s ON (%2$s.ID = %1$s.post_id)', self::$mla_alt_text_view, $wpdb->posts );
2144
  }
2145
 
2146
+ if ( isset( self::$search_parameters['tax_terms_count'] ) ) {
2147
  $tax_index = 0;
2148
  $tax_clause = '';
2149
 
2150
+ while ( $tax_index < self::$search_parameters['tax_terms_count'] ) {
2151
  $prefix = 'mlatt' . $tax_index++;
2152
  $tax_clause .= sprintf( ' INNER JOIN %1$s AS %2$s ON (%3$s.ID = %2$s.object_id)', $wpdb->term_relationships, $prefix, $wpdb->posts );
2153
  }
2185
  public static function mla_query_posts_groupby_filter( $groupby_clause ) {
2186
  global $wpdb;
2187
 
2188
+ if ( isset( self::$search_parameters['tax_terms_count'] ) ) {
2189
  $groupby_clause = "{$wpdb->posts}.ID";
2190
  }
2191
 
2996
  $files = array();
2997
  foreach ( $attachments as $index => $attachment ) {
2998
  $attachment_ids[ $index ] = $attachment->ID;
2999
+ $references = array( 'files' => array() );
3000
  if ( isset( $attachment->mla_wp_attached_file ) ) {
3001
  $references['base_file'] = $attachment->mla_wp_attached_file;
3002
  } else {
3026
  }
3027
  }
3028
 
3029
+ if ( ! empty( $references['base_file'] ) ) {
3030
+ $base_type = wp_check_filetype( $references['file'] );
3031
+ $base_reference = array(
3032
+ 'file' => $references['file'],
3033
+ 'width' => isset( $attachment_metadata['width'] ) ? $attachment_metadata['width'] : 0,
3034
+ 'height' => isset( $attachment_metadata['height'] ) ? $attachment_metadata['height'] : 0,
3035
+ 'mime_type' => ( isset( $base_type['type'] ) && false !== $base_type['type'] ) ? $base_type['type'] : 'unknown',
3036
+ );
3037
 
3038
+ $references['files'][ $references['base_file'] ] = $base_reference;
3039
+ }
3040
+
3041
  $files[ $index ] = $references;
3042
  }
3043
+
3044
  if ('checked' == MLAOptions::mla_get_option( MLAOptions::MLA_EXCLUDE_REVISIONS ) ) {
3045
  $exclude_revisions = " AND (p.post_type <> 'revision')";
3046
  } else {
3116
  } // foreach attachment
3117
  } // results
3118
  } // process_inserted_in
3119
+
3120
  if ( MLAOptions::$process_mla_gallery_in ) {
3121
  $have_mla_galleries = self::_build_mla_galleries( MLAOptions::MLA_MLA_GALLERY_IN_TUNING, self::$mla_galleries, '[mla_gallery', $exclude_revisions );
3122
  } else {
5450
  } // one-element array
5451
  } // Multi-key value
5452
 
5453
+ $value = sanitize_text_field( $value );
5454
  $old_value = self::mla_find_array_element( $key, $current_values, 'array' );
5455
  if ( ! empty( $old_value ) ) {
5456
  if ( empty( $value ) ) {
5548
 
5549
  $delete = empty( $old_meta_value );
5550
  } else {
5551
+ $delete = NULL === $meta_value;
5552
  }
5553
 
5554
  if ( $delete) {
5560
  continue;
5561
  }
5562
  } else {
5563
+ if ( NULL !== $meta_value ) {
5564
  if ( $multi_key ) {
5565
  foreach ( $meta_value as $new_value ) {
5566
  if ( add_post_meta( $post_id, $meta_key, $new_value ) ) {
includes/class-mla-list-table.php CHANGED
@@ -808,9 +808,9 @@ class MLA_List_Table extends WP_List_Table {
808
 
809
  if ( current_user_can( 'upload_files' ) ) {
810
  $file = get_attached_file( $item->ID );
811
- $download_args = array( 'mla_download_file' => $file, 'mla_download_type' => $item->post_mime_type );
812
 
813
- $actions['download'] = '<a href="' . add_query_arg( $download_args, MLA_PLUGIN_URL . 'includes/mla-force-download.php' ) . '" title="' . __( 'Download', 'media-library-assistant' ) . ' &#8220;' . esc_attr( $item->post_title ) . '&#8221;">' . __( 'Download', 'media-library-assistant' ) . '</a>';
814
  }
815
 
816
  $actions['view'] = '<a href="' . site_url( ) . '?attachment_id=' . $item->ID . '" rel="permalink" title="' . __( 'View', 'media-library-assistant' ) . ' &#8220;' . esc_attr( $item->post_title ) . '&#8221;">' . __( 'View', 'media-library-assistant' ) . '</a>';
@@ -1288,9 +1288,12 @@ class MLA_List_Table extends WP_List_Table {
1288
  * @return string HTML markup to be placed inside the column
1289
  */
1290
  function column_date( $item ) {
 
 
1291
  if ( '0000-00-00 00:00:00' == $item->post_date ) {
1292
  $h_time = __( 'Unpublished', 'media-library-assistant' );
1293
  } else {
 
1294
  $m_time = $item->post_date;
1295
  $time = get_post_time( 'G', true, $item, false );
1296
 
808
 
809
  if ( current_user_can( 'upload_files' ) ) {
810
  $file = get_attached_file( $item->ID );
811
+ $download_args = array( 'page' => MLA::ADMIN_PAGE_SLUG, 'mla_download_file' => urlencode( $file ), 'mla_download_type' => $item->post_mime_type );
812
 
813
+ $actions['download'] = '<a href="' . add_query_arg( $download_args, wp_nonce_url( 'upload.php', MLA::MLA_ADMIN_NONCE ) ) . '" title="' . __( 'Download', 'media-library-assistant' ) . ' &#8220;' . esc_attr( $item->post_title ) . '&#8221;">' . __( 'Download', 'media-library-assistant' ) . '</a>';
814
  }
815
 
816
  $actions['view'] = '<a href="' . site_url( ) . '?attachment_id=' . $item->ID . '" rel="permalink" title="' . __( 'View', 'media-library-assistant' ) . ' &#8220;' . esc_attr( $item->post_title ) . '&#8221;">' . __( 'View', 'media-library-assistant' ) . '</a>';
1288
  * @return string HTML markup to be placed inside the column
1289
  */
1290
  function column_date( $item ) {
1291
+ global $post;
1292
+
1293
  if ( '0000-00-00 00:00:00' == $item->post_date ) {
1294
  $h_time = __( 'Unpublished', 'media-library-assistant' );
1295
  } else {
1296
+ $post = $item; // Resolve issue with "The Events Calendar"
1297
  $m_time = $item->post_date;
1298
  $time = get_post_time( 'G', true, $item, false );
1299
 
includes/class-mla-main.php CHANGED
@@ -29,7 +29,7 @@ class MLA {
29
  *
30
  * @var string
31
  */
32
- const CURRENT_MLA_VERSION = '1.95';
33
 
34
  /**
35
  * Slug for registering and enqueueing plugin style sheet
@@ -246,6 +246,15 @@ class MLA {
246
  */
247
  public static function mla_admin_init_action() {
248
  //error_log( 'DEBUG: mla_admin_init_action $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
 
 
 
 
 
 
 
 
 
249
  /*
250
  * Process row-level actions from the Edit Media screen
251
  */
@@ -256,7 +265,6 @@ class MLA {
256
  check_admin_referer( self::MLA_ADMIN_NONCE );
257
  }
258
 
259
-
260
  switch ( $_REQUEST['mla_admin_action'] ) {
261
  case self::MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP:
262
  do_action( 'mla_begin_mapping', 'single_custom', $_REQUEST['mla_item_ID'] );
@@ -285,9 +293,11 @@ class MLA {
285
  } // switch ($_REQUEST['mla_admin_action'])
286
  } // (!empty($_REQUEST['mla_admin_action'])
287
 
288
- add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_SLUG, 'MLA::mla_inline_edit_ajax_action' );
289
- add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', 'MLA::mla_set_parent_ajax_action' );
290
- add_action( 'wp_ajax_' . 'mla_find_posts', 'MLA::mla_find_posts_ajax_action' );
 
 
291
  }
292
 
293
  /**
@@ -357,6 +367,13 @@ class MLA {
357
  'ntdelTitle' => __( 'Remove From Bulk Edit', 'media-library-assistant' ),
358
  'noTitle' => __( '(no title)', 'media-library-assistant' ),
359
  'bulkTitle' => __( 'Bulk Edit items', 'media-library-assistant' ),
 
 
 
 
 
 
 
360
  'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
361
  'ajax_action' => self::JAVASCRIPT_INLINE_EDIT_SLUG,
362
  'ajax_nonce' => wp_create_nonce( self::MLA_ADMIN_NONCE )
@@ -739,6 +756,59 @@ class MLA {
739
  return $parent_file;
740
  }
741
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
742
  /**
743
  * Process bulk edit area fields, which may contain a Content Template
744
  *
@@ -774,6 +844,258 @@ class MLA {
774
  return $new_value;
775
  }
776
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
777
  /**
778
  * Render the "Assistant" subpage in the Media section, using the list_table package
779
  *
@@ -840,190 +1162,11 @@ class MLA {
840
  * Process bulk actions that affect an array of items
841
  */
842
  if ( $bulk_action && ( $bulk_action != 'none' ) ) {
843
-
844
- if ( isset( $_REQUEST['cb_attachment'] ) ) {
845
- if ( !empty( $_REQUEST['bulk_custom_field_map'] ) ) {
846
- do_action( 'mla_begin_mapping', 'bulk_custom', NULL );
847
- } elseif ( !empty( $_REQUEST['bulk_map'] ) ) {
848
- do_action( 'mla_begin_mapping', 'bulk_iptc_exif', NULL );
849
- }
850
-
851
- foreach ( $_REQUEST['cb_attachment'] as $index => $post_id ) {
852
- $item_content = apply_filters( 'mla_list_table_bulk_action', NULL, $bulk_action, $post_id );
853
- if ( is_null( $item_content ) ) {
854
- $prevent_default = false;
855
- $custom_message = '';
856
- } else {
857
- $prevent_default = isset( $item_content['prevent_default'] ) ? $item_content['prevent_default'] : false;
858
- $custom_message = isset( $item_content['message'] ) ? $item_content['message'] : '';
859
- }
860
-
861
- if ( ! $prevent_default ) {
862
- switch ( $bulk_action ) {
863
- case 'delete':
864
- $item_content = self::_delete_single_item( $post_id );
865
- break;
866
- case 'edit':
867
- if ( !empty( $_REQUEST['bulk_custom_field_map'] ) ) {
868
- $updates = MLAOptions::mla_evaluate_custom_field_mapping( $post_id, 'single_attachment_mapping' );
869
- $item_content = MLAData::mla_update_single_item( $post_id, $updates );
870
- break;
871
- }
872
-
873
- if ( !empty( $_REQUEST['bulk_map'] ) ) {
874
- $item = get_post( $post_id );
875
- $updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping' );
876
- $item_content = MLAData::mla_update_single_item( $post_id, $updates );
877
- break;
878
- }
879
-
880
- /*
881
- * Copy the edit form contents to $new_data
882
- * Trim text values for testing purposes only
883
- */
884
- $new_data = array() ;
885
- if ( isset( $_REQUEST['post_title'] ) ) {
886
- $test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_title'] );
887
- if ( ! empty( $test_value ) ) {
888
- $new_data['post_title'] = $test_value;
889
- } elseif ( is_null( $test_value ) ) {
890
- $new_data['post_title'] = '';
891
- }
892
- }
893
-
894
- if ( isset( $_REQUEST['post_excerpt'] ) ) {
895
- $test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_excerpt'] );
896
- if ( ! empty( $test_value ) ) {
897
- $new_data['post_excerpt'] = $test_value;
898
- } elseif ( is_null( $test_value ) ) {
899
- $new_data['post_excerpt'] = '';
900
- }
901
- }
902
-
903
- if ( isset( $_REQUEST['post_content'] ) ) {
904
- $test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_content'] );
905
- if ( ! empty( $test_value ) ) {
906
- $new_data['post_content'] = $test_value;
907
- } elseif ( is_null( $test_value ) ) {
908
- $new_data['post_content'] = '';
909
- }
910
- }
911
-
912
- /*
913
- * image_alt requires a separate key because some attachment types
914
- * should not get a value, e.g., text or PDF documents
915
- */
916
- if ( isset( $_REQUEST['image_alt'] ) ) {
917
- $test_value = self::_process_bulk_value( $post_id, $_REQUEST['image_alt'] );
918
- if ( ! empty( $test_value ) ) {
919
- $new_data['bulk_image_alt'] = $test_value;
920
- } elseif ( is_null( $test_value ) ) {
921
- $new_data['bulk_image_alt'] = '';
922
- }
923
- }
924
-
925
- if ( isset( $_REQUEST['post_parent'] ) ) {
926
- if ( is_numeric( $_REQUEST['post_parent'] ) ) {
927
- $new_data['post_parent'] = $_REQUEST['post_parent'];
928
- }
929
- }
930
-
931
- if ( isset( $_REQUEST['post_author'] ) ) {
932
- if ( -1 != $_REQUEST['post_author'] ) {
933
- $new_data['post_author'] = $_REQUEST['post_author'];
934
- }
935
- }
936
-
937
- if ( isset( $_REQUEST['comment_status'] ) ) {
938
- if ( -1 != $_REQUEST['comment_status'] ) {
939
- $new_data['comment_status'] = $_REQUEST['comment_status'];
940
- }
941
- }
942
-
943
- if ( isset( $_REQUEST['ping_status'] ) ) {
944
- if ( -1 != $_REQUEST['ping_status'] ) {
945
- $new_data['ping_status'] = $_REQUEST['ping_status'];
946
- }
947
- }
948
-
949
- /*
950
- * Custom field support
951
- */
952
- $custom_fields = array();
953
- foreach (MLAOptions::mla_custom_field_support( 'bulk_edit' ) as $slug => $label ) {
954
- if ( isset( $_REQUEST[ $slug ] ) ) {
955
- if ( ! empty( $_REQUEST[ $slug ] ) ) {
956
- $custom_fields[ $label ] = $_REQUEST[ $slug ];
957
- }
958
- }
959
- } // foreach
960
-
961
- if ( ! empty( $custom_fields ) ) {
962
- $new_data[ 'custom_updates' ] = $custom_fields;
963
- }
964
-
965
- $item_content = MLAData::mla_update_single_item( $post_id, $new_data, $_REQUEST['tax_input'], $_REQUEST['tax_action'] );
966
- break;
967
- case 'restore':
968
- $item_content = self::_restore_single_item( $post_id );
969
- break;
970
- //case 'tag':
971
- case 'trash':
972
- $item_content = self::_trash_single_item( $post_id );
973
- break;
974
- default:
975
- $item_content = apply_filters( 'mla_list_table_custom_bulk_action', NULL, $bulk_action, $post_id );
976
- if ( is_null( $item_content ) ) {
977
- $item_content = array(
978
- /* translators: 1: bulk_action, e.g., delete, edit, restore, trash */
979
- 'message' => sprintf( __( 'Unknown bulk action %1$s', 'media-library-assistant' ), $bulk_action ),
980
- 'body' => ''
981
- );
982
- } // unknown bulk_action
983
- } // switch $bulk_action
984
- } // ! $prevent_default
985
-
986
- if ( ! empty( $custom_message ) ) {
987
- $no_changes = sprintf( __( 'Item %1$d, no changes detected.', 'media-library-assistant' ), $post_id );
988
- if ( $no_changes == $item_content['message'] ) {
989
- $item_content['message'] = $custom_message;
990
- } else {
991
- $item_content['message'] = $custom_message . '<br>' . $item_content['message'];
992
- }
993
- }
994
-
995
- if ( ! empty( $item_content['message'] ) ) {
996
- $page_content['message'] .= $item_content['message'] . '<br>';
997
- }
998
- } // foreach cb_attachment
999
-
1000
- if ( !empty( $_REQUEST['bulk_custom_field_map'] ) || !empty( $_REQUEST['bulk_map'] ) ) {
1001
- do_action( 'mla_end_mapping' );
1002
- }
1003
-
1004
- unset( $_REQUEST['post_title'] );
1005
- unset( $_REQUEST['post_excerpt'] );
1006
- unset( $_REQUEST['post_content'] );
1007
- unset( $_REQUEST['image_alt'] );
1008
- unset( $_REQUEST['comment_status'] );
1009
- unset( $_REQUEST['ping_status'] );
1010
- unset( $_REQUEST['post_parent'] );
1011
- unset( $_REQUEST['post_author'] );
1012
- unset( $_REQUEST['tax_input'] );
1013
- unset( $_REQUEST['tax_action'] );
1014
-
1015
- foreach (MLAOptions::mla_custom_field_support( 'bulk_edit' ) as $slug => $label )
1016
- unset( $_REQUEST[ $slug ] );
1017
-
1018
- unset( $_REQUEST['cb_attachment'] );
1019
- } else { // isset cb_attachment
1020
- /* translators: 1: action name, e.g., edit */
1021
- $page_content['message'] = sprintf( __( 'Bulk Action %1$s - no items selected.', 'media-library-assistant' ), $bulk_action );
1022
  }
1023
-
1024
- unset( $_REQUEST['action'] );
1025
- unset( $_REQUEST['bulk_edit'] );
1026
- unset( $_REQUEST['action2'] );
1027
  } // $bulk_action
1028
 
1029
  if ( isset( $_REQUEST['clear_filter_by'] ) ) {
@@ -1380,6 +1523,8 @@ class MLA {
1380
  case 'draft' :
1381
  $stat = __('Draft');
1382
  break;
 
 
1383
  }
1384
 
1385
  if ( '0000-00-00 00:00:00' == $post->post_date ) {
@@ -1439,19 +1584,50 @@ class MLA {
1439
  }
1440
 
1441
  /**
1442
- * Ajax handler for inline editing (quick edit only)
1443
  *
1444
- * Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1445
  *
1446
  * @since 0.20
1447
  *
1448
  * @return void echo HTML <tr> markup for updated row or error message, then die()
1449
  */
1450
  public static function mla_inline_edit_ajax_action() {
 
1451
  set_current_screen( $_REQUEST['screen'] );
1452
 
1453
  check_ajax_referer( self::MLA_ADMIN_NONCE, 'nonce' );
1454
 
 
 
 
 
1455
  if ( empty( $_REQUEST['post_ID'] ) ) {
1456
  echo __( 'ERROR: No post ID found', 'media-library-assistant' );
1457
  die();
@@ -1836,6 +2012,10 @@ class MLA {
1836
  'bulk_custom_fields' => $bulk_custom_fields,
1837
  'Map IPTC/EXIF metadata' => __( 'Map IPTC/EXIF metadata', 'media-library-assistant' ),
1838
  'Map Custom Field metadata' => __( 'Map Custom Field Metadata', 'media-library-assistant' ),
 
 
 
 
1839
  'set_parent_form' => $set_parent_form,
1840
  );
1841
 
29
  *
30
  * @var string
31
  */
32
+ const CURRENT_MLA_VERSION = '2.00';
33
 
34
  /**
35
  * Slug for registering and enqueueing plugin style sheet
246
  */
247
  public static function mla_admin_init_action() {
248
  //error_log( 'DEBUG: mla_admin_init_action $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
249
+ /*
250
+ * Process secure file download requests
251
+ */
252
+ if ( isset( $_REQUEST['mla_download_file'] ) && isset( $_REQUEST['mla_download_type'] ) ) {
253
+ check_admin_referer( self::MLA_ADMIN_NONCE );
254
+ self::_process_mla_download_file();
255
+ exit();
256
+ }
257
+
258
  /*
259
  * Process row-level actions from the Edit Media screen
260
  */
265
  check_admin_referer( self::MLA_ADMIN_NONCE );
266
  }
267
 
 
268
  switch ( $_REQUEST['mla_admin_action'] ) {
269
  case self::MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP:
270
  do_action( 'mla_begin_mapping', 'single_custom', $_REQUEST['mla_item_ID'] );
293
  } // switch ($_REQUEST['mla_admin_action'])
294
  } // (!empty($_REQUEST['mla_admin_action'])
295
 
296
+ if ( ( defined('WP_ADMIN') && WP_ADMIN ) && ( defined('DOING_AJAX') && DOING_AJAX ) ) {
297
+ add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_SLUG, 'MLA::mla_inline_edit_ajax_action' );
298
+ add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', 'MLA::mla_set_parent_ajax_action' );
299
+ add_action( 'wp_ajax_' . 'mla_find_posts', 'MLA::mla_find_posts_ajax_action' );
300
+ }
301
  }
302
 
303
  /**
367
  'ntdelTitle' => __( 'Remove From Bulk Edit', 'media-library-assistant' ),
368
  'noTitle' => __( '(no title)', 'media-library-assistant' ),
369
  'bulkTitle' => __( 'Bulk Edit items', 'media-library-assistant' ),
370
+ 'bulkWaiting' => __( 'Waiting', 'media-library-assistant' ),
371
+ 'bulkComplete' => __( 'Complete', 'media-library-assistant' ),
372
+ 'bulkUnchanged' => __( 'Unchanged', 'media-library-assistant' ),
373
+ 'bulkSuccess' => __( 'Succeeded', 'media-library-assistant' ),
374
+ 'bulkFailure' => __( 'Failed', 'media-library-assistant' ),
375
+ 'bulkCanceled' => __( 'CANCELED', 'media-library-assistant' ),
376
+ 'bulkChunkSize' => MLAOptions::mla_get_option( MLAOptions::MLA_BULK_CHUNK_SIZE ),
377
  'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
378
  'ajax_action' => self::JAVASCRIPT_INLINE_EDIT_SLUG,
379
  'ajax_nonce' => wp_create_nonce( self::MLA_ADMIN_NONCE )
756
  return $parent_file;
757
  }
758
 
759
+ /**
760
+ * Process secure file download
761
+ *
762
+ * Requires _wpnonce, mla_download_file and mla_download_type in $_REQUEST; mla_download_disposition is optional.
763
+ *
764
+ * @since 2.00
765
+ *
766
+ * @return void echos file contents and calls exit();
767
+ */
768
+ private static function _process_mla_download_file() {
769
+ if ( isset( $_REQUEST['mla_download_file'] ) && isset( $_REQUEST['mla_download_type'] ) ) {
770
+ if( ini_get( 'zlib.output_compression' ) ) {
771
+ ini_set( 'zlib.output_compression', 'Off' );
772
+ }
773
+
774
+ $file_name = stripslashes( $_REQUEST['mla_download_file'] );
775
+
776
+ header('Pragma: public'); // required
777
+ header('Expires: 0'); // no cache
778
+ header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
779
+ header('Last-Modified: '.gmdate ( 'D, d M Y H:i:s', filemtime ( $file_name ) ).' GMT');
780
+ header('Cache-Control: private',false);
781
+ header('Content-Type: '.$_REQUEST['mla_download_type']);
782
+ header('Content-Disposition: attachment; filename="'.basename( $file_name ).'"');
783
+ header('Content-Transfer-Encoding: binary');
784
+ header('Content-Length: '.filesize( $file_name )); // provide file size
785
+ header('Connection: close');
786
+
787
+ readfile( $file_name );
788
+
789
+ if ( isset( $_REQUEST['mla_download_disposition'] ) && 'delete' == $_REQUEST['mla_download_disposition'] ) {
790
+ @unlink( $file_name );
791
+ }
792
+
793
+ exit();
794
+ } else {
795
+ $message = 'ERROR: download argument(s) not set.';
796
+ }
797
+
798
+ echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
799
+ echo '<html xmlns="http://www.w3.org/1999/xhtml">';
800
+ echo '<head>';
801
+ echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
802
+ echo '<title>Download Error</title>';
803
+ echo '</head>';
804
+ echo '';
805
+ echo '<body>';
806
+ echo $message;
807
+ echo '</body>';
808
+ echo '</html> ';
809
+ exit();
810
+ }
811
+
812
  /**
813
  * Process bulk edit area fields, which may contain a Content Template
814
  *
844
  return $new_value;
845
  }
846
 
847
+ /**
848
+ * Process bulk action for one or more attachments
849
+ *
850
+ * @since 2.00
851
+ *
852
+ * @param string Bulk action slug: delete, edit, restore, trash, custom action
853
+ *
854
+ * @return array messages and page content: ( 'message', 'body', 'unchanged', 'success', 'failure', 'item_results' )
855
+ */
856
+ private static function _process_bulk_action( $bulk_action ) {
857
+ $page_content = array( 'message' => '', 'body' => '', 'unchanged' => 0, 'success' => 0, 'failure' => 0, 'item_results' => array() );
858
+
859
+ if ( isset( $_REQUEST['cb_attachment'] ) ) {
860
+ $item_content = apply_filters( 'mla_list_table_begin_bulk_action', NULL, $bulk_action );
861
+ if ( is_null( $item_content ) ) {
862
+ $prevent_default = false;
863
+ } else {
864
+ $prevent_default = isset( $item_content['prevent_default'] ) ? $item_content['prevent_default'] : false;
865
+ }
866
+
867
+ if ( $prevent_default ) {
868
+ if ( isset( $item_content['message'] ) ) {
869
+ $page_content['message'] = $item_content['message'];
870
+ }
871
+
872
+ if ( isset( $item_content['body'] ) ) {
873
+ $page_content['body'] = $item_content['body'];
874
+ }
875
+
876
+ return $page_content;
877
+ }
878
+
879
+ if ( !empty( $_REQUEST['bulk_custom_field_map'] ) ) {
880
+ do_action( 'mla_begin_mapping', 'bulk_custom', NULL );
881
+ } elseif ( !empty( $_REQUEST['bulk_map'] ) ) {
882
+ do_action( 'mla_begin_mapping', 'bulk_iptc_exif', NULL );
883
+ }
884
+
885
+ foreach ( $_REQUEST['cb_attachment'] as $index => $post_id ) {
886
+ if ( ! current_user_can( 'edit_post', $post_id ) ) {
887
+ $page_content['message'] .= __( 'ERROR: You are not allowed to edit Attachment: ', 'media-library-assistant' ) . $post_id . '<br>';
888
+ continue;
889
+ }
890
+
891
+ $item_content = apply_filters( 'mla_list_table_bulk_action', NULL, $bulk_action, $post_id );
892
+ if ( is_null( $item_content ) ) {
893
+ $prevent_default = false;
894
+ $custom_message = '';
895
+ } else {
896
+ $prevent_default = isset( $item_content['prevent_default'] ) ? $item_content['prevent_default'] : false;
897
+ $custom_message = isset( $item_content['message'] ) ? $item_content['message'] : '';
898
+ }
899
+
900
+ if ( ! $prevent_default ) {
901
+ switch ( $bulk_action ) {
902
+ case 'delete':
903
+ $item_content = self::_delete_single_item( $post_id );
904
+ break;
905
+ case 'edit':
906
+ if ( !empty( $_REQUEST['bulk_custom_field_map'] ) ) {
907
+ $updates = MLAOptions::mla_evaluate_custom_field_mapping( $post_id, 'single_attachment_mapping' );
908
+ $item_content = MLAData::mla_update_single_item( $post_id, $updates );
909
+ break;
910
+ }
911
+
912
+ if ( !empty( $_REQUEST['bulk_map'] ) ) {
913
+ $item = get_post( $post_id );
914
+ $updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping' );
915
+ $item_content = MLAData::mla_update_single_item( $post_id, $updates );
916
+ break;
917
+ }
918
+
919
+ /*
920
+ * Copy the edit form contents to $new_data
921
+ * Trim text values for testing purposes only
922
+ */
923
+ $new_data = array() ;
924
+ if ( isset( $_REQUEST['post_title'] ) ) {
925
+ $test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_title'] );
926
+ if ( ! empty( $test_value ) ) {
927
+ $new_data['post_title'] = $test_value;
928
+ } elseif ( is_null( $test_value ) ) {
929
+ $new_data['post_title'] = '';
930
+ }
931
+ }
932
+
933
+ if ( isset( $_REQUEST['post_excerpt'] ) ) {
934
+ $test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_excerpt'] );
935
+ if ( ! empty( $test_value ) ) {
936
+ $new_data['post_excerpt'] = $test_value;
937
+ } elseif ( is_null( $test_value ) ) {
938
+ $new_data['post_excerpt'] = '';
939
+ }
940
+ }
941
+
942
+ if ( isset( $_REQUEST['post_content'] ) ) {
943
+ $test_value = self::_process_bulk_value( $post_id, $_REQUEST['post_content'] );
944
+ if ( ! empty( $test_value ) ) {
945
+ $new_data['post_content'] = $test_value;
946
+ } elseif ( is_null( $test_value ) ) {
947
+ $new_data['post_content'] = '';
948
+ }
949
+ }
950
+
951
+ /*
952
+ * image_alt requires a separate key because some attachment types
953
+ * should not get a value, e.g., text or PDF documents
954
+ */
955
+ if ( isset( $_REQUEST['image_alt'] ) ) {
956
+ $test_value = self::_process_bulk_value( $post_id, $_REQUEST['image_alt'] );
957
+ if ( ! empty( $test_value ) ) {
958
+ $new_data['bulk_image_alt'] = $test_value;
959
+ } elseif ( is_null( $test_value ) ) {
960
+ $new_data['bulk_image_alt'] = '';
961
+ }
962
+ }
963
+
964
+ if ( isset( $_REQUEST['post_parent'] ) ) {
965
+ if ( is_numeric( $_REQUEST['post_parent'] ) ) {
966
+ $new_data['post_parent'] = $_REQUEST['post_parent'];
967
+ }
968
+ }
969
+
970
+ if ( isset( $_REQUEST['post_author'] ) ) {
971
+ if ( -1 != $_REQUEST['post_author'] ) {
972
+ $new_data['post_author'] = $_REQUEST['post_author'];
973
+ }
974
+ }
975
+
976
+ if ( isset( $_REQUEST['comment_status'] ) ) {
977
+ if ( -1 != $_REQUEST['comment_status'] ) {
978
+ $new_data['comment_status'] = $_REQUEST['comment_status'];
979
+ }
980
+ }
981
+
982
+ if ( isset( $_REQUEST['ping_status'] ) ) {
983
+ if ( -1 != $_REQUEST['ping_status'] ) {
984
+ $new_data['ping_status'] = $_REQUEST['ping_status'];
985
+ }
986
+ }
987
+
988
+ /*
989
+ * Custom field support
990
+ */
991
+ $custom_fields = array();
992
+ foreach (MLAOptions::mla_custom_field_support( 'bulk_edit' ) as $slug => $label ) {
993
+ if ( isset( $_REQUEST[ $slug ] ) ) {
994
+ $test_value = self::_process_bulk_value( $post_id, $_REQUEST[ $slug ] );
995
+ if ( ! empty( $test_value ) ) {
996
+ $custom_fields[ $label ] = $test_value;
997
+ } elseif ( is_null( $test_value ) ) {
998
+ $custom_fields[ $label ] = '';
999
+ }
1000
+ }
1001
+ } // foreach
1002
+
1003
+ if ( ! empty( $custom_fields ) ) {
1004
+ $new_data[ 'custom_updates' ] = $custom_fields;
1005
+ }
1006
+
1007
+ $item_content = MLAData::mla_update_single_item( $post_id, $new_data, $_REQUEST['tax_input'], $_REQUEST['tax_action'] );
1008
+ break;
1009
+ case 'restore':
1010
+ $item_content = self::_restore_single_item( $post_id );
1011
+ break;
1012
+ //case 'tag':
1013
+ case 'trash':
1014
+ $item_content = self::_trash_single_item( $post_id );
1015
+ break;
1016
+ default:
1017
+ $item_content = apply_filters( 'mla_list_table_custom_bulk_action', NULL, $bulk_action, $post_id );
1018
+
1019
+ if ( is_null( $item_content ) ) {
1020
+ $prevent_default = false;
1021
+ $custom_message = sprintf( __( 'ERROR: Unknown bulk action %1$s', 'media-library-assistant' ), $bulk_action );
1022
+ } else {
1023
+ $prevent_default = isset( $item_content['prevent_default'] ) ? $item_content['prevent_default'] : false;
1024
+ }
1025
+ } // switch $bulk_action
1026
+ } // ! $prevent_default
1027
+
1028
+ // Custom action can set $prevent_default, so test again.
1029
+ if ( ! $prevent_default ) {
1030
+ if ( ! empty( $custom_message ) ) {
1031
+ $no_changes = sprintf( __( 'Item %1$d, no changes detected.', 'media-library-assistant' ), $post_id );
1032
+ if ( $no_changes == $item_content['message'] ) {
1033
+ $item_content['message'] = $custom_message;
1034
+ } else {
1035
+ $item_content['message'] = $custom_message . '<br>' . $item_content['message'];
1036
+ }
1037
+ }
1038
+
1039
+ $page_content['item_results'][ $post_id ] = array( 'result' => 'unknown', 'message' => $item_content['message'] );
1040
+ if ( ! empty( $item_content['message'] ) ) {
1041
+ $page_content['message'] .= $item_content['message'] . '<br>';
1042
+
1043
+ if ( false !== strpos( $item_content['message'], __( 'no changes detected', 'media-library-assistant' ) ) ) {
1044
+ $page_content['unchanged'] += 1;
1045
+ $page_content['item_results'][ $post_id ]['result'] = 'unchanged';
1046
+ } elseif ( false !== strpos( $item_content['message'], __( 'ERROR:', 'media-library-assistant' ) ) ) {
1047
+ $page_content['failure'] += 1;
1048
+ $page_content['item_results'][ $post_id ]['result'] = 'failure';
1049
+ } else {
1050
+ $page_content['success'] += 1;
1051
+ $page_content['item_results'][ $post_id ]['result'] = 'success';
1052
+ }
1053
+ }
1054
+ } // ! $prevent_default
1055
+ } // foreach cb_attachment
1056
+
1057
+ if ( !empty( $_REQUEST['bulk_custom_field_map'] ) || !empty( $_REQUEST['bulk_map'] ) ) {
1058
+ do_action( 'mla_end_mapping' );
1059
+ }
1060
+
1061
+ $item_content = apply_filters( 'mla_list_table_end_bulk_action', NULL, $bulk_action );
1062
+ if ( isset( $item_content['message'] ) ) {
1063
+ $page_content['message'] .= $item_content['message'];
1064
+ }
1065
+
1066
+ if ( isset( $item_content['body'] ) ) {
1067
+ $page_content['body'] = $item_content['body'];
1068
+ }
1069
+
1070
+ unset( $_REQUEST['post_title'] );
1071
+ unset( $_REQUEST['post_excerpt'] );
1072
+ unset( $_REQUEST['post_content'] );
1073
+ unset( $_REQUEST['image_alt'] );
1074
+ unset( $_REQUEST['comment_status'] );
1075
+ unset( $_REQUEST['ping_status'] );
1076
+ unset( $_REQUEST['post_parent'] );
1077
+ unset( $_REQUEST['post_author'] );
1078
+ unset( $_REQUEST['tax_input'] );
1079
+ unset( $_REQUEST['tax_action'] );
1080
+
1081
+ foreach (MLAOptions::mla_custom_field_support( 'bulk_edit' ) as $slug => $label )
1082
+ unset( $_REQUEST[ $slug ] );
1083
+
1084
+ unset( $_REQUEST['cb_attachment'] );
1085
+ } else { // isset cb_attachment
1086
+ /* translators: 1: action name, e.g., edit */
1087
+ $page_content['message'] = sprintf( __( 'Bulk Action %1$s - no items selected.', 'media-library-assistant' ), $bulk_action );
1088
+ }
1089
+
1090
+ unset( $_REQUEST['action'] );
1091
+ unset( $_REQUEST['bulk_custom_field_map'] );
1092
+ unset( $_REQUEST['bulk_map'] );
1093
+ unset( $_REQUEST['bulk_edit'] );
1094
+ unset( $_REQUEST['action2'] );
1095
+
1096
+ return $page_content;
1097
+ }
1098
+
1099
  /**
1100
  * Render the "Assistant" subpage in the Media section, using the list_table package
1101
  *
1162
  * Process bulk actions that affect an array of items
1163
  */
1164
  if ( $bulk_action && ( $bulk_action != 'none' ) ) {
1165
+ // bulk_refresh simply refreshes the page, ignoring other bulk actions
1166
+ if ( empty( $_REQUEST['bulk_refresh'] ) ) {
1167
+ $item_content = self::_process_bulk_action( $bulk_action );
1168
+ $page_content['message'] .= $item_content['message'] . '<br>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1169
  }
 
 
 
 
1170
  } // $bulk_action
1171
 
1172
  if ( isset( $_REQUEST['clear_filter_by'] ) ) {
1523
  case 'draft' :
1524
  $stat = __('Draft');
1525
  break;
1526
+ default:
1527
+ $stat = sanitize_text_field( $post->post_status );
1528
  }
1529
 
1530
  if ( '0000-00-00 00:00:00' == $post->post_date ) {
1584
  }
1585
 
1586
  /**
1587
+ * Ajax handler for bulk editing and mapping
1588
  *
1589
+ * @since 2.00
1590
+ *
1591
+ * @return void echo json results or error message, then die()
1592
+ */
1593
+ private static function _bulk_edit_ajax_handler() {
1594
+ /*
1595
+ * Convert bulk_action to the old button name/value variables
1596
+ */
1597
+ switch ( $_REQUEST['bulk_action'] ) {
1598
+ case 'bulk_custom_field_map':
1599
+ $_REQUEST['bulk_custom_field_map'] = __( 'Map Custom Field Metadata', 'media-library-assistant' );
1600
+ break;
1601
+ case 'bulk_map':
1602
+ $_REQUEST['bulk_map'] = __( 'Map IPTC/EXIF metadata', 'media-library-assistant' );
1603
+ break;
1604
+ case 'bulk_edit':
1605
+ $_REQUEST['bulk_edit'] = __( 'Update', 'media-library-assistant' );
1606
+ }
1607
+
1608
+ $item_content = (object) self::_process_bulk_action( 'edit' );
1609
+ wp_send_json_success( $item_content );
1610
+ }
1611
+
1612
+ /**
1613
+ * Ajax handler for inline editing
1614
+ *
1615
+ * Adapted for Quick Edit from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php
1616
  *
1617
  * @since 0.20
1618
  *
1619
  * @return void echo HTML <tr> markup for updated row or error message, then die()
1620
  */
1621
  public static function mla_inline_edit_ajax_action() {
1622
+ //error_log( 'DEBUG: mla_inline_edit_ajax_action $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
1623
  set_current_screen( $_REQUEST['screen'] );
1624
 
1625
  check_ajax_referer( self::MLA_ADMIN_NONCE, 'nonce' );
1626
 
1627
+ if ( ! empty( $_REQUEST['bulk_action'] ) ) {
1628
+ self::_bulk_edit_ajax_handler();
1629
+ }
1630
+
1631
  if ( empty( $_REQUEST['post_ID'] ) ) {
1632
  echo __( 'ERROR: No post ID found', 'media-library-assistant' );
1633
  die();
2012
  'bulk_custom_fields' => $bulk_custom_fields,
2013
  'Map IPTC/EXIF metadata' => __( 'Map IPTC/EXIF metadata', 'media-library-assistant' ),
2014
  'Map Custom Field metadata' => __( 'Map Custom Field Metadata', 'media-library-assistant' ),
2015
+ 'Bulk Waiting' => __( 'Waiting', 'media-library-assistant' ),
2016
+ 'Bulk Running' => __( 'In-process', 'media-library-assistant' ),
2017
+ 'Bulk Complete' => __( 'Complete', 'media-library-assistant' ),
2018
+ 'Refresh' => __( 'Refresh', 'media-library-assistant' ),
2019
  'set_parent_form' => $set_parent_form,
2020
  );
2021
 
includes/class-mla-options.php CHANGED
@@ -96,6 +96,11 @@ class MLAOptions {
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
  */
@@ -615,9 +620,17 @@ class MLAOptions {
615
  'name' => __( 'Icon Size', 'media-library-assistant' ),
616
  'type' => 'text',
617
  'std' => '',
618
- 'size' => 10,
619
  'help' => __( 'Enter the size of the thumbnail/icon images, in pixels', 'media-library-assistant' )),
620
 
 
 
 
 
 
 
 
 
621
  'taxonomy_filter_subheader' =>
622
  array('tab' => 'general',
623
  'name' => __( 'Taxonomy Filter parameters', 'media-library-assistant' ),
@@ -2218,6 +2231,10 @@ class MLAOptions {
2218
  }
2219
  }
2220
 
 
 
 
 
2221
  if ( property_exists( $post_info[$post_id], $data_source ) ) {
2222
  $post_array = (array) $post_info[$post_id];
2223
  $value = $post_array[ $data_source ];
@@ -2226,6 +2243,7 @@ class MLAOptions {
2226
  }
2227
 
2228
  switch ( $data_source ) {
 
2229
  case 'post_id':
2230
  case 'post_author':
2231
  case 'post_parent':
@@ -2463,6 +2481,7 @@ class MLAOptions {
2463
  case 'parent':
2464
  $data_source = 'post_parent';
2465
  /* fallthru */
 
2466
  case 'post_id':
2467
  case 'post_author':
2468
  case 'post_parent':
@@ -2753,6 +2772,7 @@ class MLAOptions {
2753
  $result = str_pad( number_format( (float)$result ), 15, ' ', STR_PAD_LEFT );
2754
  }
2755
  break;
 
2756
  default:
2757
  /*
2758
  * Make some numeric values sortable as strings, make all value non-empty
@@ -3303,6 +3323,8 @@ class MLAOptions {
3303
  'Native' => __( 'Native', 'media-library-assistant' ),
3304
  'commas_format' => '',
3305
  'Commas' => __( 'Commas', 'media-library-assistant' ),
 
 
3306
  'mla_column_checked' => '',
3307
  'quick_edit_checked' => '',
3308
  'bulk_edit_checked' => '',
@@ -3342,6 +3364,9 @@ class MLAOptions {
3342
  case 'commas':
3343
  $row_values['commas_format'] = 'selected="selected"';
3344
  break;
 
 
 
3345
  default:
3346
  $row_values['native_format'] = 'selected="selected"';
3347
  } // format
@@ -3400,6 +3425,8 @@ class MLAOptions {
3400
  'Native' => __( 'Native', 'media-library-assistant' ),
3401
  'commas_format' => '',
3402
  'Commas' => __( 'Commas', 'media-library-assistant' ),
 
 
3403
  'mla_column_checked' => '',
3404
  'quick_edit_checked' => '',
3405
  'bulk_edit_checked' => '',
@@ -3442,6 +3469,8 @@ class MLAOptions {
3442
  'Native' => __( 'Native', 'media-library-assistant' ),
3443
  'commas_format' => '',
3444
  'Commas' => __( 'Commas', 'media-library-assistant' ),
 
 
3445
  'mla_column_checked' => '',
3446
  'quick_edit_checked' => '',
3447
  'bulk_edit_checked' => '',
@@ -3759,6 +3788,7 @@ class MLAOptions {
3759
  if ( $update_all || ( 'iptc_exif_custom_mapping' == $category ) ) {
3760
  $custom_updates = array();
3761
  foreach ( $settings['custom'] as $setting_key => $setting_value ) {
 
3762
  $setting_value = apply_filters( 'mla_mapping_rule', $setting_value, $post->ID, 'iptc_exif_custom_mapping', $attachment_metadata );
3763
  if ( NULL === $setting_value ) {
3764
  continue;
@@ -3807,8 +3837,8 @@ class MLAOptions {
3807
  }
3808
 
3809
  if ( $setting_value['keep_existing'] ) {
3810
- if ( 'meta:' == substr( $setting_key, 0, 5 ) ) {
3811
- $meta_key = substr( $setting_key, 5 );
3812
 
3813
  if ( NULL === $attachment_metadata ) {
3814
  $attachment_metadata = maybe_unserialize( get_metadata( 'post', $post->ID, '_wp_attachment_metadata', true ) );
@@ -3820,17 +3850,17 @@ class MLAOptions {
3820
  $old_value = '';
3821
  }
3822
  } else {
3823
- if ( is_string( $old_value = get_metadata( 'post', $post->ID, $setting_key, true ) ) ) {
3824
  $old_value = trim( $old_value );
3825
  }
3826
  }
3827
 
3828
  if ( ( ! empty( $new_text ) ) && empty( $old_value ) ) {
3829
- $custom_updates[ $setting_key ] = $new_text;
3830
  }
3831
  } // keep_existing
3832
  else {
3833
- $custom_updates[ $setting_key ] = $new_text;
3834
  }
3835
  } // foreach new setting
3836
 
@@ -4476,7 +4506,7 @@ class MLAOptions {
4476
  foreach ( $current_values['custom'] as $row_name => $current_value ) {
4477
  $row_values = array (
4478
  'column_count' => 5,
4479
- 'key' => $row_name,
4480
  'name' => $row_name,
4481
  'iptc_field_options' => '',
4482
  'exif_size' => self::MLA_EXIF_SIZE,
96
  */
97
  const MLA_TABLE_ICON_SIZE = 'table_icon_size';
98
 
99
+ /**
100
+ * Provides a unique name for the Bulk Update and Map All chunk size option
101
+ */
102
+ const MLA_BULK_CHUNK_SIZE = 'bulk_chunk_size';
103
+
104
  /**
105
  * Provides a unique name for the taxonomy filter maximum depth option
106
  */
620
  'name' => __( 'Icon Size', 'media-library-assistant' ),
621
  'type' => 'text',
622
  'std' => '',
623
+ 'size' => 5,
624
  'help' => __( 'Enter the size of the thumbnail/icon images, in pixels', 'media-library-assistant' )),
625
 
626
+ self::MLA_BULK_CHUNK_SIZE =>
627
+ array('tab' => 'general',
628
+ 'name' => __( 'Bulk Chunk Size', 'media-library-assistant' ),
629
+ 'type' => 'text',
630
+ 'std' => '25',
631
+ 'size' => 5,
632
+ 'help' => __( 'Enter the size of the Bulk Edit and Map All processing chunks', 'media-library-assistant' )),
633
+
634
  'taxonomy_filter_subheader' =>
635
  array('tab' => 'general',
636
  'name' => __( 'Taxonomy Filter parameters', 'media-library-assistant' ),
2231
  }
2232
  }
2233
 
2234
+ if ( 'post_id' == $data_source ) {
2235
+ $data_source = 'ID';
2236
+ }
2237
+
2238
  if ( property_exists( $post_info[$post_id], $data_source ) ) {
2239
  $post_array = (array) $post_info[$post_id];
2240
  $value = $post_array[ $data_source ];
2243
  }
2244
 
2245
  switch ( $data_source ) {
2246
+ case 'ID':
2247
  case 'post_id':
2248
  case 'post_author':
2249
  case 'post_parent':
2481
  case 'parent':
2482
  $data_source = 'post_parent';
2483
  /* fallthru */
2484
+ case 'ID':
2485
  case 'post_id':
2486
  case 'post_author':
2487
  case 'post_parent':
2772
  $result = str_pad( number_format( (float)$result ), 15, ' ', STR_PAD_LEFT );
2773
  }
2774
  break;
2775
+ case 'native':
2776
  default:
2777
  /*
2778
  * Make some numeric values sortable as strings, make all value non-empty
3323
  'Native' => __( 'Native', 'media-library-assistant' ),
3324
  'commas_format' => '',
3325
  'Commas' => __( 'Commas', 'media-library-assistant' ),
3326
+ 'raw_format' => '',
3327
+ 'Raw' => __( 'Raw', 'media-library-assistant' ),
3328
  'mla_column_checked' => '',
3329
  'quick_edit_checked' => '',
3330
  'bulk_edit_checked' => '',
3364
  case 'commas':
3365
  $row_values['commas_format'] = 'selected="selected"';
3366
  break;
3367
+ case 'raw':
3368
+ $row_values['raw_format'] = 'selected="selected"';
3369
+ break;
3370
  default:
3371
  $row_values['native_format'] = 'selected="selected"';
3372
  } // format
3425
  'Native' => __( 'Native', 'media-library-assistant' ),
3426
  'commas_format' => '',
3427
  'Commas' => __( 'Commas', 'media-library-assistant' ),
3428
+ 'raw_format' => '',
3429
+ 'Raw' => __( 'Raw', 'media-library-assistant' ),
3430
  'mla_column_checked' => '',
3431
  'quick_edit_checked' => '',
3432
  'bulk_edit_checked' => '',
3469
  'Native' => __( 'Native', 'media-library-assistant' ),
3470
  'commas_format' => '',
3471
  'Commas' => __( 'Commas', 'media-library-assistant' ),
3472
+ 'raw_format' => '',
3473
+ 'Raw' => __( 'Raw', 'media-library-assistant' ),
3474
  'mla_column_checked' => '',
3475
  'quick_edit_checked' => '',
3476
  'bulk_edit_checked' => '',
3788
  if ( $update_all || ( 'iptc_exif_custom_mapping' == $category ) ) {
3789
  $custom_updates = array();
3790
  foreach ( $settings['custom'] as $setting_key => $setting_value ) {
3791
+ $setting_name = $setting_value['name'];
3792
  $setting_value = apply_filters( 'mla_mapping_rule', $setting_value, $post->ID, 'iptc_exif_custom_mapping', $attachment_metadata );
3793
  if ( NULL === $setting_value ) {
3794
  continue;
3837
  }
3838
 
3839
  if ( $setting_value['keep_existing'] ) {
3840
+ if ( 'meta:' == substr( $setting_name, 0, 5 ) ) {
3841
+ $meta_key = substr( $setting_name, 5 );
3842
 
3843
  if ( NULL === $attachment_metadata ) {
3844
  $attachment_metadata = maybe_unserialize( get_metadata( 'post', $post->ID, '_wp_attachment_metadata', true ) );
3850
  $old_value = '';
3851
  }
3852
  } else {
3853
+ if ( is_string( $old_value = get_metadata( 'post', $post->ID, $setting_name, true ) ) ) {
3854
  $old_value = trim( $old_value );
3855
  }
3856
  }
3857
 
3858
  if ( ( ! empty( $new_text ) ) && empty( $old_value ) ) {
3859
+ $custom_updates[ $setting_name ] = $new_text;
3860
  }
3861
  } // keep_existing
3862
  else {
3863
+ $custom_updates[ $setting_name ] = $new_text;
3864
  }
3865
  } // foreach new setting
3866
 
4506
  foreach ( $current_values['custom'] as $row_name => $current_value ) {
4507
  $row_values = array (
4508
  'column_count' => 5,
4509
+ 'key' => sanitize_title( $row_name ), //$row_name,
4510
  'name' => $row_name,
4511
  'iptc_field_options' => '',
4512
  'exif_size' => self::MLA_EXIF_SIZE,
includes/class-mla-settings.php CHANGED
@@ -32,7 +32,7 @@ class MLASettings {
32
  const JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT = 'mla_inline_edit_view_vars';
33
 
34
  /**
35
- * Slug for localizing and enqueueing JavaScript - MLA View List Table
36
  *
37
  * @since 1.40
38
  *
@@ -41,7 +41,7 @@ class MLASettings {
41
  const JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG = 'mla-inline-edit-upload-scripts';
42
 
43
  /**
44
- * Object name for localizing JavaScript - MLA View List Table
45
  *
46
  * @since 1.40
47
  *
@@ -49,6 +49,33 @@ class MLASettings {
49
  */
50
  const JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT = 'mla_inline_edit_upload_vars';
51
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
52
  /**
53
  * Provides a unique name for the settings page
54
  *
@@ -277,6 +304,8 @@ class MLASettings {
277
  public static function mla_admin_init_action() {
278
  add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG, 'MLASettings::mla_inline_edit_view_action' );
279
  add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG, 'MLASettings::mla_inline_edit_upload_action' );
 
 
280
  }
281
 
282
  /**
@@ -289,49 +318,100 @@ class MLASettings {
289
  * @return void
290
  */
291
  public static function mla_admin_enqueue_scripts_action( $page_hook ) {
292
- $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
293
-
294
- if ( self::$current_page_hook != $page_hook ) {
 
 
 
295
  return;
296
  }
297
 
298
  wp_register_style( MLA::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLA::CURRENT_MLA_VERSION );
299
  wp_enqueue_style( MLA::STYLESHEET_SLUG );
300
 
301
- if ( isset( $_REQUEST['mla_tab'] ) && ( $_REQUEST['mla_tab'] == 'view' ) ) {
302
- wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG, MLA_PLUGIN_URL . "js/mla-inline-edit-view-scripts{$suffix}.js",
303
- array( 'wp-lists', 'suggest', 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
304
-
305
- $script_variables = array(
306
- 'fields' => array( 'original_slug', 'slug', 'singular', 'plural', 'specification', 'menu_order' ),
307
- 'checkboxes' => array( 'post_mime_type', 'table_view' ),
308
- 'error' => __( 'Error while saving the changes.', 'media-library-assistant' ),
309
- 'ntdeltitle' => __( 'Remove From Bulk Edit', 'media-library-assistant' ),
310
- 'notitle' => '(' . __( 'no slug', 'media-library-assistant' ) . ')',
311
- 'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
312
- 'ajax_action' => self::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG,
313
- 'ajax_nonce' => wp_create_nonce( MLA::MLA_ADMIN_NONCE )
314
- );
315
- wp_localize_script( self::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG, self::JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT, $script_variables );
316
- return;
317
- }
 
 
 
 
 
 
 
318
 
319
- if ( isset( $_REQUEST['mla_tab'] ) && ( $_REQUEST['mla_tab'] == 'upload' ) ) {
320
- wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG, MLA_PLUGIN_URL . "js/mla-inline-edit-upload-scripts{$suffix}.js",
321
- array( 'wp-lists', 'suggest', 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
322
 
323
- $script_variables = array(
324
- 'fields' => array( 'original_slug', 'slug', 'mime_type', 'icon_type', 'core_type', 'mla_type', 'source', 'standard_source' ),
325
- 'checkboxes' => array( 'disabled' ),
326
- 'error' => __( 'Error while saving the changes.', 'media-library-assistant' ),
327
- 'ntdeltitle' => __( 'Remove From Bulk Edit', 'media-library-assistant' ),
328
- 'notitle' => '(' . __( 'no slug', 'media-library-assistant' ) . ')',
329
- 'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
330
- 'ajax_action' => self::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG,
331
- 'ajax_nonce' => wp_create_nonce( MLA::MLA_ADMIN_NONCE )
332
- );
333
- wp_localize_script( self::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG, self::JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT, $script_variables );
334
- return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
335
  }
336
  }
337
 
@@ -601,6 +681,259 @@ class MLASettings {
601
  die(); // this is required to return a proper result
602
  }
603
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
604
  /**
605
  * Add the "Settings" link to the MLA entry in the Plugins section
606
  *
@@ -1136,7 +1469,6 @@ class MLASettings {
1136
  */
1137
  private static function _compose_edit_view_tab( $view, $template ) {
1138
  $page_values = array(
1139
- // 'settingsURL' => admin_url('options-general.php'),
1140
  'Edit View' => __( 'Edit View', 'media-library-assistant' ),
1141
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-view&mla_tab=view',
1142
  'action' => MLA::MLA_ADMIN_SINGLE_EDIT_UPDATE,
@@ -1340,7 +1672,6 @@ class MLASettings {
1340
  }
1341
 
1342
  $page_values = array(
1343
- // 'settingsURL' => admin_url('options-general.php'),
1344
  'Support is disabled' => __( 'View and Post MIME Type Support is disabled', 'media-library-assistant' ),
1345
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-view&mla_tab=view',
1346
  'options_list' => $options_list,
@@ -1496,7 +1827,6 @@ class MLASettings {
1496
  */
1497
  private static function _compose_edit_upload_tab( $item, &$templates ) {
1498
  $page_values = array(
1499
- // 'settingsURL' => admin_url('options-general.php'),
1500
  'Edit Upload MIME' => __( 'Edit Upload MIME Type', 'media-library-assistant' ),
1501
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-upload&mla_tab=upload',
1502
  'action' => MLA::MLA_ADMIN_SINGLE_EDIT_UPDATE,
@@ -1810,7 +2140,6 @@ class MLASettings {
1810
  }
1811
 
1812
  $page_values = array(
1813
- // 'settingsURL' => admin_url('options-general.php'),
1814
  'Support is disabled' => __( 'Upload MIME Type Support is disabled', 'media-library-assistant' ),
1815
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-upload&mla_tab=upload',
1816
  'options_list' => $options_list,
@@ -1946,7 +2275,6 @@ class MLASettings {
1946
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-mla_gallery&mla_tab=mla_gallery',
1947
  'options_list' => '',
1948
  'Style Templates' => __( 'Style Templates', 'media-library-assistant' ),
1949
- // 'settingsURL' => admin_url('options-general.php'),
1950
  'style_options_list' => '',
1951
  'Markup Templates' => __( 'Markup Templates', 'media-library-assistant' ),
1952
  'markup_options_list' => '',
@@ -2344,6 +2672,15 @@ class MLASettings {
2344
  }
2345
 
2346
  $page_values = array(
 
 
 
 
 
 
 
 
 
2347
  'Custom Field Options' => __( 'Custom Field and Attachment Metadata Processing Options', 'media-library-assistant' ),
2348
  /* translators: 1: Documentation hyperlink */
2349
  'In this tab' => sprintf( __( 'In this tab you can define the rules for mapping several types of image metadata to WordPress custom fields. You can also use this screen to define rules for adding or updating fields within the WordPress-supplied "Attachment Metadata", stored in the "_wp_attachment_metadata" custom field. See the %1$s section of the Documentation for details.', 'media-library-assistant' ), '<a href="[+settingsURL+]?page=mla-settings-menu-documentation&amp;mla_tab=documentation#attachment_metadata_mapping" title="' . __( 'Updating Attachment Metadata Documentation', 'media-library-assistant' ) . '">' . __( 'Adding or changing Attachment Metadata', 'media-library-assistant' ) . '</a>' ),
@@ -2461,6 +2798,15 @@ class MLASettings {
2461
  }
2462
 
2463
  $page_values = array(
 
 
 
 
 
 
 
 
 
2464
  'IPTX/EXIF Options' => __( 'IPTC &amp; EXIF Processing Options', 'media-library-assistant' ),
2465
  'In this tab' => __( 'In this tab you can define the rules for mapping IPTC (International Press Telecommunications Council) and EXIF (EXchangeable Image File) metadata to WordPress standard attachment fields, taxonomy terms and custom fields. <strong>NOTE:</strong> settings changes will not be made permanent until you click "Save Changes" at the bottom of this page.', 'media-library-assistant' ),
2466
  /* translators: 1: Documentation hyperlink */
@@ -2550,7 +2896,6 @@ class MLASettings {
2550
  $current_tab_slug = isset( $_REQUEST['mla_tab'] ) ? $_REQUEST['mla_tab']: 'general';
2551
  $current_tab = self::mla_get_options_tablist( $current_tab_slug );
2552
  $page_values = array(
2553
- // 'settingsURL' => admin_url('options-general.php'),
2554
  'donateURL' => MLA_PLUGIN_URL . 'images/DonateButton.jpg',
2555
  'version' => 'v' . MLA::CURRENT_MLA_VERSION,
2556
  'messages' => '',
@@ -2931,12 +3276,13 @@ class MLASettings {
2931
  * @uses $_REQUEST if passed a NULL parameter
2932
  *
2933
  * @param array | NULL specific custom_field_mapping values
 
 
2934
  *
2935
  * @return array Message(s) reflecting the results of the operation
2936
  */
2937
- private static function _process_custom_field_mapping( $settings = NULL ) {
2938
  global $wpdb;
2939
-
2940
  if ( NULL == $settings ) {
2941
  $source = 'custom_fields';
2942
  $settings = ( isset( $_REQUEST['custom_field_mapping'] ) ) ? $_REQUEST['custom_field_mapping'] : array();
@@ -2957,9 +3303,15 @@ class MLASettings {
2957
  );
2958
  }
2959
 
 
 
 
 
 
 
2960
  $examine_count = 0;
2961
  $update_count = 0;
2962
- $post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} WHERE `post_type` = 'attachment'" );
2963
 
2964
  do_action( 'mla_begin_mapping', $source, NULL );
2965
  foreach ( $post_ids as $key => $post_id ) {
@@ -2985,7 +3337,10 @@ class MLASettings {
2985
 
2986
  return array(
2987
  'message' => $message,
2988
- 'body' => ''
 
 
 
2989
  );
2990
  } // _process_custom_field_mapping
2991
 
@@ -3064,9 +3419,12 @@ class MLASettings {
3064
  *
3065
  * @uses $_REQUEST
3066
  *
 
 
 
3067
  * @return array Message(s) reflecting the results of the operation
3068
  */
3069
- private static function _process_iptc_exif_standard( ) {
3070
  if ( ! isset( $_REQUEST['iptc_exif_mapping']['standard'] ) ) {
3071
  return array(
3072
  /* translators: 1: field type */
@@ -3077,8 +3435,13 @@ class MLASettings {
3077
 
3078
  $examine_count = 0;
3079
  $update_count = 0;
3080
-
3081
  $query = array( 'orderby' => 'none', 'post_parent' => 'all', 'post_mime_type' => 'image,application/*pdf*' );
 
 
 
 
 
 
3082
  $posts = MLAShortcodes::mla_get_shortcode_attachments( 0, $query );
3083
 
3084
  if ( is_string( $posts ) ) {
@@ -3112,7 +3475,10 @@ class MLASettings {
3112
 
3113
  return array(
3114
  'message' => $message,
3115
- 'body' => ''
 
 
 
3116
  );
3117
  } // _process_iptc_exif_standard
3118
 
@@ -3124,9 +3490,12 @@ class MLASettings {
3124
  *
3125
  * @uses $_REQUEST
3126
  *
 
 
 
3127
  * @return array Message(s) reflecting the results of the operation
3128
  */
3129
- private static function _process_iptc_exif_taxonomy( ) {
3130
  if ( ! isset( $_REQUEST['iptc_exif_mapping']['taxonomy'] ) ) {
3131
  return array(
3132
  /* translators: 1: field type */
@@ -3137,8 +3506,13 @@ class MLASettings {
3137
 
3138
  $examine_count = 0;
3139
  $update_count = 0;
3140
-
3141
  $query = array( 'orderby' => 'none', 'post_parent' => 'all', 'post_mime_type' => 'image,application/*pdf*' );
 
 
 
 
 
 
3142
  $posts = MLAShortcodes::mla_get_shortcode_attachments( 0, $query );
3143
 
3144
  if ( is_string( $posts ) ) {
@@ -3172,7 +3546,10 @@ class MLASettings {
3172
 
3173
  return array(
3174
  'message' => $message,
3175
- 'body' => ''
 
 
 
3176
  );
3177
  } // _process_iptc_exif_taxonomy
3178
 
@@ -3185,10 +3562,12 @@ class MLASettings {
3185
  * @uses $_REQUEST if passed a NULL parameter
3186
  *
3187
  * @param array | NULL specific iptc_exif_custom_mapping values
 
 
3188
  *
3189
  * @return array Message(s) reflecting the results of the operation
3190
  */
3191
- private static function _process_iptc_exif_custom( $settings = NULL ) {
3192
  if ( NULL == $settings ) {
3193
  $source = 'iptc_exif_custom';
3194
  $settings = ( isset( $_REQUEST['iptc_exif_mapping'] ) ) ? $_REQUEST['iptc_exif_mapping'] : array();
@@ -3212,8 +3591,13 @@ class MLASettings {
3212
 
3213
  $examine_count = 0;
3214
  $update_count = 0;
3215
-
3216
  $query = array( 'orderby' => 'none', 'post_parent' => 'all', 'post_mime_type' => 'image,application/*pdf*' );
 
 
 
 
 
 
3217
  $posts = MLAShortcodes::mla_get_shortcode_attachments( 0, $query );
3218
 
3219
  if ( is_string( $posts ) ) {
@@ -3247,7 +3631,10 @@ class MLASettings {
3247
 
3248
  return array(
3249
  'message' => $message,
3250
- 'body' => ''
 
 
 
3251
  );
3252
  } // _process_iptc_exif_custom
3253
 
32
  const JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT = 'mla_inline_edit_view_vars';
33
 
34
  /**
35
+ * Slug for localizing and enqueueing JavaScript - MLA Upload List Table
36
  *
37
  * @since 1.40
38
  *
41
  const JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG = 'mla-inline-edit-upload-scripts';
42
 
43
  /**
44
+ * Object name for localizing JavaScript - MLA Upload List Table
45
  *
46
  * @since 1.40
47
  *
49
  */
50
  const JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT = 'mla_inline_edit_upload_vars';
51
 
52
+ /**
53
+ * Slug for localizing and enqueueing JavaScript - MLA Custom tab
54
+ *
55
+ * @since 2.00
56
+ *
57
+ * @var string
58
+ */
59
+ const JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG = 'mla-inline-mapping-custom-scripts';
60
+
61
+ /**
62
+ * Slug for localizing and enqueueing JavaScript - MLA IPTC/EXIF tab
63
+ *
64
+ * @since 2.00
65
+ *
66
+ * @var string
67
+ */
68
+ const JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG = 'mla-inline-mapping-iptc-exif-scripts';
69
+
70
+ /**
71
+ * Object name for localizing JavaScript - MLA Custom and IPTC/EXIF tabs
72
+ *
73
+ * @since 2.00
74
+ *
75
+ * @var string
76
+ */
77
+ const JAVASCRIPT_INLINE_MAPPING_OBJECT = 'mla_inline_mapping_vars';
78
+
79
  /**
80
  * Provides a unique name for the settings page
81
  *
304
  public static function mla_admin_init_action() {
305
  add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG, 'MLASettings::mla_inline_edit_view_action' );
306
  add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG, 'MLASettings::mla_inline_edit_upload_action' );
307
+ add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG, 'MLASettings::mla_inline_mapping_custom_action' );
308
+ add_action( 'wp_ajax_' . self::JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG, 'MLASettings::mla_inline_mapping_iptc_exif_action' );
309
  }
310
 
311
  /**
318
  * @return void
319
  */
320
  public static function mla_admin_enqueue_scripts_action( $page_hook ) {
321
+ global $wpdb;
322
+
323
+ /*
324
+ * Without a tab value, there's nothing to do
325
+ */
326
+ if ( ( self::$current_page_hook != $page_hook ) || empty( $_REQUEST['mla_tab'] ) ) {
327
  return;
328
  }
329
 
330
  wp_register_style( MLA::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLA::CURRENT_MLA_VERSION );
331
  wp_enqueue_style( MLA::STYLESHEET_SLUG );
332
 
333
+ /*
334
+ * Initialize common script variables
335
+ */
336
+ $script_variables = array(
337
+ 'error' => __( 'Error while saving the changes.', 'media-library-assistant' ),
338
+ 'ntdeltitle' => __( 'Remove From Bulk Edit', 'media-library-assistant' ),
339
+ 'notitle' => '(' . __( 'no slug', 'media-library-assistant' ) . ')',
340
+ 'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
341
+ 'ajax_nonce' => wp_create_nonce( MLA::MLA_ADMIN_NONCE )
342
+ );
343
+
344
+ $mapping_variables = array(
345
+ 'page' => 'mla-settings-menu-custom_field',
346
+ 'mla_tab' => 'custom_field',
347
+ 'screen' => 'settings_page_mla-settings-menu-custom_field',
348
+ 'bulkChunkSize' => MLAOptions::mla_get_option( MLAOptions::MLA_BULK_CHUNK_SIZE ),
349
+ 'bulkWaiting' => __( 'Waiting', 'media-library-assistant' ),
350
+ 'bulkRunning' => __( 'Running', 'media-library-assistant' ),
351
+ 'bulkComplete' => __( 'Complete', 'media-library-assistant' ),
352
+ 'bulkUnchanged' => __( 'Unchanged', 'media-library-assistant' ),
353
+ 'bulkSuccess' => __( 'Succeeded', 'media-library-assistant' ),
354
+ 'bulkFailure' => __( 'Failed', 'media-library-assistant' ),
355
+ 'bulkCanceled' => __( 'CANCELED', 'media-library-assistant' ),
356
+ );
357
 
 
 
 
358
 
359
+ $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
360
+
361
+ /*
362
+ * Select tab-specific scripts and variables
363
+ */
364
+ switch ( $_REQUEST['mla_tab'] ) {
365
+ case 'view':
366
+ wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG,
367
+ MLA_PLUGIN_URL . "js/mla-inline-edit-view-scripts{$suffix}.js",
368
+ array( 'wp-lists', 'suggest', 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
369
+
370
+ $script_variables['fields'] = array( 'original_slug', 'slug', 'singular', 'plural', 'specification', 'menu_order' );
371
+ $script_variables['checkboxes'] = array( 'post_mime_type', 'table_view' );
372
+ $script_variables['ajax_action'] = self::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG;
373
+
374
+ wp_localize_script( self::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG,
375
+ self::JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT, $script_variables );
376
+ return;
377
+ case 'upload':
378
+ wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG,
379
+ MLA_PLUGIN_URL . "js/mla-inline-edit-upload-scripts{$suffix}.js",
380
+ array( 'wp-lists', 'suggest', 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
381
+
382
+ $script_variables['fields'] = array( 'original_slug', 'slug', 'mime_type', 'icon_type', 'core_type', 'mla_type', 'source', 'standard_source' );
383
+ $script_variables['checkboxes'] = array( 'disabled' );
384
+ $script_variables['ajax_action'] = self::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG;
385
+
386
+ wp_localize_script( self::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG,
387
+ self::JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT, $script_variables );
388
+ return;
389
+ case 'custom_field':
390
+ wp_enqueue_script( self::JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG,
391
+ MLA_PLUGIN_URL . "js/mla-inline-mapping-scripts{$suffix}.js",
392
+ array( 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
393
+
394
+ $script_variables = array_merge( $script_variables, $mapping_variables );
395
+ $script_variables['ajax_action'] = self::JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG;
396
+ $script_variables['fieldsId'] = '#mla-display-settings-custom-field-tab';
397
+ $script_variables['totalItems'] = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->posts} WHERE `post_type` = 'attachment'" );
398
+
399
+ wp_localize_script( self::JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG,
400
+ self::JAVASCRIPT_INLINE_MAPPING_OBJECT, $script_variables );
401
+ return;
402
+ case 'iptc_exif':
403
+ wp_enqueue_script( self::JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG,
404
+ MLA_PLUGIN_URL . "js/mla-inline-mapping-scripts{$suffix}.js",
405
+ array( 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
406
+
407
+ $script_variables = array_merge( $script_variables, $mapping_variables );
408
+ $script_variables['ajax_action'] = self::JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG;
409
+ $script_variables['fieldsId'] = '#mla-display-settings-iptc-exif-tab';
410
+ $script_variables['totalItems'] = $wpdb->get_var( "SELECT COUNT(*) FROM {$wpdb->posts} WHERE `post_type` = 'attachment' AND ( `post_mime_type` LIKE 'image/%' OR `post_mime_type` LIKE 'application/%pdf%' )" );
411
+
412
+ wp_localize_script( self::JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG,
413
+ self::JAVASCRIPT_INLINE_MAPPING_OBJECT, $script_variables );
414
+ return;
415
  }
416
  }
417
 
681
  die(); // this is required to return a proper result
682
  }
683
 
684
+ /**
685
+ * Ajax handler for Custom Fields tab inline mapping
686
+ *
687
+ * @since 2.00
688
+ *
689
+ * @return void echo json response object, then die()
690
+ */
691
+ public static function mla_inline_mapping_custom_action() {
692
+ set_current_screen( $_REQUEST['screen'] );
693
+ check_ajax_referer( MLA::MLA_ADMIN_NONCE, 'nonce' );
694
+
695
+ /*
696
+ * Convert the ajax bulk_action back to the older Submit button equivalent
697
+ */
698
+ if ( ! empty( $_REQUEST['bulk_action'] ) ) {
699
+ if ( 'custom-field-options-map' == $_REQUEST['bulk_action'] ) {
700
+ $_REQUEST['custom-field-options-map'] = __( 'Map All Rules, All Attachments Now', 'media-library-assistant' );
701
+ } else {
702
+ $match_count = preg_match( '/custom_field_mapping\[(.*)\]\[(.*)\]\[(.*)\]/', $_REQUEST['bulk_action'], $matches );
703
+ if ( $match_count ) {
704
+ $_REQUEST['custom_field_mapping'][ $matches[1] ][ $matches[2] ][ $matches[3] ] = __( 'Map All Attachments', 'media-library-assistant' );
705
+ }
706
+ }
707
+ }
708
+
709
+ /*
710
+ * Check for action or submit buttons.
711
+ */
712
+
713
+ if ( isset( $_REQUEST['custom_field_mapping'] ) && is_array( $_REQUEST['custom_field_mapping'] ) ) {
714
+ /*
715
+ * Find the current chunk
716
+ */
717
+ $offset = isset( $_REQUEST['offset'] ) ? $_REQUEST['offset'] : 0;
718
+ $length = isset( $_REQUEST['length'] ) ? $_REQUEST['length'] : 0;
719
+
720
+ /*
721
+ * Check for page-level submit button to map attachments.
722
+ */
723
+ if ( !empty( $_REQUEST['custom-field-options-map'] ) ) {
724
+ $page_content = self::_process_custom_field_mapping( NULL, $offset, $length );
725
+ } else {
726
+ $page_content = array(
727
+ 'message' => '',
728
+ 'body' => '',
729
+ 'processed' => 0,
730
+ 'unchanged' => 0,
731
+ 'success' => 0
732
+ );
733
+
734
+ /*
735
+ * Check for single-rule action buttons
736
+ */
737
+ foreach ( $_REQUEST['custom_field_mapping'] as $key => $value ) {
738
+ if ( isset( $value['action'] ) ) {
739
+ $settings = array( $key => $value );
740
+ foreach ( $value['action'] as $action => $label ) {
741
+ switch( $action ) {
742
+ case 'map_now':
743
+ $page_content = self::_process_custom_field_mapping( $settings, $offset, $length );
744
+ break;
745
+ case 'add_rule_map':
746
+ if ( 'none' == $value['name'] ) {
747
+ $page_content['message'] = __( 'Custom field no mapping rule changes detected.', 'media-library-assistant' );
748
+ break;
749
+ }
750
+ // fallthru
751
+ case 'add_field_map':
752
+ if ( '' == $value['name'] ) {
753
+ $page_content['message'] = __( 'Custom field no mapping rule changes detected.', 'media-library-assistant' );
754
+ break;
755
+ }
756
+
757
+ if ( 0 == $offset ) {
758
+ $page_content = self::_save_custom_field_settings( $settings );
759
+ if ( false !== strpos( $page_content['message'], __( 'ERROR:', 'media-library-assistant' ) ) ) {
760
+ $page_content['processed'] = 0;
761
+ $page_content['unchanged'] = 0;
762
+ $page_content['success'] = 0;
763
+ break;
764
+ }
765
+ }
766
+
767
+ $current_values = MLAOptions::mla_get_option( 'custom_field_mapping' );
768
+ $settings = array( $value['name'] => $current_values[$value['name']] );
769
+ $map_content = self::_process_custom_field_mapping( $settings, $offset, $length );
770
+ $page_content['message'] .= '<br>&nbsp;<br>' . $map_content['message'];
771
+ $page_content['processed'] = $map_content['processed'];
772
+ $page_content['unchanged'] = $map_content['unchanged'];
773
+ $page_content['success'] = $map_content['success'];
774
+ $page_content['refresh'] = true;
775
+ break;
776
+ default:
777
+ // ignore everything else
778
+ } //switch action
779
+ } // foreach action
780
+ } /// isset action
781
+ } // foreach rule
782
+ } // specific rule check
783
+ } // isset custom_field_mapping
784
+ else {
785
+ $page_content = array(
786
+ 'message' => '',
787
+ 'body' => '',
788
+ 'processed' => 0,
789
+ 'unchanged' => 0,
790
+ 'success' => 0
791
+ );
792
+ }
793
+
794
+ $chunk_results = array(
795
+ 'message' => $page_content['message'],
796
+ 'processed' => $page_content['processed'],
797
+ 'unchanged' => $page_content['unchanged'],
798
+ 'success' => $page_content['success'],
799
+ 'refresh' => isset( $page_content['refresh'] ) && true == $page_content['refresh'],
800
+ );
801
+
802
+ wp_send_json_success( $chunk_results );
803
+ }
804
+
805
+ /**
806
+ * Ajax handler for IPTC/EXIF tab inline mapping
807
+ *
808
+ * @since 2.00
809
+ *
810
+ * @return void echo json response object, then die()
811
+ */
812
+ public static function mla_inline_mapping_iptc_exif_action() {
813
+ set_current_screen( $_REQUEST['screen'] );
814
+ check_ajax_referer( MLA::MLA_ADMIN_NONCE, 'nonce' );
815
+
816
+ /*
817
+ * Convert the ajax bulk_action back to the older Submit button equivalent
818
+ */
819
+ if ( ! empty( $_REQUEST['bulk_action'] ) ) {
820
+ switch ( $_REQUEST['bulk_action'] ) {
821
+ case 'iptc-exif-options-process-standard':
822
+ $_REQUEST['iptc-exif-options-process-standard'] = __( 'Map All Attachments, Standard Fields Now', 'media-library-assistant' );
823
+ break;
824
+ case 'iptc-exif-options-process-taxonomy':
825
+ $_REQUEST['iptc-exif-options-process-taxonomy'] = __( 'Map All Attachments, Taxonomy Terms Now', 'media-library-assistant' );
826
+ break;
827
+ case 'iptc-exif-options-process-custom':
828
+ $_REQUEST['iptc-exif-options-process-custom'] = __( 'Map All Attachments, Custom Fields Now', 'media-library-assistant' );
829
+ break;
830
+ default:
831
+ $match_count = preg_match( '/iptc_exif_mapping\[custom\]\[(.*)\]\[(.*)\]\[(.*)\]/', $_REQUEST['bulk_action'], $matches );
832
+ if ( $match_count ) {
833
+ $_REQUEST['iptc_exif_mapping']['custom'][ $matches[1] ][ $matches[2] ][ $matches[3] ] = __( 'Map All Attachments', 'media-library-assistant' );
834
+ }
835
+ }
836
+ }
837
+
838
+ /*
839
+ * Check for action or submit buttons.
840
+ */
841
+ if ( isset( $_REQUEST['iptc_exif_mapping'] ) && is_array( $_REQUEST['iptc_exif_mapping'] ) ) {
842
+ /*
843
+ * Find the current chunk
844
+ */
845
+ $offset = isset( $_REQUEST['offset'] ) ? $_REQUEST['offset'] : 0;
846
+ $length = isset( $_REQUEST['length'] ) ? $_REQUEST['length'] : 0;
847
+
848
+ /*
849
+ * Check for page-level submit button to map attachments.
850
+ */
851
+ if ( !empty( $_REQUEST['iptc-exif-options-process-standard'] ) ) {
852
+ $page_content = self::_process_iptc_exif_standard( $offset, $length );
853
+ } elseif ( !empty( $_REQUEST['iptc-exif-options-process-taxonomy'] ) ) {
854
+ $page_content = self::_process_iptc_exif_taxonomy( $offset, $length );
855
+ } elseif ( !empty( $_REQUEST['iptc-exif-options-process-custom'] ) ) {
856
+ $page_content = self::_process_iptc_exif_custom( NULL, $offset, $length );
857
+ } else {
858
+ $page_content = array(
859
+ 'message' => '',
860
+ 'body' => '',
861
+ 'processed' => 0,
862
+ 'unchanged' => 0,
863
+ 'success' => 0
864
+ );
865
+
866
+ /*
867
+ * Check for single-rule action buttons
868
+ */
869
+ foreach ( $_REQUEST['iptc_exif_mapping']['custom'] as $key => $value ) {
870
+ if ( isset( $value['action'] ) ) {
871
+ $settings = array( 'custom' => array( $key => $value ) );
872
+ foreach ( $value['action'] as $action => $label ) {
873
+ switch( $action ) {
874
+ case 'map_now':
875
+ $page_content = self::_process_iptc_exif_custom( $settings, $offset, $length );
876
+ break;
877
+ case 'add_rule_map':
878
+ if ( 'none' == $value['name'] ) {
879
+ $page_content['message'] = __( 'IPTC/EXIF no mapping changes detected.', 'media-library-assistant' );
880
+ break;
881
+ }
882
+ // fallthru
883
+ case 'add_field_map':
884
+ if ( '' == $value['name'] ) {
885
+ $page_content['message'] = __( 'IPTC/EXIF no mapping changes detected.', 'media-library-assistant' );
886
+ break;
887
+ }
888
+
889
+ if ( 0 == $offset ) {
890
+ $page_content = self::_save_iptc_exif_custom_settings( $settings );
891
+ if ( false !== strpos( $page_content['message'], __( 'ERROR:', 'media-library-assistant' ) ) ) {
892
+ $page_content['processed'] = 0;
893
+ $page_content['unchanged'] = 0;
894
+ $page_content['success'] = 0;
895
+ break;
896
+ }
897
+ }
898
+
899
+ $current_values = MLAOptions::mla_get_option( 'iptc_exif_mapping' );
900
+ $settings = array( 'custom' => array( $value['name'] => $current_values['custom'][$value['name']] ) );
901
+ $map_content = self::_process_iptc_exif_custom( $settings, $offset, $length );
902
+ $page_content['message'] .= '<br>&nbsp;<br>' . $map_content['message'];
903
+ $page_content['processed'] = $map_content['processed'];
904
+ $page_content['unchanged'] = $map_content['unchanged'];
905
+ $page_content['success'] = $map_content['success'];
906
+ $page_content['refresh'] = true;
907
+ break;
908
+ default:
909
+ // ignore everything else
910
+ } //switch action
911
+ } // foreach action
912
+ } /// isset action
913
+ } // foreach rule
914
+ }
915
+ } // isset custom_field_mapping
916
+ else {
917
+ $page_content = array(
918
+ 'message' => '',
919
+ 'body' => '',
920
+ 'processed' => 0,
921
+ 'unchanged' => 0,
922
+ 'success' => 0
923
+ );
924
+ }
925
+
926
+ $chunk_results = array(
927
+ 'message' => $page_content['message'],
928
+ 'processed' => $page_content['processed'],
929
+ 'unchanged' => $page_content['unchanged'],
930
+ 'success' => $page_content['success'],
931
+ 'refresh' => isset( $page_content['refresh'] ) && true == $page_content['refresh'],
932
+ );
933
+
934
+ wp_send_json_success( $chunk_results );
935
+ }
936
+
937
  /**
938
  * Add the "Settings" link to the MLA entry in the Plugins section
939
  *
1469
  */
1470
  private static function _compose_edit_view_tab( $view, $template ) {
1471
  $page_values = array(
 
1472
  'Edit View' => __( 'Edit View', 'media-library-assistant' ),
1473
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-view&mla_tab=view',
1474
  'action' => MLA::MLA_ADMIN_SINGLE_EDIT_UPDATE,
1672
  }
1673
 
1674
  $page_values = array(
 
1675
  'Support is disabled' => __( 'View and Post MIME Type Support is disabled', 'media-library-assistant' ),
1676
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-view&mla_tab=view',
1677
  'options_list' => $options_list,
1827
  */
1828
  private static function _compose_edit_upload_tab( $item, &$templates ) {
1829
  $page_values = array(
 
1830
  'Edit Upload MIME' => __( 'Edit Upload MIME Type', 'media-library-assistant' ),
1831
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-upload&mla_tab=upload',
1832
  'action' => MLA::MLA_ADMIN_SINGLE_EDIT_UPDATE,
2140
  }
2141
 
2142
  $page_values = array(
 
2143
  'Support is disabled' => __( 'Upload MIME Type Support is disabled', 'media-library-assistant' ),
2144
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-upload&mla_tab=upload',
2145
  'options_list' => $options_list,
2275
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-mla_gallery&mla_tab=mla_gallery',
2276
  'options_list' => '',
2277
  'Style Templates' => __( 'Style Templates', 'media-library-assistant' ),
 
2278
  'style_options_list' => '',
2279
  'Markup Templates' => __( 'Markup Templates', 'media-library-assistant' ),
2280
  'markup_options_list' => '',
2672
  }
2673
 
2674
  $page_values = array(
2675
+ 'Mapping Progress' => __( 'Custom Field Mapping Progress', 'media-library-assistant' ),
2676
+ 'Progress' => __( 'Progress', 'media-library-assistant' ),
2677
+ 'DO NOT' => __( 'DO NOT DO THE FOLLOWING (they will cause mapping to fail)', 'media-library-assistant' ),
2678
+ 'DO NOT Close' => __( 'Close the window', 'media-library-assistant' ),
2679
+ 'DO NOT Reload' => __( 'Reload the page', 'media-library-assistant' ),
2680
+ 'DO NOT Click' => __( 'Click the browser&rsquo;s Stop, Back or forward buttons', 'media-library-assistant' ),
2681
+ 'Cancel' => __( 'Cancel', 'media-library-assistant' ),
2682
+ 'Close' => __( 'Close', 'media-library-assistant' ),
2683
+ 'Refresh' => __( 'Refresh', 'media-library-assistant' ),
2684
  'Custom Field Options' => __( 'Custom Field and Attachment Metadata Processing Options', 'media-library-assistant' ),
2685
  /* translators: 1: Documentation hyperlink */
2686
  'In this tab' => sprintf( __( 'In this tab you can define the rules for mapping several types of image metadata to WordPress custom fields. You can also use this screen to define rules for adding or updating fields within the WordPress-supplied "Attachment Metadata", stored in the "_wp_attachment_metadata" custom field. See the %1$s section of the Documentation for details.', 'media-library-assistant' ), '<a href="[+settingsURL+]?page=mla-settings-menu-documentation&amp;mla_tab=documentation#attachment_metadata_mapping" title="' . __( 'Updating Attachment Metadata Documentation', 'media-library-assistant' ) . '">' . __( 'Adding or changing Attachment Metadata', 'media-library-assistant' ) . '</a>' ),
2798
  }
2799
 
2800
  $page_values = array(
2801
+ 'Mapping Progress' => __( 'IPTC &amp; EXIF Mapping Progress', 'media-library-assistant' ),
2802
+ 'Progress' => __( 'Progress', 'media-library-assistant' ),
2803
+ 'DO NOT' => __( 'DO NOT DO THE FOLLOWING (they will cause mapping to fail)', 'media-library-assistant' ),
2804
+ 'DO NOT Close' => __( 'Close the window', 'media-library-assistant' ),
2805
+ 'DO NOT Reload' => __( 'Reload the page', 'media-library-assistant' ),
2806
+ 'DO NOT Click' => __( 'Click the browser&rsquo;s Stop, Back or forward buttons', 'media-library-assistant' ),
2807
+ 'Cancel' => __( 'Cancel', 'media-library-assistant' ),
2808
+ 'Close' => __( 'Close', 'media-library-assistant' ),
2809
+ 'Refresh' => __( 'Refresh', 'media-library-assistant' ),
2810
  'IPTX/EXIF Options' => __( 'IPTC &amp; EXIF Processing Options', 'media-library-assistant' ),
2811
  'In this tab' => __( 'In this tab you can define the rules for mapping IPTC (International Press Telecommunications Council) and EXIF (EXchangeable Image File) metadata to WordPress standard attachment fields, taxonomy terms and custom fields. <strong>NOTE:</strong> settings changes will not be made permanent until you click "Save Changes" at the bottom of this page.', 'media-library-assistant' ),
2812
  /* translators: 1: Documentation hyperlink */
2896
  $current_tab_slug = isset( $_REQUEST['mla_tab'] ) ? $_REQUEST['mla_tab']: 'general';
2897
  $current_tab = self::mla_get_options_tablist( $current_tab_slug );
2898
  $page_values = array(
 
2899
  'donateURL' => MLA_PLUGIN_URL . 'images/DonateButton.jpg',
2900
  'version' => 'v' . MLA::CURRENT_MLA_VERSION,
2901
  'messages' => '',
3276
  * @uses $_REQUEST if passed a NULL parameter
3277
  *
3278
  * @param array | NULL specific custom_field_mapping values
3279
+ * @param integer offset for chunk mapping
3280
+ * @param integer length for chunk mapping
3281
  *
3282
  * @return array Message(s) reflecting the results of the operation
3283
  */
3284
+ private static function _process_custom_field_mapping( $settings = NULL, $offset = 0, $length = 0 ) {
3285
  global $wpdb;
 
3286
  if ( NULL == $settings ) {
3287
  $source = 'custom_fields';
3288
  $settings = ( isset( $_REQUEST['custom_field_mapping'] ) ) ? $_REQUEST['custom_field_mapping'] : array();
3303
  );
3304
  }
3305
 
3306
+ if ( $length > 0 ) {
3307
+ $limits = "LIMIT {$offset}, {$length}";
3308
+ } else {
3309
+ $limits = '';
3310
+ }
3311
+
3312
  $examine_count = 0;
3313
  $update_count = 0;
3314
+ $post_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->posts} WHERE `post_type` = 'attachment' {$limits}" );
3315
 
3316
  do_action( 'mla_begin_mapping', $source, NULL );
3317
  foreach ( $post_ids as $key => $post_id ) {
3337
 
3338
  return array(
3339
  'message' => $message,
3340
+ 'body' => '',
3341
+ 'processed' => $examine_count,
3342
+ 'unchanged' => $examine_count - $update_count,
3343
+ 'success' => $update_count
3344
  );
3345
  } // _process_custom_field_mapping
3346
 
3419
  *
3420
  * @uses $_REQUEST
3421
  *
3422
+ * @param integer offset for chunk mapping
3423
+ * @param integer length for chunk mapping
3424
+ *
3425
  * @return array Message(s) reflecting the results of the operation
3426
  */
3427
+ private static function _process_iptc_exif_standard( $offset = 0, $length = 0 ) {
3428
  if ( ! isset( $_REQUEST['iptc_exif_mapping']['standard'] ) ) {
3429
  return array(
3430
  /* translators: 1: field type */
3435
 
3436
  $examine_count = 0;
3437
  $update_count = 0;
 
3438
  $query = array( 'orderby' => 'none', 'post_parent' => 'all', 'post_mime_type' => 'image,application/*pdf*' );
3439
+
3440
+ if ( $length > 0 ) {
3441
+ $query['numberposts'] = $length;
3442
+ $query['offset'] = $offset;
3443
+ }
3444
+
3445
  $posts = MLAShortcodes::mla_get_shortcode_attachments( 0, $query );
3446
 
3447
  if ( is_string( $posts ) ) {
3475
 
3476
  return array(
3477
  'message' => $message,
3478
+ 'body' => '',
3479
+ 'processed' => $examine_count,
3480
+ 'unchanged' => $examine_count - $update_count,
3481
+ 'success' => $update_count
3482
  );
3483
  } // _process_iptc_exif_standard
3484
 
3490
  *
3491
  * @uses $_REQUEST
3492
  *
3493
+ * @param integer offset for chunk mapping
3494
+ * @param integer length for chunk mapping
3495
+ *
3496
  * @return array Message(s) reflecting the results of the operation
3497
  */
3498
+ private static function _process_iptc_exif_taxonomy( $offset = 0, $length = 0 ) {
3499
  if ( ! isset( $_REQUEST['iptc_exif_mapping']['taxonomy'] ) ) {
3500
  return array(
3501
  /* translators: 1: field type */
3506
 
3507
  $examine_count = 0;
3508
  $update_count = 0;
 
3509
  $query = array( 'orderby' => 'none', 'post_parent' => 'all', 'post_mime_type' => 'image,application/*pdf*' );
3510
+
3511
+ if ( $length > 0 ) {
3512
+ $query['numberposts'] = $length;
3513
+ $query['offset'] = $offset;
3514
+ }
3515
+
3516
  $posts = MLAShortcodes::mla_get_shortcode_attachments( 0, $query );
3517
 
3518
  if ( is_string( $posts ) ) {
3546
 
3547
  return array(
3548
  'message' => $message,
3549
+ 'body' => '',
3550
+ 'processed' => $examine_count,
3551
+ 'unchanged' => $examine_count - $update_count,
3552
+ 'success' => $update_count
3553
  );
3554
  } // _process_iptc_exif_taxonomy
3555
 
3562
  * @uses $_REQUEST if passed a NULL parameter
3563
  *
3564
  * @param array | NULL specific iptc_exif_custom_mapping values
3565
+ * @param integer offset for chunk mapping
3566
+ * @param integer length for chunk mapping
3567
  *
3568
  * @return array Message(s) reflecting the results of the operation
3569
  */
3570
+ private static function _process_iptc_exif_custom( $settings = NULL, $offset = 0, $length = 0 ) {
3571
  if ( NULL == $settings ) {
3572
  $source = 'iptc_exif_custom';
3573
  $settings = ( isset( $_REQUEST['iptc_exif_mapping'] ) ) ? $_REQUEST['iptc_exif_mapping'] : array();
3591
 
3592
  $examine_count = 0;
3593
  $update_count = 0;
 
3594
  $query = array( 'orderby' => 'none', 'post_parent' => 'all', 'post_mime_type' => 'image,application/*pdf*' );
3595
+
3596
+ if ( $length > 0 ) {
3597
+ $query['numberposts'] = $length;
3598
+ $query['offset'] = $offset;
3599
+ }
3600
+
3601
  $posts = MLAShortcodes::mla_get_shortcode_attachments( 0, $query );
3602
 
3603
  if ( is_string( $posts ) ) {
3631
 
3632
  return array(
3633
  'message' => $message,
3634
+ 'body' => '',
3635
+ 'processed' => $examine_count,
3636
+ 'unchanged' => $examine_count - $update_count,
3637
+ 'success' => $update_count
3638
  );
3639
  } // _process_iptc_exif_custom
3640
 
includes/class-mla-shortcodes.php CHANGED
@@ -31,23 +31,8 @@ class MLAShortcodes {
31
  if ( version_compare( get_bloginfo('version'), '4.0', '>=' ) ) {
32
  add_filter( 'no_texturize_shortcodes', 'MLAShortcodes::mla_no_texturize_shortcodes_filter', 10, 1 );
33
  }
34
-
35
- // add_filter( 'date_query_valid_columns', 'MLAShortcodes::mla_date_query_valid_columns_filter', 10, 1 );
36
- // add_filter( 'get_date_sql', 'MLAShortcodes::mla_get_date_sql_filter', 10, 2 );
37
  }
38
 
39
- /* public static function mla_date_query_valid_columns_filter( $valid_columns ) {
40
- $valid_columns[] = 'meta_value';
41
-
42
- return $valid_columns;
43
- }
44
-
45
- public static function mla_get_date_sql_filter( $where, $date_query ) {
46
- //error_log( ' $where = ' . var_export( $where, true ), 0 );
47
-
48
- return $where;
49
- } // */
50
-
51
  /**
52
  * Prevents wptexturizing of the [mla_gallery] shortcode, avoiding a bug in WP 4.0.
53
  *
@@ -777,6 +762,10 @@ class MLAShortcodes {
777
  * As of WP 3.7, this function returns "<a href='$url'>$link_text</a>", where $link_text
778
  * can be an image thumbnail or a text link. The "title=" attribute was dropped.
779
  * The function is defined in /wp-includes/post-template.php.
 
 
 
 
780
  */
781
  $item_values['pagelink'] = wp_get_attachment_link($attachment->ID, $size, true, $show_icon, $link_text);
782
  $item_values['filelink'] = wp_get_attachment_link($attachment->ID, $size, false, $show_icon, $link_text);
@@ -2206,7 +2195,6 @@ class MLAShortcodes {
2206
  break;
2207
  case 'paginate_links':
2208
  $new_page = 0;
2209
- $new_text = '';
2210
  }
2211
 
2212
  $markup_values['current_page'] = $paged;
@@ -2248,6 +2236,7 @@ class MLAShortcodes {
2248
  */
2249
  $pagination_arguments = array( 'mla_nolink_text', 'mla_link_class', 'mla_rollover_text', 'mla_link_attributes', 'mla_link_href', 'mla_link_text', 'mla_prev_text', 'mla_next_text' );
2250
 
 
2251
  foreach( $pagination_arguments as $value ) {
2252
  $new_text .= str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments[ $value ] ) );
2253
  }
@@ -2525,8 +2514,17 @@ class MLAShortcodes {
2525
  'meta_value_num' => NULL,
2526
  'meta_compare' => '',
2527
  'meta_query' => '',
 
 
 
 
 
2528
  // Search
2529
  's' => '',
 
 
 
 
2530
  // Returned fields, for support topic "Adding 'fields' to function mla_get_shortcode_attachments" by leoloso
2531
  'fields' => '',
2532
  // Caching parameters, for support topic "Lag in attachment categories" by Ruriko
@@ -2546,7 +2544,7 @@ class MLAShortcodes {
2546
  * @var object
2547
  */
2548
  public static $mla_gallery_wp_query_object = NULL;
2549
-
2550
  /**
2551
  * Parses shortcode parameters and returns the gallery objects
2552
  *
@@ -2566,6 +2564,11 @@ class MLAShortcodes {
2566
  */
2567
  self::$query_parameters = array();
2568
 
 
 
 
 
 
2569
  /*
2570
  * Make sure $attr is an array, even if it's empty
2571
  */
@@ -2615,11 +2618,12 @@ class MLAShortcodes {
2615
 
2616
  /*
2617
  * 'RAND' is not documented in the codex, but is present in the code.
2618
- */
 
2619
  if ( 'RAND' == strtoupper( $arguments['order'] ) ) {
2620
  $arguments['orderby'] = 'none';
2621
  unset( $arguments['order'] );
2622
- }
2623
 
2624
  if ( !empty( $arguments['ids'] ) ) {
2625
  // 'ids' is explicitly ordered, unless you specify otherwise.
@@ -2900,13 +2904,51 @@ class MLAShortcodes {
2900
 
2901
  unset( $arguments[ $key ] );
2902
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2903
  case 'author_name':
2904
  case 'category_name':
2905
  case 'tag':
2906
  case 'meta_key':
2907
  case 'meta_value':
2908
  case 'meta_compare':
2909
- case 's':
2910
  $children_ok = false;
2911
  // fallthru
2912
  case 'post_type':
@@ -3009,7 +3051,7 @@ class MLAShortcodes {
3009
  // ignore anything else
3010
  } // switch $key
3011
  } // foreach $arguments
3012
-
3013
  /*
3014
  * Decide whether to use a "get_children" style query
3015
  */
@@ -3088,6 +3130,80 @@ class MLAShortcodes {
3088
  add_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter', 0x7FFFFFFF, 1 );
3089
  add_filter( 'posts_orderby', 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter', 0x7FFFFFFF, 1 );
3090
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3091
  if ( self::$mla_debug ) {
3092
  global $wp_filter;
3093
 
@@ -3134,6 +3250,14 @@ class MLAShortcodes {
3134
  $attachments['found_rows'] = self::$mla_gallery_wp_query_object->found_posts;
3135
  }
3136
 
 
 
 
 
 
 
 
 
3137
  if ( function_exists( 'relevanssi_prevent_default_request' ) ) {
3138
  remove_filter( 'relevanssi_admin_search_ok', 'MLAData::mla_query_relevanssi_admin_search_ok_filter' );
3139
  }
@@ -3179,6 +3303,22 @@ class MLAShortcodes {
3179
  $join_clause = str_replace( " LEFT JOIN {$wpdb->posts} AS p2 ON ({$wpdb->posts}.post_parent = p2.ID) ", " LEFT JOIN {$wpdb->posts} AS p2 ON (p2.ID = p2.ID) ", $join_clause );
3180
  }
3181
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3182
  return $join_clause;
3183
  }
3184
 
@@ -3392,8 +3532,10 @@ class MLAShortcodes {
3392
  $arguments = shortcode_atts( self::$mla_get_terms_parameters, $attr );
3393
  $arguments = apply_filters( 'mla_get_terms_query_arguments', $arguments );
3394
 
3395
- $query = array();
3396
- $query_parameters = array();
 
 
3397
 
3398
  /*
3399
  * If we're not counting attachments per term, strip
@@ -3414,14 +3556,15 @@ class MLAShortcodes {
3414
  $arguments['orderby'] = 'none';
3415
  }
3416
  }
3417
-
3418
- $query[] = 'SELECT ' . $arguments['fields'];
3419
- $query[] = 'FROM `' . $wpdb->terms . '` AS t';
3420
- $query[] = 'JOIN `' . $wpdb->term_taxonomy . '` AS tt ON t.term_id = tt.term_id';
 
3421
 
3422
  if ( ! $no_count ) {
3423
- $query[] = 'LEFT JOIN `' . $wpdb->term_relationships . '` AS tr ON tt.term_taxonomy_id = tr.term_taxonomy_id';
3424
- $query[] = 'LEFT JOIN `' . $wpdb->posts . '` AS p ON tr.object_id = p.ID';
3425
 
3426
  /*
3427
  * Add type and status constraints
@@ -3435,10 +3578,10 @@ class MLAShortcodes {
3435
  $placeholders = array();
3436
  foreach ( $post_types as $post_type ) {
3437
  $placeholders[] = '%s';
3438
- $query_parameters[] = $post_type;
3439
  }
3440
 
3441
- $query[] = 'AND p.post_type IN (' . join( ',', $placeholders ) . ')';
3442
 
3443
  if ( is_array( $arguments['post_status'] ) ) {
3444
  $post_stati = $arguments['post_status'];
@@ -3450,15 +3593,18 @@ class MLAShortcodes {
3450
  foreach ( $post_stati as $post_status ) {
3451
  if ( ( 'private' != $post_status ) || is_user_logged_in() ) {
3452
  $placeholders[] = '%s';
3453
- $query_parameters[] = $post_status;
3454
  }
3455
  }
3456
 
3457
- $query[] = 'AND p.post_status IN (' . join( ',', $placeholders ) . ')';
3458
  }
 
 
 
3459
 
3460
  /*
3461
- * Add taxonomy constraint
3462
  */
3463
  if ( is_array( $arguments['taxonomy'] ) ) {
3464
  $taxonomies = $arguments['taxonomy'];
@@ -3473,13 +3619,14 @@ class MLAShortcodes {
3473
  }
3474
  }
3475
 
 
3476
  $placeholders = array();
3477
  foreach ($taxonomies as $taxonomy) {
3478
  $placeholders[] = '%s';
3479
- $query_parameters[] = $taxonomy;
3480
  }
3481
 
3482
- $query[] = 'WHERE ( tt.taxonomy IN (' . join( ',', $placeholders ) . ')';
3483
 
3484
  /*
3485
  * The "ids" parameter can build an item-specific cloud.
@@ -3488,7 +3635,7 @@ class MLAShortcodes {
3488
  if ( ! empty( $arguments['ids'] ) && empty( $arguments['include'] ) ) {
3489
  $ids = wp_parse_id_list( $arguments['ids'] );
3490
  $placeholders = implode( "','", $ids );
3491
- $query[] = "AND p.ID IN ( '{$placeholders}' )";
3492
 
3493
  $includes = array();
3494
  foreach ( $ids as $id ) {
@@ -3518,59 +3665,38 @@ class MLAShortcodes {
3518
  */
3519
  if ( ! empty( $arguments['include'] ) ) {
3520
  $placeholders = implode( "','", wp_parse_id_list( $arguments['include'] ) );
3521
- $query[] = "AND t.term_id IN ( '{$placeholders}' )";
3522
  } elseif ( ! empty( $arguments['exclude'] ) ) {
3523
  $placeholders = implode( "','", wp_parse_id_list( $arguments['exclude'] ) );
3524
- $query[] = "AND t.term_id NOT IN ( '{$placeholders}' )";
3525
  }
3526
 
3527
  if ( '' !== $arguments['parent'] ) {
3528
  $parent = (int) $arguments['parent'];
3529
- $query[] = "AND tt.parent = '{$parent}'";
3530
  }
3531
 
3532
  if ( 'all' !== strtolower( $arguments['post_mime_type'] ) ) {
3533
  $where = str_replace( '%', '%%', wp_post_mime_type_where( $arguments['post_mime_type'], 'p' ) );
3534
 
3535
  if ( 0 == absint( $arguments['minimum'] ) ) {
3536
- $query[] = ' AND ( p.post_mime_type IS NULL OR ' . substr( $where, 6 );
3537
  } else {
3538
- $query[] = $where;
3539
  }
3540
  }
3541
 
3542
- $query[] = ' ) GROUP BY tt.term_taxonomy_id';
3543
-
3544
- if ( 0 < absint( $arguments['minimum'] ) ) {
3545
- $query[] = 'HAVING count >= %d';
3546
- $query_parameters[] = absint( $arguments['minimum'] );
3547
- }
3548
 
3549
  /*
3550
- * For now, always select the most popular terms,
3551
- * except when specifically told to omit the clause
3552
  */
3553
  if ( $arguments['no_orderby'] ) {
3554
  $arguments['orderby'] = 'count';
3555
  $arguments['order'] = 'DESC';
3556
- } elseif ( ! $no_count ) {
3557
- $query[] = 'ORDER BY count DESC, t.term_id ASC';
3558
- }
3559
-
3560
- /*
3561
- * Limit the total number of terms returned
3562
- */
3563
- $terms_limit = absint( $arguments['number'] );
3564
- if ( 0 < $terms_limit ) {
3565
- $query[] = 'LIMIT %d';
3566
- $query_parameters[] = $terms_limit;
3567
  }
3568
 
3569
- /*
3570
- * $final_parameters, if present, require an SQL subquery
3571
- */
3572
- $final_parameters = array();
3573
-
3574
  /*
3575
  * Add sort order
3576
  */
@@ -3579,6 +3705,9 @@ class MLAShortcodes {
3579
  if ( 'DESC' != $order ) {
3580
  $order = 'ASC';
3581
  }
 
 
 
3582
 
3583
  /*
3584
  * Count, Descending, is the default order so no further work
@@ -3600,25 +3729,70 @@ class MLAShortcodes {
3600
  'slug' => 'slug',
3601
  );
3602
 
3603
- $final_parameters[] = 'ORDER BY ' . self::_validate_sql_orderby( $arguments, '', $allowed_keys, $binary_keys );
 
3604
  } // add ORDER BY
3605
 
3606
  /*
3607
  * Add pagination
3608
  */
 
3609
  $offset = absint( $arguments['offset'] );
3610
  $limit = absint( $arguments['limit'] );
3611
  if ( 0 < $offset && 0 < $limit ) {
3612
- $final_parameters[] = 'LIMIT %d, %d';
3613
- $query_parameters[] = $offset;
3614
- $query_parameters[] = $limit;
3615
  } elseif ( 0 < $limit ) {
3616
- $final_parameters[] = 'LIMIT %d';
3617
- $query_parameters[] = $limit;
3618
  } elseif ( 0 < $offset ) {
3619
- $final_parameters[] = 'LIMIT %d, %d';
3620
- $query_parameters[] = $offset;
3621
- $query_parameters[] = 0x7FFFFFFF; // big number!
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3622
  }
3623
 
3624
  /*
@@ -3626,22 +3800,21 @@ class MLAShortcodes {
3626
  */
3627
  if ( ! $no_count && ( 0 < $offset || 0 < $limit ) ) {
3628
  $count_query = 'SELECT COUNT(*) as count FROM (' . join(' ', $query) . ' ) as subQuery';
3629
- $count = $wpdb->get_results( $wpdb->prepare( $count_query, $query_parameters ) );
3630
  $found_rows = $count[0]->count;
3631
  }
3632
 
3633
- if ( ! empty( $final_parameters ) ) {
3634
  if ( ! $no_count ) {
3635
  array_unshift($query, 'SELECT * FROM (');
3636
  $query[] = ') AS subQuery';
3637
  }
3638
 
3639
- $query = array_merge( $query, $final_parameters );
3640
  }
3641
 
3642
  $query = join(' ', $query);
3643
-
3644
- $tags = $wpdb->get_results( $wpdb->prepare( $query, $query_parameters ) );
3645
  if ( ! isset( $found_rows ) ) {
3646
  $found_rows = $wpdb->num_rows;
3647
  }
31
  if ( version_compare( get_bloginfo('version'), '4.0', '>=' ) ) {
32
  add_filter( 'no_texturize_shortcodes', 'MLAShortcodes::mla_no_texturize_shortcodes_filter', 10, 1 );
33
  }
 
 
 
34
  }
35
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  /**
37
  * Prevents wptexturizing of the [mla_gallery] shortcode, avoiding a bug in WP 4.0.
38
  *
762
  * As of WP 3.7, this function returns "<a href='$url'>$link_text</a>", where $link_text
763
  * can be an image thumbnail or a text link. The "title=" attribute was dropped.
764
  * The function is defined in /wp-includes/post-template.php.
765
+ *
766
+ * As of WP 4.1, this function has an additional optional parameter, an "Array or string of attributes",
767
+ * used in the [gallery] shortcode to tie the link to a caption with 'aria-describedby'. The caption
768
+ * has a matching 'id' attribute "$selector-#id".
769
  */
770
  $item_values['pagelink'] = wp_get_attachment_link($attachment->ID, $size, true, $show_icon, $link_text);
771
  $item_values['filelink'] = wp_get_attachment_link($attachment->ID, $size, false, $show_icon, $link_text);
2195
  break;
2196
  case 'paginate_links':
2197
  $new_page = 0;
 
2198
  }
2199
 
2200
  $markup_values['current_page'] = $paged;
2236
  */
2237
  $pagination_arguments = array( 'mla_nolink_text', 'mla_link_class', 'mla_rollover_text', 'mla_link_attributes', 'mla_link_href', 'mla_link_text', 'mla_prev_text', 'mla_next_text' );
2238
 
2239
+ $new_text = '';
2240
  foreach( $pagination_arguments as $value ) {
2241
  $new_text .= str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments[ $value ] ) );
2242
  }
2514
  'meta_value_num' => NULL,
2515
  'meta_compare' => '',
2516
  'meta_query' => '',
2517
+ // Terms Search
2518
+ 'mla_terms_phrases' => '',
2519
+ 'mla_terms_taxonomies' => '',
2520
+ 'mla_phrase_connector' => '',
2521
+ 'mla_term_connector' => '',
2522
  // Search
2523
  's' => '',
2524
+ 'mla_search_fields' => '',
2525
+ 'mla_search_connector' => '',
2526
+ 'sentence' => '',
2527
+ 'exact' => '',
2528
  // Returned fields, for support topic "Adding 'fields' to function mla_get_shortcode_attachments" by leoloso
2529
  'fields' => '',
2530
  // Caching parameters, for support topic "Lag in attachment categories" by Ruriko
2544
  * @var object
2545
  */
2546
  public static $mla_gallery_wp_query_object = NULL;
2547
+
2548
  /**
2549
  * Parses shortcode parameters and returns the gallery objects
2550
  *
2564
  */
2565
  self::$query_parameters = array();
2566
 
2567
+ /*
2568
+ * Parameters passed to the posts_search filter function
2569
+ */
2570
+ MLAData::$search_parameters = array( 'debug' => 'none' );
2571
+
2572
  /*
2573
  * Make sure $attr is an array, even if it's empty
2574
  */
2618
 
2619
  /*
2620
  * 'RAND' is not documented in the codex, but is present in the code.
2621
+ * CODE REMOVED in WordPress 4.1
2622
+ * /
2623
  if ( 'RAND' == strtoupper( $arguments['order'] ) ) {
2624
  $arguments['orderby'] = 'none';
2625
  unset( $arguments['order'] );
2626
+ } // */
2627
 
2628
  if ( !empty( $arguments['ids'] ) ) {
2629
  // 'ids' is explicitly ordered, unless you specify otherwise.
2904
 
2905
  unset( $arguments[ $key ] );
2906
  break;
2907
+ case 'sentence':
2908
+ case 'exact':
2909
+ if ( ! empty( $value ) && ( 'true' == strtolower( $value ) ) ) {
2910
+ MLAData::$search_parameters[ $key ] = true;
2911
+ } else {
2912
+ MLAData::$search_parameters[ $key ] = false;
2913
+ }
2914
+
2915
+ unset( $arguments[ $key ] );
2916
+ break;
2917
+ case 'mla_search_connector':
2918
+ case 'mla_phrase_connector':
2919
+ case 'mla_term_connector':
2920
+ if ( ! empty( $value ) && ( 'OR' == strtoupper( $value ) ) ) {
2921
+ MLAData::$search_parameters[ $key ] = 'OR';
2922
+ } else {
2923
+ MLAData::$search_parameters[ $key ] = 'AND';
2924
+ }
2925
+
2926
+ unset( $arguments[ $key ] );
2927
+ break;
2928
+ case 'mla_terms_phrases':
2929
+ $children_ok = false;
2930
+ // fallthru
2931
+ case 'mla_terms_taxonomies':
2932
+ case 'mla_search_fields':
2933
+ if ( ! empty( $value ) ) {
2934
+ MLAData::$search_parameters[ $key ] = $value;
2935
+
2936
+ if ( ! $children_ok ) {
2937
+ $use_children = false;
2938
+ }
2939
+ }
2940
+
2941
+ unset( $arguments[ $key ] );
2942
+ break;
2943
+ case 's':
2944
+ MLAData::$search_parameters['s'] = $value;
2945
+ // fallthru
2946
  case 'author_name':
2947
  case 'category_name':
2948
  case 'tag':
2949
  case 'meta_key':
2950
  case 'meta_value':
2951
  case 'meta_compare':
 
2952
  $children_ok = false;
2953
  // fallthru
2954
  case 'post_type':
3051
  // ignore anything else
3052
  } // switch $key
3053
  } // foreach $arguments
3054
+
3055
  /*
3056
  * Decide whether to use a "get_children" style query
3057
  */
3130
  add_filter( 'posts_where', 'MLAShortcodes::mla_shortcode_query_posts_where_filter', 0x7FFFFFFF, 1 );
3131
  add_filter( 'posts_orderby', 'MLAShortcodes::mla_shortcode_query_posts_orderby_filter', 0x7FFFFFFF, 1 );
3132
 
3133
+ /*
3134
+ * Handle the keyword and terms search in the posts_search filter.
3135
+ * One or both of 'mla_terms_phrases' and 's' must be present to
3136
+ * trigger the search.
3137
+ */
3138
+ if ( empty( MLAData::$search_parameters['mla_terms_phrases'] ) && empty( MLAData::$search_parameters['s'] ) ) {
3139
+ MLAData::$search_parameters = array( 'debug' => 'none' );
3140
+ } else {
3141
+ /*
3142
+ * Convert Terms Search parameters to the filter's requirements
3143
+ */
3144
+ if ( ! empty( MLAData::$search_parameters['mla_terms_phrases'] ) ) {
3145
+ MLAData::$search_parameters['mla_terms_search']['phrases'] = MLAData::$search_parameters['mla_terms_phrases'];
3146
+
3147
+ if ( empty( MLAData::$search_parameters['mla_terms_taxonomies'] ) ) {
3148
+ MLAData::$search_parameters['mla_terms_search']['taxonomies'] = MLAOptions::mla_supported_taxonomies( 'term-search' );
3149
+ } else {
3150
+ MLAData::$search_parameters['mla_terms_search']['taxonomies'] = array_filter( array_map( 'trim', explode( ',', MLAData::$search_parameters['mla_terms_taxonomies'] ) ) );
3151
+ }
3152
+
3153
+ if ( empty( MLAData::$search_parameters['mla_phrase_connector'] ) ) {
3154
+ MLAData::$search_parameters['mla_terms_search']['radio_phrases'] = 'AND';
3155
+ } else {
3156
+ MLAData::$search_parameters['mla_terms_search']['radio_phrases'] = MLAData::$search_parameters['mla_phrase_connector'];
3157
+ }
3158
+
3159
+ if ( empty( MLAData::$search_parameters['mla_term_connector'] ) ) {
3160
+ MLAData::$search_parameters['mla_terms_search']['radio_terms'] = 'OR';
3161
+ } else {
3162
+ MLAData::$search_parameters['mla_terms_search']['radio_terms'] = MLAData::$search_parameters['mla_phrase_connector'];
3163
+ }
3164
+ }
3165
+
3166
+ unset( MLAData::$search_parameters['mla_terms_phrases'] );
3167
+ unset( MLAData::$search_parameters['mla_terms_taxonomies'] );
3168
+ unset( MLAData::$search_parameters['mla_phrase_connector'] );
3169
+ unset( MLAData::$search_parameters['mla_term_connector'] );
3170
+
3171
+ if ( empty( MLAData::$search_parameters['mla_search_fields'] ) ) {
3172
+ MLAData::$search_parameters['mla_search_fields'] = array( 'title', 'content' );
3173
+ } else {
3174
+ MLAData::$search_parameters['mla_search_fields'] = array_filter( array_map( 'trim', explode( ',', MLAData::$search_parameters['mla_search_fields'] ) ) );
3175
+ MLAData::$search_parameters['mla_search_fields'] = array_intersect( array( 'title', 'content', 'excerpt', 'name', 'terms' ), MLAData::$search_parameters['mla_search_fields'] );
3176
+
3177
+ /*
3178
+ * The Terms Search overrides any terms-based keyword search for now; too complicated.
3179
+ */
3180
+ if ( isset( MLAData::$search_parameters['mla_terms_search']['phrases'] ) ) {
3181
+ foreach ( MLAData::$search_parameters['mla_search_fields'] as $index => $field ) {
3182
+ if ( 'terms' == $field ) {
3183
+ unset ( MLAData::$search_parameters['mla_search_fields'][ $index ] );
3184
+ }
3185
+ }
3186
+ }
3187
+ } // mla_search_fields present
3188
+
3189
+ if ( empty( MLAData::$search_parameters['mla_search_connector'] ) ) {
3190
+ MLAData::$search_parameters['mla_search_connector'] = 'AND';
3191
+ }
3192
+
3193
+ if ( empty( MLAData::$search_parameters['sentence'] ) ) {
3194
+ MLAData::$search_parameters['sentence'] = false;
3195
+ }
3196
+
3197
+ if ( empty( MLAData::$search_parameters['exact'] ) ) {
3198
+ MLAData::$search_parameters['exact'] = false;
3199
+ }
3200
+
3201
+ MLAData::$search_parameters['debug'] = self::$mla_debug ? 'shortcode' : 'none';
3202
+
3203
+ add_filter( 'posts_search', 'MLAData::mla_query_posts_search_filter', 10, 2 );
3204
+ add_filter( 'posts_groupby', 'MLAData::mla_query_posts_groupby_filter' );
3205
+ }
3206
+
3207
  if ( self::$mla_debug ) {
3208
  global $wp_filter;
3209
 
3250
  $attachments['found_rows'] = self::$mla_gallery_wp_query_object->found_posts;
3251
  }
3252
 
3253
+ if ( ! empty( MLAData::$search_parameters ) ) {
3254
+ remove_filter( 'posts_search', 'MLAData::mla_query_posts_search_filter' );
3255
+
3256
+ if ( self::$mla_debug && isset( MLAData::$search_parameters['mla_debug_messages'] ) ) {
3257
+ self::$mla_debug_messages .= MLAData::$search_parameters['mla_debug_messages'];
3258
+ }
3259
+ }
3260
+
3261
  if ( function_exists( 'relevanssi_prevent_default_request' ) ) {
3262
  remove_filter( 'relevanssi_admin_search_ok', 'MLAData::mla_query_relevanssi_admin_search_ok_filter' );
3263
  }
3303
  $join_clause = str_replace( " LEFT JOIN {$wpdb->posts} AS p2 ON ({$wpdb->posts}.post_parent = p2.ID) ", " LEFT JOIN {$wpdb->posts} AS p2 ON (p2.ID = p2.ID) ", $join_clause );
3304
  }
3305
 
3306
+ /*
3307
+ * These joins support the 'terms' search_field
3308
+ */
3309
+ if ( isset( MLAData::$search_parameters['tax_terms_count'] ) ) {
3310
+ $tax_index = 0;
3311
+ $tax_clause = '';
3312
+
3313
+ while ( $tax_index < MLAData::$search_parameters['tax_terms_count'] ) {
3314
+ $prefix = 'mlatt' . $tax_index++;
3315
+ $tax_clause .= sprintf( ' INNER JOIN %1$s AS %2$s ON (%3$s.ID = %2$s.object_id)', $wpdb->term_relationships, $prefix, $wpdb->posts );
3316
+ }
3317
+
3318
+ $join_clause .= $tax_clause;
3319
+ }
3320
+
3321
+
3322
  return $join_clause;
3323
  }
3324
 
3532
  $arguments = shortcode_atts( self::$mla_get_terms_parameters, $attr );
3533
  $arguments = apply_filters( 'mla_get_terms_query_arguments', $arguments );
3534
 
3535
+ /*
3536
+ * Build an array of individual clauses that can be filtered
3537
+ */
3538
+ $clauses = array( 'fields' => '', 'join' => '', 'where' => '', 'order' => '', 'orderby' => '', 'limits' => '', );
3539
 
3540
  /*
3541
  * If we're not counting attachments per term, strip
3556
  $arguments['orderby'] = 'none';
3557
  }
3558
  }
3559
+
3560
+ $clauses['fields'] = $arguments['fields'];
3561
+
3562
+ $clause = array ( 'INNER JOIN `' . $wpdb->term_taxonomy . '` AS tt ON t.term_id = tt.term_id' );
3563
+ $clause_parameters = array();
3564
 
3565
  if ( ! $no_count ) {
3566
+ $clause[] = 'LEFT JOIN `' . $wpdb->term_relationships . '` AS tr ON tt.term_taxonomy_id = tr.term_taxonomy_id';
3567
+ $clause[] = 'LEFT JOIN `' . $wpdb->posts . '` AS p ON tr.object_id = p.ID';
3568
 
3569
  /*
3570
  * Add type and status constraints
3578
  $placeholders = array();
3579
  foreach ( $post_types as $post_type ) {
3580
  $placeholders[] = '%s';
3581
+ $clause_parameters[] = $post_type;
3582
  }
3583
 
3584
+ $clause[] = 'AND p.post_type IN (' . join( ',', $placeholders ) . ')';
3585
 
3586
  if ( is_array( $arguments['post_status'] ) ) {
3587
  $post_stati = $arguments['post_status'];
3593
  foreach ( $post_stati as $post_status ) {
3594
  if ( ( 'private' != $post_status ) || is_user_logged_in() ) {
3595
  $placeholders[] = '%s';
3596
+ $clause_parameters[] = $post_status;
3597
  }
3598
  }
3599
 
3600
+ $clause[] = 'AND p.post_status IN (' . join( ',', $placeholders ) . ')';
3601
  }
3602
+
3603
+ $clause = join(' ', $clause);
3604
+ $clauses['join'] = $wpdb->prepare( $clause, $clause_parameters );
3605
 
3606
  /*
3607
+ * Start WHERE clause with a taxonomy constraint
3608
  */
3609
  if ( is_array( $arguments['taxonomy'] ) ) {
3610
  $taxonomies = $arguments['taxonomy'];
3619
  }
3620
  }
3621
 
3622
+ $clause_parameters = array();
3623
  $placeholders = array();
3624
  foreach ($taxonomies as $taxonomy) {
3625
  $placeholders[] = '%s';
3626
+ $clause_parameters[] = $taxonomy;
3627
  }
3628
 
3629
+ $clause = array( 'tt.taxonomy IN (' . join( ',', $placeholders ) . ')' );
3630
 
3631
  /*
3632
  * The "ids" parameter can build an item-specific cloud.
3635
  if ( ! empty( $arguments['ids'] ) && empty( $arguments['include'] ) ) {
3636
  $ids = wp_parse_id_list( $arguments['ids'] );
3637
  $placeholders = implode( "','", $ids );
3638
+ $clause[] = "AND p.ID IN ( '{$placeholders}' )";
3639
 
3640
  $includes = array();
3641
  foreach ( $ids as $id ) {
3665
  */
3666
  if ( ! empty( $arguments['include'] ) ) {
3667
  $placeholders = implode( "','", wp_parse_id_list( $arguments['include'] ) );
3668
+ $clause[] = "AND t.term_id IN ( '{$placeholders}' )";
3669
  } elseif ( ! empty( $arguments['exclude'] ) ) {
3670
  $placeholders = implode( "','", wp_parse_id_list( $arguments['exclude'] ) );
3671
+ $clause[] = "AND t.term_id NOT IN ( '{$placeholders}' )";
3672
  }
3673
 
3674
  if ( '' !== $arguments['parent'] ) {
3675
  $parent = (int) $arguments['parent'];
3676
+ $clause[] = "AND tt.parent = '{$parent}'";
3677
  }
3678
 
3679
  if ( 'all' !== strtolower( $arguments['post_mime_type'] ) ) {
3680
  $where = str_replace( '%', '%%', wp_post_mime_type_where( $arguments['post_mime_type'], 'p' ) );
3681
 
3682
  if ( 0 == absint( $arguments['minimum'] ) ) {
3683
+ $clause[] = ' AND ( p.post_mime_type IS NULL OR ' . substr( $where, 6 );
3684
  } else {
3685
+ $clause[] = $where;
3686
  }
3687
  }
3688
 
3689
+ $clause = join(' ', $clause);
3690
+ $clauses['where'] = $wpdb->prepare( $clause, $clause_parameters );
 
 
 
 
3691
 
3692
  /*
3693
+ * For the inner/initial query, always select the most popular terms
 
3694
  */
3695
  if ( $arguments['no_orderby'] ) {
3696
  $arguments['orderby'] = 'count';
3697
  $arguments['order'] = 'DESC';
 
 
 
 
 
 
 
 
 
 
 
3698
  }
3699
 
 
 
 
 
 
3700
  /*
3701
  * Add sort order
3702
  */
3705
  if ( 'DESC' != $order ) {
3706
  $order = 'ASC';
3707
  }
3708
+
3709
+ $clauses['order'] = $order;
3710
+ $clauses['orderby'] = "ORDER BY {$orderby}";
3711
 
3712
  /*
3713
  * Count, Descending, is the default order so no further work
3729
  'slug' => 'slug',
3730
  );
3731
 
3732
+ $clause = 'ORDER BY ' . self::_validate_sql_orderby( $arguments, '', $allowed_keys, $binary_keys );
3733
+ $clauses['orderby'] = substr( $clause, 0, strrpos( $clause, ' ' . $order ) );
3734
  } // add ORDER BY
3735
 
3736
  /*
3737
  * Add pagination
3738
  */
3739
+ $clauses['limits'] = '';
3740
  $offset = absint( $arguments['offset'] );
3741
  $limit = absint( $arguments['limit'] );
3742
  if ( 0 < $offset && 0 < $limit ) {
3743
+ $clauses['limits'] = "LIMIT {$offset}, {$limit}";
 
 
3744
  } elseif ( 0 < $limit ) {
3745
+ $clauses['limits'] = "LIMIT {$limit}";
 
3746
  } elseif ( 0 < $offset ) {
3747
+ $clause_parameters = 0x7FFFFFFF;
3748
+ $clauses['limits'] = "LIMIT {$offset}, {$clause_parameters}";
3749
+ }
3750
+
3751
+ $clauses = apply_filters( 'mla_get_terms_clauses', $clauses );
3752
+
3753
+ /*
3754
+ * Build the final query
3755
+ */
3756
+ $query = array( 'SELECT' );
3757
+ $query[] = $clauses['fields'];
3758
+ $query[] = 'FROM `' . $wpdb->terms . '` AS t';
3759
+ $query[] = $clauses['join'];
3760
+ $query[] = 'WHERE (';
3761
+ $query[] = $clauses['where'];
3762
+ $query[] = ') GROUP BY tt.term_taxonomy_id';
3763
+
3764
+ $clause_parameters = absint( $arguments['minimum'] );
3765
+ if ( 0 < $clause_parameters ) {
3766
+ $query[] = "HAVING count >= {$clause_parameters}";
3767
+ }
3768
+
3769
+ /*
3770
+ * If specifically told to omit the ORDER BY clause or the COUNT,
3771
+ * supply a sort order for the initial/inner query only
3772
+ */
3773
+ if ( ! ( $arguments['no_orderby'] || $no_count ) ) {
3774
+ $query[] = 'ORDER BY count DESC, t.term_id ASC';
3775
+ }
3776
+
3777
+ /*
3778
+ * Limit the total number of terms returned
3779
+ */
3780
+ $terms_limit = absint( $arguments['number'] );
3781
+ if ( 0 < $terms_limit ) {
3782
+ $query[] = "LIMIT {$terms_limit}";
3783
+ }
3784
+
3785
+ /*
3786
+ * $final_clauses, if present, require an SQL subquery
3787
+ */
3788
+ $final_clauses = array();
3789
+ if ( 'count' != $orderby || 'DESC' != $order ) {
3790
+ $final_clauses[] = $clauses['orderby'];
3791
+ $final_clauses[] = $clauses['order'];
3792
+ }
3793
+
3794
+ if ( '' !== $clauses['limits'] ) {
3795
+ $final_clauses[] = $clauses['limits'];
3796
  }
3797
 
3798
  /*
3800
  */
3801
  if ( ! $no_count && ( 0 < $offset || 0 < $limit ) ) {
3802
  $count_query = 'SELECT COUNT(*) as count FROM (' . join(' ', $query) . ' ) as subQuery';
3803
+ $count = $wpdb->get_results( $count_query );
3804
  $found_rows = $count[0]->count;
3805
  }
3806
 
3807
+ if ( ! empty( $final_clauses ) ) {
3808
  if ( ! $no_count ) {
3809
  array_unshift($query, 'SELECT * FROM (');
3810
  $query[] = ') AS subQuery';
3811
  }
3812
 
3813
+ $query = array_merge( $query, $final_clauses );
3814
  }
3815
 
3816
  $query = join(' ', $query);
3817
+ $tags = $wpdb->get_results( $query );
 
3818
  if ( ! isset( $found_rows ) ) {
3819
  $found_rows = $wpdb->num_rows;
3820
  }
includes/mla-force-download.php DELETED
@@ -1,46 +0,0 @@
1
- <?php
2
- /**
3
- * Provides Ajax support for downloading a file to the client
4
- *
5
- * @package Media Library Assistant
6
- * @since 1.95
7
- */
8
-
9
- if ( isset( $_REQUEST['mla_download_file'] ) && isset( $_REQUEST['mla_download_type'] ) ) {
10
- if( ini_get( 'zlib.output_compression' ) ) {
11
- ini_set( 'zlib.output_compression', 'Off' );
12
- }
13
-
14
- $file_name = $_REQUEST['mla_download_file'];
15
- $pathinfo = pathinfo( $file_name );
16
-
17
- header('Pragma: public'); // required
18
- header('Expires: 0'); // no cache
19
- header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
20
- header('Last-Modified: '.gmdate ('D, d M Y H:i:s', filemtime ($file_name)).' GMT');
21
- header('Cache-Control: private',false);
22
- header('Content-Type: '.$_REQUEST['mla_download_type']);
23
- header('Content-Disposition: attachment; filename="'.basename($file_name).'"');
24
- header('Content-Transfer-Encoding: binary');
25
- header('Content-Length: '.filesize($file_name)); // provide file size
26
- header('Connection: close');
27
-
28
- readfile( $_REQUEST['mla_download_file'] );
29
- exit();
30
- } else {
31
- $message = 'ERROR: download argument(s) not set.';
32
- }
33
-
34
- echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
35
- echo '<html xmlns="http://www.w3.org/1999/xhtml">';
36
- echo '<head>';
37
- echo '<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
38
- echo '<title>Download Error</title>';
39
- echo '</head>';
40
- echo '';
41
- echo '<body>';
42
- echo $message;
43
- echo '</body>';
44
- echo '</html> ';
45
- exit();
46
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/mla-plugin-loader.php CHANGED
@@ -44,7 +44,7 @@ function mla_plugin_loader_reporting_action () {
44
  require_once( MLA_PLUGIN_PATH . 'tests/class-mla-tests.php' );
45
 
46
  $mla_plugin_loader_error_messages .= MLATest::min_php_version( '5.2' );
47
- $mla_plugin_loader_error_messages .= MLATest::min_WordPress_version( '3.3' );
48
 
49
  if ( ! empty( $mla_plugin_loader_error_messages ) ) {
50
  add_action( 'admin_notices', 'mla_plugin_loader_reporting_action' );
44
  require_once( MLA_PLUGIN_PATH . 'tests/class-mla-tests.php' );
45
 
46
  $mla_plugin_loader_error_messages .= MLATest::min_php_version( '5.2' );
47
+ $mla_plugin_loader_error_messages .= MLATest::min_WordPress_version( '3.5.0' );
48
 
49
  if ( ! empty( $mla_plugin_loader_error_messages ) ) {
50
  add_action( 'admin_notices', 'mla_plugin_loader_reporting_action' );
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.95
10
  */
11
 
12
  /*
@@ -16,7 +16,7 @@ Description: Enhances the Media Library; powerful [mla_gallery], taxonomy suppor
16
  Author: David Lingren, Fair Trade Judaica
17
  Text Domain: media-library-assistant
18
  Domain Path: /languages
19
- Version: 1.95
20
  Author URI: http://fairtradejudaica.org/our-story/staff/
21
 
22
  Copyright 2011-2014 David Lingren
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
+ * @version 2.00
10
  */
11
 
12
  /*
16
  Author: David Lingren, Fair Trade Judaica
17
  Text Domain: media-library-assistant
18
  Domain Path: /languages
19
+ Version: 2.00
20
  Author URI: http://fairtradejudaica.org/our-story/staff/
21
 
22
  Copyright 2011-2014 David Lingren
js/mla-inline-edit-scripts.js CHANGED
@@ -5,9 +5,18 @@ var jQuery,
5
  mla = {
6
  // Properties
7
  settings: {},
 
 
 
 
8
 
9
  // Utility functions
10
  utility: {
 
 
 
 
 
11
  },
12
 
13
  // Components
@@ -25,7 +34,7 @@ var jQuery,
25
  // The inlineEditAttachment functions are adapted from wp-admin/js/inline-edit-post.js
26
  mla.inlineEditAttachment = {
27
  init : function(){
28
- var t = this, qeRow = $( '#inline-edit' ), bulkRow = $( '#bulk-edit' );
29
 
30
  t.type = 'attachment';
31
  t.what = '#attachment-';
@@ -39,6 +48,10 @@ var jQuery,
39
  if (e.which == 27)
40
  return mla.inlineEditAttachment.revert();
41
  });
 
 
 
 
42
 
43
  $('#inline-edit-post-set-parent', qeRow).on( 'click', function(){
44
  return mla.inlineEditAttachment.inlineParentOpen(this);
@@ -47,11 +60,11 @@ var jQuery,
47
  return mla.inlineEditAttachment.revert();
48
  });
49
  $('a.save', qeRow).click(function(){
50
- return mla.inlineEditAttachment.save(this);
51
  });
52
  $('td', qeRow).keydown(function(e){
53
  if ( e.which == 13 )
54
- return mla.inlineEditAttachment.save(this);
55
  });
56
 
57
  $('#bulk-edit-set-parent', bulkRow).on( 'click', function(){
@@ -60,10 +73,28 @@ var jQuery,
60
  $('a.cancel', bulkRow).click(function(){
61
  return mla.inlineEditAttachment.revert();
62
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
 
64
  // add event to the Quick Edit links
65
  $( '#the-list' ).on( 'click', 'a.editinline', function(){
66
- mla.inlineEditAttachment.edit(this);
67
  return false;
68
  });
69
 
@@ -83,7 +114,7 @@ var jQuery,
83
 
84
  if ( $('select[name="'+n+'"]').val() == 'edit' ) {
85
  e.preventDefault();
86
- t.setBulk();
87
  } else if ( $('form#posts-filter tr.inline-editor').length > 0 ) {
88
  t.revert();
89
  }
@@ -96,17 +127,17 @@ var jQuery,
96
  });
97
  },
98
 
99
- toggle : function(el){
100
  var t = this;
101
 
102
- if ( 'none' == $( t.what + t.getId( el ) ).css('display') ) {
103
  t.revert();
104
  } else {
105
  t.edit( el );
106
  }
107
- },
108
 
109
- setBulk : function(){
110
  var te = '', c = true;
111
  this.revert();
112
 
@@ -144,12 +175,198 @@ var jQuery,
144
  $('html, body').animate( { scrollTop: 0 }, 'fast' );
145
  },
146
 
147
- edit : function(id) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
148
  var t = this, fields, editRow, rowData, fIndex;
149
  t.revert();
150
 
151
  if ( typeof(id) == 'object' )
152
- id = t.getId(id);
153
 
154
  fields = mla.settings.fields;
155
 
@@ -212,11 +429,11 @@ var jQuery,
212
  return false;
213
  },
214
 
215
- save : function( id ) {
216
  var params, fields, page = $('.post_status_page').val() || '';
217
 
218
  if ( typeof(id) == 'object' )
219
- id = this.getId(id);
220
 
221
  $('table.widefat .inline-edit-save .spinner').show();
222
 
@@ -258,7 +475,7 @@ var jQuery,
258
  var parentId, postId, postTitle;
259
 
260
  if ( typeof( id ) == 'object' ) {
261
- postId = this.getId( id );
262
  parentId = $( '#edit-' + postId + ' :input[name="post_parent"]' ).val() || '';
263
  postTitle = $( '#edit-' + postId + ' :input[name="post_title"]' ).val() || '';
264
  mla.setParent.open( parentId, postId, postTitle );
@@ -383,19 +600,19 @@ var jQuery,
383
  $('#bulk-titles').html('');
384
  $('#inlineedit').append( $('#bulk-edit') );
385
  } else {
386
- $('#'+id).remove();
387
- id = id.substr( id.lastIndexOf('-') + 1 );
388
- $(this.what+id).show();
 
 
 
 
 
 
389
  }
390
  }
391
 
392
  return false;
393
- },
394
-
395
- getId : function(o) {
396
- var id = $(o).closest('tr').attr('id'),
397
- parts = id.split('-');
398
- return parts[parts.length - 1];
399
  }
400
  }; // mla.inlineEditAttachment
401
 
5
  mla = {
6
  // Properties
7
  settings: {},
8
+ bulkEdit: {
9
+ inProcess: false,
10
+ doCancel: false
11
+ },
12
 
13
  // Utility functions
14
  utility: {
15
+ getId : function( o ) {
16
+ var id = jQuery( o ).closest( 'tr' ).attr( 'id' ),
17
+ parts = id.split( '-' );
18
+ return parts[ parts.length - 1 ];
19
+ }
20
  },
21
 
22
  // Components
34
  // The inlineEditAttachment functions are adapted from wp-admin/js/inline-edit-post.js
35
  mla.inlineEditAttachment = {
36
  init : function(){
37
+ var t = this, qeRow = $( '#inline-edit' ), bulkRow = $( '#bulk-edit' ), progressRow = $( '#bulk-progress' );
38
 
39
  t.type = 'attachment';
40
  t.what = '#attachment-';
48
  if (e.which == 27)
49
  return mla.inlineEditAttachment.revert();
50
  });
51
+ progressRow.keyup(function(e){
52
+ if (e.which == 27)
53
+ return mla.inlineEditAttachment.revert();
54
+ });
55
 
56
  $('#inline-edit-post-set-parent', qeRow).on( 'click', function(){
57
  return mla.inlineEditAttachment.inlineParentOpen(this);
60
  return mla.inlineEditAttachment.revert();
61
  });
62
  $('a.save', qeRow).click(function(){
63
+ return mla.inlineEditAttachment.quickSave(this);
64
  });
65
  $('td', qeRow).keydown(function(e){
66
  if ( e.which == 13 )
67
+ return mla.inlineEditAttachment.quickSave(this);
68
  });
69
 
70
  $('#bulk-edit-set-parent', bulkRow).on( 'click', function(){
73
  $('a.cancel', bulkRow).click(function(){
74
  return mla.inlineEditAttachment.revert();
75
  });
76
+ $('input[type="submit"]', bulkRow).click(function(e){
77
+ e.preventDefault();
78
+ return mla.inlineEditAttachment.bulkSave(e);
79
+ });
80
+
81
+ $('a.cancel', progressRow).click(function(){
82
+ if ( mla.bulkEdit.inProcess ) {
83
+ mla.bulkEdit.doCancel = true;
84
+ return false;
85
+ } else {
86
+ return mla.inlineEditAttachment.revert();
87
+ }
88
+ });
89
+ // Clicking "Refresh" submits the form, refreshing the page
90
+ $('#bulk_refresh', progressRow).click(function(){
91
+ $( '#bulk-progress a' ).prop( 'disabled', true );
92
+ $( '#bulk-progress' ).css( 'opacity', '0.5' );
93
+ });
94
 
95
  // add event to the Quick Edit links
96
  $( '#the-list' ).on( 'click', 'a.editinline', function(){
97
+ mla.inlineEditAttachment.quickEdit(this);
98
  return false;
99
  });
100
 
114
 
115
  if ( $('select[name="'+n+'"]').val() == 'edit' ) {
116
  e.preventDefault();
117
+ t.bulkEdit();
118
  } else if ( $('form#posts-filter tr.inline-editor').length > 0 ) {
119
  t.revert();
120
  }
127
  });
128
  },
129
 
130
+ /* toggle : function(el){
131
  var t = this;
132
 
133
+ if ( 'none' == $( t.what + mla.utility.getId( el ) ).css('display') ) {
134
  t.revert();
135
  } else {
136
  t.edit( el );
137
  }
138
+ }, // */
139
 
140
+ bulkEdit : function(){
141
  var te = '', c = true;
142
  this.revert();
143
 
175
  $('html, body').animate( { scrollTop: 0 }, 'fast' );
176
  },
177
 
178
+ bulkSave : function(e) {
179
+ var ids;
180
+
181
+ mla.bulkEdit = {
182
+ inProcess: false,
183
+ doCancel: false,
184
+ chunkSize: 0,
185
+ targetName: '',
186
+ fields: '',
187
+ ids: [],
188
+ idsCount: 0,
189
+ offset: 0,
190
+ waiting: 0,
191
+ running: 0,
192
+ complete: 0,
193
+ unchanged:0,
194
+ success: 0,
195
+ failure: 0
196
+ };
197
+
198
+ //mla.bulkEdit.ids = []; // clone doesn't do this.
199
+ mla.bulkEdit.chunkSize = +mla.settings.bulkChunkSize;
200
+ mla.bulkEdit.targetName = e.target.name;
201
+ mla.bulkEdit.fields = $('#bulk-edit :input').serialize();
202
+ ids = $('tbody th.check-column input[type="checkbox"]').serializeArray();
203
+ $.each( ids, function( index, id ) {
204
+ mla.bulkEdit.ids[ index ] = +id.value;
205
+ });
206
+ mla.bulkEdit.idsCount = mla.bulkEdit.waiting = mla.bulkEdit.ids.length;
207
+ //console.log( JSON.stringify( mla.bulkEdit ) );
208
+
209
+ mla.inlineEditAttachment.bulkProgressOpen();
210
+ mla.inlineEditAttachment.bulkPost();
211
+ return false;
212
+ },
213
+
214
+ bulkProgressOpen : function(){
215
+ var te = '', c = true;
216
+ this.revert();
217
+
218
+ $('#bulk-progress td').attr('colspan', $('.widefat:first thead th:visible').length);
219
+ $('table.widefat tbody').prepend( $('#bulk-progress') );
220
+ $('#bulk-progress').addClass('inline-editor').show();
221
+ $('#cb-select-all-1' ).removeAttr( 'checked' );
222
+ $('#cb-select-all-2' ).removeAttr( 'checked' );
223
+
224
+ $('tbody th.check-column input[type="checkbox"]').each(function(){
225
+ if ( $(this).prop('checked') ) {
226
+ c = false;
227
+ var id = $(this).val(), theTitle;
228
+ theTitle = $('#inline_'+id+' .post_title').text() || mla.settings.noTitle;
229
+ te += '<div id="ttle'+id+'"><a id="_'+id+'" class="ntdelbutton" title="'+mla.settings.ntdelTitle+'">X</a>'+theTitle+'</div>';
230
+ }
231
+ });
232
+
233
+ if ( c )
234
+ return this.revert();
235
+
236
+ $('#bulk-progress-running').html('');
237
+ $('#bulk-progress-complete').html('');
238
+ $('#bulk-progress-waiting').html(te);
239
+ $('#bulk-progress-waiting a').click(function(){
240
+ var id = $(this).attr('id').substr(1);
241
+
242
+ $('table.widefat input[value="' + id + '"]').prop('checked', false);
243
+ $('#ttle'+id).remove();
244
+ });
245
+
246
+ // Disable "Refresh" until the bulk updates are complete
247
+ $( '#bulk-progress .inline-edit-save .error' ).html( '' );;
248
+ $( '#bulk_refresh' ).prop( 'disabled', true ).css( 'opacity', '0.5' );
249
+ $('html, body').animate( { scrollTop: 0 }, 'fast' );
250
+ },
251
+
252
+ bulkPost : function() {
253
+ var params, chunk, cIndex, item, statusMessage,
254
+ spinner = $('table.widefat .inline-edit-save .spinner'),
255
+ results = $( '#bulk-progress .inline-edit-save .error' ),
256
+ waiting = $( '#bulk-progress-waiting' ),
257
+ running = $( '#bulk-progress-running' );
258
+
259
+ // Find the items to process
260
+ chunk = mla.bulkEdit.ids.slice( mla.bulkEdit.offset, mla.bulkEdit.offset + mla.bulkEdit.chunkSize );
261
+ mla.bulkEdit.offset += mla.bulkEdit.chunkSize;
262
+
263
+ // Move them from waiting to running
264
+ for ( cIndex = 0; cIndex < chunk.length; cIndex++ ) {
265
+ item = $( '#ttle' + chunk[ cIndex ], waiting ).remove()
266
+ $( 'a', item ).hide();
267
+ running.append( item );
268
+ }
269
+ mla.bulkEdit.waiting -= chunk.length;
270
+ mla.bulkEdit.running = chunk.length;
271
+
272
+ params = {
273
+ action: mla.settings.ajax_action,
274
+ nonce: mla.settings.ajax_nonce,
275
+ bulk_action: mla.bulkEdit.targetName,
276
+ cb_attachment: chunk
277
+ };
278
+
279
+ params = $.param( params ) + '&' + mla.bulkEdit.fields;
280
+ //console.log( params );
281
+
282
+ // make ajax request
283
+ mla.bulkEdit.inProcess = true;
284
+ spinner.show();
285
+ statusMessage = mla.settings.bulkWaiting + ': ' + mla.bulkEdit.waiting
286
+ + ', ' + mla.settings.bulkComplete + ': ' + mla.bulkEdit.complete
287
+ + ', ' + mla.settings.bulkUnchanged + ': ' + mla.bulkEdit.unchanged
288
+ + ', ' + mla.settings.bulkSuccess + ': ' + mla.bulkEdit.success
289
+ + ', ' + mla.settings.bulkFailure + ': ' + mla.bulkEdit.failure;
290
+ results.html( statusMessage ).show();
291
+
292
+ $.ajax( ajaxurl, {
293
+ type: 'POST',
294
+ data: params,
295
+ dataType: 'json'
296
+ }).always( function() {
297
+ spinner.hide();
298
+ }).done( function( response, status ) {
299
+ var responseData = 'no response.data', responseMessage, items;
300
+
301
+ spinner.hide();
302
+ if ( response ) {
303
+ if ( ! response.success ) {
304
+ if ( response.responseData ) {
305
+ responseData = response.data;
306
+ }
307
+
308
+ results.html( JSON.stringify( response ) ).show();
309
+ mla.bulkEdit.offset = mla.bulkEdit.idsCount; // Stop
310
+ } else {
311
+ // Move the items from Running to Complete
312
+ items = $( '#bulk-progress-running div' ).remove();
313
+ $.each( items, function() {
314
+ var result, title = $( this ).html(),
315
+ id = $( this ).attr('id').substr( 4 );
316
+
317
+ if ( 'string' === typeof( response.data.item_results[ id ]['result'] ) ) {
318
+ result = response.data.item_results[ id ]['result'];
319
+ $( this ).html( title + ' (' + id + ') - ' + result );
320
+ }
321
+
322
+ $( '#attachment-' + id ).remove();
323
+ });
324
+
325
+ $( '#bulk-progress-complete' ).append( items );
326
+ mla.bulkEdit.complete += mla.bulkEdit.running;
327
+ mla.bulkEdit.running = 0;
328
+ mla.bulkEdit.unchanged += response.data.unchanged;
329
+ mla.bulkEdit.success += response.data.success;
330
+ mla.bulkEdit.failure += response.data.failure;
331
+
332
+ responseMessage = mla.settings.bulkWaiting + ': ' + mla.bulkEdit.waiting
333
+ + ', ' + mla.settings.bulkComplete + ': ' + mla.bulkEdit.complete
334
+ + ', ' + mla.settings.bulkUnchanged + ': ' + mla.bulkEdit.unchanged
335
+ + ', ' + mla.settings.bulkSuccess + ': ' + mla.bulkEdit.success
336
+ + ', ' + mla.settings.bulkFailure + ': ' + mla.bulkEdit.failure;
337
+ results.html( responseMessage ).show();
338
+ }
339
+ } else {
340
+ results.html( mla.settings.error ).show();
341
+ mla.bulkEdit.offset = mla.bulkEdit.idsCount; // Stop
342
+ }
343
+
344
+ if ( mla.bulkEdit.doCancel ) {
345
+ results.html( mla.settings.bulkCanceled + '. ' + responseMessage ).show();
346
+ } else {
347
+ if ( mla.bulkEdit.offset < mla.bulkEdit.idsCount ) {
348
+ mla.inlineEditAttachment.bulkPost();
349
+ return;
350
+ }
351
+ }
352
+
353
+ $( '#bulk_refresh' ).prop( 'disabled', false ).css( 'opacity', '1.0' );
354
+ mla.bulkEdit.inProcess = false;
355
+ }).fail( function( jqXHR, status ) {
356
+ if ( 200 == jqXHR.status ) {
357
+ results.text( '(' + status + ') ' + jqXHR.responseText );
358
+ } else {
359
+ results.text( mla.settings.ajaxFailError + ' (' + status + '), jqXHR( ' + jqXHR.status + ', ' + jqXHR.statusText + ', ' + jqXHR.responseText + ')' );
360
+ }
361
+ });
362
+ },
363
+
364
+ quickEdit : function(id) {
365
  var t = this, fields, editRow, rowData, fIndex;
366
  t.revert();
367
 
368
  if ( typeof(id) == 'object' )
369
+ id = mla.utility.getId(id);
370
 
371
  fields = mla.settings.fields;
372
 
429
  return false;
430
  },
431
 
432
+ quickSave : function( id ) {
433
  var params, fields, page = $('.post_status_page').val() || '';
434
 
435
  if ( typeof(id) == 'object' )
436
+ id = mla.utility.getId(id);
437
 
438
  $('table.widefat .inline-edit-save .spinner').show();
439
 
475
  var parentId, postId, postTitle;
476
 
477
  if ( typeof( id ) == 'object' ) {
478
+ postId = mla.utility.getId( id );
479
  parentId = $( '#edit-' + postId + ' :input[name="post_parent"]' ).val() || '';
480
  postTitle = $( '#edit-' + postId + ' :input[name="post_title"]' ).val() || '';
481
  mla.setParent.open( parentId, postId, postTitle );
600
  $('#bulk-titles').html('');
601
  $('#inlineedit').append( $('#bulk-edit') );
602
  } else {
603
+ if ( 'bulk-progress' == id ) {
604
+ $('table.widefat #bulk-progress').removeClass('inline-editor').hide();
605
+ $('#bulk-progress-waiting').html('');
606
+ $('#inlineedit').append( $('#bulk-progress') );
607
+ } else {
608
+ $('#'+id).remove();
609
+ id = id.substr( id.lastIndexOf('-') + 1 );
610
+ $(this.what+id).show();
611
+ }
612
  }
613
  }
614
 
615
  return false;
 
 
 
 
 
 
616
  }
617
  }; // mla.inlineEditAttachment
618
 
js/mla-inline-edit-scripts.min.js CHANGED
@@ -1 +1 @@
1
- var jQuery,mla_inline_edit_vars,mla={settings:{},utility:{},setParent:null,inlineEditAttachment:null};(function(a){mla.settings=typeof mla_inline_edit_vars==="undefined"?{}:mla_inline_edit_vars;mla_inline_edit_vars=void 0;mla.inlineEditAttachment={init:function(){var c=this,d=a("#inline-edit"),b=a("#bulk-edit");c.type="attachment";c.what="#attachment-";d.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});b.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});a("#inline-edit-post-set-parent",d).on("click",function(){return mla.inlineEditAttachment.inlineParentOpen(this)});a("a.cancel",d).click(function(){return mla.inlineEditAttachment.revert()});a("a.save",d).click(function(){return mla.inlineEditAttachment.save(this)});a("td",d).keydown(function(f){if(f.which==13){return mla.inlineEditAttachment.save(this)}});a("#bulk-edit-set-parent",b).on("click",function(){return mla.inlineEditAttachment.bulkParentOpen()});a("a.cancel",b).click(function(){return mla.inlineEditAttachment.revert()});a("#the-list").on("click","a.editinline",function(){mla.inlineEditAttachment.edit(this);return false});a("span.catshow").click(function(){a(this).hide().next().show().parent().next().addClass("cat-hover")});a("span.cathide").click(function(){a(this).hide().prev().show().parent().next().removeClass("cat-hover")});a('select[name="_status"] option[value="future"]',b).remove();a("#doaction, #doaction2").click(function(f){var g=a(this).attr("id").substr(2);if(a('select[name="'+g+'"]').val()=="edit"){f.preventDefault();c.setBulk()}else{if(a("form#posts-filter tr.inline-editor").length>0){c.revert()}}});a("#post-query-submit").mousedown(function(){c.revert();a('select[name^="action"]').val("-1")})},toggle:function(c){var b=this;if("none"==a(b.what+b.getId(c)).css("display")){b.revert()}else{b.edit(c)}},setBulk:function(){var b="",d=true;this.revert();a("#bulk-edit td").attr("colspan",a(".widefat:first thead th:visible").length);a("table.widefat tbody").prepend(a("#bulk-edit"));a("#bulk-edit").addClass("inline-editor").show();a('tbody th.check-column input[type="checkbox"]').each(function(){if(a(this).prop("checked")){d=false;var e=a(this).val(),c;c=a("#inline_"+e+" .post_title").text()||mla.settings.noTitle;b+='<div id="ttle'+e+'"><a id="_'+e+'" class="ntdelbutton" title="'+mla.settings.ntdelTitle+'">X</a>'+c+"</div>"}});if(d){return this.revert()}a("#bulk-titles").html(b);a("#bulk-titles a").click(function(){var c=a(this).attr("id").substr(1);a('table.widefat input[value="'+c+'"]').prop("checked",false);a("#ttle"+c).remove()});a("textarea.mla_tags").each(function(){var c=a(this).attr("name").replace("]","").replace("tax_input[","");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+c,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});a("html, body").animate({scrollTop:0},"fast")},edit:function(g){var d=this,b,c,e,f;d.revert();if(typeof(g)=="object"){g=d.getId(g)}b=mla.settings.fields;c=a("#inline-edit").clone(true);a("td",c).attr("colspan",a(".widefat:first thead th:visible").length);if(a(d.what+g).hasClass("alternate")){a(c).addClass("alternate")}a(d.what+g).hide().after(c);e=a("#inline_"+g);if(!a(':input[name="post_author"] option[value="'+a(".post_author",e).text()+'"]',c).val()){a(':input[name="post_author"]',c).prepend('<option value="'+a(".post_author",e).text()+'">'+a("#"+d.type+"-"+g+" .author").text()+"</option>")}if(a(':input[name="post_author"] option',c).length==1){a("label.inline-edit-author",c).hide()}for(f=0;f<b.length;f++){a(':input[name="'+b[f]+'"]',c).val(a("."+b[f],e).text())}if(a(".image_alt",e).length===0){a("label.inline-edit-image-alt",c).hide()}a(".mla_category",e).each(function(){var h=a(this).text(),i;if(h){i=a(this).attr("id").replace("_"+g,"");a("ul."+i+"-checklist :checkbox",c).val(h.split(","))}});a(".mla_tags",e).each(function(){var j=a(this).text(),k=a(this).attr("id").replace("_"+g,""),i=a("textarea.tax_input_"+k,c),h=mla.settings.comma;if(j){if(","!==h){j=j.replace(/,/g,h)}i.val(j)}i.suggest(ajaxurl+"?action=ajax-tag-search&tax="+k,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});a(c).attr("id","edit-"+g).addClass("inline-editor").show();a(".ptitle",c).focus();return false},save:function(e){var d,b,c=a(".post_status_page").val()||"";if(typeof(e)=="object"){e=this.getId(e)}a("table.widefat .inline-edit-save .spinner").show();d={action:mla.settings.ajax_action,nonce:mla.settings.ajax_nonce,post_type:"attachment",post_ID:e,edit_date:"true",post_status:c};b=a("#edit-"+e+" :input").serialize();d=b+"&"+a.param(d);a.post(ajaxurl,d,function(f){a("table.widefat .inline-edit-save .spinner").hide();if(f){if(-1!=f.indexOf("<tr")){a(mla.inlineEditAttachment.what+e).remove();a("#edit-"+e).before(f).remove();a(mla.inlineEditAttachment.what+e).hide().fadeIn()}else{f=f.replace(/<.[^<>]*?>/g,"");a("#edit-"+e+" .inline-edit-save .error").html(f).show()}}else{a("#edit-"+e+" .inline-edit-save .error").html(mla.settings.error).show()}},"html");return false},inlineParentOpen:function(e){var d,b,c;if(typeof(e)=="object"){b=this.getId(e);d=a("#edit-"+b+' :input[name="post_parent"]').val()||"";c=a("#edit-"+b+' :input[name="post_title"]').val()||"";mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(f){f.preventDefault();mla.inlineEditAttachment.inlineParentSave(b);return false})}},inlineParentSave:function(b){var f=a("#mla-set-parent-response-div input:checked").closest("tr"),h,e,c=a("#edit-"+b),d,g;if(f.length){h=a(":radio",f).val()||"";e=a("label",f).html()||"";d=a(':input[name="post_parent"]',c).clone(true).val(h);g=a(':input[name="post_parent_title"]',c).clone(true).val(e);a(':input[name="post_parent"]',c).replaceWith(d);a(':input[name="post_parent_title"]',c).replaceWith(g)}mla.setParent.close();a("#mla-set-parent-submit").off("click")},bulkParentOpen:function(){var d,b,c;b=-1;c=mla.settings.bulkTitle;d=a('#bulk-edit :input[name="post_parent"]').val()||-1;mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.inlineEditAttachment.bulkParentSave();return false})},bulkParentSave:function(){var c=a("#mla-set-parent-response-div input:checked").closest("tr"),d,b;if(c.length){d=a(":radio",c).val()||"";b=a('#bulk-edit :input[name="post_parent"]').clone(true).val(d);a('#bulk-edit :input[name="post_parent"]').replaceWith(b)}mla.setParent.close();a("#mla-set-parent-submit").off("click")},tableParentOpen:function(d,b,c){mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.inlineEditAttachment.tableParentSave(b);return false})},tableParentSave:function(b){var d=a("#mla-set-parent-response-div input:checked").closest("tr"),f=a(":radio",d).val()||"-1",c,e=a("#attachment-"+b+" td.attached_to").clone(true);if(d.length&&(f>=0)){e=a("#attachment-"+b+" td.attached_to").clone(true);e.html('<span class="spinner"></span>');a("#attachment-"+b+" td.attached_to").replaceWith(e);a("#attachment-"+b+" td.attached_to .spinner").show();c=a.param({action:mla.settings.ajax_action+"-set-parent",nonce:mla.settings.ajax_nonce,post_ID:b,post_parent:f,});a.post(ajaxurl,c,function(g){if(g){if(-1==g.indexOf("tableParentOpen(")){g=g.replace(/<.[^<>]*?>/g,"")}}else{g=mla.settings.ajaxFailError}a("#attachment-"+b).before(g).remove();a("#attachment-"+b).hide().fadeIn()},"html")}else{e.html(mla.settings.error);a("#attachment-"+b+" td.attached_to").replaceWith(e)}a("#mla-set-parent-submit").off("click");mla.setParent.close()},revert:function(){var b=a("table.widefat tr.inline-editor").attr("id");if(b){a("table.widefat .inline-edit-save .spinner").hide();if("bulk-edit"==b){a("table.widefat #bulk-edit").removeClass("inline-editor").hide();a("#bulk-titles").html("");a("#inlineedit").append(a("#bulk-edit"))}else{a("#"+b).remove();b=b.substr(b.lastIndexOf("-")+1);a(this.what+b).show()}}return false},getId:function(c){var d=a(c).closest("tr").attr("id"),b=d.split("-");return b[b.length-1]}};a(document).ready(function(){mla.inlineEditAttachment.init()})})(jQuery);
1
+ var jQuery,mla_inline_edit_vars,mla={settings:{},bulkEdit:{inProcess:false,doCancel:false},utility:{getId:function(b){var c=jQuery(b).closest("tr").attr("id"),a=c.split("-");return a[a.length-1]}},setParent:null,inlineEditAttachment:null};(function(a){mla.settings=typeof mla_inline_edit_vars==="undefined"?{}:mla_inline_edit_vars;mla_inline_edit_vars=void 0;mla.inlineEditAttachment={init:function(){var d=this,e=a("#inline-edit"),c=a("#bulk-edit"),b=a("#bulk-progress");d.type="attachment";d.what="#attachment-";e.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});c.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});b.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});a("#inline-edit-post-set-parent",e).on("click",function(){return mla.inlineEditAttachment.inlineParentOpen(this)});a("a.cancel",e).click(function(){return mla.inlineEditAttachment.revert()});a("a.save",e).click(function(){return mla.inlineEditAttachment.quickSave(this)});a("td",e).keydown(function(f){if(f.which==13){return mla.inlineEditAttachment.quickSave(this)}});a("#bulk-edit-set-parent",c).on("click",function(){return mla.inlineEditAttachment.bulkParentOpen()});a("a.cancel",c).click(function(){return mla.inlineEditAttachment.revert()});a('input[type="submit"]',c).click(function(f){f.preventDefault();return mla.inlineEditAttachment.bulkSave(f)});a("a.cancel",b).click(function(){if(mla.bulkEdit.inProcess){mla.bulkEdit.doCancel=true;return false}else{return mla.inlineEditAttachment.revert()}});a("#bulk_refresh",b).click(function(){a("#bulk-progress a").prop("disabled",true);a("#bulk-progress").css("opacity","0.5")});a("#the-list").on("click","a.editinline",function(){mla.inlineEditAttachment.quickEdit(this);return false});a("span.catshow").click(function(){a(this).hide().next().show().parent().next().addClass("cat-hover")});a("span.cathide").click(function(){a(this).hide().prev().show().parent().next().removeClass("cat-hover")});a('select[name="_status"] option[value="future"]',c).remove();a("#doaction, #doaction2").click(function(f){var g=a(this).attr("id").substr(2);if(a('select[name="'+g+'"]').val()=="edit"){f.preventDefault();d.bulkEdit()}else{if(a("form#posts-filter tr.inline-editor").length>0){d.revert()}}});a("#post-query-submit").mousedown(function(){d.revert();a('select[name^="action"]').val("-1")})},bulkEdit:function(){var b="",d=true;this.revert();a("#bulk-edit td").attr("colspan",a(".widefat:first thead th:visible").length);a("table.widefat tbody").prepend(a("#bulk-edit"));a("#bulk-edit").addClass("inline-editor").show();a('tbody th.check-column input[type="checkbox"]').each(function(){if(a(this).prop("checked")){d=false;var e=a(this).val(),c;c=a("#inline_"+e+" .post_title").text()||mla.settings.noTitle;b+='<div id="ttle'+e+'"><a id="_'+e+'" class="ntdelbutton" title="'+mla.settings.ntdelTitle+'">X</a>'+c+"</div>"}});if(d){return this.revert()}a("#bulk-titles").html(b);a("#bulk-titles a").click(function(){var c=a(this).attr("id").substr(1);a('table.widefat input[value="'+c+'"]').prop("checked",false);a("#ttle"+c).remove()});a("textarea.mla_tags").each(function(){var c=a(this).attr("name").replace("]","").replace("tax_input[","");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+c,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});a("html, body").animate({scrollTop:0},"fast")},bulkSave:function(c){var b;mla.bulkEdit={inProcess:false,doCancel:false,chunkSize:0,targetName:"",fields:"",ids:[],idsCount:0,offset:0,waiting:0,running:0,complete:0,unchanged:0,success:0,failure:0};mla.bulkEdit.chunkSize=+mla.settings.bulkChunkSize;mla.bulkEdit.targetName=c.target.name;mla.bulkEdit.fields=a("#bulk-edit :input").serialize();b=a('tbody th.check-column input[type="checkbox"]').serializeArray();a.each(b,function(d,e){mla.bulkEdit.ids[d]=+e.value});mla.bulkEdit.idsCount=mla.bulkEdit.waiting=mla.bulkEdit.ids.length;mla.inlineEditAttachment.bulkProgressOpen();mla.inlineEditAttachment.bulkPost();return false},bulkProgressOpen:function(){var b="",d=true;this.revert();a("#bulk-progress td").attr("colspan",a(".widefat:first thead th:visible").length);a("table.widefat tbody").prepend(a("#bulk-progress"));a("#bulk-progress").addClass("inline-editor").show();a("#cb-select-all-1").removeAttr("checked");a("#cb-select-all-2").removeAttr("checked");a('tbody th.check-column input[type="checkbox"]').each(function(){if(a(this).prop("checked")){d=false;var e=a(this).val(),c;c=a("#inline_"+e+" .post_title").text()||mla.settings.noTitle;b+='<div id="ttle'+e+'"><a id="_'+e+'" class="ntdelbutton" title="'+mla.settings.ntdelTitle+'">X</a>'+c+"</div>"}});if(d){return this.revert()}a("#bulk-progress-running").html("");a("#bulk-progress-complete").html("");a("#bulk-progress-waiting").html(b);a("#bulk-progress-waiting a").click(function(){var c=a(this).attr("id").substr(1);a('table.widefat input[value="'+c+'"]').prop("checked",false);a("#ttle"+c).remove()});a("#bulk-progress .inline-edit-save .error").html("");a("#bulk_refresh").prop("disabled",true).css("opacity","0.5");a("html, body").animate({scrollTop:0},"fast")},bulkPost:function(){var b,g,f,i,c,h=a("table.widefat .inline-edit-save .spinner"),d=a("#bulk-progress .inline-edit-save .error"),j=a("#bulk-progress-waiting"),e=a("#bulk-progress-running");g=mla.bulkEdit.ids.slice(mla.bulkEdit.offset,mla.bulkEdit.offset+mla.bulkEdit.chunkSize);mla.bulkEdit.offset+=mla.bulkEdit.chunkSize;for(f=0;f<g.length;f++){i=a("#ttle"+g[f],j).remove();a("a",i).hide();e.append(i)}mla.bulkEdit.waiting-=g.length;mla.bulkEdit.running=g.length;b={action:mla.settings.ajax_action,nonce:mla.settings.ajax_nonce,bulk_action:mla.bulkEdit.targetName,cb_attachment:g};b=a.param(b)+"&"+mla.bulkEdit.fields;mla.bulkEdit.inProcess=true;h.show();c=mla.settings.bulkWaiting+": "+mla.bulkEdit.waiting+", "+mla.settings.bulkComplete+": "+mla.bulkEdit.complete+", "+mla.settings.bulkUnchanged+": "+mla.bulkEdit.unchanged+", "+mla.settings.bulkSuccess+": "+mla.bulkEdit.success+", "+mla.settings.bulkFailure+": "+mla.bulkEdit.failure;d.html(c).show();a.ajax(ajaxurl,{type:"POST",data:b,dataType:"json"}).always(function(){h.hide()}).done(function(n,l){var o="no response.data",k,m;h.hide();if(n){if(!n.success){if(n.responseData){o=n.data}d.html(JSON.stringify(n)).show();mla.bulkEdit.offset=mla.bulkEdit.idsCount}else{m=a("#bulk-progress-running div").remove();a.each(m,function(){var p,q=a(this).html(),r=a(this).attr("id").substr(4);if("string"===typeof(n.data.item_results[r]["result"])){p=n.data.item_results[r]["result"];a(this).html(q+" ("+r+") - "+p)}a("#attachment-"+r).remove()});a("#bulk-progress-complete").append(m);mla.bulkEdit.complete+=mla.bulkEdit.running;mla.bulkEdit.running=0;mla.bulkEdit.unchanged+=n.data.unchanged;mla.bulkEdit.success+=n.data.success;mla.bulkEdit.failure+=n.data.failure;k=mla.settings.bulkWaiting+": "+mla.bulkEdit.waiting+", "+mla.settings.bulkComplete+": "+mla.bulkEdit.complete+", "+mla.settings.bulkUnchanged+": "+mla.bulkEdit.unchanged+", "+mla.settings.bulkSuccess+": "+mla.bulkEdit.success+", "+mla.settings.bulkFailure+": "+mla.bulkEdit.failure;d.html(k).show()}}else{d.html(mla.settings.error).show();mla.bulkEdit.offset=mla.bulkEdit.idsCount}if(mla.bulkEdit.doCancel){d.html(mla.settings.bulkCanceled+". "+k).show()}else{if(mla.bulkEdit.offset<mla.bulkEdit.idsCount){mla.inlineEditAttachment.bulkPost();return}}a("#bulk_refresh").prop("disabled",false).css("opacity","1.0");mla.bulkEdit.inProcess=false}).fail(function(l,k){if(200==l.status){d.text("("+k+") "+l.responseText)}else{d.text(mla.settings.ajaxFailError+" ("+k+"), jqXHR( "+l.status+", "+l.statusText+", "+l.responseText+")")}})},quickEdit:function(g){var d=this,b,c,e,f;d.revert();if(typeof(g)=="object"){g=mla.utility.getId(g)}b=mla.settings.fields;c=a("#inline-edit").clone(true);a("td",c).attr("colspan",a(".widefat:first thead th:visible").length);if(a(d.what+g).hasClass("alternate")){a(c).addClass("alternate")}a(d.what+g).hide().after(c);e=a("#inline_"+g);if(!a(':input[name="post_author"] option[value="'+a(".post_author",e).text()+'"]',c).val()){a(':input[name="post_author"]',c).prepend('<option value="'+a(".post_author",e).text()+'">'+a("#"+d.type+"-"+g+" .author").text()+"</option>")}if(a(':input[name="post_author"] option',c).length==1){a("label.inline-edit-author",c).hide()}for(f=0;f<b.length;f++){a(':input[name="'+b[f]+'"]',c).val(a("."+b[f],e).text())}if(a(".image_alt",e).length===0){a("label.inline-edit-image-alt",c).hide()}a(".mla_category",e).each(function(){var h=a(this).text(),i;if(h){i=a(this).attr("id").replace("_"+g,"");a("ul."+i+"-checklist :checkbox",c).val(h.split(","))}});a(".mla_tags",e).each(function(){var j=a(this).text(),k=a(this).attr("id").replace("_"+g,""),i=a("textarea.tax_input_"+k,c),h=mla.settings.comma;if(j){if(","!==h){j=j.replace(/,/g,h)}i.val(j)}i.suggest(ajaxurl+"?action=ajax-tag-search&tax="+k,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});a(c).attr("id","edit-"+g).addClass("inline-editor").show();a(".ptitle",c).focus();return false},quickSave:function(e){var d,b,c=a(".post_status_page").val()||"";if(typeof(e)=="object"){e=mla.utility.getId(e)}a("table.widefat .inline-edit-save .spinner").show();d={action:mla.settings.ajax_action,nonce:mla.settings.ajax_nonce,post_type:"attachment",post_ID:e,edit_date:"true",post_status:c};b=a("#edit-"+e+" :input").serialize();d=b+"&"+a.param(d);a.post(ajaxurl,d,function(f){a("table.widefat .inline-edit-save .spinner").hide();if(f){if(-1!=f.indexOf("<tr")){a(mla.inlineEditAttachment.what+e).remove();a("#edit-"+e).before(f).remove();a(mla.inlineEditAttachment.what+e).hide().fadeIn()}else{f=f.replace(/<.[^<>]*?>/g,"");a("#edit-"+e+" .inline-edit-save .error").html(f).show()}}else{a("#edit-"+e+" .inline-edit-save .error").html(mla.settings.error).show()}},"html");return false},inlineParentOpen:function(e){var d,b,c;if(typeof(e)=="object"){b=mla.utility.getId(e);d=a("#edit-"+b+' :input[name="post_parent"]').val()||"";c=a("#edit-"+b+' :input[name="post_title"]').val()||"";mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(f){f.preventDefault();mla.inlineEditAttachment.inlineParentSave(b);return false})}},inlineParentSave:function(b){var f=a("#mla-set-parent-response-div input:checked").closest("tr"),h,e,c=a("#edit-"+b),d,g;if(f.length){h=a(":radio",f).val()||"";e=a("label",f).html()||"";d=a(':input[name="post_parent"]',c).clone(true).val(h);g=a(':input[name="post_parent_title"]',c).clone(true).val(e);a(':input[name="post_parent"]',c).replaceWith(d);a(':input[name="post_parent_title"]',c).replaceWith(g)}mla.setParent.close();a("#mla-set-parent-submit").off("click")},bulkParentOpen:function(){var d,b,c;b=-1;c=mla.settings.bulkTitle;d=a('#bulk-edit :input[name="post_parent"]').val()||-1;mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.inlineEditAttachment.bulkParentSave();return false})},bulkParentSave:function(){var c=a("#mla-set-parent-response-div input:checked").closest("tr"),d,b;if(c.length){d=a(":radio",c).val()||"";b=a('#bulk-edit :input[name="post_parent"]').clone(true).val(d);a('#bulk-edit :input[name="post_parent"]').replaceWith(b)}mla.setParent.close();a("#mla-set-parent-submit").off("click")},tableParentOpen:function(d,b,c){mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.inlineEditAttachment.tableParentSave(b);return false})},tableParentSave:function(b){var d=a("#mla-set-parent-response-div input:checked").closest("tr"),f=a(":radio",d).val()||"-1",c,e=a("#attachment-"+b+" td.attached_to").clone(true);if(d.length&&(f>=0)){e=a("#attachment-"+b+" td.attached_to").clone(true);e.html('<span class="spinner"></span>');a("#attachment-"+b+" td.attached_to").replaceWith(e);a("#attachment-"+b+" td.attached_to .spinner").show();c=a.param({action:mla.settings.ajax_action+"-set-parent",nonce:mla.settings.ajax_nonce,post_ID:b,post_parent:f,});a.post(ajaxurl,c,function(g){if(g){if(-1==g.indexOf("tableParentOpen(")){g=g.replace(/<.[^<>]*?>/g,"")}}else{g=mla.settings.ajaxFailError}a("#attachment-"+b).before(g).remove();a("#attachment-"+b).hide().fadeIn()},"html")}else{e.html(mla.settings.error);a("#attachment-"+b+" td.attached_to").replaceWith(e)}a("#mla-set-parent-submit").off("click");mla.setParent.close()},revert:function(){var b=a("table.widefat tr.inline-editor").attr("id");if(b){a("table.widefat .inline-edit-save .spinner").hide();if("bulk-edit"==b){a("table.widefat #bulk-edit").removeClass("inline-editor").hide();a("#bulk-titles").html("");a("#inlineedit").append(a("#bulk-edit"))}else{if("bulk-progress"==b){a("table.widefat #bulk-progress").removeClass("inline-editor").hide();a("#bulk-progress-waiting").html("");a("#inlineedit").append(a("#bulk-progress"))}else{a("#"+b).remove();b=b.substr(b.lastIndexOf("-")+1);a(this.what+b).show()}}}return false}};a(document).ready(function(){mla.inlineEditAttachment.init()})})(jQuery);
js/mla-inline-mapping-scripts.js ADDED
@@ -0,0 +1,241 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* global ajaxurl */
2
+
3
+ var jQuery,
4
+ mla_inline_mapping_vars,
5
+ mla = {
6
+ // Properties
7
+ settings: {},
8
+ bulkMap: {
9
+ inProcess: false,
10
+ doCancel: false
11
+ },
12
+
13
+ // Utility functions
14
+ utility: {
15
+ },
16
+
17
+ // Components
18
+ inlineMapAttachment: null
19
+ };
20
+
21
+ ( function( $ ) {
22
+ /**
23
+ * Localized settings and strings
24
+ */
25
+ mla.settings = typeof mla_inline_mapping_vars === 'undefined' ? {} : mla_inline_mapping_vars;
26
+ mla_inline_mapping_vars = void 0; // delete won't work on Globals
27
+
28
+ mla.inlineMapAttachment = {
29
+ init : function(){
30
+ var progressDiv = $( '#mla-progress-div' );
31
+
32
+ $('#mla-progress-cancel', progressDiv).off( 'click' );
33
+ $('#mla-progress-cancel', progressDiv).click(function(){
34
+ if ( mla.bulkMap.inProcess ) {
35
+ mla.bulkMap.doCancel = true;
36
+ return false;
37
+ } else {
38
+ return mla.inlineMapAttachment.revert();
39
+ }
40
+ });
41
+
42
+ // Clicking "Refresh" submits the form, refreshing the page
43
+ $( '#mla-progress-refresh', progressDiv ).off( 'click' );
44
+ $( '#mla-progress-refresh', progressDiv ).click(function(){
45
+ $( '#mla-progress-refresh' ).prop( 'disabled', true );
46
+ $( '#mla-progress-refresh' ).css( 'opacity', '0.5' );
47
+ });
48
+
49
+ $('#mla-progress-close', progressDiv).off( 'click' );
50
+ $('#mla-progress-close', progressDiv).click(function( e ){
51
+ if ( mla.bulkMap.inProcess ) {
52
+ return false;
53
+ }
54
+
55
+ return mla.inlineMapAttachment.revert();
56
+ });
57
+
58
+ // add event handler to the Map All links
59
+ $( 'input[type="submit"].mla-mapping' ).click(function( e ){
60
+ e.preventDefault();
61
+ return mla.inlineMapAttachment.bulkMap( e );
62
+ return false;
63
+ });
64
+ },
65
+
66
+ bulkMap : function( e ) {
67
+ mla.bulkMap = {
68
+ inProcess: false,
69
+ doCancel: false,
70
+ chunkSize: +mla.settings.bulkChunkSize,
71
+ targetName: e.target.name,
72
+ fields: $( mla.settings.fieldsId + ' :input').serialize(),
73
+ offset: 0,
74
+ waiting: +mla.settings.totalItems,
75
+ running: 0,
76
+ complete: 0,
77
+ unchanged:0,
78
+ success: 0,
79
+ refresh: false
80
+ };
81
+
82
+ mla.inlineMapAttachment.progressOpen();
83
+ mla.inlineMapAttachment.bulkPost();
84
+ return false;
85
+ },
86
+
87
+ progressOpen : function(){
88
+ this.revert();
89
+
90
+ $( '#mla-progress-meter' ).css( 'width', '0%' );
91
+ $( '#mla-progress-meter' ).html('0%');
92
+ $( '#mla-progress-message' ).html('');
93
+ $( '#mla-progress-error' ).html('');
94
+ $( '#mla-progress-div' ).show();
95
+
96
+ // Disable "Close" until the bulk mapping is complete
97
+ $( '#mla-progress-cancel' ).prop( 'disabled', false ).css( 'opacity', '1.0' );
98
+ $( '#mla-progress-refresh' ).hide();
99
+ $( '#mla-progress-close' ).prop( 'disabled', true ).css( 'opacity', '0.5' ).show();
100
+ $( 'html, body' ).animate( { scrollTop: 0 }, 'fast' );
101
+ },
102
+
103
+ bulkPost : function() {
104
+ var params, chunk, statusMessage,
105
+ spinner = $('#mla-progress-div p.inline-edit-save .spinner'),
106
+ message = $( '#mla-progress-message' ),
107
+ error = $( '#mla-progress-error' );
108
+
109
+ // Find the number of items to process
110
+ if ( mla.bulkMap.waiting < mla.bulkMap.chunkSize ) {
111
+ chunk = mla.bulkMap.waiting;
112
+ } else {
113
+ chunk = mla.bulkMap.chunkSize;
114
+ }
115
+
116
+ mla.bulkMap.waiting -= chunk;
117
+ mla.bulkMap.running = chunk;
118
+
119
+ params = {
120
+ page: mla.settings.page,
121
+ mla_tab: mla.settings.mla_tab,
122
+ screen: mla.settings.screen,
123
+ action: mla.settings.ajax_action,
124
+ nonce: mla.settings.ajax_nonce,
125
+ bulk_action: mla.bulkMap.targetName,
126
+ offset: mla.bulkMap.complete,
127
+ length: chunk
128
+ };
129
+
130
+ params = $.param( params ) + '&' + mla.bulkMap.fields;
131
+
132
+ // make ajax request
133
+ mla.bulkMap.inProcess = true;
134
+
135
+ percentComplete = Math.floor( ( 100 * mla.bulkMap.complete ) / mla.settings.totalItems ) + '%';
136
+ $( '#mla-progress-meter' ).css( 'width', percentComplete );
137
+ $( '#mla-progress-meter' ).html( percentComplete );
138
+
139
+ spinner.show();
140
+ statusMessage = mla.settings.bulkWaiting + ': ' + mla.bulkMap.waiting
141
+ + ', ' + mla.settings.bulkRunning + ': ' + mla.bulkMap.running
142
+ + ', ' + mla.settings.bulkComplete + ': ' + mla.bulkMap.complete
143
+ + ', ' + mla.settings.bulkUnchanged + ': ' + mla.bulkMap.unchanged
144
+ + ', ' + mla.settings.bulkSuccess + ': ' + mla.bulkMap.success;
145
+ message.html( statusMessage ).show();
146
+
147
+ $.ajax( ajaxurl, {
148
+ type: 'POST',
149
+ data: params,
150
+ dataType: 'json'
151
+ }).always( function() {
152
+ spinner.hide();
153
+ }).done( function( response, status ) {
154
+ var responseData = 'no response.data', responseMessage;
155
+
156
+ if ( response ) {
157
+ if ( ! response.success ) {
158
+ if ( response.responseData ) {
159
+ responseData = response.data;
160
+ }
161
+
162
+ error.html( JSON.stringify( response ) );
163
+ mla.bulkMap.waiting = 0; // Stop
164
+ } else {
165
+ if ( 0 == response.data.processed ) {
166
+ // Something went wrong; we're done
167
+ responseMessage = response.data.message;
168
+ mla.bulkMap.waiting = 0; // Stop
169
+ } else {
170
+ // Move the items from Running to Complete
171
+ mla.bulkMap.complete += response.data.processed;
172
+ mla.bulkMap.running = 0;
173
+ mla.bulkMap.unchanged += response.data.unchanged;
174
+ mla.bulkMap.success += response.data.success;
175
+
176
+ if ( 'undefined' !== typeof response.data.refresh ) {
177
+ mla.bulkMap.refresh = response.data.refresh;
178
+ }
179
+
180
+ percentComplete = Math.floor( ( 100 * mla.bulkMap.complete ) / mla.settings.totalItems ) + '%';
181
+ $( '#mla-progress-meter' ).css( 'width', percentComplete );
182
+ $( '#mla-progress-meter' ).html( percentComplete );
183
+
184
+ responseMessage = mla.settings.bulkWaiting + ': ' + mla.bulkMap.waiting
185
+ + ', ' + mla.settings.bulkComplete + ': ' + mla.bulkMap.complete
186
+ + ', ' + mla.settings.bulkUnchanged + ': ' + mla.bulkMap.unchanged
187
+ + ', ' + mla.settings.bulkSuccess + ': ' + mla.bulkMap.success;
188
+ }
189
+ message.html( responseMessage ).show();
190
+ }
191
+ } else {
192
+ error.html( mla.settings.error );
193
+ mla.bulkMap.waiting = 0; // Stop
194
+ }
195
+
196
+ if ( mla.bulkMap.doCancel ) {
197
+ message.html( mla.settings.bulkCanceled + '. ' + responseMessage ).show();
198
+ } else {
199
+ if ( mla.bulkMap.waiting ) {
200
+ mla.inlineMapAttachment.bulkPost();
201
+ return;
202
+ }
203
+ }
204
+
205
+ if ( mla.bulkMap.refresh ) {
206
+ $( '#mla-progress-close' ).hide();
207
+ $( '#mla-progress-refresh' ).prop( 'disabled', false ).css( 'opacity', '1.0' ).show();
208
+ } else {
209
+ $( '#mla-progress-close' ).prop( 'disabled', false ).css( 'opacity', '1.0' );
210
+ }
211
+
212
+ $( '#mla-progress-cancel' ).prop( 'disabled', true ).css( 'opacity', '0.5' );
213
+ mla.bulkMap.inProcess = false;
214
+ }).fail( function( jqXHR, status ) {
215
+ if ( 200 == jqXHR.status ) {
216
+ error.html( '(' + status + ') ' + jqXHR.responseText );
217
+ } else {
218
+ error.html( mla.settings.ajaxFailError + ' (' + status + '), jqXHR( ' + jqXHR.status + ', ' + jqXHR.statusText + ', ' + jqXHR.responseText + ')' );
219
+ }
220
+ });
221
+ },
222
+
223
+ revert : function(){
224
+ var progressDiv = $( '#mla-progress-div' );
225
+
226
+ if ( progressDiv ) {
227
+ $('p.inline-edit-save .spinner', progressDiv ).hide();
228
+
229
+ // Reset Div content to initial values
230
+
231
+ $( progressDiv ).hide();
232
+ }
233
+
234
+ return false;
235
+ }
236
+ }; // mla.inlineMapAttachment
237
+
238
+ $( document ).ready( function() {
239
+ mla.inlineMapAttachment.init();
240
+ });
241
+ })( jQuery );
js/mla-inline-mapping-scripts.min.js ADDED
@@ -0,0 +1 @@
 
1
+ var jQuery,mla_inline_mapping_vars,mla={settings:{},bulkMap:{inProcess:false,doCancel:false},utility:{},inlineMapAttachment:null};(function(a){mla.settings=typeof mla_inline_mapping_vars==="undefined"?{}:mla_inline_mapping_vars;mla_inline_mapping_vars=void 0;mla.inlineMapAttachment={init:function(){var b=a("#mla-progress-div");a("#mla-progress-cancel",b).off("click");a("#mla-progress-cancel",b).click(function(){if(mla.bulkMap.inProcess){mla.bulkMap.doCancel=true;return false}else{return mla.inlineMapAttachment.revert()}});a("#mla-progress-refresh",b).off("click");a("#mla-progress-refresh",b).click(function(){a("#mla-progress-refresh").prop("disabled",true);a("#mla-progress-refresh").css("opacity","0.5")});a("#mla-progress-close",b).off("click");a("#mla-progress-close",b).click(function(c){if(mla.bulkMap.inProcess){return false}return mla.inlineMapAttachment.revert()});a('input[type="submit"].mla-mapping').click(function(c){c.preventDefault();return mla.inlineMapAttachment.bulkMap(c);return false})},bulkMap:function(b){mla.bulkMap={inProcess:false,doCancel:false,chunkSize:+mla.settings.bulkChunkSize,targetName:b.target.name,fields:a(mla.settings.fieldsId+" :input").serialize(),offset:0,waiting:+mla.settings.totalItems,running:0,complete:0,unchanged:0,success:0,refresh:false};mla.inlineMapAttachment.progressOpen();mla.inlineMapAttachment.bulkPost();return false},progressOpen:function(){this.revert();a("#mla-progress-meter").css("width","0%");a("#mla-progress-meter").html("0%");a("#mla-progress-message").html("");a("#mla-progress-error").html("");a("#mla-progress-div").show();a("#mla-progress-cancel").prop("disabled",false).css("opacity","1.0");a("#mla-progress-refresh").hide();a("#mla-progress-close").prop("disabled",true).css("opacity","0.5").show();a("html, body").animate({scrollTop:0},"fast")},bulkPost:function(){var g,c,f,e=a("#mla-progress-div p.inline-edit-save .spinner"),d=a("#mla-progress-message"),b=a("#mla-progress-error");if(mla.bulkMap.waiting<mla.bulkMap.chunkSize){c=mla.bulkMap.waiting}else{c=mla.bulkMap.chunkSize}mla.bulkMap.waiting-=c;mla.bulkMap.running=c;g={page:mla.settings.page,mla_tab:mla.settings.mla_tab,screen:mla.settings.screen,action:mla.settings.ajax_action,nonce:mla.settings.ajax_nonce,bulk_action:mla.bulkMap.targetName,offset:mla.bulkMap.complete,length:c};g=a.param(g)+"&"+mla.bulkMap.fields;mla.bulkMap.inProcess=true;percentComplete=Math.floor((100*mla.bulkMap.complete)/mla.settings.totalItems)+"%";a("#mla-progress-meter").css("width",percentComplete);a("#mla-progress-meter").html(percentComplete);e.show();f=mla.settings.bulkWaiting+": "+mla.bulkMap.waiting+", "+mla.settings.bulkRunning+": "+mla.bulkMap.running+", "+mla.settings.bulkComplete+": "+mla.bulkMap.complete+", "+mla.settings.bulkUnchanged+": "+mla.bulkMap.unchanged+", "+mla.settings.bulkSuccess+": "+mla.bulkMap.success;d.html(f).show();a.ajax(ajaxurl,{type:"POST",data:g,dataType:"json"}).always(function(){e.hide()}).done(function(j,i){var k="no response.data",h;if(j){if(!j.success){if(j.responseData){k=j.data}b.html(JSON.stringify(j));mla.bulkMap.waiting=0}else{if(0==j.data.processed){h=j.data.message;mla.bulkMap.waiting=0}else{mla.bulkMap.complete+=j.data.processed;mla.bulkMap.running=0;mla.bulkMap.unchanged+=j.data.unchanged;mla.bulkMap.success+=j.data.success;if("undefined"!==typeof j.data.refresh){mla.bulkMap.refresh=j.data.refresh}percentComplete=Math.floor((100*mla.bulkMap.complete)/mla.settings.totalItems)+"%";a("#mla-progress-meter").css("width",percentComplete);a("#mla-progress-meter").html(percentComplete);h=mla.settings.bulkWaiting+": "+mla.bulkMap.waiting+", "+mla.settings.bulkComplete+": "+mla.bulkMap.complete+", "+mla.settings.bulkUnchanged+": "+mla.bulkMap.unchanged+", "+mla.settings.bulkSuccess+": "+mla.bulkMap.success}d.html(h).show()}}else{b.html(mla.settings.error);mla.bulkMap.waiting=0}if(mla.bulkMap.doCancel){d.html(mla.settings.bulkCanceled+". "+h).show()}else{if(mla.bulkMap.waiting){mla.inlineMapAttachment.bulkPost();return}}if(mla.bulkMap.refresh){a("#mla-progress-close").hide();a("#mla-progress-refresh").prop("disabled",false).css("opacity","1.0").show()}else{a("#mla-progress-close").prop("disabled",false).css("opacity","1.0")}a("#mla-progress-cancel").prop("disabled",true).css("opacity","0.5");mla.bulkMap.inProcess=false}).fail(function(i,h){if(200==i.status){b.html("("+h+") "+i.responseText)}else{b.html(mla.settings.ajaxFailError+" ("+h+"), jqXHR( "+i.status+", "+i.statusText+", "+i.responseText+")")}})},revert:function(){var b=a("#mla-progress-div");if(b){a("p.inline-edit-save .spinner",b).hide();a(b).hide()}return false}};a(document).ready(function(){mla.inlineMapAttachment.init()})})(jQuery);
js/mla-media-modal-scripts.js CHANGED
@@ -1177,7 +1177,7 @@ this.listenTo( this, 'all', this.selectionEvent );
1177
 
1178
  // Hook the 'change' event when the sidebar has been rendered so we can add our enhancements
1179
  this.on( 'change', function( model ) {
1180
- var hookCompat = false, mediaFrame, compat, changed;
1181
 
1182
  if ( mlaModal.uploading && mlaModal.cid === model.cid ) {
1183
  mlaModal.uploading = false;
1177
 
1178
  // Hook the 'change' event when the sidebar has been rendered so we can add our enhancements
1179
  this.on( 'change', function( model ) {
1180
+ var hookCompat = false, changed;
1181
 
1182
  if ( mlaModal.uploading && mlaModal.cid === model.cid ) {
1183
  mlaModal.uploading = false;
js/mla-media-modal-scripts.min.js CHANGED
@@ -1 +1 @@
1
- var wp,wpAjax,ajaxurl,jQuery,_,getUserSetting,setUserSetting,deleteUserSetting,mlaTaxonomy,mlaModal={strings:{},settings:{},initialHTML:{},uploading:false,cid:null,utility:{originalMediaAjax:null,mlaAttachmentsBrowser:null,parseTermsOptions:null,arrayCleanup:null,parseTaxonomyId:null,hookCompatTaxonomies:null,fillCompatTaxonomies:null,supportCompatTaxonomies:null},tagBox:null};(function(a){mlaModal.strings=typeof wp.media.view.l10n.mla_strings==="undefined"?{}:wp.media.view.l10n.mla_strings;delete wp.media.view.l10n.mla_strings;mlaModal.settings=typeof wp.media.view.settings.mla_settings==="undefined"?{screen:"unknown",enableMediaGrid:false,enableMediaModal:false}:wp.media.view.settings.mla_settings;delete wp.media.view.settings.mla_settings;if(!(mlaModal.settings.enableMediaGrid||mlaModal.settings.enableMediaModal)){return}if(("grid"===mlaModal.settings.screen)&&false===mlaModal.settings.enableMediaGrid){return}if(("modal"===mlaModal.settings.screen)&&false===mlaModal.settings.enableMediaModal){return}mlaModal.utility.originalMediaAjax=wp.media.ajax;wp.media.ajax=function(h,d){var g=mlaModal.settings.state,f,c,e,b;if(_.isObject(h)){d=h}else{d=d||{};d.data=_.extend(d.data||{},{action:h})}if("query-attachments"==d.data.action){f=d.data.query;c=typeof f.s;if("object"==c){e=f.s}else{if("string"==c){e={mla_search_value:f.s}}else{e={mla_search_value:""}}}if("undefined"!=typeof f.post_mime_type){mlaModal.settings.query[g].filterMime=f.post_mime_type}else{mlaModal.settings.query[g].filterMime="all"}if("undefined"!=typeof e.mla_filter_month){mlaModal.settings.query[g].filterMonth=e.mla_filter_month}else{if("undefined"!=typeof f.year){mlaModal.settings.query[g].filterMonth=(100*f.year)+(1*f.monthnum)}else{}}if("undefined"!=typeof e.mla_filter_term){mlaModal.settings.query[g].filterTerm=e.mla_filter_term}if("undefined"!=typeof e.mla_search_value){mlaModal.settings.query[g].searchValue=e.mla_search_value}b={mla_filter_month:mlaModal.settings.query[g].filterMonth,mla_filter_term:mlaModal.settings.query[g].filterTerm,mla_terms_search:mlaModal.settings.query[g].termsSearch,mla_search_clicks:mlaModal.settings.query[g].searchClicks,mla_search_value:mlaModal.settings.query[g].searchValue,mla_search_fields:mlaModal.settings.query[g].searchFields,mla_search_connector:mlaModal.settings.query[g].searchConnector};mlaModal.settings.query[g].termsSearch="";a("#mla-terms-search-input").html("").val("");d.data.query.s=b}return mlaModal.utility.originalMediaAjax.call(this,d)};if(mlaModal.settings.enableMimeTypes){wp.media.view.AttachmentFilters.Mla=wp.media.view.AttachmentFilters.extend({createFilters:function(){var c=this.controller._state,b={};_.each(mlaModal.settings.mimeTypes||{},function(e,d){if(("grid"===mlaModal.settings.screen)||("trash"!==d)){b[d]={text:e,props:{type:d,uploadedTo:null,orderby:"date",order:"DESC"}}}});b.all={text:wp.media.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};if(wp.media.view.settings.post.id){b.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20}}this.filters=b;if("undefined"===typeof b[mlaModal.settings.query[c].filterMime]){mlaModal.settings.query[c].filterMime="all"}if(mlaModal.settings.query[c].filterMime!="all"){this.model.set(b[mlaModal.settings.query[c].filterMime].props,{silent:false})}},select:function(){var e=this.controller._state,b=this.model,d=mlaModal.settings.query[e].filterMime,c=b.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof c.search){mlaModal.settings.query[e].searchValue=c.search}else{mlaModal.settings.query[e].searchValue=""}}_.find(this.filters,function(g,h){var f=_.all(g.props,function(j,i){return j===(_.isUndefined(c[i])?null:c[i])});if(f){return d=h}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value];if(b){this.model.set(b.props,{silent:true});a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableMonthsDropdown){wp.media.view.AttachmentFilters.MlaMonths=wp.media.view.AttachmentFilters.extend({className:"attachment-filters",id:"media-attachment-date-filters",createFilters:function(){var c=this.controller._state,b={};_.each(mlaModal.settings.months||{},function(e,d){b[d]={text:e,props:{s:{mla_filter_month:d}}}});this.filters=b;if("undefined"===typeof b[mlaModal.settings.query[c].filterMonth]){mlaModal.settings.query[c].filterMonth=0}if(mlaModal.settings.query[c].filterMonth>0){this.model.set(b[mlaModal.settings.query[c].filterMonth].props,{silent:false})}},select:function(){var e=this.controller._state,b=this.model,d=mlaModal.settings.query[e].filterMonth,c=b.toJSON();if(_.isUndefined(c.s)){c.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof c.search){mlaModal.settings.query[e].searchValue=c.search}else{mlaModal.settings.query[e].searchValue=""}}if(_.isUndefined(c.s.mla_filter_month)){c.s.mla_filter_month=mlaModal.settings.query[e].filterMonth}else{mlaModal.settings.query[e].filterMonth=c.s.mla_filter_month}_.find(this.filters,function(g,h){var f=_.all(g.props,function(i){return i.mla_filter_month==mlaModal.settings.query[e].filterMonth});if(f){return d=h}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value],c;if(b){c={s:{mla_filter_month:b.props.s.mla_filter_month}};this.model.set(c);a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableTermsDropdown){wp.media.view.AttachmentFilters.MlaTerms=wp.media.view.AttachmentFilters.extend({className:"attachment-filters",id:"media-attachment-term-filters",createFilters:function(){var d=this.controller._state,b,c={};_.each(mlaModal.settings.termsText||{},function(f,e){c[e]={text:f,props:{s:{mla_filter_term:parseInt(mlaModal.settings.termsValue[e])}}}});this.filters=c;b=_.indexOf(mlaModal.settings.termsValue,mlaModal.settings.query[d].filterTerm);if(b>0){this.model.set(c[b].props,{silent:false})}},select:function(){var e=this.controller._state,b=this.model,d=mlaModal.settings.query[e].filterTerm,c=b.toJSON();if(_.isUndefined(c.s)){c.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof c.search){mlaModal.settings.query[e].searchValue=c.search}else{mlaModal.settings.query[e].searchValue=""}}if(_.isUndefined(c.s.mla_filter_term)){c.s.mla_filter_term=mlaModal.settings.query[e].filterTerm}else{mlaModal.settings.query[e].filterTerm=c.s.mla_filter_term}_.find(this.filters,function(g,h){var f=_.all(g.props,function(i){return i.mla_filter_term==mlaModal.settings.query[e].filterTerm});if(f){return d=h}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value],c;if(b){c={s:{mla_filter_term:b.props.s.mla_filter_term}};this.model.set(c);a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableTermsSearch){wp.media.view.MlaTermsSearch=wp.media.View.extend({tagName:"span",className:"mla-terms-search",template:wp.media.template("mla-terms-search-button"),attributes:{type:"mla-terms-search-button"},events:{change:"termsSearchOpen",click:"termsSearchOpen",},render:function(){this.$el.html(this.template(mlaModal.strings));return this},termsSearchOpen:function(b){if(("click"==b.type)&&("mla_terms_search"===b.target.name)){mlaTaxonomy.termsSearch.open();a("#mla-terms-search-form").off("submit");a("#mla-terms-search-form").submit(function(g){var c,f,d={phrases:"",taxonomies:[]};g.preventDefault();c=a("#mla-terms-search-form").serializeArray();for(f=0;f<c.length;f++){switch(c[f].name){case"mla_terms_search[phrases]":d.phrases=c[f].value;break;case"mla_terms_search[radio_phrases]":d.radio_phrases=c[f].value;break;case"mla_terms_search[radio_terms]":d.radio_terms=c[f].value;break;case"mla_terms_search[taxonomies][]":d.taxonomies[d.taxonomies.length]=c[f].value;break}}mlaModal.settings.query[mlaModal.settings.state].termsSearch=d;a("#mla-search-submit").click();return false});a("#mla-terms-search-input").keypress(function(c){if(13==c.which){c.preventDefault();a("#mla-terms-search-submit").click()}})}}})}if(mlaModal.settings.enableSearchBox){wp.media.view.MlaSearch=wp.media.View.extend({tagName:"div",className:"mla-search-box",template:wp.media.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{input:"search",change:"search",click:"search",search:"search",MlaSearch:"search"},initialize:function(){var b=this.controller._state;if("undefined"===typeof mlaModal.settings.query[b]){mlaModal.settings.query[b]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[b].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}},render:function(){var c=this.controller._state,b=_.extend(mlaModal.strings,mlaModal.settings.query[c]);this.$el.html(this.template(b));return this},search:function(d){var e=this.controller._state,b,f,c;if(("input"==d.type)&&("s[mla_search_value]"==d.target.name)){mlaModal.settings.query[e].searchValue=d.target.value;return}if(("click"==d.type)&&("mla_search_submit"!=d.target.name)){return}switch(d.target.name){case"s[mla_search_value]":mlaModal.settings.query[e].searchValue=d.target.value;break;case"mla_search_submit":b={mla_filter_month:mlaModal.settings.query[e].filterMonth,mla_filter_term:mlaModal.settings.query[e].filterTerm,mla_terms_search:mlaModal.settings.query[e].termsSearch,mla_search_clicks:mlaModal.settings.query[e].searchClicks++,mla_search_value:mlaModal.settings.query[e].searchValue,mla_search_fields:mlaModal.settings.query[e].searchFields,mla_search_connector:mlaModal.settings.query[e].searchConnector};this.model.set({s:b});break;case"s[mla_search_connector]":mlaModal.settings.query[e].searchConnector=d.target.value;break;case"s[mla_search_title]":f=mlaModal.settings.query[e].searchFields;c=f.indexOf("title");if(-1==c){f.push("title")}else{f.splice(c,1)}mlaModal.settings.query[e].searchFields=f;break;case"s[mla_search_name]":c=mlaModal.settings.query[e].searchFields.indexOf("name");if(-1==c){mlaModal.settings.query[e].searchFields.push("name")}else{mlaModal.settings.query[e].searchFields.splice(c,1)}break;case"s[mla_search_alt_text]":c=mlaModal.settings.query[e].searchFields.indexOf("alt-text");if(-1==c){mlaModal.settings.query[e].searchFields.push("alt-text")}else{mlaModal.settings.query[e].searchFields.splice(c,1)}break;case"s[mla_search_excerpt]":c=mlaModal.settings.query[e].searchFields.indexOf("excerpt");if(-1==c){mlaModal.settings.query[e].searchFields.push("excerpt")}else{mlaModal.settings.query[e].searchFields.splice(c,1)}break;case"s[mla_search_content]":c=mlaModal.settings.query[e].searchFields.indexOf("content");if(-1==c){mlaModal.settings.query[e].searchFields.push("content")}else{mlaModal.settings.query[e].searchFields.splice(c,1)}break;case"s[mla_search_terms]":c=mlaModal.settings.query[e].searchFields.indexOf("terms");if(-1==c){mlaModal.settings.query[e].searchFields.push("terms")}else{mlaModal.settings.query[e].searchFields.splice(c,1)}break}}})}else{wp.media.view.MlaSearch=wp.media.View.extend({tagName:"span",className:"mla-simulate-search-button",template:wp.media.template("mla-simulate-search-button"),attributes:{type:"mla-simulate-search-button"},events:{click:"simulateSearch",},render:function(){this.$el.html(this.template(mlaModal.strings));return this},simulateSearch:function(){var c=this.controller._state,b={mla_filter_month:mlaModal.settings.query[c].filterMonth,mla_filter_term:mlaModal.settings.query[c].filterTerm,mla_terms_search:mlaModal.settings.query[c].termsSearch,mla_search_clicks:mlaModal.settings.query[c].searchClicks++,mla_search_value:mlaModal.settings.query[c].searchValue,mla_search_fields:mlaModal.settings.query[c].searchFields,mla_search_connector:mlaModal.settings.query[c].searchConnector};this.model.set({s:b})}})}if(mlaModal.settings.enableMimeTypes||mlaModal.settings.enableMonthsDropdown||mlaModal.settings.enableTermsDropdown||mlaModal.settings.enableTermsSearch||mlaModal.settings.enableSearchBox){wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){var b,c=this.controller._state;mlaModal.settings.state=c;if("undefined"===typeof mlaModal.settings.query[c]){mlaModal.settings.query[c]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[c].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply(this,arguments);mlaModal.utility.mlaAttachmentsBrowser=this;b=this.options.filters;if(("all"===b)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.Mla({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search&&mlaModal.settings.enableMonthsDropdown){this.toolbar.unset("dateFilter",{silent:true});this.toolbar.set("dateFilter",new wp.media.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-75}).render())}if(this.options.search&&mlaModal.settings.enableTermsDropdown){this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-50}).render())}if(this.options.search&&mlaModal.settings.enableTermsSearch){this.toolbar.set("termsSearch",new wp.media.view.MlaTermsSearch({controller:this.controller,model:this.collection.props,priority:-50}).render())}if(this.options.search){if(mlaModal.settings.enableSearchBox){this.toolbar.unset("search",{silent:true});this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:60}).render())}else{this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:70}).render())}}},updateFilters:function(b,c){var d={};if(this.options.search&&mlaModal.settings.enableTermsDropdown&&mlaModal.settings.termsTaxonomy==b){d=mlaModal.utility.parseTermsOptions(c);mlaModal.settings.termsClass=d.termsClass;mlaModal.settings.termsText=d.termsText;mlaModal.settings.termsValue=d.termsValue;this.toolbar.unset("terms",{silent:true});this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}}})}mlaModal.utility.parseTermsOptions=function(h){var g={termsClass:[mlaModal.settings.termsClass[0],mlaModal.settings.termsClass[1]],termsText:[mlaModal.settings.termsText[0],mlaModal.settings.termsText[1]],termsValue:[mlaModal.settings.termsValue[0],mlaModal.settings.termsValue[1]]},d=2,b,c,f=/\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,e=[];if("object"===typeof h){d=mlaModal.settings.termsValue.length;for(b=2;b<d;b++){e[b]={termsClass:mlaModal.settings.termsClass[b],termsText:mlaModal.settings.termsText[b],termsValue:mlaModal.settings.termsValue[b]};if("undefined"!==typeof h[mlaModal.settings.termsValue[b]]){delete h[mlaModal.settings.termsValue[b]]}}for(c in h){e[b++]={termsClass:"level-0",termsText:h[c],termsValue:c.toString()}}if(d===b){return{termsClass:mlaModal.settings.termsClass,termsText:mlaModal.settings.termsText,termsValue:mlaModal.settings.termsValue}}e.sort(function(j,i){if(j.termsText>i.termsText){return 1}else{if(j.termsText<i.termsText){return -1}else{return 0}}});b=2;for(c in e){g.termsClass[b]=e[c].termsClass;g.termsText[b]=e[c].termsText;g.termsValue[b++]=e[c].termsValue}return g}e=f.exec(h);while(null!==(e=f.exec(h))){g.termsClass[d]=e[3];g.termsValue[d]=("undefined"===typeof e[6])?e[9]:e[7];g.termsText[d++]=e[11].replace("&nbsp;",mlaModal.settings.termsIndent)}return g};mlaModal.utility.arrayCleanup=function(d){var c=[],b=("string"===typeof d);if(b){d=d.split(mlaModal.settings.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(mlaModal.settings.comma)}return c};mlaModal.utility.parseTaxonomyId=function(c){var b=c.split("-");b.shift();b.shift();return b.join("-")};mlaModal.tagBox={cleanTags:function(c){var b=mlaModal.settings.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=mlaModal.settings.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(mlaModal.settings.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(){mlaModal.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=mlaModal.settings.comma;d=d||false;e=d?a(d).text():g.val();j=k.val();b=j?j+i+e:e;b=mlaModal.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(){mlaModal.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);mlaModal.tagBox.quickClicks(e);a("input.tagadd",c).click(function(){mlaModal.tagBox.flushTags(a(this).closest(".tagsdiv"))});a("input.newtag",c).keyup(function(g){if(13==g.which){mlaModal.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:mlaModal.settings.comma+" "})});e.siblings(":first").click(function(){mlaModal.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(){var j,h=this,g=mlaModal.utility.arrayCleanup(a(".server-tags",h).val()),i=mlaModal.utility.arrayCleanup(a(".the-tags",h).val());if(g===i){return}a(h).css("opacity","0.5");j={id:f,};j[b]=i;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,j).done(function(l){var k,m;for(k in l){if("object"===typeof(l[k]["object-terms"])){if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(k,l[k]["object-terms"])}delete l[k]["object-terms"]}for(m in l[k]){a("#"+m,h).replaceWith(l[k][m])}}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})}};if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({initialize:function(){wp.media.view.AttachmentCompat.__super__.initialize.apply(this,arguments);this.on("ready",function(){mlaModal.utility.hookCompatTaxonomies(this.model.get("id"),this.el)})}})}if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.model.Selection=wp.media.model.Selection.extend({initialize:function(){wp.media.model.Selection.__super__.initialize.apply(this,arguments);this.on("selection:reset",function(){mlaModal.cid=null});this.on("selection:unsingle",function(){mlaModal.cid=null});this.on("selection:single",function(b){mlaModal.cid=b.cid});this.on("change:uploading",function(){mlaModal.uploading=true});this.on("change",function(d){var e=false,b,c,f;if(mlaModal.uploading&&mlaModal.cid===d.cid){mlaModal.uploading=false;e=true}else{if(false===d.attributes.uploading){f=_.clone(d.changed);delete f.title;delete f.caption;delete f.alt;delete f.description;if(!_.isEmpty(f)){e=true}}}if(true===e){mlaModal.utility.hookCompatTaxonomies(d.get("id"),wp.media.frame.$el)}})}})}mlaModal.utility.hookCompatTaxonomies=function(e,c){var b,d=null;a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(b)){a(".compat-field-"+b+" th",c).click({id:e,currentTaxonomy:b,el:c},function(f){mlaModal.utility.fillCompatTaxonomies(f.data)});a("tr.compat-field-"+b,c).each(function(){if(a(this).hasClass("mla-taxonomy-row")){a(this).show()}else{a(this).remove()}});if(null===d){d=b}}else{a("tr.compat-field-"+b,c).each(function(){if(a(this).hasClass("mla-taxonomy-row")){a(this).remove()}})}});a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(b)){a(".compat-field-"+b+" th",c).click({id:e,currentTaxonomy:b,el:c},function(f){mlaModal.utility.fillCompatTaxonomies(f.data)});a("tr.compat-field-"+b,c).each(function(){if(a(this).hasClass("mla-taxonomy-row")){a(this).show()}else{a(this).remove()}});if(null===d){d=b}}else{a("tr.compat-field-"+b,c).each(function(){if(a(this).hasClass("mla-taxonomy-row")){a(this).remove()}})}});if(mlaModal.settings.enableTermsAutofill&&null!==d){a(".compat-field-"+d+" th",c).click()}};mlaModal.utility.fillCompatTaxonomies=function(f){var c=f.el,e=[],b,d;a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .categorydiv",c).html(mlaModal.strings.loadingText)});a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .tagsdiv",c).html(mlaModal.strings.loadingText)});if(e.length){wp.media.post(mlaModal.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])}mlaModal.utility.supportCompatTaxonomies(f);a(".compat-field-"+f.currentTaxonomy+" td",c).show()})}};mlaModal.utility.supportCompatTaxonomies=function(d){var c=d.id,b=d.el;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",b).each(function(){var g=a(this),e,h,f,k,i,m,l,j;f=mlaModal.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(){var q,n,p=[],o=g.find(i+"-checklist input:checked");o.each(function(){p[p.length]=a(this).val()});p.sort(function(s,r){return s-r});p=p.join(",");n=g.siblings(j).val();if(n===p){return}g.siblings(j).val(p);g.prop("disabled",true);q={id:c,};q[f]=p;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,q).done(function(s){var r,t;for(r in s){for(t in s[r]){g.find("#"+t).html(s[r][t])}}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("#new"+f+"_parent");g.prop("disabled",false);if("undefined"!=p.parsed.responses[0]&&(o=p.parsed.responses[0].supplemental.newcat_parent)){n.before(o);n.remove();if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(f,o)}}};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 r,q,s,o,n;if(13===p.keyCode){p.preventDefault();g.find(i+"-search-toggle").focus();return}r=g.find(l).val();q=g.find(i+"-checklist li");s=g.find(i+"-checklist-pop li");if(0<r.length){q.hide();s.hide()}else{q.show();s.show()}o=g.find(i+"-checklist label:matchTerms('"+r+"')");o.closest("li").find("li").andSelf().show();o.parents(i+"-checklist li").show();n=g.find(i+"-checklist-pop label:matchTerms('"+r+"')");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(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",b).each(function(){var e=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+e+" th",b).click(function(){a(this).siblings("td").slideToggle()});mlaModal.tagBox.init(c,e,b)})}}}(jQuery));
1
+ var wp,wpAjax,ajaxurl,jQuery,_,getUserSetting,setUserSetting,deleteUserSetting,mlaTaxonomy,mlaModal={strings:{},settings:{},initialHTML:{},uploading:false,cid:null,utility:{originalMediaAjax:null,mlaAttachmentsBrowser:null,parseTermsOptions:null,arrayCleanup:null,parseTaxonomyId:null,hookCompatTaxonomies:null,fillCompatTaxonomies:null,supportCompatTaxonomies:null},tagBox:null};(function(a){mlaModal.strings=typeof wp.media.view.l10n.mla_strings==="undefined"?{}:wp.media.view.l10n.mla_strings;delete wp.media.view.l10n.mla_strings;mlaModal.settings=typeof wp.media.view.settings.mla_settings==="undefined"?{screen:"unknown",enableMediaGrid:false,enableMediaModal:false}:wp.media.view.settings.mla_settings;delete wp.media.view.settings.mla_settings;if(!(mlaModal.settings.enableMediaGrid||mlaModal.settings.enableMediaModal)){return}if(("grid"===mlaModal.settings.screen)&&false===mlaModal.settings.enableMediaGrid){return}if(("modal"===mlaModal.settings.screen)&&false===mlaModal.settings.enableMediaModal){return}mlaModal.utility.originalMediaAjax=wp.media.ajax;wp.media.ajax=function(h,d){var g=mlaModal.settings.state,f,c,e,b;if(_.isObject(h)){d=h}else{d=d||{};d.data=_.extend(d.data||{},{action:h})}if("query-attachments"==d.data.action){f=d.data.query;c=typeof f.s;if("object"==c){e=f.s}else{if("string"==c){e={mla_search_value:f.s}}else{e={mla_search_value:""}}}if("undefined"!=typeof f.post_mime_type){mlaModal.settings.query[g].filterMime=f.post_mime_type}else{mlaModal.settings.query[g].filterMime="all"}if("undefined"!=typeof e.mla_filter_month){mlaModal.settings.query[g].filterMonth=e.mla_filter_month}else{if("undefined"!=typeof f.year){mlaModal.settings.query[g].filterMonth=(100*f.year)+(1*f.monthnum)}else{}}if("undefined"!=typeof e.mla_filter_term){mlaModal.settings.query[g].filterTerm=e.mla_filter_term}if("undefined"!=typeof e.mla_search_value){mlaModal.settings.query[g].searchValue=e.mla_search_value}b={mla_filter_month:mlaModal.settings.query[g].filterMonth,mla_filter_term:mlaModal.settings.query[g].filterTerm,mla_terms_search:mlaModal.settings.query[g].termsSearch,mla_search_clicks:mlaModal.settings.query[g].searchClicks,mla_search_value:mlaModal.settings.query[g].searchValue,mla_search_fields:mlaModal.settings.query[g].searchFields,mla_search_connector:mlaModal.settings.query[g].searchConnector};mlaModal.settings.query[g].termsSearch="";a("#mla-terms-search-input").html("").val("");d.data.query.s=b}return mlaModal.utility.originalMediaAjax.call(this,d)};if(mlaModal.settings.enableMimeTypes){wp.media.view.AttachmentFilters.Mla=wp.media.view.AttachmentFilters.extend({createFilters:function(){var c=this.controller._state,b={};_.each(mlaModal.settings.mimeTypes||{},function(e,d){if(("grid"===mlaModal.settings.screen)||("trash"!==d)){b[d]={text:e,props:{type:d,uploadedTo:null,orderby:"date",order:"DESC"}}}});b.all={text:wp.media.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};if(wp.media.view.settings.post.id){b.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20}}this.filters=b;if("undefined"===typeof b[mlaModal.settings.query[c].filterMime]){mlaModal.settings.query[c].filterMime="all"}if(mlaModal.settings.query[c].filterMime!="all"){this.model.set(b[mlaModal.settings.query[c].filterMime].props,{silent:false})}},select:function(){var e=this.controller._state,b=this.model,d=mlaModal.settings.query[e].filterMime,c=b.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof c.search){mlaModal.settings.query[e].searchValue=c.search}else{mlaModal.settings.query[e].searchValue=""}}_.find(this.filters,function(g,h){var f=_.all(g.props,function(j,i){return j===(_.isUndefined(c[i])?null:c[i])});if(f){return d=h}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value];if(b){this.model.set(b.props,{silent:true});a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableMonthsDropdown){wp.media.view.AttachmentFilters.MlaMonths=wp.media.view.AttachmentFilters.extend({className:"attachment-filters",id:"media-attachment-date-filters",createFilters:function(){var c=this.controller._state,b={};_.each(mlaModal.settings.months||{},function(e,d){b[d]={text:e,props:{s:{mla_filter_month:d}}}});this.filters=b;if("undefined"===typeof b[mlaModal.settings.query[c].filterMonth]){mlaModal.settings.query[c].filterMonth=0}if(mlaModal.settings.query[c].filterMonth>0){this.model.set(b[mlaModal.settings.query[c].filterMonth].props,{silent:false})}},select:function(){var e=this.controller._state,b=this.model,d=mlaModal.settings.query[e].filterMonth,c=b.toJSON();if(_.isUndefined(c.s)){c.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof c.search){mlaModal.settings.query[e].searchValue=c.search}else{mlaModal.settings.query[e].searchValue=""}}if(_.isUndefined(c.s.mla_filter_month)){c.s.mla_filter_month=mlaModal.settings.query[e].filterMonth}else{mlaModal.settings.query[e].filterMonth=c.s.mla_filter_month}_.find(this.filters,function(g,h){var f=_.all(g.props,function(i){return i.mla_filter_month==mlaModal.settings.query[e].filterMonth});if(f){return d=h}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value],c;if(b){c={s:{mla_filter_month:b.props.s.mla_filter_month}};this.model.set(c);a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableTermsDropdown){wp.media.view.AttachmentFilters.MlaTerms=wp.media.view.AttachmentFilters.extend({className:"attachment-filters",id:"media-attachment-term-filters",createFilters:function(){var d=this.controller._state,b,c={};_.each(mlaModal.settings.termsText||{},function(f,e){c[e]={text:f,props:{s:{mla_filter_term:parseInt(mlaModal.settings.termsValue[e])}}}});this.filters=c;b=_.indexOf(mlaModal.settings.termsValue,mlaModal.settings.query[d].filterTerm);if(b>0){this.model.set(c[b].props,{silent:false})}},select:function(){var e=this.controller._state,b=this.model,d=mlaModal.settings.query[e].filterTerm,c=b.toJSON();if(_.isUndefined(c.s)){c.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof c.search){mlaModal.settings.query[e].searchValue=c.search}else{mlaModal.settings.query[e].searchValue=""}}if(_.isUndefined(c.s.mla_filter_term)){c.s.mla_filter_term=mlaModal.settings.query[e].filterTerm}else{mlaModal.settings.query[e].filterTerm=c.s.mla_filter_term}_.find(this.filters,function(g,h){var f=_.all(g.props,function(i){return i.mla_filter_term==mlaModal.settings.query[e].filterTerm});if(f){return d=h}});this.$el.val(d)},change:function(){var b=this.filters[this.el.value],c;if(b){c={s:{mla_filter_term:b.props.s.mla_filter_term}};this.model.set(c);a("#mla-search-submit").click()}}})}if(mlaModal.settings.enableTermsSearch){wp.media.view.MlaTermsSearch=wp.media.View.extend({tagName:"span",className:"mla-terms-search",template:wp.media.template("mla-terms-search-button"),attributes:{type:"mla-terms-search-button"},events:{change:"termsSearchOpen",click:"termsSearchOpen",},render:function(){this.$el.html(this.template(mlaModal.strings));return this},termsSearchOpen:function(b){if(("click"==b.type)&&("mla_terms_search"===b.target.name)){mlaTaxonomy.termsSearch.open();a("#mla-terms-search-form").off("submit");a("#mla-terms-search-form").submit(function(g){var c,f,d={phrases:"",taxonomies:[]};g.preventDefault();c=a("#mla-terms-search-form").serializeArray();for(f=0;f<c.length;f++){switch(c[f].name){case"mla_terms_search[phrases]":d.phrases=c[f].value;break;case"mla_terms_search[radio_phrases]":d.radio_phrases=c[f].value;break;case"mla_terms_search[radio_terms]":d.radio_terms=c[f].value;break;case"mla_terms_search[taxonomies][]":d.taxonomies[d.taxonomies.length]=c[f].value;break}}mlaModal.settings.query[mlaModal.settings.state].termsSearch=d;a("#mla-search-submit").click();return false});a("#mla-terms-search-input").keypress(function(c){if(13==c.which){c.preventDefault();a("#mla-terms-search-submit").click()}})}}})}if(mlaModal.settings.enableSearchBox){wp.media.view.MlaSearch=wp.media.View.extend({tagName:"div",className:"mla-search-box",template:wp.media.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{input:"search",change:"search",click:"search",search:"search",MlaSearch:"search"},initialize:function(){var b=this.controller._state;if("undefined"===typeof mlaModal.settings.query[b]){mlaModal.settings.query[b]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[b].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}},render:function(){var c=this.controller._state,b=_.extend(mlaModal.strings,mlaModal.settings.query[c]);this.$el.html(this.template(b));return this},search:function(d){var e=this.controller._state,b,f,c;if(("input"==d.type)&&("s[mla_search_value]"==d.target.name)){mlaModal.settings.query[e].searchValue=d.target.value;return}if(("click"==d.type)&&("mla_search_submit"!=d.target.name)){return}switch(d.target.name){case"s[mla_search_value]":mlaModal.settings.query[e].searchValue=d.target.value;break;case"mla_search_submit":b={mla_filter_month:mlaModal.settings.query[e].filterMonth,mla_filter_term:mlaModal.settings.query[e].filterTerm,mla_terms_search:mlaModal.settings.query[e].termsSearch,mla_search_clicks:mlaModal.settings.query[e].searchClicks++,mla_search_value:mlaModal.settings.query[e].searchValue,mla_search_fields:mlaModal.settings.query[e].searchFields,mla_search_connector:mlaModal.settings.query[e].searchConnector};this.model.set({s:b});break;case"s[mla_search_connector]":mlaModal.settings.query[e].searchConnector=d.target.value;break;case"s[mla_search_title]":f=mlaModal.settings.query[e].searchFields;c=f.indexOf("title");if(-1==c){f.push("title")}else{f.splice(c,1)}mlaModal.settings.query[e].searchFields=f;break;case"s[mla_search_name]":c=mlaModal.settings.query[e].searchFields.indexOf("name");if(-1==c){mlaModal.settings.query[e].searchFields.push("name")}else{mlaModal.settings.query[e].searchFields.splice(c,1)}break;case"s[mla_search_alt_text]":c=mlaModal.settings.query[e].searchFields.indexOf("alt-text");if(-1==c){mlaModal.settings.query[e].searchFields.push("alt-text")}else{mlaModal.settings.query[e].searchFields.splice(c,1)}break;case"s[mla_search_excerpt]":c=mlaModal.settings.query[e].searchFields.indexOf("excerpt");if(-1==c){mlaModal.settings.query[e].searchFields.push("excerpt")}else{mlaModal.settings.query[e].searchFields.splice(c,1)}break;case"s[mla_search_content]":c=mlaModal.settings.query[e].searchFields.indexOf("content");if(-1==c){mlaModal.settings.query[e].searchFields.push("content")}else{mlaModal.settings.query[e].searchFields.splice(c,1)}break;case"s[mla_search_terms]":c=mlaModal.settings.query[e].searchFields.indexOf("terms");if(-1==c){mlaModal.settings.query[e].searchFields.push("terms")}else{mlaModal.settings.query[e].searchFields.splice(c,1)}break}}})}else{wp.media.view.MlaSearch=wp.media.View.extend({tagName:"span",className:"mla-simulate-search-button",template:wp.media.template("mla-simulate-search-button"),attributes:{type:"mla-simulate-search-button"},events:{click:"simulateSearch",},render:function(){this.$el.html(this.template(mlaModal.strings));return this},simulateSearch:function(){var c=this.controller._state,b={mla_filter_month:mlaModal.settings.query[c].filterMonth,mla_filter_term:mlaModal.settings.query[c].filterTerm,mla_terms_search:mlaModal.settings.query[c].termsSearch,mla_search_clicks:mlaModal.settings.query[c].searchClicks++,mla_search_value:mlaModal.settings.query[c].searchValue,mla_search_fields:mlaModal.settings.query[c].searchFields,mla_search_connector:mlaModal.settings.query[c].searchConnector};this.model.set({s:b})}})}if(mlaModal.settings.enableMimeTypes||mlaModal.settings.enableMonthsDropdown||mlaModal.settings.enableTermsDropdown||mlaModal.settings.enableTermsSearch||mlaModal.settings.enableSearchBox){wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){var b,c=this.controller._state;mlaModal.settings.state=c;if("undefined"===typeof mlaModal.settings.query[c]){mlaModal.settings.query[c]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[c].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply(this,arguments);mlaModal.utility.mlaAttachmentsBrowser=this;b=this.options.filters;if(("all"===b)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.Mla({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search&&mlaModal.settings.enableMonthsDropdown){this.toolbar.unset("dateFilter",{silent:true});this.toolbar.set("dateFilter",new wp.media.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-75}).render())}if(this.options.search&&mlaModal.settings.enableTermsDropdown){this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-50}).render())}if(this.options.search&&mlaModal.settings.enableTermsSearch){this.toolbar.set("termsSearch",new wp.media.view.MlaTermsSearch({controller:this.controller,model:this.collection.props,priority:-50}).render())}if(this.options.search){if(mlaModal.settings.enableSearchBox){this.toolbar.unset("search",{silent:true});this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:60}).render())}else{this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:70}).render())}}},updateFilters:function(b,c){var d={};if(this.options.search&&mlaModal.settings.enableTermsDropdown&&mlaModal.settings.termsTaxonomy==b){d=mlaModal.utility.parseTermsOptions(c);mlaModal.settings.termsClass=d.termsClass;mlaModal.settings.termsText=d.termsText;mlaModal.settings.termsValue=d.termsValue;this.toolbar.unset("terms",{silent:true});this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}}})}mlaModal.utility.parseTermsOptions=function(h){var g={termsClass:[mlaModal.settings.termsClass[0],mlaModal.settings.termsClass[1]],termsText:[mlaModal.settings.termsText[0],mlaModal.settings.termsText[1]],termsValue:[mlaModal.settings.termsValue[0],mlaModal.settings.termsValue[1]]},d=2,b,c,f=/\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,e=[];if("object"===typeof h){d=mlaModal.settings.termsValue.length;for(b=2;b<d;b++){e[b]={termsClass:mlaModal.settings.termsClass[b],termsText:mlaModal.settings.termsText[b],termsValue:mlaModal.settings.termsValue[b]};if("undefined"!==typeof h[mlaModal.settings.termsValue[b]]){delete h[mlaModal.settings.termsValue[b]]}}for(c in h){e[b++]={termsClass:"level-0",termsText:h[c],termsValue:c.toString()}}if(d===b){return{termsClass:mlaModal.settings.termsClass,termsText:mlaModal.settings.termsText,termsValue:mlaModal.settings.termsValue}}e.sort(function(j,i){if(j.termsText>i.termsText){return 1}else{if(j.termsText<i.termsText){return -1}else{return 0}}});b=2;for(c in e){g.termsClass[b]=e[c].termsClass;g.termsText[b]=e[c].termsText;g.termsValue[b++]=e[c].termsValue}return g}e=f.exec(h);while(null!==(e=f.exec(h))){g.termsClass[d]=e[3];g.termsValue[d]=("undefined"===typeof e[6])?e[9]:e[7];g.termsText[d++]=e[11].replace("&nbsp;",mlaModal.settings.termsIndent)}return g};mlaModal.utility.arrayCleanup=function(d){var c=[],b=("string"===typeof d);if(b){d=d.split(mlaModal.settings.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(mlaModal.settings.comma)}return c};mlaModal.utility.parseTaxonomyId=function(c){var b=c.split("-");b.shift();b.shift();return b.join("-")};mlaModal.tagBox={cleanTags:function(c){var b=mlaModal.settings.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=mlaModal.settings.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(mlaModal.settings.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(){mlaModal.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=mlaModal.settings.comma;d=d||false;e=d?a(d).text():g.val();j=k.val();b=j?j+i+e:e;b=mlaModal.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(){mlaModal.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);mlaModal.tagBox.quickClicks(e);a("input.tagadd",c).click(function(){mlaModal.tagBox.flushTags(a(this).closest(".tagsdiv"))});a("input.newtag",c).keyup(function(g){if(13==g.which){mlaModal.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:mlaModal.settings.comma+" "})});e.siblings(":first").click(function(){mlaModal.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(){var j,h=this,g=mlaModal.utility.arrayCleanup(a(".server-tags",h).val()),i=mlaModal.utility.arrayCleanup(a(".the-tags",h).val());if(g===i){return}a(h).css("opacity","0.5");j={id:f,};j[b]=i;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,j).done(function(l){var k,m;for(k in l){if("object"===typeof(l[k]["object-terms"])){if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(k,l[k]["object-terms"])}delete l[k]["object-terms"]}for(m in l[k]){a("#"+m,h).replaceWith(l[k][m])}}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})}};if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({initialize:function(){wp.media.view.AttachmentCompat.__super__.initialize.apply(this,arguments);this.on("ready",function(){mlaModal.utility.hookCompatTaxonomies(this.model.get("id"),this.el)})}})}if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.model.Selection=wp.media.model.Selection.extend({initialize:function(){wp.media.model.Selection.__super__.initialize.apply(this,arguments);this.on("selection:reset",function(){mlaModal.cid=null});this.on("selection:unsingle",function(){mlaModal.cid=null});this.on("selection:single",function(b){mlaModal.cid=b.cid});this.on("change:uploading",function(){mlaModal.uploading=true});this.on("change",function(b){var c=false,d;if(mlaModal.uploading&&mlaModal.cid===b.cid){mlaModal.uploading=false;c=true}else{if(false===b.attributes.uploading){d=_.clone(b.changed);delete d.title;delete d.caption;delete d.alt;delete d.description;if(!_.isEmpty(d)){c=true}}}if(true===c){mlaModal.utility.hookCompatTaxonomies(b.get("id"),wp.media.frame.$el)}})}})}mlaModal.utility.hookCompatTaxonomies=function(e,c){var b,d=null;a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(b)){a(".compat-field-"+b+" th",c).click({id:e,currentTaxonomy:b,el:c},function(f){mlaModal.utility.fillCompatTaxonomies(f.data)});a("tr.compat-field-"+b,c).each(function(){if(a(this).hasClass("mla-taxonomy-row")){a(this).show()}else{a(this).remove()}});if(null===d){d=b}}else{a("tr.compat-field-"+b,c).each(function(){if(a(this).hasClass("mla-taxonomy-row")){a(this).remove()}})}});a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(b)){a(".compat-field-"+b+" th",c).click({id:e,currentTaxonomy:b,el:c},function(f){mlaModal.utility.fillCompatTaxonomies(f.data)});a("tr.compat-field-"+b,c).each(function(){if(a(this).hasClass("mla-taxonomy-row")){a(this).show()}else{a(this).remove()}});if(null===d){d=b}}else{a("tr.compat-field-"+b,c).each(function(){if(a(this).hasClass("mla-taxonomy-row")){a(this).remove()}})}});if(mlaModal.settings.enableTermsAutofill&&null!==d){a(".compat-field-"+d+" th",c).click()}};mlaModal.utility.fillCompatTaxonomies=function(f){var c=f.el,e=[],b,d;a(".mla-taxonomy-field .categorydiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .categorydiv",c).html(mlaModal.strings.loadingText)});a(".mla-taxonomy-field .tagsdiv",c).each(function(){b=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));e[e.length]=b;d=".compat-field-"+b;if("undefined"===typeof(mlaModal.initialHTML[b])){mlaModal.initialHTML[b]=a(d,c).html()}else{a(d,c).html(mlaModal.initialHTML[b])}a(d+" .tagsdiv",c).html(mlaModal.strings.loadingText)});if(e.length){wp.media.post(mlaModal.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])}mlaModal.utility.supportCompatTaxonomies(f);a(".compat-field-"+f.currentTaxonomy+" td",c).show()})}};mlaModal.utility.supportCompatTaxonomies=function(d){var c=d.id,b=d.el;if(mlaModal.settings.enableDetailsCategory){a(".mla-taxonomy-field .categorydiv",b).each(function(){var g=a(this),e,h,f,k,i,m,l,j;f=mlaModal.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(){var q,n,p=[],o=g.find(i+"-checklist input:checked");o.each(function(){p[p.length]=a(this).val()});p.sort(function(s,r){return s-r});p=p.join(",");n=g.siblings(j).val();if(n===p){return}g.siblings(j).val(p);g.prop("disabled",true);q={id:c,};q[f]=p;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,q).done(function(s){var r,t;for(r in s){for(t in s[r]){g.find("#"+t).html(s[r][t])}}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("#new"+f+"_parent");g.prop("disabled",false);if("undefined"!=p.parsed.responses[0]&&(o=p.parsed.responses[0].supplemental.newcat_parent)){n.before(o);n.remove();if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(f,o)}}};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 r,q,s,o,n;if(13===p.keyCode){p.preventDefault();g.find(i+"-search-toggle").focus();return}r=g.find(l).val();q=g.find(i+"-checklist li");s=g.find(i+"-checklist-pop li");if(0<r.length){q.hide();s.hide()}else{q.show();s.show()}o=g.find(i+"-checklist label:matchTerms('"+r+"')");o.closest("li").find("li").andSelf().show();o.parents(i+"-checklist li").show();n=g.find(i+"-checklist-pop label:matchTerms('"+r+"')");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(mlaModal.settings.enableDetailsTag){a(".mla-taxonomy-field .tagsdiv",b).each(function(){var e=mlaModal.utility.parseTaxonomyId(a(this).attr("id"));a(".compat-field-"+e+" th",b).click(function(){a(this).siblings("td").slideToggle()});mlaModal.tagBox.init(c,e,b)})}}}(jQuery));
languages/media-library-assistant-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-10-27 20:13-0800\n"
5
- "PO-Revision-Date: 2014-10-27 20:14-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:1063
84
  #, php-format
85
  msgctxt "error_log"
86
  msgid ""
@@ -89,258 +89,258 @@ msgid ""
89
  msgstr ""
90
 
91
  #. translators: 1: function name 2: non-array value
92
- #: includes/class-mla-data.php:1267 includes/class-mla-main.php:1535
93
- #: includes/class-mla-main.php:1610 includes/class-mla-media-modal.php:1197
94
  #: includes/class-mla-mime-types.php:483
95
  #: includes/class-mla-mime-types.php:1218
96
- #: includes/class-mla-mime-types.php:2361 includes/class-mla-settings.php:1192
97
- #: includes/class-mla-settings.php:1639
98
  #, php-format
99
  msgctxt "error_log"
100
  msgid "ERROR: %1$s non-array \"%2$s\""
101
  msgstr ""
102
 
103
  #. translators: 1: query filter details
104
- #: includes/class-mla-data.php:1670
105
  #, php-format
106
  msgid "_execute_list_table_query $wp_filter = \"%1$s\"."
107
  msgstr ""
108
 
109
  #. translators: 1: query filter details
110
- #: includes/class-mla-data.php:1673
111
  #, php-format
112
  msgctxt "error_log"
113
  msgid "DEBUG: _execute_list_table_query $wp_filter = \"%1$s\"."
114
  msgstr ""
115
 
116
  #. translators: 1: query details
117
- #: includes/class-mla-data.php:1690
118
  #, php-format
119
  msgid "_execute_list_table_query WP_Query = \"%1$s\"."
120
  msgstr ""
121
 
122
  #. translators: 1: SQL statement
123
- #: includes/class-mla-data.php:1692
124
  #, php-format
125
  msgid "_execute_list_table_query SQL_request = \"%1$s\"."
126
  msgstr ""
127
 
128
  #. translators: 1: query details
129
- #: includes/class-mla-data.php:1695
130
  #, php-format
131
  msgctxt "error_log"
132
  msgid "DEBUG: _execute_list_table_query WP_Query = \"%1$s\"."
133
  msgstr ""
134
 
135
  #. translators: 1: SQL statement
136
- #: includes/class-mla-data.php:1697
137
  #, php-format
138
  msgctxt "error_log"
139
  msgid "DEBUG: _execute_list_table_query SQL_request = \"%1$s\"."
140
  msgstr ""
141
 
142
  #. translators: 1: search filter details
143
- #: includes/class-mla-data.php:1994
144
  #, php-format
145
- msgid "mla_query_posts_search_filter not numeric, = \"%1$s\"."
146
  msgstr ""
147
 
148
  #. translators: 1: search filter details
149
- #: includes/class-mla-data.php:1997
150
  #, php-format
151
  msgctxt "error_log"
152
- msgid "DEBUG: mla_query_posts_search_filter not numeric, = \"%1$s\"."
153
  msgstr ""
154
 
155
  #. translators: 1: where filter details
156
- #: includes/class-mla-data.php:2059
157
  #, php-format
158
  msgid "mla_query_posts_where_filter = \"%1$s\"."
159
  msgstr ""
160
 
161
  #. translators: 1: where filter details
162
- #: includes/class-mla-data.php:2062
163
  #, php-format
164
  msgctxt "error_log"
165
  msgid "DEBUG: mla_query_posts_where_filter = \"%1$s\"."
166
  msgstr ""
167
 
168
  #. translators: 1: join filter details
169
- #: includes/class-mla-data.php:2113
170
  #, php-format
171
  msgid "mla_query_posts_join_filter = \"%1$s\"."
172
  msgstr ""
173
 
174
  #. translators: 1: join filter details
175
- #: includes/class-mla-data.php:2116
176
  #, php-format
177
  msgctxt "error_log"
178
  msgid "DEBUG: mla_query_posts_join_filter = \"%1$s\"."
179
  msgstr ""
180
 
181
  #. translators: 1: orderby details details
182
- #: includes/class-mla-data.php:2215
183
  #, php-format
184
  msgid "mla_query_posts_orderby_filter = \"%1$s\"."
185
  msgstr ""
186
 
187
  #. translators: 1: orderby details details
188
- #: includes/class-mla-data.php:2218
189
  #, php-format
190
  msgctxt "error_log"
191
  msgid "DEBUG: mla_query_posts_orderby_filter = \"%1$s\"."
192
  msgstr ""
193
 
194
  #. translators: 1: SQL clauses
195
- #: includes/class-mla-data.php:2254
196
  #, php-format
197
  msgid "mla_query_posts_clauses_filter = \"%1$s\"."
198
  msgstr ""
199
 
200
  #. translators: 1: SQL clauses
201
- #: includes/class-mla-data.php:2257
202
  #, php-format
203
  msgctxt "error_log"
204
  msgid "DEBUG: mla_query_posts_clauses_filter = \"%1$s\"."
205
  msgstr ""
206
 
207
  #. translators: 1: SQL clauses
208
- #: includes/class-mla-data.php:2278
209
  #, php-format
210
  msgid "mla_query_posts_clauses_request_filter = \"%1$s\"."
211
  msgstr ""
212
 
213
  #. translators: 1: SQL clauses
214
- #: includes/class-mla-data.php:2281
215
  #, php-format
216
  msgctxt "error_log"
217
  msgid "DEBUG: mla_query_posts_clauses_request_filter = \"%1$s\"."
218
  msgstr ""
219
 
220
  #. translators: 1: post ID
221
- #: includes/class-mla-data.php:2313
222
  #, php-format
223
  msgctxt "error_log"
224
  msgid "ERROR: mla_get_attachment_by_id(%1$d) not found."
225
  msgstr ""
226
 
227
  #. translators: 1: post ID 2: post_type
228
- #: includes/class-mla-data.php:2319
229
  #, php-format
230
  msgctxt "error_log"
231
  msgid "ERROR: mla_get_attachment_by_id(%1$d) wrong post_type \"%2$s\"."
232
  msgstr ""
233
 
234
- #: includes/class-mla-data.php:2871 includes/class-mla-data.php:3206
235
- #: includes/class-mla-list-table.php:843
236
  msgid "NO REFERENCE TESTS"
237
  msgstr ""
238
 
239
- #: includes/class-mla-data.php:2877 includes/class-mla-data.php:3212
240
- #: includes/class-mla-options.php:2641 includes/class-mla-options.php:2642
241
  msgid "ORPHAN"
242
  msgstr ""
243
 
244
- #: includes/class-mla-data.php:2881 includes/class-mla-data.php:3216
245
  msgid "UNUSED"
246
  msgstr ""
247
 
248
- #: includes/class-mla-data.php:2886 includes/class-mla-data.php:3221
249
  msgid "UNATTACHED"
250
  msgstr ""
251
 
252
- #: includes/class-mla-data.php:2888 includes/class-mla-data.php:3223
253
  msgid "INVALID PARENT"
254
  msgstr ""
255
 
256
  #. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
257
- #: includes/class-mla-data.php:3402
258
  #, php-format
259
  msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
260
  msgstr ""
261
 
262
  #. translators: 1: index
263
- #: includes/class-mla-data.php:3648
264
  #, php-format
265
  msgctxt "error_log"
266
  msgid "ERROR: _build_pdf_indirect_objects bad value at $index = \"%1$d\"."
267
  msgstr ""
268
 
269
  #. translators: 1: source offset 2: nest level
270
- #: includes/class-mla-data.php:3973
271
  #, php-format
272
  msgctxt "error_log"
273
  msgid "ERROR: _parse_pdf_dictionary offset = %1$d, nest = %2$d."
274
  msgstr ""
275
 
276
  #. translators: 1: dictionary excerpt
277
- #: includes/class-mla-data.php:3975
278
  #, php-format
279
  msgctxt "error_log"
280
  msgid "ERROR: _parse_pdf_dictionary no end delimiter dump = %1$s."
281
  msgstr ""
282
 
283
  #. translators: 1: entry name 2: value excerpt
284
- #: includes/class-mla-data.php:4021
285
  #, php-format
286
  msgctxt "error_log"
287
  msgid "ERROR: _parse_pdf_dictionary bad value [ %1$s ] dump = %2$s"
288
  msgstr ""
289
 
290
- #: includes/class-mla-data.php:4135
291
  msgctxt "error_log"
292
  msgid "ERROR: _parse_xmp_metadata xml_parse_into_struct failed."
293
  msgstr ""
294
 
295
- #: includes/class-mla-data.php:4138
296
  msgctxt "error_log"
297
  msgid "ERROR: _parse_xmp_metadata set option failed."
298
  msgstr ""
299
 
300
  #. translators: 1: path and file
301
- #: includes/class-mla-data.php:4495
302
  #, php-format
303
  msgctxt "error_log"
304
  msgid "ERROR: File \"%1$s\", startxref not found."
305
  msgstr ""
306
 
307
  #. translators: 1: meta_key
308
- #: includes/class-mla-data.php:5412
309
  #, php-format
310
  msgid "Deleting meta:%1$s"
311
  msgstr ""
312
 
313
  #. translators: 1: meta_key
314
- #: includes/class-mla-data.php:5415
315
  #, php-format
316
  msgid "ERROR: meta:%1$s not found"
317
  msgstr ""
318
 
319
  #. translators: 1: meta_key 2: meta_value
320
- #: includes/class-mla-data.php:5424
321
  #, php-format
322
  msgid "Adding meta:%1$s = %2$s"
323
  msgstr ""
324
 
325
  #. translators: 1: meta_key
326
- #: includes/class-mla-data.php:5428
327
  #, php-format
328
  msgid "ERROR: Adding meta:%1$s; not found"
329
  msgstr ""
330
 
331
  #. translators: 1: meta_key
332
- #: includes/class-mla-data.php:5435
333
  #, php-format
334
  msgid "Deleting Null meta:%1$s"
335
  msgstr ""
336
 
337
  #. translators: 1: element name 2: old_value 3: new_value
338
- #: includes/class-mla-data.php:5445 includes/class-mla-data.php:5596
339
- #: includes/class-mla-data.php:5657 includes/class-mla-data.php:5683
340
- #: includes/class-mla-data.php:5717 includes/class-mla-data.php:5730
341
- #: includes/class-mla-data.php:5739 includes/class-mla-data.php:5750
342
- #: includes/class-mla-data.php:5761 includes/class-mla-data.php:5774
343
- #: includes/class-mla-data.php:5783 includes/class-mla-data.php:5792
344
  #: includes/class-mla-mime-types.php:1052
345
  #: includes/class-mla-mime-types.php:2125
346
  #, php-format
@@ -348,195 +348,195 @@ msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
348
  msgstr ""
349
 
350
  #. translators: 1: meta_key
351
- #: includes/class-mla-data.php:5450
352
  #, php-format
353
  msgid "ERROR: Changing meta:%1$s; not found"
354
  msgstr ""
355
 
356
  #. translators: 1: meta_key
357
- #: includes/class-mla-data.php:5510
358
  #, php-format
359
  msgid "Deleting %1$s"
360
  msgstr ""
361
 
362
  #. translators: 1: meta_key 2: new_value
363
- #: includes/class-mla-data.php:5521
364
  #, php-format
365
  msgid "Adding %1$s = [%2$s]"
366
  msgstr ""
367
 
368
  #. translators: 1: meta_key 2: meta_value
369
- #: includes/class-mla-data.php:5527
370
  #, php-format
371
  msgid "Adding %1$s = %2$s"
372
  msgstr ""
373
 
374
  #. translators: 1: meta_key
375
- #: includes/class-mla-data.php:5551
376
  #, php-format
377
  msgid "Deleting old %1$s values"
378
  msgstr ""
379
 
380
  #. translators: 1: meta_key 2: old_value 3: new_value 4: update count
381
- #: includes/class-mla-data.php:5581
382
  #, php-format
383
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
384
  msgstr ""
385
 
386
- #: includes/class-mla-data.php:5639 includes/class-mla-main.php:1892
387
  msgid "ERROR: Could not retrieve Attachment."
388
  msgstr ""
389
 
390
- #: includes/class-mla-data.php:5657 includes/class-mla-main.php:1305
391
- #: includes/class-mla-main.php:1549 includes/class-mla-main.php:1739
392
- #: includes/class-mla-main.php:2110 includes/class-mla-objects.php:275
393
- #: includes/class-mla-options.php:1017 includes/class-mla-options.php:1777
394
  #: includes/mla-main-search-box-template.php:42
395
  #: includes/mla-media-modal-js-template.php:32
396
  msgid "Title"
397
  msgstr ""
398
 
399
  #. translators: 1: old_value
400
- #: includes/class-mla-data.php:5680
401
  #, php-format
402
  msgid "ERROR: Could not change Name/Slug \"%1$s\"; name already exists"
403
  msgstr ""
404
 
405
- #: includes/class-mla-data.php:5683 includes/class-mla-main.php:1740
406
- #: includes/class-mla-main.php:2113 includes/class-mla-options.php:1024
407
  msgid "Name/Slug"
408
  msgstr ""
409
 
410
  #. translators: 1: old_value
411
- #: includes/class-mla-data.php:5709
412
  #, php-format
413
  msgid "Deleting ALT Text, was \"%1$s\""
414
  msgstr ""
415
 
416
  #. translators: 1: old_value
417
- #: includes/class-mla-data.php:5712
418
  #, php-format
419
  msgid "ERROR: Could not delete ALT Text, remains \"%1$s\""
420
  msgstr ""
421
 
422
- #: includes/class-mla-data.php:5717 includes/class-mla-list-table.php:1088
423
- #: includes/class-mla-main.php:1743 includes/class-mla-main.php:2116
424
- #: includes/class-mla-options.php:1031 includes/class-mla-options.php:1783
425
  #: includes/mla-main-search-box-template.php:44
426
  #: includes/mla-media-modal-js-template.php:40
427
  msgid "ALT Text"
428
  msgstr ""
429
 
430
  #. translators: 1: old_value 2: new_value
431
- #: includes/class-mla-data.php:5720
432
  #, php-format
433
  msgid "ERROR: Could not change ALT Text from \"%1$s\" to \"%2$s\""
434
  msgstr ""
435
 
436
- #: includes/class-mla-data.php:5730 includes/class-mla-main.php:1741
437
- #: includes/class-mla-main.php:2119 includes/class-mla-options.php:1038
438
- #: includes/class-mla-options.php:1786
439
  #: includes/mla-main-search-box-template.php:45
440
  #: includes/mla-media-modal-js-template.php:45
441
  msgid "Caption"
442
  msgstr ""
443
 
444
- #: includes/class-mla-data.php:5739 includes/class-mla-main.php:1742
445
- #: includes/class-mla-main.php:2121 includes/class-mla-options.php:1045
446
- #: includes/class-mla-options.php:1789 includes/class-mla-settings.php:1158
447
- #: includes/class-mla-settings.php:1415 includes/class-mla-settings.php:1514
448
- #: includes/class-mla-settings.php:1878
449
  #: includes/mla-main-search-box-template.php:46
450
  #: includes/mla-media-modal-js-template.php:49
451
  msgid "Description"
452
  msgstr ""
453
 
454
- #: includes/class-mla-data.php:5750 includes/class-mla-list-table.php:817
455
- #: includes/class-mla-list-table.php:909 includes/class-mla-options.php:4099
456
- #: includes/class-mla-options.php:4439
457
  msgid "Parent"
458
  msgstr ""
459
 
460
- #: includes/class-mla-data.php:5761 includes/class-mla-edit-media.php:307
461
- #: includes/class-mla-edit-media.php:447 includes/class-mla-main.php:1746
462
- #: includes/class-mla-main.php:2127 includes/class-mla-settings.php:1156
463
- #: includes/class-mla-settings.php:1413
464
  msgid "Menu Order"
465
  msgstr ""
466
 
467
- #: includes/class-mla-data.php:5774 includes/class-mla-list-table.php:1237
468
- #: includes/class-mla-main.php:1616 includes/class-mla-main.php:1718
469
- #: includes/class-mla-main.php:1941
470
  msgid "Author"
471
  msgstr ""
472
 
473
- #: includes/class-mla-data.php:5783 includes/class-mla-main.php:1757
474
  msgid "Comments"
475
  msgstr ""
476
 
477
- #: includes/class-mla-data.php:5792 includes/class-mla-main.php:1758
478
  msgid "Pings"
479
  msgstr ""
480
 
481
- #: includes/class-mla-data.php:5826
482
  msgid "Adding"
483
  msgstr ""
484
 
485
- #: includes/class-mla-data.php:5830
486
  msgid "Removing"
487
  msgstr ""
488
 
489
- #: includes/class-mla-data.php:5835
490
  msgid "Replacing"
491
  msgstr ""
492
 
493
- #: includes/class-mla-data.php:5839
494
  msgid "Ignoring"
495
  msgstr ""
496
 
497
  #. translators: 1: action_name, 2: taxonomy
498
- #: includes/class-mla-data.php:5851
499
  #, php-format
500
  msgid "%1$s \"%2$s\" terms"
501
  msgstr ""
502
 
503
  #. translators: 1: taxonomy
504
- #: includes/class-mla-data.php:5855
505
  #, php-format
506
  msgid "You cannot assign \"%1$s\" terms"
507
  msgstr ""
508
 
509
  #. translators: 1: post ID
510
- #: includes/class-mla-data.php:5867
511
  #, php-format
512
  msgid "Item %1$d, no changes detected."
513
  msgstr ""
514
 
515
  #. translators: 1: post ID
516
- #: includes/class-mla-data.php:5879
517
  #, php-format
518
  msgid "Item %1$d updated."
519
  msgstr ""
520
 
521
  #. translators: 1: post ID
522
- #: includes/class-mla-data.php:5893
523
  #, php-format
524
  msgid "ERROR: Item %1$d update failed."
525
  msgstr ""
526
 
527
- #: includes/class-mla-data.php:5916 includes/class-mla-edit-media.php:125
528
- #: includes/class-mla-edit-media.php:170 includes/class-mla-main.php:330
529
- #: includes/class-mla-main.php:358 includes/class-mla-main.php:1444
530
- #: includes/class-mla-settings.php:311 includes/class-mla-settings.php:329
531
  msgctxt "tag_delimiter"
532
  msgid ","
533
  msgstr ""
534
 
535
- #: includes/class-mla-edit-media.php:172 includes/class-mla-main.php:352
536
  msgid "An ajax.fail error has occurred. Please reload the page and try again."
537
  msgstr ""
538
 
539
- #: includes/class-mla-edit-media.php:173 includes/class-mla-main.php:353
540
  msgid "An ajax.done error has occurred. Please reload the page and try again."
541
  msgstr ""
542
 
@@ -553,7 +553,7 @@ msgstr ""
553
  msgid "M j, Y @ G:i"
554
  msgstr ""
555
 
556
- #: includes/class-mla-edit-media.php:218 includes/class-mla-main.php:2105
557
  msgid "Last modified"
558
  msgstr ""
559
 
@@ -561,7 +561,8 @@ msgstr ""
561
  msgid "Map Custom Field metadata for this item"
562
  msgstr ""
563
 
564
- #: includes/class-mla-edit-media.php:229 includes/class-mla-main.php:1764
 
565
  msgid "Map Custom Field Metadata"
566
  msgstr ""
567
 
@@ -574,7 +575,7 @@ msgid "Map IPTC/EXIF Metadata"
574
  msgstr ""
575
 
576
  #: includes/class-mla-edit-media.php:303 includes/class-mla-edit-media.php:426
577
- #: includes/class-mla-main.php:2123
578
  msgid "Parent Info"
579
  msgstr ""
580
 
@@ -583,30 +584,30 @@ msgid "Attachment Metadata"
583
  msgstr ""
584
 
585
  #: includes/class-mla-edit-media.php:318 includes/class-mla-edit-media.php:505
586
- #: includes/class-mla-main.php:2134 includes/class-mla-options.php:462
587
  msgid "Featured in"
588
  msgstr ""
589
 
590
  #: includes/class-mla-edit-media.php:322 includes/class-mla-edit-media.php:544
591
- #: includes/class-mla-main.php:2136 includes/class-mla-options.php:471
592
  msgid "Inserted in"
593
  msgstr ""
594
 
595
  #: includes/class-mla-edit-media.php:326 includes/class-mla-edit-media.php:579
596
- #: includes/class-mla-main.php:2138 includes/class-mla-options.php:480
597
- #: includes/class-mla-settings.php:3335
598
  msgid "Gallery in"
599
  msgstr ""
600
 
601
  #: includes/class-mla-edit-media.php:330 includes/class-mla-edit-media.php:614
602
- #: includes/class-mla-main.php:2140 includes/class-mla-options.php:489
603
- #: includes/class-mla-settings.php:3345
604
  msgid "MLA Gallery in"
605
  msgstr ""
606
 
607
  #. translators: 1: function name 2: template key
608
- #: includes/class-mla-edit-media.php:373 includes/class-mla-main.php:585
609
- #: includes/class-mla-settings.php:473
610
  #, php-format
611
  msgctxt "error_log"
612
  msgid "ERROR: %1$s discarding \"%2$s\"; no title/order"
@@ -616,22 +617,23 @@ msgstr ""
616
  msgid "Post Parent"
617
  msgstr ""
618
 
619
- #: includes/class-mla-edit-media.php:427 includes/class-mla-main.php:1540
620
  msgid "Select Parent"
621
  msgstr ""
622
 
623
- #: includes/class-mla-edit-media.php:427 includes/class-mla-main.php:1745
624
  #: includes/class-mla-upload-optional-list-table.php:281
625
  msgid "Select"
626
  msgstr ""
627
 
628
  #: includes/class-mla-edit-media.php:494 includes/class-mla-edit-media.php:532
629
  #: includes/class-mla-edit-media.php:568 includes/class-mla-edit-media.php:603
630
- #: includes/class-mla-list-table.php:945 includes/class-mla-list-table.php:982
631
- #: includes/class-mla-list-table.php:1017
632
- #: includes/class-mla-list-table.php:1051 includes/class-mla-main.php:1954
633
- #: includes/class-mla-main.php:1973 includes/class-mla-main.php:1990
634
- #: includes/class-mla-main.php:2006
 
635
  msgid "PARENT"
636
  msgstr ""
637
 
@@ -649,77 +651,67 @@ msgstr ""
649
  msgid "?&nbsp;Search"
650
  msgstr ""
651
 
652
- #: includes/class-mla-list-table.php:210
653
- msgid "All"
654
- msgstr ""
655
-
656
- #: includes/class-mla-list-table.php:211 includes/class-mla-settings.php:1424
657
- #: includes/class-mla-view-list-table.php:379
658
- #: includes/class-mla-view-list-table.php:395
659
- msgid "No"
660
- msgstr ""
661
-
662
- #: includes/class-mla-list-table.php:399
663
  msgctxt "list_table_column"
664
  msgid "ID/Parent"
665
  msgstr ""
666
 
667
- #: includes/class-mla-list-table.php:400
668
  msgctxt "list_table_column"
669
  msgid "Title/Name"
670
  msgstr ""
671
 
672
- #: includes/class-mla-list-table.php:401
673
  msgctxt "list_table_column"
674
  msgid "Title"
675
  msgstr ""
676
 
677
- #: includes/class-mla-list-table.php:402
678
  msgctxt "list_table_column"
679
  msgid "Name"
680
  msgstr ""
681
 
682
- #: includes/class-mla-list-table.php:403
683
  msgctxt "list_table_column"
684
  msgid "Parent ID"
685
  msgstr ""
686
 
687
- #: includes/class-mla-list-table.php:404
688
  msgctxt "list_table_column"
689
  msgid "Menu Order"
690
  msgstr ""
691
 
692
- #: includes/class-mla-list-table.php:405
693
  msgctxt "list_table_column"
694
  msgid "Featured in"
695
  msgstr ""
696
 
697
- #: includes/class-mla-list-table.php:406
698
  msgctxt "list_table_column"
699
  msgid "Inserted in"
700
  msgstr ""
701
 
702
- #: includes/class-mla-list-table.php:407
703
  msgctxt "list_table_column"
704
  msgid "Gallery in"
705
  msgstr ""
706
 
707
- #: includes/class-mla-list-table.php:408
708
  msgctxt "list_table_column"
709
  msgid "MLA Gallery in"
710
  msgstr ""
711
 
712
- #: includes/class-mla-list-table.php:409
713
  msgctxt "list_table_column"
714
  msgid "ALT Text"
715
  msgstr ""
716
 
717
- #: includes/class-mla-list-table.php:410
718
  msgctxt "list_table_column"
719
  msgid "Caption"
720
  msgstr ""
721
 
722
- #: includes/class-mla-list-table.php:411
723
  #: includes/class-mla-upload-list-table.php:186
724
  #: includes/class-mla-upload-optional-list-table.php:171
725
  #: includes/class-mla-view-list-table.php:179
@@ -727,62 +719,73 @@ msgctxt "list_table_column"
727
  msgid "Description"
728
  msgstr ""
729
 
730
- #: includes/class-mla-list-table.php:412
731
  #: includes/class-mla-upload-list-table.php:178
732
  #: includes/class-mla-upload-optional-list-table.php:168
733
  msgctxt "list_table_column"
734
  msgid "MIME Type"
735
  msgstr ""
736
 
737
- #: includes/class-mla-list-table.php:413
738
  msgctxt "list_table_column"
739
  msgid "File URL"
740
  msgstr ""
741
 
742
- #: includes/class-mla-list-table.php:414
743
  msgctxt "list_table_column"
744
  msgid "Base File"
745
  msgstr ""
746
 
747
- #: includes/class-mla-list-table.php:415
748
  msgctxt "list_table_column"
749
  msgid "Date"
750
  msgstr ""
751
 
752
- #: includes/class-mla-list-table.php:416
753
  msgctxt "list_table_column"
754
  msgid "Last Modified"
755
  msgstr ""
756
 
757
- #: includes/class-mla-list-table.php:417
758
  msgctxt "list_table_column"
759
  msgid "Author"
760
  msgstr ""
761
 
762
- #: includes/class-mla-list-table.php:418
763
  msgctxt "list_table_column"
764
  msgid "Attached to"
765
  msgstr ""
766
 
767
- #: includes/class-mla-list-table.php:514
768
- #: includes/class-mla-list-table.php:1146 includes/class-mla-options.php:593
769
- #: includes/class-mla-options.php:775 includes/class-mla-options.php:799
770
- #: includes/class-mla-options.php:813 includes/class-mla-settings.php:1962
 
 
 
 
 
 
 
 
 
 
771
  msgid "None"
772
  msgstr ""
773
 
774
- #: includes/class-mla-list-table.php:520 includes/class-mla-list-table.php:548
775
- #: includes/class-mla-list-table.php:1084
776
- #: includes/class-mla-list-table.php:1128
 
777
  msgid "Filter by"
778
  msgstr ""
779
 
780
- #: includes/class-mla-list-table.php:530
781
  msgid "not supported"
782
  msgstr ""
783
 
784
  #. translators: 1: column_name 2: column_values
785
- #: includes/class-mla-list-table.php:565
786
  #: includes/class-mla-upload-list-table.php:247
787
  #: includes/class-mla-upload-optional-list-table.php:228
788
  #: includes/class-mla-view-list-table.php:236
@@ -790,20 +793,21 @@ msgstr ""
790
  msgid "column_default: %1$s, %2$s"
791
  msgstr ""
792
 
793
- #: includes/class-mla-list-table.php:628 includes/class-mla-list-table.php:673
794
- #: includes/class-mla-list-table.php:675
795
  #: includes/class-mla-upload-list-table.php:312
796
  #: includes/class-mla-view-list-table.php:302
797
  msgid "Edit this item"
798
  msgstr ""
799
 
800
- #: includes/class-mla-list-table.php:628 includes/class-mla-list-table.php:631
801
- #: includes/class-mla-list-table.php:673 includes/class-mla-list-table.php:675
802
- #: includes/class-mla-list-table.php:950 includes/class-mla-list-table.php:987
803
- #: includes/class-mla-list-table.php:1022
804
- #: includes/class-mla-list-table.php:1056
805
- #: includes/class-mla-list-table.php:1254
806
- #: includes/class-mla-list-table.php:1689
 
807
  #: includes/class-mla-upload-list-table.php:312
808
  #: includes/class-mla-upload-list-table.php:610
809
  #: includes/class-mla-view-list-table.php:302
@@ -811,167 +815,197 @@ msgstr ""
811
  msgid "Edit"
812
  msgstr ""
813
 
814
- #: includes/class-mla-list-table.php:661
815
  msgid "Restore this item from the Trash"
816
  msgstr ""
817
 
818
- #: includes/class-mla-list-table.php:661
819
- #: includes/class-mla-list-table.php:1686
820
  msgid "Restore"
821
  msgstr ""
822
 
823
- #: includes/class-mla-list-table.php:678
824
  #: includes/class-mla-upload-list-table.php:314
825
  #: includes/class-mla-view-list-table.php:304
826
  msgid "Edit this item inline"
827
  msgstr ""
828
 
829
- #: includes/class-mla-list-table.php:678 includes/class-mla-main.php:1738
830
- #: includes/class-mla-options.php:3202 includes/class-mla-options.php:3474
831
  #: includes/class-mla-upload-list-table.php:314
832
  #: includes/class-mla-view-list-table.php:304
833
  msgid "Quick Edit"
834
  msgstr ""
835
 
836
- #: includes/class-mla-list-table.php:684
837
  msgid "Move this item to the Trash"
838
  msgstr ""
839
 
840
- #: includes/class-mla-list-table.php:684
841
- #: includes/class-mla-list-table.php:1692
842
  msgid "Move to Trash"
843
  msgstr ""
844
 
845
- #: includes/class-mla-list-table.php:689
846
  #: includes/class-mla-upload-list-table.php:318
847
  #: includes/class-mla-view-list-table.php:310
848
  msgid "Delete this item Permanently"
849
  msgstr ""
850
 
851
- #: includes/class-mla-list-table.php:689
 
852
  #: includes/class-mla-list-table.php:1687
853
- #: includes/class-mla-list-table.php:1694
854
  #: includes/class-mla-upload-list-table.php:318
855
  #: includes/class-mla-view-list-table.php:310
856
  #: includes/class-mla-view-list-table.php:514
857
  msgid "Delete Permanently"
858
  msgstr ""
859
 
860
- #: includes/class-mla-list-table.php:697
861
  msgid "Download"
862
  msgstr ""
863
 
864
- #: includes/class-mla-list-table.php:700
865
  msgid "View"
866
  msgstr ""
867
 
868
- #: includes/class-mla-list-table.php:740 includes/class-mla-list-table.php:811
869
- #: includes/class-mla-main.php:356 includes/class-mla-main.php:1309
870
  msgid "(no title)"
871
  msgstr ""
872
 
873
- #: includes/class-mla-list-table.php:814 includes/class-mla-list-table.php:906
 
874
  msgid "Filter by Parent ID"
875
  msgstr ""
876
 
877
- #: includes/class-mla-list-table.php:903
878
  msgid "(no title: bad ID)"
879
  msgstr ""
880
 
881
- #: includes/class-mla-list-table.php:938 includes/class-mla-list-table.php:972
882
- #: includes/class-mla-list-table.php:1010
883
- #: includes/class-mla-list-table.php:1044 includes/class-mla-main.php:1962
884
- #: includes/class-mla-main.php:1982 includes/class-mla-main.php:1998
885
- #: includes/class-mla-main.php:2014 includes/class-mla-options.php:466
886
- #: includes/class-mla-options.php:475 includes/class-mla-options.php:484
887
- #: includes/class-mla-options.php:493
 
888
  msgid "Disabled"
889
  msgstr ""
890
 
891
- #: includes/class-mla-list-table.php:1131 includes/class-mla-settings.php:1507
892
- #: includes/class-mla-settings.php:1872
893
  msgid "MIME Type"
894
  msgstr ""
895
 
896
- #: includes/class-mla-list-table.php:1171
897
- #: includes/class-mla-list-table.php:1203
 
 
 
 
898
  msgid "Unpublished"
899
  msgstr ""
900
 
901
  #. translators: 1: upload/last modified date and time
902
- #: includes/class-mla-list-table.php:1179
903
- #: includes/class-mla-list-table.php:1210
904
  #, php-format
905
  msgid "%1$s from now"
906
  msgstr ""
907
 
908
  #. translators: 1: upload/last modified date and time
909
- #: includes/class-mla-list-table.php:1182
910
- #: includes/class-mla-list-table.php:1212
911
  #, php-format
912
  msgid "%1$s ago"
913
  msgstr ""
914
 
915
  #. translators: format for upload/last modified date
916
  #. translators: date format in table columns, see http://php.net/date
917
- #: includes/class-mla-list-table.php:1186
918
- #: includes/class-mla-list-table.php:1215
919
- #: includes/class-mla-list-table.php:1271 includes/class-mla-main.php:1332
920
  msgid "Y/m/d"
921
  msgstr ""
922
 
923
- #: includes/class-mla-list-table.php:1234
924
  msgid "Filter by Author ID"
925
  msgstr ""
926
 
927
- #: includes/class-mla-list-table.php:1273 includes/class-mla-options.php:1134
928
  msgctxt "post_mime_types_singular"
929
  msgid "Unattached"
930
  msgstr ""
931
 
932
- #: includes/class-mla-list-table.php:1276
933
  msgid "Set Parent"
934
  msgstr ""
935
 
936
- #: includes/class-mla-list-table.php:1538
937
  msgctxt "uploaded files"
938
  msgid "All"
939
  msgid_plural "All"
940
  msgstr[0] ""
941
  msgstr[1] ""
942
 
943
- #: includes/class-mla-list-table.php:1720
944
  msgid "Filter"
945
  msgstr ""
946
 
947
- #: includes/class-mla-list-table.php:1724
948
  #: includes/mla-media-modal-js-template.php:58
949
  msgid "Terms Search"
950
  msgstr ""
951
 
952
- #: includes/class-mla-list-table.php:1730
953
  msgid "Clear Filter-by"
954
  msgstr ""
955
 
956
- #: includes/class-mla-list-table.php:1734
957
  msgid "Empty Trash"
958
  msgstr ""
959
 
960
- #: includes/class-mla-main.php:354 includes/class-mla-settings.php:308
961
- #: includes/class-mla-settings.php:326
962
  msgid "Error while saving the changes."
963
  msgstr ""
964
 
965
- #: includes/class-mla-main.php:355 includes/class-mla-settings.php:309
966
- #: includes/class-mla-settings.php:327
967
  msgid "Remove From Bulk Edit"
968
  msgstr ""
969
 
970
- #: includes/class-mla-main.php:357
971
  msgid "Bulk Edit items"
972
  msgstr ""
973
 
974
- #: includes/class-mla-main.php:467
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
975
  #, php-format
976
  msgid "Item permanently deleted."
977
  msgid_plural "%d items permanently deleted."
@@ -979,45 +1013,53 @@ msgstr[0] ""
979
  msgstr[1] ""
980
 
981
  #. translators: 1: post ID
982
- #: includes/class-mla-main.php:472 includes/class-mla-main.php:2222
983
  #, php-format
984
  msgid "Item %1$d moved to Trash."
985
  msgstr ""
986
 
987
- #: includes/class-mla-main.php:491
988
  msgid "Entries per page"
989
  msgstr ""
990
 
991
- #: includes/class-mla-main.php:811
992
- msgid "You do not have permission to manage attachments."
993
  msgstr ""
994
 
995
- #. translators: 1: bulk_action, e.g., delete, edit, restore, trash
996
- #: includes/class-mla-main.php:956 includes/class-mla-settings.php:1270
997
- #: includes/class-mla-settings.php:1737
998
  #, php-format
999
- msgid "Unknown bulk action %1$s"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1000
  msgstr ""
1001
 
1002
  #. translators: 1: action name, e.g., edit
1003
- #: includes/class-mla-main.php:985 includes/class-mla-settings.php:1280
1004
- #: includes/class-mla-settings.php:1748
1005
  #, php-format
1006
  msgid "Bulk Action %1$s - no items selected."
1007
  msgstr ""
1008
 
1009
- #: includes/class-mla-main.php:1014 includes/class-mla-main.php:1108
1010
- #: includes/class-mla-main.php:1139 includes/class-mla-main.php:1372
1011
- #: includes/class-mla-settings.php:551 includes/class-mla-settings.php:591
1012
- #: includes/class-mla-settings.php:1224 includes/class-mla-settings.php:1301
1013
- #: includes/class-mla-settings.php:1690 includes/class-mla-settings.php:1769
1014
- #: includes/class-mla-settings.php:2320 includes/class-mla-settings.php:2443
1015
- #: includes/class-mla-settings.php:2578 includes/class-mla-shortcodes.php:1318
1016
- #: includes/class-mla-shortcodes.php:1392
1017
- msgid "ERROR:"
1018
  msgstr ""
1019
 
1020
- #: includes/class-mla-main.php:1022
1021
  #, php-format
1022
  msgctxt "deleted items"
1023
  msgid "%s item deleted."
@@ -1025,264 +1067,276 @@ msgid_plural "%s items deleted."
1025
  msgstr[0] ""
1026
  msgstr[1] ""
1027
 
1028
- #: includes/class-mla-main.php:1024
1029
  msgid "No items deleted."
1030
  msgstr ""
1031
 
1032
- #: includes/class-mla-main.php:1039
1033
  msgid "Edit single item"
1034
  msgstr ""
1035
 
1036
  #. translators: 1: post ID
1037
- #: includes/class-mla-main.php:1054
1038
  #, php-format
1039
  msgid "Item %1$d cancelled."
1040
  msgstr ""
1041
 
1042
- #: includes/class-mla-main.php:1089
1043
  msgid "Empty Terms Search; ignored"
1044
  msgstr ""
1045
 
1046
  #. translators: 1: row-level action, e.g., single_item_delete, single_item_edit
1047
  #. translators: 1: bulk_action, e.g., single_item_delete, single_item_edit
1048
- #: includes/class-mla-main.php:1099 includes/class-mla-settings.php:1317
1049
- #: includes/class-mla-settings.php:1787
1050
  #, php-format
1051
  msgid "Unknown mla_admin_action - \"%1$s\""
1052
  msgstr ""
1053
 
1054
- #: includes/class-mla-main.php:1127
1055
  msgid "term search results for"
1056
  msgstr ""
1057
 
1058
- #: includes/class-mla-main.php:1130
1059
  msgid "post/parent results for"
1060
  msgstr ""
1061
 
1062
- #: includes/class-mla-main.php:1132
1063
  msgid "search results for"
1064
  msgstr ""
1065
 
1066
- #: includes/class-mla-main.php:1305 includes/class-mla-main.php:1550
1067
  msgid "Type"
1068
  msgstr ""
1069
 
1070
- #: includes/class-mla-main.php:1305 includes/class-mla-main.php:1551
1071
  msgid "Date"
1072
  msgstr ""
1073
 
1074
- #: includes/class-mla-main.php:1305 includes/class-mla-main.php:1552
1075
- #: includes/class-mla-settings.php:1888
1076
  msgid "Status"
1077
  msgstr ""
1078
 
1079
- #: includes/class-mla-main.php:1315
1080
  msgid "Published"
1081
  msgstr ""
1082
 
1083
- #: includes/class-mla-main.php:1318
1084
  msgid "Scheduled"
1085
  msgstr ""
1086
 
1087
- #: includes/class-mla-main.php:1321
1088
  msgid "Pending Review"
1089
  msgstr ""
1090
 
1091
- #: includes/class-mla-main.php:1324
1092
  msgid "Draft"
1093
  msgstr ""
1094
 
1095
- #: includes/class-mla-main.php:1361 includes/class-mla-main.php:1399
1096
  msgid "ERROR: No post ID found"
1097
  msgstr ""
1098
 
1099
- #: includes/class-mla-main.php:1368 includes/class-mla-main.php:1406
1100
- #: includes/class-mla-main.php:1899
1101
  msgid "You are not allowed to edit this Attachment."
1102
  msgstr ""
1103
 
1104
- #: includes/class-mla-main.php:1497
 
 
 
 
 
 
 
 
 
 
 
 
1105
  msgid "All Post Types"
1106
  msgstr ""
1107
 
1108
- #: includes/class-mla-main.php:1541 includes/class-mla-media-modal.php:1227
1109
  #: includes/mla-media-modal-js-template.php:20
1110
  #: includes/mla-media-modal-js-template.php:61
1111
  msgid "Search"
1112
  msgstr ""
1113
 
1114
- #: includes/class-mla-main.php:1543
1115
  msgid "For"
1116
  msgstr ""
1117
 
1118
- #: includes/class-mla-main.php:1553
1119
  msgid "Unattached"
1120
  msgstr ""
1121
 
1122
- #: includes/class-mla-main.php:1558 includes/class-mla-main.php:1751
1123
- #: includes/class-mla-main.php:2096 includes/class-mla-settings.php:1161
1124
- #: includes/class-mla-settings.php:1420 includes/class-mla-settings.php:1517
1125
- #: includes/class-mla-settings.php:1589 includes/class-mla-settings.php:1885
 
1126
  msgid "Cancel"
1127
  msgstr ""
1128
 
1129
- #: includes/class-mla-main.php:1562 includes/class-mla-main.php:1752
1130
- #: includes/class-mla-main.php:2097 includes/class-mla-settings.php:1160
1131
- #: includes/class-mla-settings.php:1421 includes/class-mla-settings.php:1516
1132
- #: includes/class-mla-settings.php:1886
1133
- msgid "Update"
1134
- msgstr ""
1135
-
1136
- #: includes/class-mla-main.php:1651
1137
  msgid "more"
1138
  msgstr ""
1139
 
1140
- #: includes/class-mla-main.php:1652
1141
  msgid "less"
1142
  msgstr ""
1143
 
1144
- #: includes/class-mla-main.php:1655 includes/class-mla-main.php:1693
1145
  msgid "Add"
1146
  msgstr ""
1147
 
1148
- #: includes/class-mla-main.php:1656 includes/class-mla-main.php:1694
1149
  msgid "Remove"
1150
  msgstr ""
1151
 
1152
- #: includes/class-mla-main.php:1657 includes/class-mla-main.php:1695
1153
- #: includes/class-mla-options.php:3300 includes/class-mla-options.php:3397
1154
- #: includes/class-mla-options.php:3439 includes/class-mla-options.php:4328
1155
- #: includes/class-mla-options.php:4378 includes/class-mla-options.php:4475
1156
- #: includes/class-mla-options.php:4519 includes/class-mla-options.php:4544
1157
  msgid "Replace"
1158
  msgstr ""
1159
 
1160
- #: includes/class-mla-main.php:1744
1161
  msgid "Parent ID"
1162
  msgstr ""
1163
 
1164
- #: includes/class-mla-main.php:1753 includes/class-mla-options.php:3216
1165
- #: includes/class-mla-options.php:3475 includes/class-mla-settings.php:1422
1166
- #: includes/class-mla-settings.php:1887
1167
  msgid "Bulk Edit"
1168
  msgstr ""
1169
 
1170
- #: includes/class-mla-main.php:1759 includes/class-mla-main.php:1799
1171
- #: includes/class-mla-settings.php:1423 includes/class-mla-settings.php:1461
1172
- #: includes/class-mla-settings.php:1889
1173
  msgid "No Change"
1174
  msgstr ""
1175
 
1176
- #: includes/class-mla-main.php:1760
1177
  msgid "Allow"
1178
  msgstr ""
1179
 
1180
- #: includes/class-mla-main.php:1761
1181
  msgid "Do not allow"
1182
  msgstr ""
1183
 
1184
- #: includes/class-mla-main.php:1763 includes/class-mla-main.php:2098
1185
- msgid "Map IPTC/EXIF metadata"
 
 
 
 
 
 
1186
  msgstr ""
1187
 
1188
- #: includes/class-mla-main.php:1851
1189
  msgid "ERROR: You are not allowed to delete this item."
1190
  msgstr ""
1191
 
1192
  #. translators: 1: post ID
1193
- #: includes/class-mla-main.php:1859
1194
  #, php-format
1195
  msgid "ERROR: Item %1$d could NOT be deleted."
1196
  msgstr ""
1197
 
1198
  #. translators: 1: post ID
1199
- #: includes/class-mla-main.php:1866
1200
  #, php-format
1201
  msgid "Item %1$d permanently deleted."
1202
  msgstr ""
1203
 
1204
  #. translators: 1: page_template_array
1205
- #: includes/class-mla-main.php:1926
1206
  #, php-format
1207
  msgctxt "error_log"
1208
  msgid "ERROR: MLA::_display_single_item \\$page_template_array = \"%1$s\""
1209
  msgstr ""
1210
 
1211
- #: includes/class-mla-main.php:2100
1212
  msgid "File name"
1213
  msgstr ""
1214
 
1215
- #: includes/class-mla-main.php:2102
1216
  msgid "File type"
1217
  msgstr ""
1218
 
1219
- #: includes/class-mla-main.php:2103
1220
  msgid "Upload date"
1221
  msgstr ""
1222
 
1223
- #: includes/class-mla-main.php:2107
1224
  msgid "Dimensions"
1225
  msgstr ""
1226
 
1227
- #: includes/class-mla-main.php:2111
1228
  msgid "required"
1229
  msgstr ""
1230
 
1231
- #: includes/class-mla-main.php:2115
1232
  msgid "Must be unique; will be validated."
1233
  msgstr ""
1234
 
1235
- #: includes/class-mla-main.php:2118
1236
  msgid "Alternate text for the image, e.g. &#8220;The Mona Lisa&#8221;"
1237
  msgstr ""
1238
 
1239
- #: includes/class-mla-main.php:2126
1240
  msgid "ID, type and title of parent, if any."
1241
  msgstr ""
1242
 
1243
- #: includes/class-mla-main.php:2129
1244
  msgid "File URL"
1245
  msgstr ""
1246
 
1247
- #: includes/class-mla-main.php:2131
1248
  msgid "Location of the uploaded file."
1249
  msgstr ""
1250
 
1251
- #: includes/class-mla-main.php:2132
1252
  msgid "Image Metadata"
1253
  msgstr ""
1254
 
1255
- #: includes/class-mla-main.php:2167
1256
  msgid "ERROR: You are not allowed to move this item out of the Trash."
1257
  msgstr ""
1258
 
1259
  #. translators: 1: post ID
1260
- #: includes/class-mla-main.php:2175
1261
  #, php-format
1262
  msgid "ERROR: Item %1$d could NOT be restored from Trash."
1263
  msgstr ""
1264
 
1265
  #. translators: 1: post ID
1266
- #: includes/class-mla-main.php:2190
1267
  #, php-format
1268
  msgid "Item %1$d restored from Trash."
1269
  msgstr ""
1270
 
1271
- #: includes/class-mla-main.php:2207
1272
  msgid "ERROR: You are not allowed to move this item to the Trash."
1273
  msgstr ""
1274
 
1275
  #. translators: 1: post ID
1276
- #: includes/class-mla-main.php:2215
1277
  #, php-format
1278
  msgid "ERROR: Item %1$d could NOT be moved to Trash."
1279
  msgstr ""
1280
 
1281
  #: includes/class-mla-media-modal.php:244
1282
  #: includes/class-mla-media-modal.php:250
1283
- #: includes/class-mla-media-modal.php:830
1284
- #: includes/class-mla-media-modal.php:864
1285
- #: includes/class-mla-media-modal.php:909
1286
  msgid "Click to toggle"
1287
  msgstr ""
1288
 
@@ -1309,46 +1363,46 @@ msgstr ""
1309
  msgid "Loading..."
1310
  msgstr ""
1311
 
1312
- #: includes/class-mla-media-modal.php:875
1313
  msgid "Tags"
1314
  msgstr ""
1315
 
1316
  #. translators: %s: add new taxonomy label
1317
- #: includes/class-mla-media-modal.php:877
1318
  #, php-format
1319
  msgid "Add New %1$s"
1320
  msgstr ""
1321
 
1322
- #: includes/class-mla-media-modal.php:893
1323
  msgid "Choose from the most used tags"
1324
  msgstr ""
1325
 
1326
- #: includes/class-mla-media-modal.php:915
1327
  msgid "Not Supported"
1328
  msgstr ""
1329
 
1330
- #: includes/class-mla-media-modal.php:1210
1331
- #: includes/class-mla-media-modal.php:1226
1332
  msgid "Search Terms"
1333
  msgstr ""
1334
 
1335
- #: includes/class-mla-media-modal.php:1211
1336
  msgid "There are no taxonomies to search"
1337
  msgstr ""
1338
 
1339
- #: includes/class-mla-media-modal.php:1229
1340
  msgid "All phrases"
1341
  msgstr ""
1342
 
1343
- #: includes/class-mla-media-modal.php:1231
1344
  msgid "Any phrase"
1345
  msgstr ""
1346
 
1347
- #: includes/class-mla-media-modal.php:1233
1348
  msgid "All terms"
1349
  msgstr ""
1350
 
1351
- #: includes/class-mla-media-modal.php:1235
1352
  msgid "Any term"
1353
  msgstr ""
1354
 
@@ -1394,8 +1448,8 @@ msgstr ""
1394
 
1395
  #: includes/class-mla-mime-types.php:953
1396
  #: includes/class-mla-mime-types.php:1041
1397
- #: includes/class-mla-mime-types.php:1052 includes/class-mla-settings.php:1145
1398
- #: includes/class-mla-settings.php:1402
1399
  msgid "Slug"
1400
  msgstr ""
1401
 
@@ -1710,85 +1764,81 @@ msgstr ""
1710
  msgid "Automatically add paragraphs"
1711
  msgstr ""
1712
 
1713
- #: includes/class-mla-options.php:375
1714
  msgid "error loading tpls/mla-option-templates.tpl"
1715
  msgstr ""
1716
 
1717
- #: includes/class-mla-options.php:378
1718
  msgid "tpls/mla-option-templates.tpl not found"
1719
  msgstr ""
1720
 
1721
- #: includes/class-mla-options.php:431 includes/class-mla-options.php:1616
1722
  msgid "Attachment Categories"
1723
  msgstr ""
1724
 
1725
- #: includes/class-mla-options.php:434
1726
  msgid "Check this option to add support for Attachment Categories."
1727
  msgstr ""
1728
 
1729
- #: includes/class-mla-options.php:438 includes/class-mla-options.php:1631
1730
  msgid "Attachment Tags"
1731
  msgstr ""
1732
 
1733
- #: includes/class-mla-options.php:441
1734
  msgid "Check this option to add support for Attachment Tags."
1735
  msgstr ""
1736
 
1737
- #: includes/class-mla-options.php:445 includes/class-mla-settings.php:986
1738
  msgid "Where-used Reporting"
1739
  msgstr ""
1740
 
1741
- #: includes/class-mla-options.php:450
1742
  msgid "Exclude Revisions"
1743
  msgstr ""
1744
 
1745
- #: includes/class-mla-options.php:453
1746
  msgid "Check this option to exclude revisions from where-used reporting."
1747
  msgstr ""
1748
 
1749
- #: includes/class-mla-options.php:457
1750
  msgid "Where-used database access tuning"
1751
  msgstr ""
1752
 
1753
- #: includes/class-mla-options.php:466 includes/class-mla-options.php:475
1754
  msgid "Enabled"
1755
  msgstr ""
1756
 
1757
- #: includes/class-mla-options.php:467
1758
  msgid "Search database posts and pages for Featured Image attachments."
1759
  msgstr ""
1760
 
1761
- #: includes/class-mla-options.php:475
1762
  msgid "Base"
1763
  msgstr ""
1764
 
1765
- #: includes/class-mla-options.php:476
1766
  msgid ""
1767
  "Search database posts and pages for attachments embedded in content."
1768
  "<br>&nbsp;&nbsp;Base = ignore intermediate size suffixes; use path, base "
1769
  "name and extension only."
1770
  msgstr ""
1771
 
1772
- #: includes/class-mla-options.php:484 includes/class-mla-options.php:493
1773
  msgid "Dynamic"
1774
  msgstr ""
1775
 
1776
- #: includes/class-mla-options.php:484 includes/class-mla-options.php:493
1777
- msgid "Refresh"
1778
- msgstr ""
1779
-
1780
- #: includes/class-mla-options.php:484 includes/class-mla-options.php:493
1781
  msgid "Cached"
1782
  msgstr ""
1783
 
1784
- #: includes/class-mla-options.php:485
1785
  msgid ""
1786
  "Search database posts and pages for [gallery] shortcode results.<br>&nbsp;"
1787
  "&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = "
1788
  "never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached."
1789
  msgstr ""
1790
 
1791
- #: includes/class-mla-options.php:494
1792
  msgid ""
1793
  "Search database posts and pages for [mla_gallery] shortcode results."
1794
  "<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, "
@@ -1796,104 +1846,104 @@ msgid ""
1796
  "Cached."
1797
  msgstr ""
1798
 
1799
- #: includes/class-mla-options.php:498 includes/class-mla-settings.php:986
1800
  msgid "Taxonomy Support"
1801
  msgstr ""
1802
 
1803
- #: includes/class-mla-options.php:503
1804
  msgid "Compute Attachments Column"
1805
  msgstr ""
1806
 
1807
- #: includes/class-mla-options.php:506
1808
  msgid ""
1809
  "Check this option to calculate attachments per term in the Attachments "
1810
  "Column."
1811
  msgstr ""
1812
 
1813
- #: includes/class-mla-options.php:510
1814
  msgid ""
1815
  "Check the \"Support\" box to add the taxonomy to the Assistant and the Edit "
1816
  "Media screen."
1817
  msgstr ""
1818
 
1819
- #: includes/class-mla-options.php:511 includes/class-mla-options.php:517
1820
  msgid ""
1821
  "Check the \"Inline Edit\" box to display the taxonomy in the Quick Edit and "
1822
  "Bulk Edit areas."
1823
  msgstr ""
1824
 
1825
- #: includes/class-mla-options.php:512
1826
  msgid ""
1827
  "Check the \"Checklist\" box to enable the checklist-style meta box for a "
1828
  "flat taxonomy."
1829
  msgstr ""
1830
 
1831
- #: includes/class-mla-options.php:513
1832
  msgid ""
1833
  "You must also check the <strong>\"Enable enhanced checklist taxonomies\"</"
1834
  "strong> box below to enable this feature."
1835
  msgstr ""
1836
 
1837
- #: includes/class-mla-options.php:514
1838
  msgid ""
1839
  "Check the \"Term Search\" box to add the taxonomy to the \"Search Media/Terms"
1840
  "\" list."
1841
  msgstr ""
1842
 
1843
- #: includes/class-mla-options.php:515 includes/class-mla-options.php:685
1844
- #: includes/class-mla-settings.php:1018 includes/class-mla-settings.php:1019
1845
  msgid "For complete documentation"
1846
  msgstr ""
1847
 
1848
- #: includes/class-mla-options.php:515 includes/class-mla-options.php:685
1849
- #: includes/class-mla-settings.php:1018 includes/class-mla-settings.php:1019
1850
  msgid "click here"
1851
  msgstr ""
1852
 
1853
- #: includes/class-mla-options.php:518
1854
  msgid ""
1855
  "Use the \"List Filter\" option to select the taxonomy on which to filter the "
1856
  "Assistant table listing."
1857
  msgstr ""
1858
 
1859
- #: includes/class-mla-options.php:543
1860
  msgid "Media/Assistant Screen Options"
1861
  msgstr ""
1862
 
1863
- #: includes/class-mla-options.php:548
1864
  msgid "Admin Menu Options"
1865
  msgstr ""
1866
 
1867
- #: includes/class-mla-options.php:553
1868
  msgid "Page Title"
1869
  msgstr ""
1870
 
1871
- #: includes/class-mla-options.php:555 includes/class-mla-settings.php:360
1872
- #: includes/class-mla-settings.php:2559
1873
  msgid "Media Library Assistant"
1874
  msgstr ""
1875
 
1876
- #: includes/class-mla-options.php:557
1877
  msgid "Enter the title for the Media/Assistant submenu page"
1878
  msgstr ""
1879
 
1880
- #: includes/class-mla-options.php:561
1881
  msgid "Menu Title"
1882
  msgstr ""
1883
 
1884
- #: includes/class-mla-options.php:563
1885
  msgid "Assistant"
1886
  msgstr ""
1887
 
1888
- #: includes/class-mla-options.php:565
1889
  msgid "Enter the title for the Media/Assistant submenu entry"
1890
  msgstr ""
1891
 
1892
- #: includes/class-mla-options.php:569
1893
  msgid "Submenu Order"
1894
  msgstr ""
1895
 
1896
- #: includes/class-mla-options.php:573
1897
  msgid ""
1898
  "Enter the position of the Media/Assistant submenu entry.<br>&nbsp;&nbsp;0 = "
1899
  "natural order (at bottom),&nbsp;&nbsp;&nbsp;&nbsp;1 - 4 = at top<br>&nbsp;"
@@ -1901,223 +1951,231 @@ msgid ""
1901
  "\""
1902
  msgstr ""
1903
 
1904
- #: includes/class-mla-options.php:577
1905
  msgid "Display Media/Library"
1906
  msgstr ""
1907
 
1908
- #: includes/class-mla-options.php:580
1909
  msgid ""
1910
  "Check/uncheck this option to display/remove the WordPress Media/Library "
1911
  "submenu entry."
1912
  msgstr ""
1913
 
1914
- #: includes/class-mla-options.php:584
1915
  msgid "Table Defaults"
1916
  msgstr ""
1917
 
1918
- #: includes/class-mla-options.php:589
1919
  msgid "Order By"
1920
  msgstr ""
1921
 
1922
- #: includes/class-mla-options.php:593 includes/class-mla-options.php:775
1923
  msgid "Title/Name"
1924
  msgstr ""
1925
 
1926
- #: includes/class-mla-options.php:594
1927
  msgid "Select the column for the sort order of the Assistant table listing."
1928
  msgstr ""
1929
 
1930
- #: includes/class-mla-options.php:598
1931
  msgid "Order"
1932
  msgstr ""
1933
 
1934
- #: includes/class-mla-options.php:602
1935
  msgid "Ascending"
1936
  msgstr ""
1937
 
1938
- #: includes/class-mla-options.php:602
1939
  msgid "Descending"
1940
  msgstr ""
1941
 
1942
- #: includes/class-mla-options.php:603 includes/class-mla-options.php:785
1943
  msgid "Choose the sort order."
1944
  msgstr ""
1945
 
1946
- #: includes/class-mla-options.php:607
1947
  msgid "Views Width"
1948
  msgstr ""
1949
 
1950
- #: includes/class-mla-options.php:611
1951
  msgid "Enter the width for the views list, in pixels (px) or percent (%)"
1952
  msgstr ""
1953
 
1954
- #: includes/class-mla-options.php:615
1955
  msgid "Icon Size"
1956
  msgstr ""
1957
 
1958
- #: includes/class-mla-options.php:619
1959
  msgid "Enter the size of the thumbnail/icon images, in pixels"
1960
  msgstr ""
1961
 
1962
- #: includes/class-mla-options.php:623
 
 
 
 
 
 
 
 
1963
  msgid "Taxonomy Filter parameters"
1964
  msgstr ""
1965
 
1966
- #: includes/class-mla-options.php:628
1967
  msgid "Maximum Depth"
1968
  msgstr ""
1969
 
1970
- #: includes/class-mla-options.php:632
1971
  msgid ""
1972
  "Enter the number of levels displayed for hierarchial taxonomies; enter zero "
1973
  "for no limit."
1974
  msgstr ""
1975
 
1976
- #: includes/class-mla-options.php:636
1977
  msgid "Include Children"
1978
  msgstr ""
1979
 
1980
- #: includes/class-mla-options.php:639
1981
  msgid ""
1982
  "Check/uncheck this option to include/exclude children for hierarchical "
1983
  "taxonomies."
1984
  msgstr ""
1985
 
1986
- #: includes/class-mla-options.php:643
1987
  msgid "Search Media Defaults"
1988
  msgstr ""
1989
 
1990
- #: includes/class-mla-options.php:648
1991
  msgid "Display Search Controls"
1992
  msgstr ""
1993
 
1994
- #: includes/class-mla-options.php:651 includes/class-mla-options.php:746
1995
  msgid ""
1996
  "Check/uncheck this option to display/hide the and/or connector and search "
1997
  "fields controls."
1998
  msgstr ""
1999
 
2000
- #: includes/class-mla-options.php:655
2001
  msgid ""
2002
  "Use these controls to set defaults for the and/or connector and search "
2003
  "fields controls.<br>These defaults will be used for the Search Media boxes "
2004
  "on both the Media/Assistant submenu<br>and the Media Manager Modal Window."
2005
  msgstr ""
2006
 
2007
- #: includes/class-mla-options.php:668
2008
  msgid "Media/Edit Media Enhancements"
2009
  msgstr ""
2010
 
2011
- #: includes/class-mla-options.php:673
2012
  msgid "Enable enhanced \"checklist\" taxonomies"
2013
  msgstr ""
2014
 
2015
- #: includes/class-mla-options.php:676
2016
  msgid ""
2017
  "Check this option to enable the \"? Search\" feature for hierarchical "
2018
  "taxonomies, e.g., Att. Categories.<br>&nbsp;&nbsp;This option also enables "
2019
  "the \"checklist-style\" support for flat taxonomies, e.g., Att. Tags."
2020
  msgstr ""
2021
 
2022
- #: includes/class-mla-options.php:680
2023
  msgid "Enable Edit Media additional meta boxes"
2024
  msgstr ""
2025
 
2026
- #: includes/class-mla-options.php:683
2027
  msgid ""
2028
  "Check this option to add \"Parent Info\", \"Menu Order\", \"Attachment "
2029
  "Metadata\" and four \"where-used\" meta boxes to the Edit Media screen."
2030
  msgstr ""
2031
 
2032
- #: includes/class-mla-options.php:684
2033
  msgid "You can also use Filters to customize the meta boxes."
2034
  msgstr ""
2035
 
2036
- #: includes/class-mla-options.php:689
2037
  msgid "Media Manager/Media Grid Enhancements"
2038
  msgstr ""
2039
 
2040
- #: includes/class-mla-options.php:694
2041
  msgid "Enable Media Grid Enhancements"
2042
  msgstr ""
2043
 
2044
- #: includes/class-mla-options.php:697
2045
  msgid ""
2046
  "Check/uncheck this option to enable/disable Media Library Grid View "
2047
  "Enhancements."
2048
  msgstr ""
2049
 
2050
- #: includes/class-mla-options.php:701
2051
  msgid "Enable Media Manager Enhancements"
2052
  msgstr ""
2053
 
2054
- #: includes/class-mla-options.php:704
2055
  msgid ""
2056
  "Check/uncheck this option to enable/disable Media Manager Modal Window "
2057
  "Enhancements."
2058
  msgstr ""
2059
 
2060
- #: includes/class-mla-options.php:708
2061
  msgid "Media Manager Enhanced MIME Type filter"
2062
  msgstr ""
2063
 
2064
- #: includes/class-mla-options.php:711
2065
  msgid ""
2066
  "Check this option to filter by more MIME Types, e.g., text, applications."
2067
  msgstr ""
2068
 
2069
- #: includes/class-mla-options.php:715
2070
  msgid "Media Manager Month and Year filter"
2071
  msgstr ""
2072
 
2073
- #: includes/class-mla-options.php:718
2074
  msgid "Check this option to filter by month and year uploaded."
2075
  msgstr ""
2076
 
2077
- #: includes/class-mla-options.php:722
2078
  msgid "Media Manager Category/Tag filter"
2079
  msgstr ""
2080
 
2081
- #: includes/class-mla-options.php:725
2082
  msgid "Check this option to filter by taxonomy terms."
2083
  msgstr ""
2084
 
2085
- #: includes/class-mla-options.php:729
2086
  msgid "Media Manager Terms Search popup"
2087
  msgstr ""
2088
 
2089
- #: includes/class-mla-options.php:732
2090
  msgid "Check this option to enable the \"Terms Search\" popup window."
2091
  msgstr ""
2092
 
2093
- #: includes/class-mla-options.php:736
2094
  msgid "Media Manager Enhanced Search Media box"
2095
  msgstr ""
2096
 
2097
- #: includes/class-mla-options.php:739
2098
  msgid "Check this option to enable search box enhancements."
2099
  msgstr ""
2100
 
2101
- #: includes/class-mla-options.php:743
2102
  msgid "Media Manager Enhanced Search Media Controls"
2103
  msgstr ""
2104
 
2105
- #: includes/class-mla-options.php:750
2106
  msgid "Media Manager Checklist meta boxes"
2107
  msgstr ""
2108
 
2109
- #: includes/class-mla-options.php:753
2110
  msgid ""
2111
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
2112
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for any taxonomy that uses a "
2113
  "<strong>\"checklist-style\"</strong> meta box.</strong>"
2114
  msgstr ""
2115
 
2116
- #: includes/class-mla-options.php:757
2117
  msgid "Media Manager Flat meta boxes"
2118
  msgstr ""
2119
 
2120
- #: includes/class-mla-options.php:760
2121
  msgid ""
2122
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
2123
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies</"
@@ -2125,153 +2183,153 @@ msgid ""
2125
  "style\" meta box."
2126
  msgstr ""
2127
 
2128
- #: includes/class-mla-options.php:764
2129
  msgid "Media Manager auto-fill meta boxes"
2130
  msgstr ""
2131
 
2132
- #: includes/class-mla-options.php:767
2133
  msgid ""
2134
  "Check this option to automatically fill MLA-enhanced meta boxes in the "
2135
  "\"ATTACHMENT DETAILS\" pane<br>&nbsp;&nbsp;when the item is selected."
2136
  msgstr ""
2137
 
2138
- #: includes/class-mla-options.php:771
2139
  msgid "Media Manager Order By"
2140
  msgstr ""
2141
 
2142
- #: includes/class-mla-options.php:775 includes/class-mla-options.php:784
2143
- #: includes/class-mla-options.php:799 includes/class-mla-options.php:813
2144
- #: includes/class-mla-options.php:827 includes/class-mla-settings.php:1068
2145
  msgid "Media Manager Default"
2146
  msgstr ""
2147
 
2148
- #: includes/class-mla-options.php:776
2149
  msgid ""
2150
  "If you want to override the Media Manager default,<br>&nbsp;&nbsp;select a "
2151
  "column for the sort order of the Media Library listing."
2152
  msgstr ""
2153
 
2154
- #: includes/class-mla-options.php:780
2155
  msgid "Media Manager Order"
2156
  msgstr ""
2157
 
2158
- #: includes/class-mla-options.php:789
2159
  msgid "Attachment Display Settings"
2160
  msgstr ""
2161
 
2162
  #. translators: 1: option name, e.g., Alignment, Link To or Size
2163
- #: includes/class-mla-options.php:794 includes/class-mla-options.php:796
2164
  msgid "Alignment"
2165
  msgstr ""
2166
 
2167
- #: includes/class-mla-options.php:799
2168
  msgid "Left"
2169
  msgstr ""
2170
 
2171
- #: includes/class-mla-options.php:799
2172
  msgid "Center"
2173
  msgstr ""
2174
 
2175
- #: includes/class-mla-options.php:799
2176
  msgid "Right"
2177
  msgstr ""
2178
 
2179
  #. translators: 1: option name, e.g., Alignment, Link To or Size
2180
- #: includes/class-mla-options.php:808 includes/class-mla-options.php:810
2181
  msgid "Link To"
2182
  msgstr ""
2183
 
2184
- #: includes/class-mla-options.php:813
2185
  msgid "Media File"
2186
  msgstr ""
2187
 
2188
- #: includes/class-mla-options.php:813
2189
  msgid "Attachment Page"
2190
  msgstr ""
2191
 
2192
- #: includes/class-mla-options.php:813
2193
  msgid "Custom URL"
2194
  msgstr ""
2195
 
2196
  #. translators: 1: option name, e.g., Alignment, Link To or Size
2197
- #: includes/class-mla-options.php:822 includes/class-mla-options.php:824
2198
  msgid "Size"
2199
  msgstr ""
2200
 
2201
- #: includes/class-mla-options.php:827
2202
  msgid "Thumbnail"
2203
  msgstr ""
2204
 
2205
- #: includes/class-mla-options.php:827
2206
  msgid "Medium"
2207
  msgstr ""
2208
 
2209
- #: includes/class-mla-options.php:827
2210
  msgid "Large"
2211
  msgstr ""
2212
 
2213
- #: includes/class-mla-options.php:827
2214
  msgid "Full Size"
2215
  msgstr ""
2216
 
2217
- #: includes/class-mla-options.php:836
2218
  msgid "Default [mla_gallery] Templates and Settings"
2219
  msgstr ""
2220
 
2221
- #: includes/class-mla-options.php:841 includes/class-mla-options.php:885
2222
  msgid "Style Template"
2223
  msgstr ""
2224
 
2225
  #. translators: 1: template type 2: shortcode
2226
- #: includes/class-mla-options.php:847 includes/class-mla-options.php:857
2227
- #: includes/class-mla-options.php:891 includes/class-mla-options.php:901
2228
  #, php-format
2229
  msgid "Select the default %1$s for your %2$s shortcodes."
2230
  msgstr ""
2231
 
2232
- #: includes/class-mla-options.php:847 includes/class-mla-options.php:891
2233
- #: includes/class-mla-settings.php:2654 includes/class-mla-settings.php:2665
2234
- #: includes/class-mla-settings.php:2671 includes/class-mla-settings.php:2675
2235
- #: includes/class-mla-settings.php:2704 includes/class-mla-settings.php:2715
2236
  msgid "style template"
2237
  msgstr ""
2238
 
2239
- #: includes/class-mla-options.php:851 includes/class-mla-options.php:895
2240
  msgid "Markup Template"
2241
  msgstr ""
2242
 
2243
- #: includes/class-mla-options.php:857 includes/class-mla-options.php:901
2244
- #: includes/class-mla-settings.php:2744 includes/class-mla-settings.php:2757
2245
- #: includes/class-mla-settings.php:2763 includes/class-mla-settings.php:2767
2246
- #: includes/class-mla-settings.php:2836
2247
  msgid "markup template"
2248
  msgstr ""
2249
 
2250
- #: includes/class-mla-options.php:861 includes/class-mla-options.php:905
2251
  msgid "Default columns"
2252
  msgstr ""
2253
 
2254
- #: includes/class-mla-options.php:865
2255
  msgid ""
2256
  "Enter the number of [mla_tag_cloud] columns; must be a positive integer."
2257
  msgstr ""
2258
 
2259
- #: includes/class-mla-options.php:869 includes/class-mla-options.php:913
2260
  msgid "Default mla_margin"
2261
  msgstr ""
2262
 
2263
- #: includes/class-mla-options.php:873 includes/class-mla-options.php:917
2264
  msgid ""
2265
  "Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
2266
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"none\" to "
2267
  "remove the property entirely."
2268
  msgstr ""
2269
 
2270
- #: includes/class-mla-options.php:877 includes/class-mla-options.php:921
2271
  msgid "Default mla_itemwidth"
2272
  msgstr ""
2273
 
2274
- #: includes/class-mla-options.php:881 includes/class-mla-options.php:925
2275
  msgid ""
2276
  "Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
2277
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"calculate"
@@ -2281,15 +2339,15 @@ msgid ""
2281
  "the property entirely."
2282
  msgstr ""
2283
 
2284
- #: includes/class-mla-options.php:909
2285
  msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
2286
  msgstr ""
2287
 
2288
- #: includes/class-mla-options.php:945
2289
  msgid "Enable custom field mapping when adding new media"
2290
  msgstr ""
2291
 
2292
- #: includes/class-mla-options.php:948
2293
  msgid ""
2294
  "Check this option to enable mapping when uploading new media (attachments)."
2295
  "<br>&nbsp;&nbsp;Click Save Changes at the bottom of the screen if you change "
@@ -2297,18 +2355,18 @@ msgid ""
2297
  "buttons on the bulk edit, single edit and settings screens."
2298
  msgstr ""
2299
 
2300
- #: includes/class-mla-options.php:952
2301
  msgid "Enable custom field mapping when updating media metadata"
2302
  msgstr ""
2303
 
2304
- #: includes/class-mla-options.php:955 includes/class-mla-options.php:979
2305
  msgid ""
2306
  "Check this option to enable mapping when media (attachments) metadata is "
2307
  "regenerated,<br>&nbsp;&nbsp;e.g., when the Media/Edit Media \"Edit Image\" "
2308
  "functions are used."
2309
  msgstr ""
2310
 
2311
- #: includes/class-mla-options.php:959
2312
  msgid ""
2313
  "Update the custom field mapping values above, then click Save Changes to "
2314
  "make the updates permanent.<br>You can also make temporary updates and click "
@@ -2316,22 +2374,22 @@ msgid ""
2316
  "saving any rule changes."
2317
  msgstr ""
2318
 
2319
- #: includes/class-mla-options.php:969
2320
  msgid "Enable IPTC/EXIF Mapping when adding new media"
2321
  msgstr ""
2322
 
2323
- #: includes/class-mla-options.php:972
2324
  msgid ""
2325
  "Check this option to enable mapping when uploading new media (attachments)."
2326
  "<br>&nbsp;&nbsp;Does NOT affect the operation of the \"Map\" buttons on the "
2327
  "bulk edit, single edit and settings screens."
2328
  msgstr ""
2329
 
2330
- #: includes/class-mla-options.php:976
2331
  msgid "Enable IPTC/EXIF Mapping when updating media metadata"
2332
  msgstr ""
2333
 
2334
- #: includes/class-mla-options.php:983
2335
  msgid ""
2336
  "Update the standard field mapping values above, then click <strong>Save "
2337
  "Changes</strong> to make the updates permanent.<br>You can also make "
@@ -2340,13 +2398,13 @@ msgid ""
2340
  "changes."
2341
  msgstr ""
2342
 
2343
- #: includes/class-mla-options.php:993
2344
  msgid ""
2345
  "Update the taxonomy term mapping values above, then click <strong>Save "
2346
  "Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
2347
  msgstr ""
2348
 
2349
- #: includes/class-mla-options.php:1003
2350
  msgid ""
2351
  "<strong>Update</strong> individual custom field mapping values above, or "
2352
  "make several updates and click <strong>Save Changes</strong> below to apply "
@@ -2357,682 +2415,711 @@ msgid ""
2357
  "changes."
2358
  msgstr ""
2359
 
2360
- #: includes/class-mla-options.php:1013
2361
  msgid "IPTC/EXIF Mapping help"
2362
  msgstr ""
2363
 
2364
- #: includes/class-mla-options.php:1065
2365
  msgid "Enable View and Post MIME Type Support"
2366
  msgstr ""
2367
 
2368
- #: includes/class-mla-options.php:1068
2369
  msgid ""
2370
  "Check/uncheck this option to enable/disable Post MIME Type Support, then "
2371
  "click <strong>Save Changes</strong> to record the new setting."
2372
  msgstr ""
2373
 
2374
- #: includes/class-mla-options.php:1077
2375
  msgid "Post MIME Types help."
2376
  msgstr ""
2377
 
2378
- #: includes/class-mla-options.php:1080
2379
  msgctxt "post_mime_types_singular"
2380
  msgid "All"
2381
  msgstr ""
2382
 
2383
- #: includes/class-mla-options.php:1081
2384
  msgctxt "post_mime_types_plural"
2385
  msgid "All"
2386
  msgstr ""
2387
 
2388
- #: includes/class-mla-options.php:1086 includes/class-mla-options.php:1140
2389
- #: includes/class-mla-options.php:1149
2390
  msgctxt "post_mime_types_description"
2391
  msgid "Built-in view"
2392
  msgstr ""
2393
 
2394
- #: includes/class-mla-options.php:1089
2395
  msgctxt "post_mime_types_singular"
2396
  msgid "Image"
2397
  msgstr ""
2398
 
2399
- #: includes/class-mla-options.php:1090
2400
  msgctxt "post_mime_types_plural"
2401
  msgid "Images"
2402
  msgstr ""
2403
 
2404
- #: includes/class-mla-options.php:1095
2405
  msgctxt "post_mime_types_description"
2406
  msgid "All image subtypes"
2407
  msgstr ""
2408
 
2409
- #: includes/class-mla-options.php:1098
2410
  msgctxt "post_mime_types_singular"
2411
  msgid "Audio"
2412
  msgstr ""
2413
 
2414
- #: includes/class-mla-options.php:1099
2415
  msgctxt "post_mime_types_plural"
2416
  msgid "Audio"
2417
  msgstr ""
2418
 
2419
- #: includes/class-mla-options.php:1104
2420
  msgctxt "post_mime_types_description"
2421
  msgid "All audio subtypes"
2422
  msgstr ""
2423
 
2424
- #: includes/class-mla-options.php:1107
2425
  msgctxt "post_mime_types_singular"
2426
  msgid "Video"
2427
  msgstr ""
2428
 
2429
- #: includes/class-mla-options.php:1108
2430
  msgctxt "post_mime_types_plural"
2431
  msgid "Video"
2432
  msgstr ""
2433
 
2434
- #: includes/class-mla-options.php:1113
2435
  msgctxt "post_mime_types_description"
2436
  msgid "All video subtypes"
2437
  msgstr ""
2438
 
2439
- #: includes/class-mla-options.php:1116
2440
  msgctxt "post_mime_types_singular"
2441
  msgid "Text"
2442
  msgstr ""
2443
 
2444
- #: includes/class-mla-options.php:1117
2445
  msgctxt "post_mime_types_plural"
2446
  msgid "Text"
2447
  msgstr ""
2448
 
2449
- #: includes/class-mla-options.php:1122
2450
  msgctxt "post_mime_types_description"
2451
  msgid "All text subtypes"
2452
  msgstr ""
2453
 
2454
- #: includes/class-mla-options.php:1125
2455
  msgctxt "post_mime_types_singular"
2456
  msgid "Application"
2457
  msgstr ""
2458
 
2459
- #: includes/class-mla-options.php:1126
2460
  msgctxt "post_mime_types_plural"
2461
  msgid "Applications"
2462
  msgstr ""
2463
 
2464
- #: includes/class-mla-options.php:1131
2465
  msgctxt "post_mime_types_description"
2466
  msgid "All application subtypes"
2467
  msgstr ""
2468
 
2469
- #: includes/class-mla-options.php:1135
2470
  msgctxt "post_mime_types_plural"
2471
  msgid "Unattached"
2472
  msgstr ""
2473
 
2474
- #: includes/class-mla-options.php:1143
2475
  msgctxt "post_mime_types_singular"
2476
  msgid "Trash"
2477
  msgstr ""
2478
 
2479
- #: includes/class-mla-options.php:1144
2480
  msgctxt "post_mime_types_plural"
2481
  msgid "Trash"
2482
  msgstr ""
2483
 
2484
- #: includes/class-mla-options.php:1155
2485
  msgid "Enable Upload MIME Type Support"
2486
  msgstr ""
2487
 
2488
- #: includes/class-mla-options.php:1158
2489
  msgid ""
2490
  "Check/uncheck this option to enable/disable Upload MIME Type Support, then "
2491
  "click <strong>Save Changes</strong> to record the new setting."
2492
  msgstr ""
2493
 
2494
- #: includes/class-mla-options.php:1167
2495
  msgid "Upload MIME Types help."
2496
  msgstr ""
2497
 
2498
- #: includes/class-mla-options.php:1172
2499
  msgid "Enable MLA File Type Icons Support"
2500
  msgstr ""
2501
 
2502
- #: includes/class-mla-options.php:1175
2503
  msgid ""
2504
  "Check/uncheck this option to enable/disable MLA File Type Icons Support, "
2505
  "then click <strong>Save Changes</strong> to record the new setting."
2506
  msgstr ""
2507
 
2508
- #: includes/class-mla-options.php:1202 includes/class-mla-options.php:1224
2509
- #: includes/class-mla-options.php:1266
2510
  msgid "no templates exist"
2511
  msgstr ""
2512
 
2513
- #: includes/class-mla-options.php:1210
2514
  msgid "not found"
2515
  msgstr ""
2516
 
2517
  #. translators: 1: option name 2: action, e.g., update, delete, reset
2518
- #: includes/class-mla-options.php:1583 includes/class-mla-options.php:1747
2519
- #: includes/class-mla-options.php:1823 includes/class-mla-options.php:3513
2520
- #: includes/class-mla-options.php:4664
2521
  #, php-format
2522
  msgid "ERROR: Custom %1$s unknown action \"%2$s\""
2523
  msgstr ""
2524
 
2525
- #: includes/class-mla-options.php:1672
2526
  msgid "Support"
2527
  msgstr ""
2528
 
2529
- #: includes/class-mla-options.php:1673
2530
  msgid "Inline Edit"
2531
  msgstr ""
2532
 
2533
- #: includes/class-mla-options.php:1674
2534
  msgid "Checklist"
2535
  msgstr ""
2536
 
2537
- #: includes/class-mla-options.php:1675
2538
  msgid "Term Search"
2539
  msgstr ""
2540
 
2541
- #: includes/class-mla-options.php:1676
2542
  msgid "List Filter"
2543
  msgstr ""
2544
 
2545
- #: includes/class-mla-options.php:1677
2546
  msgid "Taxonomy"
2547
  msgstr ""
2548
 
2549
  #. translators: 1: taxonomy name
2550
- #: includes/class-mla-options.php:1695
2551
  #, php-format
2552
  msgid "List Filter ignored; %1$s not supported."
2553
  msgstr ""
2554
 
2555
  #. translators: 1: taxonomy name
2556
- #: includes/class-mla-options.php:1702
2557
  #, php-format
2558
  msgid "Inline Edit ignored; %1$s not supported."
2559
  msgstr ""
2560
 
2561
  #. translators: 1: taxonomy name
2562
- #: includes/class-mla-options.php:1712
2563
  #, php-format
2564
  msgid "Checklist ignored; %1$s not supported."
2565
  msgstr ""
2566
 
2567
  #. translators: 1: taxonomy name
2568
- #: includes/class-mla-options.php:1720
2569
  #, php-format
2570
  msgid "Term Search ignored; %1$s not supported."
2571
  msgstr ""
2572
 
2573
  #. translators: 1: option name, e.g., taxonomy_support
2574
- #: includes/class-mla-options.php:1737 includes/class-mla-options.php:1813
2575
  #, php-format
2576
  msgid "Update custom %1$s"
2577
  msgstr ""
2578
 
2579
  #. translators: 1: option name, e.g., taxonomy_support
2580
- #: includes/class-mla-options.php:1744 includes/class-mla-options.php:1820
2581
- #: includes/class-mla-options.php:4657
2582
  #, php-format
2583
  msgid "Reset custom %1$s"
2584
  msgstr ""
2585
 
2586
- #: includes/class-mla-options.php:1773
2587
  #: includes/mla-main-search-box-template.php:38
2588
  #: includes/mla-media-modal-js-template.php:24
2589
  msgid "and"
2590
  msgstr ""
2591
 
2592
- #: includes/class-mla-options.php:1775
2593
  #: includes/mla-main-search-box-template.php:40
2594
  #: includes/mla-media-modal-js-template.php:28
2595
  msgid "or"
2596
  msgstr ""
2597
 
2598
- #: includes/class-mla-options.php:1780 includes/class-mla-settings.php:2017
2599
- #: includes/class-mla-settings.php:2050 includes/class-mla-settings.php:2076
2600
- #: includes/class-mla-settings.php:2111 includes/class-mla-settings.php:2168
2601
- #: includes/class-mla-settings.php:2218
2602
  #: includes/mla-main-search-box-template.php:43
2603
  #: includes/mla-media-modal-js-template.php:36
2604
  msgid "Name"
2605
  msgstr ""
2606
 
2607
- #: includes/class-mla-options.php:1792
2608
  #: includes/mla-main-search-box-template.php:47
2609
  #: includes/mla-media-modal-js-template.php:53
2610
  msgid "Terms"
2611
  msgstr ""
2612
 
2613
- #: includes/class-mla-options.php:2885 includes/class-mla-options.php:3005
2614
- #: includes/class-mla-options.php:3845 includes/class-mla-options.php:3876
2615
- #: includes/class-mla-settings.php:1467
2616
  msgid "None (select a value)"
2617
  msgstr ""
2618
 
2619
- #: includes/class-mla-options.php:3012
2620
  msgid "Metadata (see below)"
2621
  msgstr ""
2622
 
2623
- #: includes/class-mla-options.php:3019
2624
  msgid "Template (see below)"
2625
  msgstr ""
2626
 
2627
  #. translators: 1: custom field name
2628
- #: includes/class-mla-options.php:3084 includes/class-mla-options.php:4148
2629
  #, php-format
2630
  msgid "ERROR: New field %1$s already exists."
2631
  msgstr ""
2632
 
2633
  #. translators: 1: custom field name
2634
- #: includes/class-mla-options.php:3089 includes/class-mla-options.php:4153
2635
  #, php-format
2636
  msgid "Adding new field %1$s."
2637
  msgstr ""
2638
 
2639
  #. translators: 1: custom field name
2640
- #: includes/class-mla-options.php:3099 includes/class-mla-options.php:4163
2641
  #, php-format
2642
  msgid "Adding new rule for %1$s."
2643
  msgstr ""
2644
 
2645
  #. translators: 1: custom field name
2646
- #: includes/class-mla-options.php:3130 includes/class-mla-options.php:4025
2647
- #: includes/class-mla-options.php:4184
2648
  #, php-format
2649
  msgid "Deleting rule for %1$s."
2650
  msgstr ""
2651
 
2652
  #. translators: 1: custom field name 2: attribute 3: old value 4: new value
2653
- #: includes/class-mla-options.php:3153 includes/class-mla-options.php:3174
2654
- #: includes/class-mla-options.php:3224 includes/class-mla-options.php:3231
2655
- #: includes/class-mla-options.php:3942 includes/class-mla-options.php:3949
2656
- #: includes/class-mla-options.php:3956 includes/class-mla-options.php:4050
2657
- #: includes/class-mla-options.php:4057 includes/class-mla-options.php:4092
2658
- #: includes/class-mla-options.php:4099 includes/class-mla-options.php:4194
2659
- #: includes/class-mla-options.php:4201
2660
  #, php-format
2661
  msgid "%1$s changing %2$s from %3$s to %4$s."
2662
  msgstr ""
2663
 
2664
- #: includes/class-mla-options.php:3153 includes/class-mla-options.php:3470
2665
  msgid "Data Source"
2666
  msgstr ""
2667
 
2668
- #: includes/class-mla-options.php:3159 includes/class-mla-options.php:3976
2669
- #: includes/class-mla-options.php:4077 includes/class-mla-options.php:4221
2670
  msgid "Replace to Keep"
2671
  msgstr ""
2672
 
2673
- #: includes/class-mla-options.php:3162 includes/class-mla-options.php:3979
2674
- #: includes/class-mla-options.php:4080 includes/class-mla-options.php:4224
2675
  msgid "Keep to Replace"
2676
  msgstr ""
2677
 
2678
  #. translators: 1: custom field name 2: attribute 3: old value 'to' new value
2679
- #: includes/class-mla-options.php:3167 includes/class-mla-options.php:3188
2680
- #: includes/class-mla-options.php:3202 includes/class-mla-options.php:3216
2681
- #: includes/class-mla-options.php:3245 includes/class-mla-options.php:3970
2682
- #: includes/class-mla-options.php:3984 includes/class-mla-options.php:4071
2683
- #: includes/class-mla-options.php:4085 includes/class-mla-options.php:4215
2684
- #: includes/class-mla-options.php:4229
2685
  #, php-format
2686
  msgid "%1$s changing %2$s value from %3$s."
2687
  msgstr ""
2688
 
2689
- #: includes/class-mla-options.php:3167 includes/class-mla-options.php:3471
2690
- #: includes/class-mla-options.php:3984 includes/class-mla-options.php:4085
2691
- #: includes/class-mla-options.php:4229 includes/class-mla-options.php:4351
2692
- #: includes/class-mla-options.php:4437 includes/class-mla-options.php:4555
2693
  msgid "Existing Text"
2694
  msgstr ""
2695
 
2696
- #: includes/class-mla-options.php:3174 includes/class-mla-options.php:3472
2697
  msgid "Format"
2698
  msgstr ""
2699
 
2700
- #: includes/class-mla-options.php:3180 includes/class-mla-options.php:3194
2701
- #: includes/class-mla-options.php:3208 includes/class-mla-options.php:3237
2702
  msgid "unchecked to checked"
2703
  msgstr ""
2704
 
2705
- #: includes/class-mla-options.php:3183 includes/class-mla-options.php:3197
2706
- #: includes/class-mla-options.php:3211 includes/class-mla-options.php:3240
2707
  msgid "checked to unchecked"
2708
  msgstr ""
2709
 
2710
- #: includes/class-mla-options.php:3188 includes/class-mla-options.php:3473
2711
  msgid "MLA Column"
2712
  msgstr ""
2713
 
2714
- #: includes/class-mla-options.php:3224
2715
  msgid "Metavalue name"
2716
  msgstr ""
2717
 
2718
- #: includes/class-mla-options.php:3231 includes/class-mla-options.php:3312
2719
- #: includes/class-mla-options.php:3408 includes/class-mla-options.php:3450
2720
  msgid "Option"
2721
  msgstr ""
2722
 
2723
- #: includes/class-mla-options.php:3245
2724
  msgid "Delete NULL"
2725
  msgstr ""
2726
 
2727
- #: includes/class-mla-options.php:3284 includes/class-mla-options.php:4449
2728
  msgid "No Custom Field Mapping Rules Defined"
2729
  msgstr ""
2730
 
2731
- #: includes/class-mla-options.php:3298 includes/class-mla-options.php:3395
2732
- #: includes/class-mla-options.php:3437 includes/class-mla-options.php:4326
2733
- #: includes/class-mla-options.php:4376 includes/class-mla-options.php:4473
2734
- #: includes/class-mla-options.php:4517 includes/class-mla-options.php:4542
2735
  msgid "Keep"
2736
  msgstr ""
2737
 
2738
- #: includes/class-mla-options.php:3302 includes/class-mla-options.php:3399
2739
- #: includes/class-mla-options.php:3441
2740
  msgid "Native"
2741
  msgstr ""
2742
 
2743
- #: includes/class-mla-options.php:3304 includes/class-mla-options.php:3401
2744
- #: includes/class-mla-options.php:3443
2745
  msgid "Commas"
2746
  msgstr ""
2747
 
2748
- #: includes/class-mla-options.php:3314 includes/class-mla-options.php:3410
2749
- #: includes/class-mla-options.php:3452
 
 
 
 
 
2750
  msgid "Text"
2751
  msgstr ""
2752
 
2753
- #: includes/class-mla-options.php:3316 includes/class-mla-options.php:3412
2754
- #: includes/class-mla-options.php:3454
2755
  msgid "Single"
2756
  msgstr ""
2757
 
2758
- #: includes/class-mla-options.php:3318 includes/class-mla-options.php:3414
2759
- #: includes/class-mla-options.php:3456
2760
  msgid "Export"
2761
  msgstr ""
2762
 
2763
- #: includes/class-mla-options.php:3320 includes/class-mla-options.php:3416
2764
- #: includes/class-mla-options.php:3458
2765
  msgid "Array"
2766
  msgstr ""
2767
 
2768
- #: includes/class-mla-options.php:3322 includes/class-mla-options.php:3418
2769
- #: includes/class-mla-options.php:3460
2770
  msgid "Multi"
2771
  msgstr ""
2772
 
2773
- #: includes/class-mla-options.php:3324 includes/class-mla-options.php:3420
2774
- #: includes/class-mla-options.php:3462
2775
  msgid "Delete NULL values"
2776
  msgstr ""
2777
 
2778
- #: includes/class-mla-options.php:3325 includes/class-mla-options.php:4476
2779
  msgid "Delete Rule"
2780
  msgstr ""
2781
 
2782
- #: includes/class-mla-options.php:3326 includes/class-mla-options.php:4477
2783
  msgid "Delete Rule AND Field"
2784
  msgstr ""
2785
 
2786
- #: includes/class-mla-options.php:3327 includes/class-mla-options.php:4478
2787
  msgid "Update Rule"
2788
  msgstr ""
2789
 
2790
- #: includes/class-mla-options.php:3328 includes/class-mla-options.php:4479
 
2791
  msgid "Map All Attachments"
2792
  msgstr ""
2793
 
2794
- #: includes/class-mla-options.php:3390 includes/class-mla-options.php:4506
2795
  msgid "Add a new Mapping Rule"
2796
  msgstr ""
2797
 
2798
- #: includes/class-mla-options.php:3421 includes/class-mla-options.php:4520
2799
  msgid "Add Rule"
2800
  msgstr ""
2801
 
2802
- #: includes/class-mla-options.php:3422 includes/class-mla-options.php:4521
2803
  msgid "Add Rule and Map All Attachments"
2804
  msgstr ""
2805
 
2806
- #: includes/class-mla-options.php:3432 includes/class-mla-options.php:4531
2807
  msgid "Add a new Field and Mapping Rule"
2808
  msgstr ""
2809
 
2810
- #: includes/class-mla-options.php:3463 includes/class-mla-options.php:4545
2811
  msgid "Add Field"
2812
  msgstr ""
2813
 
2814
- #: includes/class-mla-options.php:3464 includes/class-mla-options.php:4546
2815
  msgid "Add Field and Map All Attachments"
2816
  msgstr ""
2817
 
2818
- #: includes/class-mla-options.php:3469 includes/class-mla-options.php:3942
2819
- #: includes/class-mla-options.php:4347 includes/class-mla-options.php:4433
2820
- #: includes/class-mla-options.php:4551
2821
  msgid "Field Title"
2822
  msgstr ""
2823
 
2824
- #: includes/class-mla-options.php:3494
2825
  msgid "Custom field mapping rules updated."
2826
  msgstr ""
2827
 
2828
- #: includes/class-mla-options.php:3496
2829
  msgid "ERROR: Custom field mapping rules update failed."
2830
  msgstr ""
2831
 
2832
- #: includes/class-mla-options.php:3499
 
2833
  msgid "Custom field no mapping rule changes detected."
2834
  msgstr ""
2835
 
2836
- #: includes/class-mla-options.php:3507
2837
  msgid "Custom field mapping settings saved."
2838
  msgstr ""
2839
 
2840
- #: includes/class-mla-options.php:3509
2841
  msgid "ERROR: Custom field mapping settings reset failed."
2842
  msgstr ""
2843
 
2844
  #. translators: 1: custom field name
2845
- #: includes/class-mla-options.php:3930
2846
  #, php-format
2847
  msgid "ERROR: No old values for %1$s."
2848
  msgstr ""
2849
 
2850
- #: includes/class-mla-options.php:3949 includes/class-mla-options.php:4050
2851
- #: includes/class-mla-options.php:4194 includes/class-mla-options.php:4348
2852
- #: includes/class-mla-options.php:4434 includes/class-mla-options.php:4552
2853
  msgid "IPTC Value"
2854
  msgstr ""
2855
 
2856
- #: includes/class-mla-options.php:3956 includes/class-mla-options.php:4057
2857
- #: includes/class-mla-options.php:4201
2858
  msgid "EXIF Value"
2859
  msgstr ""
2860
 
2861
- #: includes/class-mla-options.php:3962 includes/class-mla-options.php:4063
2862
- #: includes/class-mla-options.php:4207
2863
  msgid "EXIF to IPTC"
2864
  msgstr ""
2865
 
2866
- #: includes/class-mla-options.php:3965 includes/class-mla-options.php:4066
2867
- #: includes/class-mla-options.php:4210
2868
  msgid "IPTC to EXIF"
2869
  msgstr ""
2870
 
2871
- #: includes/class-mla-options.php:3970 includes/class-mla-options.php:4071
2872
- #: includes/class-mla-options.php:4215 includes/class-mla-options.php:4350
2873
- #: includes/class-mla-options.php:4436 includes/class-mla-options.php:4554
2874
  msgid "Priority"
2875
  msgstr ""
2876
 
2877
- #: includes/class-mla-options.php:4092 includes/class-mla-options.php:4438
2878
  msgid "Delimiter(s)"
2879
  msgstr ""
2880
 
2881
- #: includes/class-mla-options.php:4322 includes/class-mla-options.php:4372
2882
- #: includes/class-mla-options.php:4469 includes/class-mla-options.php:4513
2883
- #: includes/class-mla-options.php:4538
2884
  msgid "IPTC"
2885
  msgstr ""
2886
 
2887
- #: includes/class-mla-options.php:4324 includes/class-mla-options.php:4374
2888
- #: includes/class-mla-options.php:4471 includes/class-mla-options.php:4515
2889
- #: includes/class-mla-options.php:4540
2890
  msgid "EXIF"
2891
  msgstr ""
2892
 
2893
- #: includes/class-mla-options.php:4349 includes/class-mla-options.php:4435
2894
- #: includes/class-mla-options.php:4553
2895
  msgid "EXIF/Template Value"
2896
  msgstr ""
2897
 
2898
  #. translators: 1: option name
2899
- #: includes/class-mla-options.php:4563
2900
  #, php-format
2901
  msgid "ERROR: Render unknown custom %1$s."
2902
  msgstr ""
2903
 
2904
  #. translators: 1: option name
2905
- #: includes/class-mla-options.php:4607
2906
  #, php-format
2907
  msgid "ERROR: Update/delete unknown custom %1$s."
2908
  msgstr ""
2909
 
2910
- #: includes/class-mla-options.php:4613
2911
  msgid "IPTC/EXIF mapping settings updated."
2912
  msgstr ""
2913
 
2914
- #: includes/class-mla-options.php:4615
2915
  msgid "ERROR: IPTC/EXIF settings update failed."
2916
  msgstr ""
2917
 
2918
- #: includes/class-mla-options.php:4618
 
2919
  msgid "IPTC/EXIF no mapping changes detected."
2920
  msgstr ""
2921
 
2922
  #. translators: 1: field type
2923
- #: includes/class-mla-options.php:4629 includes/class-mla-options.php:4639
2924
- #: includes/class-mla-options.php:4649 includes/class-mla-settings.php:2842
2925
  #, php-format
2926
  msgid "%1$s settings saved."
2927
  msgstr ""
2928
 
2929
- #: includes/class-mla-options.php:4629 includes/class-mla-options.php:4632
2930
- #: includes/class-mla-settings.php:3073 includes/class-mla-settings.php:3107
2931
- #: includes/class-mla-settings.php:3110
2932
  msgid "Standard field"
2933
  msgstr ""
2934
 
2935
  #. translators: 1: field type
2936
- #: includes/class-mla-options.php:4632 includes/class-mla-options.php:4642
2937
- #: includes/class-mla-options.php:4652
2938
  #, php-format
2939
  msgid "ERROR: IPTC/EXIF %1$s settings update failed."
2940
  msgstr ""
2941
 
2942
- #: includes/class-mla-options.php:4639 includes/class-mla-options.php:4642
2943
- #: includes/class-mla-settings.php:3133 includes/class-mla-settings.php:3167
2944
- #: includes/class-mla-settings.php:3170
2945
  msgid "Taxonomy term"
2946
  msgstr ""
2947
 
2948
- #: includes/class-mla-options.php:4649 includes/class-mla-options.php:4652
2949
- #: includes/class-mla-settings.php:2980 includes/class-mla-settings.php:2983
2950
- #: includes/class-mla-settings.php:3208 includes/class-mla-settings.php:3242
2951
- #: includes/class-mla-settings.php:3245
2952
  msgid "Custom field"
2953
  msgstr ""
2954
 
2955
  #. translators: 1: option name, e.g., taxonomy_support
2956
- #: includes/class-mla-options.php:4660
2957
  #, php-format
2958
  msgid "ERROR: Reset unknown custom %1$s"
2959
  msgstr ""
2960
 
2961
- #: includes/class-mla-settings.php:310 includes/class-mla-settings.php:328
2962
  msgid "no slug"
2963
  msgstr ""
2964
 
2965
- #: includes/class-mla-settings.php:360
 
 
 
 
2966
  msgid "Media Library Assistant Settings"
2967
  msgstr ""
2968
 
2969
- #: includes/class-mla-settings.php:379
2970
  msgid "Views per page"
2971
  msgstr ""
2972
 
2973
- #: includes/class-mla-settings.php:390
2974
  msgid "Types per page"
2975
  msgstr ""
2976
 
2977
- #: includes/class-mla-settings.php:401
2978
  msgid "Upload types per page"
2979
  msgstr ""
2980
 
2981
- #: includes/class-mla-settings.php:537
2982
  msgid "ERROR: No view slug found"
2983
  msgstr ""
2984
 
2985
- #: includes/class-mla-settings.php:580
2986
  msgid "ERROR: No upload slug found"
2987
  msgstr ""
2988
 
2989
- #: includes/class-mla-settings.php:616 includes/class-mla-settings.php:2560
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2990
  msgid "Settings"
2991
  msgstr ""
2992
 
2993
  #. translators: 1: function name 2: option type, e.g., radio, select, text
2994
- #: includes/class-mla-settings.php:664 includes/class-mla-settings.php:696
2995
- #: includes/class-mla-settings.php:834
2996
  #, php-format
2997
  msgctxt "error_log"
2998
  msgid "ERROR: %1$s unknown type = \"%2$s\""
2999
  msgstr ""
3000
 
3001
- #: includes/class-mla-settings.php:732 includes/class-mla-settings.php:992
3002
  msgid "Go to Top"
3003
  msgstr ""
3004
 
3005
- #: includes/class-mla-settings.php:883
3006
  msgid "General"
3007
  msgstr ""
3008
 
3009
- #: includes/class-mla-settings.php:884
3010
  msgid "Views"
3011
  msgstr ""
3012
 
3013
- #: includes/class-mla-settings.php:885
3014
  msgid "Uploads"
3015
  msgstr ""
3016
 
3017
- #: includes/class-mla-settings.php:886 includes/class-mla-settings.php:2842
3018
- #: includes/class-mla-settings.php:2845
3019
  msgid "MLA Gallery"
3020
  msgstr ""
3021
 
3022
- #: includes/class-mla-settings.php:887
3023
  msgid "Custom Fields"
3024
  msgstr ""
3025
 
3026
- #: includes/class-mla-settings.php:889
3027
  msgid "Documentation"
3028
  msgstr ""
3029
 
3030
- #: includes/class-mla-settings.php:984
3031
  msgid "General Processing Options"
3032
  msgstr ""
3033
 
3034
  #. translators: 1: - 4: page subheader values
3035
- #: includes/class-mla-settings.php:986
3036
  #, php-format
3037
  msgid ""
3038
  "In this tab you can find a number of options for controlling the "
@@ -3041,44 +3128,44 @@ msgid ""
3041
  "any changes you make."
3042
  msgstr ""
3043
 
3044
- #: includes/class-mla-settings.php:986
3045
  msgid "Media/Assistant Table Defaults"
3046
  msgstr ""
3047
 
3048
- #: includes/class-mla-settings.php:986
3049
  msgid "Media Manager Enhancements"
3050
  msgstr ""
3051
 
3052
- #: includes/class-mla-settings.php:987 includes/class-mla-settings.php:1347
3053
- #: includes/class-mla-settings.php:1400 includes/class-mla-settings.php:1817
3054
- #: includes/class-mla-settings.php:1867 includes/class-mla-settings.php:1953
3055
- #: includes/class-mla-settings.php:2357 includes/class-mla-settings.php:2360
3056
- #: includes/class-mla-settings.php:2480 includes/class-mla-settings.php:2482
3057
  msgid "Save Changes"
3058
  msgstr ""
3059
 
3060
- #: includes/class-mla-settings.php:988
3061
  msgid "Export ALL Settings"
3062
  msgstr ""
3063
 
3064
- #: includes/class-mla-settings.php:989
3065
  msgid "Delete General options and restore default settings"
3066
  msgstr ""
3067
 
3068
- #: includes/class-mla-settings.php:993
3069
  msgid "Support Our Work"
3070
  msgstr ""
3071
 
3072
- #: includes/class-mla-settings.php:994 includes/class-mla-settings.php:997
3073
  msgid "Donate to FTJ"
3074
  msgstr ""
3075
 
3076
- #: includes/class-mla-settings.php:995
3077
  msgid "Donate"
3078
  msgstr ""
3079
 
3080
  #. translators: 1: donation hyperlink
3081
- #: includes/class-mla-settings.php:997
3082
  #, php-format
3083
  msgid ""
3084
  "This plugin was inspired by my work on the WordPress web site for our "
@@ -3087,27 +3174,27 @@ msgid ""
3087
  "our work. Thank you!"
3088
  msgstr ""
3089
 
3090
- #: includes/class-mla-settings.php:997
3091
  msgid "tax-deductible donation"
3092
  msgstr ""
3093
 
3094
- #: includes/class-mla-settings.php:1018
3095
  msgid "enhanced version of the WordPress [gallery] shortcode."
3096
  msgstr ""
3097
 
3098
- #: includes/class-mla-settings.php:1019
3099
  msgid "enhanced version of the WordPress Tag Cloud."
3100
  msgstr ""
3101
 
3102
- #: includes/class-mla-settings.php:1031
3103
  msgid "Shortcodes made available by this plugin"
3104
  msgstr ""
3105
 
3106
- #: includes/class-mla-settings.php:1140
3107
  msgid "Edit View"
3108
  msgstr ""
3109
 
3110
- #: includes/class-mla-settings.php:1146 includes/class-mla-settings.php:1403
3111
  msgid ""
3112
  "The &#8220;slug&#8221; is the URL-friendly, unique key for the view. It must "
3113
  "be all lowercase and contain only letters, numbers, periods (.), slashes (/) "
@@ -3116,25 +3203,25 @@ msgid ""
3116
  "MIME</strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
3117
  msgstr ""
3118
 
3119
- #: includes/class-mla-settings.php:1147 includes/class-mla-settings.php:1404
3120
  msgid "Singular Label"
3121
  msgstr ""
3122
 
3123
- #: includes/class-mla-settings.php:1148 includes/class-mla-settings.php:1405
3124
  msgid "Plural Label"
3125
  msgstr ""
3126
 
3127
- #: includes/class-mla-settings.php:1149 includes/class-mla-settings.php:1406
3128
  msgid ""
3129
  "The labels, e.g., &#8220;Image&#8221; and &#8220;Images&#8221; are used for "
3130
  "column headers and other display purposes."
3131
  msgstr ""
3132
 
3133
- #: includes/class-mla-settings.php:1150 includes/class-mla-settings.php:1407
3134
  msgid "Specification"
3135
  msgstr ""
3136
 
3137
- #: includes/class-mla-settings.php:1151 includes/class-mla-settings.php:1408
3138
  msgid ""
3139
  "If the MIME type specification differs from the slug, enter it here. You may "
3140
  "include multiple MIME types, e.g., &#8220;audio,video&#8221; and/or wildcard "
@@ -3142,54 +3229,60 @@ msgid ""
3142
  "MIME Type box is checked."
3143
  msgstr ""
3144
 
3145
- #: includes/class-mla-settings.php:1152 includes/class-mla-settings.php:1409
3146
  msgid "Post MIME Type"
3147
  msgstr ""
3148
 
3149
- #: includes/class-mla-settings.php:1153 includes/class-mla-settings.php:1410
3150
  msgid ""
3151
  "Check this box if you want to add this entry to the list of MIME types "
3152
  "returned by wp_get_mime_types()."
3153
  msgstr ""
3154
 
3155
- #: includes/class-mla-settings.php:1154 includes/class-mla-settings.php:1411
3156
  msgid "Table View"
3157
  msgstr ""
3158
 
3159
- #: includes/class-mla-settings.php:1155 includes/class-mla-settings.php:1412
3160
  msgid ""
3161
  "Check this box if you want to add this entry to the list of Media/Assistant "
3162
  "table views."
3163
  msgstr ""
3164
 
3165
- #: includes/class-mla-settings.php:1157 includes/class-mla-settings.php:1414
3166
  msgid ""
3167
  "You can choose your own table view order by entering a number (1 for first, "
3168
  "etc.) in this field."
3169
  msgstr ""
3170
 
3171
- #: includes/class-mla-settings.php:1159 includes/class-mla-settings.php:1416
3172
- #: includes/class-mla-settings.php:1515 includes/class-mla-settings.php:1879
3173
  msgid ""
3174
  "The description can contain any documentation or notes you need to "
3175
  "understand or use the item."
3176
  msgstr ""
3177
 
 
 
 
 
 
 
3178
  #. translators: 1: view name/slug
3179
- #: includes/class-mla-settings.php:1309 includes/class-mla-settings.php:1779
3180
  #, php-format
3181
  msgid "Edit view \"%1$s\" cancelled."
3182
  msgstr ""
3183
 
3184
- #: includes/class-mla-settings.php:1344
3185
  msgid "View and Post MIME Type Support is disabled"
3186
  msgstr ""
3187
 
3188
- #: includes/class-mla-settings.php:1389 includes/class-mla-settings.php:1392
3189
  msgid "Library Views/Post MIME Type Processing"
3190
  msgstr ""
3191
 
3192
- #: includes/class-mla-settings.php:1390
3193
  msgid ""
3194
  "In this tab you can manage the list of \"Post MIME Types\", which are used "
3195
  "by WordPress to define the views for the <em><strong>Media/Library</strong></"
@@ -3201,7 +3294,7 @@ msgid ""
3201
  msgstr ""
3202
 
3203
  #. translators: 1: Documentation hyperlink
3204
- #: includes/class-mla-settings.php:1392
3205
  #, php-format
3206
  msgid ""
3207
  "You can find more information about library views, Post MIME types and how "
@@ -3210,100 +3303,100 @@ msgid ""
3210
  "screen."
3211
  msgstr ""
3212
 
3213
- #: includes/class-mla-settings.php:1392
3214
  msgid "Library View Processing documentation"
3215
  msgstr ""
3216
 
3217
- #: includes/class-mla-settings.php:1396 includes/class-mla-settings.php:1585
3218
- #: includes/class-mla-settings.php:1891
3219
  msgid "Displaying search results for"
3220
  msgstr ""
3221
 
3222
- #: includes/class-mla-settings.php:1397
3223
  msgid "Search Views"
3224
  msgstr ""
3225
 
3226
- #: includes/class-mla-settings.php:1401
3227
  msgid "Add New View"
3228
  msgstr ""
3229
 
3230
- #: includes/class-mla-settings.php:1417
3231
  msgid "Add View"
3232
  msgstr ""
3233
 
3234
- #: includes/class-mla-settings.php:1419 includes/class-mla-settings.php:1884
3235
  msgid "<strong>Quick Edit</strong>"
3236
  msgstr ""
3237
 
3238
- #: includes/class-mla-settings.php:1425
3239
  #: includes/class-mla-view-list-table.php:377
3240
  #: includes/class-mla-view-list-table.php:393
3241
  msgid "Yes"
3242
  msgstr ""
3243
 
3244
- #: includes/class-mla-settings.php:1500
3245
  msgid "Edit Upload MIME Type"
3246
  msgstr ""
3247
 
3248
- #: includes/class-mla-settings.php:1505 includes/class-mla-settings.php:1870
3249
  msgid "Extension"
3250
  msgstr ""
3251
 
3252
- #: includes/class-mla-settings.php:1506
3253
  msgid ""
3254
  "The &#8220;extension&#8221; is the file extension for this type, and a "
3255
  "unique key for the item. It must be all lowercase and contain only letters "
3256
  "and numbers."
3257
  msgstr ""
3258
 
3259
- #: includes/class-mla-settings.php:1508 includes/class-mla-settings.php:1873
3260
  msgid ""
3261
  "The MIME Type must be all lowercase and contain only letters, numbers, "
3262
  "periods (.), slashes (/) and hyphens (-). It <strong>must be a valid MIME</"
3263
  "strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
3264
  msgstr ""
3265
 
3266
- #: includes/class-mla-settings.php:1509 includes/class-mla-settings.php:1874
3267
  msgid "Icon Type"
3268
  msgstr ""
3269
 
3270
- #: includes/class-mla-settings.php:1511 includes/class-mla-settings.php:1875
3271
  msgid ""
3272
  "The Icon Type selects a thumbnail image displayed for non-image file types, "
3273
  "such as PDF documents."
3274
  msgstr ""
3275
 
3276
- #: includes/class-mla-settings.php:1512 includes/class-mla-settings.php:1876
3277
  msgid "Inactive"
3278
  msgstr ""
3279
 
3280
- #: includes/class-mla-settings.php:1513 includes/class-mla-settings.php:1877
3281
  msgid ""
3282
  "Check this box if you want to remove this entry from the list of Upload MIME "
3283
  "Types returned by get_allowed_mime_types()."
3284
  msgstr ""
3285
 
3286
- #: includes/class-mla-settings.php:1584
3287
  msgid "Known File Extension/MIME Type Associations"
3288
  msgstr ""
3289
 
3290
- #: includes/class-mla-settings.php:1586
3291
  msgid "Search Known MIME Types"
3292
  msgstr ""
3293
 
3294
- #: includes/class-mla-settings.php:1588 includes/class-mla-settings.php:1863
3295
  msgid "To search by extension, use \".\", e.g., \".doc\""
3296
  msgstr ""
3297
 
3298
- #: includes/class-mla-settings.php:1814
3299
  msgid "Upload MIME Type Support is disabled"
3300
  msgstr ""
3301
 
3302
- #: includes/class-mla-settings.php:1857 includes/class-mla-settings.php:1860
3303
  msgid "File Extension and MIME Type Processing"
3304
  msgstr ""
3305
 
3306
- #: includes/class-mla-settings.php:1858
3307
  msgid ""
3308
  "In this tab you can manage the list of file extension/MIME Type "
3309
  "associations, which are used by WordPress to decide what kind of files can "
@@ -3313,7 +3406,7 @@ msgid ""
3313
  msgstr ""
3314
 
3315
  #. translators: 1: Documentation hyperlink
3316
- #: includes/class-mla-settings.php:1860
3317
  #, php-format
3318
  msgid ""
3319
  "You can find more information about file extensions, MIME types and how "
@@ -3321,52 +3414,52 @@ msgid ""
3321
  "the <strong>\"Help\"</strong> tab in the upper-right corner of this screen."
3322
  msgstr ""
3323
 
3324
- #: includes/class-mla-settings.php:1860
3325
  msgid "File Extension Processing documentation"
3326
  msgstr ""
3327
 
3328
- #: includes/class-mla-settings.php:1862
3329
  msgid "Search Uploads"
3330
  msgstr ""
3331
 
3332
- #: includes/class-mla-settings.php:1868
3333
  msgid "Add New Upload MIME Type"
3334
  msgstr ""
3335
 
3336
- #: includes/class-mla-settings.php:1869
3337
  msgid ""
3338
  "To search the database of over 1,500 known extension/type associations, "
3339
  "click \"Search Known Types\" below the form."
3340
  msgstr ""
3341
 
3342
- #: includes/class-mla-settings.php:1871
3343
  msgid ""
3344
  "The &#8220;extension&#8221; is the file extension for this type, and unique "
3345
  "key for the item. It must be all lowercase and contain only letters and "
3346
  "numbers."
3347
  msgstr ""
3348
 
3349
- #: includes/class-mla-settings.php:1880
3350
  msgid "Add Upload MIME Type"
3351
  msgstr ""
3352
 
3353
- #: includes/class-mla-settings.php:1882
3354
  msgid "Search Known Types"
3355
  msgstr ""
3356
 
3357
- #: includes/class-mla-settings.php:1890
3358
  msgid "Active"
3359
  msgstr ""
3360
 
3361
- #: includes/class-mla-settings.php:1943
3362
  msgid "MLA Gallery Options"
3363
  msgstr ""
3364
 
3365
- #: includes/class-mla-settings.php:1944
3366
  msgid "Go to Markup Templates"
3367
  msgstr ""
3368
 
3369
- #: includes/class-mla-settings.php:1945
3370
  msgid ""
3371
  "In this tab you can view the default style and markup templates. You can "
3372
  "also define additional templates and use the <code>mla_style</code> and "
@@ -3376,121 +3469,146 @@ msgid ""
3376
  "Changes\" at the bottom of this page."
3377
  msgstr ""
3378
 
3379
- #: includes/class-mla-settings.php:1948
3380
  msgid "Style Templates"
3381
  msgstr ""
3382
 
3383
- #: includes/class-mla-settings.php:1951
3384
  msgid "Markup Templates"
3385
  msgstr ""
3386
 
3387
- #: includes/class-mla-settings.php:1964
3388
  msgid "Theme"
3389
  msgstr ""
3390
 
3391
- #: includes/class-mla-settings.php:2012
3392
  msgid ""
3393
  "This default template cannot be altered or deleted, but you can copy the "
3394
  "styles."
3395
  msgstr ""
3396
 
3397
- #: includes/class-mla-settings.php:2023 includes/class-mla-settings.php:2056
3398
- #: includes/class-mla-settings.php:2082
3399
  msgid "Styles"
3400
  msgstr ""
3401
 
3402
- #: includes/class-mla-settings.php:2027 includes/class-mla-settings.php:2060
3403
- #: includes/class-mla-settings.php:2086
3404
  msgid ""
3405
  "List of substitution parameters, e.g., [+selector+], on Documentation tab."
3406
  msgstr ""
3407
 
3408
- #: includes/class-mla-settings.php:2044 includes/class-mla-settings.php:2162
3409
  msgid "Delete this template"
3410
  msgstr ""
3411
 
3412
- #: includes/class-mla-settings.php:2045 includes/class-mla-settings.php:2163
3413
  msgid ""
3414
  "Check the box to delete this template when you press Update at the bottom of "
3415
  "the page."
3416
  msgstr ""
3417
 
3418
- #: includes/class-mla-settings.php:2071
3419
  msgid "Fill in a name and styles to add a new template."
3420
  msgstr ""
3421
 
3422
- #: includes/class-mla-settings.php:2106
3423
  msgid ""
3424
  "This default template cannot be altered or deleted, but you can copy the "
3425
  "markup."
3426
  msgstr ""
3427
 
3428
- #: includes/class-mla-settings.php:2118 includes/class-mla-settings.php:2175
3429
- #: includes/class-mla-settings.php:2225
3430
  msgid "Open"
3431
  msgstr ""
3432
 
3433
- #: includes/class-mla-settings.php:2122 includes/class-mla-settings.php:2179
3434
- #: includes/class-mla-settings.php:2229
3435
  msgid ""
3436
  "Markup for the beginning of the gallery. List of parameters, e.g., [+selector"
3437
  "+], on Documentation tab."
3438
  msgstr ""
3439
 
3440
- #: includes/class-mla-settings.php:2124 includes/class-mla-settings.php:2181
3441
- #: includes/class-mla-settings.php:2231
3442
  msgid "Row"
3443
  msgstr ""
3444
 
3445
- #: includes/class-mla-settings.php:2128 includes/class-mla-settings.php:2235
3446
  msgid "Markup for the beginning of each row in the gallery."
3447
  msgstr ""
3448
 
3449
- #: includes/class-mla-settings.php:2130 includes/class-mla-settings.php:2187
3450
- #: includes/class-mla-settings.php:2237
3451
  msgid "Item"
3452
  msgstr ""
3453
 
3454
- #: includes/class-mla-settings.php:2134 includes/class-mla-settings.php:2241
3455
  msgid "Markup for each item/cell of the gallery."
3456
  msgstr ""
3457
 
3458
- #: includes/class-mla-settings.php:2136 includes/class-mla-settings.php:2193
3459
- #: includes/class-mla-settings.php:2243
 
3460
  msgid "Close"
3461
  msgstr ""
3462
 
3463
- #: includes/class-mla-settings.php:2140 includes/class-mla-settings.php:2247
3464
  msgid "Markup for the end of each row in the gallery."
3465
  msgstr ""
3466
 
3467
- #: includes/class-mla-settings.php:2145 includes/class-mla-settings.php:2202
3468
- #: includes/class-mla-settings.php:2252
3469
  msgid "Markup for the end of the gallery."
3470
  msgstr ""
3471
 
3472
- #: includes/class-mla-settings.php:2185
3473
  msgid "Markup for the beginning of each row."
3474
  msgstr ""
3475
 
3476
- #: includes/class-mla-settings.php:2191
3477
  msgid "Markup for each item/cell."
3478
  msgstr ""
3479
 
3480
- #: includes/class-mla-settings.php:2197
3481
  msgid "Markup for the end of each row."
3482
  msgstr ""
3483
 
3484
- #: includes/class-mla-settings.php:2213
3485
  msgid "Fill in a name and markup to add a new template."
3486
  msgstr ""
3487
 
3488
- #: includes/class-mla-settings.php:2347 includes/class-mla-settings.php:2351
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3489
  msgid "Custom Field and Attachment Metadata Processing Options"
3490
  msgstr ""
3491
 
3492
  #. translators: 1: Documentation hyperlink
3493
- #: includes/class-mla-settings.php:2349
3494
  #, php-format
3495
  msgid ""
3496
  "In this tab you can define the rules for mapping several types of image "
@@ -3500,36 +3618,32 @@ msgid ""
3500
  "field. See the %1$s section of the Documentation for details."
3501
  msgstr ""
3502
 
3503
- #: includes/class-mla-settings.php:2349
3504
  msgid "Updating Attachment Metadata Documentation"
3505
  msgstr ""
3506
 
3507
- #: includes/class-mla-settings.php:2349
3508
  msgid "Adding or changing Attachment Metadata"
3509
  msgstr ""
3510
 
3511
  #. translators: 1: Documentation hyperlink
3512
- #: includes/class-mla-settings.php:2351 includes/class-mla-settings.php:2467
3513
  #, php-format
3514
  msgid ""
3515
  "You can find more information about using the controls in this tab to define "
3516
  "mapping rules and apply them in the %1$s section of the Documentation."
3517
  msgstr ""
3518
 
3519
- #: includes/class-mla-settings.php:2351
3520
  msgid "Custom Field Options documentation"
3521
  msgstr ""
3522
 
3523
- #: includes/class-mla-settings.php:2355 includes/class-mla-settings.php:2477
3524
  msgid "Custom field mapping"
3525
  msgstr ""
3526
 
3527
- #: includes/class-mla-settings.php:2358 includes/class-mla-settings.php:2362
3528
- msgid "Map All Rules, All Attachments Now"
3529
- msgstr ""
3530
-
3531
  #. translators: 1: "Save Changes"
3532
- #: includes/class-mla-settings.php:2360
3533
  #, php-format
3534
  msgid ""
3535
  "Click %1$s to update the \"Enable custom field mapping...\" checkbox and/or "
@@ -3538,18 +3652,22 @@ msgid ""
3538
  msgstr ""
3539
 
3540
  #. translators: 1: "Map All Rules..."
3541
- #: includes/class-mla-settings.php:2362
3542
  #, php-format
3543
  msgid ""
3544
  "Click %1$s to apply all the rules at once (rule changes will be applied but "
3545
  "not saved)."
3546
  msgstr ""
3547
 
3548
- #: includes/class-mla-settings.php:2464 includes/class-mla-settings.php:2467
 
 
 
 
3549
  msgid "IPTC &amp; EXIF Processing Options"
3550
  msgstr ""
3551
 
3552
- #: includes/class-mla-settings.php:2465
3553
  msgid ""
3554
  "In this tab you can define the rules for mapping IPTC (International Press "
3555
  "Telecommunications Council) and EXIF (EXchangeable Image File) metadata to "
@@ -3558,32 +3676,20 @@ msgid ""
3558
  "click \"Save Changes\" at the bottom of this page."
3559
  msgstr ""
3560
 
3561
- #: includes/class-mla-settings.php:2467
3562
  msgid "IPTC/EXIF Options documentation"
3563
  msgstr ""
3564
 
3565
- #: includes/class-mla-settings.php:2471
3566
  msgid "Standard field mapping"
3567
  msgstr ""
3568
 
3569
- #: includes/class-mla-settings.php:2472
3570
- msgid "Map All Attachments, Standard Fields Now"
3571
- msgstr ""
3572
-
3573
- #: includes/class-mla-settings.php:2474
3574
  msgid "Taxonomy term mapping"
3575
  msgstr ""
3576
 
3577
- #: includes/class-mla-settings.php:2475
3578
- msgid "Map All Attachments, Taxonomy Terms Now"
3579
- msgstr ""
3580
-
3581
- #: includes/class-mla-settings.php:2478
3582
- msgid "Map All Attachments, Custom Fields Now"
3583
- msgstr ""
3584
-
3585
  #. translators: 1: "Save Changes"
3586
- #: includes/class-mla-settings.php:2482
3587
  #, php-format
3588
  msgid ""
3589
  "Click %1$s to update the \"Enable IPTC/EXIF mapping...\" checkbox and/or all "
@@ -3591,159 +3697,159 @@ msgid ""
3591
  "performed.</strong>"
3592
  msgstr ""
3593
 
3594
- #: includes/class-mla-settings.php:2542
3595
  msgid "Media Library Assistant - Error"
3596
  msgstr ""
3597
 
3598
- #: includes/class-mla-settings.php:2543
3599
  msgid "You do not have permission to manage plugin settings."
3600
  msgstr ""
3601
 
3602
- #: includes/class-mla-settings.php:2571
3603
  msgid "ERROR: Cannot render content tab"
3604
  msgstr ""
3605
 
3606
- #: includes/class-mla-settings.php:2574
3607
  msgid "ERROR: Unknown content tab"
3608
  msgstr ""
3609
 
3610
  #. translators: 1: template type 2: template name
3611
- #: includes/class-mla-settings.php:2654 includes/class-mla-settings.php:2744
3612
  #, php-format
3613
  msgctxt "message_list"
3614
  msgid "Deleting %1$s \"%2$s\"."
3615
  msgstr ""
3616
 
3617
  #. translators: 1: template name 2: template type
3618
- #: includes/class-mla-settings.php:2665 includes/class-mla-settings.php:2757
3619
  #, php-format
3620
  msgid "ERROR: Reserved name \"%1$s\", new %2$s discarded."
3621
  msgstr ""
3622
 
3623
  #. translators: 1: template name 2: template type
3624
- #: includes/class-mla-settings.php:2671 includes/class-mla-settings.php:2763
3625
  #, php-format
3626
  msgid "ERROR: Duplicate name \"%1$s\", new %2$s discarded."
3627
  msgstr ""
3628
 
3629
  #. translators: 1: template type 2: template name
3630
- #: includes/class-mla-settings.php:2675 includes/class-mla-settings.php:2767
3631
  #, php-format
3632
  msgctxt "message_list"
3633
  msgid "Adding new %1$s \"%2$s\"."
3634
  msgstr ""
3635
 
3636
  #. translators: 1: element name 3: old value
3637
- #: includes/class-mla-settings.php:2685 includes/class-mla-settings.php:2777
3638
  #, php-format
3639
  msgid "ERROR: Blank %1$s, reverting to \"%3$s\"."
3640
  msgstr ""
3641
 
3642
- #: includes/class-mla-settings.php:2685 includes/class-mla-settings.php:2693
3643
- #: includes/class-mla-settings.php:2697
3644
  msgid "style template name"
3645
  msgstr ""
3646
 
3647
  #. translators: 1: element name 2: new value 3: old value
3648
- #: includes/class-mla-settings.php:2693 includes/class-mla-settings.php:2784
3649
  #, php-format
3650
  msgid "ERROR: Duplicate new %1$s \"%2$s\", reverting to \"%3$s\"."
3651
  msgstr ""
3652
 
3653
  #. translators: 1: element name 2: old_value 3: new_value
3654
- #: includes/class-mla-settings.php:2697 includes/class-mla-settings.php:2788
3655
  #, php-format
3656
  msgctxt "message_list"
3657
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
3658
  msgstr ""
3659
 
3660
  #. translators: 1: template type 2: template name
3661
- #: includes/class-mla-settings.php:2704
3662
  #, php-format
3663
  msgctxt "message_list"
3664
  msgid "Updating contents of %1$s \"%2$s\"."
3665
  msgstr ""
3666
 
3667
  #. translators: 1: template type
3668
- #: includes/class-mla-settings.php:2715 includes/class-mla-settings.php:2836
3669
  #, php-format
3670
  msgid "ERROR: Update of %1$s failed."
3671
  msgstr ""
3672
 
3673
- #: includes/class-mla-settings.php:2777 includes/class-mla-settings.php:2784
3674
- #: includes/class-mla-settings.php:2788
3675
  msgid "markup template name"
3676
  msgstr ""
3677
 
3678
  #. translators: 1: template name
3679
- #: includes/class-mla-settings.php:2796
3680
  #, php-format
3681
  msgctxt "message_list"
3682
  msgid "Updating open markup for \"%1$s\"."
3683
  msgstr ""
3684
 
3685
  #. translators: 1: template name
3686
- #: includes/class-mla-settings.php:2802
3687
  #, php-format
3688
  msgctxt "message_list"
3689
  msgid "Updating row open markup for \"%1$s\"."
3690
  msgstr ""
3691
 
3692
  #. translators: 1: template name
3693
- #: includes/class-mla-settings.php:2808
3694
  #, php-format
3695
  msgctxt "message_list"
3696
  msgid "Updating item markup for \"%1$s\"."
3697
  msgstr ""
3698
 
3699
  #. translators: 1: template name
3700
- #: includes/class-mla-settings.php:2814
3701
  #, php-format
3702
  msgctxt "message_list"
3703
  msgid "Updating row close markup for \"%1$s\"."
3704
  msgstr ""
3705
 
3706
  #. translators: 1: template name
3707
- #: includes/class-mla-settings.php:2820
3708
  #, php-format
3709
  msgctxt "message_list"
3710
  msgid "Updating close markup for \"%1$s\"."
3711
  msgstr ""
3712
 
3713
  #. translators: 1: field type
3714
- #: includes/class-mla-settings.php:2845
3715
  #, php-format
3716
  msgid "%1$s no changes detected."
3717
  msgstr ""
3718
 
3719
- #: includes/class-mla-settings.php:2880
3720
  msgid "View settings saved."
3721
  msgstr ""
3722
 
3723
- #: includes/class-mla-settings.php:2914
3724
  msgid "Upload MIME Type settings saved."
3725
  msgstr ""
3726
 
3727
- #: includes/class-mla-settings.php:2955
3728
  msgid "ERROR: No custom field mapping rules to process."
3729
  msgstr ""
3730
 
3731
  #. translators: 1: field type 2: examined count 3: updated count
3732
- #: includes/class-mla-settings.php:2980 includes/class-mla-settings.php:3107
3733
- #: includes/class-mla-settings.php:3167 includes/class-mla-settings.php:3242
3734
  #, php-format
3735
  msgid "%1$s mapping completed; %2$d attachment(s) examined, %3$d updated."
3736
  msgstr ""
3737
 
3738
  #. translators: 1: field type 2: examined count
3739
- #: includes/class-mla-settings.php:2983 includes/class-mla-settings.php:3110
3740
- #: includes/class-mla-settings.php:3170 includes/class-mla-settings.php:3245
3741
  #, php-format
3742
  msgid ""
3743
  "%1$s mapping completed; %2$d attachment(s) examined, no changes detected."
3744
  msgstr ""
3745
 
3746
- #: includes/class-mla-settings.php:3010
3747
  #, php-format
3748
  msgid "%s attachment"
3749
  msgid_plural "%s attachments"
@@ -3751,260 +3857,260 @@ msgstr[0] ""
3751
  msgstr[1] ""
3752
 
3753
  #. translators: 1: number of attachments
3754
- #: includes/class-mla-settings.php:3012
3755
  #, php-format
3756
  msgid "Deleted custom field value from %1$s."
3757
  msgstr ""
3758
 
3759
- #: includes/class-mla-settings.php:3015
3760
  msgid "No attachments contained this custom field."
3761
  msgstr ""
3762
 
3763
  #. translators: 1: field type
3764
- #: includes/class-mla-settings.php:3073 includes/class-mla-settings.php:3133
3765
- #: includes/class-mla-settings.php:3208
3766
  #, php-format
3767
  msgid "ERROR: No %1$s settings to process."
3768
  msgstr ""
3769
 
3770
- #: includes/class-mla-settings.php:3098 includes/class-mla-settings.php:3158
3771
- #: includes/class-mla-settings.php:3233
3772
  msgid "updated."
3773
  msgstr ""
3774
 
3775
  #. translators: 1: reference type, e.g., Gallery in
3776
- #: includes/class-mla-settings.php:3335 includes/class-mla-settings.php:3345
3777
  #, php-format
3778
  msgctxt "message_list"
3779
  msgid "%1$s - references updated."
3780
  msgstr ""
3781
 
3782
- #: includes/class-mla-settings.php:3385
3783
  msgid "General settings saved."
3784
  msgstr ""
3785
 
3786
  #. translators: 1: option name
3787
- #: includes/class-mla-settings.php:3416
3788
  #, php-format
3789
  msgctxt "message_list"
3790
  msgid "delete_option \"%1$s\""
3791
  msgstr ""
3792
 
3793
- #: includes/class-mla-settings.php:3424
3794
  msgid "General settings reset to default values."
3795
  msgstr ""
3796
 
3797
- #: includes/class-mla-settings.php:3466
3798
  msgid "select settings"
3799
  msgstr ""
3800
 
3801
- #: includes/class-mla-settings.php:3486
3802
  msgid "Import ALL Settings"
3803
  msgstr ""
3804
 
3805
- #: includes/class-mla-settings.php:3511
3806
  msgctxt "message_list"
3807
  msgid "exported"
3808
  msgstr ""
3809
 
3810
- #: includes/class-mla-settings.php:3513
3811
  msgctxt "message_list"
3812
  msgid "skipped"
3813
  msgstr ""
3814
 
3815
- #: includes/class-mla-settings.php:3520
3816
  msgid "ALL settings exported."
3817
  msgstr ""
3818
 
3819
  #. translators: 1: backup directory name
3820
- #: includes/class-mla-settings.php:3531
3821
  #, php-format
3822
  msgid "ERROR: The settings directory ( %1$s ) cannot be created."
3823
  msgstr ""
3824
 
3825
  #. translators: 1: backup directory name
3826
- #: includes/class-mla-settings.php:3535
3827
  #, php-format
3828
  msgid "ERROR: The settings directory ( %1$s ) is not writable."
3829
  msgstr ""
3830
 
3831
  #. translators: 1: backup file name
3832
- #: includes/class-mla-settings.php:3546
3833
  #, php-format
3834
  msgid "ERROR: The settings file ( %1$s ) could not be opened."
3835
  msgstr ""
3836
 
3837
  #. translators: 1: PHP error information
3838
- #: includes/class-mla-settings.php:3553
3839
  #, php-format
3840
  msgctxt "error_log"
3841
  msgid "ERROR: _export_settings $error_info = \"%1$s\"."
3842
  msgstr ""
3843
 
3844
  #. translators: 1: backup file name 2: error message
3845
- #: includes/class-mla-settings.php:3562
3846
  #, php-format
3847
  msgid "ERROR: Writing the settings file ( %1$s ) \"%2$s\"."
3848
  msgstr ""
3849
 
3850
  #. translators: 1: number of option settings
3851
- #: includes/class-mla-settings.php:3568
3852
  #, php-format
3853
  msgid "Settings exported; %1$s settings recorded."
3854
  msgstr ""
3855
 
3856
- #: includes/class-mla-settings.php:3586
3857
  msgid "No settings imported."
3858
  msgstr ""
3859
 
3860
- #: includes/class-mla-settings.php:3595
3861
  msgid "Please select an import settings file from the dropdown list."
3862
  msgstr ""
3863
 
3864
- #: includes/class-mla-settings.php:3599
3865
  msgid "ERROR: The import settings dropdown selection is missing."
3866
  msgstr ""
3867
 
3868
  #. translators: 1: PHP error information
3869
- #: includes/class-mla-settings.php:3607
3870
  #, php-format
3871
  msgctxt "error_log"
3872
  msgid "ERROR: _import_settings $error_info = \"%1$s\"."
3873
  msgstr ""
3874
 
3875
  #. translators: 1: backup file name 2: error message
3876
- #: includes/class-mla-settings.php:3616
3877
  #, php-format
3878
  msgid "ERROR: Reading the settings file ( %1$s ) \"%2$s\"."
3879
  msgstr ""
3880
 
3881
- #: includes/class-mla-settings.php:3626
3882
  msgctxt "message_list"
3883
  msgid "updated"
3884
  msgstr ""
3885
 
3886
- #: includes/class-mla-settings.php:3629
3887
  msgctxt "message_list"
3888
  msgid "unchanged"
3889
  msgstr ""
3890
 
3891
  #. translators: 1: number of option settings updated 2: number of option settings unchanged
3892
- #: includes/class-mla-settings.php:3634
3893
  #, php-format
3894
  msgid "Settings imported; %1$s updated, %2$s unchanged."
3895
  msgstr ""
3896
 
3897
- #: includes/class-mla-shortcodes.php:205
3898
- #: includes/class-mla-shortcodes.php:1134
3899
- #: includes/class-mla-shortcodes.php:2026
3900
- #: includes/class-mla-shortcodes.php:2303
3901
  msgid "Previous"
3902
  msgstr ""
3903
 
3904
- #: includes/class-mla-shortcodes.php:206
3905
- #: includes/class-mla-shortcodes.php:1135
3906
- #: includes/class-mla-shortcodes.php:2073
3907
- #: includes/class-mla-shortcodes.php:2309
3908
  msgid "Next"
3909
  msgstr ""
3910
 
3911
- #: includes/class-mla-shortcodes.php:287
3912
  msgid "mla_debug empty gallery"
3913
  msgstr ""
3914
 
3915
- #: includes/class-mla-shortcodes.php:351
3916
  msgid ""
3917
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
3918
  "<strong>default</strong>, query = "
3919
  msgstr ""
3920
 
3921
- #: includes/class-mla-shortcodes.php:668
3922
  msgid "unattached"
3923
  msgstr ""
3924
 
3925
- #: includes/class-mla-shortcodes.php:689
3926
  msgid "unknown"
3927
  msgstr ""
3928
 
3929
- #: includes/class-mla-shortcodes.php:1241
3930
  msgid "mla_debug attributes"
3931
  msgstr ""
3932
 
3933
- #: includes/class-mla-shortcodes.php:1242
3934
  msgid "mla_debug arguments"
3935
  msgstr ""
3936
 
3937
- #: includes/class-mla-shortcodes.php:1334
3938
  msgid "mla_debug empty cloud"
3939
  msgstr ""
3940
 
3941
- #: includes/class-mla-shortcodes.php:2666
3942
- #: includes/class-mla-shortcodes.php:2921
3943
- #: includes/class-mla-shortcodes.php:2952
3944
  msgid "ERROR: Invalid mla_gallery"
3945
  msgstr ""
3946
 
3947
- #: includes/class-mla-shortcodes.php:3111
3948
  msgid "mla_debug query"
3949
  msgstr ""
3950
 
3951
- #: includes/class-mla-shortcodes.php:3112
3952
  msgid "mla_debug request"
3953
  msgstr ""
3954
 
3955
- #: includes/class-mla-shortcodes.php:3113
3956
  msgid "mla_debug query_vars"
3957
  msgstr ""
3958
 
3959
- #: includes/class-mla-shortcodes.php:3114
3960
  msgid "mla_debug post_count"
3961
  msgstr ""
3962
 
3963
- #: includes/class-mla-shortcodes.php:3166
3964
  msgid "mla_debug WHERE filter"
3965
  msgstr ""
3966
 
3967
- #: includes/class-mla-shortcodes.php:3185
3968
  msgid "mla_debug modified WHERE filter"
3969
  msgstr ""
3970
 
3971
- #: includes/class-mla-shortcodes.php:3208
3972
  msgid "mla_debug ORDER BY filter, incoming"
3973
  msgstr ""
3974
 
3975
- #: includes/class-mla-shortcodes.php:3208
3976
  msgid "Replacement ORDER BY clause"
3977
  msgstr ""
3978
 
3979
- #: includes/class-mla-shortcodes.php:3231
3980
  msgid "mla_debug posts_clauses filter"
3981
  msgstr ""
3982
 
3983
- #: includes/class-mla-shortcodes.php:3249
3984
  msgid "mla_debug posts_clauses_request filter"
3985
  msgstr ""
3986
 
3987
- #: includes/class-mla-shortcodes.php:3433
3988
  msgid "Invalid taxonomy"
3989
  msgstr ""
3990
 
3991
- #: includes/class-mla-shortcodes.php:3612
3992
  msgid "mla_debug query arguments"
3993
  msgstr ""
3994
 
3995
- #: includes/class-mla-shortcodes.php:3613
3996
  msgid "mla_debug last_query"
3997
  msgstr ""
3998
 
3999
- #: includes/class-mla-shortcodes.php:3614
4000
  msgid "mla_debug last_error"
4001
  msgstr ""
4002
 
4003
- #: includes/class-mla-shortcodes.php:3615
4004
  msgid "mla_debug num_rows"
4005
  msgstr ""
4006
 
4007
- #: includes/class-mla-shortcodes.php:3616
4008
  msgid "mla_debug found_rows"
4009
  msgstr ""
4010
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Media Library Assistant\n"
4
+ "POT-Creation-Date: 2015-01-05 13:33-0800\n"
5
+ "PO-Revision-Date: 2015-01-05 13:38-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:1065
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:1302 includes/class-mla-main.php:1783
93
+ #: includes/class-mla-main.php:1858 includes/class-mla-media-modal.php:1176
94
  #: includes/class-mla-mime-types.php:483
95
  #: includes/class-mla-mime-types.php:1218
96
+ #: includes/class-mla-mime-types.php:2361 includes/class-mla-settings.php:1524
97
+ #: includes/class-mla-settings.php:1969
98
  #, php-format
99
  msgctxt "error_log"
100
  msgid "ERROR: %1$s non-array \"%2$s\""
101
  msgstr ""
102
 
103
  #. translators: 1: query filter details
104
+ #: includes/class-mla-data.php:1717
105
  #, php-format
106
  msgid "_execute_list_table_query $wp_filter = \"%1$s\"."
107
  msgstr ""
108
 
109
  #. translators: 1: query filter details
110
+ #: includes/class-mla-data.php:1720
111
  #, php-format
112
  msgctxt "error_log"
113
  msgid "DEBUG: _execute_list_table_query $wp_filter = \"%1$s\"."
114
  msgstr ""
115
 
116
  #. translators: 1: query details
117
+ #: includes/class-mla-data.php:1737
118
  #, php-format
119
  msgid "_execute_list_table_query WP_Query = \"%1$s\"."
120
  msgstr ""
121
 
122
  #. translators: 1: SQL statement
123
+ #: includes/class-mla-data.php:1739
124
  #, php-format
125
  msgid "_execute_list_table_query SQL_request = \"%1$s\"."
126
  msgstr ""
127
 
128
  #. translators: 1: query details
129
+ #: includes/class-mla-data.php:1742
130
  #, php-format
131
  msgctxt "error_log"
132
  msgid "DEBUG: _execute_list_table_query WP_Query = \"%1$s\"."
133
  msgstr ""
134
 
135
  #. translators: 1: SQL statement
136
+ #: includes/class-mla-data.php:1744
137
  #, php-format
138
  msgctxt "error_log"
139
  msgid "DEBUG: _execute_list_table_query SQL_request = \"%1$s\"."
140
  msgstr ""
141
 
142
  #. translators: 1: search filter details
143
+ #: includes/class-mla-data.php:2040
144
  #, php-format
145
+ msgid "mla_query_posts_search_filter = \"%1$s\"."
146
  msgstr ""
147
 
148
  #. translators: 1: search filter details
149
+ #: includes/class-mla-data.php:2043
150
  #, php-format
151
  msgctxt "error_log"
152
+ msgid "DEBUG: mla_query_posts_search_filter = \"%1$s\"."
153
  msgstr ""
154
 
155
  #. translators: 1: where filter details
156
+ #: includes/class-mla-data.php:2109
157
  #, php-format
158
  msgid "mla_query_posts_where_filter = \"%1$s\"."
159
  msgstr ""
160
 
161
  #. translators: 1: where filter details
162
+ #: includes/class-mla-data.php:2112
163
  #, php-format
164
  msgctxt "error_log"
165
  msgid "DEBUG: mla_query_posts_where_filter = \"%1$s\"."
166
  msgstr ""
167
 
168
  #. translators: 1: join filter details
169
+ #: includes/class-mla-data.php:2163
170
  #, php-format
171
  msgid "mla_query_posts_join_filter = \"%1$s\"."
172
  msgstr ""
173
 
174
  #. translators: 1: join filter details
175
+ #: includes/class-mla-data.php:2166
176
  #, php-format
177
  msgctxt "error_log"
178
  msgid "DEBUG: mla_query_posts_join_filter = \"%1$s\"."
179
  msgstr ""
180
 
181
  #. translators: 1: orderby details details
182
+ #: includes/class-mla-data.php:2265
183
  #, php-format
184
  msgid "mla_query_posts_orderby_filter = \"%1$s\"."
185
  msgstr ""
186
 
187
  #. translators: 1: orderby details details
188
+ #: includes/class-mla-data.php:2268
189
  #, php-format
190
  msgctxt "error_log"
191
  msgid "DEBUG: mla_query_posts_orderby_filter = \"%1$s\"."
192
  msgstr ""
193
 
194
  #. translators: 1: SQL clauses
195
+ #: includes/class-mla-data.php:2304
196
  #, php-format
197
  msgid "mla_query_posts_clauses_filter = \"%1$s\"."
198
  msgstr ""
199
 
200
  #. translators: 1: SQL clauses
201
+ #: includes/class-mla-data.php:2307
202
  #, php-format
203
  msgctxt "error_log"
204
  msgid "DEBUG: mla_query_posts_clauses_filter = \"%1$s\"."
205
  msgstr ""
206
 
207
  #. translators: 1: SQL clauses
208
+ #: includes/class-mla-data.php:2328
209
  #, php-format
210
  msgid "mla_query_posts_clauses_request_filter = \"%1$s\"."
211
  msgstr ""
212
 
213
  #. translators: 1: SQL clauses
214
+ #: includes/class-mla-data.php:2331
215
  #, php-format
216
  msgctxt "error_log"
217
  msgid "DEBUG: mla_query_posts_clauses_request_filter = \"%1$s\"."
218
  msgstr ""
219
 
220
  #. translators: 1: post ID
221
+ #: includes/class-mla-data.php:2363
222
  #, php-format
223
  msgctxt "error_log"
224
  msgid "ERROR: mla_get_attachment_by_id(%1$d) not found."
225
  msgstr ""
226
 
227
  #. translators: 1: post ID 2: post_type
228
+ #: includes/class-mla-data.php:2369
229
  #, php-format
230
  msgctxt "error_log"
231
  msgid "ERROR: mla_get_attachment_by_id(%1$d) wrong post_type \"%2$s\"."
232
  msgstr ""
233
 
234
+ #: includes/class-mla-data.php:2929 includes/class-mla-data.php:3252
235
+ #: includes/class-mla-list-table.php:959
236
  msgid "NO REFERENCE TESTS"
237
  msgstr ""
238
 
239
+ #: includes/class-mla-data.php:2935 includes/class-mla-data.php:3258
240
+ #: includes/class-mla-options.php:2661 includes/class-mla-options.php:2662
241
  msgid "ORPHAN"
242
  msgstr ""
243
 
244
+ #: includes/class-mla-data.php:2939 includes/class-mla-data.php:3262
245
  msgid "UNUSED"
246
  msgstr ""
247
 
248
+ #: includes/class-mla-data.php:2944 includes/class-mla-data.php:3267
249
  msgid "UNATTACHED"
250
  msgstr ""
251
 
252
+ #: includes/class-mla-data.php:2946 includes/class-mla-data.php:3269
253
  msgid "INVALID PARENT"
254
  msgstr ""
255
 
256
  #. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
257
+ #: includes/class-mla-data.php:3448
258
  #, php-format
259
  msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
260
  msgstr ""
261
 
262
  #. translators: 1: index
263
+ #: includes/class-mla-data.php:3694
264
  #, php-format
265
  msgctxt "error_log"
266
  msgid "ERROR: _build_pdf_indirect_objects bad value at $index = \"%1$d\"."
267
  msgstr ""
268
 
269
  #. translators: 1: source offset 2: nest level
270
+ #: includes/class-mla-data.php:4019
271
  #, php-format
272
  msgctxt "error_log"
273
  msgid "ERROR: _parse_pdf_dictionary offset = %1$d, nest = %2$d."
274
  msgstr ""
275
 
276
  #. translators: 1: dictionary excerpt
277
+ #: includes/class-mla-data.php:4021
278
  #, php-format
279
  msgctxt "error_log"
280
  msgid "ERROR: _parse_pdf_dictionary no end delimiter dump = %1$s."
281
  msgstr ""
282
 
283
  #. translators: 1: entry name 2: value excerpt
284
+ #: includes/class-mla-data.php:4067
285
  #, php-format
286
  msgctxt "error_log"
287
  msgid "ERROR: _parse_pdf_dictionary bad value [ %1$s ] dump = %2$s"
288
  msgstr ""
289
 
290
+ #: includes/class-mla-data.php:4181
291
  msgctxt "error_log"
292
  msgid "ERROR: _parse_xmp_metadata xml_parse_into_struct failed."
293
  msgstr ""
294
 
295
+ #: includes/class-mla-data.php:4184
296
  msgctxt "error_log"
297
  msgid "ERROR: _parse_xmp_metadata set option failed."
298
  msgstr ""
299
 
300
  #. translators: 1: path and file
301
+ #: includes/class-mla-data.php:4541
302
  #, php-format
303
  msgctxt "error_log"
304
  msgid "ERROR: File \"%1$s\", startxref not found."
305
  msgstr ""
306
 
307
  #. translators: 1: meta_key
308
+ #: includes/class-mla-data.php:5459
309
  #, php-format
310
  msgid "Deleting meta:%1$s"
311
  msgstr ""
312
 
313
  #. translators: 1: meta_key
314
+ #: includes/class-mla-data.php:5462
315
  #, php-format
316
  msgid "ERROR: meta:%1$s not found"
317
  msgstr ""
318
 
319
  #. translators: 1: meta_key 2: meta_value
320
+ #: includes/class-mla-data.php:5471
321
  #, php-format
322
  msgid "Adding meta:%1$s = %2$s"
323
  msgstr ""
324
 
325
  #. translators: 1: meta_key
326
+ #: includes/class-mla-data.php:5475
327
  #, php-format
328
  msgid "ERROR: Adding meta:%1$s; not found"
329
  msgstr ""
330
 
331
  #. translators: 1: meta_key
332
+ #: includes/class-mla-data.php:5482
333
  #, php-format
334
  msgid "Deleting Null meta:%1$s"
335
  msgstr ""
336
 
337
  #. translators: 1: element name 2: old_value 3: new_value
338
+ #: includes/class-mla-data.php:5492 includes/class-mla-data.php:5643
339
+ #: includes/class-mla-data.php:5704 includes/class-mla-data.php:5730
340
+ #: includes/class-mla-data.php:5764 includes/class-mla-data.php:5777
341
+ #: includes/class-mla-data.php:5786 includes/class-mla-data.php:5797
342
+ #: includes/class-mla-data.php:5808 includes/class-mla-data.php:5821
343
+ #: includes/class-mla-data.php:5830 includes/class-mla-data.php:5839
344
  #: includes/class-mla-mime-types.php:1052
345
  #: includes/class-mla-mime-types.php:2125
346
  #, php-format
348
  msgstr ""
349
 
350
  #. translators: 1: meta_key
351
+ #: includes/class-mla-data.php:5497
352
  #, php-format
353
  msgid "ERROR: Changing meta:%1$s; not found"
354
  msgstr ""
355
 
356
  #. translators: 1: meta_key
357
+ #: includes/class-mla-data.php:5557
358
  #, php-format
359
  msgid "Deleting %1$s"
360
  msgstr ""
361
 
362
  #. translators: 1: meta_key 2: new_value
363
+ #: includes/class-mla-data.php:5568
364
  #, php-format
365
  msgid "Adding %1$s = [%2$s]"
366
  msgstr ""
367
 
368
  #. translators: 1: meta_key 2: meta_value
369
+ #: includes/class-mla-data.php:5574
370
  #, php-format
371
  msgid "Adding %1$s = %2$s"
372
  msgstr ""
373
 
374
  #. translators: 1: meta_key
375
+ #: includes/class-mla-data.php:5598
376
  #, php-format
377
  msgid "Deleting old %1$s values"
378
  msgstr ""
379
 
380
  #. translators: 1: meta_key 2: old_value 3: new_value 4: update count
381
+ #: includes/class-mla-data.php:5628
382
  #, php-format
383
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
384
  msgstr ""
385
 
386
+ #: includes/class-mla-data.php:5686 includes/class-mla-main.php:2146
387
  msgid "ERROR: Could not retrieve Attachment."
388
  msgstr ""
389
 
390
+ #: includes/class-mla-data.php:5704 includes/class-mla-main.php:1505
391
+ #: includes/class-mla-main.php:1797 includes/class-mla-main.php:1987
392
+ #: includes/class-mla-main.php:2364 includes/class-mla-objects.php:275
393
+ #: includes/class-mla-options.php:1030 includes/class-mla-options.php:1790
394
  #: includes/mla-main-search-box-template.php:42
395
  #: includes/mla-media-modal-js-template.php:32
396
  msgid "Title"
397
  msgstr ""
398
 
399
  #. translators: 1: old_value
400
+ #: includes/class-mla-data.php:5727
401
  #, php-format
402
  msgid "ERROR: Could not change Name/Slug \"%1$s\"; name already exists"
403
  msgstr ""
404
 
405
+ #: includes/class-mla-data.php:5730 includes/class-mla-main.php:1988
406
+ #: includes/class-mla-main.php:2367 includes/class-mla-options.php:1037
407
  msgid "Name/Slug"
408
  msgstr ""
409
 
410
  #. translators: 1: old_value
411
+ #: includes/class-mla-data.php:5756
412
  #, php-format
413
  msgid "Deleting ALT Text, was \"%1$s\""
414
  msgstr ""
415
 
416
  #. translators: 1: old_value
417
+ #: includes/class-mla-data.php:5759
418
  #, php-format
419
  msgid "ERROR: Could not delete ALT Text, remains \"%1$s\""
420
  msgstr ""
421
 
422
+ #: includes/class-mla-data.php:5764 includes/class-mla-list-table.php:1204
423
+ #: includes/class-mla-main.php:1991 includes/class-mla-main.php:2370
424
+ #: includes/class-mla-options.php:1044 includes/class-mla-options.php:1796
425
  #: includes/mla-main-search-box-template.php:44
426
  #: includes/mla-media-modal-js-template.php:40
427
  msgid "ALT Text"
428
  msgstr ""
429
 
430
  #. translators: 1: old_value 2: new_value
431
+ #: includes/class-mla-data.php:5767
432
  #, php-format
433
  msgid "ERROR: Could not change ALT Text from \"%1$s\" to \"%2$s\""
434
  msgstr ""
435
 
436
+ #: includes/class-mla-data.php:5777 includes/class-mla-main.php:1989
437
+ #: includes/class-mla-main.php:2373 includes/class-mla-options.php:1051
438
+ #: includes/class-mla-options.php:1799
439
  #: includes/mla-main-search-box-template.php:45
440
  #: includes/mla-media-modal-js-template.php:45
441
  msgid "Caption"
442
  msgstr ""
443
 
444
+ #: includes/class-mla-data.php:5786 includes/class-mla-main.php:1990
445
+ #: includes/class-mla-main.php:2375 includes/class-mla-options.php:1058
446
+ #: includes/class-mla-options.php:1802 includes/class-mla-settings.php:1490
447
+ #: includes/class-mla-settings.php:1746 includes/class-mla-settings.php:1844
448
+ #: includes/class-mla-settings.php:2207
449
  #: includes/mla-main-search-box-template.php:46
450
  #: includes/mla-media-modal-js-template.php:49
451
  msgid "Description"
452
  msgstr ""
453
 
454
+ #: includes/class-mla-data.php:5797 includes/class-mla-list-table.php:933
455
+ #: includes/class-mla-list-table.php:1025 includes/class-mla-options.php:4145
456
+ #: includes/class-mla-options.php:4485
457
  msgid "Parent"
458
  msgstr ""
459
 
460
+ #: includes/class-mla-data.php:5808 includes/class-mla-edit-media.php:307
461
+ #: includes/class-mla-edit-media.php:447 includes/class-mla-main.php:1994
462
+ #: includes/class-mla-main.php:2381 includes/class-mla-settings.php:1488
463
+ #: includes/class-mla-settings.php:1744
464
  msgid "Menu Order"
465
  msgstr ""
466
 
467
+ #: includes/class-mla-data.php:5821 includes/class-mla-list-table.php:1361
468
+ #: includes/class-mla-main.php:1864 includes/class-mla-main.php:1966
469
+ #: includes/class-mla-main.php:2195
470
  msgid "Author"
471
  msgstr ""
472
 
473
+ #: includes/class-mla-data.php:5830 includes/class-mla-main.php:2005
474
  msgid "Comments"
475
  msgstr ""
476
 
477
+ #: includes/class-mla-data.php:5839 includes/class-mla-main.php:2006
478
  msgid "Pings"
479
  msgstr ""
480
 
481
+ #: includes/class-mla-data.php:5873
482
  msgid "Adding"
483
  msgstr ""
484
 
485
+ #: includes/class-mla-data.php:5877
486
  msgid "Removing"
487
  msgstr ""
488
 
489
+ #: includes/class-mla-data.php:5882
490
  msgid "Replacing"
491
  msgstr ""
492
 
493
+ #: includes/class-mla-data.php:5886
494
  msgid "Ignoring"
495
  msgstr ""
496
 
497
  #. translators: 1: action_name, 2: taxonomy
498
+ #: includes/class-mla-data.php:5898
499
  #, php-format
500
  msgid "%1$s \"%2$s\" terms"
501
  msgstr ""
502
 
503
  #. translators: 1: taxonomy
504
+ #: includes/class-mla-data.php:5902
505
  #, php-format
506
  msgid "You cannot assign \"%1$s\" terms"
507
  msgstr ""
508
 
509
  #. translators: 1: post ID
510
+ #: includes/class-mla-data.php:5914 includes/class-mla-main.php:1031
511
  #, php-format
512
  msgid "Item %1$d, no changes detected."
513
  msgstr ""
514
 
515
  #. translators: 1: post ID
516
+ #: includes/class-mla-data.php:5926
517
  #, php-format
518
  msgid "Item %1$d updated."
519
  msgstr ""
520
 
521
  #. translators: 1: post ID
522
+ #: includes/class-mla-data.php:5940
523
  #, php-format
524
  msgid "ERROR: Item %1$d update failed."
525
  msgstr ""
526
 
527
+ #: includes/class-mla-data.php:5963 includes/class-mla-edit-media.php:125
528
+ #: includes/class-mla-edit-media.php:170 includes/class-mla-main.php:340
529
+ #: includes/class-mla-main.php:377 includes/class-mla-main.php:1675
530
+ #: includes/class-mla-settings.php:340
531
  msgctxt "tag_delimiter"
532
  msgid ","
533
  msgstr ""
534
 
535
+ #: includes/class-mla-edit-media.php:172 includes/class-mla-main.php:364
536
  msgid "An ajax.fail error has occurred. Please reload the page and try again."
537
  msgstr ""
538
 
539
+ #: includes/class-mla-edit-media.php:173 includes/class-mla-main.php:365
540
  msgid "An ajax.done error has occurred. Please reload the page and try again."
541
  msgstr ""
542
 
553
  msgid "M j, Y @ G:i"
554
  msgstr ""
555
 
556
+ #: includes/class-mla-edit-media.php:218 includes/class-mla-main.php:2359
557
  msgid "Last modified"
558
  msgstr ""
559
 
561
  msgid "Map Custom Field metadata for this item"
562
  msgstr ""
563
 
564
+ #: includes/class-mla-edit-media.php:229 includes/class-mla-main.php:1597
565
+ #: includes/class-mla-main.php:2012
566
  msgid "Map Custom Field Metadata"
567
  msgstr ""
568
 
575
  msgstr ""
576
 
577
  #: includes/class-mla-edit-media.php:303 includes/class-mla-edit-media.php:426
578
+ #: includes/class-mla-main.php:2377
579
  msgid "Parent Info"
580
  msgstr ""
581
 
584
  msgstr ""
585
 
586
  #: includes/class-mla-edit-media.php:318 includes/class-mla-edit-media.php:505
587
+ #: includes/class-mla-main.php:2388 includes/class-mla-options.php:467
588
  msgid "Featured in"
589
  msgstr ""
590
 
591
  #: includes/class-mla-edit-media.php:322 includes/class-mla-edit-media.php:544
592
+ #: includes/class-mla-main.php:2390 includes/class-mla-options.php:476
593
  msgid "Inserted in"
594
  msgstr ""
595
 
596
  #: includes/class-mla-edit-media.php:326 includes/class-mla-edit-media.php:579
597
+ #: includes/class-mla-main.php:2392 includes/class-mla-options.php:485
598
+ #: includes/class-mla-settings.php:3722
599
  msgid "Gallery in"
600
  msgstr ""
601
 
602
  #: includes/class-mla-edit-media.php:330 includes/class-mla-edit-media.php:614
603
+ #: includes/class-mla-main.php:2394 includes/class-mla-options.php:494
604
+ #: includes/class-mla-settings.php:3732
605
  msgid "MLA Gallery in"
606
  msgstr ""
607
 
608
  #. translators: 1: function name 2: template key
609
+ #: includes/class-mla-edit-media.php:373 includes/class-mla-main.php:604
610
+ #: includes/class-mla-settings.php:553
611
  #, php-format
612
  msgctxt "error_log"
613
  msgid "ERROR: %1$s discarding \"%2$s\"; no title/order"
617
  msgid "Post Parent"
618
  msgstr ""
619
 
620
+ #: includes/class-mla-edit-media.php:427 includes/class-mla-main.php:1788
621
  msgid "Select Parent"
622
  msgstr ""
623
 
624
+ #: includes/class-mla-edit-media.php:427 includes/class-mla-main.php:1993
625
  #: includes/class-mla-upload-optional-list-table.php:281
626
  msgid "Select"
627
  msgstr ""
628
 
629
  #: includes/class-mla-edit-media.php:494 includes/class-mla-edit-media.php:532
630
  #: includes/class-mla-edit-media.php:568 includes/class-mla-edit-media.php:603
631
+ #: includes/class-mla-list-table.php:1061
632
+ #: includes/class-mla-list-table.php:1098
633
+ #: includes/class-mla-list-table.php:1133
634
+ #: includes/class-mla-list-table.php:1167 includes/class-mla-main.php:2208
635
+ #: includes/class-mla-main.php:2227 includes/class-mla-main.php:2244
636
+ #: includes/class-mla-main.php:2260
637
  msgid "PARENT"
638
  msgstr ""
639
 
651
  msgid "?&nbsp;Search"
652
  msgstr ""
653
 
654
+ #: includes/class-mla-list-table.php:200
 
 
 
 
 
 
 
 
 
 
655
  msgctxt "list_table_column"
656
  msgid "ID/Parent"
657
  msgstr ""
658
 
659
+ #: includes/class-mla-list-table.php:201
660
  msgctxt "list_table_column"
661
  msgid "Title/Name"
662
  msgstr ""
663
 
664
+ #: includes/class-mla-list-table.php:202
665
  msgctxt "list_table_column"
666
  msgid "Title"
667
  msgstr ""
668
 
669
+ #: includes/class-mla-list-table.php:203
670
  msgctxt "list_table_column"
671
  msgid "Name"
672
  msgstr ""
673
 
674
+ #: includes/class-mla-list-table.php:204
675
  msgctxt "list_table_column"
676
  msgid "Parent ID"
677
  msgstr ""
678
 
679
+ #: includes/class-mla-list-table.php:205
680
  msgctxt "list_table_column"
681
  msgid "Menu Order"
682
  msgstr ""
683
 
684
+ #: includes/class-mla-list-table.php:206
685
  msgctxt "list_table_column"
686
  msgid "Featured in"
687
  msgstr ""
688
 
689
+ #: includes/class-mla-list-table.php:207
690
  msgctxt "list_table_column"
691
  msgid "Inserted in"
692
  msgstr ""
693
 
694
+ #: includes/class-mla-list-table.php:208
695
  msgctxt "list_table_column"
696
  msgid "Gallery in"
697
  msgstr ""
698
 
699
+ #: includes/class-mla-list-table.php:209
700
  msgctxt "list_table_column"
701
  msgid "MLA Gallery in"
702
  msgstr ""
703
 
704
+ #: includes/class-mla-list-table.php:210
705
  msgctxt "list_table_column"
706
  msgid "ALT Text"
707
  msgstr ""
708
 
709
+ #: includes/class-mla-list-table.php:211
710
  msgctxt "list_table_column"
711
  msgid "Caption"
712
  msgstr ""
713
 
714
+ #: includes/class-mla-list-table.php:212
715
  #: includes/class-mla-upload-list-table.php:186
716
  #: includes/class-mla-upload-optional-list-table.php:171
717
  #: includes/class-mla-view-list-table.php:179
719
  msgid "Description"
720
  msgstr ""
721
 
722
+ #: includes/class-mla-list-table.php:213
723
  #: includes/class-mla-upload-list-table.php:178
724
  #: includes/class-mla-upload-optional-list-table.php:168
725
  msgctxt "list_table_column"
726
  msgid "MIME Type"
727
  msgstr ""
728
 
729
+ #: includes/class-mla-list-table.php:214
730
  msgctxt "list_table_column"
731
  msgid "File URL"
732
  msgstr ""
733
 
734
+ #: includes/class-mla-list-table.php:215
735
  msgctxt "list_table_column"
736
  msgid "Base File"
737
  msgstr ""
738
 
739
+ #: includes/class-mla-list-table.php:216
740
  msgctxt "list_table_column"
741
  msgid "Date"
742
  msgstr ""
743
 
744
+ #: includes/class-mla-list-table.php:217
745
  msgctxt "list_table_column"
746
  msgid "Last Modified"
747
  msgstr ""
748
 
749
+ #: includes/class-mla-list-table.php:218
750
  msgctxt "list_table_column"
751
  msgid "Author"
752
  msgstr ""
753
 
754
+ #: includes/class-mla-list-table.php:219
755
  msgctxt "list_table_column"
756
  msgid "Attached to"
757
  msgstr ""
758
 
759
+ #: includes/class-mla-list-table.php:240
760
+ msgid "All"
761
+ msgstr ""
762
+
763
+ #: includes/class-mla-list-table.php:241 includes/class-mla-settings.php:1755
764
+ #: includes/class-mla-view-list-table.php:379
765
+ #: includes/class-mla-view-list-table.php:395
766
+ msgid "No"
767
+ msgstr ""
768
+
769
+ #: includes/class-mla-list-table.php:624
770
+ #: includes/class-mla-list-table.php:1262 includes/class-mla-options.php:598
771
+ #: includes/class-mla-options.php:788 includes/class-mla-options.php:812
772
+ #: includes/class-mla-options.php:826 includes/class-mla-settings.php:2290
773
  msgid "None"
774
  msgstr ""
775
 
776
+ #: includes/class-mla-list-table.php:630 includes/class-mla-list-table.php:658
777
+ #: includes/class-mla-list-table.php:1200
778
+ #: includes/class-mla-list-table.php:1244
779
+ #: includes/class-mla-list-table.php:1274
780
  msgid "Filter by"
781
  msgstr ""
782
 
783
+ #: includes/class-mla-list-table.php:640
784
  msgid "not supported"
785
  msgstr ""
786
 
787
  #. translators: 1: column_name 2: column_values
788
+ #: includes/class-mla-list-table.php:678
789
  #: includes/class-mla-upload-list-table.php:247
790
  #: includes/class-mla-upload-optional-list-table.php:228
791
  #: includes/class-mla-view-list-table.php:236
793
  msgid "column_default: %1$s, %2$s"
794
  msgstr ""
795
 
796
+ #: includes/class-mla-list-table.php:744 includes/class-mla-list-table.php:789
797
+ #: includes/class-mla-list-table.php:791
798
  #: includes/class-mla-upload-list-table.php:312
799
  #: includes/class-mla-view-list-table.php:302
800
  msgid "Edit this item"
801
  msgstr ""
802
 
803
+ #: includes/class-mla-list-table.php:744 includes/class-mla-list-table.php:747
804
+ #: includes/class-mla-list-table.php:789 includes/class-mla-list-table.php:791
805
+ #: includes/class-mla-list-table.php:1066
806
+ #: includes/class-mla-list-table.php:1103
807
+ #: includes/class-mla-list-table.php:1138
808
+ #: includes/class-mla-list-table.php:1172
809
+ #: includes/class-mla-list-table.php:1378
810
+ #: includes/class-mla-list-table.php:1682
811
  #: includes/class-mla-upload-list-table.php:312
812
  #: includes/class-mla-upload-list-table.php:610
813
  #: includes/class-mla-view-list-table.php:302
815
  msgid "Edit"
816
  msgstr ""
817
 
818
+ #: includes/class-mla-list-table.php:777
819
  msgid "Restore this item from the Trash"
820
  msgstr ""
821
 
822
+ #: includes/class-mla-list-table.php:777
823
+ #: includes/class-mla-list-table.php:1679
824
  msgid "Restore"
825
  msgstr ""
826
 
827
+ #: includes/class-mla-list-table.php:794
828
  #: includes/class-mla-upload-list-table.php:314
829
  #: includes/class-mla-view-list-table.php:304
830
  msgid "Edit this item inline"
831
  msgstr ""
832
 
833
+ #: includes/class-mla-list-table.php:794 includes/class-mla-main.php:1986
834
+ #: includes/class-mla-options.php:3223 includes/class-mla-options.php:3504
835
  #: includes/class-mla-upload-list-table.php:314
836
  #: includes/class-mla-view-list-table.php:304
837
  msgid "Quick Edit"
838
  msgstr ""
839
 
840
+ #: includes/class-mla-list-table.php:800
841
  msgid "Move this item to the Trash"
842
  msgstr ""
843
 
844
+ #: includes/class-mla-list-table.php:800
845
+ #: includes/class-mla-list-table.php:1685
846
  msgid "Move to Trash"
847
  msgstr ""
848
 
849
+ #: includes/class-mla-list-table.php:805
850
  #: includes/class-mla-upload-list-table.php:318
851
  #: includes/class-mla-view-list-table.php:310
852
  msgid "Delete this item Permanently"
853
  msgstr ""
854
 
855
+ #: includes/class-mla-list-table.php:805
856
+ #: includes/class-mla-list-table.php:1680
857
  #: includes/class-mla-list-table.php:1687
 
858
  #: includes/class-mla-upload-list-table.php:318
859
  #: includes/class-mla-view-list-table.php:310
860
  #: includes/class-mla-view-list-table.php:514
861
  msgid "Delete Permanently"
862
  msgstr ""
863
 
864
+ #: includes/class-mla-list-table.php:813
865
  msgid "Download"
866
  msgstr ""
867
 
868
+ #: includes/class-mla-list-table.php:816
869
  msgid "View"
870
  msgstr ""
871
 
872
+ #: includes/class-mla-list-table.php:856 includes/class-mla-list-table.php:927
873
+ #: includes/class-mla-main.php:368 includes/class-mla-main.php:1509
874
  msgid "(no title)"
875
  msgstr ""
876
 
877
+ #: includes/class-mla-list-table.php:930
878
+ #: includes/class-mla-list-table.php:1022
879
  msgid "Filter by Parent ID"
880
  msgstr ""
881
 
882
+ #: includes/class-mla-list-table.php:1019
883
  msgid "(no title: bad ID)"
884
  msgstr ""
885
 
886
+ #: includes/class-mla-list-table.php:1054
887
+ #: includes/class-mla-list-table.php:1088
888
+ #: includes/class-mla-list-table.php:1126
889
+ #: includes/class-mla-list-table.php:1160 includes/class-mla-main.php:2216
890
+ #: includes/class-mla-main.php:2236 includes/class-mla-main.php:2252
891
+ #: includes/class-mla-main.php:2268 includes/class-mla-options.php:471
892
+ #: includes/class-mla-options.php:480 includes/class-mla-options.php:489
893
+ #: includes/class-mla-options.php:498
894
  msgid "Disabled"
895
  msgstr ""
896
 
897
+ #: includes/class-mla-list-table.php:1247 includes/class-mla-settings.php:1837
898
+ #: includes/class-mla-settings.php:2201
899
  msgid "MIME Type"
900
  msgstr ""
901
 
902
+ #: includes/class-mla-list-table.php:1278
903
+ msgid "Base File"
904
+ msgstr ""
905
+
906
+ #: includes/class-mla-list-table.php:1294
907
+ #: includes/class-mla-list-table.php:1327
908
  msgid "Unpublished"
909
  msgstr ""
910
 
911
  #. translators: 1: upload/last modified date and time
912
+ #: includes/class-mla-list-table.php:1303
913
+ #: includes/class-mla-list-table.php:1334
914
  #, php-format
915
  msgid "%1$s from now"
916
  msgstr ""
917
 
918
  #. translators: 1: upload/last modified date and time
919
+ #: includes/class-mla-list-table.php:1306
920
+ #: includes/class-mla-list-table.php:1336
921
  #, php-format
922
  msgid "%1$s ago"
923
  msgstr ""
924
 
925
  #. translators: format for upload/last modified date
926
  #. translators: date format in table columns, see http://php.net/date
927
+ #: includes/class-mla-list-table.php:1310
928
+ #: includes/class-mla-list-table.php:1339
929
+ #: includes/class-mla-list-table.php:1395 includes/class-mla-main.php:1532
930
  msgid "Y/m/d"
931
  msgstr ""
932
 
933
+ #: includes/class-mla-list-table.php:1358
934
  msgid "Filter by Author ID"
935
  msgstr ""
936
 
937
+ #: includes/class-mla-list-table.php:1397 includes/class-mla-options.php:1147
938
  msgctxt "post_mime_types_singular"
939
  msgid "Unattached"
940
  msgstr ""
941
 
942
+ #: includes/class-mla-list-table.php:1400
943
  msgid "Set Parent"
944
  msgstr ""
945
 
946
+ #: includes/class-mla-list-table.php:1531
947
  msgctxt "uploaded files"
948
  msgid "All"
949
  msgid_plural "All"
950
  msgstr[0] ""
951
  msgstr[1] ""
952
 
953
+ #: includes/class-mla-list-table.php:1713
954
  msgid "Filter"
955
  msgstr ""
956
 
957
+ #: includes/class-mla-list-table.php:1717
958
  #: includes/mla-media-modal-js-template.php:58
959
  msgid "Terms Search"
960
  msgstr ""
961
 
962
+ #: includes/class-mla-list-table.php:1723
963
  msgid "Clear Filter-by"
964
  msgstr ""
965
 
966
+ #: includes/class-mla-list-table.php:1727
967
  msgid "Empty Trash"
968
  msgstr ""
969
 
970
+ #: includes/class-mla-main.php:366 includes/class-mla-settings.php:337
 
971
  msgid "Error while saving the changes."
972
  msgstr ""
973
 
974
+ #: includes/class-mla-main.php:367 includes/class-mla-settings.php:338
 
975
  msgid "Remove From Bulk Edit"
976
  msgstr ""
977
 
978
+ #: includes/class-mla-main.php:369
979
  msgid "Bulk Edit items"
980
  msgstr ""
981
 
982
+ #: includes/class-mla-main.php:370 includes/class-mla-main.php:2013
983
+ #: includes/class-mla-settings.php:349
984
+ msgid "Waiting"
985
+ msgstr ""
986
+
987
+ #: includes/class-mla-main.php:371 includes/class-mla-main.php:2015
988
+ #: includes/class-mla-settings.php:351
989
+ msgid "Complete"
990
+ msgstr ""
991
+
992
+ #: includes/class-mla-main.php:372 includes/class-mla-settings.php:352
993
+ msgid "Unchanged"
994
+ msgstr ""
995
+
996
+ #: includes/class-mla-main.php:373 includes/class-mla-settings.php:353
997
+ msgid "Succeeded"
998
+ msgstr ""
999
+
1000
+ #: includes/class-mla-main.php:374 includes/class-mla-settings.php:354
1001
+ msgid "Failed"
1002
+ msgstr ""
1003
+
1004
+ #: includes/class-mla-main.php:375 includes/class-mla-settings.php:355
1005
+ msgid "CANCELED"
1006
+ msgstr ""
1007
+
1008
+ #: includes/class-mla-main.php:486
1009
  #, php-format
1010
  msgid "Item permanently deleted."
1011
  msgid_plural "%d items permanently deleted."
1013
  msgstr[1] ""
1014
 
1015
  #. translators: 1: post ID
1016
+ #: includes/class-mla-main.php:491 includes/class-mla-main.php:2476
1017
  #, php-format
1018
  msgid "Item %1$d moved to Trash."
1019
  msgstr ""
1020
 
1021
+ #: includes/class-mla-main.php:510
1022
  msgid "Entries per page"
1023
  msgstr ""
1024
 
1025
+ #: includes/class-mla-main.php:887
1026
+ msgid "ERROR: You are not allowed to edit Attachment: "
1027
  msgstr ""
1028
 
1029
+ #: includes/class-mla-main.php:1021
 
 
1030
  #, php-format
1031
+ msgid "ERROR: Unknown bulk action %1$s"
1032
+ msgstr ""
1033
+
1034
+ #: includes/class-mla-main.php:1043
1035
+ msgid "no changes detected"
1036
+ msgstr ""
1037
+
1038
+ #: includes/class-mla-main.php:1046 includes/class-mla-main.php:1194
1039
+ #: includes/class-mla-main.php:1305 includes/class-mla-main.php:1336
1040
+ #: includes/class-mla-main.php:1572 includes/class-mla-settings.php:631
1041
+ #: includes/class-mla-settings.php:671 includes/class-mla-settings.php:759
1042
+ #: includes/class-mla-settings.php:891 includes/class-mla-settings.php:1556
1043
+ #: includes/class-mla-settings.php:1633 includes/class-mla-settings.php:2020
1044
+ #: includes/class-mla-settings.php:2099 includes/class-mla-settings.php:2648
1045
+ #: includes/class-mla-settings.php:2780 includes/class-mla-settings.php:2923
1046
+ #: includes/class-mla-shortcodes.php:1307
1047
+ #: includes/class-mla-shortcodes.php:1381
1048
+ msgid "ERROR:"
1049
  msgstr ""
1050
 
1051
  #. translators: 1: action name, e.g., edit
1052
+ #: includes/class-mla-main.php:1087 includes/class-mla-settings.php:1612
1053
+ #: includes/class-mla-settings.php:2078
1054
  #, php-format
1055
  msgid "Bulk Action %1$s - no items selected."
1056
  msgstr ""
1057
 
1058
+ #: includes/class-mla-main.php:1136
1059
+ msgid "You do not have permission to manage attachments."
 
 
 
 
 
 
 
1060
  msgstr ""
1061
 
1062
+ #: includes/class-mla-main.php:1202
1063
  #, php-format
1064
  msgctxt "deleted items"
1065
  msgid "%s item deleted."
1067
  msgstr[0] ""
1068
  msgstr[1] ""
1069
 
1070
+ #: includes/class-mla-main.php:1204
1071
  msgid "No items deleted."
1072
  msgstr ""
1073
 
1074
+ #: includes/class-mla-main.php:1229
1075
  msgid "Edit single item"
1076
  msgstr ""
1077
 
1078
  #. translators: 1: post ID
1079
+ #: includes/class-mla-main.php:1244
1080
  #, php-format
1081
  msgid "Item %1$d cancelled."
1082
  msgstr ""
1083
 
1084
+ #: includes/class-mla-main.php:1279
1085
  msgid "Empty Terms Search; ignored"
1086
  msgstr ""
1087
 
1088
  #. translators: 1: row-level action, e.g., single_item_delete, single_item_edit
1089
  #. translators: 1: bulk_action, e.g., single_item_delete, single_item_edit
1090
+ #: includes/class-mla-main.php:1291 includes/class-mla-settings.php:1649
1091
+ #: includes/class-mla-settings.php:2117
1092
  #, php-format
1093
  msgid "Unknown mla_admin_action - \"%1$s\""
1094
  msgstr ""
1095
 
1096
+ #: includes/class-mla-main.php:1324
1097
  msgid "term search results for"
1098
  msgstr ""
1099
 
1100
+ #: includes/class-mla-main.php:1327
1101
  msgid "post/parent results for"
1102
  msgstr ""
1103
 
1104
+ #: includes/class-mla-main.php:1329
1105
  msgid "search results for"
1106
  msgstr ""
1107
 
1108
+ #: includes/class-mla-main.php:1505 includes/class-mla-main.php:1798
1109
  msgid "Type"
1110
  msgstr ""
1111
 
1112
+ #: includes/class-mla-main.php:1505 includes/class-mla-main.php:1799
1113
  msgid "Date"
1114
  msgstr ""
1115
 
1116
+ #: includes/class-mla-main.php:1505 includes/class-mla-main.php:1800
1117
+ #: includes/class-mla-settings.php:2217
1118
  msgid "Status"
1119
  msgstr ""
1120
 
1121
+ #: includes/class-mla-main.php:1515
1122
  msgid "Published"
1123
  msgstr ""
1124
 
1125
+ #: includes/class-mla-main.php:1518
1126
  msgid "Scheduled"
1127
  msgstr ""
1128
 
1129
+ #: includes/class-mla-main.php:1521
1130
  msgid "Pending Review"
1131
  msgstr ""
1132
 
1133
+ #: includes/class-mla-main.php:1524
1134
  msgid "Draft"
1135
  msgstr ""
1136
 
1137
+ #: includes/class-mla-main.php:1561 includes/class-mla-main.php:1630
1138
  msgid "ERROR: No post ID found"
1139
  msgstr ""
1140
 
1141
+ #: includes/class-mla-main.php:1568 includes/class-mla-main.php:1637
1142
+ #: includes/class-mla-main.php:2153
1143
  msgid "You are not allowed to edit this Attachment."
1144
  msgstr ""
1145
 
1146
+ #: includes/class-mla-main.php:1600 includes/class-mla-main.php:2011
1147
+ #: includes/class-mla-main.php:2352
1148
+ msgid "Map IPTC/EXIF metadata"
1149
+ msgstr ""
1150
+
1151
+ #: includes/class-mla-main.php:1603 includes/class-mla-main.php:1810
1152
+ #: includes/class-mla-main.php:2000 includes/class-mla-main.php:2351
1153
+ #: includes/class-mla-settings.php:1492 includes/class-mla-settings.php:1752
1154
+ #: includes/class-mla-settings.php:1846 includes/class-mla-settings.php:2215
1155
+ msgid "Update"
1156
+ msgstr ""
1157
+
1158
+ #: includes/class-mla-main.php:1745
1159
  msgid "All Post Types"
1160
  msgstr ""
1161
 
1162
+ #: includes/class-mla-main.php:1789 includes/class-mla-media-modal.php:1206
1163
  #: includes/mla-media-modal-js-template.php:20
1164
  #: includes/mla-media-modal-js-template.php:61
1165
  msgid "Search"
1166
  msgstr ""
1167
 
1168
+ #: includes/class-mla-main.php:1791
1169
  msgid "For"
1170
  msgstr ""
1171
 
1172
+ #: includes/class-mla-main.php:1801
1173
  msgid "Unattached"
1174
  msgstr ""
1175
 
1176
+ #: includes/class-mla-main.php:1806 includes/class-mla-main.php:1999
1177
+ #: includes/class-mla-main.php:2350 includes/class-mla-settings.php:1493
1178
+ #: includes/class-mla-settings.php:1751 includes/class-mla-settings.php:1847
1179
+ #: includes/class-mla-settings.php:1919 includes/class-mla-settings.php:2214
1180
+ #: includes/class-mla-settings.php:2681 includes/class-mla-settings.php:2807
1181
  msgid "Cancel"
1182
  msgstr ""
1183
 
1184
+ #: includes/class-mla-main.php:1899
 
 
 
 
 
 
 
1185
  msgid "more"
1186
  msgstr ""
1187
 
1188
+ #: includes/class-mla-main.php:1900
1189
  msgid "less"
1190
  msgstr ""
1191
 
1192
+ #: includes/class-mla-main.php:1903 includes/class-mla-main.php:1941
1193
  msgid "Add"
1194
  msgstr ""
1195
 
1196
+ #: includes/class-mla-main.php:1904 includes/class-mla-main.php:1942
1197
  msgid "Remove"
1198
  msgstr ""
1199
 
1200
+ #: includes/class-mla-main.php:1905 includes/class-mla-main.php:1943
1201
+ #: includes/class-mla-options.php:3321 includes/class-mla-options.php:3423
1202
+ #: includes/class-mla-options.php:3467 includes/class-mla-options.php:4374
1203
+ #: includes/class-mla-options.php:4424 includes/class-mla-options.php:4521
1204
+ #: includes/class-mla-options.php:4565 includes/class-mla-options.php:4590
1205
  msgid "Replace"
1206
  msgstr ""
1207
 
1208
+ #: includes/class-mla-main.php:1992
1209
  msgid "Parent ID"
1210
  msgstr ""
1211
 
1212
+ #: includes/class-mla-main.php:2001 includes/class-mla-options.php:3237
1213
+ #: includes/class-mla-options.php:3505 includes/class-mla-settings.php:1753
1214
+ #: includes/class-mla-settings.php:2216
1215
  msgid "Bulk Edit"
1216
  msgstr ""
1217
 
1218
+ #: includes/class-mla-main.php:2007 includes/class-mla-main.php:2053
1219
+ #: includes/class-mla-settings.php:1754 includes/class-mla-settings.php:1792
1220
+ #: includes/class-mla-settings.php:2218
1221
  msgid "No Change"
1222
  msgstr ""
1223
 
1224
+ #: includes/class-mla-main.php:2008
1225
  msgid "Allow"
1226
  msgstr ""
1227
 
1228
+ #: includes/class-mla-main.php:2009
1229
  msgid "Do not allow"
1230
  msgstr ""
1231
 
1232
+ #: includes/class-mla-main.php:2014
1233
+ msgid "In-process"
1234
+ msgstr ""
1235
+
1236
+ #: includes/class-mla-main.php:2016 includes/class-mla-options.php:489
1237
+ #: includes/class-mla-options.php:498 includes/class-mla-settings.php:2683
1238
+ #: includes/class-mla-settings.php:2809
1239
+ msgid "Refresh"
1240
  msgstr ""
1241
 
1242
+ #: includes/class-mla-main.php:2105
1243
  msgid "ERROR: You are not allowed to delete this item."
1244
  msgstr ""
1245
 
1246
  #. translators: 1: post ID
1247
+ #: includes/class-mla-main.php:2113
1248
  #, php-format
1249
  msgid "ERROR: Item %1$d could NOT be deleted."
1250
  msgstr ""
1251
 
1252
  #. translators: 1: post ID
1253
+ #: includes/class-mla-main.php:2120
1254
  #, php-format
1255
  msgid "Item %1$d permanently deleted."
1256
  msgstr ""
1257
 
1258
  #. translators: 1: page_template_array
1259
+ #: includes/class-mla-main.php:2180
1260
  #, php-format
1261
  msgctxt "error_log"
1262
  msgid "ERROR: MLA::_display_single_item \\$page_template_array = \"%1$s\""
1263
  msgstr ""
1264
 
1265
+ #: includes/class-mla-main.php:2354
1266
  msgid "File name"
1267
  msgstr ""
1268
 
1269
+ #: includes/class-mla-main.php:2356
1270
  msgid "File type"
1271
  msgstr ""
1272
 
1273
+ #: includes/class-mla-main.php:2357
1274
  msgid "Upload date"
1275
  msgstr ""
1276
 
1277
+ #: includes/class-mla-main.php:2361
1278
  msgid "Dimensions"
1279
  msgstr ""
1280
 
1281
+ #: includes/class-mla-main.php:2365
1282
  msgid "required"
1283
  msgstr ""
1284
 
1285
+ #: includes/class-mla-main.php:2369
1286
  msgid "Must be unique; will be validated."
1287
  msgstr ""
1288
 
1289
+ #: includes/class-mla-main.php:2372
1290
  msgid "Alternate text for the image, e.g. &#8220;The Mona Lisa&#8221;"
1291
  msgstr ""
1292
 
1293
+ #: includes/class-mla-main.php:2380
1294
  msgid "ID, type and title of parent, if any."
1295
  msgstr ""
1296
 
1297
+ #: includes/class-mla-main.php:2383
1298
  msgid "File URL"
1299
  msgstr ""
1300
 
1301
+ #: includes/class-mla-main.php:2385
1302
  msgid "Location of the uploaded file."
1303
  msgstr ""
1304
 
1305
+ #: includes/class-mla-main.php:2386
1306
  msgid "Image Metadata"
1307
  msgstr ""
1308
 
1309
+ #: includes/class-mla-main.php:2421
1310
  msgid "ERROR: You are not allowed to move this item out of the Trash."
1311
  msgstr ""
1312
 
1313
  #. translators: 1: post ID
1314
+ #: includes/class-mla-main.php:2429
1315
  #, php-format
1316
  msgid "ERROR: Item %1$d could NOT be restored from Trash."
1317
  msgstr ""
1318
 
1319
  #. translators: 1: post ID
1320
+ #: includes/class-mla-main.php:2444
1321
  #, php-format
1322
  msgid "Item %1$d restored from Trash."
1323
  msgstr ""
1324
 
1325
+ #: includes/class-mla-main.php:2461
1326
  msgid "ERROR: You are not allowed to move this item to the Trash."
1327
  msgstr ""
1328
 
1329
  #. translators: 1: post ID
1330
+ #: includes/class-mla-main.php:2469
1331
  #, php-format
1332
  msgid "ERROR: Item %1$d could NOT be moved to Trash."
1333
  msgstr ""
1334
 
1335
  #: includes/class-mla-media-modal.php:244
1336
  #: includes/class-mla-media-modal.php:250
1337
+ #: includes/class-mla-media-modal.php:809
1338
+ #: includes/class-mla-media-modal.php:843
1339
+ #: includes/class-mla-media-modal.php:888
1340
  msgid "Click to toggle"
1341
  msgstr ""
1342
 
1363
  msgid "Loading..."
1364
  msgstr ""
1365
 
1366
+ #: includes/class-mla-media-modal.php:854
1367
  msgid "Tags"
1368
  msgstr ""
1369
 
1370
  #. translators: %s: add new taxonomy label
1371
+ #: includes/class-mla-media-modal.php:856
1372
  #, php-format
1373
  msgid "Add New %1$s"
1374
  msgstr ""
1375
 
1376
+ #: includes/class-mla-media-modal.php:872
1377
  msgid "Choose from the most used tags"
1378
  msgstr ""
1379
 
1380
+ #: includes/class-mla-media-modal.php:894
1381
  msgid "Not Supported"
1382
  msgstr ""
1383
 
1384
+ #: includes/class-mla-media-modal.php:1189
1385
+ #: includes/class-mla-media-modal.php:1205
1386
  msgid "Search Terms"
1387
  msgstr ""
1388
 
1389
+ #: includes/class-mla-media-modal.php:1190
1390
  msgid "There are no taxonomies to search"
1391
  msgstr ""
1392
 
1393
+ #: includes/class-mla-media-modal.php:1208
1394
  msgid "All phrases"
1395
  msgstr ""
1396
 
1397
+ #: includes/class-mla-media-modal.php:1210
1398
  msgid "Any phrase"
1399
  msgstr ""
1400
 
1401
+ #: includes/class-mla-media-modal.php:1212
1402
  msgid "All terms"
1403
  msgstr ""
1404
 
1405
+ #: includes/class-mla-media-modal.php:1214
1406
  msgid "Any term"
1407
  msgstr ""
1408
 
1448
 
1449
  #: includes/class-mla-mime-types.php:953
1450
  #: includes/class-mla-mime-types.php:1041
1451
+ #: includes/class-mla-mime-types.php:1052 includes/class-mla-settings.php:1477
1452
+ #: includes/class-mla-settings.php:1733
1453
  msgid "Slug"
1454
  msgstr ""
1455
 
1764
  msgid "Automatically add paragraphs"
1765
  msgstr ""
1766
 
1767
+ #: includes/class-mla-options.php:380
1768
  msgid "error loading tpls/mla-option-templates.tpl"
1769
  msgstr ""
1770
 
1771
+ #: includes/class-mla-options.php:383
1772
  msgid "tpls/mla-option-templates.tpl not found"
1773
  msgstr ""
1774
 
1775
+ #: includes/class-mla-options.php:436 includes/class-mla-options.php:1629
1776
  msgid "Attachment Categories"
1777
  msgstr ""
1778
 
1779
+ #: includes/class-mla-options.php:439
1780
  msgid "Check this option to add support for Attachment Categories."
1781
  msgstr ""
1782
 
1783
+ #: includes/class-mla-options.php:443 includes/class-mla-options.php:1644
1784
  msgid "Attachment Tags"
1785
  msgstr ""
1786
 
1787
+ #: includes/class-mla-options.php:446
1788
  msgid "Check this option to add support for Attachment Tags."
1789
  msgstr ""
1790
 
1791
+ #: includes/class-mla-options.php:450 includes/class-mla-settings.php:1319
1792
  msgid "Where-used Reporting"
1793
  msgstr ""
1794
 
1795
+ #: includes/class-mla-options.php:455
1796
  msgid "Exclude Revisions"
1797
  msgstr ""
1798
 
1799
+ #: includes/class-mla-options.php:458
1800
  msgid "Check this option to exclude revisions from where-used reporting."
1801
  msgstr ""
1802
 
1803
+ #: includes/class-mla-options.php:462
1804
  msgid "Where-used database access tuning"
1805
  msgstr ""
1806
 
1807
+ #: includes/class-mla-options.php:471 includes/class-mla-options.php:480
1808
  msgid "Enabled"
1809
  msgstr ""
1810
 
1811
+ #: includes/class-mla-options.php:472
1812
  msgid "Search database posts and pages for Featured Image attachments."
1813
  msgstr ""
1814
 
1815
+ #: includes/class-mla-options.php:480
1816
  msgid "Base"
1817
  msgstr ""
1818
 
1819
+ #: includes/class-mla-options.php:481
1820
  msgid ""
1821
  "Search database posts and pages for attachments embedded in content."
1822
  "<br>&nbsp;&nbsp;Base = ignore intermediate size suffixes; use path, base "
1823
  "name and extension only."
1824
  msgstr ""
1825
 
1826
+ #: includes/class-mla-options.php:489 includes/class-mla-options.php:498
1827
  msgid "Dynamic"
1828
  msgstr ""
1829
 
1830
+ #: includes/class-mla-options.php:489 includes/class-mla-options.php:498
 
 
 
 
1831
  msgid "Cached"
1832
  msgstr ""
1833
 
1834
+ #: includes/class-mla-options.php:490
1835
  msgid ""
1836
  "Search database posts and pages for [gallery] shortcode results.<br>&nbsp;"
1837
  "&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = "
1838
  "never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached."
1839
  msgstr ""
1840
 
1841
+ #: includes/class-mla-options.php:499
1842
  msgid ""
1843
  "Search database posts and pages for [mla_gallery] shortcode results."
1844
  "<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, "
1846
  "Cached."
1847
  msgstr ""
1848
 
1849
+ #: includes/class-mla-options.php:503 includes/class-mla-settings.php:1319
1850
  msgid "Taxonomy Support"
1851
  msgstr ""
1852
 
1853
+ #: includes/class-mla-options.php:508
1854
  msgid "Compute Attachments Column"
1855
  msgstr ""
1856
 
1857
+ #: includes/class-mla-options.php:511
1858
  msgid ""
1859
  "Check this option to calculate attachments per term in the Attachments "
1860
  "Column."
1861
  msgstr ""
1862
 
1863
+ #: includes/class-mla-options.php:515
1864
  msgid ""
1865
  "Check the \"Support\" box to add the taxonomy to the Assistant and the Edit "
1866
  "Media screen."
1867
  msgstr ""
1868
 
1869
+ #: includes/class-mla-options.php:516 includes/class-mla-options.php:522
1870
  msgid ""
1871
  "Check the \"Inline Edit\" box to display the taxonomy in the Quick Edit and "
1872
  "Bulk Edit areas."
1873
  msgstr ""
1874
 
1875
+ #: includes/class-mla-options.php:517
1876
  msgid ""
1877
  "Check the \"Checklist\" box to enable the checklist-style meta box for a "
1878
  "flat taxonomy."
1879
  msgstr ""
1880
 
1881
+ #: includes/class-mla-options.php:518
1882
  msgid ""
1883
  "You must also check the <strong>\"Enable enhanced checklist taxonomies\"</"
1884
  "strong> box below to enable this feature."
1885
  msgstr ""
1886
 
1887
+ #: includes/class-mla-options.php:519
1888
  msgid ""
1889
  "Check the \"Term Search\" box to add the taxonomy to the \"Search Media/Terms"
1890
  "\" list."
1891
  msgstr ""
1892
 
1893
+ #: includes/class-mla-options.php:520 includes/class-mla-options.php:698
1894
+ #: includes/class-mla-settings.php:1351 includes/class-mla-settings.php:1352
1895
  msgid "For complete documentation"
1896
  msgstr ""
1897
 
1898
+ #: includes/class-mla-options.php:520 includes/class-mla-options.php:698
1899
+ #: includes/class-mla-settings.php:1351 includes/class-mla-settings.php:1352
1900
  msgid "click here"
1901
  msgstr ""
1902
 
1903
+ #: includes/class-mla-options.php:523
1904
  msgid ""
1905
  "Use the \"List Filter\" option to select the taxonomy on which to filter the "
1906
  "Assistant table listing."
1907
  msgstr ""
1908
 
1909
+ #: includes/class-mla-options.php:548
1910
  msgid "Media/Assistant Screen Options"
1911
  msgstr ""
1912
 
1913
+ #: includes/class-mla-options.php:553
1914
  msgid "Admin Menu Options"
1915
  msgstr ""
1916
 
1917
+ #: includes/class-mla-options.php:558
1918
  msgid "Page Title"
1919
  msgstr ""
1920
 
1921
+ #: includes/class-mla-options.php:560 includes/class-mla-settings.php:440
1922
+ #: includes/class-mla-settings.php:2904
1923
  msgid "Media Library Assistant"
1924
  msgstr ""
1925
 
1926
+ #: includes/class-mla-options.php:562
1927
  msgid "Enter the title for the Media/Assistant submenu page"
1928
  msgstr ""
1929
 
1930
+ #: includes/class-mla-options.php:566
1931
  msgid "Menu Title"
1932
  msgstr ""
1933
 
1934
+ #: includes/class-mla-options.php:568
1935
  msgid "Assistant"
1936
  msgstr ""
1937
 
1938
+ #: includes/class-mla-options.php:570
1939
  msgid "Enter the title for the Media/Assistant submenu entry"
1940
  msgstr ""
1941
 
1942
+ #: includes/class-mla-options.php:574
1943
  msgid "Submenu Order"
1944
  msgstr ""
1945
 
1946
+ #: includes/class-mla-options.php:578
1947
  msgid ""
1948
  "Enter the position of the Media/Assistant submenu entry.<br>&nbsp;&nbsp;0 = "
1949
  "natural order (at bottom),&nbsp;&nbsp;&nbsp;&nbsp;1 - 4 = at top<br>&nbsp;"
1951
  "\""
1952
  msgstr ""
1953
 
1954
+ #: includes/class-mla-options.php:582
1955
  msgid "Display Media/Library"
1956
  msgstr ""
1957
 
1958
+ #: includes/class-mla-options.php:585
1959
  msgid ""
1960
  "Check/uncheck this option to display/remove the WordPress Media/Library "
1961
  "submenu entry."
1962
  msgstr ""
1963
 
1964
+ #: includes/class-mla-options.php:589
1965
  msgid "Table Defaults"
1966
  msgstr ""
1967
 
1968
+ #: includes/class-mla-options.php:594
1969
  msgid "Order By"
1970
  msgstr ""
1971
 
1972
+ #: includes/class-mla-options.php:598 includes/class-mla-options.php:788
1973
  msgid "Title/Name"
1974
  msgstr ""
1975
 
1976
+ #: includes/class-mla-options.php:599
1977
  msgid "Select the column for the sort order of the Assistant table listing."
1978
  msgstr ""
1979
 
1980
+ #: includes/class-mla-options.php:603
1981
  msgid "Order"
1982
  msgstr ""
1983
 
1984
+ #: includes/class-mla-options.php:607
1985
  msgid "Ascending"
1986
  msgstr ""
1987
 
1988
+ #: includes/class-mla-options.php:607
1989
  msgid "Descending"
1990
  msgstr ""
1991
 
1992
+ #: includes/class-mla-options.php:608 includes/class-mla-options.php:798
1993
  msgid "Choose the sort order."
1994
  msgstr ""
1995
 
1996
+ #: includes/class-mla-options.php:612
1997
  msgid "Views Width"
1998
  msgstr ""
1999
 
2000
+ #: includes/class-mla-options.php:616
2001
  msgid "Enter the width for the views list, in pixels (px) or percent (%)"
2002
  msgstr ""
2003
 
2004
+ #: includes/class-mla-options.php:620
2005
  msgid "Icon Size"
2006
  msgstr ""
2007
 
2008
+ #: includes/class-mla-options.php:624
2009
  msgid "Enter the size of the thumbnail/icon images, in pixels"
2010
  msgstr ""
2011
 
2012
+ #: includes/class-mla-options.php:628
2013
+ msgid "Bulk Chunk Size"
2014
+ msgstr ""
2015
+
2016
+ #: includes/class-mla-options.php:632
2017
+ msgid "Enter the size of the Bulk Edit and Map All processing chunks"
2018
+ msgstr ""
2019
+
2020
+ #: includes/class-mla-options.php:636
2021
  msgid "Taxonomy Filter parameters"
2022
  msgstr ""
2023
 
2024
+ #: includes/class-mla-options.php:641
2025
  msgid "Maximum Depth"
2026
  msgstr ""
2027
 
2028
+ #: includes/class-mla-options.php:645
2029
  msgid ""
2030
  "Enter the number of levels displayed for hierarchial taxonomies; enter zero "
2031
  "for no limit."
2032
  msgstr ""
2033
 
2034
+ #: includes/class-mla-options.php:649
2035
  msgid "Include Children"
2036
  msgstr ""
2037
 
2038
+ #: includes/class-mla-options.php:652
2039
  msgid ""
2040
  "Check/uncheck this option to include/exclude children for hierarchical "
2041
  "taxonomies."
2042
  msgstr ""
2043
 
2044
+ #: includes/class-mla-options.php:656
2045
  msgid "Search Media Defaults"
2046
  msgstr ""
2047
 
2048
+ #: includes/class-mla-options.php:661
2049
  msgid "Display Search Controls"
2050
  msgstr ""
2051
 
2052
+ #: includes/class-mla-options.php:664 includes/class-mla-options.php:759
2053
  msgid ""
2054
  "Check/uncheck this option to display/hide the and/or connector and search "
2055
  "fields controls."
2056
  msgstr ""
2057
 
2058
+ #: includes/class-mla-options.php:668
2059
  msgid ""
2060
  "Use these controls to set defaults for the and/or connector and search "
2061
  "fields controls.<br>These defaults will be used for the Search Media boxes "
2062
  "on both the Media/Assistant submenu<br>and the Media Manager Modal Window."
2063
  msgstr ""
2064
 
2065
+ #: includes/class-mla-options.php:681
2066
  msgid "Media/Edit Media Enhancements"
2067
  msgstr ""
2068
 
2069
+ #: includes/class-mla-options.php:686
2070
  msgid "Enable enhanced \"checklist\" taxonomies"
2071
  msgstr ""
2072
 
2073
+ #: includes/class-mla-options.php:689
2074
  msgid ""
2075
  "Check this option to enable the \"? Search\" feature for hierarchical "
2076
  "taxonomies, e.g., Att. Categories.<br>&nbsp;&nbsp;This option also enables "
2077
  "the \"checklist-style\" support for flat taxonomies, e.g., Att. Tags."
2078
  msgstr ""
2079
 
2080
+ #: includes/class-mla-options.php:693
2081
  msgid "Enable Edit Media additional meta boxes"
2082
  msgstr ""
2083
 
2084
+ #: includes/class-mla-options.php:696
2085
  msgid ""
2086
  "Check this option to add \"Parent Info\", \"Menu Order\", \"Attachment "
2087
  "Metadata\" and four \"where-used\" meta boxes to the Edit Media screen."
2088
  msgstr ""
2089
 
2090
+ #: includes/class-mla-options.php:697
2091
  msgid "You can also use Filters to customize the meta boxes."
2092
  msgstr ""
2093
 
2094
+ #: includes/class-mla-options.php:702
2095
  msgid "Media Manager/Media Grid Enhancements"
2096
  msgstr ""
2097
 
2098
+ #: includes/class-mla-options.php:707
2099
  msgid "Enable Media Grid Enhancements"
2100
  msgstr ""
2101
 
2102
+ #: includes/class-mla-options.php:710
2103
  msgid ""
2104
  "Check/uncheck this option to enable/disable Media Library Grid View "
2105
  "Enhancements."
2106
  msgstr ""
2107
 
2108
+ #: includes/class-mla-options.php:714
2109
  msgid "Enable Media Manager Enhancements"
2110
  msgstr ""
2111
 
2112
+ #: includes/class-mla-options.php:717
2113
  msgid ""
2114
  "Check/uncheck this option to enable/disable Media Manager Modal Window "
2115
  "Enhancements."
2116
  msgstr ""
2117
 
2118
+ #: includes/class-mla-options.php:721
2119
  msgid "Media Manager Enhanced MIME Type filter"
2120
  msgstr ""
2121
 
2122
+ #: includes/class-mla-options.php:724
2123
  msgid ""
2124
  "Check this option to filter by more MIME Types, e.g., text, applications."
2125
  msgstr ""
2126
 
2127
+ #: includes/class-mla-options.php:728
2128
  msgid "Media Manager Month and Year filter"
2129
  msgstr ""
2130
 
2131
+ #: includes/class-mla-options.php:731
2132
  msgid "Check this option to filter by month and year uploaded."
2133
  msgstr ""
2134
 
2135
+ #: includes/class-mla-options.php:735
2136
  msgid "Media Manager Category/Tag filter"
2137
  msgstr ""
2138
 
2139
+ #: includes/class-mla-options.php:738
2140
  msgid "Check this option to filter by taxonomy terms."
2141
  msgstr ""
2142
 
2143
+ #: includes/class-mla-options.php:742
2144
  msgid "Media Manager Terms Search popup"
2145
  msgstr ""
2146
 
2147
+ #: includes/class-mla-options.php:745
2148
  msgid "Check this option to enable the \"Terms Search\" popup window."
2149
  msgstr ""
2150
 
2151
+ #: includes/class-mla-options.php:749
2152
  msgid "Media Manager Enhanced Search Media box"
2153
  msgstr ""
2154
 
2155
+ #: includes/class-mla-options.php:752
2156
  msgid "Check this option to enable search box enhancements."
2157
  msgstr ""
2158
 
2159
+ #: includes/class-mla-options.php:756
2160
  msgid "Media Manager Enhanced Search Media Controls"
2161
  msgstr ""
2162
 
2163
+ #: includes/class-mla-options.php:763
2164
  msgid "Media Manager Checklist meta boxes"
2165
  msgstr ""
2166
 
2167
+ #: includes/class-mla-options.php:766
2168
  msgid ""
2169
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
2170
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for any taxonomy that uses a "
2171
  "<strong>\"checklist-style\"</strong> meta box.</strong>"
2172
  msgstr ""
2173
 
2174
+ #: includes/class-mla-options.php:770
2175
  msgid "Media Manager Flat meta boxes"
2176
  msgstr ""
2177
 
2178
+ #: includes/class-mla-options.php:773
2179
  msgid ""
2180
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
2181
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies</"
2183
  "style\" meta box."
2184
  msgstr ""
2185
 
2186
+ #: includes/class-mla-options.php:777
2187
  msgid "Media Manager auto-fill meta boxes"
2188
  msgstr ""
2189
 
2190
+ #: includes/class-mla-options.php:780
2191
  msgid ""
2192
  "Check this option to automatically fill MLA-enhanced meta boxes in the "
2193
  "\"ATTACHMENT DETAILS\" pane<br>&nbsp;&nbsp;when the item is selected."
2194
  msgstr ""
2195
 
2196
+ #: includes/class-mla-options.php:784
2197
  msgid "Media Manager Order By"
2198
  msgstr ""
2199
 
2200
+ #: includes/class-mla-options.php:788 includes/class-mla-options.php:797
2201
+ #: includes/class-mla-options.php:812 includes/class-mla-options.php:826
2202
+ #: includes/class-mla-options.php:840 includes/class-mla-settings.php:1401
2203
  msgid "Media Manager Default"
2204
  msgstr ""
2205
 
2206
+ #: includes/class-mla-options.php:789
2207
  msgid ""
2208
  "If you want to override the Media Manager default,<br>&nbsp;&nbsp;select a "
2209
  "column for the sort order of the Media Library listing."
2210
  msgstr ""
2211
 
2212
+ #: includes/class-mla-options.php:793
2213
  msgid "Media Manager Order"
2214
  msgstr ""
2215
 
2216
+ #: includes/class-mla-options.php:802
2217
  msgid "Attachment Display Settings"
2218
  msgstr ""
2219
 
2220
  #. translators: 1: option name, e.g., Alignment, Link To or Size
2221
+ #: includes/class-mla-options.php:807 includes/class-mla-options.php:809
2222
  msgid "Alignment"
2223
  msgstr ""
2224
 
2225
+ #: includes/class-mla-options.php:812
2226
  msgid "Left"
2227
  msgstr ""
2228
 
2229
+ #: includes/class-mla-options.php:812
2230
  msgid "Center"
2231
  msgstr ""
2232
 
2233
+ #: includes/class-mla-options.php:812
2234
  msgid "Right"
2235
  msgstr ""
2236
 
2237
  #. translators: 1: option name, e.g., Alignment, Link To or Size
2238
+ #: includes/class-mla-options.php:821 includes/class-mla-options.php:823
2239
  msgid "Link To"
2240
  msgstr ""
2241
 
2242
+ #: includes/class-mla-options.php:826
2243
  msgid "Media File"
2244
  msgstr ""
2245
 
2246
+ #: includes/class-mla-options.php:826
2247
  msgid "Attachment Page"
2248
  msgstr ""
2249
 
2250
+ #: includes/class-mla-options.php:826
2251
  msgid "Custom URL"
2252
  msgstr ""
2253
 
2254
  #. translators: 1: option name, e.g., Alignment, Link To or Size
2255
+ #: includes/class-mla-options.php:835 includes/class-mla-options.php:837
2256
  msgid "Size"
2257
  msgstr ""
2258
 
2259
+ #: includes/class-mla-options.php:840
2260
  msgid "Thumbnail"
2261
  msgstr ""
2262
 
2263
+ #: includes/class-mla-options.php:840
2264
  msgid "Medium"
2265
  msgstr ""
2266
 
2267
+ #: includes/class-mla-options.php:840
2268
  msgid "Large"
2269
  msgstr ""
2270
 
2271
+ #: includes/class-mla-options.php:840
2272
  msgid "Full Size"
2273
  msgstr ""
2274
 
2275
+ #: includes/class-mla-options.php:849
2276
  msgid "Default [mla_gallery] Templates and Settings"
2277
  msgstr ""
2278
 
2279
+ #: includes/class-mla-options.php:854 includes/class-mla-options.php:898
2280
  msgid "Style Template"
2281
  msgstr ""
2282
 
2283
  #. translators: 1: template type 2: shortcode
2284
+ #: includes/class-mla-options.php:860 includes/class-mla-options.php:870
2285
+ #: includes/class-mla-options.php:904 includes/class-mla-options.php:914
2286
  #, php-format
2287
  msgid "Select the default %1$s for your %2$s shortcodes."
2288
  msgstr ""
2289
 
2290
+ #: includes/class-mla-options.php:860 includes/class-mla-options.php:904
2291
+ #: includes/class-mla-settings.php:2999 includes/class-mla-settings.php:3010
2292
+ #: includes/class-mla-settings.php:3016 includes/class-mla-settings.php:3020
2293
+ #: includes/class-mla-settings.php:3049 includes/class-mla-settings.php:3060
2294
  msgid "style template"
2295
  msgstr ""
2296
 
2297
+ #: includes/class-mla-options.php:864 includes/class-mla-options.php:908
2298
  msgid "Markup Template"
2299
  msgstr ""
2300
 
2301
+ #: includes/class-mla-options.php:870 includes/class-mla-options.php:914
2302
+ #: includes/class-mla-settings.php:3089 includes/class-mla-settings.php:3102
2303
+ #: includes/class-mla-settings.php:3108 includes/class-mla-settings.php:3112
2304
+ #: includes/class-mla-settings.php:3181
2305
  msgid "markup template"
2306
  msgstr ""
2307
 
2308
+ #: includes/class-mla-options.php:874 includes/class-mla-options.php:918
2309
  msgid "Default columns"
2310
  msgstr ""
2311
 
2312
+ #: includes/class-mla-options.php:878
2313
  msgid ""
2314
  "Enter the number of [mla_tag_cloud] columns; must be a positive integer."
2315
  msgstr ""
2316
 
2317
+ #: includes/class-mla-options.php:882 includes/class-mla-options.php:926
2318
  msgid "Default mla_margin"
2319
  msgstr ""
2320
 
2321
+ #: includes/class-mla-options.php:886 includes/class-mla-options.php:930
2322
  msgid ""
2323
  "Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
2324
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"none\" to "
2325
  "remove the property entirely."
2326
  msgstr ""
2327
 
2328
+ #: includes/class-mla-options.php:890 includes/class-mla-options.php:934
2329
  msgid "Default mla_itemwidth"
2330
  msgstr ""
2331
 
2332
+ #: includes/class-mla-options.php:894 includes/class-mla-options.php:938
2333
  msgid ""
2334
  "Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
2335
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"calculate"
2339
  "the property entirely."
2340
  msgstr ""
2341
 
2342
+ #: includes/class-mla-options.php:922
2343
  msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
2344
  msgstr ""
2345
 
2346
+ #: includes/class-mla-options.php:958
2347
  msgid "Enable custom field mapping when adding new media"
2348
  msgstr ""
2349
 
2350
+ #: includes/class-mla-options.php:961
2351
  msgid ""
2352
  "Check this option to enable mapping when uploading new media (attachments)."
2353
  "<br>&nbsp;&nbsp;Click Save Changes at the bottom of the screen if you change "
2355
  "buttons on the bulk edit, single edit and settings screens."
2356
  msgstr ""
2357
 
2358
+ #: includes/class-mla-options.php:965
2359
  msgid "Enable custom field mapping when updating media metadata"
2360
  msgstr ""
2361
 
2362
+ #: includes/class-mla-options.php:968 includes/class-mla-options.php:992
2363
  msgid ""
2364
  "Check this option to enable mapping when media (attachments) metadata is "
2365
  "regenerated,<br>&nbsp;&nbsp;e.g., when the Media/Edit Media \"Edit Image\" "
2366
  "functions are used."
2367
  msgstr ""
2368
 
2369
+ #: includes/class-mla-options.php:972
2370
  msgid ""
2371
  "Update the custom field mapping values above, then click Save Changes to "
2372
  "make the updates permanent.<br>You can also make temporary updates and click "
2374
  "saving any rule changes."
2375
  msgstr ""
2376
 
2377
+ #: includes/class-mla-options.php:982
2378
  msgid "Enable IPTC/EXIF Mapping when adding new media"
2379
  msgstr ""
2380
 
2381
+ #: includes/class-mla-options.php:985
2382
  msgid ""
2383
  "Check this option to enable mapping when uploading new media (attachments)."
2384
  "<br>&nbsp;&nbsp;Does NOT affect the operation of the \"Map\" buttons on the "
2385
  "bulk edit, single edit and settings screens."
2386
  msgstr ""
2387
 
2388
+ #: includes/class-mla-options.php:989
2389
  msgid "Enable IPTC/EXIF Mapping when updating media metadata"
2390
  msgstr ""
2391
 
2392
+ #: includes/class-mla-options.php:996
2393
  msgid ""
2394
  "Update the standard field mapping values above, then click <strong>Save "
2395
  "Changes</strong> to make the updates permanent.<br>You can also make "
2398
  "changes."
2399
  msgstr ""
2400
 
2401
+ #: includes/class-mla-options.php:1006
2402
  msgid ""
2403
  "Update the taxonomy term mapping values above, then click <strong>Save "
2404
  "Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
2405
  msgstr ""
2406
 
2407
+ #: includes/class-mla-options.php:1016
2408
  msgid ""
2409
  "<strong>Update</strong> individual custom field mapping values above, or "
2410
  "make several updates and click <strong>Save Changes</strong> below to apply "
2415
  "changes."
2416
  msgstr ""
2417
 
2418
+ #: includes/class-mla-options.php:1026
2419
  msgid "IPTC/EXIF Mapping help"
2420
  msgstr ""
2421
 
2422
+ #: includes/class-mla-options.php:1078
2423
  msgid "Enable View and Post MIME Type Support"
2424
  msgstr ""
2425
 
2426
+ #: includes/class-mla-options.php:1081
2427
  msgid ""
2428
  "Check/uncheck this option to enable/disable Post MIME Type Support, then "
2429
  "click <strong>Save Changes</strong> to record the new setting."
2430
  msgstr ""
2431
 
2432
+ #: includes/class-mla-options.php:1090
2433
  msgid "Post MIME Types help."
2434
  msgstr ""
2435
 
2436
+ #: includes/class-mla-options.php:1093
2437
  msgctxt "post_mime_types_singular"
2438
  msgid "All"
2439
  msgstr ""
2440
 
2441
+ #: includes/class-mla-options.php:1094
2442
  msgctxt "post_mime_types_plural"
2443
  msgid "All"
2444
  msgstr ""
2445
 
2446
+ #: includes/class-mla-options.php:1099 includes/class-mla-options.php:1153
2447
+ #: includes/class-mla-options.php:1162
2448
  msgctxt "post_mime_types_description"
2449
  msgid "Built-in view"
2450
  msgstr ""
2451
 
2452
+ #: includes/class-mla-options.php:1102
2453
  msgctxt "post_mime_types_singular"
2454
  msgid "Image"
2455
  msgstr ""
2456
 
2457
+ #: includes/class-mla-options.php:1103
2458
  msgctxt "post_mime_types_plural"
2459
  msgid "Images"
2460
  msgstr ""
2461
 
2462
+ #: includes/class-mla-options.php:1108
2463
  msgctxt "post_mime_types_description"
2464
  msgid "All image subtypes"
2465
  msgstr ""
2466
 
2467
+ #: includes/class-mla-options.php:1111
2468
  msgctxt "post_mime_types_singular"
2469
  msgid "Audio"
2470
  msgstr ""
2471
 
2472
+ #: includes/class-mla-options.php:1112
2473
  msgctxt "post_mime_types_plural"
2474
  msgid "Audio"
2475
  msgstr ""
2476
 
2477
+ #: includes/class-mla-options.php:1117
2478
  msgctxt "post_mime_types_description"
2479
  msgid "All audio subtypes"
2480
  msgstr ""
2481
 
2482
+ #: includes/class-mla-options.php:1120
2483
  msgctxt "post_mime_types_singular"
2484
  msgid "Video"
2485
  msgstr ""
2486
 
2487
+ #: includes/class-mla-options.php:1121
2488
  msgctxt "post_mime_types_plural"
2489
  msgid "Video"
2490
  msgstr ""
2491
 
2492
+ #: includes/class-mla-options.php:1126
2493
  msgctxt "post_mime_types_description"
2494
  msgid "All video subtypes"
2495
  msgstr ""
2496
 
2497
+ #: includes/class-mla-options.php:1129
2498
  msgctxt "post_mime_types_singular"
2499
  msgid "Text"
2500
  msgstr ""
2501
 
2502
+ #: includes/class-mla-options.php:1130
2503
  msgctxt "post_mime_types_plural"
2504
  msgid "Text"
2505
  msgstr ""
2506
 
2507
+ #: includes/class-mla-options.php:1135
2508
  msgctxt "post_mime_types_description"
2509
  msgid "All text subtypes"
2510
  msgstr ""
2511
 
2512
+ #: includes/class-mla-options.php:1138
2513
  msgctxt "post_mime_types_singular"
2514
  msgid "Application"
2515
  msgstr ""
2516
 
2517
+ #: includes/class-mla-options.php:1139
2518
  msgctxt "post_mime_types_plural"
2519
  msgid "Applications"
2520
  msgstr ""
2521
 
2522
+ #: includes/class-mla-options.php:1144
2523
  msgctxt "post_mime_types_description"
2524
  msgid "All application subtypes"
2525
  msgstr ""
2526
 
2527
+ #: includes/class-mla-options.php:1148
2528
  msgctxt "post_mime_types_plural"
2529
  msgid "Unattached"
2530
  msgstr ""
2531
 
2532
+ #: includes/class-mla-options.php:1156
2533
  msgctxt "post_mime_types_singular"
2534
  msgid "Trash"
2535
  msgstr ""
2536
 
2537
+ #: includes/class-mla-options.php:1157
2538
  msgctxt "post_mime_types_plural"
2539
  msgid "Trash"
2540
  msgstr ""
2541
 
2542
+ #: includes/class-mla-options.php:1168
2543
  msgid "Enable Upload MIME Type Support"
2544
  msgstr ""
2545
 
2546
+ #: includes/class-mla-options.php:1171
2547
  msgid ""
2548
  "Check/uncheck this option to enable/disable Upload MIME Type Support, then "
2549
  "click <strong>Save Changes</strong> to record the new setting."
2550
  msgstr ""
2551
 
2552
+ #: includes/class-mla-options.php:1180
2553
  msgid "Upload MIME Types help."
2554
  msgstr ""
2555
 
2556
+ #: includes/class-mla-options.php:1185
2557
  msgid "Enable MLA File Type Icons Support"
2558
  msgstr ""
2559
 
2560
+ #: includes/class-mla-options.php:1188
2561
  msgid ""
2562
  "Check/uncheck this option to enable/disable MLA File Type Icons Support, "
2563
  "then click <strong>Save Changes</strong> to record the new setting."
2564
  msgstr ""
2565
 
2566
+ #: includes/class-mla-options.php:1215 includes/class-mla-options.php:1237
2567
+ #: includes/class-mla-options.php:1279
2568
  msgid "no templates exist"
2569
  msgstr ""
2570
 
2571
+ #: includes/class-mla-options.php:1223
2572
  msgid "not found"
2573
  msgstr ""
2574
 
2575
  #. translators: 1: option name 2: action, e.g., update, delete, reset
2576
+ #: includes/class-mla-options.php:1596 includes/class-mla-options.php:1760
2577
+ #: includes/class-mla-options.php:1836 includes/class-mla-options.php:3543
2578
+ #: includes/class-mla-options.php:4710
2579
  #, php-format
2580
  msgid "ERROR: Custom %1$s unknown action \"%2$s\""
2581
  msgstr ""
2582
 
2583
+ #: includes/class-mla-options.php:1685
2584
  msgid "Support"
2585
  msgstr ""
2586
 
2587
+ #: includes/class-mla-options.php:1686
2588
  msgid "Inline Edit"
2589
  msgstr ""
2590
 
2591
+ #: includes/class-mla-options.php:1687
2592
  msgid "Checklist"
2593
  msgstr ""
2594
 
2595
+ #: includes/class-mla-options.php:1688
2596
  msgid "Term Search"
2597
  msgstr ""
2598
 
2599
+ #: includes/class-mla-options.php:1689
2600
  msgid "List Filter"
2601
  msgstr ""
2602
 
2603
+ #: includes/class-mla-options.php:1690
2604
  msgid "Taxonomy"
2605
  msgstr ""
2606
 
2607
  #. translators: 1: taxonomy name
2608
+ #: includes/class-mla-options.php:1708
2609
  #, php-format
2610
  msgid "List Filter ignored; %1$s not supported."
2611
  msgstr ""
2612
 
2613
  #. translators: 1: taxonomy name
2614
+ #: includes/class-mla-options.php:1715
2615
  #, php-format
2616
  msgid "Inline Edit ignored; %1$s not supported."
2617
  msgstr ""
2618
 
2619
  #. translators: 1: taxonomy name
2620
+ #: includes/class-mla-options.php:1725
2621
  #, php-format
2622
  msgid "Checklist ignored; %1$s not supported."
2623
  msgstr ""
2624
 
2625
  #. translators: 1: taxonomy name
2626
+ #: includes/class-mla-options.php:1733
2627
  #, php-format
2628
  msgid "Term Search ignored; %1$s not supported."
2629
  msgstr ""
2630
 
2631
  #. translators: 1: option name, e.g., taxonomy_support
2632
+ #: includes/class-mla-options.php:1750 includes/class-mla-options.php:1826
2633
  #, php-format
2634
  msgid "Update custom %1$s"
2635
  msgstr ""
2636
 
2637
  #. translators: 1: option name, e.g., taxonomy_support
2638
+ #: includes/class-mla-options.php:1757 includes/class-mla-options.php:1833
2639
+ #: includes/class-mla-options.php:4703
2640
  #, php-format
2641
  msgid "Reset custom %1$s"
2642
  msgstr ""
2643
 
2644
+ #: includes/class-mla-options.php:1786
2645
  #: includes/mla-main-search-box-template.php:38
2646
  #: includes/mla-media-modal-js-template.php:24
2647
  msgid "and"
2648
  msgstr ""
2649
 
2650
+ #: includes/class-mla-options.php:1788
2651
  #: includes/mla-main-search-box-template.php:40
2652
  #: includes/mla-media-modal-js-template.php:28
2653
  msgid "or"
2654
  msgstr ""
2655
 
2656
+ #: includes/class-mla-options.php:1793 includes/class-mla-settings.php:2345
2657
+ #: includes/class-mla-settings.php:2378 includes/class-mla-settings.php:2404
2658
+ #: includes/class-mla-settings.php:2439 includes/class-mla-settings.php:2496
2659
+ #: includes/class-mla-settings.php:2546
2660
  #: includes/mla-main-search-box-template.php:43
2661
  #: includes/mla-media-modal-js-template.php:36
2662
  msgid "Name"
2663
  msgstr ""
2664
 
2665
+ #: includes/class-mla-options.php:1805
2666
  #: includes/mla-main-search-box-template.php:47
2667
  #: includes/mla-media-modal-js-template.php:53
2668
  msgid "Terms"
2669
  msgstr ""
2670
 
2671
+ #: includes/class-mla-options.php:2906 includes/class-mla-options.php:3026
2672
+ #: includes/class-mla-options.php:3891 includes/class-mla-options.php:3922
2673
+ #: includes/class-mla-settings.php:1798
2674
  msgid "None (select a value)"
2675
  msgstr ""
2676
 
2677
+ #: includes/class-mla-options.php:3033
2678
  msgid "Metadata (see below)"
2679
  msgstr ""
2680
 
2681
+ #: includes/class-mla-options.php:3040
2682
  msgid "Template (see below)"
2683
  msgstr ""
2684
 
2685
  #. translators: 1: custom field name
2686
+ #: includes/class-mla-options.php:3105 includes/class-mla-options.php:4194
2687
  #, php-format
2688
  msgid "ERROR: New field %1$s already exists."
2689
  msgstr ""
2690
 
2691
  #. translators: 1: custom field name
2692
+ #: includes/class-mla-options.php:3110 includes/class-mla-options.php:4199
2693
  #, php-format
2694
  msgid "Adding new field %1$s."
2695
  msgstr ""
2696
 
2697
  #. translators: 1: custom field name
2698
+ #: includes/class-mla-options.php:3120 includes/class-mla-options.php:4209
2699
  #, php-format
2700
  msgid "Adding new rule for %1$s."
2701
  msgstr ""
2702
 
2703
  #. translators: 1: custom field name
2704
+ #: includes/class-mla-options.php:3151 includes/class-mla-options.php:4071
2705
+ #: includes/class-mla-options.php:4230
2706
  #, php-format
2707
  msgid "Deleting rule for %1$s."
2708
  msgstr ""
2709
 
2710
  #. translators: 1: custom field name 2: attribute 3: old value 4: new value
2711
+ #: includes/class-mla-options.php:3174 includes/class-mla-options.php:3195
2712
+ #: includes/class-mla-options.php:3245 includes/class-mla-options.php:3252
2713
+ #: includes/class-mla-options.php:3988 includes/class-mla-options.php:3995
2714
+ #: includes/class-mla-options.php:4002 includes/class-mla-options.php:4096
2715
+ #: includes/class-mla-options.php:4103 includes/class-mla-options.php:4138
2716
+ #: includes/class-mla-options.php:4145 includes/class-mla-options.php:4240
2717
+ #: includes/class-mla-options.php:4247
2718
  #, php-format
2719
  msgid "%1$s changing %2$s from %3$s to %4$s."
2720
  msgstr ""
2721
 
2722
+ #: includes/class-mla-options.php:3174 includes/class-mla-options.php:3500
2723
  msgid "Data Source"
2724
  msgstr ""
2725
 
2726
+ #: includes/class-mla-options.php:3180 includes/class-mla-options.php:4022
2727
+ #: includes/class-mla-options.php:4123 includes/class-mla-options.php:4267
2728
  msgid "Replace to Keep"
2729
  msgstr ""
2730
 
2731
+ #: includes/class-mla-options.php:3183 includes/class-mla-options.php:4025
2732
+ #: includes/class-mla-options.php:4126 includes/class-mla-options.php:4270
2733
  msgid "Keep to Replace"
2734
  msgstr ""
2735
 
2736
  #. translators: 1: custom field name 2: attribute 3: old value 'to' new value
2737
+ #: includes/class-mla-options.php:3188 includes/class-mla-options.php:3209
2738
+ #: includes/class-mla-options.php:3223 includes/class-mla-options.php:3237
2739
+ #: includes/class-mla-options.php:3266 includes/class-mla-options.php:4016
2740
+ #: includes/class-mla-options.php:4030 includes/class-mla-options.php:4117
2741
+ #: includes/class-mla-options.php:4131 includes/class-mla-options.php:4261
2742
+ #: includes/class-mla-options.php:4275
2743
  #, php-format
2744
  msgid "%1$s changing %2$s value from %3$s."
2745
  msgstr ""
2746
 
2747
+ #: includes/class-mla-options.php:3188 includes/class-mla-options.php:3501
2748
+ #: includes/class-mla-options.php:4030 includes/class-mla-options.php:4131
2749
+ #: includes/class-mla-options.php:4275 includes/class-mla-options.php:4397
2750
+ #: includes/class-mla-options.php:4483 includes/class-mla-options.php:4601
2751
  msgid "Existing Text"
2752
  msgstr ""
2753
 
2754
+ #: includes/class-mla-options.php:3195 includes/class-mla-options.php:3502
2755
  msgid "Format"
2756
  msgstr ""
2757
 
2758
+ #: includes/class-mla-options.php:3201 includes/class-mla-options.php:3215
2759
+ #: includes/class-mla-options.php:3229 includes/class-mla-options.php:3258
2760
  msgid "unchecked to checked"
2761
  msgstr ""
2762
 
2763
+ #: includes/class-mla-options.php:3204 includes/class-mla-options.php:3218
2764
+ #: includes/class-mla-options.php:3232 includes/class-mla-options.php:3261
2765
  msgid "checked to unchecked"
2766
  msgstr ""
2767
 
2768
+ #: includes/class-mla-options.php:3209 includes/class-mla-options.php:3503
2769
  msgid "MLA Column"
2770
  msgstr ""
2771
 
2772
+ #: includes/class-mla-options.php:3245
2773
  msgid "Metavalue name"
2774
  msgstr ""
2775
 
2776
+ #: includes/class-mla-options.php:3252 includes/class-mla-options.php:3335
2777
+ #: includes/class-mla-options.php:3436 includes/class-mla-options.php:3480
2778
  msgid "Option"
2779
  msgstr ""
2780
 
2781
+ #: includes/class-mla-options.php:3266
2782
  msgid "Delete NULL"
2783
  msgstr ""
2784
 
2785
+ #: includes/class-mla-options.php:3305 includes/class-mla-options.php:4495
2786
  msgid "No Custom Field Mapping Rules Defined"
2787
  msgstr ""
2788
 
2789
+ #: includes/class-mla-options.php:3319 includes/class-mla-options.php:3421
2790
+ #: includes/class-mla-options.php:3465 includes/class-mla-options.php:4372
2791
+ #: includes/class-mla-options.php:4422 includes/class-mla-options.php:4519
2792
+ #: includes/class-mla-options.php:4563 includes/class-mla-options.php:4588
2793
  msgid "Keep"
2794
  msgstr ""
2795
 
2796
+ #: includes/class-mla-options.php:3323 includes/class-mla-options.php:3425
2797
+ #: includes/class-mla-options.php:3469
2798
  msgid "Native"
2799
  msgstr ""
2800
 
2801
+ #: includes/class-mla-options.php:3325 includes/class-mla-options.php:3427
2802
+ #: includes/class-mla-options.php:3471
2803
  msgid "Commas"
2804
  msgstr ""
2805
 
2806
+ #: includes/class-mla-options.php:3327 includes/class-mla-options.php:3429
2807
+ #: includes/class-mla-options.php:3473
2808
+ msgid "Raw"
2809
+ msgstr ""
2810
+
2811
+ #: includes/class-mla-options.php:3337 includes/class-mla-options.php:3438
2812
+ #: includes/class-mla-options.php:3482
2813
  msgid "Text"
2814
  msgstr ""
2815
 
2816
+ #: includes/class-mla-options.php:3339 includes/class-mla-options.php:3440
2817
+ #: includes/class-mla-options.php:3484
2818
  msgid "Single"
2819
  msgstr ""
2820
 
2821
+ #: includes/class-mla-options.php:3341 includes/class-mla-options.php:3442
2822
+ #: includes/class-mla-options.php:3486
2823
  msgid "Export"
2824
  msgstr ""
2825
 
2826
+ #: includes/class-mla-options.php:3343 includes/class-mla-options.php:3444
2827
+ #: includes/class-mla-options.php:3488
2828
  msgid "Array"
2829
  msgstr ""
2830
 
2831
+ #: includes/class-mla-options.php:3345 includes/class-mla-options.php:3446
2832
+ #: includes/class-mla-options.php:3490
2833
  msgid "Multi"
2834
  msgstr ""
2835
 
2836
+ #: includes/class-mla-options.php:3347 includes/class-mla-options.php:3448
2837
+ #: includes/class-mla-options.php:3492
2838
  msgid "Delete NULL values"
2839
  msgstr ""
2840
 
2841
+ #: includes/class-mla-options.php:3348 includes/class-mla-options.php:4522
2842
  msgid "Delete Rule"
2843
  msgstr ""
2844
 
2845
+ #: includes/class-mla-options.php:3349 includes/class-mla-options.php:4523
2846
  msgid "Delete Rule AND Field"
2847
  msgstr ""
2848
 
2849
+ #: includes/class-mla-options.php:3350 includes/class-mla-options.php:4524
2850
  msgid "Update Rule"
2851
  msgstr ""
2852
 
2853
+ #: includes/class-mla-options.php:3351 includes/class-mla-options.php:4525
2854
+ #: includes/class-mla-settings.php:704 includes/class-mla-settings.php:833
2855
  msgid "Map All Attachments"
2856
  msgstr ""
2857
 
2858
+ #: includes/class-mla-options.php:3416 includes/class-mla-options.php:4552
2859
  msgid "Add a new Mapping Rule"
2860
  msgstr ""
2861
 
2862
+ #: includes/class-mla-options.php:3449 includes/class-mla-options.php:4566
2863
  msgid "Add Rule"
2864
  msgstr ""
2865
 
2866
+ #: includes/class-mla-options.php:3450 includes/class-mla-options.php:4567
2867
  msgid "Add Rule and Map All Attachments"
2868
  msgstr ""
2869
 
2870
+ #: includes/class-mla-options.php:3460 includes/class-mla-options.php:4577
2871
  msgid "Add a new Field and Mapping Rule"
2872
  msgstr ""
2873
 
2874
+ #: includes/class-mla-options.php:3493 includes/class-mla-options.php:4591
2875
  msgid "Add Field"
2876
  msgstr ""
2877
 
2878
+ #: includes/class-mla-options.php:3494 includes/class-mla-options.php:4592
2879
  msgid "Add Field and Map All Attachments"
2880
  msgstr ""
2881
 
2882
+ #: includes/class-mla-options.php:3499 includes/class-mla-options.php:3988
2883
+ #: includes/class-mla-options.php:4393 includes/class-mla-options.php:4479
2884
+ #: includes/class-mla-options.php:4597
2885
  msgid "Field Title"
2886
  msgstr ""
2887
 
2888
+ #: includes/class-mla-options.php:3524
2889
  msgid "Custom field mapping rules updated."
2890
  msgstr ""
2891
 
2892
+ #: includes/class-mla-options.php:3526
2893
  msgid "ERROR: Custom field mapping rules update failed."
2894
  msgstr ""
2895
 
2896
+ #: includes/class-mla-options.php:3529 includes/class-mla-settings.php:747
2897
+ #: includes/class-mla-settings.php:753
2898
  msgid "Custom field no mapping rule changes detected."
2899
  msgstr ""
2900
 
2901
+ #: includes/class-mla-options.php:3537
2902
  msgid "Custom field mapping settings saved."
2903
  msgstr ""
2904
 
2905
+ #: includes/class-mla-options.php:3539
2906
  msgid "ERROR: Custom field mapping settings reset failed."
2907
  msgstr ""
2908
 
2909
  #. translators: 1: custom field name
2910
+ #: includes/class-mla-options.php:3976
2911
  #, php-format
2912
  msgid "ERROR: No old values for %1$s."
2913
  msgstr ""
2914
 
2915
+ #: includes/class-mla-options.php:3995 includes/class-mla-options.php:4096
2916
+ #: includes/class-mla-options.php:4240 includes/class-mla-options.php:4394
2917
+ #: includes/class-mla-options.php:4480 includes/class-mla-options.php:4598
2918
  msgid "IPTC Value"
2919
  msgstr ""
2920
 
2921
+ #: includes/class-mla-options.php:4002 includes/class-mla-options.php:4103
2922
+ #: includes/class-mla-options.php:4247
2923
  msgid "EXIF Value"
2924
  msgstr ""
2925
 
2926
+ #: includes/class-mla-options.php:4008 includes/class-mla-options.php:4109
2927
+ #: includes/class-mla-options.php:4253
2928
  msgid "EXIF to IPTC"
2929
  msgstr ""
2930
 
2931
+ #: includes/class-mla-options.php:4011 includes/class-mla-options.php:4112
2932
+ #: includes/class-mla-options.php:4256
2933
  msgid "IPTC to EXIF"
2934
  msgstr ""
2935
 
2936
+ #: includes/class-mla-options.php:4016 includes/class-mla-options.php:4117
2937
+ #: includes/class-mla-options.php:4261 includes/class-mla-options.php:4396
2938
+ #: includes/class-mla-options.php:4482 includes/class-mla-options.php:4600
2939
  msgid "Priority"
2940
  msgstr ""
2941
 
2942
+ #: includes/class-mla-options.php:4138 includes/class-mla-options.php:4484
2943
  msgid "Delimiter(s)"
2944
  msgstr ""
2945
 
2946
+ #: includes/class-mla-options.php:4368 includes/class-mla-options.php:4418
2947
+ #: includes/class-mla-options.php:4515 includes/class-mla-options.php:4559
2948
+ #: includes/class-mla-options.php:4584
2949
  msgid "IPTC"
2950
  msgstr ""
2951
 
2952
+ #: includes/class-mla-options.php:4370 includes/class-mla-options.php:4420
2953
+ #: includes/class-mla-options.php:4517 includes/class-mla-options.php:4561
2954
+ #: includes/class-mla-options.php:4586
2955
  msgid "EXIF"
2956
  msgstr ""
2957
 
2958
+ #: includes/class-mla-options.php:4395 includes/class-mla-options.php:4481
2959
+ #: includes/class-mla-options.php:4599
2960
  msgid "EXIF/Template Value"
2961
  msgstr ""
2962
 
2963
  #. translators: 1: option name
2964
+ #: includes/class-mla-options.php:4609
2965
  #, php-format
2966
  msgid "ERROR: Render unknown custom %1$s."
2967
  msgstr ""
2968
 
2969
  #. translators: 1: option name
2970
+ #: includes/class-mla-options.php:4653
2971
  #, php-format
2972
  msgid "ERROR: Update/delete unknown custom %1$s."
2973
  msgstr ""
2974
 
2975
+ #: includes/class-mla-options.php:4659
2976
  msgid "IPTC/EXIF mapping settings updated."
2977
  msgstr ""
2978
 
2979
+ #: includes/class-mla-options.php:4661
2980
  msgid "ERROR: IPTC/EXIF settings update failed."
2981
  msgstr ""
2982
 
2983
+ #: includes/class-mla-options.php:4664 includes/class-mla-settings.php:879
2984
+ #: includes/class-mla-settings.php:885
2985
  msgid "IPTC/EXIF no mapping changes detected."
2986
  msgstr ""
2987
 
2988
  #. translators: 1: field type
2989
+ #: includes/class-mla-options.php:4675 includes/class-mla-options.php:4685
2990
+ #: includes/class-mla-options.php:4695 includes/class-mla-settings.php:3187
2991
  #, php-format
2992
  msgid "%1$s settings saved."
2993
  msgstr ""
2994
 
2995
+ #: includes/class-mla-options.php:4675 includes/class-mla-options.php:4678
2996
+ #: includes/class-mla-settings.php:3431 includes/class-mla-settings.php:3470
2997
+ #: includes/class-mla-settings.php:3473
2998
  msgid "Standard field"
2999
  msgstr ""
3000
 
3001
  #. translators: 1: field type
3002
+ #: includes/class-mla-options.php:4678 includes/class-mla-options.php:4688
3003
+ #: includes/class-mla-options.php:4698
3004
  #, php-format
3005
  msgid "ERROR: IPTC/EXIF %1$s settings update failed."
3006
  msgstr ""
3007
 
3008
+ #: includes/class-mla-options.php:4685 includes/class-mla-options.php:4688
3009
+ #: includes/class-mla-settings.php:3502 includes/class-mla-settings.php:3541
3010
+ #: includes/class-mla-settings.php:3544
3011
  msgid "Taxonomy term"
3012
  msgstr ""
3013
 
3014
+ #: includes/class-mla-options.php:4695 includes/class-mla-options.php:4698
3015
+ #: includes/class-mla-settings.php:3332 includes/class-mla-settings.php:3335
3016
+ #: includes/class-mla-settings.php:3587 includes/class-mla-settings.php:3626
3017
+ #: includes/class-mla-settings.php:3629
3018
  msgid "Custom field"
3019
  msgstr ""
3020
 
3021
  #. translators: 1: option name, e.g., taxonomy_support
3022
+ #: includes/class-mla-options.php:4706
3023
  #, php-format
3024
  msgid "ERROR: Reset unknown custom %1$s"
3025
  msgstr ""
3026
 
3027
+ #: includes/class-mla-settings.php:339
3028
  msgid "no slug"
3029
  msgstr ""
3030
 
3031
+ #: includes/class-mla-settings.php:350
3032
+ msgid "Running"
3033
+ msgstr ""
3034
+
3035
+ #: includes/class-mla-settings.php:440
3036
  msgid "Media Library Assistant Settings"
3037
  msgstr ""
3038
 
3039
+ #: includes/class-mla-settings.php:459
3040
  msgid "Views per page"
3041
  msgstr ""
3042
 
3043
+ #: includes/class-mla-settings.php:470
3044
  msgid "Types per page"
3045
  msgstr ""
3046
 
3047
+ #: includes/class-mla-settings.php:481
3048
  msgid "Upload types per page"
3049
  msgstr ""
3050
 
3051
+ #: includes/class-mla-settings.php:617
3052
  msgid "ERROR: No view slug found"
3053
  msgstr ""
3054
 
3055
+ #: includes/class-mla-settings.php:660
3056
  msgid "ERROR: No upload slug found"
3057
  msgstr ""
3058
 
3059
+ #: includes/class-mla-settings.php:700 includes/class-mla-settings.php:2695
3060
+ #: includes/class-mla-settings.php:2699
3061
+ msgid "Map All Rules, All Attachments Now"
3062
+ msgstr ""
3063
+
3064
+ #: includes/class-mla-settings.php:822 includes/class-mla-settings.php:2818
3065
+ msgid "Map All Attachments, Standard Fields Now"
3066
+ msgstr ""
3067
+
3068
+ #: includes/class-mla-settings.php:825 includes/class-mla-settings.php:2821
3069
+ msgid "Map All Attachments, Taxonomy Terms Now"
3070
+ msgstr ""
3071
+
3072
+ #: includes/class-mla-settings.php:828 includes/class-mla-settings.php:2824
3073
+ msgid "Map All Attachments, Custom Fields Now"
3074
+ msgstr ""
3075
+
3076
+ #: includes/class-mla-settings.php:949 includes/class-mla-settings.php:2905
3077
  msgid "Settings"
3078
  msgstr ""
3079
 
3080
  #. translators: 1: function name 2: option type, e.g., radio, select, text
3081
+ #: includes/class-mla-settings.php:997 includes/class-mla-settings.php:1029
3082
+ #: includes/class-mla-settings.php:1167
3083
  #, php-format
3084
  msgctxt "error_log"
3085
  msgid "ERROR: %1$s unknown type = \"%2$s\""
3086
  msgstr ""
3087
 
3088
+ #: includes/class-mla-settings.php:1065 includes/class-mla-settings.php:1325
3089
  msgid "Go to Top"
3090
  msgstr ""
3091
 
3092
+ #: includes/class-mla-settings.php:1216
3093
  msgid "General"
3094
  msgstr ""
3095
 
3096
+ #: includes/class-mla-settings.php:1217
3097
  msgid "Views"
3098
  msgstr ""
3099
 
3100
+ #: includes/class-mla-settings.php:1218
3101
  msgid "Uploads"
3102
  msgstr ""
3103
 
3104
+ #: includes/class-mla-settings.php:1219 includes/class-mla-settings.php:3187
3105
+ #: includes/class-mla-settings.php:3190
3106
  msgid "MLA Gallery"
3107
  msgstr ""
3108
 
3109
+ #: includes/class-mla-settings.php:1220
3110
  msgid "Custom Fields"
3111
  msgstr ""
3112
 
3113
+ #: includes/class-mla-settings.php:1222
3114
  msgid "Documentation"
3115
  msgstr ""
3116
 
3117
+ #: includes/class-mla-settings.php:1317
3118
  msgid "General Processing Options"
3119
  msgstr ""
3120
 
3121
  #. translators: 1: - 4: page subheader values
3122
+ #: includes/class-mla-settings.php:1319
3123
  #, php-format
3124
  msgid ""
3125
  "In this tab you can find a number of options for controlling the "
3128
  "any changes you make."
3129
  msgstr ""
3130
 
3131
+ #: includes/class-mla-settings.php:1319
3132
  msgid "Media/Assistant Table Defaults"
3133
  msgstr ""
3134
 
3135
+ #: includes/class-mla-settings.php:1319
3136
  msgid "Media Manager Enhancements"
3137
  msgstr ""
3138
 
3139
+ #: includes/class-mla-settings.php:1320 includes/class-mla-settings.php:1678
3140
+ #: includes/class-mla-settings.php:1731 includes/class-mla-settings.php:2146
3141
+ #: includes/class-mla-settings.php:2196 includes/class-mla-settings.php:2281
3142
+ #: includes/class-mla-settings.php:2694 includes/class-mla-settings.php:2697
3143
+ #: includes/class-mla-settings.php:2826 includes/class-mla-settings.php:2828
3144
  msgid "Save Changes"
3145
  msgstr ""
3146
 
3147
+ #: includes/class-mla-settings.php:1321
3148
  msgid "Export ALL Settings"
3149
  msgstr ""
3150
 
3151
+ #: includes/class-mla-settings.php:1322
3152
  msgid "Delete General options and restore default settings"
3153
  msgstr ""
3154
 
3155
+ #: includes/class-mla-settings.php:1326
3156
  msgid "Support Our Work"
3157
  msgstr ""
3158
 
3159
+ #: includes/class-mla-settings.php:1327 includes/class-mla-settings.php:1330
3160
  msgid "Donate to FTJ"
3161
  msgstr ""
3162
 
3163
+ #: includes/class-mla-settings.php:1328
3164
  msgid "Donate"
3165
  msgstr ""
3166
 
3167
  #. translators: 1: donation hyperlink
3168
+ #: includes/class-mla-settings.php:1330
3169
  #, php-format
3170
  msgid ""
3171
  "This plugin was inspired by my work on the WordPress web site for our "
3174
  "our work. Thank you!"
3175
  msgstr ""
3176
 
3177
+ #: includes/class-mla-settings.php:1330
3178
  msgid "tax-deductible donation"
3179
  msgstr ""
3180
 
3181
+ #: includes/class-mla-settings.php:1351
3182
  msgid "enhanced version of the WordPress [gallery] shortcode."
3183
  msgstr ""
3184
 
3185
+ #: includes/class-mla-settings.php:1352
3186
  msgid "enhanced version of the WordPress Tag Cloud."
3187
  msgstr ""
3188
 
3189
+ #: includes/class-mla-settings.php:1364
3190
  msgid "Shortcodes made available by this plugin"
3191
  msgstr ""
3192
 
3193
+ #: includes/class-mla-settings.php:1472
3194
  msgid "Edit View"
3195
  msgstr ""
3196
 
3197
+ #: includes/class-mla-settings.php:1478 includes/class-mla-settings.php:1734
3198
  msgid ""
3199
  "The &#8220;slug&#8221; is the URL-friendly, unique key for the view. It must "
3200
  "be all lowercase and contain only letters, numbers, periods (.), slashes (/) "
3203
  "MIME</strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
3204
  msgstr ""
3205
 
3206
+ #: includes/class-mla-settings.php:1479 includes/class-mla-settings.php:1735
3207
  msgid "Singular Label"
3208
  msgstr ""
3209
 
3210
+ #: includes/class-mla-settings.php:1480 includes/class-mla-settings.php:1736
3211
  msgid "Plural Label"
3212
  msgstr ""
3213
 
3214
+ #: includes/class-mla-settings.php:1481 includes/class-mla-settings.php:1737
3215
  msgid ""
3216
  "The labels, e.g., &#8220;Image&#8221; and &#8220;Images&#8221; are used for "
3217
  "column headers and other display purposes."
3218
  msgstr ""
3219
 
3220
+ #: includes/class-mla-settings.php:1482 includes/class-mla-settings.php:1738
3221
  msgid "Specification"
3222
  msgstr ""
3223
 
3224
+ #: includes/class-mla-settings.php:1483 includes/class-mla-settings.php:1739
3225
  msgid ""
3226
  "If the MIME type specification differs from the slug, enter it here. You may "
3227
  "include multiple MIME types, e.g., &#8220;audio,video&#8221; and/or wildcard "
3229
  "MIME Type box is checked."
3230
  msgstr ""
3231
 
3232
+ #: includes/class-mla-settings.php:1484 includes/class-mla-settings.php:1740
3233
  msgid "Post MIME Type"
3234
  msgstr ""
3235
 
3236
+ #: includes/class-mla-settings.php:1485 includes/class-mla-settings.php:1741
3237
  msgid ""
3238
  "Check this box if you want to add this entry to the list of MIME types "
3239
  "returned by wp_get_mime_types()."
3240
  msgstr ""
3241
 
3242
+ #: includes/class-mla-settings.php:1486 includes/class-mla-settings.php:1742
3243
  msgid "Table View"
3244
  msgstr ""
3245
 
3246
+ #: includes/class-mla-settings.php:1487 includes/class-mla-settings.php:1743
3247
  msgid ""
3248
  "Check this box if you want to add this entry to the list of Media/Assistant "
3249
  "table views."
3250
  msgstr ""
3251
 
3252
+ #: includes/class-mla-settings.php:1489 includes/class-mla-settings.php:1745
3253
  msgid ""
3254
  "You can choose your own table view order by entering a number (1 for first, "
3255
  "etc.) in this field."
3256
  msgstr ""
3257
 
3258
+ #: includes/class-mla-settings.php:1491 includes/class-mla-settings.php:1747
3259
+ #: includes/class-mla-settings.php:1845 includes/class-mla-settings.php:2208
3260
  msgid ""
3261
  "The description can contain any documentation or notes you need to "
3262
  "understand or use the item."
3263
  msgstr ""
3264
 
3265
+ #. translators: 1: bulk_action, e.g., delete, edit, restore, trash
3266
+ #: includes/class-mla-settings.php:1602 includes/class-mla-settings.php:2067
3267
+ #, php-format
3268
+ msgid "Unknown bulk action %1$s"
3269
+ msgstr ""
3270
+
3271
  #. translators: 1: view name/slug
3272
+ #: includes/class-mla-settings.php:1641 includes/class-mla-settings.php:2109
3273
  #, php-format
3274
  msgid "Edit view \"%1$s\" cancelled."
3275
  msgstr ""
3276
 
3277
+ #: includes/class-mla-settings.php:1675
3278
  msgid "View and Post MIME Type Support is disabled"
3279
  msgstr ""
3280
 
3281
+ #: includes/class-mla-settings.php:1720 includes/class-mla-settings.php:1723
3282
  msgid "Library Views/Post MIME Type Processing"
3283
  msgstr ""
3284
 
3285
+ #: includes/class-mla-settings.php:1721
3286
  msgid ""
3287
  "In this tab you can manage the list of \"Post MIME Types\", which are used "
3288
  "by WordPress to define the views for the <em><strong>Media/Library</strong></"
3294
  msgstr ""
3295
 
3296
  #. translators: 1: Documentation hyperlink
3297
+ #: includes/class-mla-settings.php:1723
3298
  #, php-format
3299
  msgid ""
3300
  "You can find more information about library views, Post MIME types and how "
3303
  "screen."
3304
  msgstr ""
3305
 
3306
+ #: includes/class-mla-settings.php:1723
3307
  msgid "Library View Processing documentation"
3308
  msgstr ""
3309
 
3310
+ #: includes/class-mla-settings.php:1727 includes/class-mla-settings.php:1915
3311
+ #: includes/class-mla-settings.php:2220
3312
  msgid "Displaying search results for"
3313
  msgstr ""
3314
 
3315
+ #: includes/class-mla-settings.php:1728
3316
  msgid "Search Views"
3317
  msgstr ""
3318
 
3319
+ #: includes/class-mla-settings.php:1732
3320
  msgid "Add New View"
3321
  msgstr ""
3322
 
3323
+ #: includes/class-mla-settings.php:1748
3324
  msgid "Add View"
3325
  msgstr ""
3326
 
3327
+ #: includes/class-mla-settings.php:1750 includes/class-mla-settings.php:2213
3328
  msgid "<strong>Quick Edit</strong>"
3329
  msgstr ""
3330
 
3331
+ #: includes/class-mla-settings.php:1756
3332
  #: includes/class-mla-view-list-table.php:377
3333
  #: includes/class-mla-view-list-table.php:393
3334
  msgid "Yes"
3335
  msgstr ""
3336
 
3337
+ #: includes/class-mla-settings.php:1830
3338
  msgid "Edit Upload MIME Type"
3339
  msgstr ""
3340
 
3341
+ #: includes/class-mla-settings.php:1835 includes/class-mla-settings.php:2199
3342
  msgid "Extension"
3343
  msgstr ""
3344
 
3345
+ #: includes/class-mla-settings.php:1836
3346
  msgid ""
3347
  "The &#8220;extension&#8221; is the file extension for this type, and a "
3348
  "unique key for the item. It must be all lowercase and contain only letters "
3349
  "and numbers."
3350
  msgstr ""
3351
 
3352
+ #: includes/class-mla-settings.php:1838 includes/class-mla-settings.php:2202
3353
  msgid ""
3354
  "The MIME Type must be all lowercase and contain only letters, numbers, "
3355
  "periods (.), slashes (/) and hyphens (-). It <strong>must be a valid MIME</"
3356
  "strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
3357
  msgstr ""
3358
 
3359
+ #: includes/class-mla-settings.php:1839 includes/class-mla-settings.php:2203
3360
  msgid "Icon Type"
3361
  msgstr ""
3362
 
3363
+ #: includes/class-mla-settings.php:1841 includes/class-mla-settings.php:2204
3364
  msgid ""
3365
  "The Icon Type selects a thumbnail image displayed for non-image file types, "
3366
  "such as PDF documents."
3367
  msgstr ""
3368
 
3369
+ #: includes/class-mla-settings.php:1842 includes/class-mla-settings.php:2205
3370
  msgid "Inactive"
3371
  msgstr ""
3372
 
3373
+ #: includes/class-mla-settings.php:1843 includes/class-mla-settings.php:2206
3374
  msgid ""
3375
  "Check this box if you want to remove this entry from the list of Upload MIME "
3376
  "Types returned by get_allowed_mime_types()."
3377
  msgstr ""
3378
 
3379
+ #: includes/class-mla-settings.php:1914
3380
  msgid "Known File Extension/MIME Type Associations"
3381
  msgstr ""
3382
 
3383
+ #: includes/class-mla-settings.php:1916
3384
  msgid "Search Known MIME Types"
3385
  msgstr ""
3386
 
3387
+ #: includes/class-mla-settings.php:1918 includes/class-mla-settings.php:2192
3388
  msgid "To search by extension, use \".\", e.g., \".doc\""
3389
  msgstr ""
3390
 
3391
+ #: includes/class-mla-settings.php:2143
3392
  msgid "Upload MIME Type Support is disabled"
3393
  msgstr ""
3394
 
3395
+ #: includes/class-mla-settings.php:2186 includes/class-mla-settings.php:2189
3396
  msgid "File Extension and MIME Type Processing"
3397
  msgstr ""
3398
 
3399
+ #: includes/class-mla-settings.php:2187
3400
  msgid ""
3401
  "In this tab you can manage the list of file extension/MIME Type "
3402
  "associations, which are used by WordPress to decide what kind of files can "
3406
  msgstr ""
3407
 
3408
  #. translators: 1: Documentation hyperlink
3409
+ #: includes/class-mla-settings.php:2189
3410
  #, php-format
3411
  msgid ""
3412
  "You can find more information about file extensions, MIME types and how "
3414
  "the <strong>\"Help\"</strong> tab in the upper-right corner of this screen."
3415
  msgstr ""
3416
 
3417
+ #: includes/class-mla-settings.php:2189
3418
  msgid "File Extension Processing documentation"
3419
  msgstr ""
3420
 
3421
+ #: includes/class-mla-settings.php:2191
3422
  msgid "Search Uploads"
3423
  msgstr ""
3424
 
3425
+ #: includes/class-mla-settings.php:2197
3426
  msgid "Add New Upload MIME Type"
3427
  msgstr ""
3428
 
3429
+ #: includes/class-mla-settings.php:2198
3430
  msgid ""
3431
  "To search the database of over 1,500 known extension/type associations, "
3432
  "click \"Search Known Types\" below the form."
3433
  msgstr ""
3434
 
3435
+ #: includes/class-mla-settings.php:2200
3436
  msgid ""
3437
  "The &#8220;extension&#8221; is the file extension for this type, and unique "
3438
  "key for the item. It must be all lowercase and contain only letters and "
3439
  "numbers."
3440
  msgstr ""
3441
 
3442
+ #: includes/class-mla-settings.php:2209
3443
  msgid "Add Upload MIME Type"
3444
  msgstr ""
3445
 
3446
+ #: includes/class-mla-settings.php:2211
3447
  msgid "Search Known Types"
3448
  msgstr ""
3449
 
3450
+ #: includes/class-mla-settings.php:2219
3451
  msgid "Active"
3452
  msgstr ""
3453
 
3454
+ #: includes/class-mla-settings.php:2272
3455
  msgid "MLA Gallery Options"
3456
  msgstr ""
3457
 
3458
+ #: includes/class-mla-settings.php:2273
3459
  msgid "Go to Markup Templates"
3460
  msgstr ""
3461
 
3462
+ #: includes/class-mla-settings.php:2274
3463
  msgid ""
3464
  "In this tab you can view the default style and markup templates. You can "
3465
  "also define additional templates and use the <code>mla_style</code> and "
3469
  "Changes\" at the bottom of this page."
3470
  msgstr ""
3471
 
3472
+ #: includes/class-mla-settings.php:2277
3473
  msgid "Style Templates"
3474
  msgstr ""
3475
 
3476
+ #: includes/class-mla-settings.php:2279
3477
  msgid "Markup Templates"
3478
  msgstr ""
3479
 
3480
+ #: includes/class-mla-settings.php:2292
3481
  msgid "Theme"
3482
  msgstr ""
3483
 
3484
+ #: includes/class-mla-settings.php:2340
3485
  msgid ""
3486
  "This default template cannot be altered or deleted, but you can copy the "
3487
  "styles."
3488
  msgstr ""
3489
 
3490
+ #: includes/class-mla-settings.php:2351 includes/class-mla-settings.php:2384
3491
+ #: includes/class-mla-settings.php:2410
3492
  msgid "Styles"
3493
  msgstr ""
3494
 
3495
+ #: includes/class-mla-settings.php:2355 includes/class-mla-settings.php:2388
3496
+ #: includes/class-mla-settings.php:2414
3497
  msgid ""
3498
  "List of substitution parameters, e.g., [+selector+], on Documentation tab."
3499
  msgstr ""
3500
 
3501
+ #: includes/class-mla-settings.php:2372 includes/class-mla-settings.php:2490
3502
  msgid "Delete this template"
3503
  msgstr ""
3504
 
3505
+ #: includes/class-mla-settings.php:2373 includes/class-mla-settings.php:2491
3506
  msgid ""
3507
  "Check the box to delete this template when you press Update at the bottom of "
3508
  "the page."
3509
  msgstr ""
3510
 
3511
+ #: includes/class-mla-settings.php:2399
3512
  msgid "Fill in a name and styles to add a new template."
3513
  msgstr ""
3514
 
3515
+ #: includes/class-mla-settings.php:2434
3516
  msgid ""
3517
  "This default template cannot be altered or deleted, but you can copy the "
3518
  "markup."
3519
  msgstr ""
3520
 
3521
+ #: includes/class-mla-settings.php:2446 includes/class-mla-settings.php:2503
3522
+ #: includes/class-mla-settings.php:2553
3523
  msgid "Open"
3524
  msgstr ""
3525
 
3526
+ #: includes/class-mla-settings.php:2450 includes/class-mla-settings.php:2507
3527
+ #: includes/class-mla-settings.php:2557
3528
  msgid ""
3529
  "Markup for the beginning of the gallery. List of parameters, e.g., [+selector"
3530
  "+], on Documentation tab."
3531
  msgstr ""
3532
 
3533
+ #: includes/class-mla-settings.php:2452 includes/class-mla-settings.php:2509
3534
+ #: includes/class-mla-settings.php:2559
3535
  msgid "Row"
3536
  msgstr ""
3537
 
3538
+ #: includes/class-mla-settings.php:2456 includes/class-mla-settings.php:2563
3539
  msgid "Markup for the beginning of each row in the gallery."
3540
  msgstr ""
3541
 
3542
+ #: includes/class-mla-settings.php:2458 includes/class-mla-settings.php:2515
3543
+ #: includes/class-mla-settings.php:2565
3544
  msgid "Item"
3545
  msgstr ""
3546
 
3547
+ #: includes/class-mla-settings.php:2462 includes/class-mla-settings.php:2569
3548
  msgid "Markup for each item/cell of the gallery."
3549
  msgstr ""
3550
 
3551
+ #: includes/class-mla-settings.php:2464 includes/class-mla-settings.php:2521
3552
+ #: includes/class-mla-settings.php:2571 includes/class-mla-settings.php:2682
3553
+ #: includes/class-mla-settings.php:2808
3554
  msgid "Close"
3555
  msgstr ""
3556
 
3557
+ #: includes/class-mla-settings.php:2468 includes/class-mla-settings.php:2575
3558
  msgid "Markup for the end of each row in the gallery."
3559
  msgstr ""
3560
 
3561
+ #: includes/class-mla-settings.php:2473 includes/class-mla-settings.php:2530
3562
+ #: includes/class-mla-settings.php:2580
3563
  msgid "Markup for the end of the gallery."
3564
  msgstr ""
3565
 
3566
+ #: includes/class-mla-settings.php:2513
3567
  msgid "Markup for the beginning of each row."
3568
  msgstr ""
3569
 
3570
+ #: includes/class-mla-settings.php:2519
3571
  msgid "Markup for each item/cell."
3572
  msgstr ""
3573
 
3574
+ #: includes/class-mla-settings.php:2525
3575
  msgid "Markup for the end of each row."
3576
  msgstr ""
3577
 
3578
+ #: includes/class-mla-settings.php:2541
3579
  msgid "Fill in a name and markup to add a new template."
3580
  msgstr ""
3581
 
3582
+ #: includes/class-mla-settings.php:2675
3583
+ msgid "Custom Field Mapping Progress"
3584
+ msgstr ""
3585
+
3586
+ #: includes/class-mla-settings.php:2676 includes/class-mla-settings.php:2802
3587
+ msgid "Progress"
3588
+ msgstr ""
3589
+
3590
+ #: includes/class-mla-settings.php:2677 includes/class-mla-settings.php:2803
3591
+ msgid "DO NOT DO THE FOLLOWING (they will cause mapping to fail)"
3592
+ msgstr ""
3593
+
3594
+ #: includes/class-mla-settings.php:2678 includes/class-mla-settings.php:2804
3595
+ msgid "Close the window"
3596
+ msgstr ""
3597
+
3598
+ #: includes/class-mla-settings.php:2679 includes/class-mla-settings.php:2805
3599
+ msgid "Reload the page"
3600
+ msgstr ""
3601
+
3602
+ #: includes/class-mla-settings.php:2680 includes/class-mla-settings.php:2806
3603
+ msgid "Click the browser&rsquo;s Stop, Back or forward buttons"
3604
+ msgstr ""
3605
+
3606
+ #: includes/class-mla-settings.php:2684 includes/class-mla-settings.php:2688
3607
  msgid "Custom Field and Attachment Metadata Processing Options"
3608
  msgstr ""
3609
 
3610
  #. translators: 1: Documentation hyperlink
3611
+ #: includes/class-mla-settings.php:2686
3612
  #, php-format
3613
  msgid ""
3614
  "In this tab you can define the rules for mapping several types of image "
3618
  "field. See the %1$s section of the Documentation for details."
3619
  msgstr ""
3620
 
3621
+ #: includes/class-mla-settings.php:2686
3622
  msgid "Updating Attachment Metadata Documentation"
3623
  msgstr ""
3624
 
3625
+ #: includes/class-mla-settings.php:2686
3626
  msgid "Adding or changing Attachment Metadata"
3627
  msgstr ""
3628
 
3629
  #. translators: 1: Documentation hyperlink
3630
+ #: includes/class-mla-settings.php:2688 includes/class-mla-settings.php:2813
3631
  #, php-format
3632
  msgid ""
3633
  "You can find more information about using the controls in this tab to define "
3634
  "mapping rules and apply them in the %1$s section of the Documentation."
3635
  msgstr ""
3636
 
3637
+ #: includes/class-mla-settings.php:2688
3638
  msgid "Custom Field Options documentation"
3639
  msgstr ""
3640
 
3641
+ #: includes/class-mla-settings.php:2692 includes/class-mla-settings.php:2823
3642
  msgid "Custom field mapping"
3643
  msgstr ""
3644
 
 
 
 
 
3645
  #. translators: 1: "Save Changes"
3646
+ #: includes/class-mla-settings.php:2697
3647
  #, php-format
3648
  msgid ""
3649
  "Click %1$s to update the \"Enable custom field mapping...\" checkbox and/or "
3652
  msgstr ""
3653
 
3654
  #. translators: 1: "Map All Rules..."
3655
+ #: includes/class-mla-settings.php:2699
3656
  #, php-format
3657
  msgid ""
3658
  "Click %1$s to apply all the rules at once (rule changes will be applied but "
3659
  "not saved)."
3660
  msgstr ""
3661
 
3662
+ #: includes/class-mla-settings.php:2801
3663
+ msgid "IPTC &amp; EXIF Mapping Progress"
3664
+ msgstr ""
3665
+
3666
+ #: includes/class-mla-settings.php:2810 includes/class-mla-settings.php:2813
3667
  msgid "IPTC &amp; EXIF Processing Options"
3668
  msgstr ""
3669
 
3670
+ #: includes/class-mla-settings.php:2811
3671
  msgid ""
3672
  "In this tab you can define the rules for mapping IPTC (International Press "
3673
  "Telecommunications Council) and EXIF (EXchangeable Image File) metadata to "
3676
  "click \"Save Changes\" at the bottom of this page."
3677
  msgstr ""
3678
 
3679
+ #: includes/class-mla-settings.php:2813
3680
  msgid "IPTC/EXIF Options documentation"
3681
  msgstr ""
3682
 
3683
+ #: includes/class-mla-settings.php:2817
3684
  msgid "Standard field mapping"
3685
  msgstr ""
3686
 
3687
+ #: includes/class-mla-settings.php:2820
 
 
 
 
3688
  msgid "Taxonomy term mapping"
3689
  msgstr ""
3690
 
 
 
 
 
 
 
 
 
3691
  #. translators: 1: "Save Changes"
3692
+ #: includes/class-mla-settings.php:2828
3693
  #, php-format
3694
  msgid ""
3695
  "Click %1$s to update the \"Enable IPTC/EXIF mapping...\" checkbox and/or all "
3697
  "performed.</strong>"
3698
  msgstr ""
3699
 
3700
+ #: includes/class-mla-settings.php:2888
3701
  msgid "Media Library Assistant - Error"
3702
  msgstr ""
3703
 
3704
+ #: includes/class-mla-settings.php:2889
3705
  msgid "You do not have permission to manage plugin settings."
3706
  msgstr ""
3707
 
3708
+ #: includes/class-mla-settings.php:2916
3709
  msgid "ERROR: Cannot render content tab"
3710
  msgstr ""
3711
 
3712
+ #: includes/class-mla-settings.php:2919
3713
  msgid "ERROR: Unknown content tab"
3714
  msgstr ""
3715
 
3716
  #. translators: 1: template type 2: template name
3717
+ #: includes/class-mla-settings.php:2999 includes/class-mla-settings.php:3089
3718
  #, php-format
3719
  msgctxt "message_list"
3720
  msgid "Deleting %1$s \"%2$s\"."
3721
  msgstr ""
3722
 
3723
  #. translators: 1: template name 2: template type
3724
+ #: includes/class-mla-settings.php:3010 includes/class-mla-settings.php:3102
3725
  #, php-format
3726
  msgid "ERROR: Reserved name \"%1$s\", new %2$s discarded."
3727
  msgstr ""
3728
 
3729
  #. translators: 1: template name 2: template type
3730
+ #: includes/class-mla-settings.php:3016 includes/class-mla-settings.php:3108
3731
  #, php-format
3732
  msgid "ERROR: Duplicate name \"%1$s\", new %2$s discarded."
3733
  msgstr ""
3734
 
3735
  #. translators: 1: template type 2: template name
3736
+ #: includes/class-mla-settings.php:3020 includes/class-mla-settings.php:3112
3737
  #, php-format
3738
  msgctxt "message_list"
3739
  msgid "Adding new %1$s \"%2$s\"."
3740
  msgstr ""
3741
 
3742
  #. translators: 1: element name 3: old value
3743
+ #: includes/class-mla-settings.php:3030 includes/class-mla-settings.php:3122
3744
  #, php-format
3745
  msgid "ERROR: Blank %1$s, reverting to \"%3$s\"."
3746
  msgstr ""
3747
 
3748
+ #: includes/class-mla-settings.php:3030 includes/class-mla-settings.php:3038
3749
+ #: includes/class-mla-settings.php:3042
3750
  msgid "style template name"
3751
  msgstr ""
3752
 
3753
  #. translators: 1: element name 2: new value 3: old value
3754
+ #: includes/class-mla-settings.php:3038 includes/class-mla-settings.php:3129
3755
  #, php-format
3756
  msgid "ERROR: Duplicate new %1$s \"%2$s\", reverting to \"%3$s\"."
3757
  msgstr ""
3758
 
3759
  #. translators: 1: element name 2: old_value 3: new_value
3760
+ #: includes/class-mla-settings.php:3042 includes/class-mla-settings.php:3133
3761
  #, php-format
3762
  msgctxt "message_list"
3763
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
3764
  msgstr ""
3765
 
3766
  #. translators: 1: template type 2: template name
3767
+ #: includes/class-mla-settings.php:3049
3768
  #, php-format
3769
  msgctxt "message_list"
3770
  msgid "Updating contents of %1$s \"%2$s\"."
3771
  msgstr ""
3772
 
3773
  #. translators: 1: template type
3774
+ #: includes/class-mla-settings.php:3060 includes/class-mla-settings.php:3181
3775
  #, php-format
3776
  msgid "ERROR: Update of %1$s failed."
3777
  msgstr ""
3778
 
3779
+ #: includes/class-mla-settings.php:3122 includes/class-mla-settings.php:3129
3780
+ #: includes/class-mla-settings.php:3133
3781
  msgid "markup template name"
3782
  msgstr ""
3783
 
3784
  #. translators: 1: template name
3785
+ #: includes/class-mla-settings.php:3141
3786
  #, php-format
3787
  msgctxt "message_list"
3788
  msgid "Updating open markup for \"%1$s\"."
3789
  msgstr ""
3790
 
3791
  #. translators: 1: template name
3792
+ #: includes/class-mla-settings.php:3147
3793
  #, php-format
3794
  msgctxt "message_list"
3795
  msgid "Updating row open markup for \"%1$s\"."
3796
  msgstr ""
3797
 
3798
  #. translators: 1: template name
3799
+ #: includes/class-mla-settings.php:3153
3800
  #, php-format
3801
  msgctxt "message_list"
3802
  msgid "Updating item markup for \"%1$s\"."
3803
  msgstr ""
3804
 
3805
  #. translators: 1: template name
3806
+ #: includes/class-mla-settings.php:3159
3807
  #, php-format
3808
  msgctxt "message_list"
3809
  msgid "Updating row close markup for \"%1$s\"."
3810
  msgstr ""
3811
 
3812
  #. translators: 1: template name
3813
+ #: includes/class-mla-settings.php:3165
3814
  #, php-format
3815
  msgctxt "message_list"
3816
  msgid "Updating close markup for \"%1$s\"."
3817
  msgstr ""
3818
 
3819
  #. translators: 1: field type
3820
+ #: includes/class-mla-settings.php:3190
3821
  #, php-format
3822
  msgid "%1$s no changes detected."
3823
  msgstr ""
3824
 
3825
+ #: includes/class-mla-settings.php:3225
3826
  msgid "View settings saved."
3827
  msgstr ""
3828
 
3829
+ #: includes/class-mla-settings.php:3259
3830
  msgid "Upload MIME Type settings saved."
3831
  msgstr ""
3832
 
3833
+ #: includes/class-mla-settings.php:3301
3834
  msgid "ERROR: No custom field mapping rules to process."
3835
  msgstr ""
3836
 
3837
  #. translators: 1: field type 2: examined count 3: updated count
3838
+ #: includes/class-mla-settings.php:3332 includes/class-mla-settings.php:3470
3839
+ #: includes/class-mla-settings.php:3541 includes/class-mla-settings.php:3626
3840
  #, php-format
3841
  msgid "%1$s mapping completed; %2$d attachment(s) examined, %3$d updated."
3842
  msgstr ""
3843
 
3844
  #. translators: 1: field type 2: examined count
3845
+ #: includes/class-mla-settings.php:3335 includes/class-mla-settings.php:3473
3846
+ #: includes/class-mla-settings.php:3544 includes/class-mla-settings.php:3629
3847
  #, php-format
3848
  msgid ""
3849
  "%1$s mapping completed; %2$d attachment(s) examined, no changes detected."
3850
  msgstr ""
3851
 
3852
+ #: includes/class-mla-settings.php:3365
3853
  #, php-format
3854
  msgid "%s attachment"
3855
  msgid_plural "%s attachments"
3857
  msgstr[1] ""
3858
 
3859
  #. translators: 1: number of attachments
3860
+ #: includes/class-mla-settings.php:3367
3861
  #, php-format
3862
  msgid "Deleted custom field value from %1$s."
3863
  msgstr ""
3864
 
3865
+ #: includes/class-mla-settings.php:3370
3866
  msgid "No attachments contained this custom field."
3867
  msgstr ""
3868
 
3869
  #. translators: 1: field type
3870
+ #: includes/class-mla-settings.php:3431 includes/class-mla-settings.php:3502
3871
+ #: includes/class-mla-settings.php:3587
3872
  #, php-format
3873
  msgid "ERROR: No %1$s settings to process."
3874
  msgstr ""
3875
 
3876
+ #: includes/class-mla-settings.php:3461 includes/class-mla-settings.php:3532
3877
+ #: includes/class-mla-settings.php:3617
3878
  msgid "updated."
3879
  msgstr ""
3880
 
3881
  #. translators: 1: reference type, e.g., Gallery in
3882
+ #: includes/class-mla-settings.php:3722 includes/class-mla-settings.php:3732
3883
  #, php-format
3884
  msgctxt "message_list"
3885
  msgid "%1$s - references updated."
3886
  msgstr ""
3887
 
3888
+ #: includes/class-mla-settings.php:3772
3889
  msgid "General settings saved."
3890
  msgstr ""
3891
 
3892
  #. translators: 1: option name
3893
+ #: includes/class-mla-settings.php:3803
3894
  #, php-format
3895
  msgctxt "message_list"
3896
  msgid "delete_option \"%1$s\""
3897
  msgstr ""
3898
 
3899
+ #: includes/class-mla-settings.php:3811
3900
  msgid "General settings reset to default values."
3901
  msgstr ""
3902
 
3903
+ #: includes/class-mla-settings.php:3853
3904
  msgid "select settings"
3905
  msgstr ""
3906
 
3907
+ #: includes/class-mla-settings.php:3873
3908
  msgid "Import ALL Settings"
3909
  msgstr ""
3910
 
3911
+ #: includes/class-mla-settings.php:3898
3912
  msgctxt "message_list"
3913
  msgid "exported"
3914
  msgstr ""
3915
 
3916
+ #: includes/class-mla-settings.php:3900
3917
  msgctxt "message_list"
3918
  msgid "skipped"
3919
  msgstr ""
3920
 
3921
+ #: includes/class-mla-settings.php:3907
3922
  msgid "ALL settings exported."
3923
  msgstr ""
3924
 
3925
  #. translators: 1: backup directory name
3926
+ #: includes/class-mla-settings.php:3918
3927
  #, php-format
3928
  msgid "ERROR: The settings directory ( %1$s ) cannot be created."
3929
  msgstr ""
3930
 
3931
  #. translators: 1: backup directory name
3932
+ #: includes/class-mla-settings.php:3922
3933
  #, php-format
3934
  msgid "ERROR: The settings directory ( %1$s ) is not writable."
3935
  msgstr ""
3936
 
3937
  #. translators: 1: backup file name
3938
+ #: includes/class-mla-settings.php:3933
3939
  #, php-format
3940
  msgid "ERROR: The settings file ( %1$s ) could not be opened."
3941
  msgstr ""
3942
 
3943
  #. translators: 1: PHP error information
3944
+ #: includes/class-mla-settings.php:3940
3945
  #, php-format
3946
  msgctxt "error_log"
3947
  msgid "ERROR: _export_settings $error_info = \"%1$s\"."
3948
  msgstr ""
3949
 
3950
  #. translators: 1: backup file name 2: error message
3951
+ #: includes/class-mla-settings.php:3949
3952
  #, php-format
3953
  msgid "ERROR: Writing the settings file ( %1$s ) \"%2$s\"."
3954
  msgstr ""
3955
 
3956
  #. translators: 1: number of option settings
3957
+ #: includes/class-mla-settings.php:3955
3958
  #, php-format
3959
  msgid "Settings exported; %1$s settings recorded."
3960
  msgstr ""
3961
 
3962
+ #: includes/class-mla-settings.php:3973
3963
  msgid "No settings imported."
3964
  msgstr ""
3965
 
3966
+ #: includes/class-mla-settings.php:3982
3967
  msgid "Please select an import settings file from the dropdown list."
3968
  msgstr ""
3969
 
3970
+ #: includes/class-mla-settings.php:3986
3971
  msgid "ERROR: The import settings dropdown selection is missing."
3972
  msgstr ""
3973
 
3974
  #. translators: 1: PHP error information
3975
+ #: includes/class-mla-settings.php:3994
3976
  #, php-format
3977
  msgctxt "error_log"
3978
  msgid "ERROR: _import_settings $error_info = \"%1$s\"."
3979
  msgstr ""
3980
 
3981
  #. translators: 1: backup file name 2: error message
3982
+ #: includes/class-mla-settings.php:4003
3983
  #, php-format
3984
  msgid "ERROR: Reading the settings file ( %1$s ) \"%2$s\"."
3985
  msgstr ""
3986
 
3987
+ #: includes/class-mla-settings.php:4013
3988
  msgctxt "message_list"
3989
  msgid "updated"
3990
  msgstr ""
3991
 
3992
+ #: includes/class-mla-settings.php:4016
3993
  msgctxt "message_list"
3994
  msgid "unchanged"
3995
  msgstr ""
3996
 
3997
  #. translators: 1: number of option settings updated 2: number of option settings unchanged
3998
+ #: includes/class-mla-settings.php:4021
3999
  #, php-format
4000
  msgid "Settings imported; %1$s updated, %2$s unchanged."
4001
  msgstr ""
4002
 
4003
+ #: includes/class-mla-shortcodes.php:190
4004
+ #: includes/class-mla-shortcodes.php:1123
4005
+ #: includes/class-mla-shortcodes.php:2015
4006
+ #: includes/class-mla-shortcodes.php:2292
4007
  msgid "Previous"
4008
  msgstr ""
4009
 
4010
+ #: includes/class-mla-shortcodes.php:191
4011
+ #: includes/class-mla-shortcodes.php:1124
4012
+ #: includes/class-mla-shortcodes.php:2062
4013
+ #: includes/class-mla-shortcodes.php:2298
4014
  msgid "Next"
4015
  msgstr ""
4016
 
4017
+ #: includes/class-mla-shortcodes.php:272
4018
  msgid "mla_debug empty gallery"
4019
  msgstr ""
4020
 
4021
+ #: includes/class-mla-shortcodes.php:336
4022
  msgid ""
4023
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
4024
  "<strong>default</strong>, query = "
4025
  msgstr ""
4026
 
4027
+ #: includes/class-mla-shortcodes.php:653
4028
  msgid "unattached"
4029
  msgstr ""
4030
 
4031
+ #: includes/class-mla-shortcodes.php:674
4032
  msgid "unknown"
4033
  msgstr ""
4034
 
4035
+ #: includes/class-mla-shortcodes.php:1230
4036
  msgid "mla_debug attributes"
4037
  msgstr ""
4038
 
4039
+ #: includes/class-mla-shortcodes.php:1231
4040
  msgid "mla_debug arguments"
4041
  msgstr ""
4042
 
4043
+ #: includes/class-mla-shortcodes.php:1323
4044
  msgid "mla_debug empty cloud"
4045
  msgstr ""
4046
 
4047
+ #: includes/class-mla-shortcodes.php:2673
4048
+ #: includes/class-mla-shortcodes.php:2997
4049
+ #: includes/class-mla-shortcodes.php:3028
4050
  msgid "ERROR: Invalid mla_gallery"
4051
  msgstr ""
4052
 
4053
+ #: includes/class-mla-shortcodes.php:3269
4054
  msgid "mla_debug query"
4055
  msgstr ""
4056
 
4057
+ #: includes/class-mla-shortcodes.php:3270
4058
  msgid "mla_debug request"
4059
  msgstr ""
4060
 
4061
+ #: includes/class-mla-shortcodes.php:3271
4062
  msgid "mla_debug query_vars"
4063
  msgstr ""
4064
 
4065
+ #: includes/class-mla-shortcodes.php:3272
4066
  msgid "mla_debug post_count"
4067
  msgstr ""
4068
 
4069
+ #: includes/class-mla-shortcodes.php:3340
4070
  msgid "mla_debug WHERE filter"
4071
  msgstr ""
4072
 
4073
+ #: includes/class-mla-shortcodes.php:3359
4074
  msgid "mla_debug modified WHERE filter"
4075
  msgstr ""
4076
 
4077
+ #: includes/class-mla-shortcodes.php:3382
4078
  msgid "mla_debug ORDER BY filter, incoming"
4079
  msgstr ""
4080
 
4081
+ #: includes/class-mla-shortcodes.php:3382
4082
  msgid "Replacement ORDER BY clause"
4083
  msgstr ""
4084
 
4085
+ #: includes/class-mla-shortcodes.php:3405
4086
  msgid "mla_debug posts_clauses filter"
4087
  msgstr ""
4088
 
4089
+ #: includes/class-mla-shortcodes.php:3423
4090
  msgid "mla_debug posts_clauses_request filter"
4091
  msgstr ""
4092
 
4093
+ #: includes/class-mla-shortcodes.php:3613
4094
  msgid "Invalid taxonomy"
4095
  msgstr ""
4096
 
4097
+ #: includes/class-mla-shortcodes.php:3819
4098
  msgid "mla_debug query arguments"
4099
  msgstr ""
4100
 
4101
+ #: includes/class-mla-shortcodes.php:3820
4102
  msgid "mla_debug last_query"
4103
  msgstr ""
4104
 
4105
+ #: includes/class-mla-shortcodes.php:3821
4106
  msgid "mla_debug last_error"
4107
  msgstr ""
4108
 
4109
+ #: includes/class-mla-shortcodes.php:3822
4110
  msgid "mla_debug num_rows"
4111
  msgstr ""
4112
 
4113
+ #: includes/class-mla-shortcodes.php:3823
4114
  msgid "mla_debug found_rows"
4115
  msgstr ""
4116
 
phpDocs/classes/MLA.html CHANGED
@@ -65,7 +65,7 @@
65
  <li class="method public "><a href="#mla_admin_menu_action" title="mla_admin_menu_action :: Add the submenu pages"><span class="description">Add the submenu pages</span><pre>mla_admin_menu_action()</pre></a></li>
66
  <li class="method public "><a href="#mla_edit_tax_redirect" title="mla_edit_tax_redirect :: Redirect to the Edit Tags/Categories page"><span class="description">Redirect to the Edit Tags/Categories page</span><pre>mla_edit_tax_redirect()</pre></a></li>
67
  <li class="method public "><a href="#mla_find_posts_ajax_action" title='mla_find_posts_ajax_action :: Ajax handler to fetch candidates for the "Set Parent" popup window'><span class="description">Ajax handler to fetch candidates for the "Set Parent" popup window</span><pre>mla_find_posts_ajax_action()</pre></a></li>
68
- <li class="method public "><a href="#mla_inline_edit_ajax_action" title="mla_inline_edit_ajax_action :: Ajax handler for inline editing (quick and bulk edit)"><span class="description">Ajax handler for inline editing (quick and bulk edit)</span><pre>mla_inline_edit_ajax_action()</pre></a></li>
69
  <li class="method public "><a href="#mla_load_media_action" title="mla_load_media_action :: Redirect to Media/Assistant if Media/Library is hidden"><span class="description">Redirect to Media/Assistant if Media/Library is hidden</span><pre>mla_load_media_action()</pre></a></li>
70
  <li class="method public "><a href="#mla_parent_file_filter" title="mla_parent_file_filter :: Cleanup menus for Edit Tags/Categories page"><span class="description">Cleanup menus for Edit Tags/Categories page</span><pre>mla_parent_file_filter()</pre></a></li>
71
  <li class="method public "><a href="#mla_plugins_loaded_action" title="mla_plugins_loaded_action :: Load a plugin text domain"><span class="description">Load a plugin text domain</span><pre>mla_plugins_loaded_action()</pre></a></li>
@@ -77,13 +77,16 @@
77
  <li class="nav-header private">» Private</li>
78
  <li class="method private "><a href="#_authors_dropdown" title="_authors_dropdown :: Get the edit Authors dropdown box, if user has suitable permissions"><span class="description">Get the edit Authors dropdown box, if user has suitable permissions</span><pre>_authors_dropdown()</pre></a></li>
79
  <li class="method private "><a href="#_build_inline_edit_form" title="_build_inline_edit_form :: Build the hidden row templates for inline editing (quick and bulk edit)"><span class="description">Build the hidden row templates for inline editing (quick and bulk edit)</span><pre>_build_inline_edit_form()</pre></a></li>
 
80
  <li class="method private "><a href="#_compose_post_type_select" title="_compose_post_type_select :: Compose a Post Type Options list with current selection"><span class="description">Compose a Post Type Options list with current selection</span><pre>_compose_post_type_select()</pre></a></li>
81
  <li class="method private "><a href="#_current_bulk_action" title="_current_bulk_action :: Get the current action selected from the bulk actions dropdown"><span class="description">Get the current action selected from the bulk actions dropdown</span><pre>_current_bulk_action()</pre></a></li>
82
  <li class="method private "><a href="#_delete_single_item" title="_delete_single_item :: Delete a single item permanently"><span class="description">Delete a single item permanently</span><pre>_delete_single_item()</pre></a></li>
83
  <li class="method private "><a href="#_display_single_item" title="_display_single_item :: Display a single item sub page; prepare the form to
84
  change the meta data for a single attachment."><span class="description">Display a single item sub page; prepare the form to
85
  change the meta data for a single attachment.</span><pre>_display_single_item()</pre></a></li>
 
86
  <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>
 
87
  <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>
88
  <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>
89
  <li class="nav-header">
@@ -250,11 +253,11 @@ Adds filters for post type and pagination.</p></p>
250
  </div></div>
251
  </div>
252
  <a name="mla_inline_edit_ajax_action" id="mla_inline_edit_ajax_action"></a><div class="element clickable method public mla_inline_edit_ajax_action" data-toggle="collapse" data-target=".mla_inline_edit_ajax_action .collapse">
253
- <h2>Ajax handler for inline editing (quick and bulk edit)</h2>
254
  <pre>mla_inline_edit_ajax_action() : void</pre>
255
  <div class="labels"></div>
256
  <div class="row collapse"><div class="detail-description">
257
- <p class="long_description"><p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p></p>
258
  <table class="table table-bordered"><tr>
259
  <th>since</th>
260
  <td>0.20</td>
@@ -450,6 +453,18 @@ Defined as public because it's an action.</p></p>
450
  <code>string</code>HTML <form> markup for hidden rows</div>
451
  </div></div>
452
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
453
  <a name="_compose_post_type_select" id="_compose_post_type_select"></a><div class="element clickable method private _compose_post_type_select" data-toggle="collapse" data-target="._compose_post_type_select .collapse">
454
  <h2>Compose a Post Type Options list with current selection</h2>
455
  <pre>_compose_post_type_select(array $templates, string $selection) : string</pre>
@@ -533,6 +548,25 @@ change the meta data for a single attachment.</h2>
533
  <code>array</code>message and/or HTML content</div>
534
  </div></div>
535
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
536
  <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">
537
  <h2>Process bulk edit area fields, which may contain a Content Template</h2>
538
  <pre>_process_bulk_value(integer $post_id, string $bulk_value) : string</pre>
@@ -555,6 +589,18 @@ change the meta data for a single attachment.</h2>
555
  <code>string</code>Empty, or new value for the field</div>
556
  </div></div>
557
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
558
  <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">
559
  <h2>Restore a single item from the Trash</h2>
560
  <pre>_restore_single_item(integer $post_id) : array</pre>
@@ -820,7 +866,7 @@ change the meta data for a single attachment.</h2>
820
  <div class="row"><footer class="span12">
821
  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>
822
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
823
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
824
  </div>
825
  </body>
826
  </html>
65
  <li class="method public "><a href="#mla_admin_menu_action" title="mla_admin_menu_action :: Add the submenu pages"><span class="description">Add the submenu pages</span><pre>mla_admin_menu_action()</pre></a></li>
66
  <li class="method public "><a href="#mla_edit_tax_redirect" title="mla_edit_tax_redirect :: Redirect to the Edit Tags/Categories page"><span class="description">Redirect to the Edit Tags/Categories page</span><pre>mla_edit_tax_redirect()</pre></a></li>
67
  <li class="method public "><a href="#mla_find_posts_ajax_action" title='mla_find_posts_ajax_action :: Ajax handler to fetch candidates for the "Set Parent" popup window'><span class="description">Ajax handler to fetch candidates for the "Set Parent" popup window</span><pre>mla_find_posts_ajax_action()</pre></a></li>
68
+ <li class="method public "><a href="#mla_inline_edit_ajax_action" title="mla_inline_edit_ajax_action :: Ajax handler for inline editing"><span class="description">Ajax handler for inline editing</span><pre>mla_inline_edit_ajax_action()</pre></a></li>
69
  <li class="method public "><a href="#mla_load_media_action" title="mla_load_media_action :: Redirect to Media/Assistant if Media/Library is hidden"><span class="description">Redirect to Media/Assistant if Media/Library is hidden</span><pre>mla_load_media_action()</pre></a></li>
70
  <li class="method public "><a href="#mla_parent_file_filter" title="mla_parent_file_filter :: Cleanup menus for Edit Tags/Categories page"><span class="description">Cleanup menus for Edit Tags/Categories page</span><pre>mla_parent_file_filter()</pre></a></li>
71
  <li class="method public "><a href="#mla_plugins_loaded_action" title="mla_plugins_loaded_action :: Load a plugin text domain"><span class="description">Load a plugin text domain</span><pre>mla_plugins_loaded_action()</pre></a></li>
77
  <li class="nav-header private">» Private</li>
78
  <li class="method private "><a href="#_authors_dropdown" title="_authors_dropdown :: Get the edit Authors dropdown box, if user has suitable permissions"><span class="description">Get the edit Authors dropdown box, if user has suitable permissions</span><pre>_authors_dropdown()</pre></a></li>
79
  <li class="method private "><a href="#_build_inline_edit_form" title="_build_inline_edit_form :: Build the hidden row templates for inline editing (quick and bulk edit)"><span class="description">Build the hidden row templates for inline editing (quick and bulk edit)</span><pre>_build_inline_edit_form()</pre></a></li>
80
+ <li class="method private "><a href="#_bulk_edit_ajax_handler" title="_bulk_edit_ajax_handler :: Ajax handler for bulk editing and mapping"><span class="description">Ajax handler for bulk editing and mapping</span><pre>_bulk_edit_ajax_handler()</pre></a></li>
81
  <li class="method private "><a href="#_compose_post_type_select" title="_compose_post_type_select :: Compose a Post Type Options list with current selection"><span class="description">Compose a Post Type Options list with current selection</span><pre>_compose_post_type_select()</pre></a></li>
82
  <li class="method private "><a href="#_current_bulk_action" title="_current_bulk_action :: Get the current action selected from the bulk actions dropdown"><span class="description">Get the current action selected from the bulk actions dropdown</span><pre>_current_bulk_action()</pre></a></li>
83
  <li class="method private "><a href="#_delete_single_item" title="_delete_single_item :: Delete a single item permanently"><span class="description">Delete a single item permanently</span><pre>_delete_single_item()</pre></a></li>
84
  <li class="method private "><a href="#_display_single_item" title="_display_single_item :: Display a single item sub page; prepare the form to
85
  change the meta data for a single attachment."><span class="description">Display a single item sub page; prepare the form to
86
  change the meta data for a single attachment.</span><pre>_display_single_item()</pre></a></li>
87
+ <li class="method private "><a href="#_process_bulk_action" title="_process_bulk_action :: Process bulk action for one or more attachments"><span class="description">Process bulk action for one or more attachments</span><pre>_process_bulk_action()</pre></a></li>
88
  <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>
89
+ <li class="method private "><a href="#_process_mla_download_file" title="_process_mla_download_file :: Process secure file download"><span class="description">Process secure file download</span><pre>_process_mla_download_file()</pre></a></li>
90
  <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>
91
  <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>
92
  <li class="nav-header">
253
  </div></div>
254
  </div>
255
  <a name="mla_inline_edit_ajax_action" id="mla_inline_edit_ajax_action"></a><div class="element clickable method public mla_inline_edit_ajax_action" data-toggle="collapse" data-target=".mla_inline_edit_ajax_action .collapse">
256
+ <h2>Ajax handler for inline editing</h2>
257
  <pre>mla_inline_edit_ajax_action() : void</pre>
258
  <div class="labels"></div>
259
  <div class="row collapse"><div class="detail-description">
260
+ <p class="long_description"><p>Adapted for Quick Edit from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p></p>
261
  <table class="table table-bordered"><tr>
262
  <th>since</th>
263
  <td>0.20</td>
453
  <code>string</code>HTML <form> markup for hidden rows</div>
454
  </div></div>
455
  </div>
456
+ <a name="_bulk_edit_ajax_handler" id="_bulk_edit_ajax_handler"></a><div class="element clickable method private _bulk_edit_ajax_handler" data-toggle="collapse" data-target="._bulk_edit_ajax_handler .collapse">
457
+ <h2>Ajax handler for bulk editing and mapping</h2>
458
+ <pre>_bulk_edit_ajax_handler() : void</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>2.00</td>
465
+ </tr></table>
466
+ </div></div>
467
+ </div>
468
  <a name="_compose_post_type_select" id="_compose_post_type_select"></a><div class="element clickable method private _compose_post_type_select" data-toggle="collapse" data-target="._compose_post_type_select .collapse">
469
  <h2>Compose a Post Type Options list with current selection</h2>
470
  <pre>_compose_post_type_select(array $templates, string $selection) : string</pre>
548
  <code>array</code>message and/or HTML content</div>
549
  </div></div>
550
  </div>
551
+ <a name="_process_bulk_action" id="_process_bulk_action"></a><div class="element clickable method private _process_bulk_action" data-toggle="collapse" data-target="._process_bulk_action .collapse">
552
+ <h2>Process bulk action for one or more attachments</h2>
553
+ <pre>_process_bulk_action(string $bulk_action) : array</pre>
554
+ <div class="labels"></div>
555
+ <div class="row collapse"><div class="detail-description">
556
+ <p class="long_description"></p>
557
+ <table class="table table-bordered"><tr>
558
+ <th>since</th>
559
+ <td>2.00</td>
560
+ </tr></table>
561
+ <h3>Parameters</h3>
562
+ <div class="subelement argument">
563
+ <h4>$bulk_action</h4>
564
+ <code>string</code><p>Bulk action slug: delete, edit, restore, trash, custom action</p></div>
565
+ <h3>Returns</h3>
566
+ <div class="subelement response">
567
+ <code>array</code>messages and page content: ( 'message', 'body', 'unchanged', 'success', 'failure', 'item_results' )</div>
568
+ </div></div>
569
+ </div>
570
  <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">
571
  <h2>Process bulk edit area fields, which may contain a Content Template</h2>
572
  <pre>_process_bulk_value(integer $post_id, string $bulk_value) : string</pre>
589
  <code>string</code>Empty, or new value for the field</div>
590
  </div></div>
591
  </div>
592
+ <a name="_process_mla_download_file" id="_process_mla_download_file"></a><div class="element clickable method private _process_mla_download_file" data-toggle="collapse" data-target="._process_mla_download_file .collapse">
593
+ <h2>Process secure file download</h2>
594
+ <pre>_process_mla_download_file() : void</pre>
595
+ <div class="labels"></div>
596
+ <div class="row collapse"><div class="detail-description">
597
+ <p class="long_description"><p>Requires _wpnonce, mla_download_file and mla_download_type in $_REQUEST; mla_download_disposition is optional.</p></p>
598
+ <table class="table table-bordered"><tr>
599
+ <th>since</th>
600
+ <td>2.00</td>
601
+ </tr></table>
602
+ </div></div>
603
+ </div>
604
  <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">
605
  <h2>Restore a single item from the Trash</h2>
606
  <pre>_restore_single_item(integer $post_id) : array</pre>
866
  <div class="row"><footer class="span12">
867
  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>
868
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
869
+ generated on 2015-01-05T13:15:01-08:00.<br></footer></div>
870
  </div>
871
  </body>
872
  </html>
phpDocs/classes/MLAData.html CHANGED
@@ -85,7 +85,7 @@
85
  <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>
86
  <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>
87
  <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>
88
- <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>
89
  <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
90
  Defined as public because it's a filter."><span class="description">Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
91
  Defined as public because it's a filter.</span><pre>mla_query_relevanssi_admin_search_ok_filter()</pre></a></li>
@@ -130,6 +130,7 @@ and meta data for a single attachment</span><pre>mla_update_single_item()</pre><
130
  <li class="nav-header">
131
  <i class="icon-custom icon-property"></i> Properties</li>
132
  <li class="property public "><a href="#%24mla_iptc_keys" title="$mla_iptc_keys :: IPTC Dataset friendly name/slug and identifiers"><span class="description">IPTC Dataset friendly name/slug and identifiers</span><pre>$mla_iptc_keys</pre></a></li>
 
133
  <li class="nav-header private">» Private</li>
134
  <li class="property private "><a href="#%24galleries" title="$galleries :: Objects containing [gallery] shortcodes"><span class="description">Objects containing [gallery] shortcodes</span><pre>$galleries</pre></a></li>
135
  <li class="property private "><a href="#%24mla_IPTC_EXIF_errors" title="$mla_IPTC_EXIF_errors :: Passes IPTC/EXIF parse errors between mla_IPTC_EXIF_error_handler
@@ -830,7 +831,7 @@ Defined as public because it's a filter.</p></p>
830
  </div></div>
831
  </div>
832
  <a name="mla_query_posts_where_filter" id="mla_query_posts_where_filter"></a><div class="element clickable method public mla_query_posts_where_filter" data-toggle="collapse" data-target=".mla_query_posts_where_filter .collapse">
833
- <h2>Adds a WHERE clause for detached items</h2>
834
  <pre>mla_query_posts_where_filter(string $where_clause) : string</pre>
835
  <div class="labels"></div>
836
  <div class="row collapse"><div class="detail-description">
@@ -846,7 +847,7 @@ Defined as public because it's a filter.</p></p>
846
  <code>string</code><p>query clause before modification</p></div>
847
  <h3>Returns</h3>
848
  <div class="subelement response">
849
- <code>string</code>query clause after "detached" item modification</div>
850
  </div></div>
851
  </div>
852
  <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">
@@ -1687,6 +1688,36 @@ the "IPTC-NAA Information Interchange Model Version No. 4.1".</p></p>
1687
  </tr></table>
1688
  </div></div>
1689
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1690
  <a name="%24galleries" id="$galleries"> </a><div class="element clickable property private $galleries" data-toggle="collapse" data-target=".$galleries .collapse">
1691
  <h2>Objects containing [gallery] shortcodes</h2>
1692
  <pre>$galleries : array</pre>
@@ -1835,7 +1866,8 @@ The array value is array( number, generation, start, optional /length )</p></p>
1835
  The parameters are set up in the _prepare_list_table_query function, and
1836
  any further logic required to translate those values is contained in the filters.</p>
1837
 
1838
- <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></p>
 
1839
  <table class="table table-bordered"><tr>
1840
  <th>since</th>
1841
  <td>0.30</td>
@@ -1876,7 +1908,7 @@ ALT Text and custom field columns.</p></p>
1876
  <div class="row"><footer class="span12">
1877
  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>
1878
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1879
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
1880
  </div>
1881
  </body>
1882
  </html>
85
  <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>
86
  <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>
87
  <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>
88
+ <li class="method public "><a href="#mla_query_posts_where_filter" title="mla_query_posts_where_filter :: Adds/modifies the WHERE clause for meta values, LIKE patterns and detached items"><span class="description">Adds/modifies the WHERE clause for meta values, LIKE patterns and detached items</span><pre>mla_query_posts_where_filter()</pre></a></li>
89
  <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
90
  Defined as public because it's a filter."><span class="description">Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
91
  Defined as public because it's a filter.</span><pre>mla_query_relevanssi_admin_search_ok_filter()</pre></a></li>
130
  <li class="nav-header">
131
  <i class="icon-custom icon-property"></i> Properties</li>
132
  <li class="property public "><a href="#%24mla_iptc_keys" title="$mla_iptc_keys :: IPTC Dataset friendly name/slug and identifiers"><span class="description">IPTC Dataset friendly name/slug and identifiers</span><pre>$mla_iptc_keys</pre></a></li>
133
+ <li class="property public "><a href="#%24search_parameters" title="$search_parameters :: WP_Query 'posts_search' filter &quot;parameters&quot;"><span class="description">WP_Query 'posts_search' filter "parameters"</span><pre>$search_parameters</pre></a></li>
134
  <li class="nav-header private">» Private</li>
135
  <li class="property private "><a href="#%24galleries" title="$galleries :: Objects containing [gallery] shortcodes"><span class="description">Objects containing [gallery] shortcodes</span><pre>$galleries</pre></a></li>
136
  <li class="property private "><a href="#%24mla_IPTC_EXIF_errors" title="$mla_IPTC_EXIF_errors :: Passes IPTC/EXIF parse errors between mla_IPTC_EXIF_error_handler
831
  </div></div>
832
  </div>
833
  <a name="mla_query_posts_where_filter" id="mla_query_posts_where_filter"></a><div class="element clickable method public mla_query_posts_where_filter" data-toggle="collapse" data-target=".mla_query_posts_where_filter .collapse">
834
+ <h2>Adds/modifies the WHERE clause for meta values, LIKE patterns and detached items</h2>
835
  <pre>mla_query_posts_where_filter(string $where_clause) : string</pre>
836
  <div class="labels"></div>
837
  <div class="row collapse"><div class="detail-description">
847
  <code>string</code><p>query clause before modification</p></div>
848
  <h3>Returns</h3>
849
  <div class="subelement response">
850
+ <code>string</code>query clause after modification</div>
851
  </div></div>
852
  </div>
853
  <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">
1688
  </tr></table>
1689
  </div></div>
1690
  </div>
1691
+ <a name="%24search_parameters" id="$search_parameters"> </a><div class="element clickable property public $search_parameters" data-toggle="collapse" data-target=".$search_parameters .collapse">
1692
+ <h2>WP_Query 'posts_search' filter "parameters"</h2>
1693
+ <pre>$search_parameters : array</pre>
1694
+ <div class="labels"></div>
1695
+ <div class="row collapse"><div class="detail-description">
1696
+ <p class="long_description"><p>This array defines parameters for the query's posts_search filter, which uses
1697
+ 'search_string' to add a clause to the query's WHERE clause. It is shared between
1698
+ the list_table-query functions here and the mla_get_shortcode_attachments function
1699
+ in class-mla-shortcodes.php. This array passes the relevant parameters to the filter.</p>
1700
+
1701
+ <p>Array index values are:
1702
+ ['mla_terms_search']['phrases']
1703
+ ['mla_terms_search']['taxonomies']
1704
+ ['mla_terms_search']['radio_phrases'] => AND/OR
1705
+ ['mla_terms_search']['radio_terms'] => AND/OR
1706
+ ['s'] => numeric for ID/parent search
1707
+ ['mla_search_fields'] => 'content', 'title', 'excerpt', 'alt-text', 'name', 'terms'
1708
+ Note: 'alt-text' is not supported in [mla_gallery]
1709
+ ['mla_search_connector'] => AND/OR
1710
+ ['sentence'] => entire string must match as one "keyword"
1711
+ ['exact'] => entire string must match entire field value
1712
+ ['debug'] => internal element, console/log/shortcode/none
1713
+ ['mla_debug_messages'] => internal element, added when debug = 'shortcode'
1714
+ ['tax_terms_count'] => internal element, shared with JOIN and GROUP BY filters</p></p>
1715
+ <table class="table table-bordered"><tr>
1716
+ <th>since</th>
1717
+ <td>2.00</td>
1718
+ </tr></table>
1719
+ </div></div>
1720
+ </div>
1721
  <a name="%24galleries" id="$galleries"> </a><div class="element clickable property private $galleries" data-toggle="collapse" data-target=".$galleries .collapse">
1722
  <h2>Objects containing [gallery] shortcodes</h2>
1723
  <pre>$galleries : array</pre>
1866
  The parameters are set up in the _prepare_list_table_query function, and
1867
  any further logic required to translate those values is contained in the filters.</p>
1868
 
1869
+ <p>Array index values are: use_postmeta_view, postmeta_key, postmeta_value, patterns,
1870
+ detached, orderby, order, mla-metavalue, debug (also in search_parameters)</p></p>
1871
  <table class="table table-bordered"><tr>
1872
  <th>since</th>
1873
  <td>0.30</td>
1908
  <div class="row"><footer class="span12">
1909
  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>
1910
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1911
+ generated on 2015-01-05T13:15:01-08:00.<br></footer></div>
1912
  </div>
1913
  </body>
1914
  </html>
phpDocs/classes/MLAEdit.html CHANGED
@@ -450,7 +450,7 @@ The array is built once each page load and cached for subsequent calls.</p></p>
450
  <div class="row"><footer class="span12">
451
  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>
452
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
453
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
454
  </div>
455
  </body>
456
  </html>
450
  <div class="row"><footer class="span12">
451
  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>
452
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
453
+ generated on 2015-01-05T13:15:01-08:00.<br></footer></div>
454
  </div>
455
  </body>
456
  </html>
phpDocs/classes/MLAMime.html CHANGED
@@ -1288,7 +1288,7 @@ Defined as public because it's a filter.</p></p>
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-10-27T20:22:36-07:00.<br></footer></div>
1292
  </div>
1293
  </body>
1294
  </html>
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 2015-01-05T13:15:01-08:00.<br></footer></div>
1292
  </div>
1293
  </body>
1294
  </html>
phpDocs/classes/MLAModal.html CHANGED
@@ -515,7 +515,7 @@ and mla_print_media_templates_action</h2>
515
  <div class="row"><footer class="span12">
516
  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>
517
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
518
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
519
  </div>
520
  </body>
521
  </html>
515
  <div class="row"><footer class="span12">
516
  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>
517
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
518
+ generated on 2015-01-05T13:15:01-08:00.<br></footer></div>
519
  </div>
520
  </body>
521
  </html>
phpDocs/classes/MLAObjects.html CHANGED
@@ -172,7 +172,7 @@ which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
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-10-27T20:22:36-07:00.<br></footer></div>
176
  </div>
177
  </body>
178
  </html>
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 2015-01-05T13:15:01-08:00.<br></footer></div>
176
  </div>
177
  </body>
178
  </html>
phpDocs/classes/MLAOptions.html CHANGED
@@ -115,6 +115,7 @@ settings are being updated or reset.</span><pre>mla_taxonomy_support()</pre></a>
115
  <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>
116
  <li class="nav-header">
117
  <i class="icon-custom icon-constant"></i> Constants</li>
 
118
  <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>
119
  <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>
120
  <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>
@@ -1327,6 +1328,12 @@ added to the Media Library.</p></p>
1327
  </div>
1328
  <h3>
1329
  <i class="icon-custom icon-constant"></i> Constants</h3>
 
 
 
 
 
 
1330
  <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">
1331
  <h2>Provides a unique name for the taxonomy count Attachments option</h2>
1332
  <pre>MLA_COUNT_TERM_ATTACHMENTS </pre>
@@ -1596,7 +1603,7 @@ also controls the ATTACHMENT DETAILS enhancements</h2>
1596
  <div class="row"><footer class="span12">
1597
  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>
1598
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1599
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
1600
  </div>
1601
  </body>
1602
  </html>
115
  <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>
116
  <li class="nav-header">
117
  <i class="icon-custom icon-constant"></i> Constants</li>
118
+ <li class="constant "><a href="#MLA_BULK_CHUNK_SIZE" title="MLA_BULK_CHUNK_SIZE :: Provides a unique name for the Bulk Update and Map All chunk size option"><span class="description">Provides a unique name for the Bulk Update and Map All chunk size option</span><pre>MLA_BULK_CHUNK_SIZE</pre></a></li>
119
  <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>
120
  <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>
121
  <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>
1328
  </div>
1329
  <h3>
1330
  <i class="icon-custom icon-constant"></i> Constants</h3>
1331
+ <a name="MLA_BULK_CHUNK_SIZE" id="MLA_BULK_CHUNK_SIZE"> </a><div class="element clickable constant MLA_BULK_CHUNK_SIZE" data-toggle="collapse" data-target=".MLA_BULK_CHUNK_SIZE .collapse">
1332
+ <h2>Provides a unique name for the Bulk Update and Map All chunk size option</h2>
1333
+ <pre>MLA_BULK_CHUNK_SIZE </pre>
1334
+ <div class="labels"></div>
1335
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
1336
+ </div>
1337
  <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">
1338
  <h2>Provides a unique name for the taxonomy count Attachments option</h2>
1339
  <pre>MLA_COUNT_TERM_ATTACHMENTS </pre>
1603
  <div class="row"><footer class="span12">
1604
  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>
1605
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1606
+ generated on 2015-01-05T13:15:02-08:00.<br></footer></div>
1607
  </div>
1608
  </body>
1609
  </html>
phpDocs/classes/MLASettings.html CHANGED
@@ -73,6 +73,8 @@ add settings link in the Plugins section entry for MLA.</span><pre>mla_admin_men
73
  <li class="method public "><a href="#mla_get_icon_type_dropdown" title="mla_get_icon_type_dropdown :: Get an HTML select element representing a list of icon types"><span class="description">Get an HTML select element representing a list of icon types</span><pre>mla_get_icon_type_dropdown()</pre></a></li>
74
  <li class="method public "><a href="#mla_inline_edit_upload_action" title="mla_inline_edit_upload_action :: Ajax handler for Upload MIME Types inline editing (quick and bulk edit)"><span class="description">Ajax handler for Upload MIME Types inline editing (quick and bulk edit)</span><pre>mla_inline_edit_upload_action()</pre></a></li>
75
  <li class="method public "><a href="#mla_inline_edit_view_action" title="mla_inline_edit_view_action :: Ajax handler for Post MIME Types inline editing (quick and bulk edit)"><span class="description">Ajax handler for Post MIME Types inline editing (quick and bulk edit)</span><pre>mla_inline_edit_view_action()</pre></a></li>
 
 
76
  <li class="method public "><a href="#mla_localize_tablist" title="mla_localize_tablist :: Localize $mla_option_definitions array"><span class="description">Localize $mla_option_definitions array</span><pre>mla_localize_tablist()</pre></a></li>
77
  <li class="method public "><a href="#mla_render_settings_page" title='mla_render_settings_page :: Render (echo) the "Media Library Assistant" subpage in the Settings section'><span class="description">Render (echo) the "Media Library Assistant" subpage in the Settings section</span><pre>mla_render_settings_page()</pre></a></li>
78
  <li class="method public "><a href="#mla_screen_options_show_screen_filter" title="mla_screen_options_show_screen_filter :: Only show screen options on the View and Upload tabs"><span class="description">Only show screen options on the View and Upload tabs</span><pre>mla_screen_options_show_screen_filter()</pre></a></li>
@@ -129,10 +131,13 @@ Each tab is defined by an array with the following elements:"><span class="descr
129
  Each tab is defined by an array with the following elements:</span><pre>$mla_tablist</pre></a></li>
130
  <li class="nav-header">
131
  <i class="icon-custom icon-constant"></i> Constants</li>
132
- <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT" title="JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT :: Object name for localizing JavaScript - MLA View List Table"><span class="description">Object name for localizing JavaScript - MLA View List Table</span><pre>JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT</pre></a></li>
133
- <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG" title="JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG :: Slug for localizing and enqueueing JavaScript - MLA View List Table"><span class="description">Slug for localizing and enqueueing JavaScript - MLA View List Table</span><pre>JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG</pre></a></li>
134
  <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT" title="JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT :: Object name for localizing JavaScript - MLA View List Table"><span class="description">Object name for localizing JavaScript - MLA View List Table</span><pre>JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT</pre></a></li>
135
  <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_VIEW_SLUG" title="JAVASCRIPT_INLINE_EDIT_VIEW_SLUG :: Slug for localizing and enqueueing JavaScript - MLA View List Table"><span class="description">Slug for localizing and enqueueing JavaScript - MLA View List Table</span><pre>JAVASCRIPT_INLINE_EDIT_VIEW_SLUG</pre></a></li>
 
 
 
136
  <li class="constant "><a href="#MLA_SETTINGS_SLUG" title="MLA_SETTINGS_SLUG :: Provides a unique name for the settings page"><span class="description">Provides a unique name for the settings page</span><pre>MLA_SETTINGS_SLUG</pre></a></li>
137
  </ul>
138
  </div>
@@ -336,6 +341,30 @@ add settings link in the Plugins section entry for MLA.</h2>
336
  </tr></table>
337
  </div></div>
338
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
339
  <a name="mla_localize_tablist" id="mla_localize_tablist"></a><div class="element clickable method public mla_localize_tablist" data-toggle="collapse" data-target=".mla_localize_tablist .collapse">
340
  <h2>Localize $mla_option_definitions array</h2>
341
  <pre>mla_localize_tablist() : void</pre>
@@ -745,7 +774,7 @@ in the "public static" array definition itself.</p></p>
745
  <a name="_process_custom_field_mapping" id="_process_custom_field_mapping"></a><div class="element clickable method private _process_custom_field_mapping" data-toggle="collapse" data-target="._process_custom_field_mapping .collapse">
746
  <h2>Process custom field settings against all image attachments
747
  without saving the settings to the mla_option</h2>
748
- <pre>_process_custom_field_mapping(array $settings) : array</pre>
749
  <div class="labels"></div>
750
  <div class="row collapse"><div class="detail-description">
751
  <p class="long_description"></p>
@@ -763,6 +792,12 @@ without saving the settings to the mla_option</h2>
763
  <div class="subelement argument">
764
  <h4>$settings</h4>
765
  <code>array</code><p>| NULL specific custom_field_mapping values</p></div>
 
 
 
 
 
 
766
  <h3>Returns</h3>
767
  <div class="subelement response">
768
  <code>array</code>Message(s) reflecting the results of the operation</div>
@@ -771,7 +806,7 @@ without saving the settings to the mla_option</h2>
771
  <a name="_process_iptc_exif_custom" id="_process_iptc_exif_custom"></a><div class="element clickable method private _process_iptc_exif_custom" data-toggle="collapse" data-target="._process_iptc_exif_custom .collapse">
772
  <h2>Process IPTC/EXIF custom field settings against all image attachments
773
  without saving the settings to the mla_option</h2>
774
- <pre>_process_iptc_exif_custom(array $settings) : array</pre>
775
  <div class="labels"></div>
776
  <div class="row collapse"><div class="detail-description">
777
  <p class="long_description"></p>
@@ -789,6 +824,12 @@ without saving the settings to the mla_option</h2>
789
  <div class="subelement argument">
790
  <h4>$settings</h4>
791
  <code>array</code><p>| NULL specific iptc_exif_custom_mapping values</p></div>
 
 
 
 
 
 
792
  <h3>Returns</h3>
793
  <div class="subelement response">
794
  <code>array</code>Message(s) reflecting the results of the operation</div>
@@ -797,7 +838,7 @@ without saving the settings to the mla_option</h2>
797
  <a name="_process_iptc_exif_standard" id="_process_iptc_exif_standard"></a><div class="element clickable method private _process_iptc_exif_standard" data-toggle="collapse" data-target="._process_iptc_exif_standard .collapse">
798
  <h2>Process IPTC/EXIF standard field settings against all image attachments
799
  without saving the settings to the mla_option</h2>
800
- <pre>_process_iptc_exif_standard() : array</pre>
801
  <div class="labels"></div>
802
  <div class="row collapse"><div class="detail-description">
803
  <p class="long_description"></p>
@@ -811,6 +852,13 @@ without saving the settings to the mla_option</h2>
811
  <td>\global\$_REQUEST</td>
812
  </tr>
813
  </table>
 
 
 
 
 
 
 
814
  <h3>Returns</h3>
815
  <div class="subelement response">
816
  <code>array</code>Message(s) reflecting the results of the operation</div>
@@ -819,7 +867,7 @@ without saving the settings to the mla_option</h2>
819
  <a name="_process_iptc_exif_taxonomy" id="_process_iptc_exif_taxonomy"></a><div class="element clickable method private _process_iptc_exif_taxonomy" data-toggle="collapse" data-target="._process_iptc_exif_taxonomy .collapse">
820
  <h2>Process IPTC/EXIF taxonomy term settings against all image attachments
821
  without saving the settings to the mla_option</h2>
822
- <pre>_process_iptc_exif_taxonomy() : array</pre>
823
  <div class="labels"></div>
824
  <div class="row collapse"><div class="detail-description">
825
  <p class="long_description"></p>
@@ -833,6 +881,13 @@ without saving the settings to the mla_option</h2>
833
  <td>\global\$_REQUEST</td>
834
  </tr>
835
  </table>
 
 
 
 
 
 
 
836
  <h3>Returns</h3>
837
  <div class="subelement response">
838
  <code>array</code>Message(s) reflecting the results of the operation</div>
@@ -1133,7 +1188,7 @@ because Localization calls cannot be placed in the "public static" array definit
1133
  <h3>
1134
  <i class="icon-custom icon-constant"></i> Constants</h3>
1135
  <a name="JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT" id="JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT"> </a><div class="element clickable constant JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT" data-toggle="collapse" data-target=".JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT .collapse">
1136
- <h2>Object name for localizing JavaScript - MLA View List Table</h2>
1137
  <pre>JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT : string</pre>
1138
  <div class="labels"></div>
1139
  <div class="row collapse"><div class="detail-description">
@@ -1145,7 +1200,7 @@ because Localization calls cannot be placed in the "public static" array definit
1145
  </div></div>
1146
  </div>
1147
  <a name="JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG" id="JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG"> </a><div class="element clickable constant JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG" data-toggle="collapse" data-target=".JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG .collapse">
1148
- <h2>Slug for localizing and enqueueing JavaScript - MLA View List Table</h2>
1149
  <pre>JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG : string</pre>
1150
  <div class="labels"></div>
1151
  <div class="row collapse"><div class="detail-description">
@@ -1180,6 +1235,42 @@ because Localization calls cannot be placed in the "public static" array definit
1180
  </tr></table>
1181
  </div></div>
1182
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1183
  <a name="MLA_SETTINGS_SLUG" id="MLA_SETTINGS_SLUG"> </a><div class="element clickable constant MLA_SETTINGS_SLUG" data-toggle="collapse" data-target=".MLA_SETTINGS_SLUG .collapse">
1184
  <h2>Provides a unique name for the settings page</h2>
1185
  <pre>MLA_SETTINGS_SLUG : string</pre>
@@ -1199,7 +1290,7 @@ because Localization calls cannot be placed in the "public static" array definit
1199
  <div class="row"><footer class="span12">
1200
  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>
1201
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1202
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
1203
  </div>
1204
  </body>
1205
  </html>
73
  <li class="method public "><a href="#mla_get_icon_type_dropdown" title="mla_get_icon_type_dropdown :: Get an HTML select element representing a list of icon types"><span class="description">Get an HTML select element representing a list of icon types</span><pre>mla_get_icon_type_dropdown()</pre></a></li>
74
  <li class="method public "><a href="#mla_inline_edit_upload_action" title="mla_inline_edit_upload_action :: Ajax handler for Upload MIME Types inline editing (quick and bulk edit)"><span class="description">Ajax handler for Upload MIME Types inline editing (quick and bulk edit)</span><pre>mla_inline_edit_upload_action()</pre></a></li>
75
  <li class="method public "><a href="#mla_inline_edit_view_action" title="mla_inline_edit_view_action :: Ajax handler for Post MIME Types inline editing (quick and bulk edit)"><span class="description">Ajax handler for Post MIME Types inline editing (quick and bulk edit)</span><pre>mla_inline_edit_view_action()</pre></a></li>
76
+ <li class="method public "><a href="#mla_inline_mapping_custom_action" title="mla_inline_mapping_custom_action :: Ajax handler for Custom Fields tab inline mapping"><span class="description">Ajax handler for Custom Fields tab inline mapping</span><pre>mla_inline_mapping_custom_action()</pre></a></li>
77
+ <li class="method public "><a href="#mla_inline_mapping_iptc_exif_action" title="mla_inline_mapping_iptc_exif_action :: Ajax handler for IPTC/EXIF tab inline mapping"><span class="description">Ajax handler for IPTC/EXIF tab inline mapping</span><pre>mla_inline_mapping_iptc_exif_action()</pre></a></li>
78
  <li class="method public "><a href="#mla_localize_tablist" title="mla_localize_tablist :: Localize $mla_option_definitions array"><span class="description">Localize $mla_option_definitions array</span><pre>mla_localize_tablist()</pre></a></li>
79
  <li class="method public "><a href="#mla_render_settings_page" title='mla_render_settings_page :: Render (echo) the "Media Library Assistant" subpage in the Settings section'><span class="description">Render (echo) the "Media Library Assistant" subpage in the Settings section</span><pre>mla_render_settings_page()</pre></a></li>
80
  <li class="method public "><a href="#mla_screen_options_show_screen_filter" title="mla_screen_options_show_screen_filter :: Only show screen options on the View and Upload tabs"><span class="description">Only show screen options on the View and Upload tabs</span><pre>mla_screen_options_show_screen_filter()</pre></a></li>
131
  Each tab is defined by an array with the following elements:</span><pre>$mla_tablist</pre></a></li>
132
  <li class="nav-header">
133
  <i class="icon-custom icon-constant"></i> Constants</li>
134
+ <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT" title="JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT :: Object name for localizing JavaScript - MLA Upload List Table"><span class="description">Object name for localizing JavaScript - MLA Upload List Table</span><pre>JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT</pre></a></li>
135
+ <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG" title="JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG :: Slug for localizing and enqueueing JavaScript - MLA Upload List Table"><span class="description">Slug for localizing and enqueueing JavaScript - MLA Upload List Table</span><pre>JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG</pre></a></li>
136
  <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT" title="JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT :: Object name for localizing JavaScript - MLA View List Table"><span class="description">Object name for localizing JavaScript - MLA View List Table</span><pre>JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT</pre></a></li>
137
  <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_VIEW_SLUG" title="JAVASCRIPT_INLINE_EDIT_VIEW_SLUG :: Slug for localizing and enqueueing JavaScript - MLA View List Table"><span class="description">Slug for localizing and enqueueing JavaScript - MLA View List Table</span><pre>JAVASCRIPT_INLINE_EDIT_VIEW_SLUG</pre></a></li>
138
+ <li class="constant "><a href="#JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG" title="JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG :: Slug for localizing and enqueueing JavaScript - MLA Custom tab"><span class="description">Slug for localizing and enqueueing JavaScript - MLA Custom tab</span><pre>JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG</pre></a></li>
139
+ <li class="constant "><a href="#JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG" title="JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG :: Slug for localizing and enqueueing JavaScript - MLA IPTC/EXIF tab"><span class="description">Slug for localizing and enqueueing JavaScript - MLA IPTC/EXIF tab</span><pre>JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG</pre></a></li>
140
+ <li class="constant "><a href="#JAVASCRIPT_INLINE_MAPPING_OBJECT" title="JAVASCRIPT_INLINE_MAPPING_OBJECT :: Object name for localizing JavaScript - MLA Custom and IPTC/EXIF tabs"><span class="description">Object name for localizing JavaScript - MLA Custom and IPTC/EXIF tabs</span><pre>JAVASCRIPT_INLINE_MAPPING_OBJECT</pre></a></li>
141
  <li class="constant "><a href="#MLA_SETTINGS_SLUG" title="MLA_SETTINGS_SLUG :: Provides a unique name for the settings page"><span class="description">Provides a unique name for the settings page</span><pre>MLA_SETTINGS_SLUG</pre></a></li>
142
  </ul>
143
  </div>
341
  </tr></table>
342
  </div></div>
343
  </div>
344
+ <a name="mla_inline_mapping_custom_action" id="mla_inline_mapping_custom_action"></a><div class="element clickable method public mla_inline_mapping_custom_action" data-toggle="collapse" data-target=".mla_inline_mapping_custom_action .collapse">
345
+ <h2>Ajax handler for Custom Fields tab inline mapping</h2>
346
+ <pre>mla_inline_mapping_custom_action() : void</pre>
347
+ <div class="labels"></div>
348
+ <div class="row collapse"><div class="detail-description">
349
+ <p class="long_description"></p>
350
+ <table class="table table-bordered"><tr>
351
+ <th>since</th>
352
+ <td>2.00</td>
353
+ </tr></table>
354
+ </div></div>
355
+ </div>
356
+ <a name="mla_inline_mapping_iptc_exif_action" id="mla_inline_mapping_iptc_exif_action"></a><div class="element clickable method public mla_inline_mapping_iptc_exif_action" data-toggle="collapse" data-target=".mla_inline_mapping_iptc_exif_action .collapse">
357
+ <h2>Ajax handler for IPTC/EXIF tab inline mapping</h2>
358
+ <pre>mla_inline_mapping_iptc_exif_action() : void</pre>
359
+ <div class="labels"></div>
360
+ <div class="row collapse"><div class="detail-description">
361
+ <p class="long_description"></p>
362
+ <table class="table table-bordered"><tr>
363
+ <th>since</th>
364
+ <td>2.00</td>
365
+ </tr></table>
366
+ </div></div>
367
+ </div>
368
  <a name="mla_localize_tablist" id="mla_localize_tablist"></a><div class="element clickable method public mla_localize_tablist" data-toggle="collapse" data-target=".mla_localize_tablist .collapse">
369
  <h2>Localize $mla_option_definitions array</h2>
370
  <pre>mla_localize_tablist() : void</pre>
774
  <a name="_process_custom_field_mapping" id="_process_custom_field_mapping"></a><div class="element clickable method private _process_custom_field_mapping" data-toggle="collapse" data-target="._process_custom_field_mapping .collapse">
775
  <h2>Process custom field settings against all image attachments
776
  without saving the settings to the mla_option</h2>
777
+ <pre>_process_custom_field_mapping(array $settings, integer $offset, integer $length) : array</pre>
778
  <div class="labels"></div>
779
  <div class="row collapse"><div class="detail-description">
780
  <p class="long_description"></p>
792
  <div class="subelement argument">
793
  <h4>$settings</h4>
794
  <code>array</code><p>| NULL specific custom_field_mapping values</p></div>
795
+ <div class="subelement argument">
796
+ <h4>$offset</h4>
797
+ <code>integer</code><p>offset for chunk mapping</p></div>
798
+ <div class="subelement argument">
799
+ <h4>$length</h4>
800
+ <code>integer</code><p>length for chunk mapping</p></div>
801
  <h3>Returns</h3>
802
  <div class="subelement response">
803
  <code>array</code>Message(s) reflecting the results of the operation</div>
806
  <a name="_process_iptc_exif_custom" id="_process_iptc_exif_custom"></a><div class="element clickable method private _process_iptc_exif_custom" data-toggle="collapse" data-target="._process_iptc_exif_custom .collapse">
807
  <h2>Process IPTC/EXIF custom field settings against all image attachments
808
  without saving the settings to the mla_option</h2>
809
+ <pre>_process_iptc_exif_custom(array $settings, integer $offset, integer $length) : array</pre>
810
  <div class="labels"></div>
811
  <div class="row collapse"><div class="detail-description">
812
  <p class="long_description"></p>
824
  <div class="subelement argument">
825
  <h4>$settings</h4>
826
  <code>array</code><p>| NULL specific iptc_exif_custom_mapping values</p></div>
827
+ <div class="subelement argument">
828
+ <h4>$offset</h4>
829
+ <code>integer</code><p>offset for chunk mapping</p></div>
830
+ <div class="subelement argument">
831
+ <h4>$length</h4>
832
+ <code>integer</code><p>length for chunk mapping</p></div>
833
  <h3>Returns</h3>
834
  <div class="subelement response">
835
  <code>array</code>Message(s) reflecting the results of the operation</div>
838
  <a name="_process_iptc_exif_standard" id="_process_iptc_exif_standard"></a><div class="element clickable method private _process_iptc_exif_standard" data-toggle="collapse" data-target="._process_iptc_exif_standard .collapse">
839
  <h2>Process IPTC/EXIF standard field settings against all image attachments
840
  without saving the settings to the mla_option</h2>
841
+ <pre>_process_iptc_exif_standard(integer $offset, integer $length) : array</pre>
842
  <div class="labels"></div>
843
  <div class="row collapse"><div class="detail-description">
844
  <p class="long_description"></p>
852
  <td>\global\$_REQUEST</td>
853
  </tr>
854
  </table>
855
+ <h3>Parameters</h3>
856
+ <div class="subelement argument">
857
+ <h4>$offset</h4>
858
+ <code>integer</code><p>offset for chunk mapping</p></div>
859
+ <div class="subelement argument">
860
+ <h4>$length</h4>
861
+ <code>integer</code><p>length for chunk mapping</p></div>
862
  <h3>Returns</h3>
863
  <div class="subelement response">
864
  <code>array</code>Message(s) reflecting the results of the operation</div>
867
  <a name="_process_iptc_exif_taxonomy" id="_process_iptc_exif_taxonomy"></a><div class="element clickable method private _process_iptc_exif_taxonomy" data-toggle="collapse" data-target="._process_iptc_exif_taxonomy .collapse">
868
  <h2>Process IPTC/EXIF taxonomy term settings against all image attachments
869
  without saving the settings to the mla_option</h2>
870
+ <pre>_process_iptc_exif_taxonomy(integer $offset, integer $length) : array</pre>
871
  <div class="labels"></div>
872
  <div class="row collapse"><div class="detail-description">
873
  <p class="long_description"></p>
881
  <td>\global\$_REQUEST</td>
882
  </tr>
883
  </table>
884
+ <h3>Parameters</h3>
885
+ <div class="subelement argument">
886
+ <h4>$offset</h4>
887
+ <code>integer</code><p>offset for chunk mapping</p></div>
888
+ <div class="subelement argument">
889
+ <h4>$length</h4>
890
+ <code>integer</code><p>length for chunk mapping</p></div>
891
  <h3>Returns</h3>
892
  <div class="subelement response">
893
  <code>array</code>Message(s) reflecting the results of the operation</div>
1188
  <h3>
1189
  <i class="icon-custom icon-constant"></i> Constants</h3>
1190
  <a name="JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT" id="JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT"> </a><div class="element clickable constant JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT" data-toggle="collapse" data-target=".JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT .collapse">
1191
+ <h2>Object name for localizing JavaScript - MLA Upload List Table</h2>
1192
  <pre>JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT : string</pre>
1193
  <div class="labels"></div>
1194
  <div class="row collapse"><div class="detail-description">
1200
  </div></div>
1201
  </div>
1202
  <a name="JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG" id="JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG"> </a><div class="element clickable constant JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG" data-toggle="collapse" data-target=".JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG .collapse">
1203
+ <h2>Slug for localizing and enqueueing JavaScript - MLA Upload List Table</h2>
1204
  <pre>JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG : string</pre>
1205
  <div class="labels"></div>
1206
  <div class="row collapse"><div class="detail-description">
1235
  </tr></table>
1236
  </div></div>
1237
  </div>
1238
+ <a name="JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG" id="JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG"> </a><div class="element clickable constant JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG" data-toggle="collapse" data-target=".JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG .collapse">
1239
+ <h2>Slug for localizing and enqueueing JavaScript - MLA Custom tab</h2>
1240
+ <pre>JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG : string</pre>
1241
+ <div class="labels"></div>
1242
+ <div class="row collapse"><div class="detail-description">
1243
+ <p class="long_description"></p>
1244
+ <table class="table table-bordered"><tr>
1245
+ <th>since</th>
1246
+ <td>2.00</td>
1247
+ </tr></table>
1248
+ </div></div>
1249
+ </div>
1250
+ <a name="JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG" id="JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG"> </a><div class="element clickable constant JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG" data-toggle="collapse" data-target=".JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG .collapse">
1251
+ <h2>Slug for localizing and enqueueing JavaScript - MLA IPTC/EXIF tab</h2>
1252
+ <pre>JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG : string</pre>
1253
+ <div class="labels"></div>
1254
+ <div class="row collapse"><div class="detail-description">
1255
+ <p class="long_description"></p>
1256
+ <table class="table table-bordered"><tr>
1257
+ <th>since</th>
1258
+ <td>2.00</td>
1259
+ </tr></table>
1260
+ </div></div>
1261
+ </div>
1262
+ <a name="JAVASCRIPT_INLINE_MAPPING_OBJECT" id="JAVASCRIPT_INLINE_MAPPING_OBJECT"> </a><div class="element clickable constant JAVASCRIPT_INLINE_MAPPING_OBJECT" data-toggle="collapse" data-target=".JAVASCRIPT_INLINE_MAPPING_OBJECT .collapse">
1263
+ <h2>Object name for localizing JavaScript - MLA Custom and IPTC/EXIF tabs</h2>
1264
+ <pre>JAVASCRIPT_INLINE_MAPPING_OBJECT : string</pre>
1265
+ <div class="labels"></div>
1266
+ <div class="row collapse"><div class="detail-description">
1267
+ <p class="long_description"></p>
1268
+ <table class="table table-bordered"><tr>
1269
+ <th>since</th>
1270
+ <td>2.00</td>
1271
+ </tr></table>
1272
+ </div></div>
1273
+ </div>
1274
  <a name="MLA_SETTINGS_SLUG" id="MLA_SETTINGS_SLUG"> </a><div class="element clickable constant MLA_SETTINGS_SLUG" data-toggle="collapse" data-target=".MLA_SETTINGS_SLUG .collapse">
1275
  <h2>Provides a unique name for the settings page</h2>
1276
  <pre>MLA_SETTINGS_SLUG : string</pre>
1290
  <div class="row"><footer class="span12">
1291
  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>
1292
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1293
+ generated on 2015-01-05T13:15:02-08:00.<br></footer></div>
1294
  </div>
1295
  </body>
1296
  </html>
phpDocs/classes/MLAShortcodes.html CHANGED
@@ -687,7 +687,7 @@ any further logic required to translate those values is contained in the filter.
687
  <div class="row"><footer class="span12">
688
  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>
689
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
690
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
691
  </div>
692
  </body>
693
  </html>
687
  <div class="row"><footer class="span12">
688
  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>
689
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
690
+ generated on 2015-01-05T13:15:02-08:00.<br></footer></div>
691
  </div>
692
  </body>
693
  </html>
phpDocs/classes/MLATest.html CHANGED
@@ -117,7 +117,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
117
  <h3>Parameters</h3>
118
  <div class="subelement argument">
119
  <h4>$min_version</h4>
120
- <code>string</code><p>representing the minimum required version of WordPress, e.g. '3.3.0'</p>
121
  </div>
122
  <h3>Returns</h3>
123
  <div class="subelement response">
@@ -165,7 +165,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
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-10-27T20:22:36-07:00.<br></footer></div>
169
  </div>
170
  </body>
171
  </html>
117
  <h3>Parameters</h3>
118
  <div class="subelement argument">
119
  <h4>$min_version</h4>
120
+ <code>string</code><p>representing the minimum required version of WordPress, e.g. '3.5.0'</p>
121
  </div>
122
  <h3>Returns</h3>
123
  <div class="subelement response">
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 2015-01-05T13:15:02-08:00.<br></footer></div>
169
  </div>
170
  </body>
171
  </html>
phpDocs/classes/MLATextWidget.html CHANGED
@@ -178,7 +178,7 @@
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-10-27T20:22:36-07:00.<br></footer></div>
182
  </div>
183
  </body>
184
  </html>
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 2015-01-05T13:15:01-08:00.<br></footer></div>
182
  </div>
183
  </body>
184
  </html>
phpDocs/classes/MLA_Checklist_Walker.html CHANGED
@@ -163,7 +163,7 @@ Class Walker is defined in /wp-includes/class-wp-walker.php.</p></p>
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-10-27T20:22:36-07:00.<br></footer></div>
167
  </div>
168
  </body>
169
  </html>
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 2015-01-05T13:15:01-08:00.<br></footer></div>
167
  </div>
168
  </body>
169
  </html>
phpDocs/classes/MLA_List_Table.html CHANGED
@@ -93,8 +93,8 @@ of bulk actions available on this table.</span><pre>get_bulk_actions()</pre></a>
93
  from default values if the option is not set"><span class="description">Returns the list of currently hidden columns from a user option or
94
  from default values if the option is not set</span><pre>get_hidden_columns()</pre></a></li>
95
  <li class="method public "><a href="#get_sortable_columns" title="get_sortable_columns :: Returns an array where the key is the column that needs to be sortable
96
- and the value is db column to sort by."><span class="description">Returns an array where the key is the column that needs to be sortable
97
- and the value is db column to sort by.</span><pre>get_sortable_columns()</pre></a></li>
98
  <li class="method public "><a href="#get_views" title="get_views :: Returns an associative array listing all the views that can be used with this table."><span class="description">Returns an associative array listing all the views that can be used with this table.</span><pre>get_views()</pre></a></li>
99
  <li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Adds support for taxonomy and custom field columns"><span class="description">Adds support for taxonomy and custom field columns</span><pre>mla_admin_init_action()</pre></a></li>
100
  <li class="method public "><a href="#mla_get_sortable_columns" title="mla_get_sortable_columns :: Return the names and display values of the sortable columns"><span class="description">Return the names and display values of the sortable columns</span><pre>mla_get_sortable_columns()</pre></a></li>
@@ -110,21 +110,20 @@ and the value is db column to sort by.</span><pre>get_sortable_columns()</pre></
110
  <li class="method public "><a href="#prepare_items" title="prepare_items :: Prepares the list of items for displaying"><span class="description">Prepares the list of items for displaying</span><pre>prepare_items()</pre></a></li>
111
  <li class="method public "><a href="#print_column_headers" title="print_column_headers :: Print column headers, adding view, search and filter arguments"><span class="description">Print column headers, adding view, search and filter arguments</span><pre>print_column_headers()</pre></a></li>
112
  <li class="method public "><a href="#single_row" title="single_row :: Generates (echoes) content for a single row of the table"><span class="description">Generates (echoes) content for a single row of the table</span><pre>single_row()</pre></a></li>
113
- <li class="nav-header private">» Private</li>
114
- <li class="method private "><a href="#_avail_mime_types" title="_avail_mime_types :: Get MIME types with one or more attachments for view preparation"><span class="description">Get MIME types with one or more attachments for view preparation</span><pre>_avail_mime_types()</pre></a></li>
115
- <li class="method private "><a href="#_build_inline_data" title="_build_inline_data :: Add hidden fields with the data for use in the inline editor"><span class="description">Add hidden fields with the data for use in the inline editor</span><pre>_build_inline_data()</pre></a></li>
116
- <li class="method private "><a href="#_build_rollover_actions" title="_build_rollover_actions :: Add rollover actions to exactly one of the following displayed columns:
117
  'ID_parent', 'title_name', 'post_title', 'post_name'"><span class="description">Add rollover actions to exactly one of the following displayed columns:
118
  'ID_parent', 'title_name', 'post_title', 'post_name'</span><pre>_build_rollover_actions()</pre></a></li>
119
- <li class="method private "><a href="#_default_hidden_columns" title="_default_hidden_columns :: Access the default list of hidden columns"><span class="description">Access the default list of hidden columns</span><pre>_default_hidden_columns()</pre></a></li>
120
  <li class="nav-header">
121
  <i class="icon-custom icon-property"></i> Properties</li>
122
- <li class="nav-header private">» Private</li>
123
- <li class="property private "><a href="#%24currently_hidden" title="$currently_hidden :: Currently hidden columns"><span class="description">Currently hidden columns</span><pre>$currently_hidden</pre></a></li>
124
- <li class="property private "><a href="#%24default_columns" title="$default_columns :: Table column definitions"><span class="description">Table column definitions</span><pre>$default_columns</pre></a></li>
125
- <li class="property private "><a href="#%24default_hidden_columns" title="$default_hidden_columns :: Default values for hidden columns"><span class="description">Default values for hidden columns</span><pre>$default_hidden_columns</pre></a></li>
126
- <li class="property private "><a href="#%24default_sortable_columns" title="$default_sortable_columns :: Sortable column definitions"><span class="description">Sortable column definitions</span><pre>$default_sortable_columns</pre></a></li>
127
- <li class="property private "><a href="#%24rollover_id" title="$rollover_id :: Records assignment of row-level actions to a table row"><span class="description">Records assignment of row-level actions to a table row</span><pre>$rollover_id</pre></a></li>
128
  </ul>
129
  </div>
130
  <div class="span8">
@@ -724,19 +723,18 @@ from default values if the option is not set</h2>
724
  </div>
725
  <a name="get_sortable_columns" id="get_sortable_columns"></a><div class="element clickable method public get_sortable_columns" data-toggle="collapse" data-target=".get_sortable_columns .collapse">
726
  <h2>Returns an array where the key is the column that needs to be sortable
727
- and the value is db column to sort by.</h2>
728
  <pre>get_sortable_columns() : array</pre>
729
  <div class="labels"></div>
730
  <div class="row collapse"><div class="detail-description">
731
- <p class="long_description"><p>Also notes the current sort column,
732
- if set.</p></p>
733
  <table class="table table-bordered"><tr>
734
  <th>since</th>
735
  <td>0.1</td>
736
  </tr></table>
737
  <h3>Returns</h3>
738
  <div class="subelement response">
739
- <code>array</code>Sortable column information,e.g., 'slugs'=>array('data_values',boolean)</div>
740
  </div></div>
741
  </div>
742
  <a name="get_views" id="get_views"></a><div class="element clickable method public get_views" data-toggle="collapse" data-target=".get_views .collapse">
@@ -1021,7 +1019,7 @@ $this->set_pagination_args().</p></p>
1021
  <code>object</code><p>the current item</p></div>
1022
  </div></div>
1023
  </div>
1024
- <a name="_avail_mime_types" id="_avail_mime_types"></a><div class="element clickable method private _avail_mime_types" data-toggle="collapse" data-target="._avail_mime_types .collapse">
1025
  <h2>Get MIME types with one or more attachments for view preparation</h2>
1026
  <pre>_avail_mime_types(array $num_posts) : array</pre>
1027
  <div class="labels"></div>
@@ -1041,7 +1039,7 @@ but uses the output of wp_count_attachments() as input.</p></p>
1041
  <code>array</code>Mime type names</div>
1042
  </div></div>
1043
  </div>
1044
- <a name="_build_inline_data" id="_build_inline_data"></a><div class="element clickable method private _build_inline_data" data-toggle="collapse" data-target="._build_inline_data .collapse">
1045
  <h2>Add hidden fields with the data for use in the inline editor</h2>
1046
  <pre>_build_inline_data(object $item) : string</pre>
1047
  <div class="labels"></div>
@@ -1061,7 +1059,7 @@ but uses the output of wp_count_attachments() as input.</p></p>
1061
  <code>string</code>HTML <div> with row data</div>
1062
  </div></div>
1063
  </div>
1064
- <a name="_build_rollover_actions" id="_build_rollover_actions"></a><div class="element clickable method private _build_rollover_actions" data-toggle="collapse" data-target="._build_rollover_actions .collapse">
1065
  <h2>Add rollover actions to exactly one of the following displayed columns:
1066
  'ID_parent', 'title_name', 'post_title', 'post_name'</h2>
1067
  <pre>_build_rollover_actions(object $item, string $column) : array</pre>
@@ -1085,24 +1083,9 @@ but uses the output of wp_count_attachments() as input.</p></p>
1085
  <code>array</code>Names and URLs of row-level actions</div>
1086
  </div></div>
1087
  </div>
1088
- <a name="_default_hidden_columns" id="_default_hidden_columns"></a><div class="element clickable method private _default_hidden_columns" data-toggle="collapse" data-target="._default_hidden_columns .collapse">
1089
- <h2>Access the default list of hidden columns</h2>
1090
- <pre>_default_hidden_columns() : array</pre>
1091
- <div class="labels"></div>
1092
- <div class="row collapse"><div class="detail-description">
1093
- <p class="long_description"></p>
1094
- <table class="table table-bordered"><tr>
1095
- <th>since</th>
1096
- <td>0.1</td>
1097
- </tr></table>
1098
- <h3>Returns</h3>
1099
- <div class="subelement response">
1100
- <code>array</code>default list of hidden columns</div>
1101
- </div></div>
1102
- </div>
1103
  <h3>
1104
  <i class="icon-custom icon-property"></i> Properties</h3>
1105
- <a name="%24currently_hidden" id="$currently_hidden"> </a><div class="element clickable property private $currently_hidden" data-toggle="collapse" data-target=".$currently_hidden .collapse">
1106
  <h2>Currently hidden columns</h2>
1107
  <pre>$currently_hidden : array</pre>
1108
  <div class="labels"></div>
@@ -1114,7 +1097,7 @@ but uses the output of wp_count_attachments() as input.</p></p>
1114
  </tr></table>
1115
  </div></div>
1116
  </div>
1117
- <a name="%24default_columns" id="$default_columns"> </a><div class="element clickable property private $default_columns" data-toggle="collapse" data-target=".$default_columns .collapse">
1118
  <h2>Table column definitions</h2>
1119
  <pre>$default_columns : array</pre>
1120
  <div class="labels"></div>
@@ -1134,7 +1117,7 @@ bulk actions or checkboxes, simply leave the 'cb' entry out of your array.</p>
1134
  </tr></table>
1135
  </div></div>
1136
  </div>
1137
- <a name="%24default_hidden_columns" id="$default_hidden_columns"> </a><div class="element clickable property private $default_hidden_columns" data-toggle="collapse" data-target=".$default_hidden_columns .collapse">
1138
  <h2>Default values for hidden columns</h2>
1139
  <pre>$default_hidden_columns : array</pre>
1140
  <div class="labels"></div>
@@ -1153,7 +1136,7 @@ MLA_List_Table::mla_admin_init_action.</p></p>
1153
  </tr></table>
1154
  </div></div>
1155
  </div>
1156
- <a name="%24default_sortable_columns" id="$default_sortable_columns"> </a><div class="element clickable property private $default_sortable_columns" data-toggle="collapse" data-target=".$default_sortable_columns .collapse">
1157
  <h2>Sortable column definitions</h2>
1158
  <pre>$default_sortable_columns : array</pre>
1159
  <div class="labels"></div>
@@ -1163,8 +1146,8 @@ is the column slug that needs to be sortable, and the value is database column
1163
  to sort by. Often, the key and value will be the same, but this is not always
1164
  the case (as the value is a column name from the database, not the list table).</p>
1165
 
1166
- <p>The array value also contains a boolean which is 'true' if the data is currently
1167
- sorted by that column. This is computed each time the table is displayed.</p>
1168
 
1169
  <p>Taxonomy and custom field columns are added to this array by
1170
  MLA_List_Table::mla_admin_init_action.</p></p>
@@ -1174,7 +1157,7 @@ MLA_List_Table::mla_admin_init_action.</p></p>
1174
  </tr></table>
1175
  </div></div>
1176
  </div>
1177
- <a name="%24rollover_id" id="$rollover_id"> </a><div class="element clickable property private $rollover_id" data-toggle="collapse" data-target=".$rollover_id .collapse">
1178
  <h2>Records assignment of row-level actions to a table row</h2>
1179
  <pre>$rollover_id : int</pre>
1180
  <div class="labels"></div>
@@ -1193,7 +1176,7 @@ MLA_List_Table::mla_admin_init_action.</p></p>
1193
  <div class="row"><footer class="span12">
1194
  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>
1195
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1196
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
1197
  </div>
1198
  </body>
1199
  </html>
93
  from default values if the option is not set"><span class="description">Returns the list of currently hidden columns from a user option or
94
  from default values if the option is not set</span><pre>get_hidden_columns()</pre></a></li>
95
  <li class="method public "><a href="#get_sortable_columns" title="get_sortable_columns :: Returns an array where the key is the column that needs to be sortable
96
+ and the value is db column (or other criteria) to sort by."><span class="description">Returns an array where the key is the column that needs to be sortable
97
+ and the value is db column (or other criteria) to sort by.</span><pre>get_sortable_columns()</pre></a></li>
98
  <li class="method public "><a href="#get_views" title="get_views :: Returns an associative array listing all the views that can be used with this table."><span class="description">Returns an associative array listing all the views that can be used with this table.</span><pre>get_views()</pre></a></li>
99
  <li class="method public "><a href="#mla_admin_init_action" title="mla_admin_init_action :: Adds support for taxonomy and custom field columns"><span class="description">Adds support for taxonomy and custom field columns</span><pre>mla_admin_init_action()</pre></a></li>
100
  <li class="method public "><a href="#mla_get_sortable_columns" title="mla_get_sortable_columns :: Return the names and display values of the sortable columns"><span class="description">Return the names and display values of the sortable columns</span><pre>mla_get_sortable_columns()</pre></a></li>
110
  <li class="method public "><a href="#prepare_items" title="prepare_items :: Prepares the list of items for displaying"><span class="description">Prepares the list of items for displaying</span><pre>prepare_items()</pre></a></li>
111
  <li class="method public "><a href="#print_column_headers" title="print_column_headers :: Print column headers, adding view, search and filter arguments"><span class="description">Print column headers, adding view, search and filter arguments</span><pre>print_column_headers()</pre></a></li>
112
  <li class="method public "><a href="#single_row" title="single_row :: Generates (echoes) content for a single row of the table"><span class="description">Generates (echoes) content for a single row of the table</span><pre>single_row()</pre></a></li>
113
+ <li class="nav-header protected">» Protected</li>
114
+ <li class="method protected "><a href="#_avail_mime_types" title="_avail_mime_types :: Get MIME types with one or more attachments for view preparation"><span class="description">Get MIME types with one or more attachments for view preparation</span><pre>_avail_mime_types()</pre></a></li>
115
+ <li class="method protected "><a href="#_build_inline_data" title="_build_inline_data :: Add hidden fields with the data for use in the inline editor"><span class="description">Add hidden fields with the data for use in the inline editor</span><pre>_build_inline_data()</pre></a></li>
116
+ <li class="method protected "><a href="#_build_rollover_actions" title="_build_rollover_actions :: Add rollover actions to exactly one of the following displayed columns:
117
  'ID_parent', 'title_name', 'post_title', 'post_name'"><span class="description">Add rollover actions to exactly one of the following displayed columns:
118
  'ID_parent', 'title_name', 'post_title', 'post_name'</span><pre>_build_rollover_actions()</pre></a></li>
 
119
  <li class="nav-header">
120
  <i class="icon-custom icon-property"></i> Properties</li>
121
+ <li class="nav-header protected">» Protected</li>
122
+ <li class="property protected "><a href="#%24currently_hidden" title="$currently_hidden :: Currently hidden columns"><span class="description">Currently hidden columns</span><pre>$currently_hidden</pre></a></li>
123
+ <li class="property protected "><a href="#%24default_columns" title="$default_columns :: Table column definitions"><span class="description">Table column definitions</span><pre>$default_columns</pre></a></li>
124
+ <li class="property protected "><a href="#%24default_hidden_columns" title="$default_hidden_columns :: Default values for hidden columns"><span class="description">Default values for hidden columns</span><pre>$default_hidden_columns</pre></a></li>
125
+ <li class="property protected "><a href="#%24default_sortable_columns" title="$default_sortable_columns :: Sortable column definitions"><span class="description">Sortable column definitions</span><pre>$default_sortable_columns</pre></a></li>
126
+ <li class="property protected "><a href="#%24rollover_id" title="$rollover_id :: Records assignment of row-level actions to a table row"><span class="description">Records assignment of row-level actions to a table row</span><pre>$rollover_id</pre></a></li>
127
  </ul>
128
  </div>
129
  <div class="span8">
723
  </div>
724
  <a name="get_sortable_columns" id="get_sortable_columns"></a><div class="element clickable method public get_sortable_columns" data-toggle="collapse" data-target=".get_sortable_columns .collapse">
725
  <h2>Returns an array where the key is the column that needs to be sortable
726
+ and the value is db column (or other criteria) to sort by.</h2>
727
  <pre>get_sortable_columns() : array</pre>
728
  <div class="labels"></div>
729
  <div class="row collapse"><div class="detail-description">
730
+ <p class="long_description"></p>
 
731
  <table class="table table-bordered"><tr>
732
  <th>since</th>
733
  <td>0.1</td>
734
  </tr></table>
735
  <h3>Returns</h3>
736
  <div class="subelement response">
737
+ <code>array</code>Sortable column information,e.g., 'slug' => array('data_value', (boolean) initial_descending )</div>
738
  </div></div>
739
  </div>
740
  <a name="get_views" id="get_views"></a><div class="element clickable method public get_views" data-toggle="collapse" data-target=".get_views .collapse">
1019
  <code>object</code><p>the current item</p></div>
1020
  </div></div>
1021
  </div>
1022
+ <a name="_avail_mime_types" id="_avail_mime_types"></a><div class="element clickable method protected _avail_mime_types" data-toggle="collapse" data-target="._avail_mime_types .collapse">
1023
  <h2>Get MIME types with one or more attachments for view preparation</h2>
1024
  <pre>_avail_mime_types(array $num_posts) : array</pre>
1025
  <div class="labels"></div>
1039
  <code>array</code>Mime type names</div>
1040
  </div></div>
1041
  </div>
1042
+ <a name="_build_inline_data" id="_build_inline_data"></a><div class="element clickable method protected _build_inline_data" data-toggle="collapse" data-target="._build_inline_data .collapse">
1043
  <h2>Add hidden fields with the data for use in the inline editor</h2>
1044
  <pre>_build_inline_data(object $item) : string</pre>
1045
  <div class="labels"></div>
1059
  <code>string</code>HTML <div> with row data</div>
1060
  </div></div>
1061
  </div>
1062
+ <a name="_build_rollover_actions" id="_build_rollover_actions"></a><div class="element clickable method protected _build_rollover_actions" data-toggle="collapse" data-target="._build_rollover_actions .collapse">
1063
  <h2>Add rollover actions to exactly one of the following displayed columns:
1064
  'ID_parent', 'title_name', 'post_title', 'post_name'</h2>
1065
  <pre>_build_rollover_actions(object $item, string $column) : array</pre>
1083
  <code>array</code>Names and URLs of row-level actions</div>
1084
  </div></div>
1085
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1086
  <h3>
1087
  <i class="icon-custom icon-property"></i> Properties</h3>
1088
+ <a name="%24currently_hidden" id="$currently_hidden"> </a><div class="element clickable property protected $currently_hidden" data-toggle="collapse" data-target=".$currently_hidden .collapse">
1089
  <h2>Currently hidden columns</h2>
1090
  <pre>$currently_hidden : array</pre>
1091
  <div class="labels"></div>
1097
  </tr></table>
1098
  </div></div>
1099
  </div>
1100
+ <a name="%24default_columns" id="$default_columns"> </a><div class="element clickable property protected $default_columns" data-toggle="collapse" data-target=".$default_columns .collapse">
1101
  <h2>Table column definitions</h2>
1102
  <pre>$default_columns : array</pre>
1103
  <div class="labels"></div>
1117
  </tr></table>
1118
  </div></div>
1119
  </div>
1120
+ <a name="%24default_hidden_columns" id="$default_hidden_columns"> </a><div class="element clickable property protected $default_hidden_columns" data-toggle="collapse" data-target=".$default_hidden_columns .collapse">
1121
  <h2>Default values for hidden columns</h2>
1122
  <pre>$default_hidden_columns : array</pre>
1123
  <div class="labels"></div>
1136
  </tr></table>
1137
  </div></div>
1138
  </div>
1139
+ <a name="%24default_sortable_columns" id="$default_sortable_columns"> </a><div class="element clickable property protected $default_sortable_columns" data-toggle="collapse" data-target=".$default_sortable_columns .collapse">
1140
  <h2>Sortable column definitions</h2>
1141
  <pre>$default_sortable_columns : array</pre>
1142
  <div class="labels"></div>
1146
  to sort by. Often, the key and value will be the same, but this is not always
1147
  the case (as the value is a column name from the database, not the list table).</p>
1148
 
1149
+ <p>The array value also contains a boolean which is 'true' if the initial sort order
1150
+ for the column is DESC/Descending.</p>
1151
 
1152
  <p>Taxonomy and custom field columns are added to this array by
1153
  MLA_List_Table::mla_admin_init_action.</p></p>
1157
  </tr></table>
1158
  </div></div>
1159
  </div>
1160
+ <a name="%24rollover_id" id="$rollover_id"> </a><div class="element clickable property protected $rollover_id" data-toggle="collapse" data-target=".$rollover_id .collapse">
1161
  <h2>Records assignment of row-level actions to a table row</h2>
1162
  <pre>$rollover_id : int</pre>
1163
  <div class="labels"></div>
1176
  <div class="row"><footer class="span12">
1177
  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>
1178
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1179
+ generated on 2015-01-05T13:15:01-08:00.<br></footer></div>
1180
  </div>
1181
  </body>
1182
  </html>
phpDocs/classes/MLA_Upload_List_Table.html CHANGED
@@ -736,7 +736,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
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-10-27T20:22:36-07:00.<br></footer></div>
740
  </div>
741
  </body>
742
  </html>
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 2015-01-05T13:15:02-08:00.<br></footer></div>
740
  </div>
741
  </body>
742
  </html>
phpDocs/classes/MLA_Upload_Optional_List_Table.html CHANGED
@@ -554,7 +554,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
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-10-27T20:22:36-07:00.<br></footer></div>
558
  </div>
559
  </body>
560
  </html>
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 2015-01-05T13:15:02-08:00.<br></footer></div>
558
  </div>
559
  </body>
560
  </html>
phpDocs/classes/MLA_View_List_Table.html CHANGED
@@ -633,7 +633,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
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-10-27T20:22:36-07:00.<br></footer></div>
637
  </div>
638
  </body>
639
  </html>
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 2015-01-05T13:15:02-08:00.<br></footer></div>
637
  </div>
638
  </body>
639
  </html>
phpDocs/classes/MNA_Pad_Counts_Walker.html CHANGED
@@ -139,7 +139,7 @@ Class Walker_Category is defined in /wp-includes/category-template.php</p></p>
139
  <div class="row"><footer class="span12">
140
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
141
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
142
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
143
  </div>
144
  </body>
145
  </html>
139
  <div class="row"><footer class="span12">
140
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
141
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
142
+ generated on 2015-01-05T13:15:01-08:00.<br></footer></div>
143
  </div>
144
  </body>
145
  </html>
phpDocs/deprecated.html CHANGED
@@ -67,7 +67,7 @@
67
  <div class="row"><footer class="span12">
68
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
69
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
70
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
71
  </div>
72
  </body>
73
  </html>
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 2015-01-05T13:15:02-08:00.<br></footer></div>
71
  </div>
72
  </body>
73
  </html>
phpDocs/errors.html CHANGED
@@ -102,13 +102,12 @@
102
  <div class="package-contents"></div>
103
  <div class="package-contents"></div>
104
  <div class="package-contents"></div>
105
- <div class="package-contents"></div>
106
  </div>
107
  </div>
108
  <div class="row"><footer class="span12">
109
  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>
110
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
111
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
112
  </div>
113
  </body>
114
  </html>
102
  <div class="package-contents"></div>
103
  <div class="package-contents"></div>
104
  <div class="package-contents"></div>
 
105
  </div>
106
  </div>
107
  <div class="row"><footer class="span12">
108
  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>
109
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
110
+ generated on 2015-01-05T13:15:02-08:00.<br></footer></div>
111
  </div>
112
  </body>
113
  </html>
phpDocs/graph_class.html CHANGED
@@ -64,7 +64,7 @@
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-10-27T20:22:36-07:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
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 2015-01-05T13:15:02-08:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
phpDocs/index.html CHANGED
@@ -86,7 +86,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-10-27T20:22:36-07:00.<br></footer></div>
90
  </div>
91
  </body>
92
  </html>
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 2015-01-05T13:15:01-08:00.<br></footer></div>
90
  </div>
91
  </body>
92
  </html>
phpDocs/markers.html CHANGED
@@ -79,7 +79,7 @@
79
  </tr>
80
  <tr>
81
  <td>todo</td>
82
- <td>3819</td>
83
  <td>encode the rest</td>
84
  </tr>
85
  </table></div>
@@ -89,7 +89,7 @@
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-10-27T20:22:36-07:00.<br></footer></div>
93
  </div>
94
  </body>
95
  </html>
79
  </tr>
80
  <tr>
81
  <td>todo</td>
82
+ <td>3865</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 2015-01-05T13:15:02-08:00.<br></footer></div>
93
  </div>
94
  </body>
95
  </html>
phpDocs/namespaces/global.html CHANGED
@@ -432,7 +432,7 @@ searchable database of exension/type associations for the "Uploads" admin settin
432
  <div class="row"><footer class="span12">
433
  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>
434
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
435
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
436
  </div>
437
  </body>
438
  </html>
432
  <div class="row"><footer class="span12">
433
  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>
434
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
435
+ generated on 2015-01-05T13:15:01-08:00.<br></footer></div>
436
  </div>
437
  </body>
438
  </html>
phpDocs/packages/Media Library Assistant.MLA.Child.Theme.html CHANGED
@@ -268,7 +268,7 @@ display an "accordian-style" list.</p></p>
268
  <div class="row"><footer class="span12">
269
  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>
270
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
271
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
272
  </div>
273
  </body>
274
  </html>
268
  <div class="row"><footer class="span12">
269
  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>
270
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
271
+ generated on 2015-01-05T13:15:01-08:00.<br></footer></div>
272
  </div>
273
  </body>
274
  </html>
phpDocs/packages/Media Library Assistant.MLA.Child.html CHANGED
@@ -265,7 +265,7 @@ display an "accordian-style" list.</p></p>
265
  <div class="row"><footer class="span12">
266
  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>
267
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
268
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
269
  </div>
270
  </body>
271
  </html>
265
  <div class="row"><footer class="span12">
266
  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>
267
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
268
+ generated on 2015-01-05T13:15:01-08:00.<br></footer></div>
269
  </div>
270
  </body>
271
  </html>
phpDocs/packages/Media Library Assistant.MLA.html CHANGED
@@ -276,7 +276,7 @@ display an "accordian-style" list.</p></p>
276
  <div class="row"><footer class="span12">
277
  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>
278
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
279
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
280
  </div>
281
  </body>
282
  </html>
276
  <div class="row"><footer class="span12">
277
  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>
278
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
279
+ generated on 2015-01-05T13:15:01-08:00.<br></footer></div>
280
  </div>
281
  </body>
282
  </html>
phpDocs/packages/Media Library Assistant.html CHANGED
@@ -505,7 +505,7 @@ display an "accordian-style" list.</p></p>
505
  <div class="row"><footer class="span12">
506
  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>
507
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
508
- generated on 2014-10-27T20:22:36-07:00.<br></footer></div>
509
  </div>
510
  </body>
511
  </html>
505
  <div class="row"><footer class="span12">
506
  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>
507
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
508
+ generated on 2015-01-05T13:15:01-08:00.<br></footer></div>
509
  </div>
510
  </body>
511
  </html>
phpDocs/structure.xml CHANGED
@@ -622,7 +622,7 @@ different template.</p>]]></long-description>
622
  <tag line="2" name="since" description="MLA 1.80"/>
623
  </docblock>
624
  </file>
625
- <file path="includes\class-mla-data.php" hash="348e135acfeeb142ee5afaee2647946b" package="Media Library Assistant">
626
  <docblock line="2">
627
  <description><![CDATA[Database and template file access for MLA needs]]></description>
628
  <long-description><![CDATA[]]></long-description>
@@ -663,38 +663,69 @@ ALT Text and custom field columns.</p>]]></long-description>
663
  </tag>
664
  </docblock>
665
  </property>
666
- <property final="false" static="true" visibility="private" line="1139" namespace="global" package="Media Library Assistant">
667
  <name>$mla_list_table_items</name>
668
  <default><![CDATA[NULL]]></default>
669
- <docblock line="1132">
670
  <description><![CDATA[Cache the results of mla_count_list_table_items for reuse in mla_query_list_table_items]]></description>
671
  <long-description><![CDATA[]]></long-description>
672
- <tag line="1132" name="since" description="1.40"/>
673
- <tag line="1132" name="var" description="" type="array">
674
  <type by_reference="false">array</type>
675
  </tag>
676
  </docblock>
677
  </property>
678
- <property final="false" static="true" visibility="private" line="1244" namespace="global" package="Media Library Assistant">
679
  <name>$query_parameters</name>
680
  <default><![CDATA[array()]]></default>
681
- <docblock line="1231">
682
  <description><![CDATA[WP_Query filter "parameters"]]></description>
683
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
684
  The parameters are set up in the _prepare_list_table_query function, and
685
  any further logic required to translate those values is contained in the filters.</p>
686
 
687
- <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>
688
- <tag line="1231" name="since" description="0.30"/>
689
- <tag line="1231" name="var" description="" type="array">
 
690
  <type by_reference="false">array</type>
691
  </tag>
692
  </docblock>
693
  </property>
694
- <property final="false" static="true" visibility="private" line="3250" namespace="global" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
695
  <name>$galleries</name>
696
  <default><![CDATA[null]]></default>
697
- <docblock line="3231">
698
  <description><![CDATA[Objects containing [gallery] shortcodes]]></description>
699
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
700
  and array(s) of which attachments each [gallery] contains. The arrays are built once
@@ -707,126 +738,126 @@ each page load and cached for subsequent calls.</p>
707
  ['galleries'] array of [gallery] entries numbered from one (1), containing:
708
  galleries[X]['query'] contains a string with the arguments of the [gallery],
709
  galleries[X]['results'] contains an array ( ID ) of post_ids for the objects in the gallery.</p>]]></long-description>
710
- <tag line="3231" name="since" description="0.70"/>
711
- <tag line="3231" name="var" description="" type="array">
712
  <type by_reference="false">array</type>
713
  </tag>
714
  </docblock>
715
  </property>
716
- <property final="false" static="true" visibility="private" line="3263" namespace="global" package="Media Library Assistant">
717
  <name>$mla_galleries</name>
718
  <default><![CDATA[null]]></default>
719
- <docblock line="3252">
720
  <description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
721
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
722
  and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
723
  each page load and cached for subsequent calls.</p>]]></long-description>
724
- <tag line="3252" name="since" description="0.70"/>
725
- <tag line="3252" name="var" description="" type="array">
726
  <type by_reference="false">array</type>
727
  </tag>
728
  </docblock>
729
  </property>
730
- <property final="false" static="true" visibility="private" line="3459" namespace="global" package="Media Library Assistant">
731
  <name>$pdf_indirect_objects</name>
732
  <default><![CDATA[NULL]]></default>
733
- <docblock line="3448">
734
  <description><![CDATA[Array of PDF indirect objects]]></description>
735
  <long-description><![CDATA[<p>This array contains all of the indirect object offsets and lengths.
736
  The array key is ( object ID * 1000 ) + object generation.
737
  The array value is array( number, generation, start, optional /length )</p>]]></long-description>
738
- <tag line="3448" name="since" description="1.50"/>
739
- <tag line="3448" name="var" description="" type="array">
740
  <type by_reference="false">array</type>
741
  </tag>
742
  </docblock>
743
  </property>
744
- <property final="false" static="true" visibility="private" line="4570" namespace="global" package="Media Library Assistant">
745
  <name>$utf8_chars</name>
746
  <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>
747
- <docblock line="4563">
748
  <description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
749
  <long-description><![CDATA[]]></long-description>
750
- <tag line="4563" name="since" description="1.41"/>
751
- <tag line="4563" name="var" description="" type="array">
752
  <type by_reference="false">array</type>
753
  </tag>
754
  </docblock>
755
  </property>
756
- <property final="false" static="true" visibility="private" line="4630" namespace="global" package="Media Library Assistant">
757
  <name>$mla_iptc_records</name>
758
  <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>
759
- <docblock line="4620">
760
  <description><![CDATA[IPTC Dataset identifiers and names]]></description>
761
  <long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
762
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
763
- <tag line="4620" name="since" description="0.90"/>
764
- <tag line="4620" name="var" description="" type="array">
765
  <type by_reference="false">array</type>
766
  </tag>
767
  </docblock>
768
  </property>
769
- <property final="false" static="true" visibility="public" line="4729" namespace="global" package="Media Library Assistant">
770
  <name>$mla_iptc_keys</name>
771
  <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>
772
- <docblock line="4719">
773
  <description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
774
  <long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
775
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
776
- <tag line="4719" name="since" description="0.90"/>
777
- <tag line="4719" name="var" description="" type="array">
778
  <type by_reference="false">array</type>
779
  </tag>
780
  </docblock>
781
  </property>
782
- <property final="false" static="true" visibility="private" line="4828" namespace="global" package="Media Library Assistant">
783
  <name>$mla_iptc_descriptions</name>
784
  <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>
785
- <docblock line="4818">
786
  <description><![CDATA[IPTC Dataset descriptions]]></description>
787
  <long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
788
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
789
- <tag line="4818" name="since" description="0.90"/>
790
- <tag line="4818" name="var" description="" type="array">
791
  <type by_reference="false">array</type>
792
  </tag>
793
  </docblock>
794
  </property>
795
- <property final="false" static="true" visibility="private" line="4927" namespace="global" package="Media Library Assistant">
796
  <name>$mla_iptc_formats</name>
797
  <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>
798
- <docblock line="4917">
799
  <description><![CDATA[IPTC file format identifiers and descriptions]]></description>
800
  <long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
801
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
802
- <tag line="4917" name="since" description="0.90"/>
803
- <tag line="4917" name="var" description="" type="array">
804
  <type by_reference="false">array</type>
805
  </tag>
806
  </docblock>
807
  </property>
808
- <property final="false" static="true" visibility="private" line="4970" namespace="global" package="Media Library Assistant">
809
  <name>$mla_iptc_image_types</name>
810
  <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>
811
- <docblock line="4960">
812
  <description><![CDATA[IPTC image type identifiers and descriptions]]></description>
813
  <long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
814
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
815
- <tag line="4960" name="since" description="0.90"/>
816
- <tag line="4960" name="var" description="" type="array">
817
  <type by_reference="false">array</type>
818
  </tag>
819
  </docblock>
820
  </property>
821
- <property final="false" static="true" visibility="private" line="5144" namespace="global" package="Media Library Assistant">
822
  <name>$mla_IPTC_EXIF_errors</name>
823
  <default><![CDATA[array()]]></default>
824
- <docblock line="5136">
825
  <description><![CDATA[Passes IPTC/EXIF parse errors between mla_IPTC_EXIF_error_handler
826
  and mla_fetch_attachment_image_metadata]]></description>
827
  <long-description><![CDATA[]]></long-description>
828
- <tag line="5136" name="since" description="1.81"/>
829
- <tag line="5136" name="var" description="" type="array">
830
  <type by_reference="false">array</type>
831
  </tag>
832
  </docblock>
@@ -1179,1496 +1210,1496 @@ All but request and query require an attachment ID.</p>]]></long-description>
1179
  <type/>
1180
  </argument>
1181
  </method>
1182
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1049" package="Media Library Assistant">
1183
  <name>mla_get_template_placeholders</name>
1184
  <full_name>mla_get_template_placeholders</full_name>
1185
- <docblock line="1038">
1186
  <description><![CDATA[Analyze a template, returning an array of the placeholders it contains]]></description>
1187
  <long-description><![CDATA[]]></long-description>
1188
- <tag line="1038" name="since" description="0.90"/>
1189
- <tag line="1038" name="param" description="A formatting string containing [+placeholders+]" type="string" variable="$tpl">
1190
  <type by_reference="false">string</type>
1191
  </tag>
1192
- <tag line="1038" name="param" description="Optional: default option value" type="string" variable="$default_option">
1193
  <type by_reference="false">string</type>
1194
  </tag>
1195
- <tag line="1038" 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">
1196
  <type by_reference="false">array</type>
1197
  </tag>
1198
  </docblock>
1199
- <argument line="1049">
1200
  <name>$tpl</name>
1201
  <default><![CDATA[]]></default>
1202
  <type/>
1203
  </argument>
1204
- <argument line="1049">
1205
  <name>$default_option</name>
1206
  <default><![CDATA['text']]></default>
1207
  <type/>
1208
  </argument>
1209
  </method>
1210
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1152" package="Media Library Assistant">
1211
  <name>mla_count_list_table_items</name>
1212
  <full_name>mla_count_list_table_items</full_name>
1213
- <docblock line="1141">
1214
  <description><![CDATA[Get the total number of attachment posts]]></description>
1215
  <long-description><![CDATA[]]></long-description>
1216
- <tag line="1141" name="since" description="0.30"/>
1217
- <tag line="1141" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
1218
  <type by_reference="false">array</type>
1219
  </tag>
1220
- <tag line="1141" name="param" description="(optional) number of rows to skip over to reach desired page" type="int" variable="$offset">
1221
  <type by_reference="false">int</type>
1222
  </tag>
1223
- <tag line="1141" name="param" description="(optional) number of rows on each page" type="int" variable="$count">
1224
  <type by_reference="false">int</type>
1225
  </tag>
1226
- <tag line="1141" name="return" description="Number of attachment posts" type="integer">
1227
  <type by_reference="false">integer</type>
1228
  </tag>
1229
  </docblock>
1230
- <argument line="1152">
1231
  <name>$request</name>
1232
  <default><![CDATA[]]></default>
1233
  <type/>
1234
  </argument>
1235
- <argument line="1152">
1236
  <name>$offset</name>
1237
  <default><![CDATA[NULL]]></default>
1238
  <type/>
1239
  </argument>
1240
- <argument line="1152">
1241
  <name>$count</name>
1242
  <default><![CDATA[NULL]]></default>
1243
  <type/>
1244
  </argument>
1245
  </method>
1246
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1180" package="Media Library Assistant">
1247
  <name>mla_query_list_table_items</name>
1248
  <full_name>mla_query_list_table_items</full_name>
1249
- <docblock line="1166">
1250
  <description><![CDATA[Retrieve attachment objects for list table display]]></description>
1251
  <long-description><![CDATA[<p>Supports prepare_items in class-mla-list-table.php.
1252
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
1253
- <tag line="1166" name="since" description="0.1"/>
1254
- <tag line="1166" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
1255
  <type by_reference="false">array</type>
1256
  </tag>
1257
- <tag line="1166" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
1258
  <type by_reference="false">int</type>
1259
  </tag>
1260
- <tag line="1166" name="param" description="number of rows on each page" type="int" variable="$count">
1261
  <type by_reference="false">int</type>
1262
  </tag>
1263
- <tag line="1166" name="return" description="attachment objects (posts) including parent data, meta data and references" type="array">
1264
  <type by_reference="false">array</type>
1265
  </tag>
1266
  </docblock>
1267
- <argument line="1180">
1268
  <name>$request</name>
1269
  <default><![CDATA[]]></default>
1270
  <type/>
1271
  </argument>
1272
- <argument line="1180">
1273
  <name>$offset</name>
1274
  <default><![CDATA[]]></default>
1275
  <type/>
1276
  </argument>
1277
- <argument line="1180">
1278
  <name>$count</name>
1279
  <default><![CDATA[]]></default>
1280
  <type/>
1281
  </argument>
1282
  </method>
1283
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1226" package="Media Library Assistant">
1284
  <name>mla_query_media_modal_items</name>
1285
  <full_name>mla_query_media_modal_items</full_name>
1286
- <docblock line="1213">
1287
  <description><![CDATA[Retrieve attachment objects for the WordPress Media Manager]]></description>
1288
  <long-description><![CDATA[<p>Supports month-year and taxonomy-term filters as well as the enhanced search box</p>]]></long-description>
1289
- <tag line="1213" name="since" description="1.20"/>
1290
- <tag line="1213" name="param" description="query parameters from Media Manager" type="array" variable="$request">
1291
  <type by_reference="false">array</type>
1292
  </tag>
1293
- <tag line="1213" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
1294
  <type by_reference="false">int</type>
1295
  </tag>
1296
- <tag line="1213" name="param" description="number of rows on each page" type="int" variable="$count">
1297
  <type by_reference="false">int</type>
1298
  </tag>
1299
- <tag line="1213" name="return" description="attachment objects (posts)" type="array">
1300
  <type by_reference="false">array</type>
1301
  </tag>
1302
  </docblock>
1303
- <argument line="1226">
1304
  <name>$request</name>
1305
  <default><![CDATA[]]></default>
1306
  <type/>
1307
  </argument>
1308
- <argument line="1226">
1309
  <name>$offset</name>
1310
  <default><![CDATA[]]></default>
1311
  <type/>
1312
  </argument>
1313
- <argument line="1226">
1314
  <name>$count</name>
1315
  <default><![CDATA[]]></default>
1316
  <type/>
1317
  </argument>
1318
  </method>
1319
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1260" package="Media Library Assistant">
1320
  <name>_prepare_list_table_query</name>
1321
  <full_name>_prepare_list_table_query</full_name>
1322
- <docblock line="1246">
1323
  <description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
1324
  <long-description><![CDATA[<p>Prepare the arguments for WP_Query.
1325
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
1326
- <tag line="1246" name="since" description="0.1"/>
1327
- <tag line="1246" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
1328
  <type by_reference="false">array</type>
1329
  </tag>
1330
- <tag line="1246" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
1331
  <type by_reference="false">int</type>
1332
  </tag>
1333
- <tag line="1246" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
1334
  <type by_reference="false">int</type>
1335
  </tag>
1336
- <tag line="1246" name="return" description="revised arguments suitable for WP_Query" type="array">
1337
  <type by_reference="false">array</type>
1338
  </tag>
1339
  </docblock>
1340
- <argument line="1260">
1341
  <name>$raw_request</name>
1342
  <default><![CDATA[]]></default>
1343
  <type/>
1344
  </argument>
1345
- <argument line="1260">
1346
  <name>$offset</name>
1347
  <default><![CDATA[0]]></default>
1348
  <type/>
1349
  </argument>
1350
- <argument line="1260">
1351
  <name>$count</name>
1352
  <default><![CDATA[0]]></default>
1353
  <type/>
1354
  </argument>
1355
  </method>
1356
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1626" package="Media Library Assistant">
1357
  <name>_execute_list_table_query</name>
1358
  <full_name>_execute_list_table_query</full_name>
1359
- <docblock line="1617">
1360
  <description><![CDATA[Add filters, run query, remove filters]]></description>
1361
  <long-description><![CDATA[]]></long-description>
1362
- <tag line="1617" name="since" description="0.30"/>
1363
- <tag line="1617" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
1364
  <type by_reference="false">array</type>
1365
  </tag>
1366
- <tag line="1617" name="return" description="WP_Query object with query results" type="object">
1367
  <type by_reference="false">object</type>
1368
  </tag>
1369
  </docblock>
1370
- <argument line="1626">
1371
  <name>$request</name>
1372
  <default><![CDATA[]]></default>
1373
  <type/>
1374
  </argument>
1375
  </method>
1376
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1729" package="Media Library Assistant">
1377
  <name>mla_search_terms_tidy</name>
1378
  <full_name>mla_search_terms_tidy</full_name>
1379
- <docblock line="1718">
1380
  <description><![CDATA[Replaces a WordPress function deprecated in v3.7]]></description>
1381
  <long-description><![CDATA[<p>Defined as public because it's a callback from array_map().</p>]]></long-description>
1382
- <tag line="1718" name="since" description="1.51"/>
1383
- <tag line="1718" name="param" description="search term before modification" type="string" variable="$term">
1384
  <type by_reference="false">string</type>
1385
  </tag>
1386
- <tag line="1718" name="return" description="cleaned up search term" type="string">
1387
  <type by_reference="false">string</type>
1388
  </tag>
1389
  </docblock>
1390
- <argument line="1729">
1391
  <name>$term</name>
1392
  <default><![CDATA[]]></default>
1393
  <type/>
1394
  </argument>
1395
  </method>
1396
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1745" package="Media Library Assistant">
1397
  <name>mla_query_posts_search_filter</name>
1398
  <full_name>mla_query_posts_search_filter</full_name>
1399
- <docblock line="1733">
1400
  <description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
1401
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
1402
- <tag line="1733" name="since" description="0.60"/>
1403
- <tag line="1733" name="param" description="query clause before modification" type="string" variable="$search_string">
1404
  <type by_reference="false">string</type>
1405
  </tag>
1406
- <tag line="1733" name="param" description="WP_Query object" type="object" variable="$query_object">
1407
  <type by_reference="false">object</type>
1408
  </tag>
1409
- <tag line="1733" name="return" description="query clause after keyword search addition" type="string">
1410
  <type by_reference="false">string</type>
1411
  </tag>
1412
  </docblock>
1413
- <argument line="1745">
1414
  <name>$search_string</name>
1415
  <default><![CDATA[]]></default>
1416
  <type/>
1417
  </argument>
1418
- <argument line="1745">
1419
  <name>$query_object</name>
1420
  <default><![CDATA[]]></default>
1421
  <type/>
1422
  </argument>
1423
  </method>
1424
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2016" package="Media Library Assistant">
1425
  <name>mla_query_posts_where_filter</name>
1426
  <full_name>mla_query_posts_where_filter</full_name>
1427
- <docblock line="2004">
1428
- <description><![CDATA[Adds a WHERE clause for detached items]]></description>
1429
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
1430
  Defined as public because it's a filter.</p>]]></long-description>
1431
- <tag line="2004" name="since" description="0.1"/>
1432
- <tag line="2004" name="param" description="query clause before modification" type="string" variable="$where_clause">
1433
  <type by_reference="false">string</type>
1434
  </tag>
1435
- <tag line="2004" name="return" description="query clause after &quot;detached&quot; item modification" type="string">
1436
  <type by_reference="false">string</type>
1437
  </tag>
1438
  </docblock>
1439
- <argument line="2016">
1440
  <name>$where_clause</name>
1441
  <default><![CDATA[]]></default>
1442
  <type/>
1443
  </argument>
1444
  </method>
1445
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2080" package="Media Library Assistant">
1446
  <name>mla_query_posts_join_filter</name>
1447
  <full_name>mla_query_posts_join_filter</full_name>
1448
- <docblock line="2069">
1449
  <description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text]]></description>
1450
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
1451
- <tag line="2069" name="since" description="0.30"/>
1452
- <tag line="2069" name="param" description="query clause before modification" type="string" variable="$join_clause">
1453
  <type by_reference="false">string</type>
1454
  </tag>
1455
- <tag line="2069" name="return" description="query clause after &quot;LEFT JOIN view ON post_id&quot; item modification" type="string">
1456
  <type by_reference="false">string</type>
1457
  </tag>
1458
  </docblock>
1459
- <argument line="2080">
1460
  <name>$join_clause</name>
1461
  <default><![CDATA[]]></default>
1462
  <type/>
1463
  </argument>
1464
  </method>
1465
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2135" package="Media Library Assistant">
1466
  <name>mla_query_posts_groupby_filter</name>
1467
  <full_name>mla_query_posts_groupby_filter</full_name>
1468
- <docblock line="2123">
1469
  <description><![CDATA[Adds a GROUPBY clause, if required]]></description>
1470
  <long-description><![CDATA[<p>Taxonomy text queries require a GROUPBY clause.
1471
  Defined as public because it's a filter.</p>]]></long-description>
1472
- <tag line="2123" name="since" description="1.90"/>
1473
- <tag line="2123" name="param" description="query clause before modification" type="string" variable="$groupby_clause">
1474
  <type by_reference="false">string</type>
1475
  </tag>
1476
- <tag line="2123" name="return" description="updated query clause" type="string">
1477
  <type by_reference="false">string</type>
1478
  </tag>
1479
  </docblock>
1480
- <argument line="2135">
1481
  <name>$groupby_clause</name>
1482
  <default><![CDATA[]]></default>
1483
  <type/>
1484
  </argument>
1485
  </method>
1486
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2157" package="Media Library Assistant">
1487
  <name>mla_query_posts_orderby_filter</name>
1488
  <full_name>mla_query_posts_orderby_filter</full_name>
1489
- <docblock line="2145">
1490
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
1491
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
1492
  Defined as public because it's a filter.</p>]]></long-description>
1493
- <tag line="2145" name="since" description="0.30"/>
1494
- <tag line="2145" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
1495
  <type by_reference="false">string</type>
1496
  </tag>
1497
- <tag line="2145" name="return" description="updated query clause" type="string">
1498
  <type by_reference="false">string</type>
1499
  </tag>
1500
  </docblock>
1501
- <argument line="2157">
1502
  <name>$orderby_clause</name>
1503
  <default><![CDATA[]]></default>
1504
  <type/>
1505
  </argument>
1506
  </method>
1507
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2235" package="Media Library Assistant">
1508
  <name>mla_query_relevanssi_admin_search_ok_filter</name>
1509
  <full_name>mla_query_relevanssi_admin_search_ok_filter</full_name>
1510
- <docblock line="2225">
1511
  <description><![CDATA[Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
1512
  Defined as public because it's a filter.]]></description>
1513
  <long-description><![CDATA[]]></long-description>
1514
- <tag line="2225" name="since" description="1.80"/>
1515
- <tag line="2225" name="param" description="Default setting" type="boolean" variable="$admin_search_ok">
1516
  <type by_reference="false">boolean</type>
1517
  </tag>
1518
- <tag line="2225" name="return" description="Updated setting" type="boolean">
1519
  <type by_reference="false">boolean</type>
1520
  </tag>
1521
  </docblock>
1522
- <argument line="2235">
1523
  <name>$admin_search_ok</name>
1524
  <default><![CDATA[]]></default>
1525
  <type/>
1526
  </argument>
1527
  </method>
1528
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2251" package="Media Library Assistant">
1529
  <name>mla_query_posts_clauses_filter</name>
1530
  <full_name>mla_query_posts_clauses_filter</full_name>
1531
- <docblock line="2239">
1532
  <description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
1533
  <long-description><![CDATA[<p>This is for debug purposes only.
1534
  Defined as public because it's a filter.</p>]]></long-description>
1535
- <tag line="2239" name="since" description="1.80"/>
1536
- <tag line="2239" name="param" description="query clauses before modification" type="array" variable="$pieces">
1537
  <type by_reference="false">array</type>
1538
  </tag>
1539
- <tag line="2239" name="return" description="query clauses after modification (none)" type="array">
1540
  <type by_reference="false">array</type>
1541
  </tag>
1542
  </docblock>
1543
- <argument line="2251">
1544
  <name>$pieces</name>
1545
  <default><![CDATA[]]></default>
1546
  <type/>
1547
  </argument>
1548
  </method>
1549
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2275" package="Media Library Assistant">
1550
  <name>mla_query_posts_clauses_request_filter</name>
1551
  <full_name>mla_query_posts_clauses_request_filter</full_name>
1552
- <docblock line="2263">
1553
  <description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
1554
  <long-description><![CDATA[<p>This is for debug purposes only.
1555
  Defined as public because it's a filter.</p>]]></long-description>
1556
- <tag line="2263" name="since" description="1.80"/>
1557
- <tag line="2263" name="param" description="query clauses before modification" type="array" variable="$pieces">
1558
  <type by_reference="false">array</type>
1559
  </tag>
1560
- <tag line="2263" name="return" description="query clauses after modification (none)" type="array">
1561
  <type by_reference="false">array</type>
1562
  </tag>
1563
  </docblock>
1564
- <argument line="2275">
1565
  <name>$pieces</name>
1566
  <default><![CDATA[]]></default>
1567
  <type/>
1568
  </argument>
1569
  </method>
1570
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2299" package="Media Library Assistant">
1571
  <name>mla_get_attachment_by_id</name>
1572
  <full_name>mla_get_attachment_by_id</full_name>
1573
- <docblock line="2287">
1574
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
1575
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
1576
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
1577
- <tag line="2287" name="since" description="0.1"/>
1578
- <tag line="2287" name="uses" description="\global\$post" refers="\global\$post"/>
1579
- <tag line="2287" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
1580
  <type by_reference="false">int</type>
1581
  </tag>
1582
- <tag line="2287" name="return" description="NULL on failure else associative array" type="NULL|array">
1583
  <type by_reference="false">NULL</type>
1584
  <type by_reference="false">array</type>
1585
  </tag>
1586
  </docblock>
1587
- <argument line="2299">
1588
  <name>$post_id</name>
1589
  <default><![CDATA[]]></default>
1590
  <type/>
1591
  </argument>
1592
  </method>
1593
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2355" package="Media Library Assistant">
1594
  <name>mla_fetch_attachment_parent_data</name>
1595
  <full_name>mla_fetch_attachment_parent_data</full_name>
1596
- <docblock line="2346">
1597
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
1598
  <long-description><![CDATA[]]></long-description>
1599
- <tag line="2346" name="since" description="0.1"/>
1600
- <tag line="2346" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
1601
  <type by_reference="false">int</type>
1602
  </tag>
1603
- <tag line="2346" name="return" description="Parent information; post_date, post_title and post_type" type="array">
1604
  <type by_reference="false">array</type>
1605
  </tag>
1606
  </docblock>
1607
- <argument line="2355">
1608
  <name>$parent_id</name>
1609
  <default><![CDATA[]]></default>
1610
  <type/>
1611
  </argument>
1612
  </method>
1613
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2397" package="Media Library Assistant">
1614
  <name>_set_array_element</name>
1615
  <full_name>_set_array_element</full_name>
1616
- <docblock line="2386">
1617
  <description><![CDATA[Adds or replaces the value of a key in a possibly nested array structure]]></description>
1618
  <long-description><![CDATA[]]></long-description>
1619
- <tag line="2386" name="since" description="1.51"/>
1620
- <tag line="2386" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
1621
  <type by_reference="false">string</type>
1622
  </tag>
1623
- <tag line="2386" name="param" description="replacement value, string or array, by reference" type="mixed" variable="$value">
1624
  <type by_reference="false">mixed</type>
1625
  </tag>
1626
- <tag line="2386" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
1627
  <type by_reference="false">array</type>
1628
  </tag>
1629
- <tag line="2386" name="return" description="true if $needle element set, false if not" type="boolean">
1630
  <type by_reference="false">boolean</type>
1631
  </tag>
1632
  </docblock>
1633
- <argument line="2397">
1634
  <name>$needle</name>
1635
  <default><![CDATA[]]></default>
1636
  <type/>
1637
  </argument>
1638
- <argument line="2397">
1639
  <name>$value</name>
1640
  <default><![CDATA[]]></default>
1641
  <type/>
1642
  </argument>
1643
- <argument line="2397">
1644
  <name>$haystack</name>
1645
  <default><![CDATA[]]></default>
1646
  <type/>
1647
  </argument>
1648
  </method>
1649
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2431" package="Media Library Assistant">
1650
  <name>_unset_array_element</name>
1651
  <full_name>_unset_array_element</full_name>
1652
- <docblock line="2421">
1653
  <description><![CDATA[Deletes the value of a key in a possibly nested array structure]]></description>
1654
  <long-description><![CDATA[]]></long-description>
1655
- <tag line="2421" name="since" description="1.51"/>
1656
- <tag line="2421" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
1657
  <type by_reference="false">string</type>
1658
  </tag>
1659
- <tag line="2421" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
1660
  <type by_reference="false">array</type>
1661
  </tag>
1662
- <tag line="2421" name="return" description="true if $needle element found, false if not" type="boolean">
1663
  <type by_reference="false">boolean</type>
1664
  </tag>
1665
  </docblock>
1666
- <argument line="2431">
1667
  <name>$needle</name>
1668
  <default><![CDATA[]]></default>
1669
  <type/>
1670
  </argument>
1671
- <argument line="2431">
1672
  <name>$haystack</name>
1673
  <default><![CDATA[]]></default>
1674
  <type/>
1675
  </argument>
1676
  </method>
1677
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2466" package="Media Library Assistant">
1678
  <name>mla_find_array_element</name>
1679
  <full_name>mla_find_array_element</full_name>
1680
- <docblock line="2451">
1681
  <description><![CDATA[Finds the value of a key in a possibly nested array structure]]></description>
1682
  <long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
1683
  Could also be used with the ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
1684
- <tag line="2451" name="since" description="1.30"/>
1685
- <tag line="2451" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
1686
  <type by_reference="false">string</type>
1687
  </tag>
1688
- <tag line="2451" name="param" description="PHP nested arrays" type="array" variable="$haystack">
1689
  <type by_reference="false">array</type>
1690
  </tag>
1691
- <tag line="2451" name="param" description="data option 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
1692
  <type by_reference="false">string</type>
1693
  </tag>
1694
- <tag line="2451" name="param" description="keep existing values - for 'multi' option" type="boolean" variable="$keep_existing">
1695
  <type by_reference="false">boolean</type>
1696
  </tag>
1697
- <tag line="2451" name="return" description="string or array value matching key(.key ...) or ''" type="mixed">
1698
  <type by_reference="false">mixed</type>
1699
  </tag>
1700
  </docblock>
1701
- <argument line="2466">
1702
  <name>$needle</name>
1703
  <default><![CDATA[]]></default>
1704
  <type/>
1705
  </argument>
1706
- <argument line="2466">
1707
  <name>$haystack</name>
1708
  <default><![CDATA[]]></default>
1709
  <type/>
1710
  </argument>
1711
- <argument line="2466">
1712
  <name>$option</name>
1713
  <default><![CDATA[]]></default>
1714
  <type/>
1715
  </argument>
1716
- <argument line="2466">
1717
  <name>$keep_existing</name>
1718
  <default><![CDATA[false]]></default>
1719
  <type/>
1720
  </argument>
1721
  </method>
1722
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2519" package="Media Library Assistant">
1723
  <name>mla_fetch_attachment_metadata</name>
1724
  <full_name>mla_fetch_attachment_metadata</full_name>
1725
- <docblock line="2507">
1726
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
1727
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
1728
  are stripped out or converted to an 'mla</em>' equivalent.</p>]]></long-description>
1729
- <tag line="2507" name="since" description="0.1"/>
1730
- <tag line="2507" name="param" description="post ID of attachment" type="int" variable="$post_id">
1731
  <type by_reference="false">int</type>
1732
  </tag>
1733
- <tag line="2507" name="return" description="Meta data variables" type="array">
1734
  <type by_reference="false">array</type>
1735
  </tag>
1736
  </docblock>
1737
- <argument line="2519">
1738
  <name>$post_id</name>
1739
  <default><![CDATA[]]></default>
1740
  <type/>
1741
  </argument>
1742
  </method>
1743
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2604" package="Media Library Assistant">
1744
  <name>mla_fetch_attachment_references</name>
1745
  <full_name>mla_fetch_attachment_references</full_name>
1746
- <docblock line="2591">
1747
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
1748
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
1749
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
1750
- <tag line="2591" name="since" description="0.1"/>
1751
- <tag line="2591" name="param" description="post ID of attachment" type="int" variable="$ID">
1752
  <type by_reference="false">int</type>
1753
  </tag>
1754
- <tag line="2591" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
1755
  <type by_reference="false">int</type>
1756
  </tag>
1757
- <tag line="2591" name="return" description="Reference information; see $references array comments" type="array">
1758
  <type by_reference="false">array</type>
1759
  </tag>
1760
  </docblock>
1761
- <argument line="2604">
1762
  <name>$ID</name>
1763
  <default><![CDATA[]]></default>
1764
  <type/>
1765
  </argument>
1766
- <argument line="2604">
1767
  <name>$parent</name>
1768
  <default><![CDATA[]]></default>
1769
  <type/>
1770
  </argument>
1771
  </method>
1772
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2909" package="Media Library Assistant">
1773
  <name>mla_attachment_array_fetch_references</name>
1774
  <full_name>mla_attachment_array_fetch_references</full_name>
1775
- <docblock line="2897">
1776
  <description><![CDATA[Add Featured Image and inserted image/link references to an array of attachments]]></description>
1777
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachmenta are used
1778
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
1779
- <tag line="2897" name="since" description="1.94"/>
1780
- <tag line="2897" name="param" description="WP_Post objects, passed by reference" type="array" variable="$attachments">
1781
  <type by_reference="false">array</type>
1782
  </tag>
1783
- <tag line="2897" name="return" description="updates WP_Post objects with new mla_references property" type="void">
1784
  <type by_reference="false">void</type>
1785
  </tag>
1786
  </docblock>
1787
- <argument line="2909">
1788
  <name>$attachments</name>
1789
  <default><![CDATA[]]></default>
1790
  <type/>
1791
  </argument>
1792
  </method>
1793
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3274" package="Media Library Assistant">
1794
  <name>mla_flush_mla_galleries</name>
1795
  <full_name>mla_flush_mla_galleries</full_name>
1796
- <docblock line="3265">
1797
  <description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
1798
  <long-description><![CDATA[]]></long-description>
1799
- <tag line="3265" name="since" description="1.00"/>
1800
- <tag line="3265" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
1801
  <type by_reference="false">string</type>
1802
  </tag>
1803
- <tag line="3265" name="return" description="" type="void">
1804
  <type by_reference="false">void</type>
1805
  </tag>
1806
  </docblock>
1807
- <argument line="3274">
1808
  <name>$option_name</name>
1809
  <default><![CDATA[]]></default>
1810
  <type/>
1811
  </argument>
1812
  </method>
1813
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3298" package="Media Library Assistant">
1814
  <name>mla_save_post_action</name>
1815
  <full_name>mla_save_post_action</full_name>
1816
- <docblock line="3289">
1817
  <description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
1818
  <long-description><![CDATA[]]></long-description>
1819
- <tag line="3289" name="since" description="1.00"/>
1820
- <tag line="3289" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
1821
  <type by_reference="false">integer</type>
1822
  </tag>
1823
- <tag line="3289" name="return" description="" type="void">
1824
  <type by_reference="false">void</type>
1825
  </tag>
1826
  </docblock>
1827
- <argument line="3298">
1828
  <name>$post_id</name>
1829
  <default><![CDATA[]]></default>
1830
  <type/>
1831
  </argument>
1832
  </method>
1833
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3315" package="Media Library Assistant">
1834
  <name>_build_mla_galleries</name>
1835
  <full_name>_build_mla_galleries</full_name>
1836
- <docblock line="3303">
1837
  <description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
1838
  <long-description><![CDATA[]]></long-description>
1839
- <tag line="3303" name="since" description="0.70"/>
1840
- <tag line="3303" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
1841
  <type by_reference="false">string</type>
1842
  </tag>
1843
- <tag line="3303" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
1844
  <type by_reference="false">array</type>
1845
  </tag>
1846
- <tag line="3303" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
1847
  <type by_reference="false">string</type>
1848
  </tag>
1849
- <tag line="3303" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
1850
  <type by_reference="false">boolean</type>
1851
  </tag>
1852
- <tag line="3303" name="return" description="true if the galleries array is not empty" type="boolean">
1853
  <type by_reference="false">boolean</type>
1854
  </tag>
1855
  </docblock>
1856
- <argument line="3315">
1857
  <name>$option_name</name>
1858
  <default><![CDATA[]]></default>
1859
  <type/>
1860
  </argument>
1861
- <argument line="3315">
1862
  <name>$galleries_array</name>
1863
  <default><![CDATA[]]></default>
1864
  <type/>
1865
  </argument>
1866
- <argument line="3315">
1867
  <name>$shortcode</name>
1868
  <default><![CDATA[]]></default>
1869
  <type/>
1870
  </argument>
1871
- <argument line="3315">
1872
  <name>$exclude_revisions</name>
1873
  <default><![CDATA[]]></default>
1874
  <type/>
1875
  </argument>
1876
  </method>
1877
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3435" package="Media Library Assistant">
1878
  <name>_search_mla_galleries</name>
1879
  <full_name>_search_mla_galleries</full_name>
1880
- <docblock line="3424">
1881
  <description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
1882
  <long-description><![CDATA[]]></long-description>
1883
- <tag line="3424" name="since" description="0.70"/>
1884
- <tag line="3424" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
1885
  <type by_reference="false">array</type>
1886
  </tag>
1887
- <tag line="3424" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
1888
  <type by_reference="false">int</type>
1889
  </tag>
1890
- <tag line="3424" 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">
1891
  <type by_reference="false">array</type>
1892
  </tag>
1893
  </docblock>
1894
- <argument line="3435">
1895
  <name>$galleries_array</name>
1896
  <default><![CDATA[]]></default>
1897
  <type/>
1898
  </argument>
1899
- <argument line="3435">
1900
  <name>$attachment_id</name>
1901
  <default><![CDATA[]]></default>
1902
  <type/>
1903
  </argument>
1904
  </method>
1905
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3474" package="Media Library Assistant">
1906
  <name>_parse_pdf_xref_subsection</name>
1907
  <full_name>_parse_pdf_xref_subsection</full_name>
1908
- <docblock line="3461">
1909
  <description><![CDATA[Parse a cross-reference table subsection into the array of indirect object definitions]]></description>
1910
  <long-description><![CDATA[<p>A cross-reference subsection is a sequence of 20-byte entries, each with offset and generation values.</p>]]></long-description>
1911
- <tag line="3461" name="since" description="1.50"/>
1912
- <tag line="3461" name="param" description="buffer containing the subsection" type="string" variable="$xref_section">
1913
  <type by_reference="false">string</type>
1914
  </tag>
1915
- <tag line="3461" name="param" description="offset within the buffer of the first entry" type="integer" variable="$offset">
1916
  <type by_reference="false">integer</type>
1917
  </tag>
1918
- <tag line="3461" name="param" description="number of the first object in the subsection" type="integer" variable="$object_id">
1919
  <type by_reference="false">integer</type>
1920
  </tag>
1921
- <tag line="3461" name="param" description="number of entries in the subsection" type="integer" variable="$count">
1922
  <type by_reference="false">integer</type>
1923
  </tag>
1924
- <tag line="3461" name="return" description="" type="void">
1925
  <type by_reference="false">void</type>
1926
  </tag>
1927
  </docblock>
1928
- <argument line="3474">
1929
  <name>$xref_section</name>
1930
  <default><![CDATA[]]></default>
1931
  <type/>
1932
  </argument>
1933
- <argument line="3474">
1934
  <name>$offset</name>
1935
  <default><![CDATA[]]></default>
1936
  <type/>
1937
  </argument>
1938
- <argument line="3474">
1939
  <name>$object_id</name>
1940
  <default><![CDATA[]]></default>
1941
  <type/>
1942
  </argument>
1943
- <argument line="3474">
1944
  <name>$count</name>
1945
  <default><![CDATA[]]></default>
1946
  <type/>
1947
  </argument>
1948
  </method>
1949
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3506" package="Media Library Assistant">
1950
  <name>_parse_pdf_xref_section</name>
1951
  <full_name>_parse_pdf_xref_section</full_name>
1952
- <docblock line="3495">
1953
  <description><![CDATA[Parse a cross-reference table section into the array of indirect object definitions]]></description>
1954
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
1955
- <tag line="3495" name="since" description="1.50"/>
1956
- <tag line="3495" name="param" description="full path and file name" type="string" variable="$file_name">
1957
  <type by_reference="false">string</type>
1958
  </tag>
1959
- <tag line="3495" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
1960
  <type by_reference="false">integer</type>
1961
  </tag>
1962
- <tag line="3495" name="return" description="length of the section" type="integer">
1963
  <type by_reference="false">integer</type>
1964
  </tag>
1965
  </docblock>
1966
- <argument line="3506">
1967
  <name>$file_name</name>
1968
  <default><![CDATA[]]></default>
1969
  <type/>
1970
  </argument>
1971
- <argument line="3506">
1972
  <name>$file_offset</name>
1973
  <default><![CDATA[]]></default>
1974
  <type/>
1975
  </argument>
1976
  </method>
1977
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3540" package="Media Library Assistant">
1978
  <name>_parse_pdf_xref_stream</name>
1979
  <full_name>_parse_pdf_xref_stream</full_name>
1980
- <docblock line="3528">
1981
  <description><![CDATA[Parse a cross-reference steam into the array of indirect object definitions]]></description>
1982
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
1983
- <tag line="3528" name="since" description="1.50"/>
1984
- <tag line="3528" name="param" description="full path and file name" type="string" variable="$file_name">
1985
  <type by_reference="false">string</type>
1986
  </tag>
1987
- <tag line="3528" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
1988
  <type by_reference="false">integer</type>
1989
  </tag>
1990
- <tag line="3528" name="param" description="&quot;/W&quot; entry, representing the size of the fields in a single entry" type="string" variable="$entry_parms_string">
1991
  <type by_reference="false">string</type>
1992
  </tag>
1993
- <tag line="3528" name="return" description="length of the stream" type="integer">
1994
  <type by_reference="false">integer</type>
1995
  </tag>
1996
  </docblock>
1997
- <argument line="3540">
1998
  <name>$file_name</name>
1999
  <default><![CDATA[]]></default>
2000
  <type/>
2001
  </argument>
2002
- <argument line="3540">
2003
  <name>$file_offset</name>
2004
  <default><![CDATA[]]></default>
2005
  <type/>
2006
  </argument>
2007
- <argument line="3540">
2008
  <name>$entry_parms_string</name>
2009
  <default><![CDATA[]]></default>
2010
  <type/>
2011
  </argument>
2012
  </method>
2013
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3619" package="Media Library Assistant">
2014
  <name>_build_pdf_indirect_objects</name>
2015
  <full_name>_build_pdf_indirect_objects</full_name>
2016
- <docblock line="3609">
2017
  <description><![CDATA[Build an array of indirect object definitions]]></description>
2018
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
2019
- <tag line="3609" name="since" description="1.50"/>
2020
- <tag line="3609" name="param" description="The entire PDF document, passsed by reference" type="string" variable="$string">
2021
  <type by_reference="false">string</type>
2022
  </tag>
2023
- <tag line="3609" name="return" description="" type="void">
2024
  <type by_reference="false">void</type>
2025
  </tag>
2026
  </docblock>
2027
- <argument line="3619">
2028
  <name>$string</name>
2029
  <default><![CDATA[]]></default>
2030
  <type/>
2031
  </argument>
2032
  </method>
2033
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3667" package="Media Library Assistant">
2034
  <name>_find_pdf_indirect_dictionary</name>
2035
  <full_name>_find_pdf_indirect_dictionary</full_name>
2036
- <docblock line="3653">
2037
  <description><![CDATA[Find the offset, length and contents of an indirect object containing a dictionary]]></description>
2038
  <long-description><![CDATA[<p>The function searches the entire file, if necessary, to find the last/most recent copy of the object.
2039
  This is required because Adobe Acrobat does NOT increment the generation number when it reuses an object.</p>]]></long-description>
2040
- <tag line="3653" name="since" description="1.50"/>
2041
- <tag line="3653" name="param" description="full path and file name" type="string" variable="$file_name">
2042
  <type by_reference="false">string</type>
2043
  </tag>
2044
- <tag line="3653" name="param" description="The object number" type="integer" variable="$object">
2045
  <type by_reference="false">integer</type>
2046
  </tag>
2047
- <tag line="3653" name="param" description="The object generation number; default zero (0)" type="integer" variable="$generation">
2048
  <type by_reference="false">integer</type>
2049
  </tag>
2050
- <tag line="3653" name="return" description="NULL on failure else array( 'start' =&gt; offset in the file, 'length' =&gt; object length, 'content' =&gt; dictionary contents )" type="mixed">
2051
  <type by_reference="false">mixed</type>
2052
  </tag>
2053
  </docblock>
2054
- <argument line="3667">
2055
  <name>$file_name</name>
2056
  <default><![CDATA[]]></default>
2057
  <type/>
2058
  </argument>
2059
- <argument line="3667">
2060
  <name>$object</name>
2061
  <default><![CDATA[]]></default>
2062
  <type/>
2063
  </argument>
2064
- <argument line="3667">
2065
  <name>$generation</name>
2066
  <default><![CDATA[0]]></default>
2067
  <type/>
2068
  </argument>
2069
  </method>
2070
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3764" package="Media Library Assistant">
2071
  <name>_parse_iso8601_date</name>
2072
  <full_name>_parse_iso8601_date</full_name>
2073
- <docblock line="3755">
2074
  <description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
2075
  <long-description><![CDATA[]]></long-description>
2076
- <tag line="3755" name="since" description="1.50"/>
2077
- <tag line="3755" name="param" description="ISO string of the form YYYY-MM-DDTHH:MM:SS-HH:MM (inc time zone)" type="string" variable="$source_string">
2078
  <type by_reference="false">string</type>
2079
  </tag>
2080
- <tag line="3755" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
2081
  <type by_reference="false">string</type>
2082
  </tag>
2083
  </docblock>
2084
- <argument line="3764">
2085
  <name>$source_string</name>
2086
  <default><![CDATA[]]></default>
2087
  <type/>
2088
  </argument>
2089
  </method>
2090
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3787" package="Media Library Assistant">
2091
  <name>_parse_pdf_date</name>
2092
  <full_name>_parse_pdf_date</full_name>
2093
- <docblock line="3778">
2094
  <description><![CDATA[Parse a PDF date string]]></description>
2095
  <long-description><![CDATA[]]></long-description>
2096
- <tag line="3778" name="since" description="1.50"/>
2097
- <tag line="3778" name="param" description="PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm" type="string" variable="$source_string">
2098
  <type by_reference="false">string</type>
2099
  </tag>
2100
- <tag line="3778" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
2101
  <type by_reference="false">string</type>
2102
  </tag>
2103
  </docblock>
2104
- <argument line="3787">
2105
  <name>$source_string</name>
2106
  <default><![CDATA[]]></default>
2107
  <type/>
2108
  </argument>
2109
  </method>
2110
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3810" package="Media Library Assistant">
2111
  <name>_parse_pdf_UTF16BE</name>
2112
  <full_name>_parse_pdf_UTF16BE</full_name>
2113
- <docblock line="3801">
2114
  <description><![CDATA[Parse a PDF Unicode (16-bit Big Endian) object]]></description>
2115
  <long-description><![CDATA[]]></long-description>
2116
- <tag line="3801" name="since" description="1.50"/>
2117
- <tag line="3801" name="param" description="PDF string of 16-bit characters" type="string" variable="$source_string">
2118
  <type by_reference="false">string</type>
2119
  </tag>
2120
- <tag line="3801" name="return" description="UTF-8 encoded string" type="string">
2121
  <type by_reference="false">string</type>
2122
  </tag>
2123
  </docblock>
2124
- <argument line="3810">
2125
  <name>$source_string</name>
2126
  <default><![CDATA[]]></default>
2127
  <type/>
2128
  </argument>
2129
  </method>
2130
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3839" package="Media Library Assistant">
2131
  <name>_parse_pdf_string</name>
2132
  <full_name>_parse_pdf_string</full_name>
2133
- <docblock line="3826">
2134
  <description><![CDATA[Parse a PDF string object]]></description>
2135
  <long-description><![CDATA[<p>Returns an array with one dictionary entry. The array also has a '/length' element containing
2136
  the number of bytes occupied by the string in the source string, including the enclosing parentheses.</p>]]></long-description>
2137
- <tag line="3826" name="since" description="1.50"/>
2138
- <tag line="3826" name="param" description="data within which the string occurs" type="string" variable="$source_string">
2139
  <type by_reference="false">string</type>
2140
  </tag>
2141
- <tag line="3826" name="param" description="offset within the source string of the opening '(' character." type="integer" variable="$offset">
2142
  <type by_reference="false">integer</type>
2143
  </tag>
2144
- <tag line="3826" name="return" description="( key =&gt; array( 'type' =&gt; type, 'value' =&gt; value, '/length' =&gt; length ) ) for the string" type="array">
2145
  <type by_reference="false">array</type>
2146
  </tag>
2147
  </docblock>
2148
- <argument line="3839">
2149
  <name>$source_string</name>
2150
  <default><![CDATA[]]></default>
2151
  <type/>
2152
  </argument>
2153
- <argument line="3839">
2154
  <name>$offset</name>
2155
  <default><![CDATA[]]></default>
2156
  <type/>
2157
  </argument>
2158
  </method>
2159
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3933" package="Media Library Assistant">
2160
  <name>_parse_pdf_LPD_dictionary</name>
2161
  <full_name>_parse_pdf_LPD_dictionary</full_name>
2162
- <docblock line="3919">
2163
  <description><![CDATA[Parse a PDF Linearization Parameter Dictionary object]]></description>
2164
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
2165
  indirect (object), name, array, dictionary, stream, and null.
2166
  The array also has a '/length' element containing the number of bytes occupied by the
2167
  dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
2168
- <tag line="3919" name="since" description="1.50"/>
2169
- <tag line="3919" name="param" description="data within which the object occurs, typically the start of a PDF document" type="string" variable="$source_string">
2170
  <type by_reference="false">string</type>
2171
  </tag>
2172
- <tag line="3919" name="param" description="filesize of the PDF document, for validation purposes, or zero (0) to ignore filesize" type="integer" variable="$filesize">
2173
  <type by_reference="false">integer</type>
2174
  </tag>
2175
- <tag line="3919" name="return" description="array of dictionary objects on success, false on failure" type="mixed">
2176
  <type by_reference="false">mixed</type>
2177
  </tag>
2178
  </docblock>
2179
- <argument line="3933">
2180
  <name>$source_string</name>
2181
  <default><![CDATA[]]></default>
2182
  <type/>
2183
  </argument>
2184
- <argument line="3933">
2185
  <name>$filesize</name>
2186
  <default><![CDATA[]]></default>
2187
  <type/>
2188
  </argument>
2189
  </method>
2190
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3958" package="Media Library Assistant">
2191
  <name>_parse_pdf_dictionary</name>
2192
  <full_name>_parse_pdf_dictionary</full_name>
2193
- <docblock line="3944">
2194
  <description><![CDATA[Parse a PDF dictionary object]]></description>
2195
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
2196
  indirect (object), name, array, dictionary, stream, and null.
2197
  The array also has a '/length' element containing the number of bytes occupied by the
2198
  dictionary in the source string, excluding the enclosing delimiters.</p>]]></long-description>
2199
- <tag line="3944" name="since" description="1.50"/>
2200
- <tag line="3944" name="param" description="data within which the string occurs" type="string" variable="$source_string">
2201
  <type by_reference="false">string</type>
2202
  </tag>
2203
- <tag line="3944" name="param" description="offset within the source string of the opening '&lt;&lt;' characters or the first content character." type="integer" variable="$offset">
2204
  <type by_reference="false">integer</type>
2205
  </tag>
2206
- <tag line="3944" name="return" description="( '/length' =&gt; length, key =&gt; array( 'type' =&gt; type, 'value' =&gt; value ) ) for each dictionary field" type="array">
2207
  <type by_reference="false">array</type>
2208
  </tag>
2209
  </docblock>
2210
- <argument line="3958">
2211
  <name>$source_string</name>
2212
  <default><![CDATA[]]></default>
2213
  <type/>
2214
  </argument>
2215
- <argument line="3958">
2216
  <name>$offset</name>
2217
  <default><![CDATA[]]></default>
2218
  <type/>
2219
  </argument>
2220
  </method>
2221
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4090" package="Media Library Assistant">
2222
  <name>_parse_xmp_metadata</name>
2223
  <full_name>_parse_xmp_metadata</full_name>
2224
- <docblock line="4076">
2225
  <description><![CDATA[Parse an XMP object]]></description>
2226
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
2227
  indirect (object), name, array, dictionary, stream, and null.
2228
  The array also has a '/length' element containing the number of bytes occupied by the
2229
  dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
2230
- <tag line="4076" name="since" description="1.50"/>
2231
- <tag line="4076" name="param" description="full path and file name" type="string" variable="$file_name">
2232
  <type by_reference="false">string</type>
2233
  </tag>
2234
- <tag line="4076" name="param" description="offset within the file of the search start point" type="integer" variable="$file_offset">
2235
  <type by_reference="false">integer</type>
2236
  </tag>
2237
- <tag line="4076" name="return" description="array of metadata values or NULL on failure" type="mixed">
2238
  <type by_reference="false">mixed</type>
2239
  </tag>
2240
  </docblock>
2241
- <argument line="4090">
2242
  <name>$file_name</name>
2243
  <default><![CDATA[]]></default>
2244
  <type/>
2245
  </argument>
2246
- <argument line="4090">
2247
  <name>$file_offset</name>
2248
  <default><![CDATA[]]></default>
2249
  <type/>
2250
  </argument>
2251
  </method>
2252
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4379" package="Media Library Assistant">
2253
  <name>_extract_pdf_trailer</name>
2254
  <full_name>_extract_pdf_trailer</full_name>
2255
- <docblock line="4369">
2256
  <description><![CDATA[Extract dictionary from traditional cross-reference + trailer documents]]></description>
2257
  <long-description><![CDATA[]]></long-description>
2258
- <tag line="4369" name="since" description="1.50"/>
2259
- <tag line="4369" name="param" description="full path to the desired file" type="string" variable="$file_name">
2260
  <type by_reference="false">string</type>
2261
  </tag>
2262
- <tag line="4369" name="param" description="offset within file of the cross-reference table" type="integer" variable="$file_offset">
2263
  <type by_reference="false">integer</type>
2264
  </tag>
2265
- <tag line="4369" name="return" description="array of &quot;PDF dictionary arrays&quot;, newest first, or NULL on failure" type="mixed">
2266
  <type by_reference="false">mixed</type>
2267
  </tag>
2268
  </docblock>
2269
- <argument line="4379">
2270
  <name>$file_name</name>
2271
  <default><![CDATA[]]></default>
2272
  <type/>
2273
  </argument>
2274
- <argument line="4379">
2275
  <name>$file_offset</name>
2276
  <default><![CDATA[]]></default>
2277
  <type/>
2278
  </argument>
2279
  </method>
2280
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4465" package="Media Library Assistant">
2281
  <name>_extract_pdf_metadata</name>
2282
  <full_name>_extract_pdf_metadata</full_name>
2283
- <docblock line="4456">
2284
  <description><![CDATA[Extract Metadata from a PDF file]]></description>
2285
  <long-description><![CDATA[]]></long-description>
2286
- <tag line="4456" name="since" description="1.50"/>
2287
- <tag line="4456" name="param" description="full path to the desired file" type="string" variable="$file_name">
2288
  <type by_reference="false">string</type>
2289
  </tag>
2290
- <tag line="4456" name="return" description="( key =&gt; value ) for each metadata field, in string format" type="array">
2291
  <type by_reference="false">array</type>
2292
  </tag>
2293
  </docblock>
2294
- <argument line="4465">
2295
  <name>$file_name</name>
2296
  <default><![CDATA[]]></default>
2297
  <type/>
2298
  </argument>
2299
  </method>
2300
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4598" package="Media Library Assistant">
2301
  <name>_bin_to_utf8</name>
2302
  <full_name>_bin_to_utf8</full_name>
2303
- <docblock line="4589">
2304
  <description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
2305
  <long-description><![CDATA[]]></long-description>
2306
- <tag line="4589" name="since" description="1.41"/>
2307
- <tag line="4589" name="param" description="unencoded string" type="string" variable="$string">
2308
  <type by_reference="false">string</type>
2309
  </tag>
2310
- <tag line="4589" name="return" description="UTF-8 encoded string" type="string">
2311
  <type by_reference="false">string</type>
2312
  </tag>
2313
  </docblock>
2314
- <argument line="4598">
2315
  <name>$string</name>
2316
  <default><![CDATA[]]></default>
2317
  <type/>
2318
  </argument>
2319
  </method>
2320
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4996" package="Media Library Assistant">
2321
  <name>mla_iptc_metadata_value</name>
2322
  <full_name>mla_iptc_metadata_value</full_name>
2323
- <docblock line="4986">
2324
  <description><![CDATA[Parse one IPTC metadata field]]></description>
2325
  <long-description><![CDATA[]]></long-description>
2326
- <tag line="4986" name="since" description="1.41"/>
2327
- <tag line="4986" name="param" description="field name - IPTC Identifier or friendly name/slug" type="string" variable="$iptc_key">
2328
  <type by_reference="false">string</type>
2329
  </tag>
2330
- <tag line="4986" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
2331
  <type by_reference="false">string</type>
2332
  </tag>
2333
- <tag line="4986" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
2334
  <type by_reference="false">mixed</type>
2335
  </tag>
2336
  </docblock>
2337
- <argument line="4996">
2338
  <name>$iptc_key</name>
2339
  <default><![CDATA[]]></default>
2340
  <type/>
2341
  </argument>
2342
- <argument line="4996">
2343
  <name>$item_metadata</name>
2344
  <default><![CDATA[]]></default>
2345
  <type/>
2346
  </argument>
2347
  </method>
2348
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5028" package="Media Library Assistant">
2349
  <name>mla_exif_metadata_value</name>
2350
  <full_name>mla_exif_metadata_value</full_name>
2351
- <docblock line="5016">
2352
  <description><![CDATA[Parse one EXIF metadata field]]></description>
2353
  <long-description><![CDATA[<p>Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
2354
- <tag line="5016" name="since" description="1.13"/>
2355
- <tag line="5016" name="param" description="field name" type="string" variable="$exif_key">
2356
  <type by_reference="false">string</type>
2357
  </tag>
2358
- <tag line="5016" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
2359
  <type by_reference="false">string</type>
2360
  </tag>
2361
- <tag line="5016" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
2362
  <type by_reference="false">mixed</type>
2363
  </tag>
2364
  </docblock>
2365
- <argument line="5028">
2366
  <name>$exif_key</name>
2367
  <default><![CDATA[]]></default>
2368
  <type/>
2369
  </argument>
2370
- <argument line="5028">
2371
  <name>$item_metadata</name>
2372
  <default><![CDATA[]]></default>
2373
  <type/>
2374
  </argument>
2375
  </method>
2376
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5089" package="Media Library Assistant">
2377
  <name>mla_pdf_metadata_value</name>
2378
  <full_name>mla_pdf_metadata_value</full_name>
2379
- <docblock line="5077">
2380
  <description><![CDATA[Parse one PDF metadata field]]></description>
2381
  <long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
2382
- <tag line="5077" name="since" description="1.50"/>
2383
- <tag line="5077" name="param" description="field name" type="string" variable="$pdf_key">
2384
  <type by_reference="false">string</type>
2385
  </tag>
2386
- <tag line="5077" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
2387
  <type by_reference="false">string</type>
2388
  </tag>
2389
- <tag line="5077" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
2390
  <type by_reference="false">mixed</type>
2391
  </tag>
2392
  </docblock>
2393
- <argument line="5089">
2394
  <name>$pdf_key</name>
2395
  <default><![CDATA[]]></default>
2396
  <type/>
2397
  </argument>
2398
- <argument line="5089">
2399
  <name>$item_metadata</name>
2400
  <default><![CDATA[]]></default>
2401
  <type/>
2402
  </argument>
2403
  </method>
2404
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="5131" package="Media Library Assistant">
2405
  <name>_rational_to_decimal</name>
2406
  <full_name>_rational_to_decimal</full_name>
2407
- <docblock line="5122">
2408
  <description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
2409
  <long-description><![CDATA[]]></long-description>
2410
- <tag line="5122" name="since" description="1.50"/>
2411
- <tag line="5122" name="param" description="array( 0 =&gt; numerator, 1 =&gt; denominator )" type="array" variable="$rational">
2412
  <type by_reference="false">array</type>
2413
  </tag>
2414
- <tag line="5122" name="return" description="numerator/denominator" type="float">
2415
  <type by_reference="false">float</type>
2416
  </tag>
2417
  </docblock>
2418
- <argument line="5131">
2419
  <name>$rational</name>
2420
  <default><![CDATA[]]></default>
2421
  <type/>
2422
  </argument>
2423
  </method>
2424
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5158" package="Media Library Assistant">
2425
  <name>mla_IPTC_EXIF_error_handler</name>
2426
  <full_name>mla_IPTC_EXIF_error_handler</full_name>
2427
- <docblock line="5146">
2428
  <description><![CDATA[Intercept IPTC and EXIF parse errors]]></description>
2429
  <long-description><![CDATA[]]></long-description>
2430
- <tag line="5146" name="since" description="1.81"/>
2431
- <tag line="5146" name="param" description="the level of the error raised" type="int" variable="$type">
2432
  <type by_reference="false">int</type>
2433
  </tag>
2434
- <tag line="5146" name="param" description="the error message" type="string" variable="$string">
2435
  <type by_reference="false">string</type>
2436
  </tag>
2437
- <tag line="5146" name="param" description="the filename that the error was raised in" type="string" variable="$file">
2438
  <type by_reference="false">string</type>
2439
  </tag>
2440
- <tag line="5146" name="param" description="the line number the error was raised at" type="int" variable="$line">
2441
  <type by_reference="false">int</type>
2442
  </tag>
2443
- <tag line="5146" name="return" description="true, to bypass PHP error handler" type="boolean">
2444
  <type by_reference="false">boolean</type>
2445
  </tag>
2446
  </docblock>
2447
- <argument line="5158">
2448
  <name>$type</name>
2449
  <default><![CDATA[]]></default>
2450
  <type/>
2451
  </argument>
2452
- <argument line="5158">
2453
  <name>$string</name>
2454
  <default><![CDATA[]]></default>
2455
  <type/>
2456
  </argument>
2457
- <argument line="5158">
2458
  <name>$file</name>
2459
  <default><![CDATA[]]></default>
2460
  <type/>
2461
  </argument>
2462
- <argument line="5158">
2463
  <name>$line</name>
2464
  <default><![CDATA[]]></default>
2465
  <type/>
2466
  </argument>
2467
  </method>
2468
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5196" package="Media Library Assistant">
2469
  <name>mla_fetch_attachment_image_metadata</name>
2470
  <full_name>mla_fetch_attachment_image_metadata</full_name>
2471
- <docblock line="5186">
2472
  <description><![CDATA[Fetch and filter IPTC and EXIF or PDF metadata for an image attachment]]></description>
2473
  <long-description><![CDATA[]]></long-description>
2474
- <tag line="5186" name="since" description="0.90"/>
2475
- <tag line="5186" name="param" description="post ID of attachment" type="int" variable="$post_id">
2476
  <type by_reference="false">int</type>
2477
  </tag>
2478
- <tag line="5186" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
2479
  <type by_reference="false">string</type>
2480
  </tag>
2481
- <tag line="5186" name="return" description="Meta data variables, IPTC and EXIF or PDF" type="array">
2482
  <type by_reference="false">array</type>
2483
  </tag>
2484
  </docblock>
2485
- <argument line="5196">
2486
  <name>$post_id</name>
2487
  <default><![CDATA[]]></default>
2488
  <type/>
2489
  </argument>
2490
- <argument line="5196">
2491
  <name>$path</name>
2492
  <default><![CDATA['']]></default>
2493
  <type/>
2494
  </argument>
2495
  </method>
2496
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5385" package="Media Library Assistant">
2497
  <name>mla_update_wp_attachment_metadata</name>
2498
  <full_name>mla_update_wp_attachment_metadata</full_name>
2499
- <docblock line="5375">
2500
  <description><![CDATA[Update "meta:" data for a single attachment]]></description>
2501
  <long-description><![CDATA[]]></long-description>
2502
- <tag line="5375" name="since" description="1.51"/>
2503
- <tag line="5375" name="param" description="The current wp_attachment_metadata value" type="array" variable="$current_values">
2504
  <type by_reference="false">array</type>
2505
  </tag>
2506
- <tag line="5375" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
2507
  <type by_reference="false">array</type>
2508
  </tag>
2509
- <tag line="5375" name="return" description="success/failure message(s); empty string if no changes." type="string">
2510
  <type by_reference="false">string</type>
2511
  </tag>
2512
  </docblock>
2513
- <argument line="5385">
2514
  <name>$current_values</name>
2515
  <default><![CDATA[]]></default>
2516
  <type/>
2517
  </argument>
2518
- <argument line="5385">
2519
  <name>$new_meta</name>
2520
  <default><![CDATA[]]></default>
2521
  <type/>
2522
  </argument>
2523
  </method>
2524
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5468" package="Media Library Assistant">
2525
  <name>mla_update_item_postmeta</name>
2526
  <full_name>mla_update_item_postmeta</full_name>
2527
- <docblock line="5458">
2528
  <description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
2529
  <long-description><![CDATA[]]></long-description>
2530
- <tag line="5458" name="since" description="1.40"/>
2531
- <tag line="5458" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
2532
  <type by_reference="false">int</type>
2533
  </tag>
2534
- <tag line="5458" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
2535
  <type by_reference="false">array</type>
2536
  </tag>
2537
- <tag line="5458" name="return" description="success/failure message(s)" type="string">
2538
  <type by_reference="false">string</type>
2539
  </tag>
2540
  </docblock>
2541
- <argument line="5468">
2542
  <name>$post_id</name>
2543
  <default><![CDATA[]]></default>
2544
  <type/>
2545
  </argument>
2546
- <argument line="5468">
2547
  <name>$new_meta</name>
2548
  <default><![CDATA[]]></default>
2549
  <type/>
2550
  </argument>
2551
  </method>
2552
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5635" package="Media Library Assistant">
2553
  <name>mla_update_single_item</name>
2554
  <full_name>mla_update_single_item</full_name>
2555
- <docblock line="5622">
2556
  <description><![CDATA[Update a single item; change the "post" data, taxonomy terms
2557
  and meta data for a single attachment]]></description>
2558
  <long-description><![CDATA[]]></long-description>
2559
- <tag line="5622" name="since" description="0.1"/>
2560
- <tag line="5622" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
2561
  <type by_reference="false">int</type>
2562
  </tag>
2563
- <tag line="5622" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
2564
  <type by_reference="false">array</type>
2565
  </tag>
2566
- <tag line="5622" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
2567
  <type by_reference="false">array</type>
2568
  </tag>
2569
- <tag line="5622" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
2570
  <type by_reference="false">array</type>
2571
  </tag>
2572
- <tag line="5622" name="return" description="success/failure message and NULL content" type="array">
2573
  <type by_reference="false">array</type>
2574
  </tag>
2575
  </docblock>
2576
- <argument line="5635">
2577
  <name>$post_id</name>
2578
  <default><![CDATA[]]></default>
2579
  <type/>
2580
  </argument>
2581
- <argument line="5635">
2582
  <name>$new_data</name>
2583
  <default><![CDATA[]]></default>
2584
  <type/>
2585
  </argument>
2586
- <argument line="5635">
2587
  <name>$tax_input</name>
2588
  <default><![CDATA[NULL]]></default>
2589
  <type/>
2590
  </argument>
2591
- <argument line="5635">
2592
  <name>$tax_actions</name>
2593
  <default><![CDATA[NULL]]></default>
2594
  <type/>
2595
  </argument>
2596
  </method>
2597
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="5911" package="Media Library Assistant">
2598
  <name>_remove_tags</name>
2599
  <full_name>_remove_tags</full_name>
2600
- <docblock line="5900">
2601
  <description><![CDATA[Remove tags from a term ids list]]></description>
2602
  <long-description><![CDATA[]]></long-description>
2603
- <tag line="5900" name="since" description="0.40"/>
2604
- <tag line="5900" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
2605
  <type by_reference="false">array</type>
2606
  </tag>
2607
- <tag line="5900" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
2608
  <type by_reference="false">array</type>
2609
  </tag>
2610
- <tag line="5900" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
2611
  <type by_reference="false">object</type>
2612
  </tag>
2613
- <tag line="5900" name="return" description="Term ids of the surviving tags" type="array">
2614
  <type by_reference="false">array</type>
2615
  </tag>
2616
  </docblock>
2617
- <argument line="5911">
2618
  <name>$terms_before</name>
2619
  <default><![CDATA[]]></default>
2620
  <type/>
2621
  </argument>
2622
- <argument line="5911">
2623
  <name>$tags</name>
2624
  <default><![CDATA[]]></default>
2625
  <type/>
2626
  </argument>
2627
- <argument line="5911">
2628
  <name>$taxonomy_obj</name>
2629
  <default><![CDATA[]]></default>
2630
  <type/>
2631
  </argument>
2632
  </method>
2633
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5960" package="Media Library Assistant">
2634
  <name>_hex_dump</name>
2635
  <full_name>_hex_dump</full_name>
2636
- <docblock line="5948">
2637
  <description><![CDATA[Format printable version of binary data]]></description>
2638
  <long-description><![CDATA[]]></long-description>
2639
- <tag line="5948" name="since" description="0.90"/>
2640
- <tag line="5948" name="param" description="Binary data" type="string" variable="$data">
2641
  <type by_reference="false">string</type>
2642
  </tag>
2643
- <tag line="5948" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
2644
  <type by_reference="false">integer</type>
2645
  </tag>
2646
- <tag line="5948" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
2647
  <type by_reference="false">\intger</type>
2648
  </tag>
2649
- <tag line="5948" name="param" description="offset of initial byte, or -1 to suppress printing offset information" type="integer" variable="$offset">
2650
  <type by_reference="false">integer</type>
2651
  </tag>
2652
- <tag line="5948" name="return" description="Printable representation of $data" type="string">
2653
  <type by_reference="false">string</type>
2654
  </tag>
2655
  </docblock>
2656
- <argument line="5960">
2657
  <name>$data</name>
2658
  <default><![CDATA[]]></default>
2659
  <type/>
2660
  </argument>
2661
- <argument line="5960">
2662
  <name>$limit</name>
2663
  <default><![CDATA[0]]></default>
2664
  <type/>
2665
  </argument>
2666
- <argument line="5960">
2667
  <name>$bytes_per_row</name>
2668
  <default><![CDATA[16]]></default>
2669
  <type/>
2670
  </argument>
2671
- <argument line="5960">
2672
  <name>$offset</name>
2673
  <default><![CDATA[-1]]></default>
2674
  <type/>
@@ -2676,7 +2707,7 @@ and meta data for a single attachment]]></description>
2676
  </method>
2677
  </class>
2678
  <markers>
2679
- <todo line="3819">encode the rest</todo>
2680
  </markers>
2681
  </file>
2682
  <file path="includes\class-mla-edit-media.php" hash="75c542ede2570895091b3ac839d4248b" package="Media Library Assistant">
@@ -3198,7 +3229,7 @@ Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-descri
3198
  </method>
3199
  </class>
3200
  </file>
3201
- <file path="includes\class-mla-list-table.php" hash="5f4f17dbf461359075364c2c27c0f791" package="Media Library Assistant">
3202
  <docblock line="2">
3203
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
3204
  <long-description><![CDATA[]]></long-description>
@@ -3218,7 +3249,7 @@ Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-descri
3218
  <tag line="16" name="package" description="Media Library Assistant"/>
3219
  <tag line="16" name="since" description="0.1"/>
3220
  </docblock>
3221
- <property final="false" static="false" visibility="private" line="38" namespace="global" package="Media Library Assistant">
3222
  <name>$rollover_id</name>
3223
  <default><![CDATA[0]]></default>
3224
  <docblock line="29">
@@ -3230,7 +3261,7 @@ Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-descri
3230
  </tag>
3231
  </docblock>
3232
  </property>
3233
- <property final="false" static="false" visibility="private" line="49" namespace="global" package="Media Library Assistant">
3234
  <name>$currently_hidden</name>
3235
  <default><![CDATA[array()]]></default>
3236
  <docblock line="40">
@@ -3242,7 +3273,7 @@ Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-descri
3242
  </tag>
3243
  </docblock>
3244
  </property>
3245
- <property final="false" static="true" visibility="private" line="73" namespace="global" package="Media Library Assistant">
3246
  <name>$default_columns</name>
3247
  <default><![CDATA[array()]]></default>
3248
  <docblock line="56">
@@ -3262,7 +3293,7 @@ bulk actions or checkboxes, simply leave the 'cb' entry out of your array.</p>
3262
  </tag>
3263
  </docblock>
3264
  </property>
3265
- <property final="false" static="true" visibility="private" line="91" namespace="global" package="Media Library Assistant">
3266
  <name>$default_hidden_columns</name>
3267
  <default><![CDATA[array('post_title', 'post_name', 'parent', 'menu_order', 'galleries', 'mla_galleries', 'alt_text', 'caption', 'description', 'post_mime_type', 'file_url', 'base_file', 'date', 'modified', 'author', 'attached_to')]]></default>
3268
  <docblock line="75">
@@ -3281,9 +3312,9 @@ MLA_List_Table::mla_admin_init_action.</p>]]></long-description>
3281
  </tag>
3282
  </docblock>
3283
  </property>
3284
- <property final="false" static="true" visibility="private" line="134" namespace="global" package="Media Library Assistant">
3285
  <name>$default_sortable_columns</name>
3286
- <default><![CDATA[array('ID_parent' => array('ID', false), 'title_name' => array('title_name', false), 'post_title' => array('post_title', false), 'post_name' => array('post_name', false), 'parent' => array('post_parent', false), 'menu_order' => array('menu_order', false), 'alt_text' => array('_wp_attachment_image_alt', false), 'caption' => array('post_excerpt', false), 'description' => array('post_content', false), 'post_mime_type' => array('post_mime_type', false), 'file_url' => array('guid', false), 'base_file' => array('_wp_attached_file', false), 'date' => array('post_date', false), 'modified' => array('post_modified', false), 'author' => array('post_author', false), 'attached_to' => array('post_parent', false))]]></default>
3287
  <docblock line="116">
3288
  <description><![CDATA[Sortable column definitions]]></description>
3289
  <long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
@@ -3291,8 +3322,8 @@ is the column slug that needs to be sortable, and the value is database column
3291
  to sort by. Often, the key and value will be the same, but this is not always
3292
  the case (as the value is a column name from the database, not the list table).</p>
3293
 
3294
- <p>The array value also contains a boolean which is 'true' if the data is currently
3295
- sorted by that column. This is computed each time the table is displayed.</p>
3296
 
3297
  <p>Taxonomy and custom field columns are added to this array by
3298
  MLA_List_Table::mla_admin_init_action.</p>]]></long-description>
@@ -3302,977 +3333,964 @@ MLA_List_Table::mla_admin_init_action.</p>]]></long-description>
3302
  </tag>
3303
  </docblock>
3304
  </property>
3305
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="166" package="Media Library Assistant">
3306
- <name>_default_hidden_columns</name>
3307
- <full_name>_default_hidden_columns</full_name>
3308
- <docblock line="159">
3309
- <description><![CDATA[Access the default list of hidden columns]]></description>
3310
- <long-description><![CDATA[]]></long-description>
3311
- <tag line="159" name="since" description="0.1"/>
3312
- <tag line="159" name="return" description="default list of hidden columns" type="array">
3313
- <type by_reference="false">array</type>
3314
- </tag>
3315
- </docblock>
3316
- </method>
3317
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="182" package="Media Library Assistant">
3318
  <name>_avail_mime_types</name>
3319
  <full_name>_avail_mime_types</full_name>
3320
- <docblock line="170">
3321
  <description><![CDATA[Get MIME types with one or more attachments for view preparation]]></description>
3322
  <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
3323
  but uses the output of wp_count_attachments() as input.</p>]]></long-description>
3324
- <tag line="170" name="since" description="0.1"/>
3325
- <tag line="170" name="param" description="Number of posts for each MIME type" type="array" variable="$num_posts">
3326
  <type by_reference="false">array</type>
3327
  </tag>
3328
- <tag line="170" name="return" description="Mime type names" type="array">
3329
  <type by_reference="false">array</type>
3330
  </tag>
3331
  </docblock>
3332
- <argument line="182">
3333
  <name>$num_posts</name>
3334
  <default><![CDATA[]]></default>
3335
  <type/>
3336
  </argument>
3337
  </method>
3338
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="203" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
3339
  <name>mla_get_taxonomy_filter_dropdown</name>
3340
  <full_name>mla_get_taxonomy_filter_dropdown</full_name>
3341
- <docblock line="194">
3342
  <description><![CDATA[Get dropdown box of terms to filter by, if available]]></description>
3343
  <long-description><![CDATA[]]></long-description>
3344
- <tag line="194" name="since" description="1.20"/>
3345
- <tag line="194" name="param" description="currently selected term_id || zero (default)" type="integer" variable="$selected">
3346
  <type by_reference="false">integer</type>
3347
  </tag>
3348
- <tag line="194" name="return" description="HTML markup for dropdown box" type="string">
3349
  <type by_reference="false">string</type>
3350
  </tag>
3351
  </docblock>
3352
- <argument line="203">
3353
  <name>$selected</name>
3354
  <default><![CDATA[0]]></default>
3355
  <type/>
3356
  </argument>
3357
  </method>
3358
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="248" package="Media Library Assistant">
3359
  <name>mla_get_sortable_columns</name>
3360
  <full_name>mla_get_sortable_columns</full_name>
3361
- <docblock line="241">
3362
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
3363
  <long-description><![CDATA[]]></long-description>
3364
- <tag line="241" name="since" description="0.30"/>
3365
- <tag line="241" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
3366
  <type by_reference="false">array</type>
3367
  </tag>
3368
  </docblock>
3369
  </method>
3370
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="274" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3371
  <name>mla_manage_hidden_columns_filter</name>
3372
  <full_name>mla_manage_hidden_columns_filter</full_name>
3373
- <docblock line="259">
3374
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
3375
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
3376
  the get_user_option result. Set when the file is loaded because the object
3377
  is not created in time for the call from screen.php.</p>]]></long-description>
3378
- <tag line="259" name="since" description="0.1"/>
3379
- <tag line="259" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
3380
  <type by_reference="false">string</type>
3381
  </tag>
3382
- <tag line="259" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
3383
  <type by_reference="false">string</type>
3384
  </tag>
3385
- <tag line="259" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
3386
  <type by_reference="false">object</type>
3387
  </tag>
3388
- <tag line="259" name="return" description="updated list of hidden columns" type="array">
3389
  <type by_reference="false">array</type>
3390
  </tag>
3391
  </docblock>
3392
- <argument line="274">
3393
  <name>$result</name>
3394
  <default><![CDATA[]]></default>
3395
  <type/>
3396
  </argument>
3397
- <argument line="274">
3398
  <name>$option</name>
3399
  <default><![CDATA[]]></default>
3400
  <type/>
3401
  </argument>
3402
- <argument line="274">
3403
  <name>$user_data</name>
3404
  <default><![CDATA[]]></default>
3405
  <type/>
3406
  </argument>
3407
  </method>
3408
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="293" package="Media Library Assistant">
3409
  <name>mla_manage_columns_filter</name>
3410
  <full_name>mla_manage_columns_filter</full_name>
3411
- <docblock line="282">
3412
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
3413
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
3414
  file is loaded because the list_table object isn't created in time
3415
  to affect the "screen options" setup.</p>]]></long-description>
3416
- <tag line="282" name="since" description="0.1"/>
3417
- <tag line="282" name="return" description="list of table columns" type="array">
3418
  <type by_reference="false">array</type>
3419
  </tag>
3420
  </docblock>
3421
  </method>
3422
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="310" package="Media Library Assistant">
3423
  <name>mla_views_media_page_mla_menu_filter</name>
3424
  <full_name>mla_views_media_page_mla_menu_filter</full_name>
3425
- <docblock line="297">
3426
  <description><![CDATA[Handler for filter "views_{$this->screen->id}" in /admin/includes/class-wp-list-table.php]]></description>
3427
  <long-description><![CDATA[<p>Filter the list of available list table views. Set when the
3428
  file is loaded because the list_table object isn't created in time
3429
  to affect the "screen options" setup.</p>]]></long-description>
3430
- <tag line="297" name="since" description="1.82"/>
3431
- <tag line="297" name="param" description="A list of available list table views" type="array" variable="$views">
3432
  <type by_reference="false">array</type>
3433
  </tag>
3434
- <tag line="297" name="return" description="Updated list of available list table views" type="array">
3435
  <type by_reference="false">array</type>
3436
  </tag>
3437
  </docblock>
3438
- <argument line="310">
3439
  <name>$views</name>
3440
  <default><![CDATA[]]></default>
3441
  <type/>
3442
  </argument>
3443
  </method>
3444
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="331" package="Media Library Assistant">
3445
  <name>mla_wpml_media_view_upload_count_filter</name>
3446
  <full_name>mla_wpml_media_view_upload_count_filter</full_name>
3447
- <docblock line="316">
3448
  <description><![CDATA[Handler for filter "wpml-media_view-upload-count" in /plugins/wpml-media/inc/wpml-media.class.php]]></description>
3449
  <long-description><![CDATA[<p>Computes the number of attachments that satisfy a meta_query specification.
3450
  The count is automatically made language-specific by WPML filters.</p>]]></long-description>
3451
- <tag line="316" name="since" description="1.90"/>
3452
- <tag line="316" name="param" description="default return value if not replacing count" type="NULL" variable="$count">
3453
  <type by_reference="false">NULL</type>
3454
  </tag>
3455
- <tag line="316" name="param" description="key/slug value for the selected view" type="string" variable="$key">
3456
  <type by_reference="false">string</type>
3457
  </tag>
3458
- <tag line="316" name="param" description="HTML &lt;a&gt;&lt;/a&gt; tag for the link to the selected view" type="string" variable="$view">
3459
  <type by_reference="false">string</type>
3460
  </tag>
3461
- <tag line="316" name="param" description="language code, e.g., 'en', 'es'" type="string" variable="$lang">
3462
  <type by_reference="false">string</type>
3463
  </tag>
3464
- <tag line="316" name="return" description="NULL to allow SQL query or replacement count value" type="mixed">
3465
  <type by_reference="false">mixed</type>
3466
  </tag>
3467
  </docblock>
3468
- <argument line="331">
3469
  <name>$count</name>
3470
  <default><![CDATA[]]></default>
3471
  <type/>
3472
  </argument>
3473
- <argument line="331">
3474
  <name>$key</name>
3475
  <default><![CDATA[]]></default>
3476
  <type/>
3477
  </argument>
3478
- <argument line="331">
3479
  <name>$view</name>
3480
  <default><![CDATA[]]></default>
3481
  <type/>
3482
  </argument>
3483
- <argument line="331">
3484
  <name>$lang</name>
3485
  <default><![CDATA[]]></default>
3486
  <type/>
3487
  </argument>
3488
  </method>
3489
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="363" package="Media Library Assistant">
3490
  <name>mla_wpml_media_view_upload_page_count_filter</name>
3491
  <full_name>mla_wpml_media_view_upload_page_count_filter</full_name>
3492
- <docblock line="350">
3493
  <description><![CDATA[Handler for filter "wpml-media_view-upload-page-count" in /plugins/wpml-media/inc/wpml-media.class.php]]></description>
3494
  <long-description><![CDATA[<p>Computes the number of language-specific attachments that satisfy a meta_query specification.
3495
  The count is made language-specific by WPML filters when the current_language is set.</p>]]></long-description>
3496
- <tag line="350" name="since" description="1.90"/>
3497
- <tag line="350" name="param" description="default return value if not replacing count" type="NULL" variable="$count">
3498
  <type by_reference="false">NULL</type>
3499
  </tag>
3500
- <tag line="350" name="param" description="language code, e.g., 'en', 'es'" type="string" variable="$lang">
3501
  <type by_reference="false">string</type>
3502
  </tag>
3503
- <tag line="350" name="return" description="NULL to allow SQL query or replacement count value" type="mixed">
3504
  <type by_reference="false">mixed</type>
3505
  </tag>
3506
  </docblock>
3507
- <argument line="363">
3508
  <name>$count</name>
3509
  <default><![CDATA[]]></default>
3510
  <type/>
3511
  </argument>
3512
- <argument line="363">
3513
  <name>$lang</name>
3514
  <default><![CDATA[]]></default>
3515
  <type/>
3516
  </argument>
3517
  </method>
3518
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="392" package="Media Library Assistant">
3519
- <name>mla_localize_default_columns_array</name>
3520
- <full_name>mla_localize_default_columns_array</full_name>
3521
- <docblock line="382">
3522
- <description><![CDATA[Builds the $default_columns array with translated source texts.]]></description>
3523
- <long-description><![CDATA[<p>Called from MLA:mla_plugins_loaded_action because the $default_columns information might be
3524
- accessed from "front end" posts/pages.</p>]]></long-description>
3525
- <tag line="382" name="since" description="1.71"/>
3526
- <tag line="382" name="return" description="" type="void">
3527
- <type by_reference="false">void</type>
3528
- </tag>
3529
- </docblock>
3530
- </method>
3531
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="433" package="Media Library Assistant">
3532
  <name>mla_admin_init_action</name>
3533
  <full_name>mla_admin_init_action</full_name>
3534
- <docblock line="423">
3535
  <description><![CDATA[Adds support for taxonomy and custom field columns]]></description>
3536
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
3537
  created in time to affect the "screen options" setup.</p>]]></long-description>
3538
- <tag line="423" name="since" description="0.30"/>
3539
- <tag line="423" name="return" description="" type="void">
3540
  <type by_reference="false">void</type>
3541
  </tag>
3542
  </docblock>
3543
  </method>
3544
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="458" package="Media Library Assistant">
3545
  <name>__construct</name>
3546
  <full_name>__construct</full_name>
3547
- <docblock line="450">
3548
  <description><![CDATA[Initializes some properties from $_REQUEST variables, then
3549
  calls the parent constructor to set some default configs.]]></description>
3550
  <long-description><![CDATA[]]></long-description>
3551
- <tag line="450" name="since" description="0.1"/>
3552
- <tag line="450" name="return" description="" type="void">
3553
  <type by_reference="false">void</type>
3554
  </tag>
3555
  </docblock>
3556
  </method>
3557
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="502" package="Media Library Assistant">
3558
  <name>column_default</name>
3559
  <full_name>column_default</full_name>
3560
- <docblock line="489">
3561
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
3562
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a given column.
3563
  The taxonomy and custom field columns are handled here. All other columns should have
3564
  a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
3565
- <tag line="489" name="since" description="0.1"/>
3566
- <tag line="489" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
3567
  <type by_reference="false">array</type>
3568
  </tag>
3569
- <tag line="489" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
3570
  <type by_reference="false">array</type>
3571
  </tag>
3572
- <tag line="489" name="return" description="Text or HTML to be placed inside the column" type="string">
3573
  <type by_reference="false">string</type>
3574
  </tag>
3575
  </docblock>
3576
- <argument line="502">
3577
  <name>$item</name>
3578
  <default><![CDATA[]]></default>
3579
  <type/>
3580
  </argument>
3581
- <argument line="502">
3582
  <name>$column_name</name>
3583
  <default><![CDATA[]]></default>
3584
  <type/>
3585
  </argument>
3586
  </method>
3587
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="578" package="Media Library Assistant">
3588
  <name>column_cb</name>
3589
  <full_name>column_cb</full_name>
3590
- <docblock line="569">
3591
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
3592
  <long-description><![CDATA[<p>The 'cb' column
3593
  is given special treatment when columns are processed.</p>]]></long-description>
3594
- <tag line="569" name="since" description="0.1"/>
3595
- <tag line="569" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3596
  <type by_reference="false">array</type>
3597
  </tag>
3598
- <tag line="569" name="return" description="HTML markup to be placed inside the column" type="string">
3599
  <type by_reference="false">string</type>
3600
  </tag>
3601
  </docblock>
3602
- <argument line="578">
3603
  <name>$item</name>
3604
  <default><![CDATA[]]></default>
3605
  <type/>
3606
  </argument>
3607
  </method>
3608
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="593" package="Media Library Assistant">
3609
  <name>column_icon</name>
3610
  <full_name>column_icon</full_name>
3611
- <docblock line="585">
3612
  <description><![CDATA[Supply the content for a custom column]]></description>
3613
  <long-description><![CDATA[]]></long-description>
3614
- <tag line="585" name="since" description="0.1"/>
3615
- <tag line="585" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3616
  <type by_reference="false">array</type>
3617
  </tag>
3618
- <tag line="585" name="return" description="HTML markup to be placed inside the column" type="string">
3619
  <type by_reference="false">string</type>
3620
  </tag>
3621
  </docblock>
3622
- <argument line="593">
3623
  <name>$item</name>
3624
  <default><![CDATA[]]></default>
3625
  <type/>
3626
  </argument>
3627
  </method>
3628
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="645" package="Media Library Assistant">
3629
  <name>_build_rollover_actions</name>
3630
  <full_name>_build_rollover_actions</full_name>
3631
- <docblock line="634">
3632
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
3633
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
3634
  <long-description><![CDATA[]]></long-description>
3635
- <tag line="634" name="since" description="0.1"/>
3636
- <tag line="634" name="param" description="A singular attachment (post) object" type="object" variable="$item">
3637
  <type by_reference="false">object</type>
3638
  </tag>
3639
- <tag line="634" name="param" description="Current column name" type="string" variable="$column">
3640
  <type by_reference="false">string</type>
3641
  </tag>
3642
- <tag line="634" name="return" description="Names and URLs of row-level actions" type="array">
3643
  <type by_reference="false">array</type>
3644
  </tag>
3645
  </docblock>
3646
- <argument line="645">
3647
  <name>$item</name>
3648
  <default><![CDATA[]]></default>
3649
  <type/>
3650
  </argument>
3651
- <argument line="645">
3652
  <name>$column</name>
3653
  <default><![CDATA[]]></default>
3654
  <type/>
3655
  </argument>
3656
  </method>
3657
- <method final="false" abstract="false" static="false" visibility="private" namespace="global" line="719" package="Media Library Assistant">
3658
  <name>_build_inline_data</name>
3659
  <full_name>_build_inline_data</full_name>
3660
- <docblock line="710">
3661
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
3662
  <long-description><![CDATA[]]></long-description>
3663
- <tag line="710" name="since" description="0.20"/>
3664
- <tag line="710" name="param" description="A singular attachment (post) object" type="object" variable="$item">
3665
  <type by_reference="false">object</type>
3666
  </tag>
3667
- <tag line="710" name="return" description="HTML &lt;div&gt; with row data" type="string">
3668
  <type by_reference="false">string</type>
3669
  </tag>
3670
  </docblock>
3671
- <argument line="719">
3672
  <name>$item</name>
3673
  <default><![CDATA[]]></default>
3674
  <type/>
3675
  </argument>
3676
  </method>
3677
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="805" package="Media Library Assistant">
3678
  <name>column_ID_parent</name>
3679
  <full_name>column_ID_parent</full_name>
3680
- <docblock line="797">
3681
  <description><![CDATA[Supply the content for a custom column]]></description>
3682
  <long-description><![CDATA[]]></long-description>
3683
- <tag line="797" name="since" description="0.1"/>
3684
- <tag line="797" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3685
  <type by_reference="false">array</type>
3686
  </tag>
3687
- <tag line="797" name="return" description="HTML markup to be placed inside the column" type="string">
3688
  <type by_reference="false">string</type>
3689
  </tag>
3690
  </docblock>
3691
- <argument line="805">
3692
  <name>$item</name>
3693
  <default><![CDATA[]]></default>
3694
  <type/>
3695
  </argument>
3696
  </method>
3697
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="838" package="Media Library Assistant">
3698
  <name>column_title_name</name>
3699
  <full_name>column_title_name</full_name>
3700
- <docblock line="830">
3701
  <description><![CDATA[Supply the content for a custom column]]></description>
3702
  <long-description><![CDATA[]]></long-description>
3703
- <tag line="830" name="since" description="0.1"/>
3704
- <tag line="830" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3705
  <type by_reference="false">array</type>
3706
  </tag>
3707
- <tag line="830" name="return" description="HTML markup to be placed inside the column" type="string">
3708
  <type by_reference="false">string</type>
3709
  </tag>
3710
  </docblock>
3711
- <argument line="838">
3712
  <name>$item</name>
3713
  <default><![CDATA[]]></default>
3714
  <type/>
3715
  </argument>
3716
  </method>
3717
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="862" package="Media Library Assistant">
3718
  <name>column_post_title</name>
3719
  <full_name>column_post_title</full_name>
3720
- <docblock line="854">
3721
  <description><![CDATA[Supply the content for a custom column]]></description>
3722
  <long-description><![CDATA[]]></long-description>
3723
- <tag line="854" name="since" description="0.1"/>
3724
- <tag line="854" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3725
  <type by_reference="false">array</type>
3726
  </tag>
3727
- <tag line="854" name="return" description="HTML markup to be placed inside the column" type="string">
3728
  <type by_reference="false">string</type>
3729
  </tag>
3730
  </docblock>
3731
- <argument line="862">
3732
  <name>$item</name>
3733
  <default><![CDATA[]]></default>
3734
  <type/>
3735
  </argument>
3736
  </method>
3737
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="880" package="Media Library Assistant">
3738
  <name>column_post_name</name>
3739
  <full_name>column_post_name</full_name>
3740
- <docblock line="872">
3741
  <description><![CDATA[Supply the content for a custom column]]></description>
3742
  <long-description><![CDATA[]]></long-description>
3743
- <tag line="872" name="since" description="0.1"/>
3744
- <tag line="872" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3745
  <type by_reference="false">array</type>
3746
  </tag>
3747
- <tag line="872" name="return" description="HTML markup to be placed inside the column" type="string">
3748
  <type by_reference="false">string</type>
3749
  </tag>
3750
  </docblock>
3751
- <argument line="880">
3752
  <name>$item</name>
3753
  <default><![CDATA[]]></default>
3754
  <type/>
3755
  </argument>
3756
  </method>
3757
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="898" package="Media Library Assistant">
3758
  <name>column_parent</name>
3759
  <full_name>column_parent</full_name>
3760
- <docblock line="890">
3761
  <description><![CDATA[Supply the content for a custom column]]></description>
3762
  <long-description><![CDATA[]]></long-description>
3763
- <tag line="890" name="since" description="0.1"/>
3764
- <tag line="890" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3765
  <type by_reference="false">array</type>
3766
  </tag>
3767
- <tag line="890" name="return" description="HTML markup to be placed inside the column" type="string">
3768
  <type by_reference="false">string</type>
3769
  </tag>
3770
  </docblock>
3771
- <argument line="898">
3772
  <name>$item</name>
3773
  <default><![CDATA[]]></default>
3774
  <type/>
3775
  </argument>
3776
  </method>
3777
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="924" package="Media Library Assistant">
3778
  <name>column_menu_order</name>
3779
  <full_name>column_menu_order</full_name>
3780
- <docblock line="916">
3781
  <description><![CDATA[Supply the content for a custom column]]></description>
3782
  <long-description><![CDATA[]]></long-description>
3783
- <tag line="916" name="since" description="0.60"/>
3784
- <tag line="916" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3785
  <type by_reference="false">array</type>
3786
  </tag>
3787
- <tag line="916" name="return" description="HTML markup to be placed inside the column" type="string">
3788
  <type by_reference="false">string</type>
3789
  </tag>
3790
  </docblock>
3791
- <argument line="924">
3792
  <name>$item</name>
3793
  <default><![CDATA[]]></default>
3794
  <type/>
3795
  </argument>
3796
  </method>
3797
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="936" package="Media Library Assistant">
3798
  <name>column_featured</name>
3799
  <full_name>column_featured</full_name>
3800
- <docblock line="928">
3801
  <description><![CDATA[Supply the content for a custom column]]></description>
3802
  <long-description><![CDATA[]]></long-description>
3803
- <tag line="928" name="since" description="0.1"/>
3804
- <tag line="928" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3805
  <type by_reference="false">array</type>
3806
  </tag>
3807
- <tag line="928" name="return" description="HTML markup to be placed inside the column" type="string">
3808
  <type by_reference="false">string</type>
3809
  </tag>
3810
  </docblock>
3811
- <argument line="936">
3812
  <name>$item</name>
3813
  <default><![CDATA[]]></default>
3814
  <type/>
3815
  </argument>
3816
  </method>
3817
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="970" package="Media Library Assistant">
3818
  <name>column_inserted</name>
3819
  <full_name>column_inserted</full_name>
3820
- <docblock line="962">
3821
  <description><![CDATA[Supply the content for a custom column]]></description>
3822
  <long-description><![CDATA[]]></long-description>
3823
- <tag line="962" name="since" description="0.1"/>
3824
- <tag line="962" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3825
  <type by_reference="false">array</type>
3826
  </tag>
3827
- <tag line="962" name="return" description="HTML markup to be placed inside the column" type="string">
3828
  <type by_reference="false">string</type>
3829
  </tag>
3830
  </docblock>
3831
- <argument line="970">
3832
  <name>$item</name>
3833
  <default><![CDATA[]]></default>
3834
  <type/>
3835
  </argument>
3836
  </method>
3837
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1008" package="Media Library Assistant">
3838
  <name>column_galleries</name>
3839
  <full_name>column_galleries</full_name>
3840
- <docblock line="1000">
3841
  <description><![CDATA[Supply the content for a custom column]]></description>
3842
  <long-description><![CDATA[]]></long-description>
3843
- <tag line="1000" name="since" description="0.70"/>
3844
- <tag line="1000" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3845
  <type by_reference="false">array</type>
3846
  </tag>
3847
- <tag line="1000" name="return" description="HTML markup to be placed inside the column" type="string">
3848
  <type by_reference="false">string</type>
3849
  </tag>
3850
  </docblock>
3851
- <argument line="1008">
3852
  <name>$item</name>
3853
  <default><![CDATA[]]></default>
3854
  <type/>
3855
  </argument>
3856
  </method>
3857
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1042" package="Media Library Assistant">
3858
  <name>column_mla_galleries</name>
3859
  <full_name>column_mla_galleries</full_name>
3860
- <docblock line="1034">
3861
  <description><![CDATA[Supply the content for a custom column]]></description>
3862
  <long-description><![CDATA[]]></long-description>
3863
- <tag line="1034" name="since" description="0.70"/>
3864
- <tag line="1034" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3865
  <type by_reference="false">array</type>
3866
  </tag>
3867
- <tag line="1034" name="return" description="HTML markup to be placed inside the column" type="string">
3868
  <type by_reference="false">string</type>
3869
  </tag>
3870
  </docblock>
3871
- <argument line="1042">
3872
  <name>$item</name>
3873
  <default><![CDATA[]]></default>
3874
  <type/>
3875
  </argument>
3876
  </method>
3877
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1076" package="Media Library Assistant">
3878
  <name>column_alt_text</name>
3879
  <full_name>column_alt_text</full_name>
3880
- <docblock line="1068">
3881
  <description><![CDATA[Supply the content for a custom column]]></description>
3882
  <long-description><![CDATA[]]></long-description>
3883
- <tag line="1068" name="since" description="0.1"/>
3884
- <tag line="1068" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3885
  <type by_reference="false">array</type>
3886
  </tag>
3887
- <tag line="1068" name="return" description="HTML markup to be placed inside the column" type="string">
3888
  <type by_reference="false">string</type>
3889
  </tag>
3890
  </docblock>
3891
- <argument line="1076">
3892
  <name>$item</name>
3893
  <default><![CDATA[]]></default>
3894
  <type/>
3895
  </argument>
3896
  </method>
3897
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1103" package="Media Library Assistant">
3898
  <name>column_caption</name>
3899
  <full_name>column_caption</full_name>
3900
- <docblock line="1095">
3901
  <description><![CDATA[Supply the content for a custom column]]></description>
3902
  <long-description><![CDATA[]]></long-description>
3903
- <tag line="1095" name="since" description="0.1"/>
3904
- <tag line="1095" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3905
  <type by_reference="false">array</type>
3906
  </tag>
3907
- <tag line="1095" name="return" description="HTML markup to be placed inside the column" type="string">
3908
  <type by_reference="false">string</type>
3909
  </tag>
3910
  </docblock>
3911
- <argument line="1103">
3912
  <name>$item</name>
3913
  <default><![CDATA[]]></default>
3914
  <type/>
3915
  </argument>
3916
  </method>
3917
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1115" package="Media Library Assistant">
3918
  <name>column_description</name>
3919
  <full_name>column_description</full_name>
3920
- <docblock line="1107">
3921
  <description><![CDATA[Supply the content for a custom column]]></description>
3922
  <long-description><![CDATA[]]></long-description>
3923
- <tag line="1107" name="since" description="0.1"/>
3924
- <tag line="1107" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3925
  <type by_reference="false">array</type>
3926
  </tag>
3927
- <tag line="1107" name="return" description="HTML markup to be placed inside the column" type="string">
3928
  <type by_reference="false">string</type>
3929
  </tag>
3930
  </docblock>
3931
- <argument line="1115">
3932
  <name>$item</name>
3933
  <default><![CDATA[]]></default>
3934
  <type/>
3935
  </argument>
3936
  </method>
3937
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1127" package="Media Library Assistant">
3938
  <name>column_post_mime_type</name>
3939
  <full_name>column_post_mime_type</full_name>
3940
- <docblock line="1119">
3941
  <description><![CDATA[Supply the content for a custom column]]></description>
3942
  <long-description><![CDATA[]]></long-description>
3943
- <tag line="1119" name="since" description="0.30"/>
3944
- <tag line="1119" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3945
  <type by_reference="false">array</type>
3946
  </tag>
3947
- <tag line="1119" name="return" description="HTML markup to be placed inside the column" type="string">
3948
  <type by_reference="false">string</type>
3949
  </tag>
3950
  </docblock>
3951
- <argument line="1127">
3952
  <name>$item</name>
3953
  <default><![CDATA[]]></default>
3954
  <type/>
3955
  </argument>
3956
  </method>
3957
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1143" package="Media Library Assistant">
3958
  <name>column_file_url</name>
3959
  <full_name>column_file_url</full_name>
3960
- <docblock line="1135">
3961
  <description><![CDATA[Supply the content for a custom column]]></description>
3962
  <long-description><![CDATA[]]></long-description>
3963
- <tag line="1135" name="since" description="0.1"/>
3964
- <tag line="1135" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3965
  <type by_reference="false">array</type>
3966
  </tag>
3967
- <tag line="1135" name="return" description="HTML markup to be placed inside the column" type="string">
3968
  <type by_reference="false">string</type>
3969
  </tag>
3970
  </docblock>
3971
- <argument line="1143">
3972
  <name>$item</name>
3973
  <default><![CDATA[]]></default>
3974
  <type/>
3975
  </argument>
3976
  </method>
3977
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1157" package="Media Library Assistant">
3978
  <name>column_base_file</name>
3979
  <full_name>column_base_file</full_name>
3980
- <docblock line="1149">
3981
  <description><![CDATA[Supply the content for a custom column]]></description>
3982
  <long-description><![CDATA[]]></long-description>
3983
- <tag line="1149" name="since" description="0.1"/>
3984
- <tag line="1149" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3985
  <type by_reference="false">array</type>
3986
  </tag>
3987
- <tag line="1149" name="return" description="HTML markup to be placed inside the column" type="string">
3988
  <type by_reference="false">string</type>
3989
  </tag>
3990
  </docblock>
3991
- <argument line="1157">
3992
  <name>$item</name>
3993
  <default><![CDATA[]]></default>
3994
  <type/>
3995
  </argument>
3996
  </method>
3997
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1169" package="Media Library Assistant">
3998
  <name>column_date</name>
3999
  <full_name>column_date</full_name>
4000
- <docblock line="1161">
4001
  <description><![CDATA[Supply the content for a custom column]]></description>
4002
  <long-description><![CDATA[]]></long-description>
4003
- <tag line="1161" name="since" description="0.1"/>
4004
- <tag line="1161" name="param" description="A singular attachment (post) object" type="array" variable="$item">
4005
  <type by_reference="false">array</type>
4006
  </tag>
4007
- <tag line="1161" name="return" description="HTML markup to be placed inside the column" type="string">
4008
  <type by_reference="false">string</type>
4009
  </tag>
4010
  </docblock>
4011
- <argument line="1169">
4012
  <name>$item</name>
4013
  <default><![CDATA[]]></default>
4014
  <type/>
4015
  </argument>
4016
  </method>
4017
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1201" package="Media Library Assistant">
4018
  <name>column_modified</name>
4019
  <full_name>column_modified</full_name>
4020
- <docblock line="1193">
4021
  <description><![CDATA[Supply the content for a custom column]]></description>
4022
  <long-description><![CDATA[]]></long-description>
4023
- <tag line="1193" name="since" description="0.30"/>
4024
- <tag line="1193" name="param" description="A singular attachment (post) object" type="array" variable="$item">
4025
  <type by_reference="false">array</type>
4026
  </tag>
4027
- <tag line="1193" name="return" description="HTML markup to be placed inside the column" type="string">
4028
  <type by_reference="false">string</type>
4029
  </tag>
4030
  </docblock>
4031
- <argument line="1201">
4032
  <name>$item</name>
4033
  <default><![CDATA[]]></default>
4034
  <type/>
4035
  </argument>
4036
  </method>
4037
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1230" package="Media Library Assistant">
4038
  <name>column_author</name>
4039
  <full_name>column_author</full_name>
4040
- <docblock line="1222">
4041
  <description><![CDATA[Supply the content for a custom column]]></description>
4042
  <long-description><![CDATA[]]></long-description>
4043
- <tag line="1222" name="since" description="0.30"/>
4044
- <tag line="1222" name="param" description="A singular attachment (post) object" type="array" variable="$item">
4045
  <type by_reference="false">array</type>
4046
  </tag>
4047
- <tag line="1222" name="return" description="HTML markup to be placed inside the column" type="string">
4048
  <type by_reference="false">string</type>
4049
  </tag>
4050
  </docblock>
4051
- <argument line="1230">
4052
  <name>$item</name>
4053
  <default><![CDATA[]]></default>
4054
  <type/>
4055
  </argument>
4056
  </method>
4057
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1252" package="Media Library Assistant">
4058
  <name>column_attached_to</name>
4059
  <full_name>column_attached_to</full_name>
4060
- <docblock line="1244">
4061
  <description><![CDATA[Supply the content for a custom column]]></description>
4062
  <long-description><![CDATA[]]></long-description>
4063
- <tag line="1244" name="since" description="0.1"/>
4064
- <tag line="1244" name="param" description="A singular attachment (post) object" type="array" variable="$item">
4065
  <type by_reference="false">array</type>
4066
  </tag>
4067
- <tag line="1244" name="return" description="HTML markup to be placed inside the column" type="string">
4068
  <type by_reference="false">string</type>
4069
  </tag>
4070
  </docblock>
4071
- <argument line="1252">
4072
  <name>$item</name>
4073
  <default><![CDATA[]]></default>
4074
  <type/>
4075
  </argument>
4076
  </method>
4077
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1290" package="Media Library Assistant">
4078
- <name>mla_submenu_arguments</name>
4079
- <full_name>mla_submenu_arguments</full_name>
4080
- <docblock line="1281">
4081
- <description><![CDATA[Process $_REQUEST, building $submenu_arguments]]></description>
4082
- <long-description><![CDATA[]]></long-description>
4083
- <tag line="1281" name="since" description="1.42"/>
4084
- <tag line="1281" name="param" description="Optional: Include the &quot;click filter&quot; values in the results" type="boolean" variable="$include_filters">
4085
- <type by_reference="false">boolean</type>
4086
- </tag>
4087
- <tag line="1281" name="return" description="non-empty view, search, filter and sort arguments" type="array">
4088
- <type by_reference="false">array</type>
4089
- </tag>
4090
- </docblock>
4091
- <argument line="1290">
4092
- <name>$include_filters</name>
4093
- <default><![CDATA[true]]></default>
4094
- <type/>
4095
- </argument>
4096
- </method>
4097
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1410" package="Media Library Assistant">
4098
  <name>pagination</name>
4099
  <full_name>pagination</full_name>
4100
- <docblock line="1402">
4101
  <description><![CDATA[Display the pagination, adding view, search and filter arguments]]></description>
4102
  <long-description><![CDATA[]]></long-description>
4103
- <tag line="1402" name="since" description="1.42"/>
4104
- <tag line="1402" name="param" description="'top' | 'bottom'" type="string" variable="$which">
4105
  <type by_reference="false">string</type>
4106
  </tag>
4107
- <tag line="1402" name="return" description="" type="void">
4108
  <type by_reference="false">void</type>
4109
  </tag>
4110
  </docblock>
4111
- <argument line="1410">
4112
  <name>$which</name>
4113
  <default><![CDATA[]]></default>
4114
  <type/>
4115
  </argument>
4116
  </method>
4117
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1424" package="Media Library Assistant">
4118
  <name>get_columns</name>
4119
  <full_name>get_columns</full_name>
4120
- <docblock line="1417">
4121
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
4122
  <long-description><![CDATA[]]></long-description>
4123
- <tag line="1417" name="since" description="0.1"/>
4124
- <tag line="1417" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
4125
  <type by_reference="false">array</type>
4126
  </tag>
4127
  </docblock>
4128
  </method>
4129
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1436" package="Media Library Assistant">
4130
  <name>get_hidden_columns</name>
4131
  <full_name>get_hidden_columns</full_name>
4132
- <docblock line="1428">
4133
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
4134
  from default values if the option is not set]]></description>
4135
  <long-description><![CDATA[]]></long-description>
4136
- <tag line="1428" name="since" description="0.1"/>
4137
- <tag line="1428" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
4138
  <type by_reference="false">array</type>
4139
  </tag>
4140
  </docblock>
4141
  </method>
4142
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1456" package="Media Library Assistant">
4143
  <name>get_sortable_columns</name>
4144
  <full_name>get_sortable_columns</full_name>
4145
- <docblock line="1446">
4146
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
4147
- and the value is db column to sort by.]]></description>
4148
- <long-description><![CDATA[<p>Also notes the current sort column,
4149
- if set.</p>]]></long-description>
4150
- <tag line="1446" name="since" description="0.1"/>
4151
- <tag line="1446" name="return" description="Sortable column information,e.g., 'slugs'=&gt;array('data_values',boolean)" type="array">
4152
  <type by_reference="false">array</type>
4153
  </tag>
4154
  </docblock>
4155
  </method>
4156
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1482" package="Media Library Assistant">
4157
  <name>print_column_headers</name>
4158
  <full_name>print_column_headers</full_name>
4159
- <docblock line="1475">
4160
  <description><![CDATA[Print column headers, adding view, search and filter arguments]]></description>
4161
  <long-description><![CDATA[]]></long-description>
4162
- <tag line="1475" name="since" description="1.42"/>
4163
- <tag line="1475" name="param" description="Whether to set the id attribute or not" type="bool" variable="$with_id">
4164
  <type by_reference="false">bool</type>
4165
  </tag>
4166
  </docblock>
4167
- <argument line="1482">
4168
  <name>$with_id</name>
4169
  <default><![CDATA[true]]></default>
4170
  <type/>
4171
  </argument>
4172
  </method>
4173
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1499" package="Media Library Assistant">
4174
  <name>_get_view</name>
4175
  <full_name>_get_view</full_name>
4176
- <docblock line="1489">
4177
  <description><![CDATA[Returns HTML markup for one view that can be used with this table]]></description>
4178
  <long-description><![CDATA[]]></long-description>
4179
- <tag line="1489" name="since" description="1.40"/>
4180
- <tag line="1489" name="param" description="View slug, key to MLA_POST_MIME_TYPES array" type="string" variable="$view_slug">
4181
  <type by_reference="false">string</type>
4182
  </tag>
4183
- <tag line="1489" name="param" description="Slug for current view" type="string" variable="$current_view">
4184
  <type by_reference="false">string</type>
4185
  </tag>
4186
- <tag line="1489" name="return" description="| false HTML for link to display the view, false if count = zero" type="string">
4187
  <type by_reference="false">string</type>
4188
  </tag>
4189
  </docblock>
4190
- <argument line="1499">
4191
  <name>$view_slug</name>
4192
  <default><![CDATA[]]></default>
4193
  <type/>
4194
  </argument>
4195
- <argument line="1499">
4196
  <name>$current_view</name>
4197
  <default><![CDATA[]]></default>
4198
  <type/>
4199
  </argument>
4200
  </method>
4201
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1626" package="Media Library Assistant">
4202
  <name>get_views</name>
4203
  <full_name>get_views</full_name>
4204
- <docblock line="1618">
4205
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
4206
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
4207
- <tag line="1618" name="since" description="0.1"/>
4208
- <tag line="1618" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
4209
  <type by_reference="false">array</type>
4210
  </tag>
4211
  </docblock>
4212
  </method>
4213
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1682" package="Media Library Assistant">
4214
  <name>get_bulk_actions</name>
4215
  <full_name>get_bulk_actions</full_name>
4216
- <docblock line="1674">
4217
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
4218
  of bulk actions available on this table.]]></description>
4219
  <long-description><![CDATA[]]></long-description>
4220
- <tag line="1674" name="since" description="0.1"/>
4221
- <tag line="1674" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
4222
  <type by_reference="false">array</type>
4223
  </tag>
4224
  </docblock>
4225
  </method>
4226
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1712" package="Media Library Assistant">
4227
  <name>extra_tablenav</name>
4228
  <full_name>extra_tablenav</full_name>
4229
- <docblock line="1701">
4230
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
4231
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
4232
- <tag line="1701" name="since" description="0.1"/>
4233
- <tag line="1701" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
4234
  <type by_reference="false">string</type>
4235
  </tag>
4236
- <tag line="1701" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
4237
  <type by_reference="false">array</type>
4238
  </tag>
4239
  </docblock>
4240
- <argument line="1712">
4241
  <name>$which</name>
4242
  <default><![CDATA[]]></default>
4243
  <type/>
4244
  </argument>
4245
  </method>
4246
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1752" package="Media Library Assistant">
4247
  <name>prepare_items</name>
4248
  <full_name>prepare_items</full_name>
4249
- <docblock line="1740">
4250
  <description><![CDATA[Prepares the list of items for displaying]]></description>
4251
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
4252
  be used to query the database, sort and filter the data, and generally
4253
  get it ready to be displayed. At a minimum, we should set $this->items and
4254
  $this->set_pagination_args().</p>]]></long-description>
4255
- <tag line="1740" name="since" description="0.1"/>
4256
- <tag line="1740" name="return" description="" type="void">
4257
  <type by_reference="false">void</type>
4258
  </tag>
4259
  </docblock>
4260
  </method>
4261
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1799" package="Media Library Assistant">
4262
  <name>single_row</name>
4263
  <full_name>single_row</full_name>
4264
- <docblock line="1790">
4265
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
4266
  <long-description><![CDATA[]]></long-description>
4267
- <tag line="1790" name="since" description=".20"/>
4268
- <tag line="1790" name="param" description="the current item" type="object" variable="$item">
4269
  <type by_reference="false">object</type>
4270
  </tag>
4271
- <tag line="1790" name="return" description="Echoes the row HTML" type="void">
4272
  <type by_reference="false">void</type>
4273
  </tag>
4274
  </docblock>
4275
- <argument line="1799">
4276
  <name>$item</name>
4277
  <default><![CDATA[]]></default>
4278
  <type/>
@@ -4280,7 +4298,7 @@ $this->set_pagination_args().</p>]]></long-description>
4280
  </method>
4281
  </class>
4282
  </file>
4283
- <file path="includes\class-mla-main.php" hash="35638f0bfed86dc3f7b7f0951dad902e" package="Media Library Assistant">
4284
  <docblock line="2">
4285
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
4286
  <long-description><![CDATA[]]></long-description>
@@ -4290,7 +4308,7 @@ $this->set_pagination_args().</p>]]></long-description>
4290
  <include line="13" type="Require Once" package="Media Library Assistant">
4291
  <name/>
4292
  </include>
4293
- <include line="1217" type="Require Once" package="Media Library Assistant">
4294
  <name/>
4295
  </include>
4296
  <class final="false" abstract="false" namespace="global" line="23" package="Media Library Assistant">
@@ -4307,7 +4325,7 @@ of images and files held in the WordPress Media Library.]]></description>
4307
  <constant namespace="global" line="32" package="Media Library Assistant">
4308
  <name>CURRENT_MLA_VERSION</name>
4309
  <full_name>CURRENT_MLA_VERSION</full_name>
4310
- <value><![CDATA['1.94']]></value>
4311
  <docblock line="25">
4312
  <description><![CDATA[Current version number]]></description>
4313
  <long-description><![CDATA[]]></long-description>
@@ -4577,30 +4595,30 @@ Defined as public because it's an action.</p>]]></long-description>
4577
  </tag>
4578
  </docblock>
4579
  </method>
4580
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="302" package="Media Library Assistant">
4581
  <name>mla_admin_enqueue_scripts_action</name>
4582
  <full_name>mla_admin_enqueue_scripts_action</full_name>
4583
- <docblock line="293">
4584
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
4585
  <long-description><![CDATA[]]></long-description>
4586
- <tag line="293" name="since" description="0.1"/>
4587
- <tag line="293" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
4588
  <type by_reference="false">string</type>
4589
  </tag>
4590
- <tag line="293" name="return" description="" type="void">
4591
  <type by_reference="false">void</type>
4592
  </tag>
4593
  </docblock>
4594
- <argument line="302">
4595
  <name>$page_hook</name>
4596
  <default><![CDATA[]]></default>
4597
  <type/>
4598
  </argument>
4599
  </method>
4600
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="382" package="Media Library Assistant">
4601
  <name>mla_admin_menu_action</name>
4602
  <full_name>mla_admin_menu_action</full_name>
4603
- <docblock line="367">
4604
  <description><![CDATA[Add the submenu pages]]></description>
4605
  <long-description><![CDATA[<p>Add a submenu page in the "Media" section,
4606
  add settings page in the "Settings" section.
@@ -4609,131 +4627,131 @@ add settings link in the Plugins section entry for MLA.</p>
4609
  <p>For WordPress versions before 3.5,
4610
  add submenu page(s) for attachment taxonomies,
4611
  add filter to clean up taxonomy submenu labels.</p>]]></long-description>
4612
- <tag line="367" name="since" description="0.1"/>
4613
- <tag line="367" name="return" description="" type="void">
4614
  <type by_reference="false">void</type>
4615
  </tag>
4616
  </docblock>
4617
  </method>
4618
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="459" package="Media Library Assistant">
4619
  <name>mla_load_media_action</name>
4620
  <full_name>mla_load_media_action</full_name>
4621
- <docblock line="452">
4622
  <description><![CDATA[Redirect to Media/Assistant if Media/Library is hidden]]></description>
4623
  <long-description><![CDATA[]]></long-description>
4624
- <tag line="452" name="since" description="1.60"/>
4625
- <tag line="452" name="return" description="" type="void">
4626
  <type by_reference="false">void</type>
4627
  </tag>
4628
  </docblock>
4629
  </method>
4630
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="487" package="Media Library Assistant">
4631
  <name>mla_add_menu_options</name>
4632
  <full_name>mla_add_menu_options</full_name>
4633
- <docblock line="480">
4634
  <description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
4635
  <long-description><![CDATA[]]></long-description>
4636
- <tag line="480" name="since" description="0.1"/>
4637
- <tag line="480" name="return" description="" type="void">
4638
  <type by_reference="false">void</type>
4639
  </tag>
4640
  </docblock>
4641
  </method>
4642
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="506" package="Media Library Assistant">
4643
  <name>mla_add_help_tab</name>
4644
  <full_name>mla_add_help_tab</full_name>
4645
- <docblock line="499">
4646
  <description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
4647
  <long-description><![CDATA[]]></long-description>
4648
- <tag line="499" name="since" description="0.1"/>
4649
- <tag line="499" name="return" description="" type="void">
4650
  <type by_reference="false">void</type>
4651
  </tag>
4652
  </docblock>
4653
  </method>
4654
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="616" package="Media Library Assistant">
4655
  <name>mla_screen_options_show_screen_filter</name>
4656
  <full_name>mla_screen_options_show_screen_filter</full_name>
4657
- <docblock line="606">
4658
  <description><![CDATA[Only show screen options on the table-list screen]]></description>
4659
  <long-description><![CDATA[]]></long-description>
4660
- <tag line="606" name="since" description="0.1"/>
4661
- <tag line="606" name="param" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean" variable="$show_screen">
4662
  <type by_reference="false">boolean</type>
4663
  </tag>
4664
- <tag line="606" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
4665
  <type by_reference="false">string</type>
4666
  </tag>
4667
- <tag line="606" name="return" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean">
4668
  <type by_reference="false">boolean</type>
4669
  </tag>
4670
  </docblock>
4671
- <argument line="616">
4672
  <name>$show_screen</name>
4673
  <default><![CDATA[]]></default>
4674
  <type/>
4675
  </argument>
4676
- <argument line="616">
4677
  <name>$this_screen</name>
4678
  <default><![CDATA[]]></default>
4679
  <type/>
4680
  </argument>
4681
  </method>
4682
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="635" package="Media Library Assistant">
4683
  <name>mla_set_screen_option_filter</name>
4684
  <full_name>mla_set_screen_option_filter</full_name>
4685
- <docblock line="624">
4686
  <description><![CDATA[Save the "Entries per page" option set by this user]]></description>
4687
  <long-description><![CDATA[]]></long-description>
4688
- <tag line="624" name="since" description="0.1"/>
4689
- <tag line="624" name="param" description="false or value returned by previous filter" type="mixed" variable="$status">
4690
  <type by_reference="false">mixed</type>
4691
  </tag>
4692
- <tag line="624" name="param" description="Name of the option being changed" type="string" variable="$option">
4693
  <type by_reference="false">string</type>
4694
  </tag>
4695
- <tag line="624" name="param" description="New value of the option" type="string" variable="$value">
4696
  <type by_reference="false">string</type>
4697
  </tag>
4698
- <tag line="624" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
4699
  <type by_reference="false">string</type>
4700
  <type by_reference="false">void</type>
4701
  </tag>
4702
  </docblock>
4703
- <argument line="635">
4704
  <name>$status</name>
4705
  <default><![CDATA[]]></default>
4706
  <type/>
4707
  </argument>
4708
- <argument line="635">
4709
  <name>$option</name>
4710
  <default><![CDATA[]]></default>
4711
  <type/>
4712
  </argument>
4713
- <argument line="635">
4714
  <name>$value</name>
4715
  <default><![CDATA[]]></default>
4716
  <type/>
4717
  </argument>
4718
  </method>
4719
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="654" package="Media Library Assistant">
4720
  <name>mla_edit_tax_redirect</name>
4721
  <full_name>mla_edit_tax_redirect</full_name>
4722
- <docblock line="643">
4723
  <description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
4724
  <long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
4725
  This filter is the only way to redirect them to the correct WordPress page.
4726
  The filter is not required for WordPress 3.5 and later.</p>]]></long-description>
4727
- <tag line="643" name="since" description="0.1"/>
4728
- <tag line="643" name="return" description="" type="void">
4729
  <type by_reference="false">void</type>
4730
  </tag>
4731
  </docblock>
4732
  </method>
4733
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="687" package="Media Library Assistant">
4734
  <name>mla_parent_file_filter</name>
4735
  <full_name>mla_parent_file_filter</full_name>
4736
- <docblock line="671">
4737
  <description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
4738
  <long-description><![CDATA[<p>For WordPress before 3.5, the submenu entries for custom taxonomies
4739
  under the "Media" menu are not set up correctly by WordPress, so this
@@ -4741,292 +4759,336 @@ function cleans them up, redirecting the request to the right WordPress
4741
  page for editing/adding taxonomy terms.
4742
  For WordPress 3.5 and later, the function fixes the submenu bolding when
4743
  going to the Edit Media screen.</p>]]></long-description>
4744
- <tag line="671" name="since" description="0.1"/>
4745
- <tag line="671" name="param" description="The top-level menu page" type="array" variable="$parent_file">
4746
  <type by_reference="false">array</type>
4747
  </tag>
4748
- <tag line="671" name="return" description="The updated top-level menu page" type="string">
4749
  <type by_reference="false">string</type>
4750
  </tag>
4751
  </docblock>
4752
- <argument line="687">
4753
  <name>$parent_file</name>
4754
  <default><![CDATA[]]></default>
4755
  <type/>
4756
  </argument>
4757
  </method>
4758
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="750" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
4759
  <name>_process_bulk_value</name>
4760
  <full_name>_process_bulk_value</full_name>
4761
- <docblock line="740">
4762
  <description><![CDATA[Process bulk edit area fields, which may contain a Content Template]]></description>
4763
  <long-description><![CDATA[]]></long-description>
4764
- <tag line="740" name="since" description="1.80"/>
4765
- <tag line="740" name="param" description="Current post ID" type="integer" variable="$post_id">
4766
  <type by_reference="false">integer</type>
4767
  </tag>
4768
- <tag line="740" name="param" description="Field value as entered" type="string" variable="$bulk_value">
4769
  <type by_reference="false">string</type>
4770
  </tag>
4771
- <tag line="740" name="return" description="Empty, or new value for the field" type="string">
4772
  <type by_reference="false">string</type>
4773
  </tag>
4774
  </docblock>
4775
- <argument line="750">
4776
  <name>$post_id</name>
4777
  <default><![CDATA[]]></default>
4778
  <type/>
4779
  </argument>
4780
- <argument line="750">
4781
  <name>$bulk_value</name>
4782
  <default><![CDATA[]]></default>
4783
  <type/>
4784
  </argument>
4785
  </method>
4786
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="781" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4787
  <name>mla_render_admin_page</name>
4788
  <full_name>mla_render_admin_page</full_name>
4789
- <docblock line="774">
4790
  <description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
4791
  <long-description><![CDATA[]]></long-description>
4792
- <tag line="774" name="since" description="0.1"/>
4793
- <tag line="774" name="return" description="" type="void">
4794
  <type by_reference="false">void</type>
4795
  </tag>
4796
  </docblock>
4797
  </method>
4798
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1270" package="Media Library Assistant">
4799
  <name>mla_find_posts_ajax_action</name>
4800
  <full_name>mla_find_posts_ajax_action</full_name>
4801
- <docblock line="1260">
4802
  <description><![CDATA[Ajax handler to fetch candidates for the "Set Parent" popup window]]></description>
4803
  <long-description><![CDATA[<p>Adapted from wp_ajax_find_posts in /wp-admin/includes/ajax-actions.php.
4804
  Adds filters for post type and pagination.</p>]]></long-description>
4805
- <tag line="1260" name="since" description="1.90"/>
4806
- <tag line="1260" name="return" description="passes results to wp_send_json_success() for JSON encoding and transmission" type="void">
4807
  <type by_reference="false">void</type>
4808
  </tag>
4809
  </docblock>
4810
  </method>
4811
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1357" package="Media Library Assistant">
4812
  <name>mla_set_parent_ajax_action</name>
4813
  <full_name>mla_set_parent_ajax_action</full_name>
4814
- <docblock line="1348">
4815
  <description><![CDATA[Ajax handler to set post_parent for a single attachment]]></description>
4816
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
4817
- <tag line="1348" name="since" description="0.20"/>
4818
- <tag line="1348" name="return" description="echo HTML &lt;td&gt; innerHTML for updated call or error message, then die()" type="void">
4819
  <type by_reference="false">void</type>
4820
  </tag>
4821
  </docblock>
4822
  </method>
4823
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1393" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
4824
  <name>mla_inline_edit_ajax_action</name>
4825
  <full_name>mla_inline_edit_ajax_action</full_name>
4826
- <docblock line="1384">
4827
- <description><![CDATA[Ajax handler for inline editing (quick and bulk edit)]]></description>
4828
- <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
4829
- <tag line="1384" name="since" description="0.20"/>
4830
- <tag line="1384" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
4831
  <type by_reference="false">void</type>
4832
  </tag>
4833
  </docblock>
4834
  </method>
4835
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1492" package="Media Library Assistant">
4836
  <name>_compose_post_type_select</name>
4837
  <full_name>_compose_post_type_select</full_name>
4838
- <docblock line="1481">
4839
  <description><![CDATA[Compose a Post Type Options list with current selection]]></description>
4840
  <long-description><![CDATA[]]></long-description>
4841
- <tag line="1481" name="since" description="1.90"/>
4842
- <tag line="1481" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
4843
- <tag line="1481" name="param" description="template parts" type="array" variable="$templates">
4844
  <type by_reference="false">array</type>
4845
  </tag>
4846
- <tag line="1481" name="param" description="current selection or 'all' (default)" type="string" variable="$selection">
4847
  <type by_reference="false">string</type>
4848
  </tag>
4849
- <tag line="1481" name="return" description="HTML markup with select field options" type="string">
4850
  <type by_reference="false">string</type>
4851
  </tag>
4852
  </docblock>
4853
- <argument line="1492">
4854
  <name>$templates</name>
4855
  <default><![CDATA[]]></default>
4856
  <type/>
4857
  </argument>
4858
- <argument line="1492">
4859
  <name>$selection</name>
4860
  <default><![CDATA['all']]></default>
4861
  <type/>
4862
  </argument>
4863
  </method>
4864
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1531" package="Media Library Assistant">
4865
  <name>mla_set_parent_form</name>
4866
  <full_name>mla_set_parent_form</full_name>
4867
- <docblock line="1522">
4868
  <description><![CDATA[Build the hidden form for the "Set Parent" popup modal window]]></description>
4869
  <long-description><![CDATA[]]></long-description>
4870
- <tag line="1522" name="since" description="1.90"/>
4871
- <tag line="1522" name="param" description="true to return complete form, false to return mla-set-parent-div" type="boolean" variable="$return_form">
4872
  <type by_reference="false">boolean</type>
4873
  </tag>
4874
- <tag line="1522" name="return" description="HTML &lt;form&gt; markup for hidden form" type="string">
4875
  <type by_reference="false">string</type>
4876
  </tag>
4877
  </docblock>
4878
- <argument line="1531">
4879
  <name>$return_form</name>
4880
  <default><![CDATA[true]]></default>
4881
  <type/>
4882
  </argument>
4883
  </method>
4884
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1594" package="Media Library Assistant">
4885
  <name>_build_inline_edit_form</name>
4886
  <full_name>_build_inline_edit_form</full_name>
4887
- <docblock line="1583">
4888
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
4889
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
4890
- <tag line="1583" name="since" description="0.20"/>
4891
- <tag line="1583" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
4892
  <type by_reference="false">object</type>
4893
  </tag>
4894
- <tag line="1583" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
4895
  <type by_reference="false">string</type>
4896
  </tag>
4897
  </docblock>
4898
- <argument line="1594">
4899
  <name>$MLAListTable</name>
4900
  <default><![CDATA[]]></default>
4901
  <type/>
4902
  </argument>
4903
  </method>
4904
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1783" package="Media Library Assistant">
4905
  <name>_authors_dropdown</name>
4906
  <full_name>_authors_dropdown</full_name>
4907
- <docblock line="1772">
4908
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
4909
  <long-description><![CDATA[]]></long-description>
4910
- <tag line="1772" name="since" description="0.20"/>
4911
- <tag line="1772" name="param" description="Optional User ID of the current author, default 0" type="integer" variable="$author">
4912
  <type by_reference="false">integer</type>
4913
  </tag>
4914
- <tag line="1772" name="param" description="Optional HTML name attribute, default 'post_author'" type="string" variable="$name">
4915
  <type by_reference="false">string</type>
4916
  </tag>
4917
- <tag line="1772" name="param" description="Optional HTML class attribute, default 'authors'" type="string" variable="$class">
4918
  <type by_reference="false">string</type>
4919
  </tag>
4920
- <tag line="1772" name="return" description="HTML markup for the dropdown field or False" type="string|false">
4921
  <type by_reference="false">string</type>
4922
  <type by_reference="false">false</type>
4923
  </tag>
4924
  </docblock>
4925
- <argument line="1783">
4926
  <name>$author</name>
4927
  <default><![CDATA[0]]></default>
4928
  <type/>
4929
  </argument>
4930
- <argument line="1783">
4931
  <name>$name</name>
4932
  <default><![CDATA['post_author']]></default>
4933
  <type/>
4934
  </argument>
4935
- <argument line="1783">
4936
  <name>$class</name>
4937
  <default><![CDATA['authors']]></default>
4938
  <type/>
4939
  </argument>
4940
  </method>
4941
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1817" package="Media Library Assistant">
4942
  <name>_current_bulk_action</name>
4943
  <full_name>_current_bulk_action</full_name>
4944
- <docblock line="1810">
4945
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
4946
  <long-description><![CDATA[]]></long-description>
4947
- <tag line="1810" name="since" description="0.1"/>
4948
- <tag line="1810" name="return" description="The action name or False if no action was selected" type="string|false">
4949
  <type by_reference="false">string</type>
4950
  <type by_reference="false">false</type>
4951
  </tag>
4952
  </docblock>
4953
  </method>
4954
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1848" package="Media Library Assistant">
4955
  <name>_delete_single_item</name>
4956
  <full_name>_delete_single_item</full_name>
4957
- <docblock line="1839">
4958
  <description><![CDATA[Delete a single item permanently]]></description>
4959
  <long-description><![CDATA[]]></long-description>
4960
- <tag line="1839" name="since" description="0.1"/>
4961
- <tag line="1839" name="param" description="The form POST data" type="array" variable="$post_id">
4962
  <type by_reference="false">array</type>
4963
  </tag>
4964
- <tag line="1839" name="return" description="success/failure message and NULL content" type="array">
4965
  <type by_reference="false">array</type>
4966
  </tag>
4967
  </docblock>
4968
- <argument line="1848">
4969
  <name>$post_id</name>
4970
  <default><![CDATA[]]></default>
4971
  <type/>
4972
  </argument>
4973
  </method>
4974
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1883" package="Media Library Assistant">
4975
  <name>_display_single_item</name>
4976
  <full_name>_display_single_item</full_name>
4977
- <docblock line="1871">
4978
  <description><![CDATA[Display a single item sub page; prepare the form to
4979
  change the meta data for a single attachment.]]></description>
4980
  <long-description><![CDATA[<p>This function is not used in WordPress 3.5 and later.</p>]]></long-description>
4981
- <tag line="1871" name="since" description="0.1"/>
4982
- <tag line="1871" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
4983
  <type by_reference="false">integer</type>
4984
  </tag>
4985
- <tag line="1871" name="return" description="message and/or HTML content" type="array">
4986
  <type by_reference="false">array</type>
4987
  </tag>
4988
  </docblock>
4989
- <argument line="1883">
4990
  <name>$post_id</name>
4991
  <default><![CDATA[]]></default>
4992
  <type/>
4993
  </argument>
4994
  </method>
4995
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2164" package="Media Library Assistant">
4996
  <name>_restore_single_item</name>
4997
  <full_name>_restore_single_item</full_name>
4998
- <docblock line="2155">
4999
  <description><![CDATA[Restore a single item from the Trash]]></description>
5000
  <long-description><![CDATA[]]></long-description>
5001
- <tag line="2155" name="since" description="0.1"/>
5002
- <tag line="2155" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
5003
  <type by_reference="false">integer</type>
5004
  </tag>
5005
- <tag line="2155" name="return" description="success/failure message and NULL content" type="array">
5006
  <type by_reference="false">array</type>
5007
  </tag>
5008
  </docblock>
5009
- <argument line="2164">
5010
  <name>$post_id</name>
5011
  <default><![CDATA[]]></default>
5012
  <type/>
5013
  </argument>
5014
  </method>
5015
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2204" package="Media Library Assistant">
5016
  <name>_trash_single_item</name>
5017
  <full_name>_trash_single_item</full_name>
5018
- <docblock line="2195">
5019
  <description><![CDATA[Move a single item to Trash]]></description>
5020
  <long-description><![CDATA[]]></long-description>
5021
- <tag line="2195" name="since" description="0.1"/>
5022
- <tag line="2195" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
5023
  <type by_reference="false">integer</type>
5024
  </tag>
5025
- <tag line="2195" name="return" description="success/failure message and NULL content" type="array">
5026
  <type by_reference="false">array</type>
5027
  </tag>
5028
  </docblock>
5029
- <argument line="2204">
5030
  <name>$post_id</name>
5031
  <default><![CDATA[]]></default>
5032
  <type/>
@@ -5034,14 +5096,14 @@ change the meta data for a single attachment.]]></description>
5034
  </method>
5035
  </class>
5036
  </file>
5037
- <file path="includes\class-mla-media-modal.php" hash="6cbb0ec5567014ac7b6940ea37fbfff9" package="Media Library Assistant">
5038
  <docblock line="2">
5039
  <description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
5040
  <long-description><![CDATA[]]></long-description>
5041
  <tag line="2" name="package" description="Media Library Assistant"/>
5042
  <tag line="2" name="since" description="1.20"/>
5043
  </docblock>
5044
- <include line="609" type="Require Once" package="Media Library Assistant">
5045
  <name/>
5046
  </include>
5047
  <class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
@@ -5355,101 +5417,101 @@ Declared public because it is a filter.</p>]]></long-description>
5355
  </tag>
5356
  </docblock>
5357
  </method>
5358
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="622" package="Media Library Assistant">
5359
  <name>mla_admin_init_action</name>
5360
  <full_name>mla_admin_init_action</full_name>
5361
- <docblock line="612">
5362
  <description><![CDATA[Adjust ajax handler for Media Manager queries]]></description>
5363
  <long-description><![CDATA[<p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab.
5364
  Clean up the 'save-attachment-compat' values, removing the taxonomy updates MLS already handled.</p>]]></long-description>
5365
- <tag line="612" name="since" description="1.20"/>
5366
- <tag line="612" name="return" description="" type="void">
5367
  <type by_reference="false">void</type>
5368
  </tag>
5369
  </docblock>
5370
  </method>
5371
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="761" package="Media Library Assistant">
5372
  <name>mla_fill_compat_fields_action</name>
5373
  <full_name>mla_fill_compat_fields_action</full_name>
5374
- <docblock line="752">
5375
  <description><![CDATA[Ajax handler for Media Manager "fill compat-attachment-fields" queries]]></description>
5376
  <long-description><![CDATA[<p>Prepares an array of (HTML) taxonomy meta boxes with attachment-specific values.</p>]]></long-description>
5377
- <tag line="752" name="since" description="1.80"/>
5378
- <tag line="752" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
5379
  <type by_reference="false">void</type>
5380
  </tag>
5381
  </docblock>
5382
  </method>
5383
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="935" package="Media Library Assistant">
5384
  <name>mla_update_compat_fields_action</name>
5385
  <full_name>mla_update_compat_fields_action</full_name>
5386
- <docblock line="926">
5387
  <description><![CDATA[Ajax handler for Media Manager "update compat-attachment-fields" queries]]></description>
5388
  <long-description><![CDATA[<p>Updates one (or more) supported taxonomy and returns updated checkbox or tag/term lists</p>]]></long-description>
5389
- <tag line="926" name="since" description="1.80"/>
5390
- <tag line="926" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
5391
  <type by_reference="false">void</type>
5392
  </tag>
5393
  </docblock>
5394
  </method>
5395
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1012" package="Media Library Assistant">
5396
  <name>mla_query_attachments_action</name>
5397
  <full_name>mla_query_attachments_action</full_name>
5398
- <docblock line="1003">
5399
  <description><![CDATA[Ajax handler for Media Manager "Query Attachments" queries]]></description>
5400
  <long-description><![CDATA[<p>Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
5401
- <tag line="1003" name="since" description="1.20"/>
5402
- <tag line="1003" name="return" description="passes array of post arrays to wp_send_json_success() for JSON encoding and transmission" type="void">
5403
  <type by_reference="false">void</type>
5404
  </tag>
5405
  </docblock>
5406
  </method>
5407
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1126" package="Media Library Assistant">
5408
  <name>mla_add_terms_search_scripts</name>
5409
  <full_name>mla_add_terms_search_scripts</full_name>
5410
- <docblock line="1118">
5411
  <description><![CDATA[Add the styles and scripts for the "Search Terms" popup modal window,
5412
  but only once per page load]]></description>
5413
  <long-description><![CDATA[]]></long-description>
5414
- <tag line="1118" name="since" description="1.90"/>
5415
- <tag line="1118" name="return" description="" type="void">
5416
  <type by_reference="false">void</type>
5417
  </tag>
5418
  </docblock>
5419
  </method>
5420
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1166" package="Media Library Assistant">
5421
  <name>mla_add_terms_search_form</name>
5422
  <full_name>mla_add_terms_search_form</full_name>
5423
- <docblock line="1158">
5424
  <description><![CDATA[Add the hidden form for the "Search Terms" popup modal window,
5425
  but only once per page load]]></description>
5426
  <long-description><![CDATA[]]></long-description>
5427
- <tag line="1158" name="since" description="1.90"/>
5428
- <tag line="1158" name="return" description="" type="void">
5429
  <type by_reference="false">void</type>
5430
  </tag>
5431
  </docblock>
5432
  </method>
5433
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1182" package="Media Library Assistant">
5434
  <name>mla_echo_terms_search_form</name>
5435
  <full_name>mla_echo_terms_search_form</full_name>
5436
- <docblock line="1175">
5437
  <description><![CDATA[Echo the hidden form for the "Search Terms" popup modal window]]></description>
5438
  <long-description><![CDATA[]]></long-description>
5439
- <tag line="1175" name="since" description="1.90"/>
5440
- <tag line="1175" name="return" description="Echos the HTML &lt;form&gt; markup for hidden form" type="void">
5441
  <type by_reference="false">void</type>
5442
  </tag>
5443
  </docblock>
5444
  </method>
5445
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1193" package="Media Library Assistant">
5446
  <name>mla_terms_search_form</name>
5447
  <full_name>mla_terms_search_form</full_name>
5448
- <docblock line="1186">
5449
  <description><![CDATA[Build the hidden form for the "Search Terms" popup modal window]]></description>
5450
  <long-description><![CDATA[]]></long-description>
5451
- <tag line="1186" name="since" description="1.90"/>
5452
- <tag line="1186" name="return" description="HTML &lt;form&gt; markup for hidden form" type="string">
5453
  <type by_reference="false">string</type>
5454
  </tag>
5455
  </docblock>
@@ -6914,17 +6976,17 @@ which returns a count of the attachments assigned a given term]]></description>
6914
  </method>
6915
  </class>
6916
  </file>
6917
- <file path="includes\class-mla-options.php" hash="9d93b30d534a6a3295bd6ccbb713e820" package="Media Library Assistant">
6918
  <docblock line="2">
6919
  <description><![CDATA[Manages the plugin option settings]]></description>
6920
  <long-description><![CDATA[]]></long-description>
6921
  <tag line="2" name="package" description="Media Library Assistant"/>
6922
  <tag line="2" name="since" description="1.00"/>
6923
  </docblock>
6924
- <include line="1845" type="Require Once" package="Media Library Assistant">
6925
  <name/>
6926
  </include>
6927
- <include line="1876" type="Require" package="Media Library Assistant">
6928
  <name/>
6929
  </include>
6930
  <class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
@@ -7083,304 +7145,313 @@ and provides functions to get and put them from/to WordPress option variables]]>
7083
  </docblock>
7084
  </constant>
7085
  <constant namespace="global" line="102" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
7086
  <name>MLA_TAXONOMY_FILTER_DEPTH</name>
7087
  <full_name>MLA_TAXONOMY_FILTER_DEPTH</full_name>
7088
  <value><![CDATA['taxonomy_filter_depth']]></value>
7089
- <docblock line="99">
7090
  <description><![CDATA[Provides a unique name for the taxonomy filter maximum depth option]]></description>
7091
  <long-description><![CDATA[]]></long-description>
7092
  </docblock>
7093
  </constant>
7094
- <constant namespace="global" line="107" package="Media Library Assistant">
7095
  <name>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN</name>
7096
  <full_name>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN</full_name>
7097
  <value><![CDATA['taxonomy_filter_include_children']]></value>
7098
- <docblock line="104">
7099
  <description><![CDATA[Provides a unique name for the taxonomy filter maximum depth option]]></description>
7100
  <long-description><![CDATA[]]></long-description>
7101
  </docblock>
7102
  </constant>
7103
- <constant namespace="global" line="112" package="Media Library Assistant">
7104
  <name>MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS</name>
7105
  <full_name>MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS</full_name>
7106
  <value><![CDATA['search_media_filter_show_controls']]></value>
7107
- <docblock line="109">
7108
  <description><![CDATA[Provides a unique name for the display Search Media controls option]]></description>
7109
  <long-description><![CDATA[]]></long-description>
7110
  </docblock>
7111
  </constant>
7112
- <constant namespace="global" line="117" package="Media Library Assistant">
7113
  <name>MLA_SEARCH_MEDIA_FILTER_DEFAULTS</name>
7114
  <full_name>MLA_SEARCH_MEDIA_FILTER_DEFAULTS</full_name>
7115
  <value><![CDATA['search_media_filter_defaults']]></value>
7116
- <docblock line="114">
7117
  <description><![CDATA[Provides a unique name for the display Search Media controls option]]></description>
7118
  <long-description><![CDATA[]]></long-description>
7119
  </docblock>
7120
  </constant>
7121
- <constant namespace="global" line="122" package="Media Library Assistant">
7122
  <name>MLA_EXIF_SIZE</name>
7123
  <full_name>MLA_EXIF_SIZE</full_name>
7124
  <value><![CDATA[30]]></value>
7125
- <docblock line="119">
7126
  <description><![CDATA[Provides a "size" attribute value for the EXIF/Template Value field]]></description>
7127
  <long-description><![CDATA[]]></long-description>
7128
  </docblock>
7129
  </constant>
7130
- <constant namespace="global" line="127" package="Media Library Assistant">
7131
  <name>MLA_NEW_CUSTOM_RULE</name>
7132
  <full_name>MLA_NEW_CUSTOM_RULE</full_name>
7133
  <value><![CDATA['__NEW RULE__']]></value>
7134
- <docblock line="124">
7135
  <description><![CDATA[Provides a unique name for the Custom Field "new rule" key]]></description>
7136
  <long-description><![CDATA[]]></long-description>
7137
  </docblock>
7138
  </constant>
7139
- <constant namespace="global" line="132" package="Media Library Assistant">
7140
  <name>MLA_NEW_CUSTOM_FIELD</name>
7141
  <full_name>MLA_NEW_CUSTOM_FIELD</full_name>
7142
  <value><![CDATA['__NEW FIELD__']]></value>
7143
- <docblock line="129">
7144
  <description><![CDATA[Provides a unique name for the Custom Field "new field" key]]></description>
7145
  <long-description><![CDATA[]]></long-description>
7146
  </docblock>
7147
  </constant>
7148
- <constant namespace="global" line="137" package="Media Library Assistant">
7149
  <name>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</name>
7150
  <full_name>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</full_name>
7151
  <value><![CDATA['edit_media_search_taxonomy']]></value>
7152
- <docblock line="134">
7153
  <description><![CDATA[Provides a unique name for the "searchable taxonomies" option]]></description>
7154
  <long-description><![CDATA[]]></long-description>
7155
  </docblock>
7156
  </constant>
7157
- <constant namespace="global" line="142" package="Media Library Assistant">
7158
  <name>MLA_EDIT_MEDIA_META_BOXES</name>
7159
  <full_name>MLA_EDIT_MEDIA_META_BOXES</full_name>
7160
  <value><![CDATA['edit_media_meta_boxes']]></value>
7161
- <docblock line="139">
7162
  <description><![CDATA[Provides a unique name for the Edit Media additional meta boxes option]]></description>
7163
  <long-description><![CDATA[]]></long-description>
7164
  </docblock>
7165
  </constant>
7166
- <constant namespace="global" line="148" package="Media Library Assistant">
7167
  <name>MLA_MEDIA_GRID_TOOLBAR</name>
7168
  <full_name>MLA_MEDIA_GRID_TOOLBAR</full_name>
7169
  <value><![CDATA['media_grid_toolbar']]></value>
7170
- <docblock line="144">
7171
  <description><![CDATA[Provides a unique name for the Media Grid toolbar option, which
7172
  also controls the ATTACHMENT DETAILS enhancements]]></description>
7173
  <long-description><![CDATA[]]></long-description>
7174
  </docblock>
7175
  </constant>
7176
- <constant namespace="global" line="154" package="Media Library Assistant">
7177
  <name>MLA_MEDIA_MODAL_TOOLBAR</name>
7178
  <full_name>MLA_MEDIA_MODAL_TOOLBAR</full_name>
7179
  <value><![CDATA['media_modal_toolbar']]></value>
7180
- <docblock line="150">
7181
  <description><![CDATA[Provides a unique name for the Media Manager toolbar option, which
7182
  also controls the ATTACHMENT DETAILS enhancements]]></description>
7183
  <long-description><![CDATA[]]></long-description>
7184
  </docblock>
7185
  </constant>
7186
- <constant namespace="global" line="159" package="Media Library Assistant">
7187
  <name>MLA_MEDIA_MODAL_MIMETYPES</name>
7188
  <full_name>MLA_MEDIA_MODAL_MIMETYPES</full_name>
7189
  <value><![CDATA['media_modal_mimetypes']]></value>
7190
- <docblock line="156">
7191
  <description><![CDATA[Provides a unique name for the Media Manager toolbar MIME Types option]]></description>
7192
  <long-description><![CDATA[]]></long-description>
7193
  </docblock>
7194
  </constant>
7195
- <constant namespace="global" line="164" package="Media Library Assistant">
7196
  <name>MLA_MEDIA_MODAL_MONTHS</name>
7197
  <full_name>MLA_MEDIA_MODAL_MONTHS</full_name>
7198
  <value><![CDATA['media_modal_months']]></value>
7199
- <docblock line="161">
7200
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Month and Year option]]></description>
7201
  <long-description><![CDATA[]]></long-description>
7202
  </docblock>
7203
  </constant>
7204
- <constant namespace="global" line="169" package="Media Library Assistant">
7205
  <name>MLA_MEDIA_MODAL_TERMS</name>
7206
  <full_name>MLA_MEDIA_MODAL_TERMS</full_name>
7207
  <value><![CDATA['media_modal_terms']]></value>
7208
- <docblock line="166">
7209
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy Terms option]]></description>
7210
  <long-description><![CDATA[]]></long-description>
7211
  </docblock>
7212
  </constant>
7213
- <constant namespace="global" line="174" package="Media Library Assistant">
7214
  <name>MLA_MEDIA_MODAL_TERMS_SEARCH</name>
7215
  <full_name>MLA_MEDIA_MODAL_TERMS_SEARCH</full_name>
7216
  <value><![CDATA['media_modal_terms_search']]></value>
7217
- <docblock line="171">
7218
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option]]></description>
7219
  <long-description><![CDATA[]]></long-description>
7220
  </docblock>
7221
  </constant>
7222
- <constant namespace="global" line="179" package="Media Library Assistant">
7223
  <name>MLA_MEDIA_MODAL_SEARCHBOX</name>
7224
  <full_name>MLA_MEDIA_MODAL_SEARCHBOX</full_name>
7225
  <value><![CDATA['media_modal_searchbox']]></value>
7226
- <docblock line="176">
7227
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box option]]></description>
7228
  <long-description><![CDATA[]]></long-description>
7229
  </docblock>
7230
  </constant>
7231
- <constant namespace="global" line="184" package="Media Library Assistant">
7232
  <name>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</name>
7233
  <full_name>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</full_name>
7234
  <value><![CDATA['media_modal_searchbox_controls']]></value>
7235
- <docblock line="181">
7236
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box Controls option]]></description>
7237
  <long-description><![CDATA[]]></long-description>
7238
  </docblock>
7239
  </constant>
7240
- <constant namespace="global" line="190" package="Media Library Assistant">
7241
  <name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</name>
7242
  <full_name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</full_name>
7243
  <value><![CDATA['media_modal_details_category_metabox']]></value>
7244
- <docblock line="186">
7245
  <description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
7246
  This option is for hierarchical taxonomies, e.g., "Att.]]></description>
7247
  <long-description><![CDATA[<p>Categories".</p>]]></long-description>
7248
  </docblock>
7249
  </constant>
7250
- <constant namespace="global" line="196" package="Media Library Assistant">
7251
  <name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</name>
7252
  <full_name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</full_name>
7253
  <value><![CDATA['media_modal_details_tag_metabox']]></value>
7254
- <docblock line="192">
7255
  <description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
7256
  This option is for flat taxonomies, e.g., "Att.]]></description>
7257
  <long-description><![CDATA[<p>Tags".</p>]]></long-description>
7258
  </docblock>
7259
  </constant>
7260
- <constant namespace="global" line="201" package="Media Library Assistant">
7261
  <name>MLA_MEDIA_MODAL_DETAILS_AUTOFILL</name>
7262
  <full_name>MLA_MEDIA_MODAL_DETAILS_AUTOFILL</full_name>
7263
  <value><![CDATA['media_modal_details_autofill']]></value>
7264
- <docblock line="198">
7265
  <description><![CDATA[Provides a unique name for the Media Manager Attachment Details auto-fill option]]></description>
7266
  <long-description><![CDATA[]]></long-description>
7267
  </docblock>
7268
  </constant>
7269
- <constant namespace="global" line="206" package="Media Library Assistant">
7270
  <name>MLA_MEDIA_MODAL_ORDERBY</name>
7271
  <full_name>MLA_MEDIA_MODAL_ORDERBY</full_name>
7272
  <value><![CDATA['media_modal_orderby']]></value>
7273
- <docblock line="203">
7274
  <description><![CDATA[Provides a unique name for the Media Manager orderby option]]></description>
7275
  <long-description><![CDATA[]]></long-description>
7276
  </docblock>
7277
  </constant>
7278
- <constant namespace="global" line="211" package="Media Library Assistant">
7279
  <name>MLA_MEDIA_MODAL_ORDER</name>
7280
  <full_name>MLA_MEDIA_MODAL_ORDER</full_name>
7281
  <value><![CDATA['media_modal_order']]></value>
7282
- <docblock line="208">
7283
  <description><![CDATA[Provides a unique name for the Media Manager order option]]></description>
7284
  <long-description><![CDATA[]]></long-description>
7285
  </docblock>
7286
  </constant>
7287
- <constant namespace="global" line="216" package="Media Library Assistant">
7288
  <name>MLA_POST_MIME_TYPES</name>
7289
  <full_name>MLA_POST_MIME_TYPES</full_name>
7290
  <value><![CDATA['post_mime_types']]></value>
7291
- <docblock line="213">
7292
  <description><![CDATA[Provides a unique name for the Post MIME Types option]]></description>
7293
  <long-description><![CDATA[]]></long-description>
7294
  </docblock>
7295
  </constant>
7296
- <constant namespace="global" line="221" package="Media Library Assistant">
7297
  <name>MLA_ENABLE_POST_MIME_TYPES</name>
7298
  <full_name>MLA_ENABLE_POST_MIME_TYPES</full_name>
7299
  <value><![CDATA['enable_post_mime_types']]></value>
7300
- <docblock line="218">
7301
  <description><![CDATA[Provides a unique name for the Enable Post MIME Types option]]></description>
7302
  <long-description><![CDATA[]]></long-description>
7303
  </docblock>
7304
  </constant>
7305
- <constant namespace="global" line="226" package="Media Library Assistant">
7306
  <name>MLA_UPLOAD_MIMES</name>
7307
  <full_name>MLA_UPLOAD_MIMES</full_name>
7308
  <value><![CDATA['upload_mimes']]></value>
7309
- <docblock line="223">
7310
  <description><![CDATA[Provides a unique name for the Upload MIME Types option]]></description>
7311
  <long-description><![CDATA[]]></long-description>
7312
  </docblock>
7313
  </constant>
7314
- <constant namespace="global" line="231" package="Media Library Assistant">
7315
  <name>MLA_ENABLE_UPLOAD_MIMES</name>
7316
  <full_name>MLA_ENABLE_UPLOAD_MIMES</full_name>
7317
  <value><![CDATA['enable_upload_mimes']]></value>
7318
- <docblock line="228">
7319
  <description><![CDATA[Provides a unique name for the Enable Upload MIME Types option]]></description>
7320
  <long-description><![CDATA[]]></long-description>
7321
  </docblock>
7322
  </constant>
7323
- <constant namespace="global" line="236" package="Media Library Assistant">
7324
  <name>MLA_ENABLE_MLA_ICONS</name>
7325
  <full_name>MLA_ENABLE_MLA_ICONS</full_name>
7326
  <value><![CDATA['enable_mla_icons']]></value>
7327
- <docblock line="233">
7328
  <description><![CDATA[Provides a unique name for the Enable MLA Icons option]]></description>
7329
  <long-description><![CDATA[]]></long-description>
7330
  </docblock>
7331
  </constant>
7332
- <property final="false" static="true" visibility="public" line="247" namespace="global" package="Media Library Assistant">
7333
  <name>$process_featured_in</name>
7334
  <default><![CDATA[true]]></default>
7335
- <docblock line="238">
7336
  <description><![CDATA[Option setting for "Featured in" reporting]]></description>
7337
  <long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
7338
- <tag line="238" name="since" description="1.00"/>
7339
- <tag line="238" name="var" description="" type="boolean">
7340
  <type by_reference="false">boolean</type>
7341
  </tag>
7342
  </docblock>
7343
  </property>
7344
- <property final="false" static="true" visibility="public" line="258" namespace="global" package="Media Library Assistant">
7345
  <name>$process_inserted_in</name>
7346
  <default><![CDATA[true]]></default>
7347
- <docblock line="249">
7348
  <description><![CDATA[Option setting for "Inserted in" reporting]]></description>
7349
  <long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
7350
- <tag line="249" name="since" description="1.00"/>
7351
- <tag line="249" name="var" description="" type="boolean">
7352
  <type by_reference="false">boolean</type>
7353
  </tag>
7354
  </docblock>
7355
  </property>
7356
- <property final="false" static="true" visibility="public" line="269" namespace="global" package="Media Library Assistant">
7357
  <name>$process_gallery_in</name>
7358
  <default><![CDATA[true]]></default>
7359
- <docblock line="260">
7360
  <description><![CDATA[Option setting for "Gallery in" reporting]]></description>
7361
  <long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
7362
- <tag line="260" name="since" description="1.00"/>
7363
- <tag line="260" name="var" description="" type="boolean">
7364
  <type by_reference="false">boolean</type>
7365
  </tag>
7366
  </docblock>
7367
  </property>
7368
- <property final="false" static="true" visibility="public" line="280" namespace="global" package="Media Library Assistant">
7369
  <name>$process_mla_gallery_in</name>
7370
  <default><![CDATA[true]]></default>
7371
- <docblock line="271">
7372
  <description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
7373
  <long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
7374
- <tag line="271" name="since" description="1.00"/>
7375
- <tag line="271" name="var" description="" type="boolean">
7376
  <type by_reference="false">boolean</type>
7377
  </tag>
7378
  </docblock>
7379
  </property>
7380
- <property final="false" static="true" visibility="public" line="312" namespace="global" package="Media Library Assistant">
7381
  <name>$mla_option_definitions</name>
7382
  <default><![CDATA[array()]]></default>
7383
- <docblock line="282">
7384
  <description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them]]></description>
7385
  <long-description><![CDATA[<p>The array must be populated at runtime in MLAOptions::mla_localize_option_definitions_array(),
7386
  because Localization calls cannot be placed in the "public static" array definition itself.</p>
@@ -7409,1228 +7480,1228 @@ reset => reset function for 'custom' options; returns nothing. Usage:
7409
  $message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
7410
  </docblock>
7411
  </property>
7412
- <property final="false" static="true" visibility="private" line="359" namespace="global" package="Media Library Assistant">
7413
  <name>$mla_option_templates</name>
7414
  <default><![CDATA[null]]></default>
7415
- <docblock line="352">
7416
  <description><![CDATA[Style and Markup templates]]></description>
7417
  <long-description><![CDATA[]]></long-description>
7418
- <tag line="352" name="since" description="0.80"/>
7419
- <tag line="352" name="var" description="" type="array">
7420
  <type by_reference="false">array</type>
7421
  </tag>
7422
  </docblock>
7423
  </property>
7424
- <property final="false" static="true" visibility="private" line="1897" namespace="global" package="Media Library Assistant">
7425
  <name>$add_attachment_id</name>
7426
  <default><![CDATA[0]]></default>
7427
- <docblock line="1887">
7428
  <description><![CDATA[Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter]]></description>
7429
  <long-description><![CDATA[<p>Ensures that IPTC/EXIF and Custom Field mapping is only performed when the attachment is first
7430
  added to the Media Library.</p>]]></long-description>
7431
- <tag line="1887" name="since" description="1.70"/>
7432
- <tag line="1887" name="var" description="" type="integer">
7433
  <type by_reference="false">integer</type>
7434
  </tag>
7435
  </docblock>
7436
  </property>
7437
- <property final="false" static="true" visibility="private" line="2914" namespace="global" package="Media Library Assistant">
7438
  <name>$custom_field_data_sources</name>
7439
  <default><![CDATA[array('post_id', 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'comment_status', 'ping_status', 'post_name', 'post_modified', 'post_modified_gmt', 'post_content_filtered', 'parent', 'post_parent', 'guid', 'menu_order', 'mime_type', 'post_mime_type', 'comment_count', 'absolute_path', 'absolute_file_name', 'base_file', 'path', 'file_name', 'name_only', 'extension', 'file_size', 'upload_date', '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_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>
7440
- <docblock line="2907">
7441
  <description><![CDATA[Array of Data Source names for custom field mapping]]></description>
7442
  <long-description><![CDATA[]]></long-description>
7443
- <tag line="2907" name="since" description="1.10"/>
7444
- <tag line="2907" name="var" description="" type="array">
7445
  <type by_reference="false">array</type>
7446
  </tag>
7447
  </docblock>
7448
  </property>
7449
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="321" package="Media Library Assistant">
7450
  <name>initialize</name>
7451
  <full_name>initialize</full_name>
7452
- <docblock line="314">
7453
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
7454
  <long-description><![CDATA[]]></long-description>
7455
- <tag line="314" name="since" description="1.00"/>
7456
- <tag line="314" name="return" description="" type="void">
7457
  <type by_reference="false">void</type>
7458
  </tag>
7459
  </docblock>
7460
  </method>
7461
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="368" package="Media Library Assistant">
7462
  <name>_load_option_templates</name>
7463
  <full_name>_load_option_templates</full_name>
7464
- <docblock line="361">
7465
  <description><![CDATA[Load style and markup templates to $mla_templates]]></description>
7466
  <long-description><![CDATA[]]></long-description>
7467
- <tag line="361" name="since" description="0.80"/>
7468
- <tag line="361" name="return" description="" type="void">
7469
  <type by_reference="false">void</type>
7470
  </tag>
7471
  </docblock>
7472
  </method>
7473
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="415" package="Media Library Assistant">
7474
  <name>mla_localize_option_definitions_array</name>
7475
  <full_name>mla_localize_option_definitions_array</full_name>
7476
- <docblock line="405">
7477
  <description><![CDATA[Localize $mla_option_definitions array]]></description>
7478
  <long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
7479
  in the "public static" array definition itself.</p>]]></long-description>
7480
- <tag line="405" name="since" description="1.70"/>
7481
- <tag line="405" name="return" description="" type="void">
7482
  <type by_reference="false">void</type>
7483
  </tag>
7484
  </docblock>
7485
  </method>
7486
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1200" package="Media Library Assistant">
7487
  <name>mla_fetch_gallery_template</name>
7488
  <full_name>mla_fetch_gallery_template</full_name>
7489
- <docblock line="1190">
7490
  <description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
7491
  <long-description><![CDATA[]]></long-description>
7492
- <tag line="1190" name="since" description="0.80"/>
7493
- <tag line="1190" name="param" description="Template name" type="string" variable="$key">
7494
  <type by_reference="false">string</type>
7495
  </tag>
7496
- <tag line="1190" name="param" description="Template type; 'style' (default) or 'markup'" type="string" variable="$type">
7497
  <type by_reference="false">string</type>
7498
  </tag>
7499
- <tag line="1190" name="return" description="requested template, false if not found or null if no templates" type="string|boolean|null">
7500
  <type by_reference="false">string</type>
7501
  <type by_reference="false">boolean</type>
7502
  <type by_reference="false">null</type>
7503
  </tag>
7504
  </docblock>
7505
- <argument line="1200">
7506
  <name>$key</name>
7507
  <default><![CDATA[]]></default>
7508
  <type/>
7509
  </argument>
7510
- <argument line="1200">
7511
  <name>$type</name>
7512
  <default><![CDATA['style']]></default>
7513
  <type/>
7514
  </argument>
7515
  </method>
7516
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1222" package="Media Library Assistant">
7517
  <name>mla_get_style_templates</name>
7518
  <full_name>mla_get_style_templates</full_name>
7519
- <docblock line="1215">
7520
  <description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
7521
  <long-description><![CDATA[]]></long-description>
7522
- <tag line="1215" name="since" description="0.80"/>
7523
- <tag line="1215" name="return" description="name =&gt; value for all style templates or null if no templates" type="array|null">
7524
  <type by_reference="false">array</type>
7525
  <type by_reference="false">null</type>
7526
  </tag>
7527
  </docblock>
7528
  </method>
7529
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1248" package="Media Library Assistant">
7530
  <name>mla_put_style_templates</name>
7531
  <full_name>mla_put_style_templates</full_name>
7532
- <docblock line="1240">
7533
  <description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
7534
  <long-description><![CDATA[]]></long-description>
7535
- <tag line="1240" name="since" description="0.80"/>
7536
- <tag line="1240" name="param" description="name =&gt; value for all user-defined style templates" type="array" variable="$templates">
7537
  <type by_reference="false">array</type>
7538
  </tag>
7539
- <tag line="1240" name="return" description="true if success, false if failure" type="boolean">
7540
  <type by_reference="false">boolean</type>
7541
  </tag>
7542
  </docblock>
7543
- <argument line="1248">
7544
  <name>$templates</name>
7545
  <default><![CDATA[]]></default>
7546
  <type/>
7547
  </argument>
7548
  </method>
7549
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1264" package="Media Library Assistant">
7550
  <name>mla_get_markup_templates</name>
7551
  <full_name>mla_get_markup_templates</full_name>
7552
- <docblock line="1257">
7553
  <description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
7554
  <long-description><![CDATA[]]></long-description>
7555
- <tag line="1257" name="since" description="0.80"/>
7556
- <tag line="1257" name="return" description="name =&gt; value for all markup templates or null if no templates" type="array|null">
7557
  <type by_reference="false">array</type>
7558
  <type by_reference="false">null</type>
7559
  </tag>
7560
  </docblock>
7561
  </method>
7562
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1319" package="Media Library Assistant">
7563
  <name>mla_put_markup_templates</name>
7564
  <full_name>mla_put_markup_templates</full_name>
7565
- <docblock line="1311">
7566
  <description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
7567
  <long-description><![CDATA[]]></long-description>
7568
- <tag line="1311" name="since" description="0.80"/>
7569
- <tag line="1311" name="param" description="name =&gt; value for all user-defined markup templates" type="array" variable="$templates">
7570
  <type by_reference="false">array</type>
7571
  </tag>
7572
- <tag line="1311" name="return" description="true if success, false if failure" type="boolean">
7573
  <type by_reference="false">boolean</type>
7574
  </tag>
7575
  </docblock>
7576
- <argument line="1319">
7577
  <name>$templates</name>
7578
  <default><![CDATA[]]></default>
7579
  <type/>
7580
  </argument>
7581
  </method>
7582
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1339" package="Media Library Assistant">
7583
  <name>mla_get_option</name>
7584
  <full_name>mla_get_option</full_name>
7585
- <docblock line="1328">
7586
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
7587
  <long-description><![CDATA[]]></long-description>
7588
- <tag line="1328" name="since" description="0.1"/>
7589
- <tag line="1328" name="param" description="Name of the desired option" type="string" variable="$option">
7590
  <type by_reference="false">string</type>
7591
  </tag>
7592
- <tag line="1328" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
7593
  <type by_reference="false">boolean</type>
7594
  </tag>
7595
- <tag line="1328" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
7596
  <type by_reference="false">boolean</type>
7597
  </tag>
7598
- <tag line="1328" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
7599
  <type by_reference="false">mixed</type>
7600
  </tag>
7601
  </docblock>
7602
- <argument line="1339">
7603
  <name>$option</name>
7604
  <default><![CDATA[]]></default>
7605
  <type/>
7606
  </argument>
7607
- <argument line="1339">
7608
  <name>$get_default</name>
7609
  <default><![CDATA[false]]></default>
7610
  <type/>
7611
  </argument>
7612
- <argument line="1339">
7613
  <name>$get_stored</name>
7614
  <default><![CDATA[false]]></default>
7615
  <type/>
7616
  </argument>
7617
  </method>
7618
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1369" package="Media Library Assistant">
7619
  <name>mla_update_option</name>
7620
  <full_name>mla_update_option</full_name>
7621
- <docblock line="1359">
7622
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
7623
  <long-description><![CDATA[]]></long-description>
7624
- <tag line="1359" name="since" description="0.1"/>
7625
- <tag line="1359" name="param" description="Name of the desired option" type="string" variable="$option">
7626
  <type by_reference="false">string</type>
7627
  </tag>
7628
- <tag line="1359" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
7629
  <type by_reference="false">mixed</type>
7630
  </tag>
7631
- <tag line="1359" name="return" description="True if the value was changed or false if the update failed" type="boolean">
7632
  <type by_reference="false">boolean</type>
7633
  </tag>
7634
  </docblock>
7635
- <argument line="1369">
7636
  <name>$option</name>
7637
  <default><![CDATA[]]></default>
7638
  <type/>
7639
  </argument>
7640
- <argument line="1369">
7641
  <name>$newvalue</name>
7642
  <default><![CDATA[]]></default>
7643
  <type/>
7644
  </argument>
7645
  </method>
7646
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1386" package="Media Library Assistant">
7647
  <name>mla_delete_option</name>
7648
  <full_name>mla_delete_option</full_name>
7649
- <docblock line="1377">
7650
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
7651
  <long-description><![CDATA[]]></long-description>
7652
- <tag line="1377" name="since" description="0.1"/>
7653
- <tag line="1377" name="param" description="Name of the desired option" type="string" variable="$option">
7654
  <type by_reference="false">string</type>
7655
  </tag>
7656
- <tag line="1377" name="return" description="True if the option was deleted, otherwise false" type="boolean">
7657
  <type by_reference="false">boolean</type>
7658
  </tag>
7659
  </docblock>
7660
- <argument line="1386">
7661
  <name>$option</name>
7662
  <default><![CDATA[]]></default>
7663
  <type/>
7664
  </argument>
7665
  </method>
7666
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1407" package="Media Library Assistant">
7667
  <name>mla_taxonomy_support</name>
7668
  <full_name>mla_taxonomy_support</full_name>
7669
- <docblock line="1394">
7670
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
7671
  settings are being updated or reset.]]></description>
7672
  <long-description><![CDATA[]]></long-description>
7673
- <tag line="1394" name="since" description="0.30"/>
7674
- <tag line="1394" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
7675
  <type by_reference="false">string</type>
7676
  </tag>
7677
- <tag line="1394" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
7678
  <type by_reference="false">string</type>
7679
  </tag>
7680
- <tag line="1394" 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">
7681
  <type by_reference="false">boolean</type>
7682
  <type by_reference="false">string</type>
7683
  </tag>
7684
  </docblock>
7685
- <argument line="1407">
7686
  <name>$tax_name</name>
7687
  <default><![CDATA[]]></default>
7688
  <type/>
7689
  </argument>
7690
- <argument line="1407">
7691
  <name>$support_type</name>
7692
  <default><![CDATA['support']]></default>
7693
  <type/>
7694
  </argument>
7695
  </method>
7696
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1475" package="Media Library Assistant">
7697
  <name>mla_supported_taxonomies</name>
7698
  <full_name>mla_supported_taxonomies</full_name>
7699
- <docblock line="1466">
7700
  <description><![CDATA[Returns an array of taxonomy names assigned to $support_type]]></description>
7701
  <long-description><![CDATA[]]></long-description>
7702
- <tag line="1466" name="since" description="1.90"/>
7703
- <tag line="1466" name="param" description="Optional. 'support' (default), 'quick-edit', 'flat-checklist', 'term-search' or 'filter'" type="string" variable="$support_type">
7704
  <type by_reference="false">string</type>
7705
  </tag>
7706
- <tag line="1466" name="return" description="taxonomies assigned to $support_type; can be empty." type="array">
7707
  <type by_reference="false">array</type>
7708
  </tag>
7709
  </docblock>
7710
- <argument line="1475">
7711
  <name>$support_type</name>
7712
  <default><![CDATA['support']]></default>
7713
  <type/>
7714
  </argument>
7715
  </method>
7716
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1536" package="Media Library Assistant">
7717
  <name>mla_attachment_display_settings_option_handler</name>
7718
  <full_name>mla_attachment_display_settings_option_handler</full_name>
7719
- <docblock line="1523">
7720
  <description><![CDATA[Render and manage Attachment Display Settings options; alignment, link type and size]]></description>
7721
  <long-description><![CDATA[]]></long-description>
7722
- <tag line="1523" name="since" description="1.71"/>
7723
- <tag line="1523" name="uses" description="\global\MLASettings::$page_template_array" refers="\global\MLASettings::$page_template_array"/>
7724
- <tag line="1523" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
7725
  <type by_reference="false">string</type>
7726
  </tag>
7727
- <tag line="1523" name="param" description="option name, e.g., 'image_default_align'" type="string" variable="$key">
7728
  <type by_reference="false">string</type>
7729
  </tag>
7730
- <tag line="1523" name="param" description="option parameters" type="array" variable="$value">
7731
  <type by_reference="false">array</type>
7732
  </tag>
7733
- <tag line="1523" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
7734
  <type by_reference="false">array</type>
7735
  </tag>
7736
- <tag line="1523" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
7737
  <type by_reference="false">string</type>
7738
  </tag>
7739
  </docblock>
7740
- <argument line="1536">
7741
  <name>$action</name>
7742
  <default><![CDATA[]]></default>
7743
  <type/>
7744
  </argument>
7745
- <argument line="1536">
7746
  <name>$key</name>
7747
  <default><![CDATA[]]></default>
7748
  <type/>
7749
  </argument>
7750
- <argument line="1536">
7751
  <name>$value</name>
7752
  <default><![CDATA[]]></default>
7753
  <type/>
7754
  </argument>
7755
- <argument line="1536">
7756
  <name>$args</name>
7757
  <default><![CDATA[null]]></default>
7758
  <type/>
7759
  </argument>
7760
  </method>
7761
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1600" package="Media Library Assistant">
7762
  <name>mla_taxonomy_option_handler</name>
7763
  <full_name>mla_taxonomy_option_handler</full_name>
7764
- <docblock line="1587">
7765
  <description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
7766
  <long-description><![CDATA[]]></long-description>
7767
- <tag line="1587" name="since" description="0.30"/>
7768
- <tag line="1587" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7769
- <tag line="1587" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
7770
  <type by_reference="false">string</type>
7771
  </tag>
7772
- <tag line="1587" name="param" description="option name, e.g., 'tax_support', or 'tax_flat_checklist'" type="string" variable="$key">
7773
  <type by_reference="false">string</type>
7774
  </tag>
7775
- <tag line="1587" name="param" description="option parameters" type="array" variable="$value">
7776
  <type by_reference="false">array</type>
7777
  </tag>
7778
- <tag line="1587" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
7779
  <type by_reference="false">array</type>
7780
  </tag>
7781
- <tag line="1587" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
7782
  <type by_reference="false">string</type>
7783
  </tag>
7784
  </docblock>
7785
- <argument line="1600">
7786
  <name>$action</name>
7787
  <default><![CDATA[]]></default>
7788
  <type/>
7789
  </argument>
7790
- <argument line="1600">
7791
  <name>$key</name>
7792
  <default><![CDATA[]]></default>
7793
  <type/>
7794
  </argument>
7795
- <argument line="1600">
7796
  <name>$value</name>
7797
  <default><![CDATA[]]></default>
7798
  <type/>
7799
  </argument>
7800
- <argument line="1600">
7801
  <name>$args</name>
7802
  <default><![CDATA[null]]></default>
7803
  <type/>
7804
  </argument>
7805
  </method>
7806
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1764" package="Media Library Assistant">
7807
  <name>mla_search_option_handler</name>
7808
  <full_name>mla_search_option_handler</full_name>
7809
- <docblock line="1751">
7810
  <description><![CDATA[Render and manage Search box options, e.g., connector and search fields]]></description>
7811
  <long-description><![CDATA[]]></long-description>
7812
- <tag line="1751" name="since" description="1.90"/>
7813
- <tag line="1751" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7814
- <tag line="1751" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
7815
  <type by_reference="false">string</type>
7816
  </tag>
7817
- <tag line="1751" name="param" description="option name; 'search_connector' or 'search_fields'" type="string" variable="$key">
7818
  <type by_reference="false">string</type>
7819
  </tag>
7820
- <tag line="1751" name="param" description="option parameters" type="array" variable="$value">
7821
  <type by_reference="false">array</type>
7822
  </tag>
7823
- <tag line="1751" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
7824
  <type by_reference="false">array</type>
7825
  </tag>
7826
- <tag line="1751" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
7827
  <type by_reference="false">string</type>
7828
  </tag>
7829
  </docblock>
7830
- <argument line="1764">
7831
  <name>$action</name>
7832
  <default><![CDATA[]]></default>
7833
  <type/>
7834
  </argument>
7835
- <argument line="1764">
7836
  <name>$key</name>
7837
  <default><![CDATA[]]></default>
7838
  <type/>
7839
  </argument>
7840
- <argument line="1764">
7841
  <name>$value</name>
7842
  <default><![CDATA[]]></default>
7843
  <type/>
7844
  </argument>
7845
- <argument line="1764">
7846
  <name>$args</name>
7847
  <default><![CDATA[null]]></default>
7848
  <type/>
7849
  </argument>
7850
  </method>
7851
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1835" package="Media Library Assistant">
7852
  <name>mla_wp_handle_upload_prefilter_filter</name>
7853
  <full_name>mla_wp_handle_upload_prefilter_filter</full_name>
7854
- <docblock line="1826">
7855
  <description><![CDATA[Examine or alter the filename before the file is made permanent]]></description>
7856
  <long-description><![CDATA[]]></long-description>
7857
- <tag line="1826" name="since" description="1.70"/>
7858
- <tag line="1826" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
7859
  <type by_reference="false">array</type>
7860
  </tag>
7861
- <tag line="1826" name="return" description="updated file parameters" type="array">
7862
  <type by_reference="false">array</type>
7863
  </tag>
7864
  </docblock>
7865
- <argument line="1835">
7866
  <name>$file</name>
7867
  <default><![CDATA[]]></default>
7868
  <type/>
7869
  </argument>
7870
  </method>
7871
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1866" package="Media Library Assistant">
7872
  <name>mla_wp_handle_upload_filter</name>
7873
  <full_name>mla_wp_handle_upload_filter</full_name>
7874
- <docblock line="1857">
7875
  <description><![CDATA[Called once for each file uploaded]]></description>
7876
  <long-description><![CDATA[]]></long-description>
7877
- <tag line="1857" name="since" description="1.70"/>
7878
- <tag line="1857" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
7879
  <type by_reference="false">array</type>
7880
  </tag>
7881
- <tag line="1857" name="return" description="updated file parameters" type="array">
7882
  <type by_reference="false">array</type>
7883
  </tag>
7884
  </docblock>
7885
- <argument line="1866">
7886
  <name>$file</name>
7887
  <default><![CDATA[]]></default>
7888
  <type/>
7889
  </argument>
7890
  </method>
7891
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1910" package="Media Library Assistant">
7892
  <name>mla_add_attachment_action</name>
7893
  <full_name>mla_add_attachment_action</full_name>
7894
- <docblock line="1899">
7895
  <description><![CDATA[Set $add_attachment_id to just-inserted attachment]]></description>
7896
  <long-description><![CDATA[<p>All of the actual processing is done later, in mla_update_attachment_metadata_filter.</p>]]></long-description>
7897
- <tag line="1899" name="since" description="1.00"/>
7898
- <tag line="1899" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_ID">
7899
  <type by_reference="false">integer</type>
7900
  </tag>
7901
- <tag line="1899" name="return" description="" type="void">
7902
  <type by_reference="false">void</type>
7903
  </tag>
7904
  </docblock>
7905
- <argument line="1910">
7906
  <name>$post_ID</name>
7907
  <default><![CDATA[]]></default>
7908
  <type/>
7909
  </argument>
7910
  </method>
7911
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1925" package="Media Library Assistant">
7912
  <name>_update_attachment_metadata</name>
7913
  <full_name>_update_attachment_metadata</full_name>
7914
- <docblock line="1915">
7915
  <description><![CDATA[Update _wp_attachment_metadata for just-inserted attachment]]></description>
7916
  <long-description><![CDATA[]]></long-description>
7917
- <tag line="1915" name="since" description="1.70"/>
7918
- <tag line="1915" name="param" description="Attachment metadata updates" type="array" variable="$updates">
7919
  <type by_reference="false">array</type>
7920
  </tag>
7921
- <tag line="1915" name="param" description="Attachment metadata, by reference; updated by this function" type="array" variable="$data">
7922
  <type by_reference="false">array</type>
7923
  </tag>
7924
- <tag line="1915" name="return" description="Attachment metadata updates, with &quot;meta:&quot; elements removed" type="array">
7925
  <type by_reference="false">array</type>
7926
  </tag>
7927
  </docblock>
7928
- <argument line="1925">
7929
  <name>$updates</name>
7930
  <default><![CDATA[]]></default>
7931
  <type/>
7932
  </argument>
7933
- <argument line="1925">
7934
  <name>$data</name>
7935
  <default><![CDATA[]]></default>
7936
  <type/>
7937
  </argument>
7938
  </method>
7939
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1961" package="Media Library Assistant">
7940
  <name>mla_update_attachment_metadata_filter</name>
7941
  <full_name>mla_update_attachment_metadata_filter</full_name>
7942
- <docblock line="1948">
7943
  <description><![CDATA[Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment]]></description>
7944
  <long-description><![CDATA[<p>This filter tests the $add_attachment_id variable set by the mla_add_attachment_action
7945
  to ensure that mapping is only performed for new additions, not metadata updates.</p>]]></long-description>
7946
- <tag line="1948" name="since" description="1.10"/>
7947
- <tag line="1948" name="param" description="Attachment metadata for just-inserted attachment" type="array" variable="$data">
7948
  <type by_reference="false">array</type>
7949
  </tag>
7950
- <tag line="1948" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
7951
  <type by_reference="false">integer</type>
7952
  </tag>
7953
- <tag line="1948" name="return" description="Updated attachment metadata" type="array">
7954
  <type by_reference="false">array</type>
7955
  </tag>
7956
  </docblock>
7957
- <argument line="1961">
7958
  <name>$data</name>
7959
  <default><![CDATA[]]></default>
7960
  <type/>
7961
  </argument>
7962
- <argument line="1961">
7963
  <name>$post_id</name>
7964
  <default><![CDATA[]]></default>
7965
  <type/>
7966
  </argument>
7967
  </method>
7968
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2043" package="Media Library Assistant">
7969
  <name>mla_custom_field_option_value</name>
7970
  <full_name>mla_custom_field_option_value</full_name>
7971
- <docblock line="2034">
7972
  <description><![CDATA[Fetch custom field option value given a slug]]></description>
7973
  <long-description><![CDATA[]]></long-description>
7974
- <tag line="2034" name="since" description="1.10"/>
7975
- <tag line="2034" name="param" description="slug, e.g., 'c_file-size' for the 'File Size' field" type="string" variable="$slug">
7976
  <type by_reference="false">string</type>
7977
  </tag>
7978
- <tag line="2034" name="return" description="option value, e.g., array( 'name' =&gt; 'File Size', ... )" type="array">
7979
  <type by_reference="false">array</type>
7980
  </tag>
7981
  </docblock>
7982
- <argument line="2043">
7983
  <name>$slug</name>
7984
  <default><![CDATA[]]></default>
7985
  <type/>
7986
  </argument>
7987
  </method>
7988
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2064" package="Media Library Assistant">
7989
  <name>mla_custom_field_support</name>
7990
  <full_name>mla_custom_field_support</full_name>
7991
- <docblock line="2055">
7992
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
7993
  <long-description><![CDATA[]]></long-description>
7994
- <tag line="2055" name="since" description="1.10"/>
7995
- <tag line="2055" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
7996
  <type by_reference="false">string</type>
7997
  </tag>
7998
- <tag line="2055" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
7999
  <type by_reference="false">array</type>
8000
  </tag>
8001
  </docblock>
8002
- <argument line="2064">
8003
  <name>$support_type</name>
8004
  <default><![CDATA['default_columns']]></default>
8005
  <type/>
8006
  </argument>
8007
  </method>
8008
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2115" package="Media Library Assistant">
8009
  <name>_evaluate_file_information</name>
8010
  <full_name>_evaluate_file_information</full_name>
8011
- <docblock line="2103">
8012
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
8013
  <long-description><![CDATA[]]></long-description>
8014
- <tag line="2103" name="since" description="1.10"/>
8015
- <tag line="2103" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
8016
  <type by_reference="false">string</type>
8017
  </tag>
8018
- <tag line="2103" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
8019
  <type by_reference="false">array</type>
8020
  </tag>
8021
- <tag line="2103" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
8022
  <type by_reference="false">array</type>
8023
  </tag>
8024
- <tag line="2103" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
8025
  <type by_reference="false">integer</type>
8026
  </tag>
8027
- <tag line="2103" 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">
8028
  <type by_reference="false">array</type>
8029
  </tag>
8030
  </docblock>
8031
- <argument line="2115">
8032
  <name>$upload_dir</name>
8033
  <default><![CDATA[]]></default>
8034
  <type/>
8035
  </argument>
8036
- <argument line="2115">
8037
  <name>$wp_attached_files</name>
8038
  <default><![CDATA[]]></default>
8039
  <type/>
8040
  </argument>
8041
- <argument line="2115">
8042
  <name>$wp_attachment_metadata</name>
8043
  <default><![CDATA[]]></default>
8044
  <type/>
8045
  </argument>
8046
- <argument line="2115">
8047
  <name>$post_id</name>
8048
  <default><![CDATA[]]></default>
8049
  <type/>
8050
  </argument>
8051
  </method>
8052
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2201" package="Media Library Assistant">
8053
  <name>_evaluate_post_information</name>
8054
  <full_name>_evaluate_post_information</full_name>
8055
- <docblock line="2190">
8056
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
8057
  <long-description><![CDATA[]]></long-description>
8058
- <tag line="2190" name="since" description="1.40"/>
8059
- <tag line="2190" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
8060
  <type by_reference="false">integer</type>
8061
  </tag>
8062
- <tag line="2190" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
8063
  <type by_reference="false">string</type>
8064
  </tag>
8065
- <tag line="2190" name="param" description="data source name ( post_date or post_parent )" type="string" variable="$data_source">
8066
  <type by_reference="false">string</type>
8067
  </tag>
8068
- <tag line="2190" name="return" description="'post_date' =&gt; (string) upload date, 'post_parent' =&gt; (integer) ID of parent or zero )" type="mixed">
8069
  <type by_reference="false">mixed</type>
8070
  </tag>
8071
  </docblock>
8072
- <argument line="2201">
8073
  <name>$post_id</name>
8074
  <default><![CDATA[]]></default>
8075
  <type/>
8076
  </argument>
8077
- <argument line="2201">
8078
  <name>$category</name>
8079
  <default><![CDATA[]]></default>
8080
  <type/>
8081
  </argument>
8082
- <argument line="2201">
8083
  <name>$data_source</name>
8084
  <default><![CDATA[]]></default>
8085
  <type/>
8086
  </argument>
8087
  </method>
8088
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2252" package="Media Library Assistant">
8089
  <name>_evaluate_array_result</name>
8090
  <full_name>_evaluate_array_result</full_name>
8091
- <docblock line="2241">
8092
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
8093
  <long-description><![CDATA[]]></long-description>
8094
- <tag line="2241" name="since" description="1.40"/>
8095
- <tag line="2241" name="param" description="field value(s)" type="array" variable="$value">
8096
  <type by_reference="false">array</type>
8097
  </tag>
8098
- <tag line="2241" name="param" description="format option text|single|export|array|multi" type="string" variable="$option">
8099
  <type by_reference="false">string</type>
8100
  </tag>
8101
- <tag line="2241" name="param" description="keep existing value(s) - for 'multi' option" type="boolean" variable="$keep_existing">
8102
  <type by_reference="false">boolean</type>
8103
  </tag>
8104
- <tag line="2241" name="return" description="array for option = array|multi else string" type="mixed">
8105
  <type by_reference="false">mixed</type>
8106
  </tag>
8107
  </docblock>
8108
- <argument line="2252">
8109
  <name>$value</name>
8110
  <default><![CDATA[]]></default>
8111
  <type/>
8112
  </argument>
8113
- <argument line="2252">
8114
  <name>$option</name>
8115
  <default><![CDATA[]]></default>
8116
  <type/>
8117
  </argument>
8118
- <argument line="2252">
8119
  <name>$keep_existing</name>
8120
  <default><![CDATA[]]></default>
8121
  <type/>
8122
  </argument>
8123
  </method>
8124
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2292" package="Media Library Assistant">
8125
  <name>mla_get_data_source</name>
8126
  <full_name>mla_get_data_source</full_name>
8127
- <docblock line="2277">
8128
  <description><![CDATA[Get IPTC/EXIF or custom field mapping data source]]></description>
8129
  <long-description><![CDATA[<p>Defined as public so MLA Mapping Hooks clients can call it.
8130
  Isolates clients from changes to _evaluate_data_source().</p>]]></long-description>
8131
- <tag line="2277" name="since" description="1.70"/>
8132
- <tag line="2277" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
8133
  <type by_reference="false">integer</type>
8134
  </tag>
8135
- <tag line="2277" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
8136
  <type by_reference="false">string</type>
8137
  </tag>
8138
- <tag line="2277" 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">
8139
  <type by_reference="false">array</type>
8140
  </tag>
8141
- <tag line="2277" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
8142
  <type by_reference="false">array</type>
8143
  </tag>
8144
- <tag line="2277" name="return" description="data source value" type="string|array">
8145
  <type by_reference="false">string</type>
8146
  <type by_reference="false">array</type>
8147
  </tag>
8148
  </docblock>
8149
- <argument line="2292">
8150
  <name>$post_id</name>
8151
  <default><![CDATA[]]></default>
8152
  <type/>
8153
  </argument>
8154
- <argument line="2292">
8155
  <name>$category</name>
8156
  <default><![CDATA[]]></default>
8157
  <type/>
8158
  </argument>
8159
- <argument line="2292">
8160
  <name>$data_value</name>
8161
  <default><![CDATA[]]></default>
8162
  <type/>
8163
  </argument>
8164
- <argument line="2292">
8165
  <name>$attachment_metadata</name>
8166
  <default><![CDATA[NULL]]></default>
8167
  <type/>
8168
  </argument>
8169
  </method>
8170
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2317" package="Media Library Assistant">
8171
  <name>mla_is_data_source</name>
8172
  <full_name>mla_is_data_source</full_name>
8173
- <docblock line="2305">
8174
  <description><![CDATA[Identify custom field mapping data source]]></description>
8175
  <long-description><![CDATA[<p>Determines whether a name matches any of the element-level data source dropdown options, i.e.,
8176
  excludes "template:" and "meta:" values.</p>]]></long-description>
8177
- <tag line="2305" name="since" description="1.80"/>
8178
- <tag line="2305" name="param" description="candidate data source name" type="string" variable="$candidate_name">
8179
  <type by_reference="false">string</type>
8180
  </tag>
8181
- <tag line="2305" name="return" description="true if candidate name matches a data source" type="boolean">
8182
  <type by_reference="false">boolean</type>
8183
  </tag>
8184
  </docblock>
8185
- <argument line="2317">
8186
  <name>$candidate_name</name>
8187
  <default><![CDATA[]]></default>
8188
  <type/>
8189
  </argument>
8190
  </method>
8191
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2352" package="Media Library Assistant">
8192
  <name>_evaluate_data_source</name>
8193
  <full_name>_evaluate_data_source</full_name>
8194
- <docblock line="2340">
8195
  <description><![CDATA[Evaluate custom field mapping data source]]></description>
8196
  <long-description><![CDATA[]]></long-description>
8197
- <tag line="2340" name="since" description="1.10"/>
8198
- <tag line="2340" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
8199
  <type by_reference="false">integer</type>
8200
  </tag>
8201
- <tag line="2340" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
8202
  <type by_reference="false">string</type>
8203
  </tag>
8204
- <tag line="2340" 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">
8205
  <type by_reference="false">array</type>
8206
  </tag>
8207
- <tag line="2340" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
8208
  <type by_reference="false">array</type>
8209
  </tag>
8210
- <tag line="2340" name="return" description="data source value" type="string|array">
8211
  <type by_reference="false">string</type>
8212
  <type by_reference="false">array</type>
8213
  </tag>
8214
  </docblock>
8215
- <argument line="2352">
8216
  <name>$post_id</name>
8217
  <default><![CDATA[]]></default>
8218
  <type/>
8219
  </argument>
8220
- <argument line="2352">
8221
  <name>$category</name>
8222
  <default><![CDATA[]]></default>
8223
  <type/>
8224
  </argument>
8225
- <argument line="2352">
8226
  <name>$data_value</name>
8227
  <default><![CDATA[]]></default>
8228
  <type/>
8229
  </argument>
8230
- <argument line="2352">
8231
  <name>$attachment_metadata</name>
8232
  <default><![CDATA[NULL]]></default>
8233
  <type/>
8234
  </argument>
8235
  </method>
8236
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2781" package="Media Library Assistant">
8237
  <name>mla_evaluate_custom_field_mapping</name>
8238
  <full_name>mla_evaluate_custom_field_mapping</full_name>
8239
- <docblock line="2769">
8240
  <description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
8241
  <long-description><![CDATA[]]></long-description>
8242
- <tag line="2769" name="since" description="1.10"/>
8243
- <tag line="2769" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
8244
  <type by_reference="false">integer</type>
8245
  </tag>
8246
- <tag line="2769" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
8247
  <type by_reference="false">string</type>
8248
  </tag>
8249
- <tag line="2769" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
8250
  <type by_reference="false">array</type>
8251
  </tag>
8252
- <tag line="2769" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
8253
  <type by_reference="false">array</type>
8254
  </tag>
8255
- <tag line="2769" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
8256
  <type by_reference="false">array</type>
8257
  </tag>
8258
  </docblock>
8259
- <argument line="2781">
8260
  <name>$post_id</name>
8261
  <default><![CDATA[]]></default>
8262
  <type/>
8263
  </argument>
8264
- <argument line="2781">
8265
  <name>$category</name>
8266
  <default><![CDATA[]]></default>
8267
  <type/>
8268
  </argument>
8269
- <argument line="2781">
8270
  <name>$settings</name>
8271
  <default><![CDATA[NULL]]></default>
8272
  <type/>
8273
  </argument>
8274
- <argument line="2781">
8275
  <name>$attachment_metadata</name>
8276
  <default><![CDATA[NULL]]></default>
8277
  <type/>
8278
  </argument>
8279
  </method>
8280
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2880" package="Media Library Assistant">
8281
  <name>_compose_custom_field_option_list</name>
8282
  <full_name>_compose_custom_field_option_list</full_name>
8283
- <docblock line="2869">
8284
  <description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
8285
  <long-description><![CDATA[]]></long-description>
8286
- <tag line="2869" name="since" description="1.10"/>
8287
- <tag line="2869" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8288
- <tag line="2869" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
8289
  <type by_reference="false">string</type>
8290
  </tag>
8291
- <tag line="2869" name="param" description="optional list of terms to exclude from the list" type="array" variable="$blacklist">
8292
  <type by_reference="false">array</type>
8293
  </tag>
8294
- <tag line="2869" name="return" description="HTML markup with select field options" type="string">
8295
  <type by_reference="false">string</type>
8296
  </tag>
8297
  </docblock>
8298
- <argument line="2880">
8299
  <name>$selection</name>
8300
  <default><![CDATA['none']]></default>
8301
  <type/>
8302
  </argument>
8303
- <argument line="2880">
8304
  <name>$blacklist</name>
8305
  <default><![CDATA[array()]]></default>
8306
  <type/>
8307
  </argument>
8308
  </method>
8309
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2999" package="Media Library Assistant">
8310
  <name>_compose_data_source_option_list</name>
8311
  <full_name>_compose_data_source_option_list</full_name>
8312
- <docblock line="2989">
8313
  <description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
8314
  <long-description><![CDATA[]]></long-description>
8315
- <tag line="2989" name="since" description="1.10"/>
8316
- <tag line="2989" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8317
- <tag line="2989" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
8318
  <type by_reference="false">string</type>
8319
  </tag>
8320
- <tag line="2989" name="return" description="HTML markup with select field options" type="string">
8321
  <type by_reference="false">string</type>
8322
  </tag>
8323
  </docblock>
8324
- <argument line="2999">
8325
  <name>$selection</name>
8326
  <default><![CDATA['none']]></default>
8327
  <type/>
8328
  </argument>
8329
  </method>
8330
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3063" package="Media Library Assistant">
8331
  <name>_update_custom_field_mapping</name>
8332
  <full_name>_update_custom_field_mapping</full_name>
8333
- <docblock line="3053">
8334
  <description><![CDATA[Update custom field mappings]]></description>
8335
  <long-description><![CDATA[]]></long-description>
8336
- <tag line="3053" name="since" description="1.10"/>
8337
- <tag line="3053" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
8338
  <type by_reference="false">array</type>
8339
  </tag>
8340
- <tag line="3053" name="param" description="new values" type="array" variable="$new_values">
8341
  <type by_reference="false">array</type>
8342
  </tag>
8343
- <tag line="3053" 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">
8344
  <type by_reference="false">array</type>
8345
  </tag>
8346
  </docblock>
8347
- <argument line="3063">
8348
  <name>$current_values</name>
8349
  <default><![CDATA[]]></default>
8350
  <type/>
8351
  </argument>
8352
- <argument line="3063">
8353
  <name>$new_values</name>
8354
  <default><![CDATA[]]></default>
8355
  <type/>
8356
  </argument>
8357
  </method>
8358
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3276" package="Media Library Assistant">
8359
  <name>mla_custom_field_option_handler</name>
8360
  <full_name>mla_custom_field_option_handler</full_name>
8361
- <docblock line="3263">
8362
  <description><![CDATA[Render and manage custom field mapping options]]></description>
8363
  <long-description><![CDATA[]]></long-description>
8364
- <tag line="3263" name="since" description="1.10"/>
8365
- <tag line="3263" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8366
- <tag line="3263" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
8367
  <type by_reference="false">string</type>
8368
  </tag>
8369
- <tag line="3263" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
8370
  <type by_reference="false">string</type>
8371
  </tag>
8372
- <tag line="3263" name="param" description="option parameters" type="array" variable="$value">
8373
  <type by_reference="false">array</type>
8374
  </tag>
8375
- <tag line="3263" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
8376
  <type by_reference="false">array</type>
8377
  </tag>
8378
- <tag line="3263" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
8379
  <type by_reference="false">string</type>
8380
  </tag>
8381
  </docblock>
8382
- <argument line="3276">
8383
  <name>$action</name>
8384
  <default><![CDATA[]]></default>
8385
  <type/>
8386
  </argument>
8387
- <argument line="3276">
8388
  <name>$key</name>
8389
  <default><![CDATA[]]></default>
8390
  <type/>
8391
  </argument>
8392
- <argument line="3276">
8393
  <name>$value</name>
8394
  <default><![CDATA[]]></default>
8395
  <type/>
8396
  </argument>
8397
- <argument line="3276">
8398
  <name>$args</name>
8399
  <default><![CDATA[null]]></default>
8400
  <type/>
8401
  </argument>
8402
  </method>
8403
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3529" package="Media Library Assistant">
8404
  <name>mla_evaluate_iptc_exif_mapping</name>
8405
  <full_name>mla_evaluate_iptc_exif_mapping</full_name>
8406
- <docblock line="3517">
8407
  <description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
8408
  <long-description><![CDATA[]]></long-description>
8409
- <tag line="3517" name="since" description="1.00"/>
8410
- <tag line="3517" name="param" description="post object with current values" type="object" variable="$post">
8411
  <type by_reference="false">object</type>
8412
  </tag>
8413
- <tag line="3517" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
8414
  <type by_reference="false">string</type>
8415
  </tag>
8416
- <tag line="3517" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
8417
  <type by_reference="false">array</type>
8418
  </tag>
8419
- <tag line="3517" name="param" description="(optional) _wp_attachment_metadata, for MLAOptions::mla_update_attachment_metadata_filter" type="array" variable="$attachment_metadata">
8420
  <type by_reference="false">array</type>
8421
  </tag>
8422
- <tag line="3517" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
8423
  <type by_reference="false">array</type>
8424
  </tag>
8425
  </docblock>
8426
- <argument line="3529">
8427
  <name>$post</name>
8428
  <default><![CDATA[]]></default>
8429
  <type/>
8430
  </argument>
8431
- <argument line="3529">
8432
  <name>$category</name>
8433
  <default><![CDATA[]]></default>
8434
  <type/>
8435
  </argument>
8436
- <argument line="3529">
8437
  <name>$settings</name>
8438
  <default><![CDATA[NULL]]></default>
8439
  <type/>
8440
  </argument>
8441
- <argument line="3529">
8442
  <name>$attachment_metadata</name>
8443
  <default><![CDATA[NULL]]></default>
8444
  <type/>
8445
  </argument>
8446
  </method>
8447
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3840" package="Media Library Assistant">
8448
  <name>_compose_iptc_option_list</name>
8449
  <full_name>_compose_iptc_option_list</full_name>
8450
- <docblock line="3830">
8451
  <description><![CDATA[Compose an IPTC Options list with current selection]]></description>
8452
  <long-description><![CDATA[]]></long-description>
8453
- <tag line="3830" name="since" description="1.00"/>
8454
- <tag line="3830" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8455
- <tag line="3830" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
8456
  <type by_reference="false">string</type>
8457
  </tag>
8458
- <tag line="3830" name="return" description="HTML markup with select field options" type="string">
8459
  <type by_reference="false">string</type>
8460
  </tag>
8461
  </docblock>
8462
- <argument line="3840">
8463
  <name>$selection</name>
8464
  <default><![CDATA['none']]></default>
8465
  <type/>
8466
  </argument>
8467
  </method>
8468
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3873" package="Media Library Assistant">
8469
  <name>_compose_parent_option_list</name>
8470
  <full_name>_compose_parent_option_list</full_name>
8471
- <docblock line="3862">
8472
  <description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
8473
  <long-description><![CDATA[]]></long-description>
8474
- <tag line="3862" name="since" description="1.00"/>
8475
- <tag line="3862" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8476
- <tag line="3862" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
8477
  <type by_reference="false">string</type>
8478
  </tag>
8479
- <tag line="3862" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
8480
  <type by_reference="false">integer</type>
8481
  </tag>
8482
- <tag line="3862" name="return" description="HTML markup with select field options" type="string">
8483
  <type by_reference="false">string</type>
8484
  </tag>
8485
  </docblock>
8486
- <argument line="3873">
8487
  <name>$taxonomy</name>
8488
  <default><![CDATA[]]></default>
8489
  <type/>
8490
  </argument>
8491
- <argument line="3873">
8492
  <name>$selection</name>
8493
  <default><![CDATA[0]]></default>
8494
  <type/>
8495
  </argument>
8496
  </method>
8497
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3919" package="Media Library Assistant">
8498
  <name>_update_iptc_exif_standard_mapping</name>
8499
  <full_name>_update_iptc_exif_standard_mapping</full_name>
8500
- <docblock line="3909">
8501
  <description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
8502
  <long-description><![CDATA[]]></long-description>
8503
- <tag line="3909" name="since" description="1.00"/>
8504
- <tag line="3909" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
8505
  <type by_reference="false">array</type>
8506
  </tag>
8507
- <tag line="3909" name="param" description="new values" type="array" variable="$new_values">
8508
  <type by_reference="false">array</type>
8509
  </tag>
8510
- <tag line="3909" 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">
8511
  <type by_reference="false">array</type>
8512
  </tag>
8513
  </docblock>
8514
- <argument line="3919">
8515
  <name>$current_values</name>
8516
  <default><![CDATA[]]></default>
8517
  <type/>
8518
  </argument>
8519
- <argument line="3919">
8520
  <name>$new_values</name>
8521
  <default><![CDATA[]]></default>
8522
  <type/>
8523
  </argument>
8524
  </method>
8525
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4012" package="Media Library Assistant">
8526
  <name>_update_iptc_exif_taxonomy_mapping</name>
8527
  <full_name>_update_iptc_exif_taxonomy_mapping</full_name>
8528
- <docblock line="4002">
8529
  <description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
8530
  <long-description><![CDATA[]]></long-description>
8531
- <tag line="4002" name="since" description="1.00"/>
8532
- <tag line="4002" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
8533
  <type by_reference="false">array</type>
8534
  </tag>
8535
- <tag line="4002" name="param" description="new values" type="array" variable="$new_values">
8536
  <type by_reference="false">array</type>
8537
  </tag>
8538
- <tag line="4002" 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">
8539
  <type by_reference="false">array</type>
8540
  </tag>
8541
  </docblock>
8542
- <argument line="4012">
8543
  <name>$current_values</name>
8544
  <default><![CDATA[]]></default>
8545
  <type/>
8546
  </argument>
8547
- <argument line="4012">
8548
  <name>$new_values</name>
8549
  <default><![CDATA[]]></default>
8550
  <type/>
8551
  </argument>
8552
  </method>
8553
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4127" package="Media Library Assistant">
8554
  <name>_update_iptc_exif_custom_mapping</name>
8555
  <full_name>_update_iptc_exif_custom_mapping</full_name>
8556
- <docblock line="4117">
8557
  <description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
8558
  <long-description><![CDATA[]]></long-description>
8559
- <tag line="4117" name="since" description="1.00"/>
8560
- <tag line="4117" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
8561
  <type by_reference="false">array</type>
8562
  </tag>
8563
- <tag line="4117" name="param" description="new values" type="array" variable="$new_values">
8564
  <type by_reference="false">array</type>
8565
  </tag>
8566
- <tag line="4117" 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">
8567
  <type by_reference="false">array</type>
8568
  </tag>
8569
  </docblock>
8570
- <argument line="4127">
8571
  <name>$current_values</name>
8572
  <default><![CDATA[]]></default>
8573
  <type/>
8574
  </argument>
8575
- <argument line="4127">
8576
  <name>$new_values</name>
8577
  <default><![CDATA[]]></default>
8578
  <type/>
8579
  </argument>
8580
  </method>
8581
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4257" package="Media Library Assistant">
8582
  <name>_get_custom_field_names</name>
8583
  <full_name>_get_custom_field_names</full_name>
8584
- <docblock line="4247">
8585
  <description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
8586
  <long-description><![CDATA[<p>The list will include any Custom Field and IPTC/EXIF rules that
8587
  haven't been mapped to any attachments, yet.</p>]]></long-description>
8588
- <tag line="4247" name="since" description="1.00"/>
8589
- <tag line="4247" name="return" description="Custom field names from the postmeta table and MLA rules" type="array">
8590
  <type by_reference="false">array</type>
8591
  </tag>
8592
  </docblock>
8593
  </method>
8594
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4303" package="Media Library Assistant">
8595
  <name>mla_iptc_exif_option_handler</name>
8596
  <full_name>mla_iptc_exif_option_handler</full_name>
8597
- <docblock line="4290">
8598
  <description><![CDATA[Render and manage iptc/exif support options]]></description>
8599
  <long-description><![CDATA[]]></long-description>
8600
- <tag line="4290" name="since" description="1.00"/>
8601
- <tag line="4290" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8602
- <tag line="4290" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
8603
  <type by_reference="false">string</type>
8604
  </tag>
8605
- <tag line="4290" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
8606
  <type by_reference="false">string</type>
8607
  </tag>
8608
- <tag line="4290" name="param" description="option parameters" type="array" variable="$value">
8609
  <type by_reference="false">array</type>
8610
  </tag>
8611
- <tag line="4290" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
8612
  <type by_reference="false">array</type>
8613
  </tag>
8614
- <tag line="4290" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
8615
  <type by_reference="false">string</type>
8616
  </tag>
8617
  </docblock>
8618
- <argument line="4303">
8619
  <name>$action</name>
8620
  <default><![CDATA[]]></default>
8621
  <type/>
8622
  </argument>
8623
- <argument line="4303">
8624
  <name>$key</name>
8625
  <default><![CDATA[]]></default>
8626
  <type/>
8627
  </argument>
8628
- <argument line="4303">
8629
  <name>$value</name>
8630
  <default><![CDATA[]]></default>
8631
  <type/>
8632
  </argument>
8633
- <argument line="4303">
8634
  <name>$args</name>
8635
  <default><![CDATA[null]]></default>
8636
  <type/>
@@ -8638,7 +8709,7 @@ haven't been mapped to any attachments, yet.</p>]]></long-description>
8638
  </method>
8639
  </class>
8640
  </file>
8641
- <file path="includes\class-mla-settings.php" hash="0b4fddf126633a5b4218a3f961a80a1e" package="Media Library Assistant">
8642
  <docblock line="2">
8643
  <description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
8644
  <long-description><![CDATA[]]></long-description>
@@ -8686,7 +8757,7 @@ haven't been mapped to any attachments, yet.</p>]]></long-description>
8686
  <full_name>JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG</full_name>
8687
  <value><![CDATA['mla-inline-edit-upload-scripts']]></value>
8688
  <docblock line="34">
8689
- <description><![CDATA[Slug for localizing and enqueueing JavaScript - MLA View List Table]]></description>
8690
  <long-description><![CDATA[]]></long-description>
8691
  <tag line="34" name="since" description="1.40"/>
8692
  <tag line="34" name="var" description="" type="string">
@@ -8699,7 +8770,7 @@ haven't been mapped to any attachments, yet.</p>]]></long-description>
8699
  <full_name>JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT</full_name>
8700
  <value><![CDATA['mla_inline_edit_upload_vars']]></value>
8701
  <docblock line="43">
8702
- <description><![CDATA[Object name for localizing JavaScript - MLA View List Table]]></description>
8703
  <long-description><![CDATA[]]></long-description>
8704
  <tag line="43" name="since" description="1.40"/>
8705
  <tag line="43" name="var" description="" type="string">
@@ -8708,47 +8779,86 @@ haven't been mapped to any attachments, yet.</p>]]></long-description>
8708
  </docblock>
8709
  </constant>
8710
  <constant namespace="global" line="59" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8711
  <name>MLA_SETTINGS_SLUG</name>
8712
  <full_name>MLA_SETTINGS_SLUG</full_name>
8713
  <value><![CDATA['mla-settings-menu']]></value>
8714
- <docblock line="52">
8715
  <description><![CDATA[Provides a unique name for the settings page]]></description>
8716
  <long-description><![CDATA[]]></long-description>
8717
- <tag line="52" name="since" description="0.1"/>
8718
- <tag line="52" name="var" description="" type="string">
8719
  <type by_reference="false">string</type>
8720
  </tag>
8721
  </docblock>
8722
  </constant>
8723
- <property final="false" static="true" visibility="private" line="68" namespace="global" package="Media Library Assistant">
8724
  <name>$current_page_hook</name>
8725
  <default><![CDATA['']]></default>
8726
- <docblock line="61">
8727
  <description><![CDATA[Holds screen id to match help text to corresponding screen]]></description>
8728
  <long-description><![CDATA[]]></long-description>
8729
- <tag line="61" name="since" description="1.40"/>
8730
- <tag line="61" name="var" description="" type="array">
8731
  <type by_reference="false">array</type>
8732
  </tag>
8733
  </docblock>
8734
  </property>
8735
- <property final="false" static="true" visibility="public" line="850" namespace="global" package="Media Library Assistant">
8736
  <name>$page_template_array</name>
8737
  <default><![CDATA[null]]></default>
8738
- <docblock line="840">
8739
  <description><![CDATA[Template file for the Settings page(s) and parts]]></description>
8740
  <long-description><![CDATA[<p>This array contains all of the template parts for the Settings page(s). The array is built once
8741
  each page load and cached for subsequent use.</p>]]></long-description>
8742
- <tag line="840" name="since" description="0.80"/>
8743
- <tag line="840" name="var" description="" type="array">
8744
  <type by_reference="false">array</type>
8745
  </tag>
8746
  </docblock>
8747
  </property>
8748
- <property final="false" static="true" visibility="private" line="869" namespace="global" package="Media Library Assistant">
8749
  <name>$mla_tablist</name>
8750
  <default><![CDATA[array()]]></default>
8751
- <docblock line="852">
8752
  <description><![CDATA[Definitions for Settings page tab ids, titles and handlers
8753
  Each tab is defined by an array with the following elements:]]></description>
8754
  <long-description><![CDATA[<p>array key => HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)</p>
@@ -8759,856 +8869,944 @@ render => rendering function for tab messages and content. Usage:
8759
 
8760
  <p>The array must be populated at runtime in MLASettings::mla_localize_tablist(),
8761
  because Localization calls cannot be placed in the "public static" array definition itself.</p>]]></long-description>
8762
- <tag line="852" name="since" description="0.80"/>
8763
- <tag line="852" name="var" description="" type="array">
8764
  <type by_reference="false">array</type>
8765
  </tag>
8766
  </docblock>
8767
  </property>
8768
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="77" package="Media Library Assistant">
8769
  <name>initialize</name>
8770
  <full_name>initialize</full_name>
8771
- <docblock line="70">
8772
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
8773
  <long-description><![CDATA[]]></long-description>
8774
- <tag line="70" name="since" description="0.1"/>
8775
- <tag line="70" name="return" description="" type="void">
8776
  <type by_reference="false">void</type>
8777
  </tag>
8778
  </docblock>
8779
  </method>
8780
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="94" package="Media Library Assistant">
8781
  <name>_version_upgrade</name>
8782
  <full_name>_version_upgrade</full_name>
8783
- <docblock line="87">
8784
  <description><![CDATA[Database and option update check, for installing new versions]]></description>
8785
  <long-description><![CDATA[]]></long-description>
8786
- <tag line="87" name="since" description="0.30"/>
8787
- <tag line="87" name="return" description="" type="void">
8788
  <type by_reference="false">void</type>
8789
  </tag>
8790
  </docblock>
8791
  </method>
8792
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="217" package="Media Library Assistant">
8793
  <name>mla_activation_hook</name>
8794
  <full_name>mla_activation_hook</full_name>
8795
- <docblock line="208">
8796
  <description><![CDATA[Perform one-time actions on plugin activation]]></description>
8797
  <long-description><![CDATA[<p>Adds a view to the database to support sorting the listing on 'ALT Text'.</p>]]></long-description>
8798
- <tag line="208" name="since" description="0.40"/>
8799
- <tag line="208" name="return" description="" type="void">
8800
  <type by_reference="false">void</type>
8801
  </tag>
8802
  </docblock>
8803
  </method>
8804
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="230" package="Media Library Assistant">
8805
  <name>mla_deactivation_hook</name>
8806
  <full_name>mla_deactivation_hook</full_name>
8807
- <docblock line="221">
8808
  <description><![CDATA[Perform one-time actions on plugin deactivation]]></description>
8809
  <long-description><![CDATA[<p>Removes (if present) a view from the database that supports sorting the listing on 'ALT Text'.</p>]]></long-description>
8810
- <tag line="221" name="since" description="0.40"/>
8811
- <tag line="221" name="return" description="" type="void">
8812
  <type by_reference="false">void</type>
8813
  </tag>
8814
  </docblock>
8815
  </method>
8816
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="277" package="Media Library Assistant">
8817
  <name>mla_admin_init_action</name>
8818
  <full_name>mla_admin_init_action</full_name>
8819
- <docblock line="270">
8820
  <description><![CDATA[Load the plugin's Ajax handler]]></description>
8821
  <long-description><![CDATA[]]></long-description>
8822
- <tag line="270" name="since" description="1.40"/>
8823
- <tag line="270" name="return" description="" type="void">
8824
  <type by_reference="false">void</type>
8825
  </tag>
8826
  </docblock>
8827
  </method>
8828
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="291" package="Media Library Assistant">
8829
  <name>mla_admin_enqueue_scripts_action</name>
8830
  <full_name>mla_admin_enqueue_scripts_action</full_name>
8831
- <docblock line="282">
8832
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
8833
  <long-description><![CDATA[]]></long-description>
8834
- <tag line="282" name="since" description="1.40"/>
8835
- <tag line="282" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
8836
  <type by_reference="false">string</type>
8837
  </tag>
8838
- <tag line="282" name="return" description="" type="void">
8839
  <type by_reference="false">void</type>
8840
  </tag>
8841
  </docblock>
8842
- <argument line="291">
8843
  <name>$page_hook</name>
8844
  <default><![CDATA[]]></default>
8845
  <type/>
8846
  </argument>
8847
  </method>
8848
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="347" package="Media Library Assistant">
8849
  <name>mla_admin_menu_action</name>
8850
  <full_name>mla_admin_menu_action</full_name>
8851
- <docblock line="338">
8852
  <description><![CDATA[Add settings page in the "Settings" section,
8853
  add screen options and help tabs,
8854
  add settings link in the Plugins section entry for MLA.]]></description>
8855
  <long-description><![CDATA[]]></long-description>
8856
- <tag line="338" name="since" description="0.1"/>
8857
- <tag line="338" name="return" description="" type="void">
8858
  <type by_reference="false">void</type>
8859
  </tag>
8860
  </docblock>
8861
  </method>
8862
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="373" package="Media Library Assistant">
8863
  <name>mla_add_menu_options_action</name>
8864
  <full_name>mla_add_menu_options_action</full_name>
8865
- <docblock line="366">
8866
  <description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
8867
  <long-description><![CDATA[]]></long-description>
8868
- <tag line="366" name="since" description="1.40"/>
8869
- <tag line="366" name="return" description="" type="void">
8870
  <type by_reference="false">void</type>
8871
  </tag>
8872
  </docblock>
8873
  </method>
8874
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="418" package="Media Library Assistant">
8875
  <name>mla_add_help_tab_action</name>
8876
  <full_name>mla_add_help_tab_action</full_name>
8877
- <docblock line="411">
8878
  <description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
8879
  <long-description><![CDATA[]]></long-description>
8880
- <tag line="411" name="since" description="1.40"/>
8881
- <tag line="411" name="return" description="" type="void">
8882
  <type by_reference="false">void</type>
8883
  </tag>
8884
  </docblock>
8885
  </method>
8886
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="493" package="Media Library Assistant">
8887
  <name>mla_screen_options_show_screen_filter</name>
8888
  <full_name>mla_screen_options_show_screen_filter</full_name>
8889
- <docblock line="483">
8890
  <description><![CDATA[Only show screen options on the View and Upload tabs]]></description>
8891
  <long-description><![CDATA[]]></long-description>
8892
- <tag line="483" name="since" description="1.40"/>
8893
- <tag line="483" name="param" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean" variable="$show_screen">
8894
  <type by_reference="false">boolean</type>
8895
  </tag>
8896
- <tag line="483" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
8897
  <type by_reference="false">string</type>
8898
  </tag>
8899
- <tag line="483" name="return" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean">
8900
  <type by_reference="false">boolean</type>
8901
  </tag>
8902
  </docblock>
8903
- <argument line="493">
8904
  <name>$show_screen</name>
8905
  <default><![CDATA[]]></default>
8906
  <type/>
8907
  </argument>
8908
- <argument line="493">
8909
  <name>$this_screen</name>
8910
  <default><![CDATA[]]></default>
8911
  <type/>
8912
  </argument>
8913
  </method>
8914
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="514" package="Media Library Assistant">
8915
  <name>mla_set_screen_option_filter</name>
8916
  <full_name>mla_set_screen_option_filter</full_name>
8917
- <docblock line="503">
8918
  <description><![CDATA[Save the "Views/Uploads per page" option set by this user]]></description>
8919
  <long-description><![CDATA[]]></long-description>
8920
- <tag line="503" name="since" description="1.40"/>
8921
- <tag line="503" name="param" description="false or value returned by previous filter" type="mixed" variable="$status">
8922
  <type by_reference="false">mixed</type>
8923
  </tag>
8924
- <tag line="503" name="param" description="Name of the option being changed" type="string" variable="$option">
8925
  <type by_reference="false">string</type>
8926
  </tag>
8927
- <tag line="503" name="param" description="New value of the option" type="string" variable="$value">
8928
  <type by_reference="false">string</type>
8929
  </tag>
8930
- <tag line="503" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
8931
  <type by_reference="false">string</type>
8932
  <type by_reference="false">void</type>
8933
  </tag>
8934
  </docblock>
8935
- <argument line="514">
8936
  <name>$status</name>
8937
  <default><![CDATA[]]></default>
8938
  <type/>
8939
  </argument>
8940
- <argument line="514">
8941
  <name>$option</name>
8942
  <default><![CDATA[]]></default>
8943
  <type/>
8944
  </argument>
8945
- <argument line="514">
8946
  <name>$value</name>
8947
  <default><![CDATA[]]></default>
8948
  <type/>
8949
  </argument>
8950
  </method>
8951
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="531" package="Media Library Assistant">
8952
  <name>mla_inline_edit_view_action</name>
8953
  <full_name>mla_inline_edit_view_action</full_name>
8954
- <docblock line="522">
8955
  <description><![CDATA[Ajax handler for Post MIME Types inline editing (quick and bulk edit)]]></description>
8956
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
8957
- <tag line="522" name="since" description="1.40"/>
8958
- <tag line="522" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
8959
  <type by_reference="false">void</type>
8960
  </tag>
8961
  </docblock>
8962
  </method>
8963
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="574" package="Media Library Assistant">
8964
  <name>mla_inline_edit_upload_action</name>
8965
  <full_name>mla_inline_edit_upload_action</full_name>
8966
- <docblock line="565">
8967
  <description><![CDATA[Ajax handler for Upload MIME Types inline editing (quick and bulk edit)]]></description>
8968
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
8969
- <tag line="565" name="since" description="1.40"/>
8970
- <tag line="565" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8971
  <type by_reference="false">void</type>
8972
  </tag>
8973
  </docblock>
8974
  </method>
8975
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="614" package="Media Library Assistant">
8976
  <name>mla_add_plugin_settings_link_filter</name>
8977
  <full_name>mla_add_plugin_settings_link_filter</full_name>
8978
- <docblock line="604">
8979
  <description><![CDATA[Add the "Settings" link to the MLA entry in the Plugins section]]></description>
8980
  <long-description><![CDATA[]]></long-description>
8981
- <tag line="604" name="since" description="0.1"/>
8982
- <tag line="604" name="param" description="array of links for the Plugin, e.g., &quot;Activate&quot;" type="array" variable="$links">
8983
  <type by_reference="false">array</type>
8984
  </tag>
8985
- <tag line="604" name="param" description="Directory and name of the plugin Index file" type="string" variable="$file">
8986
  <type by_reference="false">string</type>
8987
  </tag>
8988
- <tag line="604" name="return" description="Updated array of links for the Plugin" type="array">
8989
  <type by_reference="false">array</type>
8990
  </tag>
8991
  </docblock>
8992
- <argument line="614">
8993
  <name>$links</name>
8994
  <default><![CDATA[]]></default>
8995
  <type/>
8996
  </argument>
8997
- <argument line="614">
8998
  <name>$file</name>
8999
  <default><![CDATA[]]></default>
9000
  <type/>
9001
  </argument>
9002
  </method>
9003
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="634" package="Media Library Assistant">
9004
  <name>_update_option_row</name>
9005
  <full_name>_update_option_row</full_name>
9006
- <docblock line="623">
9007
  <description><![CDATA[Update or delete a single MLA option value]]></description>
9008
  <long-description><![CDATA[]]></long-description>
9009
- <tag line="623" name="since" description="0.80"/>
9010
- <tag line="623" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9011
- <tag line="623" name="param" description="HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)" type="string" variable="$key">
9012
  <type by_reference="false">string</type>
9013
  </tag>
9014
- <tag line="623" name="param" description="Option parameters, e.g., 'type', 'std'" type="array" variable="$value">
9015
  <type by_reference="false">array</type>
9016
  </tag>
9017
- <tag line="623" name="return" description="HTML markup for the option's table row" type="string">
9018
  <type by_reference="false">string</type>
9019
  </tag>
9020
  </docblock>
9021
- <argument line="634">
9022
  <name>$key</name>
9023
  <default><![CDATA[]]></default>
9024
  <type/>
9025
  </argument>
9026
- <argument line="634">
9027
  <name>$value</name>
9028
  <default><![CDATA[]]></default>
9029
  <type/>
9030
  </argument>
9031
  </method>
9032
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="714" package="Media Library Assistant">
9033
  <name>_compose_option_row</name>
9034
  <full_name>_compose_option_row</full_name>
9035
- <docblock line="703">
9036
  <description><![CDATA[Compose the table row for a single MLA option]]></description>
9037
  <long-description><![CDATA[]]></long-description>
9038
- <tag line="703" name="since" description="0.80"/>
9039
- <tag line="703" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9040
- <tag line="703" name="param" description="HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)" type="string" variable="$key">
9041
  <type by_reference="false">string</type>
9042
  </tag>
9043
- <tag line="703" name="param" description="Option parameters, e.g., 'type', 'std'" type="array" variable="$value">
9044
  <type by_reference="false">array</type>
9045
  </tag>
9046
- <tag line="703" name="return" description="HTML markup for the option's table row" type="string">
9047
  <type by_reference="false">string</type>
9048
  </tag>
9049
  </docblock>
9050
- <argument line="714">
9051
  <name>$key</name>
9052
  <default><![CDATA[]]></default>
9053
  <type/>
9054
  </argument>
9055
- <argument line="714">
9056
  <name>$value</name>
9057
  <default><![CDATA[]]></default>
9058
  <type/>
9059
  </argument>
9060
  </method>
9061
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="881" package="Media Library Assistant">
9062
  <name>mla_localize_tablist</name>
9063
  <full_name>mla_localize_tablist</full_name>
9064
- <docblock line="871">
9065
  <description><![CDATA[Localize $mla_option_definitions array]]></description>
9066
  <long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
9067
  in the "public static" array definition itself.</p>]]></long-description>
9068
- <tag line="871" name="since" description="1.70"/>
9069
- <tag line="871" name="return" description="" type="void">
9070
  <type by_reference="false">void</type>
9071
  </tag>
9072
  </docblock>
9073
  </method>
9074
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="905" package="Media Library Assistant">
9075
  <name>mla_get_options_tablist</name>
9076
  <full_name>mla_get_options_tablist</full_name>
9077
- <docblock line="893">
9078
  <description><![CDATA[Localize $mla_option_definitions array]]></description>
9079
  <long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
9080
  in the "public static" array definition itself.</p>]]></long-description>
9081
- <tag line="893" name="since" description="1.82"/>
9082
- <tag line="893" name="param" description="Tab slug, to retrieve a single entry" type="string" variable="$tab">
9083
  <type by_reference="false">string</type>
9084
  </tag>
9085
- <tag line="893" name="return" description="The entire tablist ( $tab = NULL ), a single tab entry or false if not found/not allowed" type="array|false">
9086
  <type by_reference="false">array</type>
9087
  <type by_reference="false">false</type>
9088
  </tag>
9089
  </docblock>
9090
- <argument line="905">
9091
  <name>$tab</name>
9092
  <default><![CDATA[NULL]]></default>
9093
  <type/>
9094
  </argument>
9095
  </method>
9096
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="929" package="Media Library Assistant">
9097
  <name>_compose_settings_tabs</name>
9098
  <full_name>_compose_settings_tabs</full_name>
9099
- <docblock line="919">
9100
  <description><![CDATA[Compose the navigation tabs for the Settings subpage]]></description>
9101
  <long-description><![CDATA[]]></long-description>
9102
- <tag line="919" name="since" description="0.80"/>
9103
- <tag line="919" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9104
- <tag line="919" name="param" description="Optional data-tab-id value for the active tab, default 'general'" type="string" variable="$active_tab">
9105
  <type by_reference="false">string</type>
9106
  </tag>
9107
- <tag line="919" name="return" description="HTML markup for the Settings subpage navigation tabs" type="string">
9108
  <type by_reference="false">string</type>
9109
  </tag>
9110
  </docblock>
9111
- <argument line="929">
9112
  <name>$active_tab</name>
9113
  <default><![CDATA['general']]></default>
9114
  <type/>
9115
  </argument>
9116
  </method>
9117
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="955" package="Media Library Assistant">
9118
  <name>_compose_general_tab</name>
9119
  <full_name>_compose_general_tab</full_name>
9120
- <docblock line="947">
9121
  <description><![CDATA[Compose the General tab content for the Settings subpage]]></description>
9122
  <long-description><![CDATA[]]></long-description>
9123
- <tag line="947" name="since" description="0.80"/>
9124
- <tag line="947" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9125
- <tag line="947" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9126
  <type by_reference="false">array</type>
9127
  </tag>
9128
  </docblock>
9129
  </method>
9130
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1105" package="Media Library Assistant">
9131
  <name>_current_bulk_action</name>
9132
  <full_name>_current_bulk_action</full_name>
9133
- <docblock line="1098">
9134
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
9135
  <long-description><![CDATA[]]></long-description>
9136
- <tag line="1098" name="since" description="1.40"/>
9137
- <tag line="1098" name="return" description="The action name or False if no action was selected" type="string|false">
9138
  <type by_reference="false">string</type>
9139
  <type by_reference="false">false</type>
9140
  </tag>
9141
  </docblock>
9142
  </method>
9143
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1137" package="Media Library Assistant">
9144
  <name>_compose_edit_view_tab</name>
9145
  <full_name>_compose_edit_view_tab</full_name>
9146
- <docblock line="1127">
9147
  <description><![CDATA[Compose the Edit View tab content for the Settings subpage]]></description>
9148
  <long-description><![CDATA[]]></long-description>
9149
- <tag line="1127" name="since" description="1.40"/>
9150
- <tag line="1127" name="param" description="data values for the item" type="array" variable="$view">
9151
  <type by_reference="false">array</type>
9152
  </tag>
9153
- <tag line="1127" name="param" description="Display template" type="string" variable="$template">
9154
  <type by_reference="false">string</type>
9155
  </tag>
9156
- <tag line="1127" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9157
  <type by_reference="false">array</type>
9158
  </tag>
9159
  </docblock>
9160
- <argument line="1137">
9161
  <name>$view</name>
9162
  <default><![CDATA[]]></default>
9163
  <type/>
9164
  </argument>
9165
- <argument line="1137">
9166
  <name>$template</name>
9167
  <default><![CDATA[]]></default>
9168
  <type/>
9169
  </argument>
9170
  </method>
9171
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1188" package="Media Library Assistant">
9172
  <name>_compose_view_tab</name>
9173
  <full_name>_compose_view_tab</full_name>
9174
- <docblock line="1181">
9175
  <description><![CDATA[Compose the Post MIME Type Views tab content for the Settings subpage]]></description>
9176
  <long-description><![CDATA[]]></long-description>
9177
- <tag line="1181" name="since" description="1.40"/>
9178
- <tag line="1181" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9179
  <type by_reference="false">array</type>
9180
  </tag>
9181
  </docblock>
9182
  </method>
9183
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1455" package="Media Library Assistant">
9184
  <name>mla_get_icon_type_dropdown</name>
9185
  <full_name>mla_get_icon_type_dropdown</full_name>
9186
- <docblock line="1444">
9187
  <description><![CDATA[Get an HTML select element representing a list of icon types]]></description>
9188
  <long-description><![CDATA[]]></long-description>
9189
- <tag line="1444" name="since" description="1.40"/>
9190
- <tag line="1444" name="param" description="Display template array" type="array" variable="$templates">
9191
  <type by_reference="false">array</type>
9192
  </tag>
9193
- <tag line="1444" name="param" description="HTML name attribute value" type="string" variable="$name">
9194
  <type by_reference="false">string</type>
9195
  </tag>
9196
- <tag line="1444" name="param" description="currently selected Icon Type" type="string" variable="$selection">
9197
  <type by_reference="false">string</type>
9198
  </tag>
9199
- <tag line="1444" name="return" description="HTML select element or empty string on failure." type="string">
9200
  <type by_reference="false">string</type>
9201
  </tag>
9202
  </docblock>
9203
- <argument line="1455">
9204
  <name>$templates</name>
9205
  <default><![CDATA[]]></default>
9206
  <type/>
9207
  </argument>
9208
- <argument line="1455">
9209
  <name>$name</name>
9210
  <default><![CDATA[]]></default>
9211
  <type/>
9212
  </argument>
9213
- <argument line="1455">
9214
  <name>$selection</name>
9215
  <default><![CDATA['.none.']]></default>
9216
  <type/>
9217
  </argument>
9218
  </method>
9219
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1497" package="Media Library Assistant">
9220
  <name>_compose_edit_upload_tab</name>
9221
  <full_name>_compose_edit_upload_tab</full_name>
9222
- <docblock line="1487">
9223
  <description><![CDATA[Compose the Edit Upload type tab content for the Settings subpage]]></description>
9224
  <long-description><![CDATA[]]></long-description>
9225
- <tag line="1487" name="since" description="1.40"/>
9226
- <tag line="1487" name="param" description="data values for the item" type="array" variable="$item">
9227
  <type by_reference="false">array</type>
9228
  </tag>
9229
- <tag line="1487" name="param" description="Display template array" type="string" variable="$templates">
9230
  <type by_reference="false">string</type>
9231
  </tag>
9232
- <tag line="1487" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9233
  <type by_reference="false">array</type>
9234
  </tag>
9235
  </docblock>
9236
- <argument line="1497">
9237
  <name>$item</name>
9238
  <default><![CDATA[]]></default>
9239
  <type/>
9240
  </argument>
9241
- <argument line="1497">
9242
  <name>$templates</name>
9243
  <default><![CDATA[]]></default>
9244
  <type/>
9245
  </argument>
9246
  </method>
9247
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1545" package="Media Library Assistant">
9248
  <name>_compose_optional_upload_tab</name>
9249
  <full_name>_compose_optional_upload_tab</full_name>
9250
- <docblock line="1536">
9251
  <description><![CDATA[Compose the Optional File Upload MIME Types tab content for the Settings subpage]]></description>
9252
  <long-description><![CDATA[]]></long-description>
9253
- <tag line="1536" name="since" description="1.40"/>
9254
- <tag line="1536" name="param" description="Display templates" type="string" variable="$page_template_array">
9255
  <type by_reference="false">string</type>
9256
  </tag>
9257
- <tag line="1536" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9258
  <type by_reference="false">array</type>
9259
  </tag>
9260
  </docblock>
9261
- <argument line="1545">
9262
  <name>$page_template_array</name>
9263
  <default><![CDATA[]]></default>
9264
  <type/>
9265
  </argument>
9266
  </method>
9267
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1615" package="Media Library Assistant">
9268
  <name>_process_optional_upload_mime</name>
9269
  <full_name>_process_optional_upload_mime</full_name>
9270
- <docblock line="1606">
9271
  <description><![CDATA[Process an Optional Upload MIME Type selection]]></description>
9272
  <long-description><![CDATA[]]></long-description>
9273
- <tag line="1606" name="since" description="1.40"/>
9274
- <tag line="1606" name="param" description="MLA Optional Upload MIME Type ID" type="\intger" variable="$ID">
9275
  <type by_reference="false">\intger</type>
9276
  </tag>
9277
- <tag line="1606" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9278
  <type by_reference="false">array</type>
9279
  </tag>
9280
  </docblock>
9281
- <argument line="1615">
9282
  <name>$ID</name>
9283
  <default><![CDATA[]]></default>
9284
  <type/>
9285
  </argument>
9286
  </method>
9287
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1635" package="Media Library Assistant">
9288
  <name>_compose_upload_tab</name>
9289
  <full_name>_compose_upload_tab</full_name>
9290
- <docblock line="1628">
9291
  <description><![CDATA[Compose the File Upload MIME Types tab content for the Settings subpage]]></description>
9292
  <long-description><![CDATA[]]></long-description>
9293
- <tag line="1628" name="since" description="1.40"/>
9294
- <tag line="1628" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9295
  <type by_reference="false">array</type>
9296
  </tag>
9297
  </docblock>
9298
  </method>
9299
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1923" package="Media Library Assistant">
9300
  <name>_compose_mla_gallery_tab</name>
9301
  <full_name>_compose_mla_gallery_tab</full_name>
9302
- <docblock line="1915">
9303
  <description><![CDATA[Compose the MLA Gallery tab content for the Settings subpage]]></description>
9304
  <long-description><![CDATA[]]></long-description>
9305
- <tag line="1915" name="since" description="0.80"/>
9306
- <tag line="1915" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9307
- <tag line="1915" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9308
  <type by_reference="false">array</type>
9309
  </tag>
9310
  </docblock>
9311
  </method>
9312
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2273" package="Media Library Assistant">
9313
  <name>_compose_custom_field_tab</name>
9314
  <full_name>_compose_custom_field_tab</full_name>
9315
- <docblock line="2265">
9316
  <description><![CDATA[Compose the Custom Field tab content for the Settings subpage]]></description>
9317
  <long-description><![CDATA[]]></long-description>
9318
- <tag line="2265" name="since" description="1.10"/>
9319
- <tag line="2265" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9320
- <tag line="2265" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9321
  <type by_reference="false">array</type>
9322
  </tag>
9323
  </docblock>
9324
  </method>
9325
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2396" package="Media Library Assistant">
9326
  <name>_compose_iptc_exif_tab</name>
9327
  <full_name>_compose_iptc_exif_tab</full_name>
9328
- <docblock line="2388">
9329
  <description><![CDATA[Compose the IPTC/EXIF tab content for the Settings subpage]]></description>
9330
  <long-description><![CDATA[]]></long-description>
9331
- <tag line="2388" name="since" description="1.00"/>
9332
- <tag line="2388" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9333
- <tag line="2388" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9334
  <type by_reference="false">array</type>
9335
  </tag>
9336
  </docblock>
9337
  </method>
9338
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2520" package="Media Library Assistant">
9339
  <name>_compose_documentation_tab</name>
9340
  <full_name>_compose_documentation_tab</full_name>
9341
- <docblock line="2512">
9342
  <description><![CDATA[Compose the Documentation tab content for the Settings subpage]]></description>
9343
  <long-description><![CDATA[]]></long-description>
9344
- <tag line="2512" name="since" description="0.80"/>
9345
- <tag line="2512" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9346
- <tag line="2512" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9347
  <type by_reference="false">array</type>
9348
  </tag>
9349
  </docblock>
9350
  </method>
9351
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2540" package="Media Library Assistant">
9352
  <name>mla_render_settings_page</name>
9353
  <full_name>mla_render_settings_page</full_name>
9354
- <docblock line="2533">
9355
  <description><![CDATA[Render (echo) the "Media Library Assistant" subpage in the Settings section]]></description>
9356
  <long-description><![CDATA[]]></long-description>
9357
- <tag line="2533" name="since" description="0.1"/>
9358
- <tag line="2533" name="return" description="Echoes HTML markup for the Settings subpage" type="void">
9359
  <type by_reference="false">void</type>
9360
  </tag>
9361
  </docblock>
9362
  </method>
9363
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2603" package="Media Library Assistant">
9364
  <name>_save_gallery_settings</name>
9365
  <full_name>_save_gallery_settings</full_name>
9366
- <docblock line="2594">
9367
  <description><![CDATA[Save MLA Gallery settings to the options table]]></description>
9368
  <long-description><![CDATA[]]></long-description>
9369
- <tag line="2594" name="since" description="0.80"/>
9370
- <tag line="2594" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9371
- <tag line="2594" name="return" description="Message(s) reflecting the results of the operation" type="array">
9372
  <type by_reference="false">array</type>
9373
  </tag>
9374
  </docblock>
9375
  </method>
9376
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2870" package="Media Library Assistant">
9377
  <name>_save_view_settings</name>
9378
  <full_name>_save_view_settings</full_name>
9379
- <docblock line="2861">
9380
  <description><![CDATA[Save View settings to the options table]]></description>
9381
  <long-description><![CDATA[]]></long-description>
9382
- <tag line="2861" name="since" description="1.40"/>
9383
- <tag line="2861" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9384
- <tag line="2861" name="return" description="Message(s) reflecting the results of the operation" type="array">
9385
  <type by_reference="false">array</type>
9386
  </tag>
9387
  </docblock>
9388
  </method>
9389
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2901" package="Media Library Assistant">
9390
  <name>_save_upload_settings</name>
9391
  <full_name>_save_upload_settings</full_name>
9392
- <docblock line="2892">
9393
  <description><![CDATA[Save Upload settings to the options table]]></description>
9394
  <long-description><![CDATA[]]></long-description>
9395
- <tag line="2892" name="since" description="1.40"/>
9396
- <tag line="2892" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9397
- <tag line="2892" name="return" description="Message(s) reflecting the results of the operation" type="array">
9398
  <type by_reference="false">array</type>
9399
  </tag>
9400
  </docblock>
9401
  </method>
9402
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2937" package="Media Library Assistant">
9403
  <name>_process_custom_field_mapping</name>
9404
  <full_name>_process_custom_field_mapping</full_name>
9405
- <docblock line="2926">
9406
  <description><![CDATA[Process custom field settings against all image attachments
9407
  without saving the settings to the mla_option]]></description>
9408
  <long-description><![CDATA[]]></long-description>
9409
- <tag line="2926" name="since" description="1.10"/>
9410
- <tag line="2926" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9411
- <tag line="2926" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$settings">
9412
  <type by_reference="false">array</type>
9413
  </tag>
9414
- <tag line="2926" name="return" description="Message(s) reflecting the results of the operation" type="array">
 
 
 
 
 
 
9415
  <type by_reference="false">array</type>
9416
  </tag>
9417
  </docblock>
9418
- <argument line="2937">
9419
  <name>$settings</name>
9420
  <default><![CDATA[NULL]]></default>
9421
  <type/>
9422
  </argument>
 
 
 
 
 
 
 
 
 
 
9423
  </method>
9424
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3001" package="Media Library Assistant">
9425
  <name>_delete_custom_field</name>
9426
  <full_name>_delete_custom_field</full_name>
9427
- <docblock line="2992">
9428
  <description><![CDATA[Delete a custom field from the wp_postmeta table]]></description>
9429
  <long-description><![CDATA[]]></long-description>
9430
- <tag line="2992" name="since" description="1.10"/>
9431
- <tag line="2992" name="param" description="specific custom_field_mapping rule" type="array" variable="$value">
9432
  <type by_reference="false">array</type>
9433
  </tag>
9434
- <tag line="2992" name="return" description="Message(s) reflecting the results of the operation" type="array">
9435
  <type by_reference="false">array</type>
9436
  </tag>
9437
  </docblock>
9438
- <argument line="3001">
9439
  <name>$value</name>
9440
  <default><![CDATA[]]></default>
9441
  <type/>
9442
  </argument>
9443
  </method>
9444
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3028" package="Media Library Assistant">
9445
  <name>_save_custom_field_settings</name>
9446
  <full_name>_save_custom_field_settings</full_name>
9447
- <docblock line="3018">
9448
  <description><![CDATA[Save custom field settings to the options table]]></description>
9449
  <long-description><![CDATA[]]></long-description>
9450
- <tag line="3018" name="since" description="1.10"/>
9451
- <tag line="3018" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9452
- <tag line="3018" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$new_values">
9453
  <type by_reference="false">array</type>
9454
  </tag>
9455
- <tag line="3018" name="return" description="Message(s) reflecting the results of the operation" type="array">
9456
  <type by_reference="false">array</type>
9457
  </tag>
9458
  </docblock>
9459
- <argument line="3028">
9460
  <name>$new_values</name>
9461
  <default><![CDATA[NULL]]></default>
9462
  <type/>
9463
  </argument>
9464
  </method>
9465
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3069" package="Media Library Assistant">
9466
  <name>_process_iptc_exif_standard</name>
9467
  <full_name>_process_iptc_exif_standard</full_name>
9468
- <docblock line="3059">
9469
  <description><![CDATA[Process IPTC/EXIF standard field settings against all image attachments
9470
  without saving the settings to the mla_option]]></description>
9471
  <long-description><![CDATA[]]></long-description>
9472
- <tag line="3059" name="since" description="1.00"/>
9473
- <tag line="3059" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9474
- <tag line="3059" name="return" description="Message(s) reflecting the results of the operation" type="array">
 
 
 
 
 
 
9475
  <type by_reference="false">array</type>
9476
  </tag>
9477
  </docblock>
 
 
 
 
 
 
 
 
 
 
9478
  </method>
9479
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3129" package="Media Library Assistant">
9480
  <name>_process_iptc_exif_taxonomy</name>
9481
  <full_name>_process_iptc_exif_taxonomy</full_name>
9482
- <docblock line="3119">
9483
  <description><![CDATA[Process IPTC/EXIF taxonomy term settings against all image attachments
9484
  without saving the settings to the mla_option]]></description>
9485
  <long-description><![CDATA[]]></long-description>
9486
- <tag line="3119" name="since" description="1.00"/>
9487
- <tag line="3119" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9488
- <tag line="3119" name="return" description="Message(s) reflecting the results of the operation" type="array">
 
 
 
 
 
 
9489
  <type by_reference="false">array</type>
9490
  </tag>
9491
  </docblock>
 
 
 
 
 
 
 
 
 
 
9492
  </method>
9493
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3191" package="Media Library Assistant">
9494
  <name>_process_iptc_exif_custom</name>
9495
  <full_name>_process_iptc_exif_custom</full_name>
9496
- <docblock line="3179">
9497
  <description><![CDATA[Process IPTC/EXIF custom field settings against all image attachments
9498
  without saving the settings to the mla_option]]></description>
9499
  <long-description><![CDATA[]]></long-description>
9500
-
622
  <tag line="2" name="since" description="MLA 1.80"/>
623
  </docblock>
624
  </file>
625
+ <file path="includes\class-mla-data.php" hash="24af925908edfeae51a47586286e5214" package="Media Library Assistant">
626
  <docblock line="2">
627
  <description><![CDATA[Database and template file access for MLA needs]]></description>
628
  <long-description><![CDATA[]]></long-description>
663
  </tag>
664
  </docblock>
665
  </property>
666
+ <property final="false" static="true" visibility="private" line="1144" namespace="global" package="Media Library Assistant">
667
  <name>$mla_list_table_items</name>
668
  <default><![CDATA[NULL]]></default>
669
+ <docblock line="1137">
670
  <description><![CDATA[Cache the results of mla_count_list_table_items for reuse in mla_query_list_table_items]]></description>
671
  <long-description><![CDATA[]]></long-description>
672
+ <tag line="1137" name="since" description="1.40"/>
673
+ <tag line="1137" name="var" description="" type="array">
674
  <type by_reference="false">array</type>
675
  </tag>
676
  </docblock>
677
  </property>
678
+ <property final="false" static="true" visibility="private" line="1250" namespace="global" package="Media Library Assistant">
679
  <name>$query_parameters</name>
680
  <default><![CDATA[array()]]></default>
681
+ <docblock line="1236">
682
  <description><![CDATA[WP_Query filter "parameters"]]></description>
683
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
684
  The parameters are set up in the _prepare_list_table_query function, and
685
  any further logic required to translate those values is contained in the filters.</p>
686
 
687
+ <p>Array index values are: use_postmeta_view, postmeta_key, postmeta_value, patterns,
688
+ detached, orderby, order, mla-metavalue, debug (also in search_parameters)</p>]]></long-description>
689
+ <tag line="1236" name="since" description="0.30"/>
690
+ <tag line="1236" name="var" description="" type="array">
691
  <type by_reference="false">array</type>
692
  </tag>
693
  </docblock>
694
  </property>
695
+ <property final="false" static="true" visibility="public" line="1279" namespace="global" package="Media Library Assistant">
696
+ <name>$search_parameters</name>
697
+ <default><![CDATA[array()]]></default>
698
+ <docblock line="1252">
699
+ <description><![CDATA[WP_Query 'posts_search' filter "parameters"]]></description>
700
+ <long-description><![CDATA[<p>This array defines parameters for the query's posts_search filter, which uses
701
+ 'search_string' to add a clause to the query's WHERE clause. It is shared between
702
+ the list_table-query functions here and the mla_get_shortcode_attachments function
703
+ in class-mla-shortcodes.php. This array passes the relevant parameters to the filter.</p>
704
+
705
+ <p>Array index values are:
706
+ ['mla_terms_search']['phrases']
707
+ ['mla_terms_search']['taxonomies']
708
+ ['mla_terms_search']['radio_phrases'] => AND/OR
709
+ ['mla_terms_search']['radio_terms'] => AND/OR
710
+ ['s'] => numeric for ID/parent search
711
+ ['mla_search_fields'] => 'content', 'title', 'excerpt', 'alt-text', 'name', 'terms'
712
+ Note: 'alt-text' is not supported in [mla_gallery]
713
+ ['mla_search_connector'] => AND/OR
714
+ ['sentence'] => entire string must match as one "keyword"
715
+ ['exact'] => entire string must match entire field value
716
+ ['debug'] => internal element, console/log/shortcode/none
717
+ ['mla_debug_messages'] => internal element, added when debug = 'shortcode'
718
+ ['tax_terms_count'] => internal element, shared with JOIN and GROUP BY filters</p>]]></long-description>
719
+ <tag line="1252" name="since" description="2.00"/>
720
+ <tag line="1252" name="var" description="" type="array">
721
+ <type by_reference="false">array</type>
722
+ </tag>
723
+ </docblock>
724
+ </property>
725
+ <property final="false" static="true" visibility="private" line="3296" namespace="global" package="Media Library Assistant">
726
  <name>$galleries</name>
727
  <default><![CDATA[null]]></default>
728
+ <docblock line="3277">
729
  <description><![CDATA[Objects containing [gallery] shortcodes]]></description>
730
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [gallery] shortcodes
731
  and array(s) of which attachments each [gallery] contains. The arrays are built once
738
  ['galleries'] array of [gallery] entries numbered from one (1), containing:
739
  galleries[X]['query'] contains a string with the arguments of the [gallery],
740
  galleries[X]['results'] contains an array ( ID ) of post_ids for the objects in the gallery.</p>]]></long-description>
741
+ <tag line="3277" name="since" description="0.70"/>
742
+ <tag line="3277" name="var" description="" type="array">
743
  <type by_reference="false">array</type>
744
  </tag>
745
  </docblock>
746
  </property>
747
+ <property final="false" static="true" visibility="private" line="3309" namespace="global" package="Media Library Assistant">
748
  <name>$mla_galleries</name>
749
  <default><![CDATA[null]]></default>
750
+ <docblock line="3298">
751
  <description><![CDATA[Objects containing [mla_gallery] shortcodes]]></description>
752
  <long-description><![CDATA[<p>This array contains all of the objects containing one or more [mla_gallery] shortcodes
753
  and array(s) of which attachments each [mla_gallery] contains. The arrays are built once
754
  each page load and cached for subsequent calls.</p>]]></long-description>
755
+ <tag line="3298" name="since" description="0.70"/>
756
+ <tag line="3298" name="var" description="" type="array">
757
  <type by_reference="false">array</type>
758
  </tag>
759
  </docblock>
760
  </property>
761
+ <property final="false" static="true" visibility="private" line="3505" namespace="global" package="Media Library Assistant">
762
  <name>$pdf_indirect_objects</name>
763
  <default><![CDATA[NULL]]></default>
764
+ <docblock line="3494">
765
  <description><![CDATA[Array of PDF indirect objects]]></description>
766
  <long-description><![CDATA[<p>This array contains all of the indirect object offsets and lengths.
767
  The array key is ( object ID * 1000 ) + object generation.
768
  The array value is array( number, generation, start, optional /length )</p>]]></long-description>
769
+ <tag line="3494" name="since" description="1.50"/>
770
+ <tag line="3494" name="var" description="" type="array">
771
  <type by_reference="false">array</type>
772
  </tag>
773
  </docblock>
774
  </property>
775
+ <property final="false" static="true" visibility="private" line="4616" namespace="global" package="Media Library Assistant">
776
  <name>$utf8_chars</name>
777
  <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>
778
+ <docblock line="4609">
779
  <description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
780
  <long-description><![CDATA[]]></long-description>
781
+ <tag line="4609" name="since" description="1.41"/>
782
+ <tag line="4609" name="var" description="" type="array">
783
  <type by_reference="false">array</type>
784
  </tag>
785
  </docblock>
786
  </property>
787
+ <property final="false" static="true" visibility="private" line="4676" namespace="global" package="Media Library Assistant">
788
  <name>$mla_iptc_records</name>
789
  <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>
790
+ <docblock line="4666">
791
  <description><![CDATA[IPTC Dataset identifiers and names]]></description>
792
  <long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
793
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
794
+ <tag line="4666" name="since" description="0.90"/>
795
+ <tag line="4666" name="var" description="" type="array">
796
  <type by_reference="false">array</type>
797
  </tag>
798
  </docblock>
799
  </property>
800
+ <property final="false" static="true" visibility="public" line="4775" namespace="global" package="Media Library Assistant">
801
  <name>$mla_iptc_keys</name>
802
  <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>
803
+ <docblock line="4765">
804
  <description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
805
  <long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
806
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
807
+ <tag line="4765" name="since" description="0.90"/>
808
+ <tag line="4765" name="var" description="" type="array">
809
  <type by_reference="false">array</type>
810
  </tag>
811
  </docblock>
812
  </property>
813
+ <property final="false" static="true" visibility="private" line="4874" namespace="global" package="Media Library Assistant">
814
  <name>$mla_iptc_descriptions</name>
815
  <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>
816
+ <docblock line="4864">
817
  <description><![CDATA[IPTC Dataset descriptions]]></description>
818
  <long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
819
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
820
+ <tag line="4864" name="since" description="0.90"/>
821
+ <tag line="4864" name="var" description="" type="array">
822
  <type by_reference="false">array</type>
823
  </tag>
824
  </docblock>
825
  </property>
826
+ <property final="false" static="true" visibility="private" line="4973" namespace="global" package="Media Library Assistant">
827
  <name>$mla_iptc_formats</name>
828
  <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>
829
+ <docblock line="4963">
830
  <description><![CDATA[IPTC file format identifiers and descriptions]]></description>
831
  <long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
832
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
833
+ <tag line="4963" name="since" description="0.90"/>
834
+ <tag line="4963" name="var" description="" type="array">
835
  <type by_reference="false">array</type>
836
  </tag>
837
  </docblock>
838
  </property>
839
+ <property final="false" static="true" visibility="private" line="5016" namespace="global" package="Media Library Assistant">
840
  <name>$mla_iptc_image_types</name>
841
  <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>
842
+ <docblock line="5006">
843
  <description><![CDATA[IPTC image type identifiers and descriptions]]></description>
844
  <long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
845
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
846
+ <tag line="5006" name="since" description="0.90"/>
847
+ <tag line="5006" name="var" description="" type="array">
848
  <type by_reference="false">array</type>
849
  </tag>
850
  </docblock>
851
  </property>
852
+ <property final="false" static="true" visibility="private" line="5190" namespace="global" package="Media Library Assistant">
853
  <name>$mla_IPTC_EXIF_errors</name>
854
  <default><![CDATA[array()]]></default>
855
+ <docblock line="5182">
856
  <description><![CDATA[Passes IPTC/EXIF parse errors between mla_IPTC_EXIF_error_handler
857
  and mla_fetch_attachment_image_metadata]]></description>
858
  <long-description><![CDATA[]]></long-description>
859
+ <tag line="5182" name="since" description="1.81"/>
860
+ <tag line="5182" name="var" description="" type="array">
861
  <type by_reference="false">array</type>
862
  </tag>
863
  </docblock>
1210
  <type/>
1211
  </argument>
1212
  </method>
1213
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1051" package="Media Library Assistant">
1214
  <name>mla_get_template_placeholders</name>
1215
  <full_name>mla_get_template_placeholders</full_name>
1216
+ <docblock line="1040">
1217
  <description><![CDATA[Analyze a template, returning an array of the placeholders it contains]]></description>
1218
  <long-description><![CDATA[]]></long-description>
1219
+ <tag line="1040" name="since" description="0.90"/>
1220
+ <tag line="1040" name="param" description="A formatting string containing [+placeholders+]" type="string" variable="$tpl">
1221
  <type by_reference="false">string</type>
1222
  </tag>
1223
+ <tag line="1040" name="param" description="Optional: default option value" type="string" variable="$default_option">
1224
  <type by_reference="false">string</type>
1225
  </tag>
1226
+ <tag line="1040" 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">
1227
  <type by_reference="false">array</type>
1228
  </tag>
1229
  </docblock>
1230
+ <argument line="1051">
1231
  <name>$tpl</name>
1232
  <default><![CDATA[]]></default>
1233
  <type/>
1234
  </argument>
1235
+ <argument line="1051">
1236
  <name>$default_option</name>
1237
  <default><![CDATA['text']]></default>
1238
  <type/>
1239
  </argument>
1240
  </method>
1241
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1157" package="Media Library Assistant">
1242
  <name>mla_count_list_table_items</name>
1243
  <full_name>mla_count_list_table_items</full_name>
1244
+ <docblock line="1146">
1245
  <description><![CDATA[Get the total number of attachment posts]]></description>
1246
  <long-description><![CDATA[]]></long-description>
1247
+ <tag line="1146" name="since" description="0.30"/>
1248
+ <tag line="1146" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
1249
  <type by_reference="false">array</type>
1250
  </tag>
1251
+ <tag line="1146" name="param" description="(optional) number of rows to skip over to reach desired page" type="int" variable="$offset">
1252
  <type by_reference="false">int</type>
1253
  </tag>
1254
+ <tag line="1146" name="param" description="(optional) number of rows on each page" type="int" variable="$count">
1255
  <type by_reference="false">int</type>
1256
  </tag>
1257
+ <tag line="1146" name="return" description="Number of attachment posts" type="integer">
1258
  <type by_reference="false">integer</type>
1259
  </tag>
1260
  </docblock>
1261
+ <argument line="1157">
1262
  <name>$request</name>
1263
  <default><![CDATA[]]></default>
1264
  <type/>
1265
  </argument>
1266
+ <argument line="1157">
1267
  <name>$offset</name>
1268
  <default><![CDATA[NULL]]></default>
1269
  <type/>
1270
  </argument>
1271
+ <argument line="1157">
1272
  <name>$count</name>
1273
  <default><![CDATA[NULL]]></default>
1274
  <type/>
1275
  </argument>
1276
  </method>
1277
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1185" package="Media Library Assistant">
1278
  <name>mla_query_list_table_items</name>
1279
  <full_name>mla_query_list_table_items</full_name>
1280
+ <docblock line="1171">
1281
  <description><![CDATA[Retrieve attachment objects for list table display]]></description>
1282
  <long-description><![CDATA[<p>Supports prepare_items in class-mla-list-table.php.
1283
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
1284
+ <tag line="1171" name="since" description="0.1"/>
1285
+ <tag line="1171" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
1286
  <type by_reference="false">array</type>
1287
  </tag>
1288
+ <tag line="1171" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
1289
  <type by_reference="false">int</type>
1290
  </tag>
1291
+ <tag line="1171" name="param" description="number of rows on each page" type="int" variable="$count">
1292
  <type by_reference="false">int</type>
1293
  </tag>
1294
+ <tag line="1171" name="return" description="attachment objects (posts) including parent data, meta data and references" type="array">
1295
  <type by_reference="false">array</type>
1296
  </tag>
1297
  </docblock>
1298
+ <argument line="1185">
1299
  <name>$request</name>
1300
  <default><![CDATA[]]></default>
1301
  <type/>
1302
  </argument>
1303
+ <argument line="1185">
1304
  <name>$offset</name>
1305
  <default><![CDATA[]]></default>
1306
  <type/>
1307
  </argument>
1308
+ <argument line="1185">
1309
  <name>$count</name>
1310
  <default><![CDATA[]]></default>
1311
  <type/>
1312
  </argument>
1313
  </method>
1314
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1231" package="Media Library Assistant">
1315
  <name>mla_query_media_modal_items</name>
1316
  <full_name>mla_query_media_modal_items</full_name>
1317
+ <docblock line="1218">
1318
  <description><![CDATA[Retrieve attachment objects for the WordPress Media Manager]]></description>
1319
  <long-description><![CDATA[<p>Supports month-year and taxonomy-term filters as well as the enhanced search box</p>]]></long-description>
1320
+ <tag line="1218" name="since" description="1.20"/>
1321
+ <tag line="1218" name="param" description="query parameters from Media Manager" type="array" variable="$request">
1322
  <type by_reference="false">array</type>
1323
  </tag>
1324
+ <tag line="1218" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
1325
  <type by_reference="false">int</type>
1326
  </tag>
1327
+ <tag line="1218" name="param" description="number of rows on each page" type="int" variable="$count">
1328
  <type by_reference="false">int</type>
1329
  </tag>
1330
+ <tag line="1218" name="return" description="attachment objects (posts)" type="array">
1331
  <type by_reference="false">array</type>
1332
  </tag>
1333
  </docblock>
1334
+ <argument line="1231">
1335
  <name>$request</name>
1336
  <default><![CDATA[]]></default>
1337
  <type/>
1338
  </argument>
1339
+ <argument line="1231">
1340
  <name>$offset</name>
1341
  <default><![CDATA[]]></default>
1342
  <type/>
1343
  </argument>
1344
+ <argument line="1231">
1345
  <name>$count</name>
1346
  <default><![CDATA[]]></default>
1347
  <type/>
1348
  </argument>
1349
  </method>
1350
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1295" package="Media Library Assistant">
1351
  <name>_prepare_list_table_query</name>
1352
  <full_name>_prepare_list_table_query</full_name>
1353
+ <docblock line="1281">
1354
  <description><![CDATA[Sanitize and expand query arguments from request variables]]></description>
1355
  <long-description><![CDATA[<p>Prepare the arguments for WP_Query.
1356
  Modeled after wp_edit_attachments_query in wp-admin/post.php</p>]]></long-description>
1357
+ <tag line="1281" name="since" description="0.1"/>
1358
+ <tag line="1281" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$raw_request">
1359
  <type by_reference="false">array</type>
1360
  </tag>
1361
+ <tag line="1281" name="param" description="Optional number of rows (default 0) to skip over to reach desired page" type="int" variable="$offset">
1362
  <type by_reference="false">int</type>
1363
  </tag>
1364
+ <tag line="1281" name="param" description="Optional number of rows on each page (0 = all rows, default)" type="int" variable="$count">
1365
  <type by_reference="false">int</type>
1366
  </tag>
1367
+ <tag line="1281" name="return" description="revised arguments suitable for WP_Query" type="array">
1368
  <type by_reference="false">array</type>
1369
  </tag>
1370
  </docblock>
1371
+ <argument line="1295">
1372
  <name>$raw_request</name>
1373
  <default><![CDATA[]]></default>
1374
  <type/>
1375
  </argument>
1376
+ <argument line="1295">
1377
  <name>$offset</name>
1378
  <default><![CDATA[0]]></default>
1379
  <type/>
1380
  </argument>
1381
+ <argument line="1295">
1382
  <name>$count</name>
1383
  <default><![CDATA[0]]></default>
1384
  <type/>
1385
  </argument>
1386
  </method>
1387
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1673" package="Media Library Assistant">
1388
  <name>_execute_list_table_query</name>
1389
  <full_name>_execute_list_table_query</full_name>
1390
+ <docblock line="1664">
1391
  <description><![CDATA[Add filters, run query, remove filters]]></description>
1392
  <long-description><![CDATA[]]></long-description>
1393
+ <tag line="1664" name="since" description="0.30"/>
1394
+ <tag line="1664" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
1395
  <type by_reference="false">array</type>
1396
  </tag>
1397
+ <tag line="1664" name="return" description="WP_Query object with query results" type="object">
1398
  <type by_reference="false">object</type>
1399
  </tag>
1400
  </docblock>
1401
+ <argument line="1673">
1402
  <name>$request</name>
1403
  <default><![CDATA[]]></default>
1404
  <type/>
1405
  </argument>
1406
  </method>
1407
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1776" package="Media Library Assistant">
1408
  <name>mla_search_terms_tidy</name>
1409
  <full_name>mla_search_terms_tidy</full_name>
1410
+ <docblock line="1765">
1411
  <description><![CDATA[Replaces a WordPress function deprecated in v3.7]]></description>
1412
  <long-description><![CDATA[<p>Defined as public because it's a callback from array_map().</p>]]></long-description>
1413
+ <tag line="1765" name="since" description="1.51"/>
1414
+ <tag line="1765" name="param" description="search term before modification" type="string" variable="$term">
1415
  <type by_reference="false">string</type>
1416
  </tag>
1417
+ <tag line="1765" name="return" description="cleaned up search term" type="string">
1418
  <type by_reference="false">string</type>
1419
  </tag>
1420
  </docblock>
1421
+ <argument line="1776">
1422
  <name>$term</name>
1423
  <default><![CDATA[]]></default>
1424
  <type/>
1425
  </argument>
1426
  </method>
1427
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1792" package="Media Library Assistant">
1428
  <name>mla_query_posts_search_filter</name>
1429
  <full_name>mla_query_posts_search_filter</full_name>
1430
+ <docblock line="1780">
1431
  <description><![CDATA[Adds a keyword search to the WHERE clause, if required]]></description>
1432
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
1433
+ <tag line="1780" name="since" description="0.60"/>
1434
+ <tag line="1780" name="param" description="query clause before modification" type="string" variable="$search_string">
1435
  <type by_reference="false">string</type>
1436
  </tag>
1437
+ <tag line="1780" name="param" description="WP_Query object" type="object" variable="$query_object">
1438
  <type by_reference="false">object</type>
1439
  </tag>
1440
+ <tag line="1780" name="return" description="query clause after keyword search addition" type="string">
1441
  <type by_reference="false">string</type>
1442
  </tag>
1443
  </docblock>
1444
+ <argument line="1792">
1445
  <name>$search_string</name>
1446
  <default><![CDATA[]]></default>
1447
  <type/>
1448
  </argument>
1449
+ <argument line="1792">
1450
  <name>$query_object</name>
1451
  <default><![CDATA[]]></default>
1452
  <type/>
1453
  </argument>
1454
  </method>
1455
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2062" package="Media Library Assistant">
1456
  <name>mla_query_posts_where_filter</name>
1457
  <full_name>mla_query_posts_where_filter</full_name>
1458
+ <docblock line="2050">
1459
+ <description><![CDATA[Adds/modifies the WHERE clause for meta values, LIKE patterns and detached items]]></description>
1460
  <long-description><![CDATA[<p>Modeled after _edit_attachments_query_helper in wp-admin/post.php.
1461
  Defined as public because it's a filter.</p>]]></long-description>
1462
+ <tag line="2050" name="since" description="0.1"/>
1463
+ <tag line="2050" name="param" description="query clause before modification" type="string" variable="$where_clause">
1464
  <type by_reference="false">string</type>
1465
  </tag>
1466
+ <tag line="2050" name="return" description="query clause after modification" type="string">
1467
  <type by_reference="false">string</type>
1468
  </tag>
1469
  </docblock>
1470
+ <argument line="2062">
1471
  <name>$where_clause</name>
1472
  <default><![CDATA[]]></default>
1473
  <type/>
1474
  </argument>
1475
  </method>
1476
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2130" package="Media Library Assistant">
1477
  <name>mla_query_posts_join_filter</name>
1478
  <full_name>mla_query_posts_join_filter</full_name>
1479
+ <docblock line="2119">
1480
  <description><![CDATA[Adds a JOIN clause, if required, to handle sorting/searching on custom fields or ALT Text]]></description>
1481
  <long-description><![CDATA[<p>Defined as public because it's a filter.</p>]]></long-description>
1482
+ <tag line="2119" name="since" description="0.30"/>
1483
+ <tag line="2119" name="param" description="query clause before modification" type="string" variable="$join_clause">
1484
  <type by_reference="false">string</type>
1485
  </tag>
1486
+ <tag line="2119" name="return" description="query clause after &quot;LEFT JOIN view ON post_id&quot; item modification" type="string">
1487
  <type by_reference="false">string</type>
1488
  </tag>
1489
  </docblock>
1490
+ <argument line="2130">
1491
  <name>$join_clause</name>
1492
  <default><![CDATA[]]></default>
1493
  <type/>
1494
  </argument>
1495
  </method>
1496
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2185" package="Media Library Assistant">
1497
  <name>mla_query_posts_groupby_filter</name>
1498
  <full_name>mla_query_posts_groupby_filter</full_name>
1499
+ <docblock line="2173">
1500
  <description><![CDATA[Adds a GROUPBY clause, if required]]></description>
1501
  <long-description><![CDATA[<p>Taxonomy text queries require a GROUPBY clause.
1502
  Defined as public because it's a filter.</p>]]></long-description>
1503
+ <tag line="2173" name="since" description="1.90"/>
1504
+ <tag line="2173" name="param" description="query clause before modification" type="string" variable="$groupby_clause">
1505
  <type by_reference="false">string</type>
1506
  </tag>
1507
+ <tag line="2173" name="return" description="updated query clause" type="string">
1508
  <type by_reference="false">string</type>
1509
  </tag>
1510
  </docblock>
1511
+ <argument line="2185">
1512
  <name>$groupby_clause</name>
1513
  <default><![CDATA[]]></default>
1514
  <type/>
1515
  </argument>
1516
  </method>
1517
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2207" package="Media Library Assistant">
1518
  <name>mla_query_posts_orderby_filter</name>
1519
  <full_name>mla_query_posts_orderby_filter</full_name>
1520
+ <docblock line="2195">
1521
  <description><![CDATA[Adds a ORDERBY clause, if required]]></description>
1522
  <long-description><![CDATA[<p>Expands the range of sort options because the logic in WP_Query is limited.
1523
  Defined as public because it's a filter.</p>]]></long-description>
1524
+ <tag line="2195" name="since" description="0.30"/>
1525
+ <tag line="2195" name="param" description="query clause before modification" type="string" variable="$orderby_clause">
1526
  <type by_reference="false">string</type>
1527
  </tag>
1528
+ <tag line="2195" name="return" description="updated query clause" type="string">
1529
  <type by_reference="false">string</type>
1530
  </tag>
1531
  </docblock>
1532
+ <argument line="2207">
1533
  <name>$orderby_clause</name>
1534
  <default><![CDATA[]]></default>
1535
  <type/>
1536
  </argument>
1537
  </method>
1538
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2285" package="Media Library Assistant">
1539
  <name>mla_query_relevanssi_admin_search_ok_filter</name>
1540
  <full_name>mla_query_relevanssi_admin_search_ok_filter</full_name>
1541
+ <docblock line="2275">
1542
  <description><![CDATA[Disable Relevanssi - A Better Search, v3.2 by Mikko Saari
1543
  Defined as public because it's a filter.]]></description>
1544
  <long-description><![CDATA[]]></long-description>
1545
+ <tag line="2275" name="since" description="1.80"/>
1546
+ <tag line="2275" name="param" description="Default setting" type="boolean" variable="$admin_search_ok">
1547
  <type by_reference="false">boolean</type>
1548
  </tag>
1549
+ <tag line="2275" name="return" description="Updated setting" type="boolean">
1550
  <type by_reference="false">boolean</type>
1551
  </tag>
1552
  </docblock>
1553
+ <argument line="2285">
1554
  <name>$admin_search_ok</name>
1555
  <default><![CDATA[]]></default>
1556
  <type/>
1557
  </argument>
1558
  </method>
1559
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2301" package="Media Library Assistant">
1560
  <name>mla_query_posts_clauses_filter</name>
1561
  <full_name>mla_query_posts_clauses_filter</full_name>
1562
+ <docblock line="2289">
1563
  <description><![CDATA[Filters all clauses for shortcode queries, pre caching plugins]]></description>
1564
  <long-description><![CDATA[<p>This is for debug purposes only.
1565
  Defined as public because it's a filter.</p>]]></long-description>
1566
+ <tag line="2289" name="since" description="1.80"/>
1567
+ <tag line="2289" name="param" description="query clauses before modification" type="array" variable="$pieces">
1568
  <type by_reference="false">array</type>
1569
  </tag>
1570
+ <tag line="2289" name="return" description="query clauses after modification (none)" type="array">
1571
  <type by_reference="false">array</type>
1572
  </tag>
1573
  </docblock>
1574
+ <argument line="2301">
1575
  <name>$pieces</name>
1576
  <default><![CDATA[]]></default>
1577
  <type/>
1578
  </argument>
1579
  </method>
1580
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2325" package="Media Library Assistant">
1581
  <name>mla_query_posts_clauses_request_filter</name>
1582
  <full_name>mla_query_posts_clauses_request_filter</full_name>
1583
+ <docblock line="2313">
1584
  <description><![CDATA[Filters all clauses for shortcode queries, post caching plugins]]></description>
1585
  <long-description><![CDATA[<p>This is for debug purposes only.
1586
  Defined as public because it's a filter.</p>]]></long-description>
1587
+ <tag line="2313" name="since" description="1.80"/>
1588
+ <tag line="2313" name="param" description="query clauses before modification" type="array" variable="$pieces">
1589
  <type by_reference="false">array</type>
1590
  </tag>
1591
+ <tag line="2313" name="return" description="query clauses after modification (none)" type="array">
1592
  <type by_reference="false">array</type>
1593
  </tag>
1594
  </docblock>
1595
+ <argument line="2325">
1596
  <name>$pieces</name>
1597
  <default><![CDATA[]]></default>
1598
  <type/>
1599
  </argument>
1600
  </method>
1601
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2349" package="Media Library Assistant">
1602
  <name>mla_get_attachment_by_id</name>
1603
  <full_name>mla_get_attachment_by_id</full_name>
1604
+ <docblock line="2337">
1605
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
1606
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
1607
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
1608
+ <tag line="2337" name="since" description="0.1"/>
1609
+ <tag line="2337" name="uses" description="\global\$post" refers="\global\$post"/>
1610
+ <tag line="2337" name="param" description="The ID of the attachment post" type="int" variable="$post_id">
1611
  <type by_reference="false">int</type>
1612
  </tag>
1613
+ <tag line="2337" name="return" description="NULL on failure else associative array" type="NULL|array">
1614
  <type by_reference="false">NULL</type>
1615
  <type by_reference="false">array</type>
1616
  </tag>
1617
  </docblock>
1618
+ <argument line="2349">
1619
  <name>$post_id</name>
1620
  <default><![CDATA[]]></default>
1621
  <type/>
1622
  </argument>
1623
  </method>
1624
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2405" package="Media Library Assistant">
1625
  <name>mla_fetch_attachment_parent_data</name>
1626
  <full_name>mla_fetch_attachment_parent_data</full_name>
1627
+ <docblock line="2396">
1628
  <description><![CDATA[Returns information about an attachment's parent, if found]]></description>
1629
  <long-description><![CDATA[]]></long-description>
1630
+ <tag line="2396" name="since" description="0.1"/>
1631
+ <tag line="2396" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent_id">
1632
  <type by_reference="false">int</type>
1633
  </tag>
1634
+ <tag line="2396" name="return" description="Parent information; post_date, post_title and post_type" type="array">
1635
  <type by_reference="false">array</type>
1636
  </tag>
1637
  </docblock>
1638
+ <argument line="2405">
1639
  <name>$parent_id</name>
1640
  <default><![CDATA[]]></default>
1641
  <type/>
1642
  </argument>
1643
  </method>
1644
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2447" package="Media Library Assistant">
1645
  <name>_set_array_element</name>
1646
  <full_name>_set_array_element</full_name>
1647
+ <docblock line="2436">
1648
  <description><![CDATA[Adds or replaces the value of a key in a possibly nested array structure]]></description>
1649
  <long-description><![CDATA[]]></long-description>
1650
+ <tag line="2436" name="since" description="1.51"/>
1651
+ <tag line="2436" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
1652
  <type by_reference="false">string</type>
1653
  </tag>
1654
+ <tag line="2436" name="param" description="replacement value, string or array, by reference" type="mixed" variable="$value">
1655
  <type by_reference="false">mixed</type>
1656
  </tag>
1657
+ <tag line="2436" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
1658
  <type by_reference="false">array</type>
1659
  </tag>
1660
+ <tag line="2436" name="return" description="true if $needle element set, false if not" type="boolean">
1661
  <type by_reference="false">boolean</type>
1662
  </tag>
1663
  </docblock>
1664
+ <argument line="2447">
1665
  <name>$needle</name>
1666
  <default><![CDATA[]]></default>
1667
  <type/>
1668
  </argument>
1669
+ <argument line="2447">
1670
  <name>$value</name>
1671
  <default><![CDATA[]]></default>
1672
  <type/>
1673
  </argument>
1674
+ <argument line="2447">
1675
  <name>$haystack</name>
1676
  <default><![CDATA[]]></default>
1677
  <type/>
1678
  </argument>
1679
  </method>
1680
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2481" package="Media Library Assistant">
1681
  <name>_unset_array_element</name>
1682
  <full_name>_unset_array_element</full_name>
1683
+ <docblock line="2471">
1684
  <description><![CDATA[Deletes the value of a key in a possibly nested array structure]]></description>
1685
  <long-description><![CDATA[]]></long-description>
1686
+ <tag line="2471" name="since" description="1.51"/>
1687
+ <tag line="2471" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
1688
  <type by_reference="false">string</type>
1689
  </tag>
1690
+ <tag line="2471" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
1691
  <type by_reference="false">array</type>
1692
  </tag>
1693
+ <tag line="2471" name="return" description="true if $needle element found, false if not" type="boolean">
1694
  <type by_reference="false">boolean</type>
1695
  </tag>
1696
  </docblock>
1697
+ <argument line="2481">
1698
  <name>$needle</name>
1699
  <default><![CDATA[]]></default>
1700
  <type/>
1701
  </argument>
1702
+ <argument line="2481">
1703
  <name>$haystack</name>
1704
  <default><![CDATA[]]></default>
1705
  <type/>
1706
  </argument>
1707
  </method>
1708
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2516" package="Media Library Assistant">
1709
  <name>mla_find_array_element</name>
1710
  <full_name>mla_find_array_element</full_name>
1711
+ <docblock line="2501">
1712
  <description><![CDATA[Finds the value of a key in a possibly nested array structure]]></description>
1713
  <long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
1714
  Could also be used with the ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
1715
+ <tag line="2501" name="since" description="1.30"/>
1716
+ <tag line="2501" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
1717
  <type by_reference="false">string</type>
1718
  </tag>
1719
+ <tag line="2501" name="param" description="PHP nested arrays" type="array" variable="$haystack">
1720
  <type by_reference="false">array</type>
1721
  </tag>
1722
+ <tag line="2501" name="param" description="data option 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
1723
  <type by_reference="false">string</type>
1724
  </tag>
1725
+ <tag line="2501" name="param" description="keep existing values - for 'multi' option" type="boolean" variable="$keep_existing">
1726
  <type by_reference="false">boolean</type>
1727
  </tag>
1728
+ <tag line="2501" name="return" description="string or array value matching key(.key ...) or ''" type="mixed">
1729
  <type by_reference="false">mixed</type>
1730
  </tag>
1731
  </docblock>
1732
+ <argument line="2516">
1733
  <name>$needle</name>
1734
  <default><![CDATA[]]></default>
1735
  <type/>
1736
  </argument>
1737
+ <argument line="2516">
1738
  <name>$haystack</name>
1739
  <default><![CDATA[]]></default>
1740
  <type/>
1741
  </argument>
1742
+ <argument line="2516">
1743
  <name>$option</name>
1744
  <default><![CDATA[]]></default>
1745
  <type/>
1746
  </argument>
1747
+ <argument line="2516">
1748
  <name>$keep_existing</name>
1749
  <default><![CDATA[false]]></default>
1750
  <type/>
1751
  </argument>
1752
  </method>
1753
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2569" package="Media Library Assistant">
1754
  <name>mla_fetch_attachment_metadata</name>
1755
  <full_name>mla_fetch_attachment_metadata</full_name>
1756
+ <docblock line="2557">
1757
  <description><![CDATA[Fetch and filter meta data for an attachment]]></description>
1758
  <long-description><![CDATA[<p>Returns a filtered array of a post's meta data. Internal values beginning with '<em>'
1759
  are stripped out or converted to an 'mla</em>' equivalent.</p>]]></long-description>
1760
+ <tag line="2557" name="since" description="0.1"/>
1761
+ <tag line="2557" name="param" description="post ID of attachment" type="int" variable="$post_id">
1762
  <type by_reference="false">int</type>
1763
  </tag>
1764
+ <tag line="2557" name="return" description="Meta data variables" type="array">
1765
  <type by_reference="false">array</type>
1766
  </tag>
1767
  </docblock>
1768
+ <argument line="2569">
1769
  <name>$post_id</name>
1770
  <default><![CDATA[]]></default>
1771
  <type/>
1772
  </argument>
1773
  </method>
1774
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2654" package="Media Library Assistant">
1775
  <name>mla_fetch_attachment_references</name>
1776
  <full_name>mla_fetch_attachment_references</full_name>
1777
+ <docblock line="2641">
1778
  <description><![CDATA[Find Featured Image and inserted image/link references to an attachment]]></description>
1779
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachment is used
1780
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
1781
+ <tag line="2641" name="since" description="0.1"/>
1782
+ <tag line="2641" name="param" description="post ID of attachment" type="int" variable="$ID">
1783
  <type by_reference="false">int</type>
1784
  </tag>
1785
+ <tag line="2641" name="param" description="post ID of attachment's parent, if any" type="int" variable="$parent">
1786
  <type by_reference="false">int</type>
1787
  </tag>
1788
+ <tag line="2641" name="return" description="Reference information; see $references array comments" type="array">
1789
  <type by_reference="false">array</type>
1790
  </tag>
1791
  </docblock>
1792
+ <argument line="2654">
1793
  <name>$ID</name>
1794
  <default><![CDATA[]]></default>
1795
  <type/>
1796
  </argument>
1797
+ <argument line="2654">
1798
  <name>$parent</name>
1799
  <default><![CDATA[]]></default>
1800
  <type/>
1801
  </argument>
1802
  </method>
1803
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2968" package="Media Library Assistant">
1804
  <name>mla_attachment_array_fetch_references</name>
1805
  <full_name>mla_attachment_array_fetch_references</full_name>
1806
+ <docblock line="2956">
1807
  <description><![CDATA[Add Featured Image and inserted image/link references to an array of attachments]]></description>
1808
  <long-description><![CDATA[<p>Searches all post and page content to see if the attachmenta are used
1809
  as a Featured Image or inserted in the post as an image or link.</p>]]></long-description>
1810
+ <tag line="2956" name="since" description="1.94"/>
1811
+ <tag line="2956" name="param" description="WP_Post objects, passed by reference" type="array" variable="$attachments">
1812
  <type by_reference="false">array</type>
1813
  </tag>
1814
+ <tag line="2956" name="return" description="updates WP_Post objects with new mla_references property" type="void">
1815
  <type by_reference="false">void</type>
1816
  </tag>
1817
  </docblock>
1818
+ <argument line="2968">
1819
  <name>$attachments</name>
1820
  <default><![CDATA[]]></default>
1821
  <type/>
1822
  </argument>
1823
  </method>
1824
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3320" package="Media Library Assistant">
1825
  <name>mla_flush_mla_galleries</name>
1826
  <full_name>mla_flush_mla_galleries</full_name>
1827
+ <docblock line="3311">
1828
  <description><![CDATA[Invalidates the $mla_galleries or $galleries array and cached values]]></description>
1829
  <long-description><![CDATA[]]></long-description>
1830
+ <tag line="3311" name="since" description="1.00"/>
1831
+ <tag line="3311" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
1832
  <type by_reference="false">string</type>
1833
  </tag>
1834
+ <tag line="3311" name="return" description="" type="void">
1835
  <type by_reference="false">void</type>
1836
  </tag>
1837
  </docblock>
1838
+ <argument line="3320">
1839
  <name>$option_name</name>
1840
  <default><![CDATA[]]></default>
1841
  <type/>
1842
  </argument>
1843
  </method>
1844
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3344" package="Media Library Assistant">
1845
  <name>mla_save_post_action</name>
1846
  <full_name>mla_save_post_action</full_name>
1847
+ <docblock line="3335">
1848
  <description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
1849
  <long-description><![CDATA[]]></long-description>
1850
+ <tag line="3335" name="since" description="1.00"/>
1851
+ <tag line="3335" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
1852
  <type by_reference="false">integer</type>
1853
  </tag>
1854
+ <tag line="3335" name="return" description="" type="void">
1855
  <type by_reference="false">void</type>
1856
  </tag>
1857
  </docblock>
1858
+ <argument line="3344">
1859
  <name>$post_id</name>
1860
  <default><![CDATA[]]></default>
1861
  <type/>
1862
  </argument>
1863
  </method>
1864
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3361" package="Media Library Assistant">
1865
  <name>_build_mla_galleries</name>
1866
  <full_name>_build_mla_galleries</full_name>
1867
+ <docblock line="3349">
1868
  <description><![CDATA[Builds the $mla_galleries or $galleries array]]></description>
1869
  <long-description><![CDATA[]]></long-description>
1870
+ <tag line="3349" name="since" description="0.70"/>
1871
+ <tag line="3349" name="param" description="name of the gallery's cache/option variable" type="string" variable="$option_name">
1872
  <type by_reference="false">string</type>
1873
  </tag>
1874
+ <tag line="3349" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
1875
  <type by_reference="false">array</type>
1876
  </tag>
1877
+ <tag line="3349" name="param" description="the shortcode to be searched for and processed" type="string" variable="$shortcode">
1878
  <type by_reference="false">string</type>
1879
  </tag>
1880
+ <tag line="3349" name="param" description="true to exclude revisions from the search" type="boolean" variable="$exclude_revisions">
1881
  <type by_reference="false">boolean</type>
1882
  </tag>
1883
+ <tag line="3349" name="return" description="true if the galleries array is not empty" type="boolean">
1884
  <type by_reference="false">boolean</type>
1885
  </tag>
1886
  </docblock>
1887
+ <argument line="3361">
1888
  <name>$option_name</name>
1889
  <default><![CDATA[]]></default>
1890
  <type/>
1891
  </argument>
1892
+ <argument line="3361">
1893
  <name>$galleries_array</name>
1894
  <default><![CDATA[]]></default>
1895
  <type/>
1896
  </argument>
1897
+ <argument line="3361">
1898
  <name>$shortcode</name>
1899
  <default><![CDATA[]]></default>
1900
  <type/>
1901
  </argument>
1902
+ <argument line="3361">
1903
  <name>$exclude_revisions</name>
1904
  <default><![CDATA[]]></default>
1905
  <type/>
1906
  </argument>
1907
  </method>
1908
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3481" package="Media Library Assistant">
1909
  <name>_search_mla_galleries</name>
1910
  <full_name>_search_mla_galleries</full_name>
1911
+ <docblock line="3470">
1912
  <description><![CDATA[Search the $mla_galleries or $galleries array]]></description>
1913
  <long-description><![CDATA[]]></long-description>
1914
+ <tag line="3470" name="since" description="0.70"/>
1915
+ <tag line="3470" name="param" description="by reference to the private static galleries array variable" type="array" variable="$galleries_array">
1916
  <type by_reference="false">array</type>
1917
  </tag>
1918
+ <tag line="3470" name="param" description="the attachment ID to be searched for and processed" type="int" variable="$attachment_id">
1919
  <type by_reference="false">int</type>
1920
  </tag>
1921
+ <tag line="3470" 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">
1922
  <type by_reference="false">array</type>
1923
  </tag>
1924
  </docblock>
1925
+ <argument line="3481">
1926
  <name>$galleries_array</name>
1927
  <default><![CDATA[]]></default>
1928
  <type/>
1929
  </argument>
1930
+ <argument line="3481">
1931
  <name>$attachment_id</name>
1932
  <default><![CDATA[]]></default>
1933
  <type/>
1934
  </argument>
1935
  </method>
1936
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3520" package="Media Library Assistant">
1937
  <name>_parse_pdf_xref_subsection</name>
1938
  <full_name>_parse_pdf_xref_subsection</full_name>
1939
+ <docblock line="3507">
1940
  <description><![CDATA[Parse a cross-reference table subsection into the array of indirect object definitions]]></description>
1941
  <long-description><![CDATA[<p>A cross-reference subsection is a sequence of 20-byte entries, each with offset and generation values.</p>]]></long-description>
1942
+ <tag line="3507" name="since" description="1.50"/>
1943
+ <tag line="3507" name="param" description="buffer containing the subsection" type="string" variable="$xref_section">
1944
  <type by_reference="false">string</type>
1945
  </tag>
1946
+ <tag line="3507" name="param" description="offset within the buffer of the first entry" type="integer" variable="$offset">
1947
  <type by_reference="false">integer</type>
1948
  </tag>
1949
+ <tag line="3507" name="param" description="number of the first object in the subsection" type="integer" variable="$object_id">
1950
  <type by_reference="false">integer</type>
1951
  </tag>
1952
+ <tag line="3507" name="param" description="number of entries in the subsection" type="integer" variable="$count">
1953
  <type by_reference="false">integer</type>
1954
  </tag>
1955
+ <tag line="3507" name="return" description="" type="void">
1956
  <type by_reference="false">void</type>
1957
  </tag>
1958
  </docblock>
1959
+ <argument line="3520">
1960
  <name>$xref_section</name>
1961
  <default><![CDATA[]]></default>
1962
  <type/>
1963
  </argument>
1964
+ <argument line="3520">
1965
  <name>$offset</name>
1966
  <default><![CDATA[]]></default>
1967
  <type/>
1968
  </argument>
1969
+ <argument line="3520">
1970
  <name>$object_id</name>
1971
  <default><![CDATA[]]></default>
1972
  <type/>
1973
  </argument>
1974
+ <argument line="3520">
1975
  <name>$count</name>
1976
  <default><![CDATA[]]></default>
1977
  <type/>
1978
  </argument>
1979
  </method>
1980
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3552" package="Media Library Assistant">
1981
  <name>_parse_pdf_xref_section</name>
1982
  <full_name>_parse_pdf_xref_section</full_name>
1983
+ <docblock line="3541">
1984
  <description><![CDATA[Parse a cross-reference table section into the array of indirect object definitions]]></description>
1985
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
1986
+ <tag line="3541" name="since" description="1.50"/>
1987
+ <tag line="3541" name="param" description="full path and file name" type="string" variable="$file_name">
1988
  <type by_reference="false">string</type>
1989
  </tag>
1990
+ <tag line="3541" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
1991
  <type by_reference="false">integer</type>
1992
  </tag>
1993
+ <tag line="3541" name="return" description="length of the section" type="integer">
1994
  <type by_reference="false">integer</type>
1995
  </tag>
1996
  </docblock>
1997
+ <argument line="3552">
1998
  <name>$file_name</name>
1999
  <default><![CDATA[]]></default>
2000
  <type/>
2001
  </argument>
2002
+ <argument line="3552">
2003
  <name>$file_offset</name>
2004
  <default><![CDATA[]]></default>
2005
  <type/>
2006
  </argument>
2007
  </method>
2008
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3586" package="Media Library Assistant">
2009
  <name>_parse_pdf_xref_stream</name>
2010
  <full_name>_parse_pdf_xref_stream</full_name>
2011
+ <docblock line="3574">
2012
  <description><![CDATA[Parse a cross-reference steam into the array of indirect object definitions]]></description>
2013
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
2014
+ <tag line="3574" name="since" description="1.50"/>
2015
+ <tag line="3574" name="param" description="full path and file name" type="string" variable="$file_name">
2016
  <type by_reference="false">string</type>
2017
  </tag>
2018
+ <tag line="3574" name="param" description="offset within the file of the xref id and count entry" type="integer" variable="$file_offset">
2019
  <type by_reference="false">integer</type>
2020
  </tag>
2021
+ <tag line="3574" name="param" description="&quot;/W&quot; entry, representing the size of the fields in a single entry" type="string" variable="$entry_parms_string">
2022
  <type by_reference="false">string</type>
2023
  </tag>
2024
+ <tag line="3574" name="return" description="length of the stream" type="integer">
2025
  <type by_reference="false">integer</type>
2026
  </tag>
2027
  </docblock>
2028
+ <argument line="3586">
2029
  <name>$file_name</name>
2030
  <default><![CDATA[]]></default>
2031
  <type/>
2032
  </argument>
2033
+ <argument line="3586">
2034
  <name>$file_offset</name>
2035
  <default><![CDATA[]]></default>
2036
  <type/>
2037
  </argument>
2038
+ <argument line="3586">
2039
  <name>$entry_parms_string</name>
2040
  <default><![CDATA[]]></default>
2041
  <type/>
2042
  </argument>
2043
  </method>
2044
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3665" package="Media Library Assistant">
2045
  <name>_build_pdf_indirect_objects</name>
2046
  <full_name>_build_pdf_indirect_objects</full_name>
2047
+ <docblock line="3655">
2048
  <description><![CDATA[Build an array of indirect object definitions]]></description>
2049
  <long-description><![CDATA[<p>Creates the array of indirect object offsets and lengths</p>]]></long-description>
2050
+ <tag line="3655" name="since" description="1.50"/>
2051
+ <tag line="3655" name="param" description="The entire PDF document, passsed by reference" type="string" variable="$string">
2052
  <type by_reference="false">string</type>
2053
  </tag>
2054
+ <tag line="3655" name="return" description="" type="void">
2055
  <type by_reference="false">void</type>
2056
  </tag>
2057
  </docblock>
2058
+ <argument line="3665">
2059
  <name>$string</name>
2060
  <default><![CDATA[]]></default>
2061
  <type/>
2062
  </argument>
2063
  </method>
2064
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3713" package="Media Library Assistant">
2065
  <name>_find_pdf_indirect_dictionary</name>
2066
  <full_name>_find_pdf_indirect_dictionary</full_name>
2067
+ <docblock line="3699">
2068
  <description><![CDATA[Find the offset, length and contents of an indirect object containing a dictionary]]></description>
2069
  <long-description><![CDATA[<p>The function searches the entire file, if necessary, to find the last/most recent copy of the object.
2070
  This is required because Adobe Acrobat does NOT increment the generation number when it reuses an object.</p>]]></long-description>
2071
+ <tag line="3699" name="since" description="1.50"/>
2072
+ <tag line="3699" name="param" description="full path and file name" type="string" variable="$file_name">
2073
  <type by_reference="false">string</type>
2074
  </tag>
2075
+ <tag line="3699" name="param" description="The object number" type="integer" variable="$object">
2076
  <type by_reference="false">integer</type>
2077
  </tag>
2078
+ <tag line="3699" name="param" description="The object generation number; default zero (0)" type="integer" variable="$generation">
2079
  <type by_reference="false">integer</type>
2080
  </tag>
2081
+ <tag line="3699" name="return" description="NULL on failure else array( 'start' =&gt; offset in the file, 'length' =&gt; object length, 'content' =&gt; dictionary contents )" type="mixed">
2082
  <type by_reference="false">mixed</type>
2083
  </tag>
2084
  </docblock>
2085
+ <argument line="3713">
2086
  <name>$file_name</name>
2087
  <default><![CDATA[]]></default>
2088
  <type/>
2089
  </argument>
2090
+ <argument line="3713">
2091
  <name>$object</name>
2092
  <default><![CDATA[]]></default>
2093
  <type/>
2094
  </argument>
2095
+ <argument line="3713">
2096
  <name>$generation</name>
2097
  <default><![CDATA[0]]></default>
2098
  <type/>
2099
  </argument>
2100
  </method>
2101
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3810" package="Media Library Assistant">
2102
  <name>_parse_iso8601_date</name>
2103
  <full_name>_parse_iso8601_date</full_name>
2104
+ <docblock line="3801">
2105
  <description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
2106
  <long-description><![CDATA[]]></long-description>
2107
+ <tag line="3801" name="since" description="1.50"/>
2108
+ <tag line="3801" name="param" description="ISO string of the form YYYY-MM-DDTHH:MM:SS-HH:MM (inc time zone)" type="string" variable="$source_string">
2109
  <type by_reference="false">string</type>
2110
  </tag>
2111
+ <tag line="3801" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
2112
  <type by_reference="false">string</type>
2113
  </tag>
2114
  </docblock>
2115
+ <argument line="3810">
2116
  <name>$source_string</name>
2117
  <default><![CDATA[]]></default>
2118
  <type/>
2119
  </argument>
2120
  </method>
2121
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3833" package="Media Library Assistant">
2122
  <name>_parse_pdf_date</name>
2123
  <full_name>_parse_pdf_date</full_name>
2124
+ <docblock line="3824">
2125
  <description><![CDATA[Parse a PDF date string]]></description>
2126
  <long-description><![CDATA[]]></long-description>
2127
+ <tag line="3824" name="since" description="1.50"/>
2128
+ <tag line="3824" name="param" description="PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm" type="string" variable="$source_string">
2129
  <type by_reference="false">string</type>
2130
  </tag>
2131
+ <tag line="3824" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
2132
  <type by_reference="false">string</type>
2133
  </tag>
2134
  </docblock>
2135
+ <argument line="3833">
2136
  <name>$source_string</name>
2137
  <default><![CDATA[]]></default>
2138
  <type/>
2139
  </argument>
2140
  </method>
2141
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3856" package="Media Library Assistant">
2142
  <name>_parse_pdf_UTF16BE</name>
2143
  <full_name>_parse_pdf_UTF16BE</full_name>
2144
+ <docblock line="3847">
2145
  <description><![CDATA[Parse a PDF Unicode (16-bit Big Endian) object]]></description>
2146
  <long-description><![CDATA[]]></long-description>
2147
+ <tag line="3847" name="since" description="1.50"/>
2148
+ <tag line="3847" name="param" description="PDF string of 16-bit characters" type="string" variable="$source_string">
2149
  <type by_reference="false">string</type>
2150
  </tag>
2151
+ <tag line="3847" name="return" description="UTF-8 encoded string" type="string">
2152
  <type by_reference="false">string</type>
2153
  </tag>
2154
  </docblock>
2155
+ <argument line="3856">
2156
  <name>$source_string</name>
2157
  <default><![CDATA[]]></default>
2158
  <type/>
2159
  </argument>
2160
  </method>
2161
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3885" package="Media Library Assistant">
2162
  <name>_parse_pdf_string</name>
2163
  <full_name>_parse_pdf_string</full_name>
2164
+ <docblock line="3872">
2165
  <description><![CDATA[Parse a PDF string object]]></description>
2166
  <long-description><![CDATA[<p>Returns an array with one dictionary entry. The array also has a '/length' element containing
2167
  the number of bytes occupied by the string in the source string, including the enclosing parentheses.</p>]]></long-description>
2168
+ <tag line="3872" name="since" description="1.50"/>
2169
+ <tag line="3872" name="param" description="data within which the string occurs" type="string" variable="$source_string">
2170
  <type by_reference="false">string</type>
2171
  </tag>
2172
+ <tag line="3872" name="param" description="offset within the source string of the opening '(' character." type="integer" variable="$offset">
2173
  <type by_reference="false">integer</type>
2174
  </tag>
2175
+ <tag line="3872" name="return" description="( key =&gt; array( 'type' =&gt; type, 'value' =&gt; value, '/length' =&gt; length ) ) for the string" type="array">
2176
  <type by_reference="false">array</type>
2177
  </tag>
2178
  </docblock>
2179
+ <argument line="3885">
2180
  <name>$source_string</name>
2181
  <default><![CDATA[]]></default>
2182
  <type/>
2183
  </argument>
2184
+ <argument line="3885">
2185
  <name>$offset</name>
2186
  <default><![CDATA[]]></default>
2187
  <type/>
2188
  </argument>
2189
  </method>
2190
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3979" package="Media Library Assistant">
2191
  <name>_parse_pdf_LPD_dictionary</name>
2192
  <full_name>_parse_pdf_LPD_dictionary</full_name>
2193
+ <docblock line="3965">
2194
  <description><![CDATA[Parse a PDF Linearization Parameter Dictionary object]]></description>
2195
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
2196
  indirect (object), name, array, dictionary, stream, and null.
2197
  The array also has a '/length' element containing the number of bytes occupied by the
2198
  dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
2199
+ <tag line="3965" name="since" description="1.50"/>
2200
+ <tag line="3965" name="param" description="data within which the object occurs, typically the start of a PDF document" type="string" variable="$source_string">
2201
  <type by_reference="false">string</type>
2202
  </tag>
2203
+ <tag line="3965" name="param" description="filesize of the PDF document, for validation purposes, or zero (0) to ignore filesize" type="integer" variable="$filesize">
2204
  <type by_reference="false">integer</type>
2205
  </tag>
2206
+ <tag line="3965" name="return" description="array of dictionary objects on success, false on failure" type="mixed">
2207
  <type by_reference="false">mixed</type>
2208
  </tag>
2209
  </docblock>
2210
+ <argument line="3979">
2211
  <name>$source_string</name>
2212
  <default><![CDATA[]]></default>
2213
  <type/>
2214
  </argument>
2215
+ <argument line="3979">
2216
  <name>$filesize</name>
2217
  <default><![CDATA[]]></default>
2218
  <type/>
2219
  </argument>
2220
  </method>
2221
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4004" package="Media Library Assistant">
2222
  <name>_parse_pdf_dictionary</name>
2223
  <full_name>_parse_pdf_dictionary</full_name>
2224
+ <docblock line="3990">
2225
  <description><![CDATA[Parse a PDF dictionary object]]></description>
2226
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
2227
  indirect (object), name, array, dictionary, stream, and null.
2228
  The array also has a '/length' element containing the number of bytes occupied by the
2229
  dictionary in the source string, excluding the enclosing delimiters.</p>]]></long-description>
2230
+ <tag line="3990" name="since" description="1.50"/>
2231
+ <tag line="3990" name="param" description="data within which the string occurs" type="string" variable="$source_string">
2232
  <type by_reference="false">string</type>
2233
  </tag>
2234
+ <tag line="3990" name="param" description="offset within the source string of the opening '&lt;&lt;' characters or the first content character." type="integer" variable="$offset">
2235
  <type by_reference="false">integer</type>
2236
  </tag>
2237
+ <tag line="3990" name="return" description="( '/length' =&gt; length, key =&gt; array( 'type' =&gt; type, 'value' =&gt; value ) ) for each dictionary field" type="array">
2238
  <type by_reference="false">array</type>
2239
  </tag>
2240
  </docblock>
2241
+ <argument line="4004">
2242
  <name>$source_string</name>
2243
  <default><![CDATA[]]></default>
2244
  <type/>
2245
  </argument>
2246
+ <argument line="4004">
2247
  <name>$offset</name>
2248
  <default><![CDATA[]]></default>
2249
  <type/>
2250
  </argument>
2251
  </method>
2252
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4136" package="Media Library Assistant">
2253
  <name>_parse_xmp_metadata</name>
2254
  <full_name>_parse_xmp_metadata</full_name>
2255
+ <docblock line="4122">
2256
  <description><![CDATA[Parse an XMP object]]></description>
2257
  <long-description><![CDATA[<p>Returns an array of dictionary contents, classified by object type: boolean, numeric, string, hex (string),
2258
  indirect (object), name, array, dictionary, stream, and null.
2259
  The array also has a '/length' element containing the number of bytes occupied by the
2260
  dictionary in the source string, excluding the enclosing delimiters, if passed in.</p>]]></long-description>
2261
+ <tag line="4122" name="since" description="1.50"/>
2262
+ <tag line="4122" name="param" description="full path and file name" type="string" variable="$file_name">
2263
  <type by_reference="false">string</type>
2264
  </tag>
2265
+ <tag line="4122" name="param" description="offset within the file of the search start point" type="integer" variable="$file_offset">
2266
  <type by_reference="false">integer</type>
2267
  </tag>
2268
+ <tag line="4122" name="return" description="array of metadata values or NULL on failure" type="mixed">
2269
  <type by_reference="false">mixed</type>
2270
  </tag>
2271
  </docblock>
2272
+ <argument line="4136">
2273
  <name>$file_name</name>
2274
  <default><![CDATA[]]></default>
2275
  <type/>
2276
  </argument>
2277
+ <argument line="4136">
2278
  <name>$file_offset</name>
2279
  <default><![CDATA[]]></default>
2280
  <type/>
2281
  </argument>
2282
  </method>
2283
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4425" package="Media Library Assistant">
2284
  <name>_extract_pdf_trailer</name>
2285
  <full_name>_extract_pdf_trailer</full_name>
2286
+ <docblock line="4415">
2287
  <description><![CDATA[Extract dictionary from traditional cross-reference + trailer documents]]></description>
2288
  <long-description><![CDATA[]]></long-description>
2289
+ <tag line="4415" name="since" description="1.50"/>
2290
+ <tag line="4415" name="param" description="full path to the desired file" type="string" variable="$file_name">
2291
  <type by_reference="false">string</type>
2292
  </tag>
2293
+ <tag line="4415" name="param" description="offset within file of the cross-reference table" type="integer" variable="$file_offset">
2294
  <type by_reference="false">integer</type>
2295
  </tag>
2296
+ <tag line="4415" name="return" description="array of &quot;PDF dictionary arrays&quot;, newest first, or NULL on failure" type="mixed">
2297
  <type by_reference="false">mixed</type>
2298
  </tag>
2299
  </docblock>
2300
+ <argument line="4425">
2301
  <name>$file_name</name>
2302
  <default><![CDATA[]]></default>
2303
  <type/>
2304
  </argument>
2305
+ <argument line="4425">
2306
  <name>$file_offset</name>
2307
  <default><![CDATA[]]></default>
2308
  <type/>
2309
  </argument>
2310
  </method>
2311
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4511" package="Media Library Assistant">
2312
  <name>_extract_pdf_metadata</name>
2313
  <full_name>_extract_pdf_metadata</full_name>
2314
+ <docblock line="4502">
2315
  <description><![CDATA[Extract Metadata from a PDF file]]></description>
2316
  <long-description><![CDATA[]]></long-description>
2317
+ <tag line="4502" name="since" description="1.50"/>
2318
+ <tag line="4502" name="param" description="full path to the desired file" type="string" variable="$file_name">
2319
  <type by_reference="false">string</type>
2320
  </tag>
2321
+ <tag line="4502" name="return" description="( key =&gt; value ) for each metadata field, in string format" type="array">
2322
  <type by_reference="false">array</type>
2323
  </tag>
2324
  </docblock>
2325
+ <argument line="4511">
2326
  <name>$file_name</name>
2327
  <default><![CDATA[]]></default>
2328
  <type/>
2329
  </argument>
2330
  </method>
2331
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4644" package="Media Library Assistant">
2332
  <name>_bin_to_utf8</name>
2333
  <full_name>_bin_to_utf8</full_name>
2334
+ <docblock line="4635">
2335
  <description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
2336
  <long-description><![CDATA[]]></long-description>
2337
+ <tag line="4635" name="since" description="1.41"/>
2338
+ <tag line="4635" name="param" description="unencoded string" type="string" variable="$string">
2339
  <type by_reference="false">string</type>
2340
  </tag>
2341
+ <tag line="4635" name="return" description="UTF-8 encoded string" type="string">
2342
  <type by_reference="false">string</type>
2343
  </tag>
2344
  </docblock>
2345
+ <argument line="4644">
2346
  <name>$string</name>
2347
  <default><![CDATA[]]></default>
2348
  <type/>
2349
  </argument>
2350
  </method>
2351
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5042" package="Media Library Assistant">
2352
  <name>mla_iptc_metadata_value</name>
2353
  <full_name>mla_iptc_metadata_value</full_name>
2354
+ <docblock line="5032">
2355
  <description><![CDATA[Parse one IPTC metadata field]]></description>
2356
  <long-description><![CDATA[]]></long-description>
2357
+ <tag line="5032" name="since" description="1.41"/>
2358
+ <tag line="5032" name="param" description="field name - IPTC Identifier or friendly name/slug" type="string" variable="$iptc_key">
2359
  <type by_reference="false">string</type>
2360
  </tag>
2361
+ <tag line="5032" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
2362
  <type by_reference="false">string</type>
2363
  </tag>
2364
+ <tag line="5032" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
2365
  <type by_reference="false">mixed</type>
2366
  </tag>
2367
  </docblock>
2368
+ <argument line="5042">
2369
  <name>$iptc_key</name>
2370
  <default><![CDATA[]]></default>
2371
  <type/>
2372
  </argument>
2373
+ <argument line="5042">
2374
  <name>$item_metadata</name>
2375
  <default><![CDATA[]]></default>
2376
  <type/>
2377
  </argument>
2378
  </method>
2379
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5074" package="Media Library Assistant">
2380
  <name>mla_exif_metadata_value</name>
2381
  <full_name>mla_exif_metadata_value</full_name>
2382
+ <docblock line="5062">
2383
  <description><![CDATA[Parse one EXIF metadata field]]></description>
2384
  <long-description><![CDATA[<p>Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
2385
+ <tag line="5062" name="since" description="1.13"/>
2386
+ <tag line="5062" name="param" description="field name" type="string" variable="$exif_key">
2387
  <type by_reference="false">string</type>
2388
  </tag>
2389
+ <tag line="5062" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
2390
  <type by_reference="false">string</type>
2391
  </tag>
2392
+ <tag line="5062" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
2393
  <type by_reference="false">mixed</type>
2394
  </tag>
2395
  </docblock>
2396
+ <argument line="5074">
2397
  <name>$exif_key</name>
2398
  <default><![CDATA[]]></default>
2399
  <type/>
2400
  </argument>
2401
+ <argument line="5074">
2402
  <name>$item_metadata</name>
2403
  <default><![CDATA[]]></default>
2404
  <type/>
2405
  </argument>
2406
  </method>
2407
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5135" package="Media Library Assistant">
2408
  <name>mla_pdf_metadata_value</name>
2409
  <full_name>mla_pdf_metadata_value</full_name>
2410
+ <docblock line="5123">
2411
  <description><![CDATA[Parse one PDF metadata field]]></description>
2412
  <long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
2413
+ <tag line="5123" name="since" description="1.50"/>
2414
+ <tag line="5123" name="param" description="field name" type="string" variable="$pdf_key">
2415
  <type by_reference="false">string</type>
2416
  </tag>
2417
+ <tag line="5123" name="param" description="metadata array containing iptc, exif, and pdf metadata arrays" type="string" variable="$item_metadata">
2418
  <type by_reference="false">string</type>
2419
  </tag>
2420
+ <tag line="5123" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
2421
  <type by_reference="false">mixed</type>
2422
  </tag>
2423
  </docblock>
2424
+ <argument line="5135">
2425
  <name>$pdf_key</name>
2426
  <default><![CDATA[]]></default>
2427
  <type/>
2428
  </argument>
2429
+ <argument line="5135">
2430
  <name>$item_metadata</name>
2431
  <default><![CDATA[]]></default>
2432
  <type/>
2433
  </argument>
2434
  </method>
2435
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="5177" package="Media Library Assistant">
2436
  <name>_rational_to_decimal</name>
2437
  <full_name>_rational_to_decimal</full_name>
2438
+ <docblock line="5168">
2439
  <description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
2440
  <long-description><![CDATA[]]></long-description>
2441
+ <tag line="5168" name="since" description="1.50"/>
2442
+ <tag line="5168" name="param" description="array( 0 =&gt; numerator, 1 =&gt; denominator )" type="array" variable="$rational">
2443
  <type by_reference="false">array</type>
2444
  </tag>
2445
+ <tag line="5168" name="return" description="numerator/denominator" type="float">
2446
  <type by_reference="false">float</type>
2447
  </tag>
2448
  </docblock>
2449
+ <argument line="5177">
2450
  <name>$rational</name>
2451
  <default><![CDATA[]]></default>
2452
  <type/>
2453
  </argument>
2454
  </method>
2455
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5204" package="Media Library Assistant">
2456
  <name>mla_IPTC_EXIF_error_handler</name>
2457
  <full_name>mla_IPTC_EXIF_error_handler</full_name>
2458
+ <docblock line="5192">
2459
  <description><![CDATA[Intercept IPTC and EXIF parse errors]]></description>
2460
  <long-description><![CDATA[]]></long-description>
2461
+ <tag line="5192" name="since" description="1.81"/>
2462
+ <tag line="5192" name="param" description="the level of the error raised" type="int" variable="$type">
2463
  <type by_reference="false">int</type>
2464
  </tag>
2465
+ <tag line="5192" name="param" description="the error message" type="string" variable="$string">
2466
  <type by_reference="false">string</type>
2467
  </tag>
2468
+ <tag line="5192" name="param" description="the filename that the error was raised in" type="string" variable="$file">
2469
  <type by_reference="false">string</type>
2470
  </tag>
2471
+ <tag line="5192" name="param" description="the line number the error was raised at" type="int" variable="$line">
2472
  <type by_reference="false">int</type>
2473
  </tag>
2474
+ <tag line="5192" name="return" description="true, to bypass PHP error handler" type="boolean">
2475
  <type by_reference="false">boolean</type>
2476
  </tag>
2477
  </docblock>
2478
+ <argument line="5204">
2479
  <name>$type</name>
2480
  <default><![CDATA[]]></default>
2481
  <type/>
2482
  </argument>
2483
+ <argument line="5204">
2484
  <name>$string</name>
2485
  <default><![CDATA[]]></default>
2486
  <type/>
2487
  </argument>
2488
+ <argument line="5204">
2489
  <name>$file</name>
2490
  <default><![CDATA[]]></default>
2491
  <type/>
2492
  </argument>
2493
+ <argument line="5204">
2494
  <name>$line</name>
2495
  <default><![CDATA[]]></default>
2496
  <type/>
2497
  </argument>
2498
  </method>
2499
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5242" package="Media Library Assistant">
2500
  <name>mla_fetch_attachment_image_metadata</name>
2501
  <full_name>mla_fetch_attachment_image_metadata</full_name>
2502
+ <docblock line="5232">
2503
  <description><![CDATA[Fetch and filter IPTC and EXIF or PDF metadata for an image attachment]]></description>
2504
  <long-description><![CDATA[]]></long-description>
2505
+ <tag line="5232" name="since" description="0.90"/>
2506
+ <tag line="5232" name="param" description="post ID of attachment" type="int" variable="$post_id">
2507
  <type by_reference="false">int</type>
2508
  </tag>
2509
+ <tag line="5232" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
2510
  <type by_reference="false">string</type>
2511
  </tag>
2512
+ <tag line="5232" name="return" description="Meta data variables, IPTC and EXIF or PDF" type="array">
2513
  <type by_reference="false">array</type>
2514
  </tag>
2515
  </docblock>
2516
+ <argument line="5242">
2517
  <name>$post_id</name>
2518
  <default><![CDATA[]]></default>
2519
  <type/>
2520
  </argument>
2521
+ <argument line="5242">
2522
  <name>$path</name>
2523
  <default><![CDATA['']]></default>
2524
  <type/>
2525
  </argument>
2526
  </method>
2527
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5431" package="Media Library Assistant">
2528
  <name>mla_update_wp_attachment_metadata</name>
2529
  <full_name>mla_update_wp_attachment_metadata</full_name>
2530
+ <docblock line="5421">
2531
  <description><![CDATA[Update "meta:" data for a single attachment]]></description>
2532
  <long-description><![CDATA[]]></long-description>
2533
+ <tag line="5421" name="since" description="1.51"/>
2534
+ <tag line="5421" name="param" description="The current wp_attachment_metadata value" type="array" variable="$current_values">
2535
  <type by_reference="false">array</type>
2536
  </tag>
2537
+ <tag line="5421" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
2538
  <type by_reference="false">array</type>
2539
  </tag>
2540
+ <tag line="5421" name="return" description="success/failure message(s); empty string if no changes." type="string">
2541
  <type by_reference="false">string</type>
2542
  </tag>
2543
  </docblock>
2544
+ <argument line="5431">
2545
  <name>$current_values</name>
2546
  <default><![CDATA[]]></default>
2547
  <type/>
2548
  </argument>
2549
+ <argument line="5431">
2550
  <name>$new_meta</name>
2551
  <default><![CDATA[]]></default>
2552
  <type/>
2553
  </argument>
2554
  </method>
2555
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5515" package="Media Library Assistant">
2556
  <name>mla_update_item_postmeta</name>
2557
  <full_name>mla_update_item_postmeta</full_name>
2558
+ <docblock line="5505">
2559
  <description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
2560
  <long-description><![CDATA[]]></long-description>
2561
+ <tag line="5505" name="since" description="1.40"/>
2562
+ <tag line="5505" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
2563
  <type by_reference="false">int</type>
2564
  </tag>
2565
+ <tag line="5505" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
2566
  <type by_reference="false">array</type>
2567
  </tag>
2568
+ <tag line="5505" name="return" description="success/failure message(s)" type="string">
2569
  <type by_reference="false">string</type>
2570
  </tag>
2571
  </docblock>
2572
+ <argument line="5515">
2573
  <name>$post_id</name>
2574
  <default><![CDATA[]]></default>
2575
  <type/>
2576
  </argument>
2577
+ <argument line="5515">
2578
  <name>$new_meta</name>
2579
  <default><![CDATA[]]></default>
2580
  <type/>
2581
  </argument>
2582
  </method>
2583
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="5682" package="Media Library Assistant">
2584
  <name>mla_update_single_item</name>
2585
  <full_name>mla_update_single_item</full_name>
2586
+ <docblock line="5669">
2587
  <description><![CDATA[Update a single item; change the "post" data, taxonomy terms
2588
  and meta data for a single attachment]]></description>
2589
  <long-description><![CDATA[]]></long-description>
2590
+ <tag line="5669" name="since" description="0.1"/>
2591
+ <tag line="5669" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
2592
  <type by_reference="false">int</type>
2593
  </tag>
2594
+ <tag line="5669" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
2595
  <type by_reference="false">array</type>
2596
  </tag>
2597
+ <tag line="5669" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
2598
  <type by_reference="false">array</type>
2599
  </tag>
2600
+ <tag line="5669" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
2601
  <type by_reference="false">array</type>
2602
  </tag>
2603
+ <tag line="5669" name="return" description="success/failure message and NULL content" type="array">
2604
  <type by_reference="false">array</type>
2605
  </tag>
2606
  </docblock>
2607
+ <argument line="5682">
2608
  <name>$post_id</name>
2609
  <default><![CDATA[]]></default>
2610
  <type/>
2611
  </argument>
2612
+ <argument line="5682">
2613
  <name>$new_data</name>
2614
  <default><![CDATA[]]></default>
2615
  <type/>
2616
  </argument>
2617
+ <argument line="5682">
2618
  <name>$tax_input</name>
2619
  <default><![CDATA[NULL]]></default>
2620
  <type/>
2621
  </argument>
2622
+ <argument line="5682">
2623
  <name>$tax_actions</name>
2624
  <default><![CDATA[NULL]]></default>
2625
  <type/>
2626
  </argument>
2627
  </method>
2628
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="5958" package="Media Library Assistant">
2629
  <name>_remove_tags</name>
2630
  <full_name>_remove_tags</full_name>
2631
+ <docblock line="5947">
2632
  <description><![CDATA[Remove tags from a term ids list]]></description>
2633
  <long-description><![CDATA[]]></long-description>
2634
+ <tag line="5947" name="since" description="0.40"/>
2635
+ <tag line="5947" name="param" description="The term ids currently assigned" type="array" variable="$terms_before">
2636
  <type by_reference="false">array</type>
2637
  </tag>
2638
+ <tag line="5947" name="param" description="| string The term ids (array) or names (string) to remove" type="array" variable="$tags">
2639
  <type by_reference="false">array</type>
2640
  </tag>
2641
+ <tag line="5947" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
2642
  <type by_reference="false">object</type>
2643
  </tag>
2644
+ <tag line="5947" name="return" description="Term ids of the surviving tags" type="array">
2645
  <type by_reference="false">array</type>
2646
  </tag>
2647
  </docblock>
2648
+ <argument line="5958">
2649
  <name>$terms_before</name>
2650
  <default><![CDATA[]]></default>
2651
  <type/>
2652
  </argument>
2653
+ <argument line="5958">
2654
  <name>$tags</name>
2655
  <default><![CDATA[]]></default>
2656
  <type/>
2657
  </argument>
2658
+ <argument line="5958">
2659
  <name>$taxonomy_obj</name>
2660
  <default><![CDATA[]]></default>
2661
  <type/>
2662
  </argument>
2663
  </method>
2664
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="6007" package="Media Library Assistant">
2665
  <name>_hex_dump</name>
2666
  <full_name>_hex_dump</full_name>
2667
+ <docblock line="5995">
2668
  <description><![CDATA[Format printable version of binary data]]></description>
2669
  <long-description><![CDATA[]]></long-description>
2670
+ <tag line="5995" name="since" description="0.90"/>
2671
+ <tag line="5995" name="param" description="Binary data" type="string" variable="$data">
2672
  <type by_reference="false">string</type>
2673
  </tag>
2674
+ <tag line="5995" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
2675
  <type by_reference="false">integer</type>
2676
  </tag>
2677
+ <tag line="5995" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
2678
  <type by_reference="false">\intger</type>
2679
  </tag>
2680
+ <tag line="5995" name="param" description="offset of initial byte, or -1 to suppress printing offset information" type="integer" variable="$offset">
2681
  <type by_reference="false">integer</type>
2682
  </tag>
2683
+ <tag line="5995" name="return" description="Printable representation of $data" type="string">
2684
  <type by_reference="false">string</type>
2685
  </tag>
2686
  </docblock>
2687
+ <argument line="6007">
2688
  <name>$data</name>
2689
  <default><![CDATA[]]></default>
2690
  <type/>
2691
  </argument>
2692
+ <argument line="6007">
2693
  <name>$limit</name>
2694
  <default><![CDATA[0]]></default>
2695
  <type/>
2696
  </argument>
2697
+ <argument line="6007">
2698
  <name>$bytes_per_row</name>
2699
  <default><![CDATA[16]]></default>
2700
  <type/>
2701
  </argument>
2702
+ <argument line="6007">
2703
  <name>$offset</name>
2704
  <default><![CDATA[-1]]></default>
2705
  <type/>
2707
  </method>
2708
  </class>
2709
  <markers>
2710
+ <todo line="3865">encode the rest</todo>
2711
  </markers>
2712
  </file>
2713
  <file path="includes\class-mla-edit-media.php" hash="75c542ede2570895091b3ac839d4248b" package="Media Library Assistant">
3229
  </method>
3230
  </class>
3231
  </file>
3232
+ <file path="includes\class-mla-list-table.php" hash="504fe98d3323f0b3ddbb4bce0aaa3e69" package="Media Library Assistant">
3233
  <docblock line="2">
3234
  <description><![CDATA[Media Library Assistant extended List Table class]]></description>
3235
  <long-description><![CDATA[]]></long-description>
3249
  <tag line="16" name="package" description="Media Library Assistant"/>
3250
  <tag line="16" name="since" description="0.1"/>
3251
  </docblock>
3252
+ <property final="false" static="false" visibility="protected" line="38" namespace="global" package="Media Library Assistant">
3253
  <name>$rollover_id</name>
3254
  <default><![CDATA[0]]></default>
3255
  <docblock line="29">
3261
  </tag>
3262
  </docblock>
3263
  </property>
3264
+ <property final="false" static="false" visibility="protected" line="49" namespace="global" package="Media Library Assistant">
3265
  <name>$currently_hidden</name>
3266
  <default><![CDATA[array()]]></default>
3267
  <docblock line="40">
3273
  </tag>
3274
  </docblock>
3275
  </property>
3276
+ <property final="false" static="true" visibility="protected" line="73" namespace="global" package="Media Library Assistant">
3277
  <name>$default_columns</name>
3278
  <default><![CDATA[array()]]></default>
3279
  <docblock line="56">
3293
  </tag>
3294
  </docblock>
3295
  </property>
3296
+ <property final="false" static="true" visibility="protected" line="91" namespace="global" package="Media Library Assistant">
3297
  <name>$default_hidden_columns</name>
3298
  <default><![CDATA[array('post_title', 'post_name', 'parent', 'menu_order', 'galleries', 'mla_galleries', 'alt_text', 'caption', 'description', 'post_mime_type', 'file_url', 'base_file', 'date', 'modified', 'author', 'attached_to')]]></default>
3299
  <docblock line="75">
3312
  </tag>
3313
  </docblock>
3314
  </property>
3315
+ <property final="false" static="true" visibility="protected" line="134" namespace="global" package="Media Library Assistant">
3316
  <name>$default_sortable_columns</name>
3317
+ <default><![CDATA[array('ID_parent' => array('ID', true), 'title_name' => array('title_name', false), 'post_title' => array('post_title', false), 'post_name' => array('post_name', false), 'parent' => array('post_parent', false), 'menu_order' => array('menu_order', false), 'alt_text' => array('_wp_attachment_image_alt', true), 'caption' => array('post_excerpt', false), 'description' => array('post_content', false), 'post_mime_type' => array('post_mime_type', false), 'file_url' => array('guid', false), 'base_file' => array('_wp_attached_file', false), 'date' => array('post_date', true), 'modified' => array('post_modified', true), 'author' => array('post_author', false), 'attached_to' => array('post_parent', false))]]></default>
3318
  <docblock line="116">
3319
  <description><![CDATA[Sortable column definitions]]></description>
3320
  <long-description><![CDATA[<p>This array defines the table columns that can be sorted. The array key
3322
  to sort by. Often, the key and value will be the same, but this is not always
3323
  the case (as the value is a column name from the database, not the list table).</p>
3324
 
3325
+ <p>The array value also contains a boolean which is 'true' if the initial sort order
3326
+ for the column is DESC/Descending.</p>
3327
 
3328
  <p>Taxonomy and custom field columns are added to this array by
3329
  MLA_List_Table::mla_admin_init_action.</p>]]></long-description>
3333
  </tag>
3334
  </docblock>
3335
  </property>
3336
+ <method final="false" abstract="false" static="true" visibility="protected" namespace="global" line="171" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
3337
  <name>_avail_mime_types</name>
3338
  <full_name>_avail_mime_types</full_name>
3339
+ <docblock line="159">
3340
  <description><![CDATA[Get MIME types with one or more attachments for view preparation]]></description>
3341
  <long-description><![CDATA[<p>Modeled after get_available_post_mime_types in wp-admin/includes/post.php,
3342
  but uses the output of wp_count_attachments() as input.</p>]]></long-description>
3343
+ <tag line="159" name="since" description="0.1"/>
3344
+ <tag line="159" name="param" description="Number of posts for each MIME type" type="array" variable="$num_posts">
3345
  <type by_reference="false">array</type>
3346
  </tag>
3347
+ <tag line="159" name="return" description="Mime type names" type="array">
3348
  <type by_reference="false">array</type>
3349
  </tag>
3350
  </docblock>
3351
+ <argument line="171">
3352
  <name>$num_posts</name>
3353
  <default><![CDATA[]]></default>
3354
  <type/>
3355
  </argument>
3356
  </method>
3357
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="193" package="Media Library Assistant">
3358
+ <name>mla_localize_default_columns_array</name>
3359
+ <full_name>mla_localize_default_columns_array</full_name>
3360
+ <docblock line="183">
3361
+ <description><![CDATA[Builds the $default_columns array with translated source texts.]]></description>
3362
+ <long-description><![CDATA[<p>Called from MLA:mla_plugins_loaded_action because the $default_columns information might be
3363
+ accessed from "front end" posts/pages.</p>]]></long-description>
3364
+ <tag line="183" name="since" description="1.71"/>
3365
+ <tag line="183" name="return" description="" type="void">
3366
+ <type by_reference="false">void</type>
3367
+ </tag>
3368
+ </docblock>
3369
+ </method>
3370
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="233" package="Media Library Assistant">
3371
  <name>mla_get_taxonomy_filter_dropdown</name>
3372
  <full_name>mla_get_taxonomy_filter_dropdown</full_name>
3373
+ <docblock line="224">
3374
  <description><![CDATA[Get dropdown box of terms to filter by, if available]]></description>
3375
  <long-description><![CDATA[]]></long-description>
3376
+ <tag line="224" name="since" description="1.20"/>
3377
+ <tag line="224" name="param" description="currently selected term_id || zero (default)" type="integer" variable="$selected">
3378
  <type by_reference="false">integer</type>
3379
  </tag>
3380
+ <tag line="224" name="return" description="HTML markup for dropdown box" type="string">
3381
  <type by_reference="false">string</type>
3382
  </tag>
3383
  </docblock>
3384
+ <argument line="233">
3385
  <name>$selected</name>
3386
  <default><![CDATA[0]]></default>
3387
  <type/>
3388
  </argument>
3389
  </method>
3390
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="278" package="Media Library Assistant">
3391
  <name>mla_get_sortable_columns</name>
3392
  <full_name>mla_get_sortable_columns</full_name>
3393
+ <docblock line="271">
3394
  <description><![CDATA[Return the names and display values of the sortable columns]]></description>
3395
  <long-description><![CDATA[]]></long-description>
3396
+ <tag line="271" name="since" description="0.30"/>
3397
+ <tag line="271" name="return" description="name =&gt; array( orderby value, heading ) for sortable columns" type="array">
3398
  <type by_reference="false">array</type>
3399
  </tag>
3400
  </docblock>
3401
  </method>
3402
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="298" package="Media Library Assistant">
3403
+ <name>mla_submenu_arguments</name>
3404
+ <full_name>mla_submenu_arguments</full_name>
3405
+ <docblock line="289">
3406
+ <description><![CDATA[Process $_REQUEST, building $submenu_arguments]]></description>
3407
+ <long-description><![CDATA[]]></long-description>
3408
+ <tag line="289" name="since" description="1.42"/>
3409
+ <tag line="289" name="param" description="Optional: Include the &quot;click filter&quot; values in the results" type="boolean" variable="$include_filters">
3410
+ <type by_reference="false">boolean</type>
3411
+ </tag>
3412
+ <tag line="289" name="return" description="non-empty view, search, filter and sort arguments" type="array">
3413
+ <type by_reference="false">array</type>
3414
+ </tag>
3415
+ </docblock>
3416
+ <argument line="298">
3417
+ <name>$include_filters</name>
3418
+ <default><![CDATA[true]]></default>
3419
+ <type/>
3420
+ </argument>
3421
+ </method>
3422
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="425" package="Media Library Assistant">
3423
  <name>mla_manage_hidden_columns_filter</name>
3424
  <full_name>mla_manage_hidden_columns_filter</full_name>
3425
+ <docblock line="410">
3426
  <description><![CDATA[Handler for filter 'get_user_option_managemedia_page_mla-menucolumnshidden']]></description>
3427
  <long-description><![CDATA[<p>Required because the screen.php get_hidden_columns function only uses
3428
  the get_user_option result. Set when the file is loaded because the object
3429
  is not created in time for the call from screen.php.</p>]]></long-description>
3430
+ <tag line="410" name="since" description="0.1"/>
3431
+ <tag line="410" name="param" description="current list of hidden columns, if any" type="string" variable="$result">
3432
  <type by_reference="false">string</type>
3433
  </tag>
3434
+ <tag line="410" name="param" description="'managemedia_page_mla-menucolumnshidden'" type="string" variable="$option">
3435
  <type by_reference="false">string</type>
3436
  </tag>
3437
+ <tag line="410" name="param" description="WP_User object, if logged in" type="object" variable="$user_data">
3438
  <type by_reference="false">object</type>
3439
  </tag>
3440
+ <tag line="410" name="return" description="updated list of hidden columns" type="array">
3441
  <type by_reference="false">array</type>
3442
  </tag>
3443
  </docblock>
3444
+ <argument line="425">
3445
  <name>$result</name>
3446
  <default><![CDATA[]]></default>
3447
  <type/>
3448
  </argument>
3449
+ <argument line="425">
3450
  <name>$option</name>
3451
  <default><![CDATA[]]></default>
3452
  <type/>
3453
  </argument>
3454
+ <argument line="425">
3455
  <name>$user_data</name>
3456
  <default><![CDATA[]]></default>
3457
  <type/>
3458
  </argument>
3459
  </method>
3460
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="444" package="Media Library Assistant">
3461
  <name>mla_manage_columns_filter</name>
3462
  <full_name>mla_manage_columns_filter</full_name>
3463
+ <docblock line="433">
3464
  <description><![CDATA[Handler for filter 'manage_media_page_mla-menu_columns']]></description>
3465
  <long-description><![CDATA[<p>This required filter dictates the table's columns and titles. Set when the
3466
  file is loaded because the list_table object isn't created in time
3467
  to affect the "screen options" setup.</p>]]></long-description>
3468
+ <tag line="433" name="since" description="0.1"/>
3469
+ <tag line="433" name="return" description="list of table columns" type="array">
3470
  <type by_reference="false">array</type>
3471
  </tag>
3472
  </docblock>
3473
  </method>
3474
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="461" package="Media Library Assistant">
3475
  <name>mla_views_media_page_mla_menu_filter</name>
3476
  <full_name>mla_views_media_page_mla_menu_filter</full_name>
3477
+ <docblock line="448">
3478
  <description><![CDATA[Handler for filter "views_{$this->screen->id}" in /admin/includes/class-wp-list-table.php]]></description>
3479
  <long-description><![CDATA[<p>Filter the list of available list table views. Set when the
3480
  file is loaded because the list_table object isn't created in time
3481
  to affect the "screen options" setup.</p>]]></long-description>
3482
+ <tag line="448" name="since" description="1.82"/>
3483
+ <tag line="448" name="param" description="A list of available list table views" type="array" variable="$views">
3484
  <type by_reference="false">array</type>
3485
  </tag>
3486
+ <tag line="448" name="return" description="Updated list of available list table views" type="array">
3487
  <type by_reference="false">array</type>
3488
  </tag>
3489
  </docblock>
3490
+ <argument line="461">
3491
  <name>$views</name>
3492
  <default><![CDATA[]]></default>
3493
  <type/>
3494
  </argument>
3495
  </method>
3496
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="482" package="Media Library Assistant">
3497
  <name>mla_wpml_media_view_upload_count_filter</name>
3498
  <full_name>mla_wpml_media_view_upload_count_filter</full_name>
3499
+ <docblock line="467">
3500
  <description><![CDATA[Handler for filter "wpml-media_view-upload-count" in /plugins/wpml-media/inc/wpml-media.class.php]]></description>
3501
  <long-description><![CDATA[<p>Computes the number of attachments that satisfy a meta_query specification.
3502
  The count is automatically made language-specific by WPML filters.</p>]]></long-description>
3503
+ <tag line="467" name="since" description="1.90"/>
3504
+ <tag line="467" name="param" description="default return value if not replacing count" type="NULL" variable="$count">
3505
  <type by_reference="false">NULL</type>
3506
  </tag>
3507
+ <tag line="467" name="param" description="key/slug value for the selected view" type="string" variable="$key">
3508
  <type by_reference="false">string</type>
3509
  </tag>
3510
+ <tag line="467" name="param" description="HTML &lt;a&gt;&lt;/a&gt; tag for the link to the selected view" type="string" variable="$view">
3511
  <type by_reference="false">string</type>
3512
  </tag>
3513
+ <tag line="467" name="param" description="language code, e.g., 'en', 'es'" type="string" variable="$lang">
3514
  <type by_reference="false">string</type>
3515
  </tag>
3516
+ <tag line="467" name="return" description="NULL to allow SQL query or replacement count value" type="mixed">
3517
  <type by_reference="false">mixed</type>
3518
  </tag>
3519
  </docblock>
3520
+ <argument line="482">
3521
  <name>$count</name>
3522
  <default><![CDATA[]]></default>
3523
  <type/>
3524
  </argument>
3525
+ <argument line="482">
3526
  <name>$key</name>
3527
  <default><![CDATA[]]></default>
3528
  <type/>
3529
  </argument>
3530
+ <argument line="482">
3531
  <name>$view</name>
3532
  <default><![CDATA[]]></default>
3533
  <type/>
3534
  </argument>
3535
+ <argument line="482">
3536
  <name>$lang</name>
3537
  <default><![CDATA[]]></default>
3538
  <type/>
3539
  </argument>
3540
  </method>
3541
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="514" package="Media Library Assistant">
3542
  <name>mla_wpml_media_view_upload_page_count_filter</name>
3543
  <full_name>mla_wpml_media_view_upload_page_count_filter</full_name>
3544
+ <docblock line="501">
3545
  <description><![CDATA[Handler for filter "wpml-media_view-upload-page-count" in /plugins/wpml-media/inc/wpml-media.class.php]]></description>
3546
  <long-description><![CDATA[<p>Computes the number of language-specific attachments that satisfy a meta_query specification.
3547
  The count is made language-specific by WPML filters when the current_language is set.</p>]]></long-description>
3548
+ <tag line="501" name="since" description="1.90"/>
3549
+ <tag line="501" name="param" description="default return value if not replacing count" type="NULL" variable="$count">
3550
  <type by_reference="false">NULL</type>
3551
  </tag>
3552
+ <tag line="501" name="param" description="language code, e.g., 'en', 'es'" type="string" variable="$lang">
3553
  <type by_reference="false">string</type>
3554
  </tag>
3555
+ <tag line="501" name="return" description="NULL to allow SQL query or replacement count value" type="mixed">
3556
  <type by_reference="false">mixed</type>
3557
  </tag>
3558
  </docblock>
3559
+ <argument line="514">
3560
  <name>$count</name>
3561
  <default><![CDATA[]]></default>
3562
  <type/>
3563
  </argument>
3564
+ <argument line="514">
3565
  <name>$lang</name>
3566
  <default><![CDATA[]]></default>
3567
  <type/>
3568
  </argument>
3569
  </method>
3570
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="543" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
3571
  <name>mla_admin_init_action</name>
3572
  <full_name>mla_admin_init_action</full_name>
3573
+ <docblock line="533">
3574
  <description><![CDATA[Adds support for taxonomy and custom field columns]]></description>
3575
  <long-description><![CDATA[<p>Called in the admin_init action because the list_table object isn't
3576
  created in time to affect the "screen options" setup.</p>]]></long-description>
3577
+ <tag line="533" name="since" description="0.30"/>
3578
+ <tag line="533" name="return" description="" type="void">
3579
  <type by_reference="false">void</type>
3580
  </tag>
3581
  </docblock>
3582
  </method>
3583
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="568" package="Media Library Assistant">
3584
  <name>__construct</name>
3585
  <full_name>__construct</full_name>
3586
+ <docblock line="560">
3587
  <description><![CDATA[Initializes some properties from $_REQUEST variables, then
3588
  calls the parent constructor to set some default configs.]]></description>
3589
  <long-description><![CDATA[]]></long-description>
3590
+ <tag line="560" name="since" description="0.1"/>
3591
+ <tag line="560" name="return" description="" type="void">
3592
  <type by_reference="false">void</type>
3593
  </tag>
3594
  </docblock>
3595
  </method>
3596
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="612" package="Media Library Assistant">
3597
  <name>column_default</name>
3598
  <full_name>column_default</full_name>
3599
+ <docblock line="599">
3600
  <description><![CDATA[Supply a column value if no column-specific function has been defined]]></description>
3601
  <long-description><![CDATA[<p>Called when the parent class can't find a method specifically built for a given column.
3602
  The taxonomy and custom field columns are handled here. All other columns should have
3603
  a specific method, so this function returns a troubleshooting message.</p>]]></long-description>
3604
+ <tag line="599" name="since" description="0.1"/>
3605
+ <tag line="599" name="param" description="A singular item (one full row's worth of data)" type="array" variable="$item">
3606
  <type by_reference="false">array</type>
3607
  </tag>
3608
+ <tag line="599" name="param" description="The name/slug of the column to be processed" type="array" variable="$column_name">
3609
  <type by_reference="false">array</type>
3610
  </tag>
3611
+ <tag line="599" name="return" description="Text or HTML to be placed inside the column" type="string">
3612
  <type by_reference="false">string</type>
3613
  </tag>
3614
  </docblock>
3615
+ <argument line="612">
3616
  <name>$item</name>
3617
  <default><![CDATA[]]></default>
3618
  <type/>
3619
  </argument>
3620
+ <argument line="612">
3621
  <name>$column_name</name>
3622
  <default><![CDATA[]]></default>
3623
  <type/>
3624
  </argument>
3625
  </method>
3626
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="694" package="Media Library Assistant">
3627
  <name>column_cb</name>
3628
  <full_name>column_cb</full_name>
3629
+ <docblock line="685">
3630
  <description><![CDATA[Displays checkboxes for using bulk actions.]]></description>
3631
  <long-description><![CDATA[<p>The 'cb' column
3632
  is given special treatment when columns are processed.</p>]]></long-description>
3633
+ <tag line="685" name="since" description="0.1"/>
3634
+ <tag line="685" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3635
  <type by_reference="false">array</type>
3636
  </tag>
3637
+ <tag line="685" name="return" description="HTML markup to be placed inside the column" type="string">
3638
  <type by_reference="false">string</type>
3639
  </tag>
3640
  </docblock>
3641
+ <argument line="694">
3642
  <name>$item</name>
3643
  <default><![CDATA[]]></default>
3644
  <type/>
3645
  </argument>
3646
  </method>
3647
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="709" package="Media Library Assistant">
3648
  <name>column_icon</name>
3649
  <full_name>column_icon</full_name>
3650
+ <docblock line="701">
3651
  <description><![CDATA[Supply the content for a custom column]]></description>
3652
  <long-description><![CDATA[]]></long-description>
3653
+ <tag line="701" name="since" description="0.1"/>
3654
+ <tag line="701" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3655
  <type by_reference="false">array</type>
3656
  </tag>
3657
+ <tag line="701" name="return" description="HTML markup to be placed inside the column" type="string">
3658
  <type by_reference="false">string</type>
3659
  </tag>
3660
  </docblock>
3661
+ <argument line="709">
3662
  <name>$item</name>
3663
  <default><![CDATA[]]></default>
3664
  <type/>
3665
  </argument>
3666
  </method>
3667
+ <method final="false" abstract="false" static="false" visibility="protected" namespace="global" line="761" package="Media Library Assistant">
3668
  <name>_build_rollover_actions</name>
3669
  <full_name>_build_rollover_actions</full_name>
3670
+ <docblock line="750">
3671
  <description><![CDATA[Add rollover actions to exactly one of the following displayed columns:
3672
  'ID_parent', 'title_name', 'post_title', 'post_name']]></description>
3673
  <long-description><![CDATA[]]></long-description>
3674
+ <tag line="750" name="since" description="0.1"/>
3675
+ <tag line="750" name="param" description="A singular attachment (post) object" type="object" variable="$item">
3676
  <type by_reference="false">object</type>
3677
  </tag>
3678
+ <tag line="750" name="param" description="Current column name" type="string" variable="$column">
3679
  <type by_reference="false">string</type>
3680
  </tag>
3681
+ <tag line="750" name="return" description="Names and URLs of row-level actions" type="array">
3682
  <type by_reference="false">array</type>
3683
  </tag>
3684
  </docblock>
3685
+ <argument line="761">
3686
  <name>$item</name>
3687
  <default><![CDATA[]]></default>
3688
  <type/>
3689
  </argument>
3690
+ <argument line="761">
3691
  <name>$column</name>
3692
  <default><![CDATA[]]></default>
3693
  <type/>
3694
  </argument>
3695
  </method>
3696
+ <method final="false" abstract="false" static="false" visibility="protected" namespace="global" line="835" package="Media Library Assistant">
3697
  <name>_build_inline_data</name>
3698
  <full_name>_build_inline_data</full_name>
3699
+ <docblock line="826">
3700
  <description><![CDATA[Add hidden fields with the data for use in the inline editor]]></description>
3701
  <long-description><![CDATA[]]></long-description>
3702
+ <tag line="826" name="since" description="0.20"/>
3703
+ <tag line="826" name="param" description="A singular attachment (post) object" type="object" variable="$item">
3704
  <type by_reference="false">object</type>
3705
  </tag>
3706
+ <tag line="826" name="return" description="HTML &lt;div&gt; with row data" type="string">
3707
  <type by_reference="false">string</type>
3708
  </tag>
3709
  </docblock>
3710
+ <argument line="835">
3711
  <name>$item</name>
3712
  <default><![CDATA[]]></default>
3713
  <type/>
3714
  </argument>
3715
  </method>
3716
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="921" package="Media Library Assistant">
3717
  <name>column_ID_parent</name>
3718
  <full_name>column_ID_parent</full_name>
3719
+ <docblock line="913">
3720
  <description><![CDATA[Supply the content for a custom column]]></description>
3721
  <long-description><![CDATA[]]></long-description>
3722
+ <tag line="913" name="since" description="0.1"/>
3723
+ <tag line="913" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3724
  <type by_reference="false">array</type>
3725
  </tag>
3726
+ <tag line="913" name="return" description="HTML markup to be placed inside the column" type="string">
3727
  <type by_reference="false">string</type>
3728
  </tag>
3729
  </docblock>
3730
+ <argument line="921">
3731
  <name>$item</name>
3732
  <default><![CDATA[]]></default>
3733
  <type/>
3734
  </argument>
3735
  </method>
3736
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="954" package="Media Library Assistant">
3737
  <name>column_title_name</name>
3738
  <full_name>column_title_name</full_name>
3739
+ <docblock line="946">
3740
  <description><![CDATA[Supply the content for a custom column]]></description>
3741
  <long-description><![CDATA[]]></long-description>
3742
+ <tag line="946" name="since" description="0.1"/>
3743
+ <tag line="946" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3744
  <type by_reference="false">array</type>
3745
  </tag>
3746
+ <tag line="946" name="return" description="HTML markup to be placed inside the column" type="string">
3747
  <type by_reference="false">string</type>
3748
  </tag>
3749
  </docblock>
3750
+ <argument line="954">
3751
  <name>$item</name>
3752
  <default><![CDATA[]]></default>
3753
  <type/>
3754
  </argument>
3755
  </method>
3756
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="978" package="Media Library Assistant">
3757
  <name>column_post_title</name>
3758
  <full_name>column_post_title</full_name>
3759
+ <docblock line="970">
3760
  <description><![CDATA[Supply the content for a custom column]]></description>
3761
  <long-description><![CDATA[]]></long-description>
3762
+ <tag line="970" name="since" description="0.1"/>
3763
+ <tag line="970" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3764
  <type by_reference="false">array</type>
3765
  </tag>
3766
+ <tag line="970" name="return" description="HTML markup to be placed inside the column" type="string">
3767
  <type by_reference="false">string</type>
3768
  </tag>
3769
  </docblock>
3770
+ <argument line="978">
3771
  <name>$item</name>
3772
  <default><![CDATA[]]></default>
3773
  <type/>
3774
  </argument>
3775
  </method>
3776
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="996" package="Media Library Assistant">
3777
  <name>column_post_name</name>
3778
  <full_name>column_post_name</full_name>
3779
+ <docblock line="988">
3780
  <description><![CDATA[Supply the content for a custom column]]></description>
3781
  <long-description><![CDATA[]]></long-description>
3782
+ <tag line="988" name="since" description="0.1"/>
3783
+ <tag line="988" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3784
  <type by_reference="false">array</type>
3785
  </tag>
3786
+ <tag line="988" name="return" description="HTML markup to be placed inside the column" type="string">
3787
  <type by_reference="false">string</type>
3788
  </tag>
3789
  </docblock>
3790
+ <argument line="996">
3791
  <name>$item</name>
3792
  <default><![CDATA[]]></default>
3793
  <type/>
3794
  </argument>
3795
  </method>
3796
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1014" package="Media Library Assistant">
3797
  <name>column_parent</name>
3798
  <full_name>column_parent</full_name>
3799
+ <docblock line="1006">
3800
  <description><![CDATA[Supply the content for a custom column]]></description>
3801
  <long-description><![CDATA[]]></long-description>
3802
+ <tag line="1006" name="since" description="0.1"/>
3803
+ <tag line="1006" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3804
  <type by_reference="false">array</type>
3805
  </tag>
3806
+ <tag line="1006" name="return" description="HTML markup to be placed inside the column" type="string">
3807
  <type by_reference="false">string</type>
3808
  </tag>
3809
  </docblock>
3810
+ <argument line="1014">
3811
  <name>$item</name>
3812
  <default><![CDATA[]]></default>
3813
  <type/>
3814
  </argument>
3815
  </method>
3816
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1040" package="Media Library Assistant">
3817
  <name>column_menu_order</name>
3818
  <full_name>column_menu_order</full_name>
3819
+ <docblock line="1032">
3820
  <description><![CDATA[Supply the content for a custom column]]></description>
3821
  <long-description><![CDATA[]]></long-description>
3822
+ <tag line="1032" name="since" description="0.60"/>
3823
+ <tag line="1032" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3824
  <type by_reference="false">array</type>
3825
  </tag>
3826
+ <tag line="1032" name="return" description="HTML markup to be placed inside the column" type="string">
3827
  <type by_reference="false">string</type>
3828
  </tag>
3829
  </docblock>
3830
+ <argument line="1040">
3831
  <name>$item</name>
3832
  <default><![CDATA[]]></default>
3833
  <type/>
3834
  </argument>
3835
  </method>
3836
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1052" package="Media Library Assistant">
3837
  <name>column_featured</name>
3838
  <full_name>column_featured</full_name>
3839
+ <docblock line="1044">
3840
  <description><![CDATA[Supply the content for a custom column]]></description>
3841
  <long-description><![CDATA[]]></long-description>
3842
+ <tag line="1044" name="since" description="0.1"/>
3843
+ <tag line="1044" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3844
  <type by_reference="false">array</type>
3845
  </tag>
3846
+ <tag line="1044" name="return" description="HTML markup to be placed inside the column" type="string">
3847
  <type by_reference="false">string</type>
3848
  </tag>
3849
  </docblock>
3850
+ <argument line="1052">
3851
  <name>$item</name>
3852
  <default><![CDATA[]]></default>
3853
  <type/>
3854
  </argument>
3855
  </method>
3856
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1086" package="Media Library Assistant">
3857
  <name>column_inserted</name>
3858
  <full_name>column_inserted</full_name>
3859
+ <docblock line="1078">
3860
  <description><![CDATA[Supply the content for a custom column]]></description>
3861
  <long-description><![CDATA[]]></long-description>
3862
+ <tag line="1078" name="since" description="0.1"/>
3863
+ <tag line="1078" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3864
  <type by_reference="false">array</type>
3865
  </tag>
3866
+ <tag line="1078" name="return" description="HTML markup to be placed inside the column" type="string">
3867
  <type by_reference="false">string</type>
3868
  </tag>
3869
  </docblock>
3870
+ <argument line="1086">
3871
  <name>$item</name>
3872
  <default><![CDATA[]]></default>
3873
  <type/>
3874
  </argument>
3875
  </method>
3876
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1124" package="Media Library Assistant">
3877
  <name>column_galleries</name>
3878
  <full_name>column_galleries</full_name>
3879
+ <docblock line="1116">
3880
  <description><![CDATA[Supply the content for a custom column]]></description>
3881
  <long-description><![CDATA[]]></long-description>
3882
+ <tag line="1116" name="since" description="0.70"/>
3883
+ <tag line="1116" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3884
  <type by_reference="false">array</type>
3885
  </tag>
3886
+ <tag line="1116" name="return" description="HTML markup to be placed inside the column" type="string">
3887
  <type by_reference="false">string</type>
3888
  </tag>
3889
  </docblock>
3890
+ <argument line="1124">
3891
  <name>$item</name>
3892
  <default><![CDATA[]]></default>
3893
  <type/>
3894
  </argument>
3895
  </method>
3896
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1158" package="Media Library Assistant">
3897
  <name>column_mla_galleries</name>
3898
  <full_name>column_mla_galleries</full_name>
3899
+ <docblock line="1150">
3900
  <description><![CDATA[Supply the content for a custom column]]></description>
3901
  <long-description><![CDATA[]]></long-description>
3902
+ <tag line="1150" name="since" description="0.70"/>
3903
+ <tag line="1150" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3904
  <type by_reference="false">array</type>
3905
  </tag>
3906
+ <tag line="1150" name="return" description="HTML markup to be placed inside the column" type="string">
3907
  <type by_reference="false">string</type>
3908
  </tag>
3909
  </docblock>
3910
+ <argument line="1158">
3911
  <name>$item</name>
3912
  <default><![CDATA[]]></default>
3913
  <type/>
3914
  </argument>
3915
  </method>
3916
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1192" package="Media Library Assistant">
3917
  <name>column_alt_text</name>
3918
  <full_name>column_alt_text</full_name>
3919
+ <docblock line="1184">
3920
  <description><![CDATA[Supply the content for a custom column]]></description>
3921
  <long-description><![CDATA[]]></long-description>
3922
+ <tag line="1184" name="since" description="0.1"/>
3923
+ <tag line="1184" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3924
  <type by_reference="false">array</type>
3925
  </tag>
3926
+ <tag line="1184" name="return" description="HTML markup to be placed inside the column" type="string">
3927
  <type by_reference="false">string</type>
3928
  </tag>
3929
  </docblock>
3930
+ <argument line="1192">
3931
  <name>$item</name>
3932
  <default><![CDATA[]]></default>
3933
  <type/>
3934
  </argument>
3935
  </method>
3936
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1219" package="Media Library Assistant">
3937
  <name>column_caption</name>
3938
  <full_name>column_caption</full_name>
3939
+ <docblock line="1211">
3940
  <description><![CDATA[Supply the content for a custom column]]></description>
3941
  <long-description><![CDATA[]]></long-description>
3942
+ <tag line="1211" name="since" description="0.1"/>
3943
+ <tag line="1211" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3944
  <type by_reference="false">array</type>
3945
  </tag>
3946
+ <tag line="1211" name="return" description="HTML markup to be placed inside the column" type="string">
3947
  <type by_reference="false">string</type>
3948
  </tag>
3949
  </docblock>
3950
+ <argument line="1219">
3951
  <name>$item</name>
3952
  <default><![CDATA[]]></default>
3953
  <type/>
3954
  </argument>
3955
  </method>
3956
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1231" package="Media Library Assistant">
3957
  <name>column_description</name>
3958
  <full_name>column_description</full_name>
3959
+ <docblock line="1223">
3960
  <description><![CDATA[Supply the content for a custom column]]></description>
3961
  <long-description><![CDATA[]]></long-description>
3962
+ <tag line="1223" name="since" description="0.1"/>
3963
+ <tag line="1223" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3964
  <type by_reference="false">array</type>
3965
  </tag>
3966
+ <tag line="1223" name="return" description="HTML markup to be placed inside the column" type="string">
3967
  <type by_reference="false">string</type>
3968
  </tag>
3969
  </docblock>
3970
+ <argument line="1231">
3971
  <name>$item</name>
3972
  <default><![CDATA[]]></default>
3973
  <type/>
3974
  </argument>
3975
  </method>
3976
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1243" package="Media Library Assistant">
3977
  <name>column_post_mime_type</name>
3978
  <full_name>column_post_mime_type</full_name>
3979
+ <docblock line="1235">
3980
  <description><![CDATA[Supply the content for a custom column]]></description>
3981
  <long-description><![CDATA[]]></long-description>
3982
+ <tag line="1235" name="since" description="0.30"/>
3983
+ <tag line="1235" name="param" description="A singular attachment (post) object" type="array" variable="$item">
3984
  <type by_reference="false">array</type>
3985
  </tag>
3986
+ <tag line="1235" name="return" description="HTML markup to be placed inside the column" type="string">
3987
  <type by_reference="false">string</type>
3988
  </tag>
3989
  </docblock>
3990
+ <argument line="1243">
3991
  <name>$item</name>
3992
  <default><![CDATA[]]></default>
3993
  <type/>
3994
  </argument>
3995
  </method>
3996
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1259" package="Media Library Assistant">
3997
  <name>column_file_url</name>
3998
  <full_name>column_file_url</full_name>
3999
+ <docblock line="1251">
4000
  <description><![CDATA[Supply the content for a custom column]]></description>
4001
  <long-description><![CDATA[]]></long-description>
4002
+ <tag line="1251" name="since" description="0.1"/>
4003
+ <tag line="1251" name="param" description="A singular attachment (post) object" type="array" variable="$item">
4004
  <type by_reference="false">array</type>
4005
  </tag>
4006
+ <tag line="1251" name="return" description="HTML markup to be placed inside the column" type="string">
4007
  <type by_reference="false">string</type>
4008
  </tag>
4009
  </docblock>
4010
+ <argument line="1259">
4011
  <name>$item</name>
4012
  <default><![CDATA[]]></default>
4013
  <type/>
4014
  </argument>
4015
  </method>
4016
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1273" package="Media Library Assistant">
4017
  <name>column_base_file</name>
4018
  <full_name>column_base_file</full_name>
4019
+ <docblock line="1265">
4020
  <description><![CDATA[Supply the content for a custom column]]></description>
4021
  <long-description><![CDATA[]]></long-description>
4022
+ <tag line="1265" name="since" description="0.1"/>
4023
+ <tag line="1265" name="param" description="A singular attachment (post) object" type="array" variable="$item">
4024
  <type by_reference="false">array</type>
4025
  </tag>
4026
+ <tag line="1265" name="return" description="HTML markup to be placed inside the column" type="string">
4027
  <type by_reference="false">string</type>
4028
  </tag>
4029
  </docblock>
4030
+ <argument line="1273">
4031
  <name>$item</name>
4032
  <default><![CDATA[]]></default>
4033
  <type/>
4034
  </argument>
4035
  </method>
4036
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1290" package="Media Library Assistant">
4037
  <name>column_date</name>
4038
  <full_name>column_date</full_name>
4039
+ <docblock line="1282">
4040
  <description><![CDATA[Supply the content for a custom column]]></description>
4041
  <long-description><![CDATA[]]></long-description>
4042
+ <tag line="1282" name="since" description="0.1"/>
4043
+ <tag line="1282" name="param" description="A singular attachment (post) object" type="array" variable="$item">
4044
  <type by_reference="false">array</type>
4045
  </tag>
4046
+ <tag line="1282" name="return" description="HTML markup to be placed inside the column" type="string">
4047
  <type by_reference="false">string</type>
4048
  </tag>
4049
  </docblock>
4050
+ <argument line="1290">
4051
  <name>$item</name>
4052
  <default><![CDATA[]]></default>
4053
  <type/>
4054
  </argument>
4055
  </method>
4056
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1325" package="Media Library Assistant">
4057
  <name>column_modified</name>
4058
  <full_name>column_modified</full_name>
4059
+ <docblock line="1317">
4060
  <description><![CDATA[Supply the content for a custom column]]></description>
4061
  <long-description><![CDATA[]]></long-description>
4062
+ <tag line="1317" name="since" description="0.30"/>
4063
+ <tag line="1317" name="param" description="A singular attachment (post) object" type="array" variable="$item">
4064
  <type by_reference="false">array</type>
4065
  </tag>
4066
+ <tag line="1317" name="return" description="HTML markup to be placed inside the column" type="string">
4067
  <type by_reference="false">string</type>
4068
  </tag>
4069
  </docblock>
4070
+ <argument line="1325">
4071
  <name>$item</name>
4072
  <default><![CDATA[]]></default>
4073
  <type/>
4074
  </argument>
4075
  </method>
4076
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1354" package="Media Library Assistant">
4077
  <name>column_author</name>
4078
  <full_name>column_author</full_name>
4079
+ <docblock line="1346">
4080
  <description><![CDATA[Supply the content for a custom column]]></description>
4081
  <long-description><![CDATA[]]></long-description>
4082
+ <tag line="1346" name="since" description="0.30"/>
4083
+ <tag line="1346" name="param" description="A singular attachment (post) object" type="array" variable="$item">
4084
  <type by_reference="false">array</type>
4085
  </tag>
4086
+ <tag line="1346" name="return" description="HTML markup to be placed inside the column" type="string">
4087
  <type by_reference="false">string</type>
4088
  </tag>
4089
  </docblock>
4090
+ <argument line="1354">
4091
  <name>$item</name>
4092
  <default><![CDATA[]]></default>
4093
  <type/>
4094
  </argument>
4095
  </method>
4096
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1376" package="Media Library Assistant">
4097
  <name>column_attached_to</name>
4098
  <full_name>column_attached_to</full_name>
4099
+ <docblock line="1368">
4100
  <description><![CDATA[Supply the content for a custom column]]></description>
4101
  <long-description><![CDATA[]]></long-description>
4102
+ <tag line="1368" name="since" description="0.1"/>
4103
+ <tag line="1368" name="param" description="A singular attachment (post) object" type="array" variable="$item">
4104
  <type by_reference="false">array</type>
4105
  </tag>
4106
+ <tag line="1368" name="return" description="HTML markup to be placed inside the column" type="string">
4107
  <type by_reference="false">string</type>
4108
  </tag>
4109
  </docblock>
4110
+ <argument line="1376">
4111
  <name>$item</name>
4112
  <default><![CDATA[]]></default>
4113
  <type/>
4114
  </argument>
4115
  </method>
4116
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1413" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4117
  <name>pagination</name>
4118
  <full_name>pagination</full_name>
4119
+ <docblock line="1405">
4120
  <description><![CDATA[Display the pagination, adding view, search and filter arguments]]></description>
4121
  <long-description><![CDATA[]]></long-description>
4122
+ <tag line="1405" name="since" description="1.42"/>
4123
+ <tag line="1405" name="param" description="'top' | 'bottom'" type="string" variable="$which">
4124
  <type by_reference="false">string</type>
4125
  </tag>
4126
+ <tag line="1405" name="return" description="" type="void">
4127
  <type by_reference="false">void</type>
4128
  </tag>
4129
  </docblock>
4130
+ <argument line="1413">
4131
  <name>$which</name>
4132
  <default><![CDATA[]]></default>
4133
  <type/>
4134
  </argument>
4135
  </method>
4136
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1427" package="Media Library Assistant">
4137
  <name>get_columns</name>
4138
  <full_name>get_columns</full_name>
4139
+ <docblock line="1420">
4140
  <description><![CDATA[This method dictates the table's columns and titles]]></description>
4141
  <long-description><![CDATA[]]></long-description>
4142
+ <tag line="1420" name="since" description="0.1"/>
4143
+ <tag line="1420" name="return" description="Column information: 'slugs'=&gt;'Visible Titles'" type="array">
4144
  <type by_reference="false">array</type>
4145
  </tag>
4146
  </docblock>
4147
  </method>
4148
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1439" package="Media Library Assistant">
4149
  <name>get_hidden_columns</name>
4150
  <full_name>get_hidden_columns</full_name>
4151
+ <docblock line="1431">
4152
  <description><![CDATA[Returns the list of currently hidden columns from a user option or
4153
  from default values if the option is not set]]></description>
4154
  <long-description><![CDATA[]]></long-description>
4155
+ <tag line="1431" name="since" description="0.1"/>
4156
+ <tag line="1431" name="return" description="Column information,e.g., array(0 =&gt; 'ID_parent, 1 =&gt; 'title_name')" type="array">
4157
  <type by_reference="false">array</type>
4158
  </tag>
4159
  </docblock>
4160
  </method>
4161
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1464" package="Media Library Assistant">
4162
  <name>get_sortable_columns</name>
4163
  <full_name>get_sortable_columns</full_name>
4164
+ <docblock line="1455">
4165
  <description><![CDATA[Returns an array where the key is the column that needs to be sortable
4166
+ and the value is db column (or other criteria) to sort by.]]></description>
4167
+ <long-description><![CDATA[]]></long-description>
4168
+ <tag line="1455" name="since" description="0.1"/>
4169
+ <tag line="1455" name="return" description="Sortable column information,e.g., 'slug' =&gt; array('data_value', (boolean) initial_descending )" type="array">
 
4170
  <type by_reference="false">array</type>
4171
  </tag>
4172
  </docblock>
4173
  </method>
4174
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1475" package="Media Library Assistant">
4175
  <name>print_column_headers</name>
4176
  <full_name>print_column_headers</full_name>
4177
+ <docblock line="1468">
4178
  <description><![CDATA[Print column headers, adding view, search and filter arguments]]></description>
4179
  <long-description><![CDATA[]]></long-description>
4180
+ <tag line="1468" name="since" description="1.42"/>
4181
+ <tag line="1468" name="param" description="Whether to set the id attribute or not" type="bool" variable="$with_id">
4182
  <type by_reference="false">bool</type>
4183
  </tag>
4184
  </docblock>
4185
+ <argument line="1475">
4186
  <name>$with_id</name>
4187
  <default><![CDATA[true]]></default>
4188
  <type/>
4189
  </argument>
4190
  </method>
4191
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1492" package="Media Library Assistant">
4192
  <name>_get_view</name>
4193
  <full_name>_get_view</full_name>
4194
+ <docblock line="1482">
4195
  <description><![CDATA[Returns HTML markup for one view that can be used with this table]]></description>
4196
  <long-description><![CDATA[]]></long-description>
4197
+ <tag line="1482" name="since" description="1.40"/>
4198
+ <tag line="1482" name="param" description="View slug, key to MLA_POST_MIME_TYPES array" type="string" variable="$view_slug">
4199
  <type by_reference="false">string</type>
4200
  </tag>
4201
+ <tag line="1482" name="param" description="Slug for current view" type="string" variable="$current_view">
4202
  <type by_reference="false">string</type>
4203
  </tag>
4204
+ <tag line="1482" name="return" description="| false HTML for link to display the view, false if count = zero" type="string">
4205
  <type by_reference="false">string</type>
4206
  </tag>
4207
  </docblock>
4208
+ <argument line="1492">
4209
  <name>$view_slug</name>
4210
  <default><![CDATA[]]></default>
4211
  <type/>
4212
  </argument>
4213
+ <argument line="1492">
4214
  <name>$current_view</name>
4215
  <default><![CDATA[]]></default>
4216
  <type/>
4217
  </argument>
4218
  </method>
4219
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1619" package="Media Library Assistant">
4220
  <name>get_views</name>
4221
  <full_name>get_views</full_name>
4222
+ <docblock line="1611">
4223
  <description><![CDATA[Returns an associative array listing all the views that can be used with this table.]]></description>
4224
  <long-description><![CDATA[<p>These are listed across the top of the page and managed by WordPress.</p>]]></long-description>
4225
+ <tag line="1611" name="since" description="0.1"/>
4226
+ <tag line="1611" name="return" description="View information,e.g., array ( id =&gt; link )" type="array">
4227
  <type by_reference="false">array</type>
4228
  </tag>
4229
  </docblock>
4230
  </method>
4231
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1675" package="Media Library Assistant">
4232
  <name>get_bulk_actions</name>
4233
  <full_name>get_bulk_actions</full_name>
4234
+ <docblock line="1667">
4235
  <description><![CDATA[Get an associative array ( option_name => option_title ) with the list
4236
  of bulk actions available on this table.]]></description>
4237
  <long-description><![CDATA[]]></long-description>
4238
+ <tag line="1667" name="since" description="0.1"/>
4239
+ <tag line="1667" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
4240
  <type by_reference="false">array</type>
4241
  </tag>
4242
  </docblock>
4243
  </method>
4244
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1705" package="Media Library Assistant">
4245
  <name>extra_tablenav</name>
4246
  <full_name>extra_tablenav</full_name>
4247
+ <docblock line="1694">
4248
  <description><![CDATA[Extra controls to be displayed between bulk actions and pagination]]></description>
4249
  <long-description><![CDATA[<p>Modeled after class-wp-posts-list-table.php in wp-admin/includes.</p>]]></long-description>
4250
+ <tag line="1694" name="since" description="0.1"/>
4251
+ <tag line="1694" name="param" description="'top' or 'bottom', i.e., above or below the table rows" type="string" variable="$which">
4252
  <type by_reference="false">string</type>
4253
  </tag>
4254
+ <tag line="1694" name="return" description="Contains all the bulk actions: 'slugs'=&gt;'Visible Titles'" type="array">
4255
  <type by_reference="false">array</type>
4256
  </tag>
4257
  </docblock>
4258
+ <argument line="1705">
4259
  <name>$which</name>
4260
  <default><![CDATA[]]></default>
4261
  <type/>
4262
  </argument>
4263
  </method>
4264
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1745" package="Media Library Assistant">
4265
  <name>prepare_items</name>
4266
  <full_name>prepare_items</full_name>
4267
+ <docblock line="1733">
4268
  <description><![CDATA[Prepares the list of items for displaying]]></description>
4269
  <long-description><![CDATA[<p>This is where you prepare your data for display. This method will usually
4270
  be used to query the database, sort and filter the data, and generally
4271
  get it ready to be displayed. At a minimum, we should set $this->items and
4272
  $this->set_pagination_args().</p>]]></long-description>
4273
+ <tag line="1733" name="since" description="0.1"/>
4274
+ <tag line="1733" name="return" description="" type="void">
4275
  <type by_reference="false">void</type>
4276
  </tag>
4277
  </docblock>
4278
  </method>
4279
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1800" package="Media Library Assistant">
4280
  <name>single_row</name>
4281
  <full_name>single_row</full_name>
4282
+ <docblock line="1791">
4283
  <description><![CDATA[Generates (echoes) content for a single row of the table]]></description>
4284
  <long-description><![CDATA[]]></long-description>
4285
+ <tag line="1791" name="since" description=".20"/>
4286
+ <tag line="1791" name="param" description="the current item" type="object" variable="$item">
4287
  <type by_reference="false">object</type>
4288
  </tag>
4289
+ <tag line="1791" name="return" description="Echoes the row HTML" type="void">
4290
  <type by_reference="false">void</type>
4291
  </tag>
4292
  </docblock>
4293
+ <argument line="1800">
4294
  <name>$item</name>
4295
  <default><![CDATA[]]></default>
4296
  <type/>
4298
  </method>
4299
  </class>
4300
  </file>
4301
+ <file path="includes\class-mla-main.php" hash="b80589e35029cfbfc5c48ce7971495ba" package="Media Library Assistant">
4302
  <docblock line="2">
4303
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
4304
  <long-description><![CDATA[]]></long-description>
4308
  <include line="13" type="Require Once" package="Media Library Assistant">
4309
  <name/>
4310
  </include>
4311
+ <include line="1417" type="Require Once" package="Media Library Assistant">
4312
  <name/>
4313
  </include>
4314
  <class final="false" abstract="false" namespace="global" line="23" package="Media Library Assistant">
4325
  <constant namespace="global" line="32" package="Media Library Assistant">
4326
  <name>CURRENT_MLA_VERSION</name>
4327
  <full_name>CURRENT_MLA_VERSION</full_name>
4328
+ <value><![CDATA['2.00']]></value>
4329
  <docblock line="25">
4330
  <description><![CDATA[Current version number]]></description>
4331
  <long-description><![CDATA[]]></long-description>
4595
  </tag>
4596
  </docblock>
4597
  </method>
4598
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="312" package="Media Library Assistant">
4599
  <name>mla_admin_enqueue_scripts_action</name>
4600
  <full_name>mla_admin_enqueue_scripts_action</full_name>
4601
+ <docblock line="303">
4602
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
4603
  <long-description><![CDATA[]]></long-description>
4604
+ <tag line="303" name="since" description="0.1"/>
4605
+ <tag line="303" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
4606
  <type by_reference="false">string</type>
4607
  </tag>
4608
+ <tag line="303" name="return" description="" type="void">
4609
  <type by_reference="false">void</type>
4610
  </tag>
4611
  </docblock>
4612
+ <argument line="312">
4613
  <name>$page_hook</name>
4614
  <default><![CDATA[]]></default>
4615
  <type/>
4616
  </argument>
4617
  </method>
4618
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="401" package="Media Library Assistant">
4619
  <name>mla_admin_menu_action</name>
4620
  <full_name>mla_admin_menu_action</full_name>
4621
+ <docblock line="386">
4622
  <description><![CDATA[Add the submenu pages]]></description>
4623
  <long-description><![CDATA[<p>Add a submenu page in the "Media" section,
4624
  add settings page in the "Settings" section.
4627
  <p>For WordPress versions before 3.5,
4628
  add submenu page(s) for attachment taxonomies,
4629
  add filter to clean up taxonomy submenu labels.</p>]]></long-description>
4630
+ <tag line="386" name="since" description="0.1"/>
4631
+ <tag line="386" name="return" description="" type="void">
4632
  <type by_reference="false">void</type>
4633
  </tag>
4634
  </docblock>
4635
  </method>
4636
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="478" package="Media Library Assistant">
4637
  <name>mla_load_media_action</name>
4638
  <full_name>mla_load_media_action</full_name>
4639
+ <docblock line="471">
4640
  <description><![CDATA[Redirect to Media/Assistant if Media/Library is hidden]]></description>
4641
  <long-description><![CDATA[]]></long-description>
4642
+ <tag line="471" name="since" description="1.60"/>
4643
+ <tag line="471" name="return" description="" type="void">
4644
  <type by_reference="false">void</type>
4645
  </tag>
4646
  </docblock>
4647
  </method>
4648
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="506" package="Media Library Assistant">
4649
  <name>mla_add_menu_options</name>
4650
  <full_name>mla_add_menu_options</full_name>
4651
+ <docblock line="499">
4652
  <description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
4653
  <long-description><![CDATA[]]></long-description>
4654
+ <tag line="499" name="since" description="0.1"/>
4655
+ <tag line="499" name="return" description="" type="void">
4656
  <type by_reference="false">void</type>
4657
  </tag>
4658
  </docblock>
4659
  </method>
4660
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="525" package="Media Library Assistant">
4661
  <name>mla_add_help_tab</name>
4662
  <full_name>mla_add_help_tab</full_name>
4663
+ <docblock line="518">
4664
  <description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
4665
  <long-description><![CDATA[]]></long-description>
4666
+ <tag line="518" name="since" description="0.1"/>
4667
+ <tag line="518" name="return" description="" type="void">
4668
  <type by_reference="false">void</type>
4669
  </tag>
4670
  </docblock>
4671
  </method>
4672
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="635" package="Media Library Assistant">
4673
  <name>mla_screen_options_show_screen_filter</name>
4674
  <full_name>mla_screen_options_show_screen_filter</full_name>
4675
+ <docblock line="625">
4676
  <description><![CDATA[Only show screen options on the table-list screen]]></description>
4677
  <long-description><![CDATA[]]></long-description>
4678
+ <tag line="625" name="since" description="0.1"/>
4679
+ <tag line="625" name="param" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean" variable="$show_screen">
4680
  <type by_reference="false">boolean</type>
4681
  </tag>
4682
+ <tag line="625" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
4683
  <type by_reference="false">string</type>
4684
  </tag>
4685
+ <tag line="625" name="return" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean">
4686
  <type by_reference="false">boolean</type>
4687
  </tag>
4688
  </docblock>
4689
+ <argument line="635">
4690
  <name>$show_screen</name>
4691
  <default><![CDATA[]]></default>
4692
  <type/>
4693
  </argument>
4694
+ <argument line="635">
4695
  <name>$this_screen</name>
4696
  <default><![CDATA[]]></default>
4697
  <type/>
4698
  </argument>
4699
  </method>
4700
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="654" package="Media Library Assistant">
4701
  <name>mla_set_screen_option_filter</name>
4702
  <full_name>mla_set_screen_option_filter</full_name>
4703
+ <docblock line="643">
4704
  <description><![CDATA[Save the "Entries per page" option set by this user]]></description>
4705
  <long-description><![CDATA[]]></long-description>
4706
+ <tag line="643" name="since" description="0.1"/>
4707
+ <tag line="643" name="param" description="false or value returned by previous filter" type="mixed" variable="$status">
4708
  <type by_reference="false">mixed</type>
4709
  </tag>
4710
+ <tag line="643" name="param" description="Name of the option being changed" type="string" variable="$option">
4711
  <type by_reference="false">string</type>
4712
  </tag>
4713
+ <tag line="643" name="param" description="New value of the option" type="string" variable="$value">
4714
  <type by_reference="false">string</type>
4715
  </tag>
4716
+ <tag line="643" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
4717
  <type by_reference="false">string</type>
4718
  <type by_reference="false">void</type>
4719
  </tag>
4720
  </docblock>
4721
+ <argument line="654">
4722
  <name>$status</name>
4723
  <default><![CDATA[]]></default>
4724
  <type/>
4725
  </argument>
4726
+ <argument line="654">
4727
  <name>$option</name>
4728
  <default><![CDATA[]]></default>
4729
  <type/>
4730
  </argument>
4731
+ <argument line="654">
4732
  <name>$value</name>
4733
  <default><![CDATA[]]></default>
4734
  <type/>
4735
  </argument>
4736
  </method>
4737
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="673" package="Media Library Assistant">
4738
  <name>mla_edit_tax_redirect</name>
4739
  <full_name>mla_edit_tax_redirect</full_name>
4740
+ <docblock line="662">
4741
  <description><![CDATA[Redirect to the Edit Tags/Categories page]]></description>
4742
  <long-description><![CDATA[<p>The custom taxonomy add/edit submenu entries go to "upload.php" by default.
4743
  This filter is the only way to redirect them to the correct WordPress page.
4744
  The filter is not required for WordPress 3.5 and later.</p>]]></long-description>
4745
+ <tag line="662" name="since" description="0.1"/>
4746
+ <tag line="662" name="return" description="" type="void">
4747
  <type by_reference="false">void</type>
4748
  </tag>
4749
  </docblock>
4750
  </method>
4751
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="706" package="Media Library Assistant">
4752
  <name>mla_parent_file_filter</name>
4753
  <full_name>mla_parent_file_filter</full_name>
4754
+ <docblock line="690">
4755
  <description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
4756
  <long-description><![CDATA[<p>For WordPress before 3.5, the submenu entries for custom taxonomies
4757
  under the "Media" menu are not set up correctly by WordPress, so this
4759
  page for editing/adding taxonomy terms.
4760
  For WordPress 3.5 and later, the function fixes the submenu bolding when
4761
  going to the Edit Media screen.</p>]]></long-description>
4762
+ <tag line="690" name="since" description="0.1"/>
4763
+ <tag line="690" name="param" description="The top-level menu page" type="array" variable="$parent_file">
4764
  <type by_reference="false">array</type>
4765
  </tag>
4766
+ <tag line="690" name="return" description="The updated top-level menu page" type="string">
4767
  <type by_reference="false">string</type>
4768
  </tag>
4769
  </docblock>
4770
+ <argument line="706">
4771
  <name>$parent_file</name>
4772
  <default><![CDATA[]]></default>
4773
  <type/>
4774
  </argument>
4775
  </method>
4776
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="768" package="Media Library Assistant">
4777
+ <name>_process_mla_download_file</name>
4778
+ <full_name>_process_mla_download_file</full_name>
4779
+ <docblock line="759">
4780
+ <description><![CDATA[Process secure file download]]></description>
4781
+ <long-description><![CDATA[<p>Requires _wpnonce, mla_download_file and mla_download_type in $_REQUEST; mla_download_disposition is optional.</p>]]></long-description>
4782
+ <tag line="759" name="since" description="2.00"/>
4783
+ <tag line="759" name="return" description="echos file contents and calls exit();" type="void">
4784
+ <type by_reference="false">void</type>
4785
+ </tag>
4786
+ </docblock>
4787
+ </method>
4788
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="822" package="Media Library Assistant">
4789
  <name>_process_bulk_value</name>
4790
  <full_name>_process_bulk_value</full_name>
4791
+ <docblock line="812">
4792
  <description><![CDATA[Process bulk edit area fields, which may contain a Content Template]]></description>
4793
  <long-description><![CDATA[]]></long-description>
4794
+ <tag line="812" name="since" description="1.80"/>
4795
+ <tag line="812" name="param" description="Current post ID" type="integer" variable="$post_id">
4796
  <type by_reference="false">integer</type>
4797
  </tag>
4798
+ <tag line="812" name="param" description="Field value as entered" type="string" variable="$bulk_value">
4799
  <type by_reference="false">string</type>
4800
  </tag>
4801
+ <tag line="812" name="return" description="Empty, or new value for the field" type="string">
4802
  <type by_reference="false">string</type>
4803
  </tag>
4804
  </docblock>
4805
+ <argument line="822">
4806
  <name>$post_id</name>
4807
  <default><![CDATA[]]></default>
4808
  <type/>
4809
  </argument>
4810
+ <argument line="822">
4811
  <name>$bulk_value</name>
4812
  <default><![CDATA[]]></default>
4813
  <type/>
4814
  </argument>
4815
  </method>
4816
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="856" package="Media Library Assistant">
4817
+ <name>_process_bulk_action</name>
4818
+ <full_name>_process_bulk_action</full_name>
4819
+ <docblock line="847">
4820
+ <description><![CDATA[Process bulk action for one or more attachments]]></description>
4821
+ <long-description><![CDATA[]]></long-description>
4822
+ <tag line="847" name="since" description="2.00"/>
4823
+ <tag line="847" name="param" description="Bulk action slug: delete, edit, restore, trash, custom action" type="string" variable="$bulk_action">
4824
+ <type by_reference="false">string</type>
4825
+ </tag>
4826
+ <tag line="847" name="return" description="messages and page content: ( 'message', 'body', 'unchanged', 'success', 'failure', 'item_results' )" type="array">
4827
+ <type by_reference="false">array</type>
4828
+ </tag>
4829
+ </docblock>
4830
+ <argument line="856">
4831
+ <name>$bulk_action</name>
4832
+ <default><![CDATA[]]></default>
4833
+ <type/>
4834
+ </argument>
4835
+ </method>
4836
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1106" package="Media Library Assistant">
4837
  <name>mla_render_admin_page</name>
4838
  <full_name>mla_render_admin_page</full_name>
4839
+ <docblock line="1099">
4840
  <description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
4841
  <long-description><![CDATA[]]></long-description>
4842
+ <tag line="1099" name="since" description="0.1"/>
4843
+ <tag line="1099" name="return" description="" type="void">
4844
  <type by_reference="false">void</type>
4845
  </tag>
4846
  </docblock>
4847
  </method>
4848
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1470" package="Media Library Assistant">
4849
  <name>mla_find_posts_ajax_action</name>
4850
  <full_name>mla_find_posts_ajax_action</full_name>
4851
+ <docblock line="1460">
4852
  <description><![CDATA[Ajax handler to fetch candidates for the "Set Parent" popup window]]></description>
4853
  <long-description><![CDATA[<p>Adapted from wp_ajax_find_posts in /wp-admin/includes/ajax-actions.php.
4854
  Adds filters for post type and pagination.</p>]]></long-description>
4855
+ <tag line="1460" name="since" description="1.90"/>
4856
+ <tag line="1460" name="return" description="passes results to wp_send_json_success() for JSON encoding and transmission" type="void">
4857
  <type by_reference="false">void</type>
4858
  </tag>
4859
  </docblock>
4860
  </method>
4861
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1557" package="Media Library Assistant">
4862
  <name>mla_set_parent_ajax_action</name>
4863
  <full_name>mla_set_parent_ajax_action</full_name>
4864
+ <docblock line="1548">
4865
  <description><![CDATA[Ajax handler to set post_parent for a single attachment]]></description>
4866
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
4867
+ <tag line="1548" name="since" description="0.20"/>
4868
+ <tag line="1548" name="return" description="echo HTML &lt;td&gt; innerHTML for updated call or error message, then die()" type="void">
4869
  <type by_reference="false">void</type>
4870
  </tag>
4871
  </docblock>
4872
  </method>
4873
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1591" package="Media Library Assistant">
4874
+ <name>_bulk_edit_ajax_handler</name>
4875
+ <full_name>_bulk_edit_ajax_handler</full_name>
4876
+ <docblock line="1584">
4877
+ <description><![CDATA[Ajax handler for bulk editing and mapping]]></description>
4878
+ <long-description><![CDATA[]]></long-description>
4879
+ <tag line="1584" name="since" description="2.00"/>
4880
+ <tag line="1584" name="return" description="echo json results or error message, then die()" type="void">
4881
+ <type by_reference="false">void</type>
4882
+ </tag>
4883
+ </docblock>
4884
+ </method>
4885
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1619" package="Media Library Assistant">
4886
  <name>mla_inline_edit_ajax_action</name>
4887
  <full_name>mla_inline_edit_ajax_action</full_name>
4888
+ <docblock line="1610">
4889
+ <description><![CDATA[Ajax handler for inline editing]]></description>
4890
+ <long-description><![CDATA[<p>Adapted for Quick Edit from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
4891
+ <tag line="1610" name="since" description="0.20"/>
4892
+ <tag line="1610" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
4893
  <type by_reference="false">void</type>
4894
  </tag>
4895
  </docblock>
4896
  </method>
4897
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1740" package="Media Library Assistant">
4898
  <name>_compose_post_type_select</name>
4899
  <full_name>_compose_post_type_select</full_name>
4900
+ <docblock line="1729">
4901
  <description><![CDATA[Compose a Post Type Options list with current selection]]></description>
4902
  <long-description><![CDATA[]]></long-description>
4903
+ <tag line="1729" name="since" description="1.90"/>
4904
+ <tag line="1729" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
4905
+ <tag line="1729" name="param" description="template parts" type="array" variable="$templates">
4906
  <type by_reference="false">array</type>
4907
  </tag>
4908
+ <tag line="1729" name="param" description="current selection or 'all' (default)" type="string" variable="$selection">
4909
  <type by_reference="false">string</type>
4910
  </tag>
4911
+ <tag line="1729" name="return" description="HTML markup with select field options" type="string">
4912
  <type by_reference="false">string</type>
4913
  </tag>
4914
  </docblock>
4915
+ <argument line="1740">
4916
  <name>$templates</name>
4917
  <default><![CDATA[]]></default>
4918
  <type/>
4919
  </argument>
4920
+ <argument line="1740">
4921
  <name>$selection</name>
4922
  <default><![CDATA['all']]></default>
4923
  <type/>
4924
  </argument>
4925
  </method>
4926
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1779" package="Media Library Assistant">
4927
  <name>mla_set_parent_form</name>
4928
  <full_name>mla_set_parent_form</full_name>
4929
+ <docblock line="1770">
4930
  <description><![CDATA[Build the hidden form for the "Set Parent" popup modal window]]></description>
4931
  <long-description><![CDATA[]]></long-description>
4932
+ <tag line="1770" name="since" description="1.90"/>
4933
+ <tag line="1770" name="param" description="true to return complete form, false to return mla-set-parent-div" type="boolean" variable="$return_form">
4934
  <type by_reference="false">boolean</type>
4935
  </tag>
4936
+ <tag line="1770" name="return" description="HTML &lt;form&gt; markup for hidden form" type="string">
4937
  <type by_reference="false">string</type>
4938
  </tag>
4939
  </docblock>
4940
+ <argument line="1779">
4941
  <name>$return_form</name>
4942
  <default><![CDATA[true]]></default>
4943
  <type/>
4944
  </argument>
4945
  </method>
4946
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1842" package="Media Library Assistant">
4947
  <name>_build_inline_edit_form</name>
4948
  <full_name>_build_inline_edit_form</full_name>
4949
+ <docblock line="1831">
4950
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
4951
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
4952
+ <tag line="1831" name="since" description="0.20"/>
4953
+ <tag line="1831" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
4954
  <type by_reference="false">object</type>
4955
  </tag>
4956
+ <tag line="1831" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
4957
  <type by_reference="false">string</type>
4958
  </tag>
4959
  </docblock>
4960
+ <argument line="1842">
4961
  <name>$MLAListTable</name>
4962
  <default><![CDATA[]]></default>
4963
  <type/>
4964
  </argument>
4965
  </method>
4966
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2037" package="Media Library Assistant">
4967
  <name>_authors_dropdown</name>
4968
  <full_name>_authors_dropdown</full_name>
4969
+ <docblock line="2026">
4970
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
4971
  <long-description><![CDATA[]]></long-description>
4972
+ <tag line="2026" name="since" description="0.20"/>
4973
+ <tag line="2026" name="param" description="Optional User ID of the current author, default 0" type="integer" variable="$author">
4974
  <type by_reference="false">integer</type>
4975
  </tag>
4976
+ <tag line="2026" name="param" description="Optional HTML name attribute, default 'post_author'" type="string" variable="$name">
4977
  <type by_reference="false">string</type>
4978
  </tag>
4979
+ <tag line="2026" name="param" description="Optional HTML class attribute, default 'authors'" type="string" variable="$class">
4980
  <type by_reference="false">string</type>
4981
  </tag>
4982
+ <tag line="2026" name="return" description="HTML markup for the dropdown field or False" type="string|false">
4983
  <type by_reference="false">string</type>
4984
  <type by_reference="false">false</type>
4985
  </tag>
4986
  </docblock>
4987
+ <argument line="2037">
4988
  <name>$author</name>
4989
  <default><![CDATA[0]]></default>
4990
  <type/>
4991
  </argument>
4992
+ <argument line="2037">
4993
  <name>$name</name>
4994
  <default><![CDATA['post_author']]></default>
4995
  <type/>
4996
  </argument>
4997
+ <argument line="2037">
4998
  <name>$class</name>
4999
  <default><![CDATA['authors']]></default>
5000
  <type/>
5001
  </argument>
5002
  </method>
5003
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2071" package="Media Library Assistant">
5004
  <name>_current_bulk_action</name>
5005
  <full_name>_current_bulk_action</full_name>
5006
+ <docblock line="2064">
5007
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
5008
  <long-description><![CDATA[]]></long-description>
5009
+ <tag line="2064" name="since" description="0.1"/>
5010
+ <tag line="2064" name="return" description="The action name or False if no action was selected" type="string|false">
5011
  <type by_reference="false">string</type>
5012
  <type by_reference="false">false</type>
5013
  </tag>
5014
  </docblock>
5015
  </method>
5016
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2102" package="Media Library Assistant">
5017
  <name>_delete_single_item</name>
5018
  <full_name>_delete_single_item</full_name>
5019
+ <docblock line="2093">
5020
  <description><![CDATA[Delete a single item permanently]]></description>
5021
  <long-description><![CDATA[]]></long-description>
5022
+ <tag line="2093" name="since" description="0.1"/>
5023
+ <tag line="2093" name="param" description="The form POST data" type="array" variable="$post_id">
5024
  <type by_reference="false">array</type>
5025
  </tag>
5026
+ <tag line="2093" name="return" description="success/failure message and NULL content" type="array">
5027
  <type by_reference="false">array</type>
5028
  </tag>
5029
  </docblock>
5030
+ <argument line="2102">
5031
  <name>$post_id</name>
5032
  <default><![CDATA[]]></default>
5033
  <type/>
5034
  </argument>
5035
  </method>
5036
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2137" package="Media Library Assistant">
5037
  <name>_display_single_item</name>
5038
  <full_name>_display_single_item</full_name>
5039
+ <docblock line="2125">
5040
  <description><![CDATA[Display a single item sub page; prepare the form to
5041
  change the meta data for a single attachment.]]></description>
5042
  <long-description><![CDATA[<p>This function is not used in WordPress 3.5 and later.</p>]]></long-description>
5043
+ <tag line="2125" name="since" description="0.1"/>
5044
+ <tag line="2125" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
5045
  <type by_reference="false">integer</type>
5046
  </tag>
5047
+ <tag line="2125" name="return" description="message and/or HTML content" type="array">
5048
  <type by_reference="false">array</type>
5049
  </tag>
5050
  </docblock>
5051
+ <argument line="2137">
5052
  <name>$post_id</name>
5053
  <default><![CDATA[]]></default>
5054
  <type/>
5055
  </argument>
5056
  </method>
5057
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2418" package="Media Library Assistant">
5058
  <name>_restore_single_item</name>
5059
  <full_name>_restore_single_item</full_name>
5060
+ <docblock line="2409">
5061
  <description><![CDATA[Restore a single item from the Trash]]></description>
5062
  <long-description><![CDATA[]]></long-description>
5063
+ <tag line="2409" name="since" description="0.1"/>
5064
+ <tag line="2409" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
5065
  <type by_reference="false">integer</type>
5066
  </tag>
5067
+ <tag line="2409" name="return" description="success/failure message and NULL content" type="array">
5068
  <type by_reference="false">array</type>
5069
  </tag>
5070
  </docblock>
5071
+ <argument line="2418">
5072
  <name>$post_id</name>
5073
  <default><![CDATA[]]></default>
5074
  <type/>
5075
  </argument>
5076
  </method>
5077
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2458" package="Media Library Assistant">
5078
  <name>_trash_single_item</name>
5079
  <full_name>_trash_single_item</full_name>
5080
+ <docblock line="2449">
5081
  <description><![CDATA[Move a single item to Trash]]></description>
5082
  <long-description><![CDATA[]]></long-description>
5083
+ <tag line="2449" name="since" description="0.1"/>
5084
+ <tag line="2449" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
5085
  <type by_reference="false">integer</type>
5086
  </tag>
5087
+ <tag line="2449" name="return" description="success/failure message and NULL content" type="array">
5088
  <type by_reference="false">array</type>
5089
  </tag>
5090
  </docblock>
5091
+ <argument line="2458">
5092
  <name>$post_id</name>
5093
  <default><![CDATA[]]></default>
5094
  <type/>
5096
  </method>
5097
  </class>
5098
  </file>
5099
+ <file path="includes\class-mla-media-modal.php" hash="be4a41d5fc64f405e94cb7d1f651a50e" package="Media Library Assistant">
5100
  <docblock line="2">
5101
  <description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
5102
  <long-description><![CDATA[]]></long-description>
5103
  <tag line="2" name="package" description="Media Library Assistant"/>
5104
  <tag line="2" name="since" description="1.20"/>
5105
  </docblock>
5106
+ <include line="588" type="Require Once" package="Media Library Assistant">
5107
  <name/>
5108
  </include>
5109
  <class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
5417
  </tag>
5418
  </docblock>
5419
  </method>
5420
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="601" package="Media Library Assistant">
5421
  <name>mla_admin_init_action</name>
5422
  <full_name>mla_admin_init_action</full_name>
5423
+ <docblock line="591">
5424
  <description><![CDATA[Adjust ajax handler for Media Manager queries]]></description>
5425
  <long-description><![CDATA[<p>Replace 'query-attachments' with our own handler if the request is coming from the "Assistant" tab.
5426
  Clean up the 'save-attachment-compat' values, removing the taxonomy updates MLS already handled.</p>]]></long-description>
5427
+ <tag line="591" name="since" description="1.20"/>
5428
+ <tag line="591" name="return" description="" type="void">
5429
  <type by_reference="false">void</type>
5430
  </tag>
5431
  </docblock>
5432
  </method>
5433
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="740" package="Media Library Assistant">
5434
  <name>mla_fill_compat_fields_action</name>
5435
  <full_name>mla_fill_compat_fields_action</full_name>
5436
+ <docblock line="731">
5437
  <description><![CDATA[Ajax handler for Media Manager "fill compat-attachment-fields" queries]]></description>
5438
  <long-description><![CDATA[<p>Prepares an array of (HTML) taxonomy meta boxes with attachment-specific values.</p>]]></long-description>
5439
+ <tag line="731" name="since" description="1.80"/>
5440
+ <tag line="731" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
5441
  <type by_reference="false">void</type>
5442
  </tag>
5443
  </docblock>
5444
  </method>
5445
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="914" package="Media Library Assistant">
5446
  <name>mla_update_compat_fields_action</name>
5447
  <full_name>mla_update_compat_fields_action</full_name>
5448
+ <docblock line="905">
5449
  <description><![CDATA[Ajax handler for Media Manager "update compat-attachment-fields" queries]]></description>
5450
  <long-description><![CDATA[<p>Updates one (or more) supported taxonomy and returns updated checkbox or tag/term lists</p>]]></long-description>
5451
+ <tag line="905" name="since" description="1.80"/>
5452
+ <tag line="905" name="return" description="passes array of results to wp_send_json_success() for JSON encoding and transmission" type="void">
5453
  <type by_reference="false">void</type>
5454
  </tag>
5455
  </docblock>
5456
  </method>
5457
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="991" package="Media Library Assistant">
5458
  <name>mla_query_attachments_action</name>
5459
  <full_name>mla_query_attachments_action</full_name>
5460
+ <docblock line="982">
5461
  <description><![CDATA[Ajax handler for Media Manager "Query Attachments" queries]]></description>
5462
  <long-description><![CDATA[<p>Adapted from wp_ajax_query_attachments in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
5463
+ <tag line="982" name="since" description="1.20"/>
5464
+ <tag line="982" name="return" description="passes array of post arrays to wp_send_json_success() for JSON encoding and transmission" type="void">
5465
  <type by_reference="false">void</type>
5466
  </tag>
5467
  </docblock>
5468
  </method>
5469
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1105" package="Media Library Assistant">
5470
  <name>mla_add_terms_search_scripts</name>
5471
  <full_name>mla_add_terms_search_scripts</full_name>
5472
+ <docblock line="1097">
5473
  <description><![CDATA[Add the styles and scripts for the "Search Terms" popup modal window,
5474
  but only once per page load]]></description>
5475
  <long-description><![CDATA[]]></long-description>
5476
+ <tag line="1097" name="since" description="1.90"/>
5477
+ <tag line="1097" name="return" description="" type="void">
5478
  <type by_reference="false">void</type>
5479
  </tag>
5480
  </docblock>
5481
  </method>
5482
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1145" package="Media Library Assistant">
5483
  <name>mla_add_terms_search_form</name>
5484
  <full_name>mla_add_terms_search_form</full_name>
5485
+ <docblock line="1137">
5486
  <description><![CDATA[Add the hidden form for the "Search Terms" popup modal window,
5487
  but only once per page load]]></description>
5488
  <long-description><![CDATA[]]></long-description>
5489
+ <tag line="1137" name="since" description="1.90"/>
5490
+ <tag line="1137" name="return" description="" type="void">
5491
  <type by_reference="false">void</type>
5492
  </tag>
5493
  </docblock>
5494
  </method>
5495
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1161" package="Media Library Assistant">
5496
  <name>mla_echo_terms_search_form</name>
5497
  <full_name>mla_echo_terms_search_form</full_name>
5498
+ <docblock line="1154">
5499
  <description><![CDATA[Echo the hidden form for the "Search Terms" popup modal window]]></description>
5500
  <long-description><![CDATA[]]></long-description>
5501
+ <tag line="1154" name="since" description="1.90"/>
5502
+ <tag line="1154" name="return" description="Echos the HTML &lt;form&gt; markup for hidden form" type="void">
5503
  <type by_reference="false">void</type>
5504
  </tag>
5505
  </docblock>
5506
  </method>
5507
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1172" package="Media Library Assistant">
5508
  <name>mla_terms_search_form</name>
5509
  <full_name>mla_terms_search_form</full_name>
5510
+ <docblock line="1165">
5511
  <description><![CDATA[Build the hidden form for the "Search Terms" popup modal window]]></description>
5512
  <long-description><![CDATA[]]></long-description>
5513
+ <tag line="1165" name="since" description="1.90"/>
5514
+ <tag line="1165" name="return" description="HTML &lt;form&gt; markup for hidden form" type="string">
5515
  <type by_reference="false">string</type>
5516
  </tag>
5517
  </docblock>
6976
  </method>
6977
  </class>
6978
  </file>
6979
+ <file path="includes\class-mla-options.php" hash="dc3b4dad51d123710a2fa48744be0d8f" package="Media Library Assistant">
6980
  <docblock line="2">
6981
  <description><![CDATA[Manages the plugin option settings]]></description>
6982
  <long-description><![CDATA[]]></long-description>
6983
  <tag line="2" name="package" description="Media Library Assistant"/>
6984
  <tag line="2" name="since" description="1.00"/>
6985
  </docblock>
6986
+ <include line="1858" type="Require Once" package="Media Library Assistant">
6987
  <name/>
6988
  </include>
6989
+ <include line="1889" type="Require" package="Media Library Assistant">
6990
  <name/>
6991
  </include>
6992
  <class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
7145
  </docblock>
7146
  </constant>
7147
  <constant namespace="global" line="102" package="Media Library Assistant">
7148
+ <name>MLA_BULK_CHUNK_SIZE</name>
7149
+ <full_name>MLA_BULK_CHUNK_SIZE</full_name>
7150
+ <value><![CDATA['bulk_chunk_size']]></value>
7151
+ <docblock line="99">
7152
+ <description><![CDATA[Provides a unique name for the Bulk Update and Map All chunk size option]]></description>
7153
+ <long-description><![CDATA[]]></long-description>
7154
+ </docblock>
7155
+ </constant>
7156
+ <constant namespace="global" line="107" package="Media Library Assistant">
7157
  <name>MLA_TAXONOMY_FILTER_DEPTH</name>
7158
  <full_name>MLA_TAXONOMY_FILTER_DEPTH</full_name>
7159
  <value><![CDATA['taxonomy_filter_depth']]></value>
7160
+ <docblock line="104">
7161
  <description><![CDATA[Provides a unique name for the taxonomy filter maximum depth option]]></description>
7162
  <long-description><![CDATA[]]></long-description>
7163
  </docblock>
7164
  </constant>
7165
+ <constant namespace="global" line="112" package="Media Library Assistant">
7166
  <name>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN</name>
7167
  <full_name>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN</full_name>
7168
  <value><![CDATA['taxonomy_filter_include_children']]></value>
7169
+ <docblock line="109">
7170
  <description><![CDATA[Provides a unique name for the taxonomy filter maximum depth option]]></description>
7171
  <long-description><![CDATA[]]></long-description>
7172
  </docblock>
7173
  </constant>
7174
+ <constant namespace="global" line="117" package="Media Library Assistant">
7175
  <name>MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS</name>
7176
  <full_name>MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS</full_name>
7177
  <value><![CDATA['search_media_filter_show_controls']]></value>
7178
+ <docblock line="114">
7179
  <description><![CDATA[Provides a unique name for the display Search Media controls option]]></description>
7180
  <long-description><![CDATA[]]></long-description>
7181
  </docblock>
7182
  </constant>
7183
+ <constant namespace="global" line="122" package="Media Library Assistant">
7184
  <name>MLA_SEARCH_MEDIA_FILTER_DEFAULTS</name>
7185
  <full_name>MLA_SEARCH_MEDIA_FILTER_DEFAULTS</full_name>
7186
  <value><![CDATA['search_media_filter_defaults']]></value>
7187
+ <docblock line="119">
7188
  <description><![CDATA[Provides a unique name for the display Search Media controls option]]></description>
7189
  <long-description><![CDATA[]]></long-description>
7190
  </docblock>
7191
  </constant>
7192
+ <constant namespace="global" line="127" package="Media Library Assistant">
7193
  <name>MLA_EXIF_SIZE</name>
7194
  <full_name>MLA_EXIF_SIZE</full_name>
7195
  <value><![CDATA[30]]></value>
7196
+ <docblock line="124">
7197
  <description><![CDATA[Provides a "size" attribute value for the EXIF/Template Value field]]></description>
7198
  <long-description><![CDATA[]]></long-description>
7199
  </docblock>
7200
  </constant>
7201
+ <constant namespace="global" line="132" package="Media Library Assistant">
7202
  <name>MLA_NEW_CUSTOM_RULE</name>
7203
  <full_name>MLA_NEW_CUSTOM_RULE</full_name>
7204
  <value><![CDATA['__NEW RULE__']]></value>
7205
+ <docblock line="129">
7206
  <description><![CDATA[Provides a unique name for the Custom Field "new rule" key]]></description>
7207
  <long-description><![CDATA[]]></long-description>
7208
  </docblock>
7209
  </constant>
7210
+ <constant namespace="global" line="137" package="Media Library Assistant">
7211
  <name>MLA_NEW_CUSTOM_FIELD</name>
7212
  <full_name>MLA_NEW_CUSTOM_FIELD</full_name>
7213
  <value><![CDATA['__NEW FIELD__']]></value>
7214
+ <docblock line="134">
7215
  <description><![CDATA[Provides a unique name for the Custom Field "new field" key]]></description>
7216
  <long-description><![CDATA[]]></long-description>
7217
  </docblock>
7218
  </constant>
7219
+ <constant namespace="global" line="142" package="Media Library Assistant">
7220
  <name>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</name>
7221
  <full_name>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</full_name>
7222
  <value><![CDATA['edit_media_search_taxonomy']]></value>
7223
+ <docblock line="139">
7224
  <description><![CDATA[Provides a unique name for the "searchable taxonomies" option]]></description>
7225
  <long-description><![CDATA[]]></long-description>
7226
  </docblock>
7227
  </constant>
7228
+ <constant namespace="global" line="147" package="Media Library Assistant">
7229
  <name>MLA_EDIT_MEDIA_META_BOXES</name>
7230
  <full_name>MLA_EDIT_MEDIA_META_BOXES</full_name>
7231
  <value><![CDATA['edit_media_meta_boxes']]></value>
7232
+ <docblock line="144">
7233
  <description><![CDATA[Provides a unique name for the Edit Media additional meta boxes option]]></description>
7234
  <long-description><![CDATA[]]></long-description>
7235
  </docblock>
7236
  </constant>
7237
+ <constant namespace="global" line="153" package="Media Library Assistant">
7238
  <name>MLA_MEDIA_GRID_TOOLBAR</name>
7239
  <full_name>MLA_MEDIA_GRID_TOOLBAR</full_name>
7240
  <value><![CDATA['media_grid_toolbar']]></value>
7241
+ <docblock line="149">
7242
  <description><![CDATA[Provides a unique name for the Media Grid toolbar option, which
7243
  also controls the ATTACHMENT DETAILS enhancements]]></description>
7244
  <long-description><![CDATA[]]></long-description>
7245
  </docblock>
7246
  </constant>
7247
+ <constant namespace="global" line="159" package="Media Library Assistant">
7248
  <name>MLA_MEDIA_MODAL_TOOLBAR</name>
7249
  <full_name>MLA_MEDIA_MODAL_TOOLBAR</full_name>
7250
  <value><![CDATA['media_modal_toolbar']]></value>
7251
+ <docblock line="155">
7252
  <description><![CDATA[Provides a unique name for the Media Manager toolbar option, which
7253
  also controls the ATTACHMENT DETAILS enhancements]]></description>
7254
  <long-description><![CDATA[]]></long-description>
7255
  </docblock>
7256
  </constant>
7257
+ <constant namespace="global" line="164" package="Media Library Assistant">
7258
  <name>MLA_MEDIA_MODAL_MIMETYPES</name>
7259
  <full_name>MLA_MEDIA_MODAL_MIMETYPES</full_name>
7260
  <value><![CDATA['media_modal_mimetypes']]></value>
7261
+ <docblock line="161">
7262
  <description><![CDATA[Provides a unique name for the Media Manager toolbar MIME Types option]]></description>
7263
  <long-description><![CDATA[]]></long-description>
7264
  </docblock>
7265
  </constant>
7266
+ <constant namespace="global" line="169" package="Media Library Assistant">
7267
  <name>MLA_MEDIA_MODAL_MONTHS</name>
7268
  <full_name>MLA_MEDIA_MODAL_MONTHS</full_name>
7269
  <value><![CDATA['media_modal_months']]></value>
7270
+ <docblock line="166">
7271
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Month and Year option]]></description>
7272
  <long-description><![CDATA[]]></long-description>
7273
  </docblock>
7274
  </constant>
7275
+ <constant namespace="global" line="174" package="Media Library Assistant">
7276
  <name>MLA_MEDIA_MODAL_TERMS</name>
7277
  <full_name>MLA_MEDIA_MODAL_TERMS</full_name>
7278
  <value><![CDATA['media_modal_terms']]></value>
7279
+ <docblock line="171">
7280
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy Terms option]]></description>
7281
  <long-description><![CDATA[]]></long-description>
7282
  </docblock>
7283
  </constant>
7284
+ <constant namespace="global" line="179" package="Media Library Assistant">
7285
  <name>MLA_MEDIA_MODAL_TERMS_SEARCH</name>
7286
  <full_name>MLA_MEDIA_MODAL_TERMS_SEARCH</full_name>
7287
  <value><![CDATA['media_modal_terms_search']]></value>
7288
+ <docblock line="176">
7289
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option]]></description>
7290
  <long-description><![CDATA[]]></long-description>
7291
  </docblock>
7292
  </constant>
7293
+ <constant namespace="global" line="184" package="Media Library Assistant">
7294
  <name>MLA_MEDIA_MODAL_SEARCHBOX</name>
7295
  <full_name>MLA_MEDIA_MODAL_SEARCHBOX</full_name>
7296
  <value><![CDATA['media_modal_searchbox']]></value>
7297
+ <docblock line="181">
7298
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box option]]></description>
7299
  <long-description><![CDATA[]]></long-description>
7300
  </docblock>
7301
  </constant>
7302
+ <constant namespace="global" line="189" package="Media Library Assistant">
7303
  <name>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</name>
7304
  <full_name>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</full_name>
7305
  <value><![CDATA['media_modal_searchbox_controls']]></value>
7306
+ <docblock line="186">
7307
  <description><![CDATA[Provides a unique name for the Media Manager toolbar Search Box Controls option]]></description>
7308
  <long-description><![CDATA[]]></long-description>
7309
  </docblock>
7310
  </constant>
7311
+ <constant namespace="global" line="195" package="Media Library Assistant">
7312
  <name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</name>
7313
  <full_name>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</full_name>
7314
  <value><![CDATA['media_modal_details_category_metabox']]></value>
7315
+ <docblock line="191">
7316
  <description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
7317
  This option is for hierarchical taxonomies, e.g., "Att.]]></description>
7318
  <long-description><![CDATA[<p>Categories".</p>]]></long-description>
7319
  </docblock>
7320
  </constant>
7321
+ <constant namespace="global" line="201" package="Media Library Assistant">
7322
  <name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</name>
7323
  <full_name>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</full_name>
7324
  <value><![CDATA['media_modal_details_tag_metabox']]></value>
7325
+ <docblock line="197">
7326
  <description><![CDATA[Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
7327
  This option is for flat taxonomies, e.g., "Att.]]></description>
7328
  <long-description><![CDATA[<p>Tags".</p>]]></long-description>
7329
  </docblock>
7330
  </constant>
7331
+ <constant namespace="global" line="206" package="Media Library Assistant">
7332
  <name>MLA_MEDIA_MODAL_DETAILS_AUTOFILL</name>
7333
  <full_name>MLA_MEDIA_MODAL_DETAILS_AUTOFILL</full_name>
7334
  <value><![CDATA['media_modal_details_autofill']]></value>
7335
+ <docblock line="203">
7336
  <description><![CDATA[Provides a unique name for the Media Manager Attachment Details auto-fill option]]></description>
7337
  <long-description><![CDATA[]]></long-description>
7338
  </docblock>
7339
  </constant>
7340
+ <constant namespace="global" line="211" package="Media Library Assistant">
7341
  <name>MLA_MEDIA_MODAL_ORDERBY</name>
7342
  <full_name>MLA_MEDIA_MODAL_ORDERBY</full_name>
7343
  <value><![CDATA['media_modal_orderby']]></value>
7344
+ <docblock line="208">
7345
  <description><![CDATA[Provides a unique name for the Media Manager orderby option]]></description>
7346
  <long-description><![CDATA[]]></long-description>
7347
  </docblock>
7348
  </constant>
7349
+ <constant namespace="global" line="216" package="Media Library Assistant">
7350
  <name>MLA_MEDIA_MODAL_ORDER</name>
7351
  <full_name>MLA_MEDIA_MODAL_ORDER</full_name>
7352
  <value><![CDATA['media_modal_order']]></value>
7353
+ <docblock line="213">
7354
  <description><![CDATA[Provides a unique name for the Media Manager order option]]></description>
7355
  <long-description><![CDATA[]]></long-description>
7356
  </docblock>
7357
  </constant>
7358
+ <constant namespace="global" line="221" package="Media Library Assistant">
7359
  <name>MLA_POST_MIME_TYPES</name>
7360
  <full_name>MLA_POST_MIME_TYPES</full_name>
7361
  <value><![CDATA['post_mime_types']]></value>
7362
+ <docblock line="218">
7363
  <description><![CDATA[Provides a unique name for the Post MIME Types option]]></description>
7364
  <long-description><![CDATA[]]></long-description>
7365
  </docblock>
7366
  </constant>
7367
+ <constant namespace="global" line="226" package="Media Library Assistant">
7368
  <name>MLA_ENABLE_POST_MIME_TYPES</name>
7369
  <full_name>MLA_ENABLE_POST_MIME_TYPES</full_name>
7370
  <value><![CDATA['enable_post_mime_types']]></value>
7371
+ <docblock line="223">
7372
  <description><![CDATA[Provides a unique name for the Enable Post MIME Types option]]></description>
7373
  <long-description><![CDATA[]]></long-description>
7374
  </docblock>
7375
  </constant>
7376
+ <constant namespace="global" line="231" package="Media Library Assistant">
7377
  <name>MLA_UPLOAD_MIMES</name>
7378
  <full_name>MLA_UPLOAD_MIMES</full_name>
7379
  <value><![CDATA['upload_mimes']]></value>
7380
+ <docblock line="228">
7381
  <description><![CDATA[Provides a unique name for the Upload MIME Types option]]></description>
7382
  <long-description><![CDATA[]]></long-description>
7383
  </docblock>
7384
  </constant>
7385
+ <constant namespace="global" line="236" package="Media Library Assistant">
7386
  <name>MLA_ENABLE_UPLOAD_MIMES</name>
7387
  <full_name>MLA_ENABLE_UPLOAD_MIMES</full_name>
7388
  <value><![CDATA['enable_upload_mimes']]></value>
7389
+ <docblock line="233">
7390
  <description><![CDATA[Provides a unique name for the Enable Upload MIME Types option]]></description>
7391
  <long-description><![CDATA[]]></long-description>
7392
  </docblock>
7393
  </constant>
7394
+ <constant namespace="global" line="241" package="Media Library Assistant">
7395
  <name>MLA_ENABLE_MLA_ICONS</name>
7396
  <full_name>MLA_ENABLE_MLA_ICONS</full_name>
7397
  <value><![CDATA['enable_mla_icons']]></value>
7398
+ <docblock line="238">
7399
  <description><![CDATA[Provides a unique name for the Enable MLA Icons option]]></description>
7400
  <long-description><![CDATA[]]></long-description>
7401
  </docblock>
7402
  </constant>
7403
+ <property final="false" static="true" visibility="public" line="252" namespace="global" package="Media Library Assistant">
7404
  <name>$process_featured_in</name>
7405
  <default><![CDATA[true]]></default>
7406
+ <docblock line="243">
7407
  <description><![CDATA[Option setting for "Featured in" reporting]]></description>
7408
  <long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
7409
+ <tag line="243" name="since" description="1.00"/>
7410
+ <tag line="243" name="var" description="" type="boolean">
7411
  <type by_reference="false">boolean</type>
7412
  </tag>
7413
  </docblock>
7414
  </property>
7415
+ <property final="false" static="true" visibility="public" line="263" namespace="global" package="Media Library Assistant">
7416
  <name>$process_inserted_in</name>
7417
  <default><![CDATA[true]]></default>
7418
+ <docblock line="254">
7419
  <description><![CDATA[Option setting for "Inserted in" reporting]]></description>
7420
  <long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
7421
+ <tag line="254" name="since" description="1.00"/>
7422
+ <tag line="254" name="var" description="" type="boolean">
7423
  <type by_reference="false">boolean</type>
7424
  </tag>
7425
  </docblock>
7426
  </property>
7427
+ <property final="false" static="true" visibility="public" line="274" namespace="global" package="Media Library Assistant">
7428
  <name>$process_gallery_in</name>
7429
  <default><![CDATA[true]]></default>
7430
+ <docblock line="265">
7431
  <description><![CDATA[Option setting for "Gallery in" reporting]]></description>
7432
  <long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
7433
+ <tag line="265" name="since" description="1.00"/>
7434
+ <tag line="265" name="var" description="" type="boolean">
7435
  <type by_reference="false">boolean</type>
7436
  </tag>
7437
  </docblock>
7438
  </property>
7439
+ <property final="false" static="true" visibility="public" line="285" namespace="global" package="Media Library Assistant">
7440
  <name>$process_mla_gallery_in</name>
7441
  <default><![CDATA[true]]></default>
7442
+ <docblock line="276">
7443
  <description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
7444
  <long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
7445
+ <tag line="276" name="since" description="1.00"/>
7446
+ <tag line="276" name="var" description="" type="boolean">
7447
  <type by_reference="false">boolean</type>
7448
  </tag>
7449
  </docblock>
7450
  </property>
7451
+ <property final="false" static="true" visibility="public" line="317" namespace="global" package="Media Library Assistant">
7452
  <name>$mla_option_definitions</name>
7453
  <default><![CDATA[array()]]></default>
7454
+ <docblock line="287">
7455
  <description><![CDATA[$mla_option_definitions defines the database options and admin page areas for setting/updating them]]></description>
7456
  <long-description><![CDATA[<p>The array must be populated at runtime in MLAOptions::mla_localize_option_definitions_array(),
7457
  because Localization calls cannot be placed in the "public static" array definition itself.</p>
7480
  $message = ['reset']( 'reset', $key, $value, $_REQUEST );</p>]]></long-description>
7481
  </docblock>
7482
  </property>
7483
+ <property final="false" static="true" visibility="private" line="364" namespace="global" package="Media Library Assistant">
7484
  <name>$mla_option_templates</name>
7485
  <default><![CDATA[null]]></default>
7486
+ <docblock line="357">
7487
  <description><![CDATA[Style and Markup templates]]></description>
7488
  <long-description><![CDATA[]]></long-description>
7489
+ <tag line="357" name="since" description="0.80"/>
7490
+ <tag line="357" name="var" description="" type="array">
7491
  <type by_reference="false">array</type>
7492
  </tag>
7493
  </docblock>
7494
  </property>
7495
+ <property final="false" static="true" visibility="private" line="1910" namespace="global" package="Media Library Assistant">
7496
  <name>$add_attachment_id</name>
7497
  <default><![CDATA[0]]></default>
7498
+ <docblock line="1900">
7499
  <description><![CDATA[Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter]]></description>
7500
  <long-description><![CDATA[<p>Ensures that IPTC/EXIF and Custom Field mapping is only performed when the attachment is first
7501
  added to the Media Library.</p>]]></long-description>
7502
+ <tag line="1900" name="since" description="1.70"/>
7503
+ <tag line="1900" name="var" description="" type="integer">
7504
  <type by_reference="false">integer</type>
7505
  </tag>
7506
  </docblock>
7507
  </property>
7508
+ <property final="false" static="true" visibility="private" line="2935" namespace="global" package="Media Library Assistant">
7509
  <name>$custom_field_data_sources</name>
7510
  <default><![CDATA[array('post_id', 'post_author', 'post_date', 'post_date_gmt', 'post_content', 'post_title', 'post_excerpt', 'post_status', 'comment_status', 'ping_status', 'post_name', 'post_modified', 'post_modified_gmt', 'post_content_filtered', 'parent', 'post_parent', 'guid', 'menu_order', 'mime_type', 'post_mime_type', 'comment_count', 'absolute_path', 'absolute_file_name', 'base_file', 'path', 'file_name', 'name_only', 'extension', 'file_size', 'upload_date', '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_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>
7511
+ <docblock line="2928">
7512
  <description><![CDATA[Array of Data Source names for custom field mapping]]></description>
7513
  <long-description><![CDATA[]]></long-description>
7514
+ <tag line="2928" name="since" description="1.10"/>
7515
+ <tag line="2928" name="var" description="" type="array">
7516
  <type by_reference="false">array</type>
7517
  </tag>
7518
  </docblock>
7519
  </property>
7520
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="326" package="Media Library Assistant">
7521
  <name>initialize</name>
7522
  <full_name>initialize</full_name>
7523
+ <docblock line="319">
7524
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
7525
  <long-description><![CDATA[]]></long-description>
7526
+ <tag line="319" name="since" description="1.00"/>
7527
+ <tag line="319" name="return" description="" type="void">
7528
  <type by_reference="false">void</type>
7529
  </tag>
7530
  </docblock>
7531
  </method>
7532
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="373" package="Media Library Assistant">
7533
  <name>_load_option_templates</name>
7534
  <full_name>_load_option_templates</full_name>
7535
+ <docblock line="366">
7536
  <description><![CDATA[Load style and markup templates to $mla_templates]]></description>
7537
  <long-description><![CDATA[]]></long-description>
7538
+ <tag line="366" name="since" description="0.80"/>
7539
+ <tag line="366" name="return" description="" type="void">
7540
  <type by_reference="false">void</type>
7541
  </tag>
7542
  </docblock>
7543
  </method>
7544
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="420" package="Media Library Assistant">
7545
  <name>mla_localize_option_definitions_array</name>
7546
  <full_name>mla_localize_option_definitions_array</full_name>
7547
+ <docblock line="410">
7548
  <description><![CDATA[Localize $mla_option_definitions array]]></description>
7549
  <long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
7550
  in the "public static" array definition itself.</p>]]></long-description>
7551
+ <tag line="410" name="since" description="1.70"/>
7552
+ <tag line="410" name="return" description="" type="void">
7553
  <type by_reference="false">void</type>
7554
  </tag>
7555
  </docblock>
7556
  </method>
7557
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1213" package="Media Library Assistant">
7558
  <name>mla_fetch_gallery_template</name>
7559
  <full_name>mla_fetch_gallery_template</full_name>
7560
+ <docblock line="1203">
7561
  <description><![CDATA[Fetch style or markup template from $mla_templates]]></description>
7562
  <long-description><![CDATA[]]></long-description>
7563
+ <tag line="1203" name="since" description="0.80"/>
7564
+ <tag line="1203" name="param" description="Template name" type="string" variable="$key">
7565
  <type by_reference="false">string</type>
7566
  </tag>
7567
+ <tag line="1203" name="param" description="Template type; 'style' (default) or 'markup'" type="string" variable="$type">
7568
  <type by_reference="false">string</type>
7569
  </tag>
7570
+ <tag line="1203" name="return" description="requested template, false if not found or null if no templates" type="string|boolean|null">
7571
  <type by_reference="false">string</type>
7572
  <type by_reference="false">boolean</type>
7573
  <type by_reference="false">null</type>
7574
  </tag>
7575
  </docblock>
7576
+ <argument line="1213">
7577
  <name>$key</name>
7578
  <default><![CDATA[]]></default>
7579
  <type/>
7580
  </argument>
7581
+ <argument line="1213">
7582
  <name>$type</name>
7583
  <default><![CDATA['style']]></default>
7584
  <type/>
7585
  </argument>
7586
  </method>
7587
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1235" package="Media Library Assistant">
7588
  <name>mla_get_style_templates</name>
7589
  <full_name>mla_get_style_templates</full_name>
7590
+ <docblock line="1228">
7591
  <description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
7592
  <long-description><![CDATA[]]></long-description>
7593
+ <tag line="1228" name="since" description="0.80"/>
7594
+ <tag line="1228" name="return" description="name =&gt; value for all style templates or null if no templates" type="array|null">
7595
  <type by_reference="false">array</type>
7596
  <type by_reference="false">null</type>
7597
  </tag>
7598
  </docblock>
7599
  </method>
7600
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1261" package="Media Library Assistant">
7601
  <name>mla_put_style_templates</name>
7602
  <full_name>mla_put_style_templates</full_name>
7603
+ <docblock line="1253">
7604
  <description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
7605
  <long-description><![CDATA[]]></long-description>
7606
+ <tag line="1253" name="since" description="0.80"/>
7607
+ <tag line="1253" name="param" description="name =&gt; value for all user-defined style templates" type="array" variable="$templates">
7608
  <type by_reference="false">array</type>
7609
  </tag>
7610
+ <tag line="1253" name="return" description="true if success, false if failure" type="boolean">
7611
  <type by_reference="false">boolean</type>
7612
  </tag>
7613
  </docblock>
7614
+ <argument line="1261">
7615
  <name>$templates</name>
7616
  <default><![CDATA[]]></default>
7617
  <type/>
7618
  </argument>
7619
  </method>
7620
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1277" package="Media Library Assistant">
7621
  <name>mla_get_markup_templates</name>
7622
  <full_name>mla_get_markup_templates</full_name>
7623
+ <docblock line="1270">
7624
  <description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
7625
  <long-description><![CDATA[]]></long-description>
7626
+ <tag line="1270" name="since" description="0.80"/>
7627
+ <tag line="1270" name="return" description="name =&gt; value for all markup templates or null if no templates" type="array|null">
7628
  <type by_reference="false">array</type>
7629
  <type by_reference="false">null</type>
7630
  </tag>
7631
  </docblock>
7632
  </method>
7633
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1332" package="Media Library Assistant">
7634
  <name>mla_put_markup_templates</name>
7635
  <full_name>mla_put_markup_templates</full_name>
7636
+ <docblock line="1324">
7637
  <description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
7638
  <long-description><![CDATA[]]></long-description>
7639
+ <tag line="1324" name="since" description="0.80"/>
7640
+ <tag line="1324" name="param" description="name =&gt; value for all user-defined markup templates" type="array" variable="$templates">
7641
  <type by_reference="false">array</type>
7642
  </tag>
7643
+ <tag line="1324" name="return" description="true if success, false if failure" type="boolean">
7644
  <type by_reference="false">boolean</type>
7645
  </tag>
7646
  </docblock>
7647
+ <argument line="1332">
7648
  <name>$templates</name>
7649
  <default><![CDATA[]]></default>
7650
  <type/>
7651
  </argument>
7652
  </method>
7653
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1352" package="Media Library Assistant">
7654
  <name>mla_get_option</name>
7655
  <full_name>mla_get_option</full_name>
7656
+ <docblock line="1341">
7657
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
7658
  <long-description><![CDATA[]]></long-description>
7659
+ <tag line="1341" name="since" description="0.1"/>
7660
+ <tag line="1341" name="param" description="Name of the desired option" type="string" variable="$option">
7661
  <type by_reference="false">string</type>
7662
  </tag>
7663
+ <tag line="1341" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
7664
  <type by_reference="false">boolean</type>
7665
  </tag>
7666
+ <tag line="1341" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
7667
  <type by_reference="false">boolean</type>
7668
  </tag>
7669
+ <tag line="1341" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
7670
  <type by_reference="false">mixed</type>
7671
  </tag>
7672
  </docblock>
7673
+ <argument line="1352">
7674
  <name>$option</name>
7675
  <default><![CDATA[]]></default>
7676
  <type/>
7677
  </argument>
7678
+ <argument line="1352">
7679
  <name>$get_default</name>
7680
  <default><![CDATA[false]]></default>
7681
  <type/>
7682
  </argument>
7683
+ <argument line="1352">
7684
  <name>$get_stored</name>
7685
  <default><![CDATA[false]]></default>
7686
  <type/>
7687
  </argument>
7688
  </method>
7689
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1382" package="Media Library Assistant">
7690
  <name>mla_update_option</name>
7691
  <full_name>mla_update_option</full_name>
7692
+ <docblock line="1372">
7693
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
7694
  <long-description><![CDATA[]]></long-description>
7695
+ <tag line="1372" name="since" description="0.1"/>
7696
+ <tag line="1372" name="param" description="Name of the desired option" type="string" variable="$option">
7697
  <type by_reference="false">string</type>
7698
  </tag>
7699
+ <tag line="1372" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
7700
  <type by_reference="false">mixed</type>
7701
  </tag>
7702
+ <tag line="1372" name="return" description="True if the value was changed or false if the update failed" type="boolean">
7703
  <type by_reference="false">boolean</type>
7704
  </tag>
7705
  </docblock>
7706
+ <argument line="1382">
7707
  <name>$option</name>
7708
  <default><![CDATA[]]></default>
7709
  <type/>
7710
  </argument>
7711
+ <argument line="1382">
7712
  <name>$newvalue</name>
7713
  <default><![CDATA[]]></default>
7714
  <type/>
7715
  </argument>
7716
  </method>
7717
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1399" package="Media Library Assistant">
7718
  <name>mla_delete_option</name>
7719
  <full_name>mla_delete_option</full_name>
7720
+ <docblock line="1390">
7721
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
7722
  <long-description><![CDATA[]]></long-description>
7723
+ <tag line="1390" name="since" description="0.1"/>
7724
+ <tag line="1390" name="param" description="Name of the desired option" type="string" variable="$option">
7725
  <type by_reference="false">string</type>
7726
  </tag>
7727
+ <tag line="1390" name="return" description="True if the option was deleted, otherwise false" type="boolean">
7728
  <type by_reference="false">boolean</type>
7729
  </tag>
7730
  </docblock>
7731
+ <argument line="1399">
7732
  <name>$option</name>
7733
  <default><![CDATA[]]></default>
7734
  <type/>
7735
  </argument>
7736
  </method>
7737
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1420" package="Media Library Assistant">
7738
  <name>mla_taxonomy_support</name>
7739
  <full_name>mla_taxonomy_support</full_name>
7740
+ <docblock line="1407">
7741
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
7742
  settings are being updated or reset.]]></description>
7743
  <long-description><![CDATA[]]></long-description>
7744
+ <tag line="1407" name="since" description="0.30"/>
7745
+ <tag line="1407" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
7746
  <type by_reference="false">string</type>
7747
  </tag>
7748
+ <tag line="1407" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
7749
  <type by_reference="false">string</type>
7750
  </tag>
7751
+ <tag line="1407" 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">
7752
  <type by_reference="false">boolean</type>
7753
  <type by_reference="false">string</type>
7754
  </tag>
7755
  </docblock>
7756
+ <argument line="1420">
7757
  <name>$tax_name</name>
7758
  <default><![CDATA[]]></default>
7759
  <type/>
7760
  </argument>
7761
+ <argument line="1420">
7762
  <name>$support_type</name>
7763
  <default><![CDATA['support']]></default>
7764
  <type/>
7765
  </argument>
7766
  </method>
7767
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1488" package="Media Library Assistant">
7768
  <name>mla_supported_taxonomies</name>
7769
  <full_name>mla_supported_taxonomies</full_name>
7770
+ <docblock line="1479">
7771
  <description><![CDATA[Returns an array of taxonomy names assigned to $support_type]]></description>
7772
  <long-description><![CDATA[]]></long-description>
7773
+ <tag line="1479" name="since" description="1.90"/>
7774
+ <tag line="1479" name="param" description="Optional. 'support' (default), 'quick-edit', 'flat-checklist', 'term-search' or 'filter'" type="string" variable="$support_type">
7775
  <type by_reference="false">string</type>
7776
  </tag>
7777
+ <tag line="1479" name="return" description="taxonomies assigned to $support_type; can be empty." type="array">
7778
  <type by_reference="false">array</type>
7779
  </tag>
7780
  </docblock>
7781
+ <argument line="1488">
7782
  <name>$support_type</name>
7783
  <default><![CDATA['support']]></default>
7784
  <type/>
7785
  </argument>
7786
  </method>
7787
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1549" package="Media Library Assistant">
7788
  <name>mla_attachment_display_settings_option_handler</name>
7789
  <full_name>mla_attachment_display_settings_option_handler</full_name>
7790
+ <docblock line="1536">
7791
  <description><![CDATA[Render and manage Attachment Display Settings options; alignment, link type and size]]></description>
7792
  <long-description><![CDATA[]]></long-description>
7793
+ <tag line="1536" name="since" description="1.71"/>
7794
+ <tag line="1536" name="uses" description="\global\MLASettings::$page_template_array" refers="\global\MLASettings::$page_template_array"/>
7795
+ <tag line="1536" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
7796
  <type by_reference="false">string</type>
7797
  </tag>
7798
+ <tag line="1536" name="param" description="option name, e.g., 'image_default_align'" type="string" variable="$key">
7799
  <type by_reference="false">string</type>
7800
  </tag>
7801
+ <tag line="1536" name="param" description="option parameters" type="array" variable="$value">
7802
  <type by_reference="false">array</type>
7803
  </tag>
7804
+ <tag line="1536" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
7805
  <type by_reference="false">array</type>
7806
  </tag>
7807
+ <tag line="1536" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
7808
  <type by_reference="false">string</type>
7809
  </tag>
7810
  </docblock>
7811
+ <argument line="1549">
7812
  <name>$action</name>
7813
  <default><![CDATA[]]></default>
7814
  <type/>
7815
  </argument>
7816
+ <argument line="1549">
7817
  <name>$key</name>
7818
  <default><![CDATA[]]></default>
7819
  <type/>
7820
  </argument>
7821
+ <argument line="1549">
7822
  <name>$value</name>
7823
  <default><![CDATA[]]></default>
7824
  <type/>
7825
  </argument>
7826
+ <argument line="1549">
7827
  <name>$args</name>
7828
  <default><![CDATA[null]]></default>
7829
  <type/>
7830
  </argument>
7831
  </method>
7832
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1613" package="Media Library Assistant">
7833
  <name>mla_taxonomy_option_handler</name>
7834
  <full_name>mla_taxonomy_option_handler</full_name>
7835
+ <docblock line="1600">
7836
  <description><![CDATA[Render and manage taxonomy support options, e.g., Categories and Post Tags]]></description>
7837
  <long-description><![CDATA[]]></long-description>
7838
+ <tag line="1600" name="since" description="0.30"/>
7839
+ <tag line="1600" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7840
+ <tag line="1600" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
7841
  <type by_reference="false">string</type>
7842
  </tag>
7843
+ <tag line="1600" name="param" description="option name, e.g., 'tax_support', or 'tax_flat_checklist'" type="string" variable="$key">
7844
  <type by_reference="false">string</type>
7845
  </tag>
7846
+ <tag line="1600" name="param" description="option parameters" type="array" variable="$value">
7847
  <type by_reference="false">array</type>
7848
  </tag>
7849
+ <tag line="1600" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
7850
  <type by_reference="false">array</type>
7851
  </tag>
7852
+ <tag line="1600" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
7853
  <type by_reference="false">string</type>
7854
  </tag>
7855
  </docblock>
7856
+ <argument line="1613">
7857
  <name>$action</name>
7858
  <default><![CDATA[]]></default>
7859
  <type/>
7860
  </argument>
7861
+ <argument line="1613">
7862
  <name>$key</name>
7863
  <default><![CDATA[]]></default>
7864
  <type/>
7865
  </argument>
7866
+ <argument line="1613">
7867
  <name>$value</name>
7868
  <default><![CDATA[]]></default>
7869
  <type/>
7870
  </argument>
7871
+ <argument line="1613">
7872
  <name>$args</name>
7873
  <default><![CDATA[null]]></default>
7874
  <type/>
7875
  </argument>
7876
  </method>
7877
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1777" package="Media Library Assistant">
7878
  <name>mla_search_option_handler</name>
7879
  <full_name>mla_search_option_handler</full_name>
7880
+ <docblock line="1764">
7881
  <description><![CDATA[Render and manage Search box options, e.g., connector and search fields]]></description>
7882
  <long-description><![CDATA[]]></long-description>
7883
+ <tag line="1764" name="since" description="1.90"/>
7884
+ <tag line="1764" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
7885
+ <tag line="1764" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
7886
  <type by_reference="false">string</type>
7887
  </tag>
7888
+ <tag line="1764" name="param" description="option name; 'search_connector' or 'search_fields'" type="string" variable="$key">
7889
  <type by_reference="false">string</type>
7890
  </tag>
7891
+ <tag line="1764" name="param" description="option parameters" type="array" variable="$value">
7892
  <type by_reference="false">array</type>
7893
  </tag>
7894
+ <tag line="1764" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
7895
  <type by_reference="false">array</type>
7896
  </tag>
7897
+ <tag line="1764" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
7898
  <type by_reference="false">string</type>
7899
  </tag>
7900
  </docblock>
7901
+ <argument line="1777">
7902
  <name>$action</name>
7903
  <default><![CDATA[]]></default>
7904
  <type/>
7905
  </argument>
7906
+ <argument line="1777">
7907
  <name>$key</name>
7908
  <default><![CDATA[]]></default>
7909
  <type/>
7910
  </argument>
7911
+ <argument line="1777">
7912
  <name>$value</name>
7913
  <default><![CDATA[]]></default>
7914
  <type/>
7915
  </argument>
7916
+ <argument line="1777">
7917
  <name>$args</name>
7918
  <default><![CDATA[null]]></default>
7919
  <type/>
7920
  </argument>
7921
  </method>
7922
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1848" package="Media Library Assistant">
7923
  <name>mla_wp_handle_upload_prefilter_filter</name>
7924
  <full_name>mla_wp_handle_upload_prefilter_filter</full_name>
7925
+ <docblock line="1839">
7926
  <description><![CDATA[Examine or alter the filename before the file is made permanent]]></description>
7927
  <long-description><![CDATA[]]></long-description>
7928
+ <tag line="1839" name="since" description="1.70"/>
7929
+ <tag line="1839" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
7930
  <type by_reference="false">array</type>
7931
  </tag>
7932
+ <tag line="1839" name="return" description="updated file parameters" type="array">
7933
  <type by_reference="false">array</type>
7934
  </tag>
7935
  </docblock>
7936
+ <argument line="1848">
7937
  <name>$file</name>
7938
  <default><![CDATA[]]></default>
7939
  <type/>
7940
  </argument>
7941
  </method>
7942
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1879" package="Media Library Assistant">
7943
  <name>mla_wp_handle_upload_filter</name>
7944
  <full_name>mla_wp_handle_upload_filter</full_name>
7945
+ <docblock line="1870">
7946
  <description><![CDATA[Called once for each file uploaded]]></description>
7947
  <long-description><![CDATA[]]></long-description>
7948
+ <tag line="1870" name="since" description="1.70"/>
7949
+ <tag line="1870" name="param" description="file parameters ( 'name' )" type="array" variable="$file">
7950
  <type by_reference="false">array</type>
7951
  </tag>
7952
+ <tag line="1870" name="return" description="updated file parameters" type="array">
7953
  <type by_reference="false">array</type>
7954
  </tag>
7955
  </docblock>
7956
+ <argument line="1879">
7957
  <name>$file</name>
7958
  <default><![CDATA[]]></default>
7959
  <type/>
7960
  </argument>
7961
  </method>
7962
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1923" package="Media Library Assistant">
7963
  <name>mla_add_attachment_action</name>
7964
  <full_name>mla_add_attachment_action</full_name>
7965
+ <docblock line="1912">
7966
  <description><![CDATA[Set $add_attachment_id to just-inserted attachment]]></description>
7967
  <long-description><![CDATA[<p>All of the actual processing is done later, in mla_update_attachment_metadata_filter.</p>]]></long-description>
7968
+ <tag line="1912" name="since" description="1.00"/>
7969
+ <tag line="1912" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_ID">
7970
  <type by_reference="false">integer</type>
7971
  </tag>
7972
+ <tag line="1912" name="return" description="" type="void">
7973
  <type by_reference="false">void</type>
7974
  </tag>
7975
  </docblock>
7976
+ <argument line="1923">
7977
  <name>$post_ID</name>
7978
  <default><![CDATA[]]></default>
7979
  <type/>
7980
  </argument>
7981
  </method>
7982
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1938" package="Media Library Assistant">
7983
  <name>_update_attachment_metadata</name>
7984
  <full_name>_update_attachment_metadata</full_name>
7985
+ <docblock line="1928">
7986
  <description><![CDATA[Update _wp_attachment_metadata for just-inserted attachment]]></description>
7987
  <long-description><![CDATA[]]></long-description>
7988
+ <tag line="1928" name="since" description="1.70"/>
7989
+ <tag line="1928" name="param" description="Attachment metadata updates" type="array" variable="$updates">
7990
  <type by_reference="false">array</type>
7991
  </tag>
7992
+ <tag line="1928" name="param" description="Attachment metadata, by reference; updated by this function" type="array" variable="$data">
7993
  <type by_reference="false">array</type>
7994
  </tag>
7995
+ <tag line="1928" name="return" description="Attachment metadata updates, with &quot;meta:&quot; elements removed" type="array">
7996
  <type by_reference="false">array</type>
7997
  </tag>
7998
  </docblock>
7999
+ <argument line="1938">
8000
  <name>$updates</name>
8001
  <default><![CDATA[]]></default>
8002
  <type/>
8003
  </argument>
8004
+ <argument line="1938">
8005
  <name>$data</name>
8006
  <default><![CDATA[]]></default>
8007
  <type/>
8008
  </argument>
8009
  </method>
8010
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1974" package="Media Library Assistant">
8011
  <name>mla_update_attachment_metadata_filter</name>
8012
  <full_name>mla_update_attachment_metadata_filter</full_name>
8013
+ <docblock line="1961">
8014
  <description><![CDATA[Perform IPTC/EXIF and Custom Field mapping on just-inserted attachment]]></description>
8015
  <long-description><![CDATA[<p>This filter tests the $add_attachment_id variable set by the mla_add_attachment_action
8016
  to ensure that mapping is only performed for new additions, not metadata updates.</p>]]></long-description>
8017
+ <tag line="1961" name="since" description="1.10"/>
8018
+ <tag line="1961" name="param" description="Attachment metadata for just-inserted attachment" type="array" variable="$data">
8019
  <type by_reference="false">array</type>
8020
  </tag>
8021
+ <tag line="1961" name="param" description="ID of just-inserted attachment" type="integer" variable="$post_id">
8022
  <type by_reference="false">integer</type>
8023
  </tag>
8024
+ <tag line="1961" name="return" description="Updated attachment metadata" type="array">
8025
  <type by_reference="false">array</type>
8026
  </tag>
8027
  </docblock>
8028
+ <argument line="1974">
8029
  <name>$data</name>
8030
  <default><![CDATA[]]></default>
8031
  <type/>
8032
  </argument>
8033
+ <argument line="1974">
8034
  <name>$post_id</name>
8035
  <default><![CDATA[]]></default>
8036
  <type/>
8037
  </argument>
8038
  </method>
8039
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2056" package="Media Library Assistant">
8040
  <name>mla_custom_field_option_value</name>
8041
  <full_name>mla_custom_field_option_value</full_name>
8042
+ <docblock line="2047">
8043
  <description><![CDATA[Fetch custom field option value given a slug]]></description>
8044
  <long-description><![CDATA[]]></long-description>
8045
+ <tag line="2047" name="since" description="1.10"/>
8046
+ <tag line="2047" name="param" description="slug, e.g., 'c_file-size' for the 'File Size' field" type="string" variable="$slug">
8047
  <type by_reference="false">string</type>
8048
  </tag>
8049
+ <tag line="2047" name="return" description="option value, e.g., array( 'name' =&gt; 'File Size', ... )" type="array">
8050
  <type by_reference="false">array</type>
8051
  </tag>
8052
  </docblock>
8053
+ <argument line="2056">
8054
  <name>$slug</name>
8055
  <default><![CDATA[]]></default>
8056
  <type/>
8057
  </argument>
8058
  </method>
8059
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2077" package="Media Library Assistant">
8060
  <name>mla_custom_field_support</name>
8061
  <full_name>mla_custom_field_support</full_name>
8062
+ <docblock line="2068">
8063
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
8064
  <long-description><![CDATA[]]></long-description>
8065
+ <tag line="2068" name="since" description="1.10"/>
8066
+ <tag line="2068" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
8067
  <type by_reference="false">string</type>
8068
  </tag>
8069
+ <tag line="2068" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
8070
  <type by_reference="false">array</type>
8071
  </tag>
8072
  </docblock>
8073
+ <argument line="2077">
8074
  <name>$support_type</name>
8075
  <default><![CDATA['default_columns']]></default>
8076
  <type/>
8077
  </argument>
8078
  </method>
8079
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2129" package="Media Library Assistant">
8080
  <name>_evaluate_file_information</name>
8081
  <full_name>_evaluate_file_information</full_name>
8082
+ <docblock line="2117">
8083
  <description><![CDATA[Evaluate file information for custom field mapping]]></description>
8084
  <long-description><![CDATA[]]></long-description>
8085
+ <tag line="2117" name="since" description="1.10"/>
8086
+ <tag line="2117" name="param" description="absolute path the the uploads base directory" type="string" variable="$upload_dir">
8087
  <type by_reference="false">string</type>
8088
  </tag>
8089
+ <tag line="2117" name="param" description="_wp_attached_file meta_value array, indexed by post_id" type="array" variable="$wp_attached_files">
8090
  <type by_reference="false">array</type>
8091
  </tag>
8092
+ <tag line="2117" name="param" description="_wp_attachment_metadata meta_value array, indexed by post_id" type="array" variable="$wp_attachment_metadata">
8093
  <type by_reference="false">array</type>
8094
  </tag>
8095
+ <tag line="2117" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
8096
  <type by_reference="false">integer</type>
8097
  </tag>
8098
+ <tag line="2117" 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">
8099
  <type by_reference="false">array</type>
8100
  </tag>
8101
  </docblock>
8102
+ <argument line="2129">
8103
  <name>$upload_dir</name>
8104
  <default><![CDATA[]]></default>
8105
  <type/>
8106
  </argument>
8107
+ <argument line="2129">
8108
  <name>$wp_attached_files</name>
8109
  <default><![CDATA[]]></default>
8110
  <type/>
8111
  </argument>
8112
+ <argument line="2129">
8113
  <name>$wp_attachment_metadata</name>
8114
  <default><![CDATA[]]></default>
8115
  <type/>
8116
  </argument>
8117
+ <argument line="2129">
8118
  <name>$post_id</name>
8119
  <default><![CDATA[]]></default>
8120
  <type/>
8121
  </argument>
8122
  </method>
8123
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2215" package="Media Library Assistant">
8124
  <name>_evaluate_post_information</name>
8125
  <full_name>_evaluate_post_information</full_name>
8126
+ <docblock line="2204">
8127
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
8128
  <long-description><![CDATA[]]></long-description>
8129
+ <tag line="2204" name="since" description="1.40"/>
8130
+ <tag line="2204" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
8131
  <type by_reference="false">integer</type>
8132
  </tag>
8133
+ <tag line="2204" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
8134
  <type by_reference="false">string</type>
8135
  </tag>
8136
+ <tag line="2204" name="param" description="data source name ( post_date or post_parent )" type="string" variable="$data_source">
8137
  <type by_reference="false">string</type>
8138
  </tag>
8139
+ <tag line="2204" name="return" description="'post_date' =&gt; (string) upload date, 'post_parent' =&gt; (integer) ID of parent or zero )" type="mixed">
8140
  <type by_reference="false">mixed</type>
8141
  </tag>
8142
  </docblock>
8143
+ <argument line="2215">
8144
  <name>$post_id</name>
8145
  <default><![CDATA[]]></default>
8146
  <type/>
8147
  </argument>
8148
+ <argument line="2215">
8149
  <name>$category</name>
8150
  <default><![CDATA[]]></default>
8151
  <type/>
8152
  </argument>
8153
+ <argument line="2215">
8154
  <name>$data_source</name>
8155
  <default><![CDATA[]]></default>
8156
  <type/>
8157
  </argument>
8158
  </method>
8159
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2271" package="Media Library Assistant">
8160
  <name>_evaluate_array_result</name>
8161
  <full_name>_evaluate_array_result</full_name>
8162
+ <docblock line="2260">
8163
  <description><![CDATA[Evaluate post information for custom field mapping]]></description>
8164
  <long-description><![CDATA[]]></long-description>
8165
+ <tag line="2260" name="since" description="1.40"/>
8166
+ <tag line="2260" name="param" description="field value(s)" type="array" variable="$value">
8167
  <type by_reference="false">array</type>
8168
  </tag>
8169
+ <tag line="2260" name="param" description="format option text|single|export|array|multi" type="string" variable="$option">
8170
  <type by_reference="false">string</type>
8171
  </tag>
8172
+ <tag line="2260" name="param" description="keep existing value(s) - for 'multi' option" type="boolean" variable="$keep_existing">
8173
  <type by_reference="false">boolean</type>
8174
  </tag>
8175
+ <tag line="2260" name="return" description="array for option = array|multi else string" type="mixed">
8176
  <type by_reference="false">mixed</type>
8177
  </tag>
8178
  </docblock>
8179
+ <argument line="2271">
8180
  <name>$value</name>
8181
  <default><![CDATA[]]></default>
8182
  <type/>
8183
  </argument>
8184
+ <argument line="2271">
8185
  <name>$option</name>
8186
  <default><![CDATA[]]></default>
8187
  <type/>
8188
  </argument>
8189
+ <argument line="2271">
8190
  <name>$keep_existing</name>
8191
  <default><![CDATA[]]></default>
8192
  <type/>
8193
  </argument>
8194
  </method>
8195
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2311" package="Media Library Assistant">
8196
  <name>mla_get_data_source</name>
8197
  <full_name>mla_get_data_source</full_name>
8198
+ <docblock line="2296">
8199
  <description><![CDATA[Get IPTC/EXIF or custom field mapping data source]]></description>
8200
  <long-description><![CDATA[<p>Defined as public so MLA Mapping Hooks clients can call it.
8201
  Isolates clients from changes to _evaluate_data_source().</p>]]></long-description>
8202
+ <tag line="2296" name="since" description="1.70"/>
8203
+ <tag line="2296" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
8204
  <type by_reference="false">integer</type>
8205
  </tag>
8206
+ <tag line="2296" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
8207
  <type by_reference="false">string</type>
8208
  </tag>
8209
+ <tag line="2296" 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">
8210
  <type by_reference="false">array</type>
8211
  </tag>
8212
+ <tag line="2296" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
8213
  <type by_reference="false">array</type>
8214
  </tag>
8215
+ <tag line="2296" name="return" description="data source value" type="string|array">
8216
  <type by_reference="false">string</type>
8217
  <type by_reference="false">array</type>
8218
  </tag>
8219
  </docblock>
8220
+ <argument line="2311">
8221
  <name>$post_id</name>
8222
  <default><![CDATA[]]></default>
8223
  <type/>
8224
  </argument>
8225
+ <argument line="2311">
8226
  <name>$category</name>
8227
  <default><![CDATA[]]></default>
8228
  <type/>
8229
  </argument>
8230
+ <argument line="2311">
8231
  <name>$data_value</name>
8232
  <default><![CDATA[]]></default>
8233
  <type/>
8234
  </argument>
8235
+ <argument line="2311">
8236
  <name>$attachment_metadata</name>
8237
  <default><![CDATA[NULL]]></default>
8238
  <type/>
8239
  </argument>
8240
  </method>
8241
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2336" package="Media Library Assistant">
8242
  <name>mla_is_data_source</name>
8243
  <full_name>mla_is_data_source</full_name>
8244
+ <docblock line="2324">
8245
  <description><![CDATA[Identify custom field mapping data source]]></description>
8246
  <long-description><![CDATA[<p>Determines whether a name matches any of the element-level data source dropdown options, i.e.,
8247
  excludes "template:" and "meta:" values.</p>]]></long-description>
8248
+ <tag line="2324" name="since" description="1.80"/>
8249
+ <tag line="2324" name="param" description="candidate data source name" type="string" variable="$candidate_name">
8250
  <type by_reference="false">string</type>
8251
  </tag>
8252
+ <tag line="2324" name="return" description="true if candidate name matches a data source" type="boolean">
8253
  <type by_reference="false">boolean</type>
8254
  </tag>
8255
  </docblock>
8256
+ <argument line="2336">
8257
  <name>$candidate_name</name>
8258
  <default><![CDATA[]]></default>
8259
  <type/>
8260
  </argument>
8261
  </method>
8262
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2371" package="Media Library Assistant">
8263
  <name>_evaluate_data_source</name>
8264
  <full_name>_evaluate_data_source</full_name>
8265
+ <docblock line="2359">
8266
  <description><![CDATA[Evaluate custom field mapping data source]]></description>
8267
  <long-description><![CDATA[]]></long-description>
8268
+ <tag line="2359" name="since" description="1.10"/>
8269
+ <tag line="2359" name="param" description="post-&gt;ID of attachment" type="integer" variable="$post_id">
8270
  <type by_reference="false">integer</type>
8271
  </tag>
8272
+ <tag line="2359" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
8273
  <type by_reference="false">string</type>
8274
  </tag>
8275
+ <tag line="2359" 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">
8276
  <type by_reference="false">array</type>
8277
  </tag>
8278
+ <tag line="2359" name="param" description="(optional) _wp_attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
8279
  <type by_reference="false">array</type>
8280
  </tag>
8281
+ <tag line="2359" name="return" description="data source value" type="string|array">
8282
  <type by_reference="false">string</type>
8283
  <type by_reference="false">array</type>
8284
  </tag>
8285
  </docblock>
8286
+ <argument line="2371">
8287
  <name>$post_id</name>
8288
  <default><![CDATA[]]></default>
8289
  <type/>
8290
  </argument>
8291
+ <argument line="2371">
8292
  <name>$category</name>
8293
  <default><![CDATA[]]></default>
8294
  <type/>
8295
  </argument>
8296
+ <argument line="2371">
8297
  <name>$data_value</name>
8298
  <default><![CDATA[]]></default>
8299
  <type/>
8300
  </argument>
8301
+ <argument line="2371">
8302
  <name>$attachment_metadata</name>
8303
  <default><![CDATA[NULL]]></default>
8304
  <type/>
8305
  </argument>
8306
  </method>
8307
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2802" package="Media Library Assistant">
8308
  <name>mla_evaluate_custom_field_mapping</name>
8309
  <full_name>mla_evaluate_custom_field_mapping</full_name>
8310
+ <docblock line="2790">
8311
  <description><![CDATA[Evaluate custom field mapping updates for a post]]></description>
8312
  <long-description><![CDATA[]]></long-description>
8313
+ <tag line="2790" name="since" description="1.10"/>
8314
+ <tag line="2790" name="param" description="post ID to be evaluated" type="integer" variable="$post_id">
8315
  <type by_reference="false">integer</type>
8316
  </tag>
8317
+ <tag line="2790" name="param" description="category/scope to evaluate against: custom_field_mapping or single_attachment_mapping" type="string" variable="$category">
8318
  <type by_reference="false">string</type>
8319
  </tag>
8320
+ <tag line="2790" name="param" description="(optional) custom_field_mapping values, default NULL (use current option value)" type="array" variable="$settings">
8321
  <type by_reference="false">array</type>
8322
  </tag>
8323
+ <tag line="2790" name="param" description="(optional) attachment_metadata, default NULL (use current postmeta database value)" type="array" variable="$attachment_metadata">
8324
  <type by_reference="false">array</type>
8325
  </tag>
8326
+ <tag line="2790" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
8327
  <type by_reference="false">array</type>
8328
  </tag>
8329
  </docblock>
8330
+ <argument line="2802">
8331
  <name>$post_id</name>
8332
  <default><![CDATA[]]></default>
8333
  <type/>
8334
  </argument>
8335
+ <argument line="2802">
8336
  <name>$category</name>
8337
  <default><![CDATA[]]></default>
8338
  <type/>
8339
  </argument>
8340
+ <argument line="2802">
8341
  <name>$settings</name>
8342
  <default><![CDATA[NULL]]></default>
8343
  <type/>
8344
  </argument>
8345
+ <argument line="2802">
8346
  <name>$attachment_metadata</name>
8347
  <default><![CDATA[NULL]]></default>
8348
  <type/>
8349
  </argument>
8350
  </method>
8351
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2901" package="Media Library Assistant">
8352
  <name>_compose_custom_field_option_list</name>
8353
  <full_name>_compose_custom_field_option_list</full_name>
8354
+ <docblock line="2890">
8355
  <description><![CDATA[Compose a Custom Field Options list with current selection]]></description>
8356
  <long-description><![CDATA[]]></long-description>
8357
+ <tag line="2890" name="since" description="1.10"/>
8358
+ <tag line="2890" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8359
+ <tag line="2890" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
8360
  <type by_reference="false">string</type>
8361
  </tag>
8362
+ <tag line="2890" name="param" description="optional list of terms to exclude from the list" type="array" variable="$blacklist">
8363
  <type by_reference="false">array</type>
8364
  </tag>
8365
+ <tag line="2890" name="return" description="HTML markup with select field options" type="string">
8366
  <type by_reference="false">string</type>
8367
  </tag>
8368
  </docblock>
8369
+ <argument line="2901">
8370
  <name>$selection</name>
8371
  <default><![CDATA['none']]></default>
8372
  <type/>
8373
  </argument>
8374
+ <argument line="2901">
8375
  <name>$blacklist</name>
8376
  <default><![CDATA[array()]]></default>
8377
  <type/>
8378
  </argument>
8379
  </method>
8380
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3020" package="Media Library Assistant">
8381
  <name>_compose_data_source_option_list</name>
8382
  <full_name>_compose_data_source_option_list</full_name>
8383
+ <docblock line="3010">
8384
  <description><![CDATA[Compose a (Custom Field) Data Source Options list with current selection]]></description>
8385
  <long-description><![CDATA[]]></long-description>
8386
+ <tag line="3010" name="since" description="1.10"/>
8387
+ <tag line="3010" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8388
+ <tag line="3010" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
8389
  <type by_reference="false">string</type>
8390
  </tag>
8391
+ <tag line="3010" name="return" description="HTML markup with select field options" type="string">
8392
  <type by_reference="false">string</type>
8393
  </tag>
8394
  </docblock>
8395
+ <argument line="3020">
8396
  <name>$selection</name>
8397
  <default><![CDATA['none']]></default>
8398
  <type/>
8399
  </argument>
8400
  </method>
8401
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3084" package="Media Library Assistant">
8402
  <name>_update_custom_field_mapping</name>
8403
  <full_name>_update_custom_field_mapping</full_name>
8404
+ <docblock line="3074">
8405
  <description><![CDATA[Update custom field mappings]]></description>
8406
  <long-description><![CDATA[]]></long-description>
8407
+ <tag line="3074" name="since" description="1.10"/>
8408
+ <tag line="3074" name="param" description="current custom_field_mapping values" type="array" variable="$current_values">
8409
  <type by_reference="false">array</type>
8410
  </tag>
8411
+ <tag line="3074" name="param" description="new values" type="array" variable="$new_values">
8412
  <type by_reference="false">array</type>
8413
  </tag>
8414
+ <tag line="3074" 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">
8415
  <type by_reference="false">array</type>
8416
  </tag>
8417
  </docblock>
8418
+ <argument line="3084">
8419
  <name>$current_values</name>
8420
  <default><![CDATA[]]></default>
8421
  <type/>
8422
  </argument>
8423
+ <argument line="3084">
8424
  <name>$new_values</name>
8425
  <default><![CDATA[]]></default>
8426
  <type/>
8427
  </argument>
8428
  </method>
8429
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3297" package="Media Library Assistant">
8430
  <name>mla_custom_field_option_handler</name>
8431
  <full_name>mla_custom_field_option_handler</full_name>
8432
+ <docblock line="3284">
8433
  <description><![CDATA[Render and manage custom field mapping options]]></description>
8434
  <long-description><![CDATA[]]></long-description>
8435
+ <tag line="3284" name="since" description="1.10"/>
8436
+ <tag line="3284" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8437
+ <tag line="3284" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
8438
  <type by_reference="false">string</type>
8439
  </tag>
8440
+ <tag line="3284" name="param" description="option name, e.g., 'custom_field_mapping'" type="string" variable="$key">
8441
  <type by_reference="false">string</type>
8442
  </tag>
8443
+ <tag line="3284" name="param" description="option parameters" type="array" variable="$value">
8444
  <type by_reference="false">array</type>
8445
  </tag>
8446
+ <tag line="3284" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
8447
  <type by_reference="false">array</type>
8448
  </tag>
8449
+ <tag line="3284" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
8450
  <type by_reference="false">string</type>
8451
  </tag>
8452
  </docblock>
8453
+ <argument line="3297">
8454
  <name>$action</name>
8455
  <default><![CDATA[]]></default>
8456
  <type/>
8457
  </argument>
8458
+ <argument line="3297">
8459
  <name>$key</name>
8460
  <default><![CDATA[]]></default>
8461
  <type/>
8462
  </argument>
8463
+ <argument line="3297">
8464
  <name>$value</name>
8465
  <default><![CDATA[]]></default>
8466
  <type/>
8467
  </argument>
8468
+ <argument line="3297">
8469
  <name>$args</name>
8470
  <default><![CDATA[null]]></default>
8471
  <type/>
8472
  </argument>
8473
  </method>
8474
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3559" package="Media Library Assistant">
8475
  <name>mla_evaluate_iptc_exif_mapping</name>
8476
  <full_name>mla_evaluate_iptc_exif_mapping</full_name>
8477
+ <docblock line="3547">
8478
  <description><![CDATA[Evaluate IPTC/EXIF mapping updates for a post]]></description>
8479
  <long-description><![CDATA[]]></long-description>
8480
+ <tag line="3547" name="since" description="1.00"/>
8481
+ <tag line="3547" name="param" description="post object with current values" type="object" variable="$post">
8482
  <type by_reference="false">object</type>
8483
  </tag>
8484
+ <tag line="3547" name="param" description="category to evaluate against, e.g., iptc_exif_standard_mapping or iptc_exif_mapping" type="string" variable="$category">
8485
  <type by_reference="false">string</type>
8486
  </tag>
8487
+ <tag line="3547" name="param" description="(optional) iptc_exif_mapping values, default - current option value" type="array" variable="$settings">
8488
  <type by_reference="false">array</type>
8489
  </tag>
8490
+ <tag line="3547" name="param" description="(optional) _wp_attachment_metadata, for MLAOptions::mla_update_attachment_metadata_filter" type="array" variable="$attachment_metadata">
8491
  <type by_reference="false">array</type>
8492
  </tag>
8493
+ <tag line="3547" name="return" description="Updates suitable for MLAData::mla_update_single_item, if any" type="array">
8494
  <type by_reference="false">array</type>
8495
  </tag>
8496
  </docblock>
8497
+ <argument line="3559">
8498
  <name>$post</name>
8499
  <default><![CDATA[]]></default>
8500
  <type/>
8501
  </argument>
8502
+ <argument line="3559">
8503
  <name>$category</name>
8504
  <default><![CDATA[]]></default>
8505
  <type/>
8506
  </argument>
8507
+ <argument line="3559">
8508
  <name>$settings</name>
8509
  <default><![CDATA[NULL]]></default>
8510
  <type/>
8511
  </argument>
8512
+ <argument line="3559">
8513
  <name>$attachment_metadata</name>
8514
  <default><![CDATA[NULL]]></default>
8515
  <type/>
8516
  </argument>
8517
  </method>
8518
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3886" package="Media Library Assistant">
8519
  <name>_compose_iptc_option_list</name>
8520
  <full_name>_compose_iptc_option_list</full_name>
8521
+ <docblock line="3876">
8522
  <description><![CDATA[Compose an IPTC Options list with current selection]]></description>
8523
  <long-description><![CDATA[]]></long-description>
8524
+ <tag line="3876" name="since" description="1.00"/>
8525
+ <tag line="3876" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8526
+ <tag line="3876" name="param" description="current selection or 'none' (default)" type="string" variable="$selection">
8527
  <type by_reference="false">string</type>
8528
  </tag>
8529
+ <tag line="3876" name="return" description="HTML markup with select field options" type="string">
8530
  <type by_reference="false">string</type>
8531
  </tag>
8532
  </docblock>
8533
+ <argument line="3886">
8534
  <name>$selection</name>
8535
  <default><![CDATA['none']]></default>
8536
  <type/>
8537
  </argument>
8538
  </method>
8539
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3919" package="Media Library Assistant">
8540
  <name>_compose_parent_option_list</name>
8541
  <full_name>_compose_parent_option_list</full_name>
8542
+ <docblock line="3908">
8543
  <description><![CDATA[Compose an hierarchical taxonomy Parent options list with current selection]]></description>
8544
  <long-description><![CDATA[]]></long-description>
8545
+ <tag line="3908" name="since" description="1.00"/>
8546
+ <tag line="3908" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8547
+ <tag line="3908" name="param" description="taxonomy slug" type="string" variable="$taxonomy">
8548
  <type by_reference="false">string</type>
8549
  </tag>
8550
+ <tag line="3908" name="param" description="current selection or 0 (zero, default)" type="integer" variable="$selection">
8551
  <type by_reference="false">integer</type>
8552
  </tag>
8553
+ <tag line="3908" name="return" description="HTML markup with select field options" type="string">
8554
  <type by_reference="false">string</type>
8555
  </tag>
8556
  </docblock>
8557
+ <argument line="3919">
8558
  <name>$taxonomy</name>
8559
  <default><![CDATA[]]></default>
8560
  <type/>
8561
  </argument>
8562
+ <argument line="3919">
8563
  <name>$selection</name>
8564
  <default><![CDATA[0]]></default>
8565
  <type/>
8566
  </argument>
8567
  </method>
8568
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3965" package="Media Library Assistant">
8569
  <name>_update_iptc_exif_standard_mapping</name>
8570
  <full_name>_update_iptc_exif_standard_mapping</full_name>
8571
+ <docblock line="3955">
8572
  <description><![CDATA[Update Standard field portion of IPTC/EXIF mappings]]></description>
8573
  <long-description><![CDATA[]]></long-description>
8574
+ <tag line="3955" name="since" description="1.00"/>
8575
+ <tag line="3955" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
8576
  <type by_reference="false">array</type>
8577
  </tag>
8578
+ <tag line="3955" name="param" description="new values" type="array" variable="$new_values">
8579
  <type by_reference="false">array</type>
8580
  </tag>
8581
+ <tag line="3955" 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">
8582
  <type by_reference="false">array</type>
8583
  </tag>
8584
  </docblock>
8585
+ <argument line="3965">
8586
  <name>$current_values</name>
8587
  <default><![CDATA[]]></default>
8588
  <type/>
8589
  </argument>
8590
+ <argument line="3965">
8591
  <name>$new_values</name>
8592
  <default><![CDATA[]]></default>
8593
  <type/>
8594
  </argument>
8595
  </method>
8596
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4058" package="Media Library Assistant">
8597
  <name>_update_iptc_exif_taxonomy_mapping</name>
8598
  <full_name>_update_iptc_exif_taxonomy_mapping</full_name>
8599
+ <docblock line="4048">
8600
  <description><![CDATA[Update Taxonomy term portion of IPTC/EXIF mappings]]></description>
8601
  <long-description><![CDATA[]]></long-description>
8602
+ <tag line="4048" name="since" description="1.00"/>
8603
+ <tag line="4048" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
8604
  <type by_reference="false">array</type>
8605
  </tag>
8606
+ <tag line="4048" name="param" description="new values" type="array" variable="$new_values">
8607
  <type by_reference="false">array</type>
8608
  </tag>
8609
+ <tag line="4048" 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">
8610
  <type by_reference="false">array</type>
8611
  </tag>
8612
  </docblock>
8613
+ <argument line="4058">
8614
  <name>$current_values</name>
8615
  <default><![CDATA[]]></default>
8616
  <type/>
8617
  </argument>
8618
+ <argument line="4058">
8619
  <name>$new_values</name>
8620
  <default><![CDATA[]]></default>
8621
  <type/>
8622
  </argument>
8623
  </method>
8624
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4173" package="Media Library Assistant">
8625
  <name>_update_iptc_exif_custom_mapping</name>
8626
  <full_name>_update_iptc_exif_custom_mapping</full_name>
8627
+ <docblock line="4163">
8628
  <description><![CDATA[Update Custom field portion of IPTC/EXIF mappings]]></description>
8629
  <long-description><![CDATA[]]></long-description>
8630
+ <tag line="4163" name="since" description="1.00"/>
8631
+ <tag line="4163" name="param" description="current iptc_exif_mapping values" type="array" variable="$current_values">
8632
  <type by_reference="false">array</type>
8633
  </tag>
8634
+ <tag line="4163" name="param" description="new values" type="array" variable="$new_values">
8635
  <type by_reference="false">array</type>
8636
  </tag>
8637
+ <tag line="4163" 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">
8638
  <type by_reference="false">array</type>
8639
  </tag>
8640
  </docblock>
8641
+ <argument line="4173">
8642
  <name>$current_values</name>
8643
  <default><![CDATA[]]></default>
8644
  <type/>
8645
  </argument>
8646
+ <argument line="4173">
8647
  <name>$new_values</name>
8648
  <default><![CDATA[]]></default>
8649
  <type/>
8650
  </argument>
8651
  </method>
8652
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="4303" package="Media Library Assistant">
8653
  <name>_get_custom_field_names</name>
8654
  <full_name>_get_custom_field_names</full_name>
8655
+ <docblock line="4293">
8656
  <description><![CDATA[Generate a list of all (post) Custom Field names]]></description>
8657
  <long-description><![CDATA[<p>The list will include any Custom Field and IPTC/EXIF rules that
8658
  haven't been mapped to any attachments, yet.</p>]]></long-description>
8659
+ <tag line="4293" name="since" description="1.00"/>
8660
+ <tag line="4293" name="return" description="Custom field names from the postmeta table and MLA rules" type="array">
8661
  <type by_reference="false">array</type>
8662
  </tag>
8663
  </docblock>
8664
  </method>
8665
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="4349" package="Media Library Assistant">
8666
  <name>mla_iptc_exif_option_handler</name>
8667
  <full_name>mla_iptc_exif_option_handler</full_name>
8668
+ <docblock line="4336">
8669
  <description><![CDATA[Render and manage iptc/exif support options]]></description>
8670
  <long-description><![CDATA[]]></long-description>
8671
+ <tag line="4336" name="since" description="1.00"/>
8672
+ <tag line="4336" name="uses" description="\global\$mla_option_templates" refers="\global\$mla_option_templates"/>
8673
+ <tag line="4336" name="param" description="'render', 'update', 'delete', or 'reset'" type="string" variable="$action">
8674
  <type by_reference="false">string</type>
8675
  </tag>
8676
+ <tag line="4336" name="param" description="option name, e.g., 'iptc_exif_mapping'" type="string" variable="$key">
8677
  <type by_reference="false">string</type>
8678
  </tag>
8679
+ <tag line="4336" name="param" description="option parameters" type="array" variable="$value">
8680
  <type by_reference="false">array</type>
8681
  </tag>
8682
+ <tag line="4336" name="param" description="Optional. null (default) for 'render' else option data, e.g., $_REQUEST" type="array" variable="$args">
8683
  <type by_reference="false">array</type>
8684
  </tag>
8685
+ <tag line="4336" name="return" description="HTML table row markup for 'render' else message(s) reflecting the results of the operation." type="string">
8686
  <type by_reference="false">string</type>
8687
  </tag>
8688
  </docblock>
8689
+ <argument line="4349">
8690
  <name>$action</name>
8691
  <default><![CDATA[]]></default>
8692
  <type/>
8693
  </argument>
8694
+ <argument line="4349">
8695
  <name>$key</name>
8696
  <default><![CDATA[]]></default>
8697
  <type/>
8698
  </argument>
8699
+ <argument line="4349">
8700
  <name>$value</name>
8701
  <default><![CDATA[]]></default>
8702
  <type/>
8703
  </argument>
8704
+ <argument line="4349">
8705
  <name>$args</name>
8706
  <default><![CDATA[null]]></default>
8707
  <type/>
8709
  </method>
8710
  </class>
8711
  </file>
8712
+ <file path="includes\class-mla-settings.php" hash="e7abbe15494a0c360d0ef7c88de8515c" package="Media Library Assistant">
8713
  <docblock line="2">
8714
  <description><![CDATA[Manages the settings page to edit the plugin option settings]]></description>
8715
  <long-description><![CDATA[]]></long-description>
8757
  <full_name>JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG</full_name>
8758
  <value><![CDATA['mla-inline-edit-upload-scripts']]></value>
8759
  <docblock line="34">
8760
+ <description><![CDATA[Slug for localizing and enqueueing JavaScript - MLA Upload List Table]]></description>
8761
  <long-description><![CDATA[]]></long-description>
8762
  <tag line="34" name="since" description="1.40"/>
8763
  <tag line="34" name="var" description="" type="string">
8770
  <full_name>JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT</full_name>
8771
  <value><![CDATA['mla_inline_edit_upload_vars']]></value>
8772
  <docblock line="43">
8773
+ <description><![CDATA[Object name for localizing JavaScript - MLA Upload List Table]]></description>
8774
  <long-description><![CDATA[]]></long-description>
8775
  <tag line="43" name="since" description="1.40"/>
8776
  <tag line="43" name="var" description="" type="string">
8779
  </docblock>
8780
  </constant>
8781
  <constant namespace="global" line="59" package="Media Library Assistant">
8782
+ <name>JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG</name>
8783
+ <full_name>JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG</full_name>
8784
+ <value><![CDATA['mla-inline-mapping-custom-scripts']]></value>
8785
+ <docblock line="52">
8786
+ <description><![CDATA[Slug for localizing and enqueueing JavaScript - MLA Custom tab]]></description>
8787
+ <long-description><![CDATA[]]></long-description>
8788
+ <tag line="52" name="since" description="2.00"/>
8789
+ <tag line="52" name="var" description="" type="string">
8790
+ <type by_reference="false">string</type>
8791
+ </tag>
8792
+ </docblock>
8793
+ </constant>
8794
+ <constant namespace="global" line="68" package="Media Library Assistant">
8795
+ <name>JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG</name>
8796
+ <full_name>JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG</full_name>
8797
+ <value><![CDATA['mla-inline-mapping-iptc-exif-scripts']]></value>
8798
+ <docblock line="61">
8799
+ <description><![CDATA[Slug for localizing and enqueueing JavaScript - MLA IPTC/EXIF tab]]></description>
8800
+ <long-description><![CDATA[]]></long-description>
8801
+ <tag line="61" name="since" description="2.00"/>
8802
+ <tag line="61" name="var" description="" type="string">
8803
+ <type by_reference="false">string</type>
8804
+ </tag>
8805
+ </docblock>
8806
+ </constant>
8807
+ <constant namespace="global" line="77" package="Media Library Assistant">
8808
+ <name>JAVASCRIPT_INLINE_MAPPING_OBJECT</name>
8809
+ <full_name>JAVASCRIPT_INLINE_MAPPING_OBJECT</full_name>
8810
+ <value><![CDATA['mla_inline_mapping_vars']]></value>
8811
+ <docblock line="70">
8812
+ <description><![CDATA[Object name for localizing JavaScript - MLA Custom and IPTC/EXIF tabs]]></description>
8813
+ <long-description><![CDATA[]]></long-description>
8814
+ <tag line="70" name="since" description="2.00"/>
8815
+ <tag line="70" name="var" description="" type="string">
8816
+ <type by_reference="false">string</type>
8817
+ </tag>
8818
+ </docblock>
8819
+ </constant>
8820
+ <constant namespace="global" line="86" package="Media Library Assistant">
8821
  <name>MLA_SETTINGS_SLUG</name>
8822
  <full_name>MLA_SETTINGS_SLUG</full_name>
8823
  <value><![CDATA['mla-settings-menu']]></value>
8824
+ <docblock line="79">
8825
  <description><![CDATA[Provides a unique name for the settings page]]></description>
8826
  <long-description><![CDATA[]]></long-description>
8827
+ <tag line="79" name="since" description="0.1"/>
8828
+ <tag line="79" name="var" description="" type="string">
8829
  <type by_reference="false">string</type>
8830
  </tag>
8831
  </docblock>
8832
  </constant>
8833
+ <property final="false" static="true" visibility="private" line="95" namespace="global" package="Media Library Assistant">
8834
  <name>$current_page_hook</name>
8835
  <default><![CDATA['']]></default>
8836
+ <docblock line="88">
8837
  <description><![CDATA[Holds screen id to match help text to corresponding screen]]></description>
8838
  <long-description><![CDATA[]]></long-description>
8839
+ <tag line="88" name="since" description="1.40"/>
8840
+ <tag line="88" name="var" description="" type="array">
8841
  <type by_reference="false">array</type>
8842
  </tag>
8843
  </docblock>
8844
  </property>
8845
+ <property final="false" static="true" visibility="public" line="1183" namespace="global" package="Media Library Assistant">
8846
  <name>$page_template_array</name>
8847
  <default><![CDATA[null]]></default>
8848
+ <docblock line="1173">
8849
  <description><![CDATA[Template file for the Settings page(s) and parts]]></description>
8850
  <long-description><![CDATA[<p>This array contains all of the template parts for the Settings page(s). The array is built once
8851
  each page load and cached for subsequent use.</p>]]></long-description>
8852
+ <tag line="1173" name="since" description="0.80"/>
8853
+ <tag line="1173" name="var" description="" type="array">
8854
  <type by_reference="false">array</type>
8855
  </tag>
8856
  </docblock>
8857
  </property>
8858
+ <property final="false" static="true" visibility="private" line="1202" namespace="global" package="Media Library Assistant">
8859
  <name>$mla_tablist</name>
8860
  <default><![CDATA[array()]]></default>
8861
+ <docblock line="1185">
8862
  <description><![CDATA[Definitions for Settings page tab ids, titles and handlers
8863
  Each tab is defined by an array with the following elements:]]></description>
8864
  <long-description><![CDATA[<p>array key => HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)</p>
8869
 
8870
  <p>The array must be populated at runtime in MLASettings::mla_localize_tablist(),
8871
  because Localization calls cannot be placed in the "public static" array definition itself.</p>]]></long-description>
8872
+ <tag line="1185" name="since" description="0.80"/>
8873
+ <tag line="1185" name="var" description="" type="array">
8874
  <type by_reference="false">array</type>
8875
  </tag>
8876
  </docblock>
8877
  </property>
8878
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="104" package="Media Library Assistant">
8879
  <name>initialize</name>
8880
  <full_name>initialize</full_name>
8881
+ <docblock line="97">
8882
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
8883
  <long-description><![CDATA[]]></long-description>
8884
+ <tag line="97" name="since" description="0.1"/>
8885
+ <tag line="97" name="return" description="" type="void">
8886
  <type by_reference="false">void</type>
8887
  </tag>
8888
  </docblock>
8889
  </method>
8890
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="121" package="Media Library Assistant">
8891
  <name>_version_upgrade</name>
8892
  <full_name>_version_upgrade</full_name>
8893
+ <docblock line="114">
8894
  <description><![CDATA[Database and option update check, for installing new versions]]></description>
8895
  <long-description><![CDATA[]]></long-description>
8896
+ <tag line="114" name="since" description="0.30"/>
8897
+ <tag line="114" name="return" description="" type="void">
8898
  <type by_reference="false">void</type>
8899
  </tag>
8900
  </docblock>
8901
  </method>
8902
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="244" package="Media Library Assistant">
8903
  <name>mla_activation_hook</name>
8904
  <full_name>mla_activation_hook</full_name>
8905
+ <docblock line="235">
8906
  <description><![CDATA[Perform one-time actions on plugin activation]]></description>
8907
  <long-description><![CDATA[<p>Adds a view to the database to support sorting the listing on 'ALT Text'.</p>]]></long-description>
8908
+ <tag line="235" name="since" description="0.40"/>
8909
+ <tag line="235" name="return" description="" type="void">
8910
  <type by_reference="false">void</type>
8911
  </tag>
8912
  </docblock>
8913
  </method>
8914
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="257" package="Media Library Assistant">
8915
  <name>mla_deactivation_hook</name>
8916
  <full_name>mla_deactivation_hook</full_name>
8917
+ <docblock line="248">
8918
  <description><![CDATA[Perform one-time actions on plugin deactivation]]></description>
8919
  <long-description><![CDATA[<p>Removes (if present) a view from the database that supports sorting the listing on 'ALT Text'.</p>]]></long-description>
8920
+ <tag line="248" name="since" description="0.40"/>
8921
+ <tag line="248" name="return" description="" type="void">
8922
  <type by_reference="false">void</type>
8923
  </tag>
8924
  </docblock>
8925
  </method>
8926
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="304" package="Media Library Assistant">
8927
  <name>mla_admin_init_action</name>
8928
  <full_name>mla_admin_init_action</full_name>
8929
+ <docblock line="297">
8930
  <description><![CDATA[Load the plugin's Ajax handler]]></description>
8931
  <long-description><![CDATA[]]></long-description>
8932
+ <tag line="297" name="since" description="1.40"/>
8933
+ <tag line="297" name="return" description="" type="void">
8934
  <type by_reference="false">void</type>
8935
  </tag>
8936
  </docblock>
8937
  </method>
8938
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="320" package="Media Library Assistant">
8939
  <name>mla_admin_enqueue_scripts_action</name>
8940
  <full_name>mla_admin_enqueue_scripts_action</full_name>
8941
+ <docblock line="311">
8942
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
8943
  <long-description><![CDATA[]]></long-description>
8944
+ <tag line="311" name="since" description="1.40"/>
8945
+ <tag line="311" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
8946
  <type by_reference="false">string</type>
8947
  </tag>
8948
+ <tag line="311" name="return" description="" type="void">
8949
  <type by_reference="false">void</type>
8950
  </tag>
8951
  </docblock>
8952
+ <argument line="320">
8953
  <name>$page_hook</name>
8954
  <default><![CDATA[]]></default>
8955
  <type/>
8956
  </argument>
8957
  </method>
8958
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="427" package="Media Library Assistant">
8959
  <name>mla_admin_menu_action</name>
8960
  <full_name>mla_admin_menu_action</full_name>
8961
+ <docblock line="418">
8962
  <description><![CDATA[Add settings page in the "Settings" section,
8963
  add screen options and help tabs,
8964
  add settings link in the Plugins section entry for MLA.]]></description>
8965
  <long-description><![CDATA[]]></long-description>
8966
+ <tag line="418" name="since" description="0.1"/>
8967
+ <tag line="418" name="return" description="" type="void">
8968
  <type by_reference="false">void</type>
8969
  </tag>
8970
  </docblock>
8971
  </method>
8972
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="453" package="Media Library Assistant">
8973
  <name>mla_add_menu_options_action</name>
8974
  <full_name>mla_add_menu_options_action</full_name>
8975
+ <docblock line="446">
8976
  <description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
8977
  <long-description><![CDATA[]]></long-description>
8978
+ <tag line="446" name="since" description="1.40"/>
8979
+ <tag line="446" name="return" description="" type="void">
8980
  <type by_reference="false">void</type>
8981
  </tag>
8982
  </docblock>
8983
  </method>
8984
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="498" package="Media Library Assistant">
8985
  <name>mla_add_help_tab_action</name>
8986
  <full_name>mla_add_help_tab_action</full_name>
8987
+ <docblock line="491">
8988
  <description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
8989
  <long-description><![CDATA[]]></long-description>
8990
+ <tag line="491" name="since" description="1.40"/>
8991
+ <tag line="491" name="return" description="" type="void">
8992
  <type by_reference="false">void</type>
8993
  </tag>
8994
  </docblock>
8995
  </method>
8996
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="573" package="Media Library Assistant">
8997
  <name>mla_screen_options_show_screen_filter</name>
8998
  <full_name>mla_screen_options_show_screen_filter</full_name>
8999
+ <docblock line="563">
9000
  <description><![CDATA[Only show screen options on the View and Upload tabs]]></description>
9001
  <long-description><![CDATA[]]></long-description>
9002
+ <tag line="563" name="since" description="1.40"/>
9003
+ <tag line="563" name="param" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean" variable="$show_screen">
9004
  <type by_reference="false">boolean</type>
9005
  </tag>
9006
+ <tag line="563" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
9007
  <type by_reference="false">string</type>
9008
  </tag>
9009
+ <tag line="563" name="return" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean">
9010
  <type by_reference="false">boolean</type>
9011
  </tag>
9012
  </docblock>
9013
+ <argument line="573">
9014
  <name>$show_screen</name>
9015
  <default><![CDATA[]]></default>
9016
  <type/>
9017
  </argument>
9018
+ <argument line="573">
9019
  <name>$this_screen</name>
9020
  <default><![CDATA[]]></default>
9021
  <type/>
9022
  </argument>
9023
  </method>
9024
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="594" package="Media Library Assistant">
9025
  <name>mla_set_screen_option_filter</name>
9026
  <full_name>mla_set_screen_option_filter</full_name>
9027
+ <docblock line="583">
9028
  <description><![CDATA[Save the "Views/Uploads per page" option set by this user]]></description>
9029
  <long-description><![CDATA[]]></long-description>
9030
+ <tag line="583" name="since" description="1.40"/>
9031
+ <tag line="583" name="param" description="false or value returned by previous filter" type="mixed" variable="$status">
9032
  <type by_reference="false">mixed</type>
9033
  </tag>
9034
+ <tag line="583" name="param" description="Name of the option being changed" type="string" variable="$option">
9035
  <type by_reference="false">string</type>
9036
  </tag>
9037
+ <tag line="583" name="param" description="New value of the option" type="string" variable="$value">
9038
  <type by_reference="false">string</type>
9039
  </tag>
9040
+ <tag line="583" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
9041
  <type by_reference="false">string</type>
9042
  <type by_reference="false">void</type>
9043
  </tag>
9044
  </docblock>
9045
+ <argument line="594">
9046
  <name>$status</name>
9047
  <default><![CDATA[]]></default>
9048
  <type/>
9049
  </argument>
9050
+ <argument line="594">
9051
  <name>$option</name>
9052
  <default><![CDATA[]]></default>
9053
  <type/>
9054
  </argument>
9055
+ <argument line="594">
9056
  <name>$value</name>
9057
  <default><![CDATA[]]></default>
9058
  <type/>
9059
  </argument>
9060
  </method>
9061
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="611" package="Media Library Assistant">
9062
  <name>mla_inline_edit_view_action</name>
9063
  <full_name>mla_inline_edit_view_action</full_name>
9064
+ <docblock line="602">
9065
  <description><![CDATA[Ajax handler for Post MIME Types inline editing (quick and bulk edit)]]></description>
9066
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
9067
+ <tag line="602" name="since" description="1.40"/>
9068
+ <tag line="602" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
9069
  <type by_reference="false">void</type>
9070
  </tag>
9071
  </docblock>
9072
  </method>
9073
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="654" package="Media Library Assistant">
9074
  <name>mla_inline_edit_upload_action</name>
9075
  <full_name>mla_inline_edit_upload_action</full_name>
9076
+ <docblock line="645">
9077
  <description><![CDATA[Ajax handler for Upload MIME Types inline editing (quick and bulk edit)]]></description>
9078
  <long-description><![CDATA[<p>Adapted from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
9079
+ <tag line="645" name="since" description="1.40"/>
9080
+ <tag line="645" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
9081
+ <type by_reference="false">void</type>
9082
+ </tag>
9083
+ </docblock>
9084
+ </method>
9085
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="691" package="Media Library Assistant">
9086
+ <name>mla_inline_mapping_custom_action</name>
9087
+ <full_name>mla_inline_mapping_custom_action</full_name>
9088
+ <docblock line="684">
9089
+ <description><![CDATA[Ajax handler for Custom Fields tab inline mapping]]></description>
9090
+ <long-description><![CDATA[]]></long-description>
9091
+ <tag line="684" name="since" description="2.00"/>
9092
+ <tag line="684" name="return" description="echo json response object, then die()" type="void">
9093
+ <type by_reference="false">void</type>
9094
+ </tag>
9095
+ </docblock>
9096
+ </method>
9097
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="812" package="Media Library Assistant">
9098
+ <name>mla_inline_mapping_iptc_exif_action</name>
9099
+ <full_name>mla_inline_mapping_iptc_exif_action</full_name>
9100
+ <docblock line="805">
9101
+ <description><![CDATA[Ajax handler for IPTC/EXIF tab inline mapping]]></description>
9102
+ <long-description><![CDATA[]]></long-description>
9103
+ <tag line="805" name="since" description="2.00"/>
9104
+ <tag line="805" name="return" description="echo json response object, then die()" type="void">
9105
  <type by_reference="false">void</type>
9106
  </tag>
9107
  </docblock>
9108
  </method>
9109
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="947" package="Media Library Assistant">
9110
  <name>mla_add_plugin_settings_link_filter</name>
9111
  <full_name>mla_add_plugin_settings_link_filter</full_name>
9112
+ <docblock line="937">
9113
  <description><![CDATA[Add the "Settings" link to the MLA entry in the Plugins section]]></description>
9114
  <long-description><![CDATA[]]></long-description>
9115
+ <tag line="937" name="since" description="0.1"/>
9116
+ <tag line="937" name="param" description="array of links for the Plugin, e.g., &quot;Activate&quot;" type="array" variable="$links">
9117
  <type by_reference="false">array</type>
9118
  </tag>
9119
+ <tag line="937" name="param" description="Directory and name of the plugin Index file" type="string" variable="$file">
9120
  <type by_reference="false">string</type>
9121
  </tag>
9122
+ <tag line="937" name="return" description="Updated array of links for the Plugin" type="array">
9123
  <type by_reference="false">array</type>
9124
  </tag>
9125
  </docblock>
9126
+ <argument line="947">
9127
  <name>$links</name>
9128
  <default><![CDATA[]]></default>
9129
  <type/>
9130
  </argument>
9131
+ <argument line="947">
9132
  <name>$file</name>
9133
  <default><![CDATA[]]></default>
9134
  <type/>
9135
  </argument>
9136
  </method>
9137
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="967" package="Media Library Assistant">
9138
  <name>_update_option_row</name>
9139
  <full_name>_update_option_row</full_name>
9140
+ <docblock line="956">
9141
  <description><![CDATA[Update or delete a single MLA option value]]></description>
9142
  <long-description><![CDATA[]]></long-description>
9143
+ <tag line="956" name="since" description="0.80"/>
9144
+ <tag line="956" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9145
+ <tag line="956" name="param" description="HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)" type="string" variable="$key">
9146
  <type by_reference="false">string</type>
9147
  </tag>
9148
+ <tag line="956" name="param" description="Option parameters, e.g., 'type', 'std'" type="array" variable="$value">
9149
  <type by_reference="false">array</type>
9150
  </tag>
9151
+ <tag line="956" name="return" description="HTML markup for the option's table row" type="string">
9152
  <type by_reference="false">string</type>
9153
  </tag>
9154
  </docblock>
9155
+ <argument line="967">
9156
  <name>$key</name>
9157
  <default><![CDATA[]]></default>
9158
  <type/>
9159
  </argument>
9160
+ <argument line="967">
9161
  <name>$value</name>
9162
  <default><![CDATA[]]></default>
9163
  <type/>
9164
  </argument>
9165
  </method>
9166
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1047" package="Media Library Assistant">
9167
  <name>_compose_option_row</name>
9168
  <full_name>_compose_option_row</full_name>
9169
+ <docblock line="1036">
9170
  <description><![CDATA[Compose the table row for a single MLA option]]></description>
9171
  <long-description><![CDATA[]]></long-description>
9172
+ <tag line="1036" name="since" description="0.80"/>
9173
+ <tag line="1036" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9174
+ <tag line="1036" name="param" description="HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)" type="string" variable="$key">
9175
  <type by_reference="false">string</type>
9176
  </tag>
9177
+ <tag line="1036" name="param" description="Option parameters, e.g., 'type', 'std'" type="array" variable="$value">
9178
  <type by_reference="false">array</type>
9179
  </tag>
9180
+ <tag line="1036" name="return" description="HTML markup for the option's table row" type="string">
9181
  <type by_reference="false">string</type>
9182
  </tag>
9183
  </docblock>
9184
+ <argument line="1047">
9185
  <name>$key</name>
9186
  <default><![CDATA[]]></default>
9187
  <type/>
9188
  </argument>
9189
+ <argument line="1047">
9190
  <name>$value</name>
9191
  <default><![CDATA[]]></default>
9192
  <type/>
9193
  </argument>
9194
  </method>
9195
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1214" package="Media Library Assistant">
9196
  <name>mla_localize_tablist</name>
9197
  <full_name>mla_localize_tablist</full_name>
9198
+ <docblock line="1204">
9199
  <description><![CDATA[Localize $mla_option_definitions array]]></description>
9200
  <long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
9201
  in the "public static" array definition itself.</p>]]></long-description>
9202
+ <tag line="1204" name="since" description="1.70"/>
9203
+ <tag line="1204" name="return" description="" type="void">
9204
  <type by_reference="false">void</type>
9205
  </tag>
9206
  </docblock>
9207
  </method>
9208
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1238" package="Media Library Assistant">
9209
  <name>mla_get_options_tablist</name>
9210
  <full_name>mla_get_options_tablist</full_name>
9211
+ <docblock line="1226">
9212
  <description><![CDATA[Localize $mla_option_definitions array]]></description>
9213
  <long-description><![CDATA[<p>Localization must be done at runtime, and these calls cannot be placed
9214
  in the "public static" array definition itself.</p>]]></long-description>
9215
+ <tag line="1226" name="since" description="1.82"/>
9216
+ <tag line="1226" name="param" description="Tab slug, to retrieve a single entry" type="string" variable="$tab">
9217
  <type by_reference="false">string</type>
9218
  </tag>
9219
+ <tag line="1226" name="return" description="The entire tablist ( $tab = NULL ), a single tab entry or false if not found/not allowed" type="array|false">
9220
  <type by_reference="false">array</type>
9221
  <type by_reference="false">false</type>
9222
  </tag>
9223
  </docblock>
9224
+ <argument line="1238">
9225
  <name>$tab</name>
9226
  <default><![CDATA[NULL]]></default>
9227
  <type/>
9228
  </argument>
9229
  </method>
9230
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1262" package="Media Library Assistant">
9231
  <name>_compose_settings_tabs</name>
9232
  <full_name>_compose_settings_tabs</full_name>
9233
+ <docblock line="1252">
9234
  <description><![CDATA[Compose the navigation tabs for the Settings subpage]]></description>
9235
  <long-description><![CDATA[]]></long-description>
9236
+ <tag line="1252" name="since" description="0.80"/>
9237
+ <tag line="1252" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9238
+ <tag line="1252" name="param" description="Optional data-tab-id value for the active tab, default 'general'" type="string" variable="$active_tab">
9239
  <type by_reference="false">string</type>
9240
  </tag>
9241
+ <tag line="1252" name="return" description="HTML markup for the Settings subpage navigation tabs" type="string">
9242
  <type by_reference="false">string</type>
9243
  </tag>
9244
  </docblock>
9245
+ <argument line="1262">
9246
  <name>$active_tab</name>
9247
  <default><![CDATA['general']]></default>
9248
  <type/>
9249
  </argument>
9250
  </method>
9251
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1288" package="Media Library Assistant">
9252
  <name>_compose_general_tab</name>
9253
  <full_name>_compose_general_tab</full_name>
9254
+ <docblock line="1280">
9255
  <description><![CDATA[Compose the General tab content for the Settings subpage]]></description>
9256
  <long-description><![CDATA[]]></long-description>
9257
+ <tag line="1280" name="since" description="0.80"/>
9258
+ <tag line="1280" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9259
+ <tag line="1280" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9260
  <type by_reference="false">array</type>
9261
  </tag>
9262
  </docblock>
9263
  </method>
9264
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1438" package="Media Library Assistant">
9265
  <name>_current_bulk_action</name>
9266
  <full_name>_current_bulk_action</full_name>
9267
+ <docblock line="1431">
9268
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
9269
  <long-description><![CDATA[]]></long-description>
9270
+ <tag line="1431" name="since" description="1.40"/>
9271
+ <tag line="1431" name="return" description="The action name or False if no action was selected" type="string|false">
9272
  <type by_reference="false">string</type>
9273
  <type by_reference="false">false</type>
9274
  </tag>
9275
  </docblock>
9276
  </method>
9277
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1470" package="Media Library Assistant">
9278
  <name>_compose_edit_view_tab</name>
9279
  <full_name>_compose_edit_view_tab</full_name>
9280
+ <docblock line="1460">
9281
  <description><![CDATA[Compose the Edit View tab content for the Settings subpage]]></description>
9282
  <long-description><![CDATA[]]></long-description>
9283
+ <tag line="1460" name="since" description="1.40"/>
9284
+ <tag line="1460" name="param" description="data values for the item" type="array" variable="$view">
9285
  <type by_reference="false">array</type>
9286
  </tag>
9287
+ <tag line="1460" name="param" description="Display template" type="string" variable="$template">
9288
  <type by_reference="false">string</type>
9289
  </tag>
9290
+ <tag line="1460" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9291
  <type by_reference="false">array</type>
9292
  </tag>
9293
  </docblock>
9294
+ <argument line="1470">
9295
  <name>$view</name>
9296
  <default><![CDATA[]]></default>
9297
  <type/>
9298
  </argument>
9299
+ <argument line="1470">
9300
  <name>$template</name>
9301
  <default><![CDATA[]]></default>
9302
  <type/>
9303
  </argument>
9304
  </method>
9305
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1520" package="Media Library Assistant">
9306
  <name>_compose_view_tab</name>
9307
  <full_name>_compose_view_tab</full_name>
9308
+ <docblock line="1513">
9309
  <description><![CDATA[Compose the Post MIME Type Views tab content for the Settings subpage]]></description>
9310
  <long-description><![CDATA[]]></long-description>
9311
+ <tag line="1513" name="since" description="1.40"/>
9312
+ <tag line="1513" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9313
  <type by_reference="false">array</type>
9314
  </tag>
9315
  </docblock>
9316
  </method>
9317
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1786" package="Media Library Assistant">
9318
  <name>mla_get_icon_type_dropdown</name>
9319
  <full_name>mla_get_icon_type_dropdown</full_name>
9320
+ <docblock line="1775">
9321
  <description><![CDATA[Get an HTML select element representing a list of icon types]]></description>
9322
  <long-description><![CDATA[]]></long-description>
9323
+ <tag line="1775" name="since" description="1.40"/>
9324
+ <tag line="1775" name="param" description="Display template array" type="array" variable="$templates">
9325
  <type by_reference="false">array</type>
9326
  </tag>
9327
+ <tag line="1775" name="param" description="HTML name attribute value" type="string" variable="$name">
9328
  <type by_reference="false">string</type>
9329
  </tag>
9330
+ <tag line="1775" name="param" description="currently selected Icon Type" type="string" variable="$selection">
9331
  <type by_reference="false">string</type>
9332
  </tag>
9333
+ <tag line="1775" name="return" description="HTML select element or empty string on failure." type="string">
9334
  <type by_reference="false">string</type>
9335
  </tag>
9336
  </docblock>
9337
+ <argument line="1786">
9338
  <name>$templates</name>
9339
  <default><![CDATA[]]></default>
9340
  <type/>
9341
  </argument>
9342
+ <argument line="1786">
9343
  <name>$name</name>
9344
  <default><![CDATA[]]></default>
9345
  <type/>
9346
  </argument>
9347
+ <argument line="1786">
9348
  <name>$selection</name>
9349
  <default><![CDATA['.none.']]></default>
9350
  <type/>
9351
  </argument>
9352
  </method>
9353
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1828" package="Media Library Assistant">
9354
  <name>_compose_edit_upload_tab</name>
9355
  <full_name>_compose_edit_upload_tab</full_name>
9356
+ <docblock line="1818">
9357
  <description><![CDATA[Compose the Edit Upload type tab content for the Settings subpage]]></description>
9358
  <long-description><![CDATA[]]></long-description>
9359
+ <tag line="1818" name="since" description="1.40"/>
9360
+ <tag line="1818" name="param" description="data values for the item" type="array" variable="$item">
9361
  <type by_reference="false">array</type>
9362
  </tag>
9363
+ <tag line="1818" name="param" description="Display template array" type="string" variable="$templates">
9364
  <type by_reference="false">string</type>
9365
  </tag>
9366
+ <tag line="1818" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9367
  <type by_reference="false">array</type>
9368
  </tag>
9369
  </docblock>
9370
+ <argument line="1828">
9371
  <name>$item</name>
9372
  <default><![CDATA[]]></default>
9373
  <type/>
9374
  </argument>
9375
+ <argument line="1828">
9376
  <name>$templates</name>
9377
  <default><![CDATA[]]></default>
9378
  <type/>
9379
  </argument>
9380
  </method>
9381
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1875" package="Media Library Assistant">
9382
  <name>_compose_optional_upload_tab</name>
9383
  <full_name>_compose_optional_upload_tab</full_name>
9384
+ <docblock line="1866">
9385
  <description><![CDATA[Compose the Optional File Upload MIME Types tab content for the Settings subpage]]></description>
9386
  <long-description><![CDATA[]]></long-description>
9387
+ <tag line="1866" name="since" description="1.40"/>
9388
+ <tag line="1866" name="param" description="Display templates" type="string" variable="$page_template_array">
9389
  <type by_reference="false">string</type>
9390
  </tag>
9391
+ <tag line="1866" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9392
  <type by_reference="false">array</type>
9393
  </tag>
9394
  </docblock>
9395
+ <argument line="1875">
9396
  <name>$page_template_array</name>
9397
  <default><![CDATA[]]></default>
9398
  <type/>
9399
  </argument>
9400
  </method>
9401
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1945" package="Media Library Assistant">
9402
  <name>_process_optional_upload_mime</name>
9403
  <full_name>_process_optional_upload_mime</full_name>
9404
+ <docblock line="1936">
9405
  <description><![CDATA[Process an Optional Upload MIME Type selection]]></description>
9406
  <long-description><![CDATA[]]></long-description>
9407
+ <tag line="1936" name="since" description="1.40"/>
9408
+ <tag line="1936" name="param" description="MLA Optional Upload MIME Type ID" type="\intger" variable="$ID">
9409
  <type by_reference="false">\intger</type>
9410
  </tag>
9411
+ <tag line="1936" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9412
  <type by_reference="false">array</type>
9413
  </tag>
9414
  </docblock>
9415
+ <argument line="1945">
9416
  <name>$ID</name>
9417
  <default><![CDATA[]]></default>
9418
  <type/>
9419
  </argument>
9420
  </method>
9421
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1965" package="Media Library Assistant">
9422
  <name>_compose_upload_tab</name>
9423
  <full_name>_compose_upload_tab</full_name>
9424
+ <docblock line="1958">
9425
  <description><![CDATA[Compose the File Upload MIME Types tab content for the Settings subpage]]></description>
9426
  <long-description><![CDATA[]]></long-description>
9427
+ <tag line="1958" name="since" description="1.40"/>
9428
+ <tag line="1958" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9429
  <type by_reference="false">array</type>
9430
  </tag>
9431
  </docblock>
9432
  </method>
9433
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2252" package="Media Library Assistant">
9434
  <name>_compose_mla_gallery_tab</name>
9435
  <full_name>_compose_mla_gallery_tab</full_name>
9436
+ <docblock line="2244">
9437
  <description><![CDATA[Compose the MLA Gallery tab content for the Settings subpage]]></description>
9438
  <long-description><![CDATA[]]></long-description>
9439
+ <tag line="2244" name="since" description="0.80"/>
9440
+ <tag line="2244" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9441
+ <tag line="2244" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9442
  <type by_reference="false">array</type>
9443
  </tag>
9444
  </docblock>
9445
  </method>
9446
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2601" package="Media Library Assistant">
9447
  <name>_compose_custom_field_tab</name>
9448
  <full_name>_compose_custom_field_tab</full_name>
9449
+ <docblock line="2593">
9450
  <description><![CDATA[Compose the Custom Field tab content for the Settings subpage]]></description>
9451
  <long-description><![CDATA[]]></long-description>
9452
+ <tag line="2593" name="since" description="1.10"/>
9453
+ <tag line="2593" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9454
+ <tag line="2593" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9455
  <type by_reference="false">array</type>
9456
  </tag>
9457
  </docblock>
9458
  </method>
9459
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2733" package="Media Library Assistant">
9460
  <name>_compose_iptc_exif_tab</name>
9461
  <full_name>_compose_iptc_exif_tab</full_name>
9462
+ <docblock line="2725">
9463
  <description><![CDATA[Compose the IPTC/EXIF tab content for the Settings subpage]]></description>
9464
  <long-description><![CDATA[]]></long-description>
9465
+ <tag line="2725" name="since" description="1.00"/>
9466
+ <tag line="2725" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9467
+ <tag line="2725" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9468
  <type by_reference="false">array</type>
9469
  </tag>
9470
  </docblock>
9471
  </method>
9472
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2866" package="Media Library Assistant">
9473
  <name>_compose_documentation_tab</name>
9474
  <full_name>_compose_documentation_tab</full_name>
9475
+ <docblock line="2858">
9476
  <description><![CDATA[Compose the Documentation tab content for the Settings subpage]]></description>
9477
  <long-description><![CDATA[]]></long-description>
9478
+ <tag line="2858" name="since" description="0.80"/>
9479
+ <tag line="2858" name="uses" description="\global\$page_template_array" refers="\global\$page_template_array"/>
9480
+ <tag line="2858" name="return" description="'message' =&gt; status/error messages, 'body' =&gt; tab content" type="array">
9481
  <type by_reference="false">array</type>
9482
  </tag>
9483
  </docblock>
9484
  </method>
9485
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2886" package="Media Library Assistant">
9486
  <name>mla_render_settings_page</name>
9487
  <full_name>mla_render_settings_page</full_name>
9488
+ <docblock line="2879">
9489
  <description><![CDATA[Render (echo) the "Media Library Assistant" subpage in the Settings section]]></description>
9490
  <long-description><![CDATA[]]></long-description>
9491
+ <tag line="2879" name="since" description="0.1"/>
9492
+ <tag line="2879" name="return" description="Echoes HTML markup for the Settings subpage" type="void">
9493
  <type by_reference="false">void</type>
9494
  </tag>
9495
  </docblock>
9496
  </method>
9497
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2948" package="Media Library Assistant">
9498
  <name>_save_gallery_settings</name>
9499
  <full_name>_save_gallery_settings</full_name>
9500
+ <docblock line="2939">
9501
  <description><![CDATA[Save MLA Gallery settings to the options table]]></description>
9502
  <long-description><![CDATA[]]></long-description>
9503
+ <tag line="2939" name="since" description="0.80"/>
9504
+ <tag line="2939" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9505
+ <tag line="2939" name="return" description="Message(s) reflecting the results of the operation" type="array">
9506
  <type by_reference="false">array</type>
9507
  </tag>
9508
  </docblock>
9509
  </method>
9510
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3215" package="Media Library Assistant">
9511
  <name>_save_view_settings</name>
9512
  <full_name>_save_view_settings</full_name>
9513
+ <docblock line="3206">
9514
  <description><![CDATA[Save View settings to the options table]]></description>
9515
  <long-description><![CDATA[]]></long-description>
9516
+ <tag line="3206" name="since" description="1.40"/>
9517
+ <tag line="3206" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9518
+ <tag line="3206" name="return" description="Message(s) reflecting the results of the operation" type="array">
9519
  <type by_reference="false">array</type>
9520
  </tag>
9521
  </docblock>
9522
  </method>
9523
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3246" package="Media Library Assistant">
9524
  <name>_save_upload_settings</name>
9525
  <full_name>_save_upload_settings</full_name>
9526
+ <docblock line="3237">
9527
  <description><![CDATA[Save Upload settings to the options table]]></description>
9528
  <long-description><![CDATA[]]></long-description>
9529
+ <tag line="3237" name="since" description="1.40"/>
9530
+ <tag line="3237" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9531
+ <tag line="3237" name="return" description="Message(s) reflecting the results of the operation" type="array">
9532
  <type by_reference="false">array</type>
9533
  </tag>
9534
  </docblock>
9535
  </method>
9536
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3284" package="Media Library Assistant">
9537
  <name>_process_custom_field_mapping</name>
9538
  <full_name>_process_custom_field_mapping</full_name>
9539
+ <docblock line="3271">
9540
  <description><![CDATA[Process custom field settings against all image attachments
9541
  without saving the settings to the mla_option]]></description>
9542
  <long-description><![CDATA[]]></long-description>
9543
+ <tag line="3271" name="since" description="1.10"/>
9544
+ <tag line="3271" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9545
+ <tag line="3271" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$settings">
9546
  <type by_reference="false">array</type>
9547
  </tag>
9548
+ <tag line="3271" name="param" description="offset for chunk mapping" type="integer" variable="$offset">
9549
+ <type by_reference="false">integer</type>
9550
+ </tag>
9551
+ <tag line="3271" name="param" description="length for chunk mapping" type="integer" variable="$length">
9552
+ <type by_reference="false">integer</type>
9553
+ </tag>
9554
+ <tag line="3271" name="return" description="Message(s) reflecting the results of the operation" type="array">
9555
  <type by_reference="false">array</type>
9556
  </tag>
9557
  </docblock>
9558
+ <argument line="3284">
9559
  <name>$settings</name>
9560
  <default><![CDATA[NULL]]></default>
9561
  <type/>
9562
  </argument>
9563
+ <argument line="3284">
9564
+ <name>$offset</name>
9565
+ <default><![CDATA[0]]></default>
9566
+ <type/>
9567
+ </argument>
9568
+ <argument line="3284">
9569
+ <name>$length</name>
9570
+ <default><![CDATA[0]]></default>
9571
+ <type/>
9572
+ </argument>
9573
  </method>
9574
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3356" package="Media Library Assistant">
9575
  <name>_delete_custom_field</name>
9576
  <full_name>_delete_custom_field</full_name>
9577
+ <docblock line="3347">
9578
  <description><![CDATA[Delete a custom field from the wp_postmeta table]]></description>
9579
  <long-description><![CDATA[]]></long-description>
9580
+ <tag line="3347" name="since" description="1.10"/>
9581
+ <tag line="3347" name="param" description="specific custom_field_mapping rule" type="array" variable="$value">
9582
  <type by_reference="false">array</type>
9583
  </tag>
9584
+ <tag line="3347" name="return" description="Message(s) reflecting the results of the operation" type="array">
9585
  <type by_reference="false">array</type>
9586
  </tag>
9587
  </docblock>
9588
+ <argument line="3356">
9589
  <name>$value</name>
9590
  <default><![CDATA[]]></default>
9591
  <type/>
9592
  </argument>
9593
  </method>
9594
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3383" package="Media Library Assistant">
9595
  <name>_save_custom_field_settings</name>
9596
  <full_name>_save_custom_field_settings</full_name>
9597
+ <docblock line="3373">
9598
  <description><![CDATA[Save custom field settings to the options table]]></description>
9599
  <long-description><![CDATA[]]></long-description>
9600
+ <tag line="3373" name="since" description="1.10"/>
9601
+ <tag line="3373" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9602
+ <tag line="3373" name="param" description="| NULL specific custom_field_mapping values" type="array" variable="$new_values">
9603
  <type by_reference="false">array</type>
9604
  </tag>
9605
+ <tag line="3373" name="return" description="Message(s) reflecting the results of the operation" type="array">
9606
  <type by_reference="false">array</type>
9607
  </tag>
9608
  </docblock>
9609
+ <argument line="3383">
9610
  <name>$new_values</name>
9611
  <default><![CDATA[NULL]]></default>
9612
  <type/>
9613
  </argument>
9614
  </method>
9615
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3427" package="Media Library Assistant">
9616
  <name>_process_iptc_exif_standard</name>
9617
  <full_name>_process_iptc_exif_standard</full_name>
9618
+ <docblock line="3414">
9619
  <description><![CDATA[Process IPTC/EXIF standard field settings against all image attachments
9620
  without saving the settings to the mla_option]]></description>
9621
  <long-description><![CDATA[]]></long-description>
9622
+ <tag line="3414" name="since" description="1.00"/>
9623
+ <tag line="3414" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9624
+ <tag line="3414" name="param" description="offset for chunk mapping" type="integer" variable="$offset">
9625
+ <type by_reference="false">integer</type>
9626
+ </tag>
9627
+ <tag line="3414" name="param" description="length for chunk mapping" type="integer" variable="$length">
9628
+ <type by_reference="false">integer</type>
9629
+ </tag>
9630
+ <tag line="3414" name="return" description="Message(s) reflecting the results of the operation" type="array">
9631
  <type by_reference="false">array</type>
9632
  </tag>
9633
  </docblock>
9634
+ <argument line="3427">
9635
+ <name>$offset</name>
9636
+ <default><![CDATA[0]]></default>
9637
+ <type/>
9638
+ </argument>
9639
+ <argument line="3427">
9640
+ <name>$length</name>
9641
+ <default><![CDATA[0]]></default>
9642
+ <type/>
9643
+ </argument>
9644
  </method>
9645
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3498" package="Media Library Assistant">
9646
  <name>_process_iptc_exif_taxonomy</name>
9647
  <full_name>_process_iptc_exif_taxonomy</full_name>
9648
+ <docblock line="3485">
9649
  <description><![CDATA[Process IPTC/EXIF taxonomy term settings against all image attachments
9650
  without saving the settings to the mla_option]]></description>
9651
  <long-description><![CDATA[]]></long-description>
9652
+ <tag line="3485" name="since" description="1.00"/>
9653
+ <tag line="3485" name="uses" description="\global\$_REQUEST" refers="\global\$_REQUEST"/>
9654
+ <tag line="3485" name="param" description="offset for chunk mapping" type="integer" variable="$offset">
9655
+ <type by_reference="false">integer</type>
9656
+ </tag>
9657
+ <tag line="3485" name="param" description="length for chunk mapping" type="integer" variable="$length">
9658
+ <type by_reference="false">integer</type>
9659
+ </tag>
9660
+ <tag line="3485" name="return" description="Message(s) reflecting the results of the operation" type="array">
9661
  <type by_reference="false">array</type>
9662
  </tag>
9663
  </docblock>
9664
+ <argument line="3498">
9665
+ <name>$offset</name>
9666
+ <default><![CDATA[0]]></default>
9667
+ <type/>
9668
+ </argument>
9669
+ <argument line="3498">
9670
+ <name>$length</name>
9671
+ <default><![CDATA[0]]></default>
9672
+ <type/>
9673
+ </argument>
9674
  </method>
9675
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3570" package="Media Library Assistant">
9676
  <name>_process_iptc_exif_custom</name>
9677
  <full_name>_process_iptc_exif_custom</full_name>
9678
+ <docblock line="3556">
9679
  <description><![CDATA[Process IPTC/EXIF custom field settings against all image attachments
9680
  without saving the settings to the mla_option]]></description>
9681
  <long-description><![CDATA[]]></long-description>