Media Library Assistant - Version 2.99

Version Description

  • New: On the Media/Add New (Upload New Media) and Media/Assistant screens, MLA Bulk Edit Area values can be saved and recalled for future/repeated use.
  • New: Current date and time values are available as field-level data sources, current_timestamp, current_datetime and current_getdate.
  • New: Library Views based on a custom field query can now include MIME type filters in addition to the custom field query.
  • New: The "MLA Advanced Custom Fields Example" and "MLA Image Source Control Example" plugins have been updated to support the new Bulk Edit Area features.
  • Fix: For the terms: substitution prefix, operation of the field qualifier, e.g., terms:attachment_tag(slug), has been restored.
  • Fix: For the Polylang plugin, some defects in the display of the Media/Assistent country/flags column have been corrected.
  • Fix: To reduce security risks, taxonomy, date and meta queries no longer use the "eval" function to convert parameter values to array variables.
  • Fix: For some forms of the Media Manager Modal (popup) Window, taxonomy "click to toggle" functions have been restored.
  • Fix: For [mla_gallery], mla_nolink_text handling for paginate_links has been restored.
  • Fix: For [mla_gallery] with Real Media Library Pro, the orderby= parameter has been restored.
  • Fix: Version numbers for CSS and JavaScript files now include Development Version date to prevent "stale" stylesheet and script problems.
  • Fix: For the "Smart Media Categories" example plugin, syncing child and parent terms during attachment uploads has been restored.
  • Fix: For the "Smart Media Categories" example plugin, synch status coloring in the Posts/All Posts "Children" table column has been corrected.
  • Fix: For the Settings/Media Library Assistant Views tab, a PHP warning message when canceling an Edit View action has been eliminated.
  • Fix: For the Media/Add New Bulk Edit area and the Media/Assistant Bulk and Quick Edit areas, the taxonomy "Add New Term" function has been repaired.
  • Fix: For [mla_term_list], include_tree and exclude_tree are now evaluated before child_of to improve the results.
  • Fix: For [mla_term_list], named control values are removed from the $_REQUEST array if the value is not present in the current term list.
  • Fix: For [mla_term_list], current_item_class assignments for term_id values have been restored.
  • Fix: For the "MLA Advanced Custom Fields Example" plugin, a PHP warning message during Media/Assistant bulk actions has been eliminated.
Download this release

Release Info

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

Code changes from version 2.98 to 2.99

Files changed (56) hide show
  1. css/mla-add-new-bulk-edit-rtl.css +4 -2
  2. css/mla-add-new-bulk-edit.css +4 -2
  3. examples/plugins/mla-advanced-custom-fields-example/mla-advanced-custom-fields-example.php +23 -13
  4. examples/plugins/mla-image-source-control-example.php +25 -45
  5. examples/plugins/mla-list-table-hooks-example.php +82 -24
  6. examples/plugins/mla-ui-elements-example/mla-ui-elements-example.php +7 -6
  7. examples/plugins/smart-media-categories/admin/class-smart-media-categories-admin.php +1 -1
  8. examples/plugins/smart-media-categories/admin/includes/class-smc-automatic-support.php +4 -1
  9. examples/plugins/smart-media-categories/admin/includes/class-smc-sync-support.php +9 -7
  10. examples/plugins/smart-media-categories/public/class-smart-media-categories.php +1 -1
  11. examples/plugins/smart-media-categories/smart-media-categories.php +10 -1
  12. includes/class-mla-ajax.php +112 -7
  13. includes/class-mla-core-options.php +73 -3
  14. includes/class-mla-core.php +115 -51
  15. includes/class-mla-data-query.php +3 -1
  16. includes/class-mla-data-source.php +49 -0
  17. includes/class-mla-data.php +34 -29
  18. includes/class-mla-edit-media.php +376 -76
  19. includes/class-mla-list-table.php +3 -1
  20. includes/class-mla-main.php +80 -79
  21. includes/class-mla-media-modal.php +8 -8
  22. includes/class-mla-mime-types.php +21 -23
  23. includes/class-mla-polylang-support.php +54 -18
  24. includes/class-mla-settings-custom-fields-tab.php +4 -4
  25. includes/class-mla-settings-documentation-tab.php +1 -1
  26. includes/class-mla-settings-iptc-exif-tab.php +4 -4
  27. includes/class-mla-settings-shortcodes-tab.php +1 -1
  28. includes/class-mla-settings-upload-tab.php +1 -1
  29. includes/class-mla-settings-view-tab.php +3 -3
  30. includes/class-mla-settings.php +3 -3
  31. includes/class-mla-shortcode-support.php +233 -105
  32. includes/class-mla-thumbnail-generation.php +3 -3
  33. includes/mla-plugin-loader.php +1 -1
  34. index.php +3 -3
  35. js/mla-add-new-bulk-edit-scripts.js +140 -38
  36. js/mla-add-new-bulk-edit-scripts.min.js +1 -1
  37. js/mla-add-term-scripts.js +3 -9
  38. js/mla-add-term-scripts.min.js +1 -1
  39. js/mla-edit-media-scripts.js +7 -7
  40. js/mla-edit-media-scripts.min.js +1 -1
  41. js/mla-inline-edit-scripts.js +160 -35
  42. js/mla-inline-edit-scripts.min.js +1 -1
  43. js/mla-media-modal-scripts.js +10 -0
  44. js/mla-media-modal-scripts.min.js +1 -1
  45. js/mla-set-parent-scripts.js +3 -2
  46. js/mla-set-parent-scripts.min.js +1 -1
  47. languages/media-library-assistant-en_US - References.pot +790 -776
  48. languages/media-library-assistant-en_US.po +28 -19
  49. languages/media-library-assistant-en_US.pot +27 -18
  50. readme.txt +30 -45
  51. tpls/admin-inline-edit-form.tpl +17 -162
  52. tpls/documentation-settings-tab.tpl +104 -4
  53. tpls/help-for-media_page_mla-menu.tpl +3 -0
  54. tpls/help-for-upload-new-media.tpl +2 -0
  55. tpls/mla-add-new-bulk-edit.tpl +11 -150
  56. tpls/mla-bulk-edit-fieldsets.tpl +109 -0
css/mla-add-new-bulk-edit-rtl.css CHANGED
@@ -8,11 +8,13 @@
8
 
9
  /* Layout */
10
 
11
- #bulk-edit-reset {
 
 
12
  margin: 0px 5px
13
  }
14
 
15
- #mla-add-new-bulk-edit-div .mla_taxonomy_options {
16
  margin-top: 8px;
17
  margin-bottom: 8px
18
  }
8
 
9
  /* Layout */
10
 
11
+ #bulk-edit-reset,
12
+ #bulk-edit-import,
13
+ #bulk-edit-export {
14
  margin: 0px 5px
15
  }
16
 
17
+ #mla-add-new-bulk-edit-div .mla_bulk_taxonomy_options {
18
  margin-top: 8px;
19
  margin-bottom: 8px
20
  }
css/mla-add-new-bulk-edit.css CHANGED
@@ -8,11 +8,13 @@
8
 
9
  /* Layout */
10
 
11
- #bulk-edit-reset {
 
 
12
  margin: 0px 5px
13
  }
14
 
15
- #mla-add-new-bulk-edit-div .mla_taxonomy_options {
16
  margin-top: 8px;
17
  margin-bottom: 8px
18
  }
8
 
9
  /* Layout */
10
 
11
+ #bulk-edit-reset,
12
+ #bulk-edit-import,
13
+ #bulk-edit-export {
14
  margin: 0px 5px
15
  }
16
 
17
+ #mla-add-new-bulk-edit-div .mla_bulk_taxonomy_options {
18
  margin-top: 8px;
19
  margin-bottom: 8px
20
  }
examples/plugins/mla-advanced-custom-fields-example/mla-advanced-custom-fields-example.php CHANGED
@@ -48,7 +48,7 @@
48
  * https://wordpress.org/support/topic/bulk-edit-acf-custom-field/
49
  *
50
  * @package MLA Advanced Custom Fields Example
51
- * @version 1.07
52
  */
53
 
54
  /*
@@ -56,7 +56,7 @@ Plugin Name: MLA Advanced Custom Fields Example
56
  Plugin URI: http://davidlingren.com/
57
  Description: Supports an ACF checkbox, "where-used" in an ACF repeater, one or more ACF "image" fields and one or more ACF "select" fields.
58
  Author: David Lingren
59
- Version: 1.07
60
  Author URI: http://davidlingren.com/
61
 
62
  Copyright 2014 - 2021 David Lingren
@@ -92,7 +92,7 @@ class MLAACFExample {
92
  *
93
  * @var integer
94
  */
95
- const PLUGIN_VERSION = '1.07';
96
 
97
  /**
98
  * Constant to log this plugin's debug activity
@@ -203,6 +203,10 @@ class MLAACFExample {
203
  add_filter( 'mla_list_table_bulk_action', 'MLAACFExample::mla_list_table_bulk_action', 10, 3 );
204
  add_filter( 'mla_list_table_inline_values', 'MLAACFExample::mla_list_table_inline_values', 10, 1 );
205
 
 
 
 
 
206
  // Defined in /media-library-assistant/includes/class-mla-list-table.php
207
  add_filter( 'mla_list_table_get_columns', 'MLAACFExample::mla_list_table_get_columns', 10, 1 );
208
  add_filter( 'mla_list_table_get_hidden_columns', 'MLAACFExample::mla_list_table_get_hidden_columns', 10, 1 );
@@ -419,6 +423,7 @@ class MLAACFExample {
419
  public static function mla_list_table_bulk_action( $item_content, $bulk_action, $post_id ) {
420
  // Accumulate multiple messages
421
  $messages = '';
 
422
 
423
  if ( self::$plugin_settings->get_plugin_option( 'acf_checkbox_enabled' ) ) {
424
  /*
@@ -453,7 +458,7 @@ class MLAACFExample {
453
  }
454
  }
455
 
456
- self::$field_objects['MLAACFExample_bulk_edit_values'] = array();
457
  } // acf_select_enabled
458
 
459
  MLACore::mla_debug_add( __LINE__ . ' MLAACFExample::mla_list_table_bulk_action message = ' . var_export( $messages, true ), self::MLA_DEBUG_CATEGORY );
@@ -477,23 +482,28 @@ class MLAACFExample {
477
  * @return array updated substitution parameter name => value pairs
478
  */
479
  public static function mla_list_table_inline_values( $item_values ) {
 
480
  if ( self::$plugin_settings->get_plugin_option( 'acf_checkbox_enabled' ) ) {
 
481
  $title = self::$plugin_settings->get_plugin_option( 'acf_checkbox_titles' );
482
  // Replace the ACF Field Name with a more friendly Field Label
483
- $item_values['custom_fields'] = str_replace( '>acf_checkbox<', '>' . $title . '<', $item_values['custom_fields'] );
484
- $item_values['bulk_custom_fields'] = str_replace( '>acf_checkbox<', '>' . $title . '<', $item_values['bulk_custom_fields'] );
485
  } // acf_checkbox_enabled
486
 
487
  if ( self::$plugin_settings->get_plugin_option( 'acf_select_enabled' ) ) {
488
  // Append the ACF Select Field(s) to the Quick and Bulk lists
489
  foreach( self::$field_objects as $field_name => $field_object ) {
490
- $custom_fields_item = ' <label class="inline-edit-acf_' . $field_name . '" style="clear:both"> ';
491
- $custom_fields_item .= '<span class="title">' . $field_object['mla_field_label'] . '</span> ';
492
- $custom_fields_item .= '<span class="input-text-wrap">' . "\n";
493
- $custom_fields_item .= ' <input type="text" name="acf_' . $field_name . '" value="" />' . "\n";
494
- $custom_fields_item .= ' </span> </label>' . "\n";
495
- $item_values['custom_fields'] .= $custom_fields_item;
496
- $item_values['bulk_custom_fields'] .= $custom_fields_item;
 
 
 
497
  }
498
  } // acf_select_enabled
499
 
48
  * https://wordpress.org/support/topic/bulk-edit-acf-custom-field/
49
  *
50
  * @package MLA Advanced Custom Fields Example
51
+ * @version 1.09
52
  */
53
 
54
  /*
56
  Plugin URI: http://davidlingren.com/
57
  Description: Supports an ACF checkbox, "where-used" in an ACF repeater, one or more ACF "image" fields and one or more ACF "select" fields.
58
  Author: David Lingren
59
+ Version: 1.09
60
  Author URI: http://davidlingren.com/
61
 
62
  Copyright 2014 - 2021 David Lingren
92
  *
93
  * @var integer
94
  */
95
+ const PLUGIN_VERSION = '1.09';
96
 
97
  /**
98
  * Constant to log this plugin's debug activity
203
  add_filter( 'mla_list_table_bulk_action', 'MLAACFExample::mla_list_table_bulk_action', 10, 3 );
204
  add_filter( 'mla_list_table_inline_values', 'MLAACFExample::mla_list_table_inline_values', 10, 1 );
205
 
206
+ add_filter( 'mla_list_table_inline_initial_values', 'MLAACFExample::mla_list_table_inline_values', 10, 1 );
207
+ add_filter( 'mla_list_table_inline_blank_values', 'MLAACFExample::mla_list_table_inline_values', 10, 1 );
208
+ add_filter( 'mla_list_table_inline_preset_values', 'MLAACFExample::mla_list_table_inline_values', 10, 1 );
209
+
210
  // Defined in /media-library-assistant/includes/class-mla-list-table.php
211
  add_filter( 'mla_list_table_get_columns', 'MLAACFExample::mla_list_table_get_columns', 10, 1 );
212
  add_filter( 'mla_list_table_get_hidden_columns', 'MLAACFExample::mla_list_table_get_hidden_columns', 10, 1 );
423
  public static function mla_list_table_bulk_action( $item_content, $bulk_action, $post_id ) {
424
  // Accumulate multiple messages
425
  $messages = '';
426
+ MLACore::mla_debug_add( __LINE__ . " MLAACFExample::mla_list_table_bulk_action( {$bulk_action}, {$post_id} )", self::MLA_DEBUG_CATEGORY );
427
 
428
  if ( self::$plugin_settings->get_plugin_option( 'acf_checkbox_enabled' ) ) {
429
  /*
458
  }
459
  }
460
 
461
+ // unset( self::$field_objects['MLAACFExample_bulk_edit_values'] );
462
  } // acf_select_enabled
463
 
464
  MLACore::mla_debug_add( __LINE__ . ' MLAACFExample::mla_list_table_bulk_action message = ' . var_export( $messages, true ), self::MLA_DEBUG_CATEGORY );
482
  * @return array updated substitution parameter name => value pairs
483
  */
484
  public static function mla_list_table_inline_values( $item_values ) {
485
+ //MLACore::mla_debug_add( __LINE__ . ' MLAACFExample::mla_list_table_inline_values item_values = ' . var_export( $item_values, true ), self::MLA_DEBUG_CATEGORY );
486
  if ( self::$plugin_settings->get_plugin_option( 'acf_checkbox_enabled' ) ) {
487
+ $field = self::$plugin_settings->get_plugin_option( 'acf_checkbox_fields' );
488
  $title = self::$plugin_settings->get_plugin_option( 'acf_checkbox_titles' );
489
  // Replace the ACF Field Name with a more friendly Field Label
490
+ $item_values['custom_fields'] = str_replace( '>' . $field . '<', '>' . $title . '<', $item_values['custom_fields'] );
491
+ // $item_values['bulk_custom_fields'] = str_replace( '>acf_checkbox<', '>' . $title . '<', $item_values['bulk_custom_fields'] );
492
  } // acf_checkbox_enabled
493
 
494
  if ( self::$plugin_settings->get_plugin_option( 'acf_select_enabled' ) ) {
495
  // Append the ACF Select Field(s) to the Quick and Bulk lists
496
  foreach( self::$field_objects as $field_name => $field_object ) {
497
+ MLACore::mla_debug_add( __LINE__ . " MLAACFExample::mla_list_table_inline_values( {$field_name} ) field_object = " . var_export( $field_object, true ), self::MLA_DEBUG_CATEGORY );
498
+ if ( isset( $field_object['mla_field_label'] ) ) {
499
+ $custom_fields_item = ' <label class="inline-edit-acf_' . $field_name . '" style="clear:both"> ';
500
+ $custom_fields_item .= '<span class="title">' . $field_object['mla_field_label'] . '</span> ';
501
+ $custom_fields_item .= '<span class="input-text-wrap">' . "\n";
502
+ $custom_fields_item .= ' <input type="text" name="acf_' . $field_name . '" value="" />' . "\n";
503
+ $custom_fields_item .= ' </span> </label>' . "\n";
504
+ $item_values['custom_fields'] .= $custom_fields_item;
505
+ // $item_values['bulk_custom_fields'] .= $custom_fields_item;
506
+ }
507
  }
508
  } // acf_select_enabled
509
 
examples/plugins/mla-image-source-control-example.php CHANGED
@@ -5,16 +5,20 @@
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.02
10
  */
11
 
12
  /*
13
  Plugin Name: MLA Image Source Control Example
14
  Plugin URI: http://davidlingren.com/
15
- Description: Provides an example of hooking the filters provided by the MLA_List_Table class
16
  Author: David Lingren
17
- Version: 1.02
18
  Author URI: http://davidlingren.com/
19
 
20
  Copyright 2014 David Lingren
@@ -51,11 +55,10 @@ class MLAImageSourceControlExample {
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:
@@ -65,17 +68,17 @@ class MLAImageSourceControlExample {
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_initial_request', 'MLAImageSourceControlExample::mla_list_table_bulk_action_initial_request', 10, 3 );
73
  add_filter( 'mla_list_table_bulk_action', 'MLAImageSourceControlExample::mla_list_table_bulk_action', 10, 3 );
74
  add_filter( 'mla_list_table_inline_values', 'MLAImageSourceControlExample::mla_list_table_inline_values', 10, 1 );
75
 
76
- /*
77
- * Defined in /media-library-assistant/includes/class-mla-list-table.php
78
- */
 
 
79
  add_filter( 'mla_list_table_get_columns', 'MLAImageSourceControlExample::mla_list_table_get_columns', 10, 1 );
80
  add_filter( 'mla_list_table_get_hidden_columns', 'MLAImageSourceControlExample::mla_list_table_get_hidden_columns', 10, 1 );
81
  add_filter( 'mla_list_table_get_sortable_columns', 'MLAImageSourceControlExample::mla_list_table_get_sortable_columns', 10, 1 );
@@ -99,9 +102,7 @@ class MLAImageSourceControlExample {
99
  * 'prevent_default' => true to bypass the MLA handler )
100
  */
101
  public static function mla_list_table_inline_action( $item_content, $post_id ) {
102
- /*
103
- * Translate the "friendly" yes/no value back to the internal ISC value
104
- */
105
  if ( isset( $_REQUEST['custom_updates'] ) && isset( $_REQUEST['custom_updates']['isc_image_source_own'] ) ) {
106
  if ( 'yes' == trim( strtolower( $_REQUEST['custom_updates']['isc_image_source_own'] ) ) ) {
107
  $_REQUEST['custom_updates']['isc_image_source_own'] = 1;
@@ -170,9 +171,7 @@ class MLAImageSourceControlExample {
170
  * 'prevent_default' => true to bypass the MLA handler )
171
  */
172
  public static function mla_list_table_bulk_action( $item_content, $bulk_action, $post_id ) {
173
- /*
174
- * If the field is present, apply our own update process.
175
- */
176
  if ( ! empty( self::$isc_image_source_own_value ) ) {
177
  if ( 'yes' == self::$isc_image_source_own_value ) {
178
  update_post_meta( $post_id, 'isc_image_source_own', 1 );
@@ -199,17 +198,10 @@ class MLAImageSourceControlExample {
199
  * @return array updated substitution parameter name => value pairs
200
  */
201
  public static function mla_list_table_inline_values( $item_values ) {
202
- /*
203
- * Replace the custom field names with more friendly labels
204
- */
205
  $item_values['custom_fields'] = str_replace( '>isc_image_source<', '>Source<', $item_values['custom_fields'] );
206
- $item_values['bulk_custom_fields'] = str_replace( '>isc_image_source<', '>Source<', $item_values['bulk_custom_fields'] );
207
-
208
  $item_values['custom_fields'] = str_replace( '>isc_image_source_own<', '>Own<', $item_values['custom_fields'] );
209
- $item_values['bulk_custom_fields'] = str_replace( '>isc_image_source_own<', '>Own<', $item_values['bulk_custom_fields'] );
210
-
211
  $item_values['custom_fields'] = str_replace( '>isc_image_source_url<', '>Source URL<', $item_values['custom_fields'] );
212
- $item_values['bulk_custom_fields'] = str_replace( '>isc_image_source_url<', '>Source URL<', $item_values['bulk_custom_fields'] );
213
 
214
  return $item_values;
215
  } // mla_list_table_inline_values
@@ -286,9 +278,7 @@ class MLAImageSourceControlExample {
286
  * @return array updated array of columns.
287
  */
288
  public static function mla_list_table_get_hidden_columns( $hidden_columns ) {
289
- /*
290
- * Replace the slug for the column we've captured
291
- */
292
  if ( isset( self::$field_slugs['isc_image_source_own'] ) ) {
293
  $index = array_search( self::$field_slugs['isc_image_source_own'], $hidden_columns );
294
  if ( false !== $index ) {
@@ -316,9 +306,7 @@ class MLAImageSourceControlExample {
316
  * @return array updated array of columns.
317
  */
318
  public static function mla_list_table_get_sortable_columns( $sortable_columns ) {
319
- /*
320
- * Replace the slug for the column we've captured, preserving its place in the list
321
- */
322
  if ( isset( self::$field_slugs['isc_image_source_own'] ) ) {
323
  $slug = self::$field_slugs['isc_image_source_own'];
324
  if ( isset( $sortable_columns[ $slug ] ) ) {
@@ -352,9 +340,7 @@ class MLAImageSourceControlExample {
352
  * @return string Text or HTML to be placed inside the column
353
  */
354
  public static function mla_list_table_column_default( $content, $item, $column_name ) {
355
- /*
356
- * Replace the ISC internal value with a "friendly" value
357
- */
358
  if ( 'isc_image_source_own' == $column_name ) {
359
  $values = isset( $item->mla_item_isc_image_source_own ) ? $item->mla_item_isc_image_source_own : '';
360
  if ( empty( $values ) ) {
@@ -381,16 +367,12 @@ class MLAImageSourceControlExample {
381
  * @return string updated HTML markup for inline data.
382
  */
383
  public static function mla_list_table_build_inline_data( $inline_data, $item ) {
384
- /*
385
- * See if the field is present
386
- */
387
  if ( ! isset( self::$field_slugs['isc_image_source_own'] ) ) {
388
  return $inline_data;
389
  }
390
 
391
- /*
392
- * Replace the ISC internal value with a "friendly" value
393
- */
394
  $match_count = preg_match_all( '/\<div class="' . self::$field_slugs['isc_image_source_own'] . '"\>(.*)\<\/div\>/', $inline_data, $matches, PREG_OFFSET_CAPTURE );
395
  if ( ( $match_count == false ) || ( $match_count == 0 ) ) {
396
  return $inline_data;
@@ -410,8 +392,6 @@ class MLAImageSourceControlExample {
410
  } // mla_list_table_build_inline_data_filter
411
  } // Class MLAImageSourceControlExample
412
 
413
- /*
414
- * Install the filters at an early opportunity
415
- */
416
  add_action('init', 'MLAImageSourceControlExample::initialize');
417
  ?>
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
+ * Created for support topic "Friendly Column Names"
9
+ * opened on 12/29/2014 by "hixmyrick"
10
+ * https://wordpress.org/support/topic/friendly-column-names/
11
+ *
12
  * @package MLA Image Source Control Example
13
+ * @version 1.03
14
  */
15
 
16
  /*
17
  Plugin Name: MLA Image Source Control Example
18
  Plugin URI: http://davidlingren.com/
19
+ Description: Adds friendly column names and edit values for the "Image Source Control" plugin
20
  Author: David Lingren
21
+ Version: 1.03
22
  Author URI: http://davidlingren.com/
23
 
24
  Copyright 2014 David Lingren
55
  * @return void
56
  */
57
  public static function initialize() {
58
+ // The filters are only useful for the admin section; exit in the front-end posts/pages
59
+ if ( ! is_admin() ) {
 
 
60
  return;
61
+ }
62
 
63
  /*
64
  * add_filter parameters:
68
  * $accepted_args - number of arguments your function accepts
69
  */
70
 
71
+ // Defined in /media-library-assistant/includes/class-mla-main.php
 
 
72
  add_filter( 'mla_list_table_inline_action', 'MLAImageSourceControlExample::mla_list_table_inline_action', 10, 2 );
73
  add_filter( 'mla_list_table_bulk_action_initial_request', 'MLAImageSourceControlExample::mla_list_table_bulk_action_initial_request', 10, 3 );
74
  add_filter( 'mla_list_table_bulk_action', 'MLAImageSourceControlExample::mla_list_table_bulk_action', 10, 3 );
75
  add_filter( 'mla_list_table_inline_values', 'MLAImageSourceControlExample::mla_list_table_inline_values', 10, 1 );
76
 
77
+ add_filter( 'mla_list_table_inline_initial_values', 'MLAImageSourceControlExample::mla_list_table_inline_values', 10, 1 );
78
+ add_filter( 'mla_list_table_inline_blank_values', 'MLAImageSourceControlExample::mla_list_table_inline_values', 10, 1 );
79
+ add_filter( 'mla_list_table_inline_preset_values', 'MLAImageSourceControlExample::mla_list_table_inline_values', 10, 1 );
80
+
81
+ // Defined in /media-library-assistant/includes/class-mla-list-table.php
82
  add_filter( 'mla_list_table_get_columns', 'MLAImageSourceControlExample::mla_list_table_get_columns', 10, 1 );
83
  add_filter( 'mla_list_table_get_hidden_columns', 'MLAImageSourceControlExample::mla_list_table_get_hidden_columns', 10, 1 );
84
  add_filter( 'mla_list_table_get_sortable_columns', 'MLAImageSourceControlExample::mla_list_table_get_sortable_columns', 10, 1 );
102
  * 'prevent_default' => true to bypass the MLA handler )
103
  */
104
  public static function mla_list_table_inline_action( $item_content, $post_id ) {
105
+ // Translate the "friendly" yes/no value back to the internal ISC value
 
 
106
  if ( isset( $_REQUEST['custom_updates'] ) && isset( $_REQUEST['custom_updates']['isc_image_source_own'] ) ) {
107
  if ( 'yes' == trim( strtolower( $_REQUEST['custom_updates']['isc_image_source_own'] ) ) ) {
108
  $_REQUEST['custom_updates']['isc_image_source_own'] = 1;
171
  * 'prevent_default' => true to bypass the MLA handler )
172
  */
173
  public static function mla_list_table_bulk_action( $item_content, $bulk_action, $post_id ) {
174
+ // If the field is present, apply our own update process.
 
 
175
  if ( ! empty( self::$isc_image_source_own_value ) ) {
176
  if ( 'yes' == self::$isc_image_source_own_value ) {
177
  update_post_meta( $post_id, 'isc_image_source_own', 1 );
198
  * @return array updated substitution parameter name => value pairs
199
  */
200
  public static function mla_list_table_inline_values( $item_values ) {
201
+ // Replace the custom field names with more friendly labels
 
 
202
  $item_values['custom_fields'] = str_replace( '>isc_image_source<', '>Source<', $item_values['custom_fields'] );
 
 
203
  $item_values['custom_fields'] = str_replace( '>isc_image_source_own<', '>Own<', $item_values['custom_fields'] );
 
 
204
  $item_values['custom_fields'] = str_replace( '>isc_image_source_url<', '>Source URL<', $item_values['custom_fields'] );
 
205
 
206
  return $item_values;
207
  } // mla_list_table_inline_values
278
  * @return array updated array of columns.
279
  */
280
  public static function mla_list_table_get_hidden_columns( $hidden_columns ) {
281
+ // Replace the slug for the column we've captured
 
 
282
  if ( isset( self::$field_slugs['isc_image_source_own'] ) ) {
283
  $index = array_search( self::$field_slugs['isc_image_source_own'], $hidden_columns );
284
  if ( false !== $index ) {
306
  * @return array updated array of columns.
307
  */
308
  public static function mla_list_table_get_sortable_columns( $sortable_columns ) {
309
+ // Replace the slug for the column we've captured, preserving its place in the list
 
 
310
  if ( isset( self::$field_slugs['isc_image_source_own'] ) ) {
311
  $slug = self::$field_slugs['isc_image_source_own'];
312
  if ( isset( $sortable_columns[ $slug ] ) ) {
340
  * @return string Text or HTML to be placed inside the column
341
  */
342
  public static function mla_list_table_column_default( $content, $item, $column_name ) {
343
+ // Replace the ISC internal value with a "friendly" value
 
 
344
  if ( 'isc_image_source_own' == $column_name ) {
345
  $values = isset( $item->mla_item_isc_image_source_own ) ? $item->mla_item_isc_image_source_own : '';
346
  if ( empty( $values ) ) {
367
  * @return string updated HTML markup for inline data.
368
  */
369
  public static function mla_list_table_build_inline_data( $inline_data, $item ) {
370
+ // See if the field is present
 
 
371
  if ( ! isset( self::$field_slugs['isc_image_source_own'] ) ) {
372
  return $inline_data;
373
  }
374
 
375
+ // Replace the ISC internal value with a "friendly" value
 
 
376
  $match_count = preg_match_all( '/\<div class="' . self::$field_slugs['isc_image_source_own'] . '"\>(.*)\<\/div\>/', $inline_data, $matches, PREG_OFFSET_CAPTURE );
377
  if ( ( $match_count == false ) || ( $match_count == 0 ) ) {
378
  return $inline_data;
392
  } // mla_list_table_build_inline_data_filter
393
  } // Class MLAImageSourceControlExample
394
 
395
+ // Install the filters at an early opportunity
 
 
396
  add_action('init', 'MLAImageSourceControlExample::initialize');
397
  ?>
examples/plugins/mla-list-table-hooks-example.php 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.10
7
  */
8
 
9
  /*
@@ -11,7 +11,7 @@ Plugin Name: MLA List Table Hooks Example
11
  Plugin URI: http://davidlingren.com/
12
  Description: Provides an example of hooking the filters provided by the MLA_List_Table class
13
  Author: David Lingren
14
- Version: 1.10
15
  Author URI: http://davidlingren.com/
16
 
17
  Copyright 2014 - 2017 David Lingren
@@ -48,9 +48,7 @@ class MLAListTableHooksExample {
48
  * @return void
49
  */
50
  public static function initialize() {
51
- /*
52
- * The filters are only useful for the admin section; exit in the front-end posts/pages
53
- */
54
  if ( ! is_admin() )
55
  return;
56
 
@@ -62,25 +60,19 @@ class MLAListTableHooksExample {
62
  * $accepted_args - number of arguments your function accepts
63
  */
64
 
65
- /*
66
- * Defined in /wp-admin/includes/class-wp-list-table.php
67
- */
68
  add_filter( 'views_media_page_mla-menu', 'MLAListTableHooksExample::views_media_page_mla_menu', 10, 1 );
69
  add_filter( 'bulk_actions-media_page_mla-menu', 'MLAListTableHooksExample::bulk_actions_media_page_mla_menu', 10, 1 );
70
  add_filter( 'months_dropdown_results', 'MLAListTableHooksExample::months_dropdown_results', 10, 2 );
71
  add_filter( 'mla_entries_per_page', 'MLAListTableHooksExample::mla_entries_per_page', 10, 1 );
72
  add_filter( 'manage_media_page_mla-menu_sortable_columns', 'MLAListTableHooksExample::manage_media_page_mla_menu_sortable_columns', 10, 1 );
73
 
74
- /*
75
- * Defined in /media-library-assistant/includes/class-mla-objects.php
76
- */
77
  add_filter( 'mla_taxonomy_get_columns', 'MLAListTableHooksExample::mla_taxonomy_get_columns', 10, 3 );
78
  add_filter( 'mla_taxonomy_column', 'MLAListTableHooksExample::mla_taxonomy_column', 10, 5 );
79
  add_filter( 'mla_taxonomy_column_final', 'MLAListTableHooksExample::mla_taxonomy_column_final', 10, 5 );
80
 
81
- /*
82
- * Defined in /media-library-assistant/includes/class-mla-data.php
83
- */
84
  add_filter( 'mla_list_table_query_final_terms', 'MLAListTableHooksExample::mla_list_table_query_final_terms', 10, 1 );
85
  add_filter( 'mla_list_table_query_custom_items', 'MLAListTableHooksExample::mla_list_table_query_custom_items', 10, 2 );
86
  add_filter( 'mla_list_table_search_filter_fields', 'MLAListTableHooksExample::mla_list_table_search_filter_fields', 10, 2 );
@@ -89,9 +81,7 @@ class MLAListTableHooksExample {
89
  add_filter( 'mla_update_single_item', 'MLAListTableHooksExample::mla_update_single_item', 10, 3 );
90
  add_action( 'mla_updated_single_item', 'MLAListTableHooksExample::mla_updated_single_item', 10, 2 );
91
 
92
- /*
93
- * Defined in /media-library-assistant/includes/class-mla-main.php
94
- */
95
  add_filter( 'mla_list_table_help_template', 'MLAListTableHooksExample::mla_list_table_help_template', 10, 3 );
96
  add_filter( 'mla_list_table_admin_action', 'MLAListTableHooksExample::mla_list_table_admin_action', 10, 3 );
97
  add_action( 'mla_list_table_custom_admin_action', 'MLAListTableHooksExample::mla_list_table_custom_admin_action', 10, 2 );
@@ -114,9 +104,15 @@ class MLAListTableHooksExample {
114
  add_filter( 'mla_list_table_inline_template', 'MLAListTableHooksExample::mla_list_table_inline_template', 10, 1 );
115
  add_filter( 'mla_list_table_inline_parse', 'MLAListTableHooksExample::mla_list_table_inline_parse', 10, 3 );
116
 
117
- /*
118
- * Defined in /media-library-assistant/includes/class-mla-list-table.php
119
- */
 
 
 
 
 
 
120
  add_filter( 'mla_list_table_get_columns', 'MLAListTableHooksExample::mla_list_table_get_columns', 10, 1 );
121
  add_filter( 'mla_list_table_get_hidden_columns', 'MLAListTableHooksExample::mla_list_table_get_hidden_columns', 10, 1 );
122
  add_filter( 'mla_list_table_get_sortable_columns', 'MLAListTableHooksExample::mla_list_table_get_sortable_columns', 10, 1 );
@@ -138,12 +134,18 @@ class MLAListTableHooksExample {
138
  // 'views_upload' is only applied when WPML is active
139
  add_filter( 'views_upload', 'MLAListTableHooksExample::views_upload', 10, 1 );
140
 
141
- /*
142
- * Defined in /media-library-assistant/includes/class-mla-edit-media.php
143
- */
144
  add_filter( 'mla_upload_bulk_edit_form_values', 'MLAListTableHooksExample::mla_upload_bulk_edit_form_values', 10, 1 );
145
  add_filter( 'mla_upload_bulk_edit_form_template', 'MLAListTableHooksExample::mla_upload_bulk_edit_form_template', 10, 1 );
146
  add_filter( 'mla_upload_bulk_edit_form_parse', 'MLAListTableHooksExample::mla_upload_bulk_edit_form_parse', 10, 3 );
 
 
 
 
 
 
 
 
147
  }
148
 
149
  /**
@@ -736,6 +738,30 @@ class MLAListTableHooksExample {
736
  return $item_values;
737
  } // mla_list_table_inline_values
738
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
739
  /**
740
  * MLA_List_Table inline edit template
741
  *
@@ -745,12 +771,44 @@ class MLAListTableHooksExample {
745
  * @since 1.00
746
  *
747
  * @param string $item_template Template used to generate the HTML markup
 
748
  */
749
- public static function mla_list_table_inline_template( $item_template ) {
750
  //error_log( 'MLAListTableHooksExample::mla_list_table_inline_template $item_template = ' . var_export( $item_template, true ), 0 );
 
 
 
 
 
 
 
 
 
751
  return $item_template;
752
  } // mla_list_table_inline_template
753
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
754
  /**
755
  * MLA_List_Table inline edit parse
756
  *
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.11
7
  */
8
 
9
  /*
11
  Plugin URI: http://davidlingren.com/
12
  Description: Provides an example of hooking the filters provided by the MLA_List_Table class
13
  Author: David Lingren
14
+ Version: 1.11
15
  Author URI: http://davidlingren.com/
16
 
17
  Copyright 2014 - 2017 David Lingren
48
  * @return void
49
  */
50
  public static function initialize() {
51
+ // The filters are only useful for the admin section; exit in the front-end posts/pages
 
 
52
  if ( ! is_admin() )
53
  return;
54
 
60
  * $accepted_args - number of arguments your function accepts
61
  */
62
 
63
+ // Defined in /wp-admin/includes/class-wp-list-table.php
 
 
64
  add_filter( 'views_media_page_mla-menu', 'MLAListTableHooksExample::views_media_page_mla_menu', 10, 1 );
65
  add_filter( 'bulk_actions-media_page_mla-menu', 'MLAListTableHooksExample::bulk_actions_media_page_mla_menu', 10, 1 );
66
  add_filter( 'months_dropdown_results', 'MLAListTableHooksExample::months_dropdown_results', 10, 2 );
67
  add_filter( 'mla_entries_per_page', 'MLAListTableHooksExample::mla_entries_per_page', 10, 1 );
68
  add_filter( 'manage_media_page_mla-menu_sortable_columns', 'MLAListTableHooksExample::manage_media_page_mla_menu_sortable_columns', 10, 1 );
69
 
70
+ // Defined in /media-library-assistant/includes/class-mla-objects.php
 
 
71
  add_filter( 'mla_taxonomy_get_columns', 'MLAListTableHooksExample::mla_taxonomy_get_columns', 10, 3 );
72
  add_filter( 'mla_taxonomy_column', 'MLAListTableHooksExample::mla_taxonomy_column', 10, 5 );
73
  add_filter( 'mla_taxonomy_column_final', 'MLAListTableHooksExample::mla_taxonomy_column_final', 10, 5 );
74
 
75
+ // Defined in /media-library-assistant/includes/class-mla-data.php
 
 
76
  add_filter( 'mla_list_table_query_final_terms', 'MLAListTableHooksExample::mla_list_table_query_final_terms', 10, 1 );
77
  add_filter( 'mla_list_table_query_custom_items', 'MLAListTableHooksExample::mla_list_table_query_custom_items', 10, 2 );
78
  add_filter( 'mla_list_table_search_filter_fields', 'MLAListTableHooksExample::mla_list_table_search_filter_fields', 10, 2 );
81
  add_filter( 'mla_update_single_item', 'MLAListTableHooksExample::mla_update_single_item', 10, 3 );
82
  add_action( 'mla_updated_single_item', 'MLAListTableHooksExample::mla_updated_single_item', 10, 2 );
83
 
84
+ // Defined in /media-library-assistant/includes/class-mla-main.php
 
 
85
  add_filter( 'mla_list_table_help_template', 'MLAListTableHooksExample::mla_list_table_help_template', 10, 3 );
86
  add_filter( 'mla_list_table_admin_action', 'MLAListTableHooksExample::mla_list_table_admin_action', 10, 3 );
87
  add_action( 'mla_list_table_custom_admin_action', 'MLAListTableHooksExample::mla_list_table_custom_admin_action', 10, 2 );
104
  add_filter( 'mla_list_table_inline_template', 'MLAListTableHooksExample::mla_list_table_inline_template', 10, 1 );
105
  add_filter( 'mla_list_table_inline_parse', 'MLAListTableHooksExample::mla_list_table_inline_parse', 10, 3 );
106
 
107
+ add_filter( 'mla_list_table_inline_blank_values', 'MLAListTableHooksExample::mla_list_table_inline_bulk_values', 10, 1 );
108
+ add_filter( 'mla_list_table_inline_initial_values', 'MLAListTableHooksExample::mla_list_table_inline_bulk_values', 10, 1 );
109
+ add_filter( 'mla_list_table_inline_preset_values', 'MLAListTableHooksExample::mla_list_table_inline_bulk_values', 10, 1 );
110
+
111
+ add_filter( 'mla_list_table_inline_blank_template', 'MLAListTableHooksExample::mla_list_table_bulk_template', 10, 2 );
112
+ add_filter( 'mla_list_table_inline_initial_template', 'MLAListTableHooksExample::mla_list_table_bulk_template', 10, 2 );
113
+ add_filter( 'mla_list_table_inline_preset_template', 'MLAListTableHooksExample::mla_list_table_bulk_template', 10, 2 );
114
+
115
+ // Defined in /media-library-assistant/includes/class-mla-list-table.php
116
  add_filter( 'mla_list_table_get_columns', 'MLAListTableHooksExample::mla_list_table_get_columns', 10, 1 );
117
  add_filter( 'mla_list_table_get_hidden_columns', 'MLAListTableHooksExample::mla_list_table_get_hidden_columns', 10, 1 );
118
  add_filter( 'mla_list_table_get_sortable_columns', 'MLAListTableHooksExample::mla_list_table_get_sortable_columns', 10, 1 );
134
  // 'views_upload' is only applied when WPML is active
135
  add_filter( 'views_upload', 'MLAListTableHooksExample::views_upload', 10, 1 );
136
 
137
+ // Defined in /media-library-assistant/includes/class-mla-edit-media.php
 
 
138
  add_filter( 'mla_upload_bulk_edit_form_values', 'MLAListTableHooksExample::mla_upload_bulk_edit_form_values', 10, 1 );
139
  add_filter( 'mla_upload_bulk_edit_form_template', 'MLAListTableHooksExample::mla_upload_bulk_edit_form_template', 10, 1 );
140
  add_filter( 'mla_upload_bulk_edit_form_parse', 'MLAListTableHooksExample::mla_upload_bulk_edit_form_parse', 10, 3 );
141
+
142
+ add_filter( 'mla_upload_bulk_edit_form_blank_values', 'MLAListTableHooksExample::mla_list_table_inline_bulk_values', 10, 1 );
143
+ add_filter( 'mla_upload_bulk_edit_form_initial_values', 'MLAListTableHooksExample::mla_list_table_inline_bulk_values', 10, 1 );
144
+ add_filter( 'mla_upload_bulk_edit_form_preset_values', 'MLAListTableHooksExample::mla_list_table_inline_bulk_values', 10, 1 );
145
+
146
+ add_filter( 'mla_upload_bulk_edit_form_blank_template', 'MLAListTableHooksExample::mla_list_table_bulk_template', 10, 2 );
147
+ add_filter( 'mla_upload_bulk_edit_form_initial_template', 'MLAListTableHooksExample::mla_list_table_bulk_template', 10, 2 );
148
+ add_filter( 'mla_upload_bulk_edit_form_preset_template', 'MLAListTableHooksExample::mla_list_table_bulk_template', 10, 2 );
149
  }
150
 
151
  /**
738
  return $item_values;
739
  } // mla_list_table_inline_values
740
 
741
+ /**
742
+ * MLA_List_Table item bulk edit fieldset values
743
+ *
744
+ * This filter gives you a chance to modify and extend the substitution values
745
+ * for the three Bulk Edit form fieldsets.
746
+ *
747
+ * @since 1.10
748
+ *
749
+ * @param array $item_values [ parameter_name => parameter_value ] pairs
750
+ */
751
+ public static function mla_list_table_bulk_values( $item_values ) {
752
+ //error_log( 'MLAListTableHooksExample::mla_list_table_bulk_values $item_values = ' . var_export( $item_values, true ), 0 );
753
+
754
+ /*
755
+ * You can use the 'filter_root' element to distinguish among :
756
+ * mla_list_table_inline_blank_values,
757
+ * mla_list_table_inline_initial_values,
758
+ * mla_list_table_inline_preset_values
759
+ */
760
+ //error_log( "MLAListTableHooksExample::mla_list_table_bulk_values filter_root = {$item_values['filter_root']}", 0 );
761
+
762
+ return $item_values;
763
+ } // mla_list_table_bulk_values
764
+
765
  /**
766
  * MLA_List_Table inline edit template
767
  *
771
  * @since 1.00
772
  *
773
  * @param string $item_template Template used to generate the HTML markup
774
+ * @param array $item_values [ parameter_name => parameter_value ] pairs
775
  */
776
+ public static function mla_list_table_inline_template( $item_template, $item_values ) {
777
  //error_log( 'MLAListTableHooksExample::mla_list_table_inline_template $item_template = ' . var_export( $item_template, true ), 0 );
778
+
779
+ /*
780
+ * You can use the 'filter_root' element to distinguish among :
781
+ * mla_list_table_inline_blank_template,
782
+ * mla_list_table_inline_initial_template,
783
+ * mla_list_table_inline_preset_template
784
+ */
785
+ //error_log( "MLAListTableHooksExample::mla_list_table_inline_template filter_root = {$item_values['filter_root']}", 0 );
786
+
787
  return $item_template;
788
  } // mla_list_table_inline_template
789
 
790
+ /**
791
+ * MLA_List_Table item bulk edit fieldset template
792
+ *
793
+ * This filter gives you a chance to modify and extend the template used
794
+ * for the three Bulk Edit form fieldsets.
795
+ *
796
+ * @since 1.10
797
+ *
798
+ * @param array $item_template Template used to generate the HTML markup
799
+ */
800
+ public static function mla_list_table_bulk_template( $item_template ) {
801
+ //error_log( 'MLAListTableHooksExample::mla_list_table_bulk_values $item_template = ' . var_export( $item_template, true ), 0 );
802
+
803
+ /*
804
+ * You can use the 'filter_root' element to distinguish among :
805
+ * mla_list_table_inline_blank_values
806
+ */
807
+ //error_log( "MLAListTableHooksExample::mla_list_table_bulk_values filter_root = {$item_values['filter_root']}", 0 );
808
+
809
+ return $item_values;
810
+ } // mla_list_table_bulk_values
811
+
812
  /**
813
  * MLA_List_Table inline edit parse
814
  *
examples/plugins/mla-ui-elements-example/mla-ui-elements-example.php CHANGED
@@ -93,7 +93,7 @@
93
  * https://wordpress.org/support/topic/checklist-behaviour-my_custom_sql-muie_terms_search/
94
  *
95
  * @package MLA UI Elements Example
96
- * @version 2.00
97
  */
98
 
99
  /*
@@ -101,7 +101,7 @@ Plugin Name: MLA UI Elements Example
101
  Plugin URI: http://davidlingren.com/
102
  Description: Provides shortcodes to improve user experience for [mla_term_list], [mla_tag_cloud] and [mla_gallery] shortcodes. Adds [muie_archive_list] for date-based archive lists.
103
  Author: David Lingren
104
- Version: 2.00
105
  Author URI: http://davidlingren.com/
106
 
107
  Copyright 2016-2021 David Lingren
@@ -135,7 +135,7 @@ class MLAUIElementsExample {
135
  *
136
  * @var integer
137
  */
138
- const PLUGIN_VERSION = '2.00';
139
 
140
  /**
141
  * Constant to log this plugin's debug activity
@@ -2323,7 +2323,8 @@ class MLAUIElementsExample {
2323
  */
2324
  public static function muie_archive_posts_clauses_request( $pieces, $wp_query ) {
2325
  global $wpdb;
2326
- //error_log( __LINE__ . " muie_archive_posts_clauses_request() pieces = " . var_export( $pieces, true ), 0 );
 
2327
 
2328
  $where = isset( $pieces['where'] ) ? $pieces['where'] : '';
2329
  $join = isset( $pieces['join'] ) ? $pieces['join'] : '';
@@ -2393,7 +2394,7 @@ class MLAUIElementsExample {
2393
  //error_log( __LINE__ . " muie_archive_posts_clauses_request() archive_list_items = " . var_export( self::$archive_list_items, true ), 0 );
2394
 
2395
  $query = "SELECT {$main_select}, count(sq.ID) as items FROM ( SELECT {$sq_select}, ID FROM $wpdb->posts {$join} WHERE 1=1 {$where} GROUP BY {$sq_group_by}, ID ORDER BY {$sq_order_by}) as sq GROUP BY {$main_group_by} ORDER BY {$main_order_by} {$limit}";
2396
- //error_log( __LINE__ . " muie_archive_posts_clauses_request() query = " . var_export( $query, true ), 0 );
2397
 
2398
  // $key = md5( $query );
2399
  // $key = "wp_get_archives:$key:$last_changed";
@@ -2412,7 +2413,7 @@ class MLAUIElementsExample {
2412
  self::$archive_list_items[ $index ]->week_end = date_i18n( get_option( 'date_format' ), $arc_week['end'] );
2413
  }
2414
  }
2415
- //error_log( __LINE__ . " muie_archive_posts_clauses_request() archive_list_items = " . var_export( self::$archive_list_items, true ), 0 );
2416
  // }
2417
 
2418
  return $pieces;
93
  * https://wordpress.org/support/topic/checklist-behaviour-my_custom_sql-muie_terms_search/
94
  *
95
  * @package MLA UI Elements Example
96
+ * @version 2.01
97
  */
98
 
99
  /*
101
  Plugin URI: http://davidlingren.com/
102
  Description: Provides shortcodes to improve user experience for [mla_term_list], [mla_tag_cloud] and [mla_gallery] shortcodes. Adds [muie_archive_list] for date-based archive lists.
103
  Author: David Lingren
104
+ Version: 2.01
105
  Author URI: http://davidlingren.com/
106
 
107
  Copyright 2016-2021 David Lingren
135
  *
136
  * @var integer
137
  */
138
+ const PLUGIN_VERSION = '2.01';
139
 
140
  /**
141
  * Constant to log this plugin's debug activity
2323
  */
2324
  public static function muie_archive_posts_clauses_request( $pieces, $wp_query ) {
2325
  global $wpdb;
2326
+
2327
+ MLACore::mla_debug_add( __LINE__ . " muie_archive_posts_clauses_request() pieces = " . var_export( $pieces, true ), self::$muie_debug_category );
2328
 
2329
  $where = isset( $pieces['where'] ) ? $pieces['where'] : '';
2330
  $join = isset( $pieces['join'] ) ? $pieces['join'] : '';
2394
  //error_log( __LINE__ . " muie_archive_posts_clauses_request() archive_list_items = " . var_export( self::$archive_list_items, true ), 0 );
2395
 
2396
  $query = "SELECT {$main_select}, count(sq.ID) as items FROM ( SELECT {$sq_select}, ID FROM $wpdb->posts {$join} WHERE 1=1 {$where} GROUP BY {$sq_group_by}, ID ORDER BY {$sq_order_by}) as sq GROUP BY {$main_group_by} ORDER BY {$main_order_by} {$limit}";
2397
+ MLACore::mla_debug_add( __LINE__ . " muie_archive_posts_clauses_request() query = " . var_export( $query, true ), self::$muie_debug_category );
2398
 
2399
  // $key = md5( $query );
2400
  // $key = "wp_get_archives:$key:$last_changed";
2413
  self::$archive_list_items[ $index ]->week_end = date_i18n( get_option( 'date_format' ), $arc_week['end'] );
2414
  }
2415
  }
2416
+ MLACore::mla_debug_add( __LINE__ . " muie_archive_posts_clauses_request() archive_list_items = " . var_export( self::$archive_list_items, true ), self::$muie_debug_category );
2417
  // }
2418
 
2419
  return $pieces;
examples/plugins/smart-media-categories/admin/class-smart-media-categories-admin.php CHANGED
@@ -643,7 +643,7 @@ if ( 'heartbeat' != $_REQUEST['action'] ) {
643
 
644
  $args = array( 'post_parent' => $post_id, 'post_type' => 'attachment', 'post_status' => 'inherit' );
645
  $children = get_children( $args );
646
- //error_log( __LINE__ . ' Smart_Media_Categories_Admin::action_manage_posts_custom_column array_keys( $children ) = ' . var_export( array_keys( $children ), true ), 0 );
647
  $term_assignments = SMC_Sync_Support::get_terms( $post_id, array_keys( $children ) );
648
  //error_log( __LINE__ . ' Smart_Media_Categories_Admin::action_manage_posts_custom_column term_assignments = ' . var_export( $term_assignments, true ), 0 );
649
  if ( $children ) {
643
 
644
  $args = array( 'post_parent' => $post_id, 'post_type' => 'attachment', 'post_status' => 'inherit' );
645
  $children = get_children( $args );
646
+ //error_log( __LINE__ . " Smart_Media_Categories_Admin::action_manage_posts_custom_column( {$post_id} ) array_keys( children ) = " . var_export( array_keys( $children ), true ), 0 );
647
  $term_assignments = SMC_Sync_Support::get_terms( $post_id, array_keys( $children ) );
648
  //error_log( __LINE__ . ' Smart_Media_Categories_Admin::action_manage_posts_custom_column term_assignments = ' . var_export( $term_assignments, true ), 0 );
649
  if ( $children ) {
examples/plugins/smart-media-categories/admin/includes/class-smc-automatic-support.php CHANGED
@@ -503,14 +503,17 @@ class SMC_Automatic_Support {
503
  //error_log( __LINE__ . ' SMC_Automatic_Support::rule_upload_item $post_id = ' . var_export( $post_id, true), 0 );
504
 
505
  $child = get_post( $post_id );
 
506
 
507
  // Is it a child?
508
  if ( ( 'attachment' == $child->post_type ) && ( 0 < $child->post_parent ) ) {
509
  $parent = get_post( $child->post_parent );
 
510
 
511
  // Is it a child of a supported Post Type?
512
  if ( SMC_Settings_Support::is_smc_post_type( $parent->post_type ) ) {
513
  $results = SMC_Sync_Support::sync_children_to_parent( $child->post_parent, $post_id );
 
514
  } // Post child
515
  } // attached item
516
  } // rule_upload_item
@@ -761,7 +764,7 @@ class SMC_Automatic_Support {
761
 
762
  if ( is_null( $active_taxonomies ) ) {
763
  $active_taxonomies = SMC_Sync_Support::get_active_taxonomies( $update_type );
764
- //error_log( __LINE__ . ' SMC_Automatic_Support::rule_update_post_terms $active_taxonomies = ' . var_export( $active_taxonomies, true), 0 );
765
  }
766
 
767
  if ( !SMC_Settings_Support::is_smc_post_type( $update_type ) ) {
503
  //error_log( __LINE__ . ' SMC_Automatic_Support::rule_upload_item $post_id = ' . var_export( $post_id, true), 0 );
504
 
505
  $child = get_post( $post_id );
506
+ //error_log( __LINE__ . ' SMC_Automatic_Support::rule_upload_item $child = ' . var_export( $child, true), 0 );
507
 
508
  // Is it a child?
509
  if ( ( 'attachment' == $child->post_type ) && ( 0 < $child->post_parent ) ) {
510
  $parent = get_post( $child->post_parent );
511
+ //error_log( __LINE__ . ' SMC_Automatic_Support::rule_upload_item $parent = ' . var_export( $parent, true), 0 );
512
 
513
  // Is it a child of a supported Post Type?
514
  if ( SMC_Settings_Support::is_smc_post_type( $parent->post_type ) ) {
515
  $results = SMC_Sync_Support::sync_children_to_parent( $child->post_parent, $post_id );
516
+ //error_log( __LINE__ . ' SMC_Automatic_Support::rule_upload_item $results = ' . var_export( $results, true), 0 );
517
  } // Post child
518
  } // attached item
519
  } // rule_upload_item
764
 
765
  if ( is_null( $active_taxonomies ) ) {
766
  $active_taxonomies = SMC_Sync_Support::get_active_taxonomies( $update_type );
767
+ //error_log( __LINE__ . ' SMC_Automatic_Support::rule_update_post_terms $active_taxonomies keys = ' . var_export( array_keys( $active_taxonomies ), true), 0 );
768
  }
769
 
770
  if ( !SMC_Settings_Support::is_smc_post_type( $update_type ) ) {
examples/plugins/smart-media-categories/admin/includes/class-smc-sync-support.php CHANGED
@@ -390,7 +390,7 @@ class SMC_Sync_Support {
390
  $current_type = $parent->post_type;
391
  $active_taxonomies = SMC_Sync_Support::get_active_taxonomies( $current_type );
392
  }
393
- //error_log( __LINE__ . ' SMC_Sync_Support::get_terms $active_taxonomies( {$current_type} ) = ' . var_export( $active_taxonomies, true ), 0 );
394
 
395
  $posts = implode( ',', array_merge( array( $parent_id ), $children ) );
396
  //error_log( __LINE__ . ' SMC_Sync_Support::get_terms $posts = ' . var_export( $posts, true ), 0 );
@@ -417,16 +417,18 @@ class SMC_Sync_Support {
417
  //error_log( __LINE__ . ' SMC_Sync_Support::get_terms $results = ' . var_export( $results, true ), 0 );
418
 
419
  // Check for Default Post Category exclusion
420
- if ( ( ( boolean) SMC_Settings_Support::get_option( 'exclude_default' ) ) && ( 'category' === $term->taxonomy ) ) {
421
  if ( 'post' === $parent->post_type && 'auto-draft' !== $parent->post_status ) {
422
  $default_term_id = (integer) get_option( 'default_category' );
423
- //error_log( __LINE__ ." SMC_Sync_Support::get_terms ({$term->taxonomy}) \$default_term_id = " . var_export( $default_term_id, true ), 0 );
424
- foreach ( $results[ $parent_id ]['category'] as $index => $term ) {
 
425
  //error_log( __LINE__ ." SMC_Sync_Support::get_terms ( category, {$index} ) \$term = " . var_export( $term, true ), 0 );
426
- if ( $default_term_id === $index ) {
427
- unset( $results[ $parent_id ]['category'][ $index ] );
 
428
  }
429
- }
430
  } // type === post
431
  //error_log( __LINE__ ." SMC_Sync_Support::get_terms ( category ) revised \$results = " . var_export( $results, true ), 0 );
432
  } // exclude category
390
  $current_type = $parent->post_type;
391
  $active_taxonomies = SMC_Sync_Support::get_active_taxonomies( $current_type );
392
  }
393
+ //error_log( __LINE__ . ' SMC_Sync_Support::get_terms array_keys( $active_taxonomies( {$current_type} ) ) = ' . var_export( array_keys( $active_taxonomies ), true ), 0 );
394
 
395
  $posts = implode( ',', array_merge( array( $parent_id ), $children ) );
396
  //error_log( __LINE__ . ' SMC_Sync_Support::get_terms $posts = ' . var_export( $posts, true ), 0 );
417
  //error_log( __LINE__ . ' SMC_Sync_Support::get_terms $results = ' . var_export( $results, true ), 0 );
418
 
419
  // Check for Default Post Category exclusion
420
+ if ( ( ( boolean) SMC_Settings_Support::get_option( 'exclude_default' ) ) && in_array( 'category', $taxonomies ) ) {
421
  if ( 'post' === $parent->post_type && 'auto-draft' !== $parent->post_status ) {
422
  $default_term_id = (integer) get_option( 'default_category' );
423
+ //error_log( __LINE__ ." SMC_Sync_Support::get_terms \$default_term_id = " . var_export( $default_term_id, true ), 0 );
424
+ if ( !empty( $results[ $parent_id ]['category'] ) ) {
425
+ foreach ( $results[ $parent_id ]['category'] as $index => $term ) {
426
  //error_log( __LINE__ ." SMC_Sync_Support::get_terms ( category, {$index} ) \$term = " . var_export( $term, true ), 0 );
427
+ if ( $default_term_id === $index ) {
428
+ unset( $results[ $parent_id ]['category'][ $index ] );
429
+ }
430
  }
431
+ } // !empty
432
  } // type === post
433
  //error_log( __LINE__ ." SMC_Sync_Support::get_terms ( category ) revised \$results = " . var_export( $results, true ), 0 );
434
  } // exclude category
examples/plugins/smart-media-categories/public/class-smart-media-categories.php CHANGED
@@ -25,7 +25,7 @@ class Smart_Media_Categories {
25
  *
26
  * @var string
27
  */
28
- const VERSION = '1.1.6';
29
 
30
  /**
31
  * Unique identifier for your plugin.
25
  *
26
  * @var string
27
  */
28
+ const VERSION = '1.1.7';
29
 
30
  /**
31
  * Unique identifier for your plugin.
examples/plugins/smart-media-categories/smart-media-categories.php CHANGED
@@ -14,7 +14,7 @@
14
  * Plugin Name: Smart Media Categories
15
  * Plugin URI: http://davidlingren.com/
16
  * Description: Assigns taxonomy terms to Media Library items based on the terms of their parent post/page.
17
- * Version: 1.1.6
18
  * Author: David Lingren
19
  * Author URI: http://davidlingren.com/
20
  * Text Domain: smart-media-categories
@@ -85,6 +85,15 @@ if ( is_admin() /* && ( ! defined( 'DOING_AJAX' ) || ! DOING_AJAX ) */ ) {
85
  //error_log( __LINE__ . ' smart-media-categories.php is_admin() Support _REQUEST = ' . var_export( $_REQUEST, true ), 0 );
86
  }
87
 
 
 
 
 
 
 
 
 
 
88
  // Look for Postie chron job
89
  if ( isset( $_REQUEST['doing_wp_cron'] ) && class_exists( 'Postie', false ) ) {
90
  require_once( plugin_dir_path( __FILE__ ) . 'admin/class-smart-media-categories-admin.php' );
14
  * Plugin Name: Smart Media Categories
15
  * Plugin URI: http://davidlingren.com/
16
  * Description: Assigns taxonomy terms to Media Library items based on the terms of their parent post/page.
17
+ * Version: 1.1.7
18
  * Author: David Lingren
19
  * Author URI: http://davidlingren.com/
20
  * Text Domain: smart-media-categories
85
  //error_log( __LINE__ . ' smart-media-categories.php is_admin() Support _REQUEST = ' . var_export( $_REQUEST, true ), 0 );
86
  }
87
 
88
+ // WP REST API calls need everything loaded to process uploads
89
+ if ( isset( $_SERVER['REQUEST_URI'] ) && 0 === strpos( $_SERVER['REQUEST_URI'], '/wp-json/' ) ) { // phpcs:ignore
90
+ require_once( plugin_dir_path( __FILE__ ) . 'admin/class-smart-media-categories-admin.php' );
91
+ add_action( 'plugins_loaded', array( 'Smart_Media_Categories_Admin', 'get_instance' ) );
92
+ //error_log( __LINE__ . ' smart-media-categories.php /wp-json/ Support _REQUEST = ' . var_export( $_REQUEST, true ), 0 );
93
+ }
94
+
95
+
96
+
97
  // Look for Postie chron job
98
  if ( isset( $_REQUEST['doing_wp_cron'] ) && class_exists( 'Postie', false ) ) {
99
  require_once( plugin_dir_path( __FILE__ ) . 'admin/class-smart-media-categories-admin.php' );
includes/class-mla-ajax.php CHANGED
@@ -172,7 +172,8 @@ class MLA_Ajax {
172
  }
173
  }
174
 
175
- add_action( 'wp_ajax_' . 'mla_find_posts', 'MLA_Ajax::mla_find_posts_ajax_action' );
 
176
  add_action( 'wp_ajax_' . MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', 'MLA_Ajax::mla_set_parent_ajax_action' );
177
  }
178
 
@@ -288,6 +289,112 @@ class MLA_Ajax {
288
  die();
289
  } // mla_named_transfer_ajax_action
290
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
291
  /**
292
  * Ajax handler to fetch candidates for the "Set Parent" popup window
293
  *
@@ -301,7 +408,7 @@ class MLA_Ajax {
301
  public static function mla_find_posts_ajax_action() {
302
  global $wpdb;
303
 
304
- check_ajax_referer( 'mla_find_posts', MLACore::MLA_ADMIN_NONCE_NAME );
305
 
306
  $post_types = get_post_types( array( 'public' => true ), 'objects' );
307
  unset( $post_types['attachment'] );
@@ -377,7 +484,7 @@ class MLA_Ajax {
377
  $html .= "</tbody></table>\n";
378
 
379
  wp_send_json_success( $html );
380
- }
381
 
382
  /**
383
  * Ajax handler to set post_parent for a single attachment
@@ -440,12 +547,10 @@ class MLA_Ajax {
440
 
441
  $MLAListTable->single_row( $new_item );
442
  die(); // this is required to return a proper result
443
- }
444
  } // Class MLA_Ajax
445
 
446
- /*
447
- * Check for Media Manager Enhancements
448
- */
449
  if ( ( ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TOOLBAR ) ) || ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_GRID_TOOLBAR ) ) ) ) {
450
  require_once( MLA_PLUGIN_PATH . 'includes/class-mla-media-modal-ajax.php' );
451
  add_action( 'init', 'MLAModal_Ajax::initialize', 0x7FFFFFFF );
172
  }
173
  }
174
 
175
+ add_action( 'wp_ajax_' . MLACore::JAVASCRIPT_EXPORT_PRESETS_SLUG, 'MLA_Ajax::mla_bulk_edit_form_presets_action' );
176
+ add_action( 'wp_ajax_' . MLACore::JAVASCRIPT_FIND_POSTS_SLUG, 'MLA_Ajax::mla_find_posts_ajax_action' );
177
  add_action( 'wp_ajax_' . MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', 'MLA_Ajax::mla_set_parent_ajax_action' );
178
  }
179
 
289
  die();
290
  } // mla_named_transfer_ajax_action
291
 
292
+ /**
293
+ * Ajax handler to fetch candidates for the "Set Parent" popup window
294
+ *
295
+ * Adapted from wp_ajax_find_posts in /wp-admin/includes/ajax-actions.php.
296
+ * Adds filters for post type and pagination.
297
+ *
298
+ * @since 1.90
299
+ *
300
+ * @return void passes results to wp_send_json_success() for JSON encoding and transmission
301
+ */
302
+ public static function mla_bulk_edit_form_presets_action() {
303
+ //error_log( __LINE__ . ' MLA_Ajax::mla_bulk_edit_form_presets_action _REQUEST = ' . var_export( $_REQUEST, true ), 0 );
304
+ check_ajax_referer( MLACore::JAVASCRIPT_EXPORT_PRESETS_SLUG, MLACore::MLA_ADMIN_NONCE_NAME );
305
+
306
+ if ( empty( $_REQUEST['mla_preset_values'] ) ) {
307
+ wp_send_json_error( 'ERROR: MLA Preset Values String is empty' );
308
+ }
309
+
310
+ if ( empty( $_REQUEST['mla_preset_option'] ) ) {
311
+ wp_send_json_error( 'ERROR: MLA Preset Option Name is empty' );
312
+ }
313
+
314
+ /*
315
+ * Clean up the inputs, which have everything from the enclosing <form>.
316
+ * wp_parse_args converts plus signs to spaces, which we must avoid.
317
+ */
318
+ if ( current_user_can( 'unfiltered_html' ) ) {
319
+ $args = trim( wp_unslash( $_REQUEST['mla_preset_values'] ) ); // phpcs:ignore
320
+ } else {
321
+ $args = trim( wp_kses( wp_unslash( $_REQUEST['mla_preset_values'] ), 'post' ) );
322
+ }
323
+
324
+ $args = wp_parse_args( str_replace( array( '%2B', '&amp;' ), array( 'urlencodedmlaplussign', '&' ), $args ) );
325
+ foreach ( $args as $key => $arg ) {
326
+ if ( is_string( $arg ) ) {
327
+ $args[ $key ] = str_replace( 'urlencodedmlaplussign', '+', $arg );
328
+ }
329
+ }
330
+
331
+ /*
332
+ * The category taxonomy (edit screens) is a special case because
333
+ * post_categories_meta_box() changes the input name
334
+ */
335
+ if ( !isset( $args['tax_input'] ) ) {
336
+ $args['tax_input'] = array();
337
+ }
338
+
339
+ if ( isset( $args['post_category'] ) ) {
340
+ $args['tax_input']['category'] = $args['post_category'];
341
+ unset ( $args['post_category'] );
342
+ }
343
+
344
+ foreach( $args['tax_input'] as $taxonomy => $terms ) {
345
+ if ( is_array( $terms ) ) {
346
+ $clean_terms = array();
347
+
348
+ foreach( $terms as $term ) {
349
+ if ( (integer) $term ) {
350
+ $clean_terms[] = (integer) $term;
351
+ }
352
+ }
353
+
354
+ if ( !empty( $clean_terms ) ) {
355
+ $args['tax_input'][ $taxonomy ] = $clean_terms;
356
+ } else {
357
+ unset( $args['tax_input'][ $taxonomy ] );
358
+ }
359
+ } else {
360
+ $clean_terms = trim( $terms, ', ' );
361
+
362
+ if ( !empty( $clean_terms ) ) {
363
+ $args['tax_input'][ $taxonomy ] = $clean_terms;
364
+ } else {
365
+ unset( $args['tax_input'][ $taxonomy ] );
366
+ }
367
+ }
368
+ }
369
+
370
+ $args['custom_fields'] = array();
371
+ foreach (MLACore::mla_custom_field_support( 'bulk_edit' ) as $slug => $details ) {
372
+ //error_log( __LINE__ . " MLA_Ajax::mla_bulk_edit_form_presets_action {$slug} = " . var_export( $details, true ), 0 );
373
+ if ( !empty( $args[ $slug ] ) ) {
374
+ $args['custom_fields'][ esc_attr( $details['name'] ) ] = $args[ $slug ];
375
+ }
376
+ }
377
+ //error_log( __LINE__ . ' MLA_Ajax::mla_bulk_edit_form_presets_action args = ' . var_export( $args, true ), 0 );
378
+
379
+ // Get a "blank" presets array we can fill in with current settings
380
+ $presets = MLAEdit::mla_get_bulk_edit_form_presets( $_REQUEST['mla_preset_option'], true );
381
+
382
+ foreach ( $presets as $key => $value ) {
383
+ if ( !empty( $args[ $key ] ) ) {
384
+ $presets[ $key ] = $args[ $key ];
385
+ }
386
+ }
387
+ //error_log( __LINE__ . ' MLA_Ajax::mla_bulk_edit_form_presets_action presets = ' . var_export( $presets, true ), 0 );
388
+
389
+ if ( false === MLAEdit::mla_update_bulk_edit_form_presets( $_REQUEST['mla_preset_option'], $presets ) ) {
390
+ // false may simply mean that the value didn't change, so ignore it
391
+ // wp_send_json_error( 'ERROR: Presets update failed' );
392
+ }
393
+
394
+ $html = MLAEdit::mla_generate_bulk_edit_form_fieldsets( $presets, 'mla_upload_bulk_edit_form_preset' );
395
+ wp_send_json_success( $html );
396
+ } // mla_bulk_edit_form_presets_action
397
+
398
  /**
399
  * Ajax handler to fetch candidates for the "Set Parent" popup window
400
  *
408
  public static function mla_find_posts_ajax_action() {
409
  global $wpdb;
410
 
411
+ check_ajax_referer( MLACore::JAVASCRIPT_FIND_POSTS_SLUG, MLACore::MLA_ADMIN_NONCE_NAME );
412
 
413
  $post_types = get_post_types( array( 'public' => true ), 'objects' );
414
  unset( $post_types['attachment'] );
484
  $html .= "</tbody></table>\n";
485
 
486
  wp_send_json_success( $html );
487
+ } // mla_find_posts_ajax_action
488
 
489
  /**
490
  * Ajax handler to set post_parent for a single attachment
547
 
548
  $MLAListTable->single_row( $new_item );
549
  die(); // this is required to return a proper result
550
+ } // mla_set_parent_ajax_action
551
  } // Class MLA_Ajax
552
 
553
+ // Check for Media Manager Enhancements
 
 
554
  if ( ( ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TOOLBAR ) ) || ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_GRID_TOOLBAR ) ) ) ) {
555
  require_once( MLA_PLUGIN_PATH . 'includes/class-mla-media-modal-ajax.php' );
556
  add_action( 'init', 'MLAModal_Ajax::initialize', 0x7FFFFFFF );
includes/class-mla-core-options.php CHANGED
@@ -362,6 +362,26 @@ class MLACoreOptions {
362
  */
363
  const MLA_DEBUG_REPLACE_LEVEL = 'debug_replace_level';
364
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
365
  /**
366
  * $mla_option_definitions defines the database options and admin page areas for setting/updating them
367
  *
@@ -406,9 +426,7 @@ class MLACoreOptions {
406
  */
407
  public static function mla_localize_option_definitions_array() {
408
  self::$mla_option_definitions = array (
409
- /*
410
- * This option records the highest MLA version so-far installed
411
- */
412
  self::MLA_VERSION_OPTION =>
413
  array('tab' => '',
414
  'type' => 'hidden',
@@ -687,6 +705,13 @@ class MLACoreOptions {
687
  'size' => 5,
688
  'help' => __( 'Enter the size of the Bulk Edit and Map All processing chunks', 'media-library-assistant' )),
689
 
 
 
 
 
 
 
 
690
  'taxonomy_filter_subheader' =>
691
  array('tab' => 'general',
692
  'name' => __( 'Taxonomy Filter parameters', 'media-library-assistant' ),
@@ -796,6 +821,13 @@ class MLACoreOptions {
796
  'std' => '',
797
  'help' => __( 'Check this option to automatically open the "Bulk Edit area" when the Media/Add New screen is displayed.', 'media-library-assistant' )),
798
 
 
 
 
 
 
 
 
799
  'media_modal_header' =>
800
  array('tab' => 'general',
801
  'name' => __( 'Media Manager/Media Grid Enhancements', 'media-library-assistant' ),
@@ -1445,6 +1477,44 @@ class MLACoreOptions {
1445
  'std' => '',
1446
  'help' => __( 'Check this option to add Parent, Term ID and Term-Taxonomy ID columns to the taxonomy edit admin submenu tables.', 'media-library-assistant' )),
1447
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1448
  /* Here are examples of the other option types
1449
  'textarea' =>
1450
  array('tab' => '',
362
  */
363
  const MLA_DEBUG_REPLACE_LEVEL = 'debug_replace_level';
364
 
365
+ /**
366
+ * Provides a unique name for the Media/Add New Bulk Edit Area presets
367
+ */
368
+ const MLA_UPLOAD_BULK_EDIT_PRESETS = 'mla_upload_bulk_edit_presets';
369
+
370
+ /**
371
+ * Provides a unique name for the Media/Add New Bulk Edit Area presets "per user" option
372
+ */
373
+ const MLA_UPLOAD_BULK_EDIT_PRESETS_PER_USER = 'mla_upload_bulk_edit_presets_per_user';
374
+
375
+ /**
376
+ * Provides a unique name for the Media/Assistant Bulk Edit Area presets
377
+ */
378
+ const MLA_BULK_EDIT_PRESETS = 'mla_bulk_edit_presets';
379
+
380
+ /**
381
+ * Provides a unique name for the Media/Assistant Bulk Edit Area presets "per user" option
382
+ */
383
+ const MLA_BULK_EDIT_PRESETS_PER_USER = 'mla_bulk_edit_presets_per_user';
384
+
385
  /**
386
  * $mla_option_definitions defines the database options and admin page areas for setting/updating them
387
  *
426
  */
427
  public static function mla_localize_option_definitions_array() {
428
  self::$mla_option_definitions = array (
429
+ // This option records the highest MLA version so-far installed
 
 
430
  self::MLA_VERSION_OPTION =>
431
  array('tab' => '',
432
  'type' => 'hidden',
705
  'size' => 5,
706
  'help' => __( 'Enter the size of the Bulk Edit and Map All processing chunks', 'media-library-assistant' )),
707
 
708
+ self::MLA_BULK_EDIT_PRESETS_PER_USER =>
709
+ array('tab' => 'general',
710
+ 'name' => __( 'Store presets per-user', 'media-library-assistant' ),
711
+ 'type' => 'checkbox',
712
+ 'std' => '',
713
+ 'help' => __( 'Check this option to store separate Bulk Edit presets for each user.', 'media-library-assistant' )),
714
+
715
  'taxonomy_filter_subheader' =>
716
  array('tab' => 'general',
717
  'name' => __( 'Taxonomy Filter parameters', 'media-library-assistant' ),
821
  'std' => '',
822
  'help' => __( 'Check this option to automatically open the "Bulk Edit area" when the Media/Add New screen is displayed.', 'media-library-assistant' )),
823
 
824
+ self::MLA_UPLOAD_BULK_EDIT_PRESETS_PER_USER =>
825
+ array('tab' => 'general',
826
+ 'name' => __( 'Store presets per-user', 'media-library-assistant' ),
827
+ 'type' => 'checkbox',
828
+ 'std' => '',
829
+ 'help' => __( 'Check this option to store separate Bulk Edit presets for each user.', 'media-library-assistant' )),
830
+
831
  'media_modal_header' =>
832
  array('tab' => 'general',
833
  'name' => __( 'Media Manager/Media Grid Enhancements', 'media-library-assistant' ),
1477
  'std' => '',
1478
  'help' => __( 'Check this option to add Parent, Term ID and Term-Taxonomy ID columns to the taxonomy edit admin submenu tables.', 'media-library-assistant' )),
1479
 
1480
+ self::MLA_UPLOAD_BULK_EDIT_PRESETS =>
1481
+ array('tab' => '',
1482
+ 'type' => 'hidden',
1483
+ 'autoload' => false,
1484
+ 'std' => array (
1485
+ 'tax_input' => array(),
1486
+ 'tax_action' => array(),
1487
+ 'post_title' => '',
1488
+ 'post_excerpt' => '',
1489
+ 'post_content' => '',
1490
+ 'image_alt' => '',
1491
+ 'post_date' => '',
1492
+ 'post_parent' => '',
1493
+ 'post_author' => '-1',
1494
+ 'comment_status' => '-1',
1495
+ 'ping_status' => '-1',
1496
+ 'custom_fields' => array(),
1497
+ )),
1498
+
1499
+ self::MLA_BULK_EDIT_PRESETS =>
1500
+ array('tab' => '',
1501
+ 'type' => 'hidden',
1502
+ 'autoload' => false,
1503
+ 'std' => array (
1504
+ 'tax_input' => array(),
1505
+ 'tax_action' => array(),
1506
+ 'post_title' => '',
1507
+ 'post_excerpt' => '',
1508
+ 'post_content' => '',
1509
+ 'image_alt' => '',
1510
+ 'post_date' => '',
1511
+ 'post_parent' => '',
1512
+ 'post_author' => '-1',
1513
+ 'comment_status' => '-1',
1514
+ 'ping_status' => '-1',
1515
+ 'custom_fields' => array(),
1516
+ )),
1517
+
1518
  /* Here are examples of the other option types
1519
  'textarea' =>
1520
  array('tab' => '',
includes/class-mla-core.php CHANGED
@@ -21,7 +21,16 @@ class MLACore {
21
  *
22
  * @var string
23
  */
24
- const CURRENT_MLA_VERSION = '2.98';
 
 
 
 
 
 
 
 
 
25
 
26
  /**
27
  * Slug for registering and enqueueing plugin style sheets (moved from class-mla-main.php)
@@ -293,6 +302,24 @@ class MLACore {
293
  */
294
  const JAVASCRIPT_INLINE_EDIT_SLUG = 'mla-inline-edit-scripts';
295
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
296
  /**
297
  * Slug for the "query attachments" action - Add Media and related dialogs
298
  *
@@ -537,9 +564,9 @@ class MLACore {
537
  global $wp_locale;
538
 
539
  if ( $wp_locale->is_rtl() ) {
540
- wp_register_style( MLAModal::JAVASCRIPT_MEDIA_MODAL_STYLES . '-bb', MLA_PLUGIN_URL . 'css/mla-beaver-builder-style-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
541
  } else {
542
- wp_register_style( MLAModal::JAVASCRIPT_MEDIA_MODAL_STYLES . '-bb', MLA_PLUGIN_URL . 'css/mla-beaver-builder-style.css', false, MLACore::CURRENT_MLA_VERSION );
543
  }
544
 
545
  wp_enqueue_style( MLAModal::JAVASCRIPT_MEDIA_MODAL_STYLES . '-bb' );
@@ -637,7 +664,7 @@ class MLACore {
637
  if ( $mla_reporting ) {
638
  MLACore::$mla_debug_level = $mla_reporting | 1;
639
  if ( class_exists( 'MLA' ) && ! ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] === 'heartbeat' ) ) {
640
- MLACore::mla_debug_add( __LINE__ . sprintf( ' MLACore::mla_plugins_loaded_action() MLA %s (%s) mla_debug_level 0x%X', MLACore::CURRENT_MLA_VERSION, MLA::MLA_DEVELOPMENT_VERSION, MLACore::$mla_debug_level, true ), MLACore::MLA_DEBUG_CATEGORY_ANY );
641
 
642
  if ( ( MLACore::$mla_debug_level & MLACore::MLA_DEBUG_CATEGORY_METADATA ) && isset( $_SERVER['REQUEST_URI'] ) ) {
643
  $is_wplr_sync = false !== strpos( $_SERVER['REQUEST_URI'], '/?wplr-sync-api' ); // phpcs:ignore
@@ -675,6 +702,20 @@ class MLACore {
675
  } // MLA_DEBUG_LEVEL & 1
676
  }
677
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
678
  /**
679
  * Create a NONCE URL that works in WP 3.5.x and later
680
  *
@@ -1181,7 +1222,7 @@ class MLACore {
1181
  $index = 0;
1182
 
1183
  foreach ( $option_values as $key => $value ) {
1184
- if ( false === $value['active'] ) {
1185
  continue;
1186
  }
1187
 
@@ -1251,15 +1292,17 @@ class MLACore {
1251
  );
1252
 
1253
  $specification = self::mla_parse_view_specification( $specification );
1254
- if ( 'mime' == $specification['prefix'] ) {
1255
- $query['post_mime_type'] = $specification['value'];
1256
- } else {
 
 
1257
  $meta_query = array( 'slug' => $slug , 'relation' => 'OR', 'patterns' => array () );
1258
- switch( $specification['option'] ) {
1259
  case 'match':
1260
- $patterns = array_map( 'trim', explode( ',', $specification['value'] ) );
1261
  foreach ( (array) $patterns as $pattern ) {
1262
- $meta_key = ( !empty( $specification['name'] ) ) ? array( 'key' => $specification['name'] ) : array();
1263
  $pattern = preg_replace( '/\*+/', '%', $pattern );
1264
  if ( false !== strpos( $pattern, '%' ) ) {
1265
  // Preserve the pattern - it will be used in the "where" filter
@@ -1276,15 +1319,15 @@ class MLACore {
1276
 
1277
  break;
1278
  case 'null':
1279
- if ( !empty( $specification['name'] ) ) {
1280
- $meta_query['key'] = $specification['name'];
1281
  }
1282
 
1283
  $meta_query['value'] = 'NULL';
1284
  break;
1285
  default: // '', 'any'
1286
- if ( !empty( $specification['name'] ) ) {
1287
- $meta_query[] = array( 'key' => $specification['name'], 'value' => NULL, 'compare' => '!=' );
1288
  } else {
1289
  $meta_query[] = array( 'value' => NULL, 'compare' => '!=' );
1290
  }
@@ -1293,7 +1336,7 @@ class MLACore {
1293
  $query['meta_query'] = $meta_query;
1294
  } // custom field specification
1295
 
1296
- //error_log( __LINE__ . ' MLACore::mla_prepare_view_query query = ' . var_export( $query, true ), 0 );
1297
  return $query;
1298
  }
1299
 
@@ -1307,15 +1350,34 @@ class MLACore {
1307
  * @return array ( ['prefix'] => string, ['name'] => string, ['value'] => string, ['option'] => string, optional ['error'] => string )
1308
  */
1309
  public static function mla_parse_view_specification( $specification ) {
1310
- if ( is_array( $specification ) ) {
1311
- $specification = @implode( ',', $specification );
1312
- }
1313
  //error_log( __LINE__ . ' MLACore::mla_parse_view_specification specification = ' . var_export( $specification, true ), 0 );
1314
 
1315
- $result = array( 'prefix' => '', 'name' => '', 'value' => '', 'option' => '' );
1316
- $match_count = preg_match( '/^(.+):(.+)/', $specification, $matches );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1317
  if ( 1 == $match_count ) {
1318
- $result['prefix'] = trim( strtolower( $matches[1] ) );
 
1319
  $tail = $matches[2];
1320
  //error_log( __LINE__ . ' MLACore::mla_parse_view_specification tail = ' . var_export( $tail, true ), 0 );
1321
 
@@ -1324,9 +1386,9 @@ class MLACore {
1324
  $match_count = preg_match( '/([^=]+)((=)(.*))$/', $tail, $matches );
1325
  if ( 1 == $match_count ) {
1326
  //error_log( __LINE__ . ' MLACore::mla_parse_view_specification matches = ' . var_export( $matches, true ), 0 );
1327
- $result['name'] = explode( ',', $matches[1] );
1328
  // Flag multiple field names for preservation
1329
- if ( 1 < count( $result['name'] ) ) {
1330
  $tail = $flag . $matches[2];
1331
  }
1332
  }
@@ -1336,50 +1398,52 @@ class MLACore {
1336
  //error_log( __LINE__ . ' MLACore::mla_parse_view_specification matches = ' . var_export( $matches, true ), 0 );
1337
  // Preserve multiple field names, handle "any field"; name = *
1338
  if ( $flag !== $matches[1] ) {
1339
- $result['name'] = ( '*' === $matches[1] ) ? '' : $matches[1];
1340
  }
1341
 
1342
  if ( ',' == $matches[3] ) {
1343
- $result['option'] = trim( strtolower( $matches[4] ));
1344
  } else {
1345
  if ( empty( $matches[4] ) ) {
1346
- $result['option'] = 'null';
1347
  } elseif ( '*' == $matches[4] ) {
1348
- $result['option'] = 'any';
1349
  } else {
1350
- $result['option'] = 'match';
1351
- $result['value'] = $matches[4];
1352
  }
1353
  }
1354
  } else {
1355
- $result['option'] = 'any';
1356
- $result['name'] = $tail;
1357
  }
1358
- } else {
1359
- $result['prefix'] = 'mime';
1360
- $result['value'] = $specification;
1361
  }
1362
-
1363
- // Validate the results
1364
- if ( 'mime' == $result['prefix'] ) {
1365
- $mime_types = array_map( 'trim', explode( ',', $result['value'] ) );
1366
- foreach ( (array) $mime_types as $raw_mime_type ) {
1367
- $no_wildcards = str_replace( '*', 'X', $raw_mime_type );
1368
- $clean_mime_type = sanitize_mime_type( $no_wildcards );
1369
- if ( $clean_mime_type != $no_wildcards ) {
1370
- /* translators: 1: ERROR tag 2: raw_mime_type */
1371
- $result['error'] = '<br>' . sprintf( __( '%1$s: Bad specification part "%2$s"', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $raw_mime_type );
1372
- }
1373
- } // foreach
1374
- } elseif ( 'custom' == $result['prefix'] ) {
1375
- if ( ! in_array( $result['option'], array( '', 'any', 'match', 'null' ) ) ) {
 
 
 
 
1376
  /* translators: 1: ERROR tag 2: option, e.g., any, match, null */
1377
- $result['error'] = '<br>' . sprintf( __( '%1$s: Bad specification option "%2$s"', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $result['option'] );
1378
  }
1379
  } else {
1380
  /* translators: 1: ERROR tag 2: prefix, e.g., custom */
1381
- $result['error'] = '<br>' . sprintf( __( '%1$s: Bad specification prefix "%2$s"', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $result['prefix'] );
1382
  }
 
1383
 
1384
  //error_log( __LINE__ . ' MLACore::mla_parse_view_specification result = ' . var_export( $result, true ), 0 );
1385
  return $result;
21
  *
22
  * @var string
23
  */
24
+ const CURRENT_MLA_VERSION = '2.99';
25
+
26
+ /**
27
+ * Current date for Development Versions, empty for production versions
28
+ *
29
+ * @since 2.99
30
+ *
31
+ * @var string
32
+ */
33
+ const MLA_DEVELOPMENT_VERSION = '';
34
 
35
  /**
36
  * Slug for registering and enqueueing plugin style sheets (moved from class-mla-main.php)
302
  */
303
  const JAVASCRIPT_INLINE_EDIT_SLUG = 'mla-inline-edit-scripts';
304
 
305
+ /**
306
+ * Slug for "Find Posts" - fetch candidates for the "Set Parent" popup window
307
+ *
308
+ * @since 2.99
309
+ *
310
+ * @var string
311
+ */
312
+ const JAVASCRIPT_FIND_POSTS_SLUG = 'mla-find-posts';
313
+
314
+ /**
315
+ * Slug for the Upload Bulk Edit presets "export" action
316
+ *
317
+ * @since 2.99
318
+ *
319
+ * @var string
320
+ */
321
+ const JAVASCRIPT_EXPORT_PRESETS_SLUG = 'mla-export-presets';
322
+
323
  /**
324
  * Slug for the "query attachments" action - Add Media and related dialogs
325
  *
564
  global $wp_locale;
565
 
566
  if ( $wp_locale->is_rtl() ) {
567
+ wp_register_style( MLAModal::JAVASCRIPT_MEDIA_MODAL_STYLES . '-bb', MLA_PLUGIN_URL . 'css/mla-beaver-builder-style-rtl.css', false, MLACore::mla_script_version() );
568
  } else {
569
+ wp_register_style( MLAModal::JAVASCRIPT_MEDIA_MODAL_STYLES . '-bb', MLA_PLUGIN_URL . 'css/mla-beaver-builder-style.css', false, MLACore::mla_script_version() );
570
  }
571
 
572
  wp_enqueue_style( MLAModal::JAVASCRIPT_MEDIA_MODAL_STYLES . '-bb' );
664
  if ( $mla_reporting ) {
665
  MLACore::$mla_debug_level = $mla_reporting | 1;
666
  if ( class_exists( 'MLA' ) && ! ( isset( $_REQUEST['action'] ) && $_REQUEST['action'] === 'heartbeat' ) ) {
667
+ MLACore::mla_debug_add( __LINE__ . sprintf( ' MLACore::mla_plugins_loaded_action() MLA %s (%s) mla_debug_level 0x%X', MLACore::CURRENT_MLA_VERSION, MLACore::MLA_DEVELOPMENT_VERSION, MLACore::$mla_debug_level, true ), MLACore::MLA_DEBUG_CATEGORY_ANY );
668
 
669
  if ( ( MLACore::$mla_debug_level & MLACore::MLA_DEBUG_CATEGORY_METADATA ) && isset( $_SERVER['REQUEST_URI'] ) ) {
670
  $is_wplr_sync = false !== strpos( $_SERVER['REQUEST_URI'], '/?wplr-sync-api' ); // phpcs:ignore
702
  } // MLA_DEBUG_LEVEL & 1
703
  }
704
 
705
+ /**
706
+ * Create version number for script files with/without Development Version date
707
+ *
708
+ * @since 2.99
709
+ *
710
+ * @return string Version number for wp_enqueue_script()
711
+ */
712
+ public static function mla_script_version() {
713
+ $script_version = MLACore::CURRENT_MLA_VERSION;
714
+ $script_version .= ( strlen( MLACore::MLA_DEVELOPMENT_VERSION ) ) ? '.' . MLACore::MLA_DEVELOPMENT_VERSION : '';
715
+
716
+ return $script_version;
717
+ }
718
+
719
  /**
720
  * Create a NONCE URL that works in WP 3.5.x and later
721
  *
1222
  $index = 0;
1223
 
1224
  foreach ( $option_values as $key => $value ) {
1225
+ if ( isset( $value['active'] ) &&( false === $value['active'] ) ) {
1226
  continue;
1227
  }
1228
 
1292
  );
1293
 
1294
  $specification = self::mla_parse_view_specification( $specification );
1295
+ if ( !empty( $specification['mime'] ) ) {
1296
+ $query['post_mime_type'] = $specification['mime']['value'];
1297
+ }
1298
+
1299
+ if ( !empty( $specification['custom'] ) ) {
1300
  $meta_query = array( 'slug' => $slug , 'relation' => 'OR', 'patterns' => array () );
1301
+ switch( $specification['custom']['option'] ) {
1302
  case 'match':
1303
+ $patterns = array_map( 'trim', explode( ',', $specification['custom']['value'] ) );
1304
  foreach ( (array) $patterns as $pattern ) {
1305
+ $meta_key = ( !empty( $specification['custom']['name'] ) ) ? array( 'key' => $specification['custom']['name'] ) : array();
1306
  $pattern = preg_replace( '/\*+/', '%', $pattern );
1307
  if ( false !== strpos( $pattern, '%' ) ) {
1308
  // Preserve the pattern - it will be used in the "where" filter
1319
 
1320
  break;
1321
  case 'null':
1322
+ if ( !empty( $specification['custom']['name'] ) ) {
1323
+ $meta_query['key'] = $specification['custom']['name'];
1324
  }
1325
 
1326
  $meta_query['value'] = 'NULL';
1327
  break;
1328
  default: // '', 'any'
1329
+ if ( !empty( $specification['custom']['name'] ) ) {
1330
+ $meta_query[] = array( 'key' => $specification['custom']['name'], 'value' => NULL, 'compare' => '!=' );
1331
  } else {
1332
  $meta_query[] = array( 'value' => NULL, 'compare' => '!=' );
1333
  }
1336
  $query['meta_query'] = $meta_query;
1337
  } // custom field specification
1338
 
1339
+ //error_log( __LINE__ . " MLACore::mla_prepare_view_query( {$slug} ) query = " . var_export( $query, true ), 0 );
1340
  return $query;
1341
  }
1342
 
1350
  * @return array ( ['prefix'] => string, ['name'] => string, ['value'] => string, ['option'] => string, optional ['error'] => string )
1351
  */
1352
  public static function mla_parse_view_specification( $specification ) {
1353
+ if ( is_array( $specification ) ) {
1354
+ $specification = @implode( ',', $specification );
1355
+ }
1356
  //error_log( __LINE__ . ' MLACore::mla_parse_view_specification specification = ' . var_export( $specification, true ), 0 );
1357
 
1358
+ $result = array( 'mime' => NULL, 'custom' => NULL );
1359
+
1360
+ // look for custom field query, must be at the end of the specification
1361
+ $custom_offset = strpos( $specification, 'custom:' );
1362
+ if ( false === $custom_offset ) {
1363
+ $result['mime'] = array( 'prefix' => 'mime', 'name' => '', 'value' => $specification, 'option' => '' );
1364
+ } else {
1365
+ $result['custom'] = array( 'prefix' => 'custom', 'name' => '', 'value' => substr( $specification, $custom_offset ), 'option' => '' );
1366
+
1367
+ if ( 0 < $custom_offset ) {
1368
+ // A MIME specification can precede the custom field query
1369
+ $result['mime'] = array( 'prefix' => 'mime', 'name' => '', 'value' => substr( $specification, 0, $custom_offset - 1 ), 'option' => '' );
1370
+ }
1371
+ }
1372
+ //error_log( __LINE__ . ' MLACore::mla_parse_view_specification result = ' . var_export( $result, true ), 0 );
1373
+
1374
+ if ( !empty( $result['custom'] ) ) {
1375
+ $match_count = preg_match( '/^(.+):(.+)/', $result['custom']['value'], $matches );
1376
+ $result['custom']['value'] = '';
1377
+
1378
  if ( 1 == $match_count ) {
1379
+ //error_log( __LINE__ . ' MLACore::mla_parse_view_specification matches = ' . var_export( $matches, true ), 0 );
1380
+ $result['custom']['prefix'] = trim( strtolower( $matches[1] ) );
1381
  $tail = $matches[2];
1382
  //error_log( __LINE__ . ' MLACore::mla_parse_view_specification tail = ' . var_export( $tail, true ), 0 );
1383
 
1386
  $match_count = preg_match( '/([^=]+)((=)(.*))$/', $tail, $matches );
1387
  if ( 1 == $match_count ) {
1388
  //error_log( __LINE__ . ' MLACore::mla_parse_view_specification matches = ' . var_export( $matches, true ), 0 );
1389
+ $result['custom']['name'] = explode( ',', $matches[1] );
1390
  // Flag multiple field names for preservation
1391
+ if ( 1 < count( $result['custom']['name'] ) ) {
1392
  $tail = $flag . $matches[2];
1393
  }
1394
  }
1398
  //error_log( __LINE__ . ' MLACore::mla_parse_view_specification matches = ' . var_export( $matches, true ), 0 );
1399
  // Preserve multiple field names, handle "any field"; name = *
1400
  if ( $flag !== $matches[1] ) {
1401
+ $result['custom']['name'] = ( '*' === $matches[1] ) ? '' : $matches[1];
1402
  }
1403
 
1404
  if ( ',' == $matches[3] ) {
1405
+ $result['custom']['option'] = trim( strtolower( $matches[4] ));
1406
  } else {
1407
  if ( empty( $matches[4] ) ) {
1408
+ $result['custom']['option'] = 'null';
1409
  } elseif ( '*' == $matches[4] ) {
1410
+ $result['custom']['option'] = 'any';
1411
  } else {
1412
+ $result['custom']['option'] = 'match';
1413
+ $result['custom']['value'] = $matches[4];
1414
  }
1415
  }
1416
  } else {
1417
+ $result['custom']['option'] = 'any';
1418
+ $result['custom']['name'] = $tail;
1419
  }
 
 
 
1420
  }
1421
+ } // !empty( $result['custom']
1422
+
1423
+ // Validate the results
1424
+ if ( !empty( $result['mime'] ) ) {
1425
+ $mime_types = array_map( 'trim', explode( ',', $result['mime']['value'] ) );
1426
+ foreach ( (array) $mime_types as $raw_mime_type ) {
1427
+ $no_wildcards = str_replace( '*', 'X', $raw_mime_type );
1428
+ $clean_mime_type = sanitize_mime_type( $no_wildcards );
1429
+ if ( $clean_mime_type != $no_wildcards ) {
1430
+ /* translators: 1: ERROR tag 2: raw_mime_type */
1431
+ $result['mime']['error'] = '<br>' . sprintf( __( '%1$s: Bad specification part "%2$s"', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $raw_mime_type );
1432
+ }
1433
+ } // foreach
1434
+ }
1435
+
1436
+ if ( !empty( $result['custom'] ) ) {
1437
+ if ( 'custom' === $result['custom']['prefix'] ) {
1438
+ if ( ! in_array( $result['custom']['option'], array( '', 'any', 'match', 'null' ) ) ) {
1439
  /* translators: 1: ERROR tag 2: option, e.g., any, match, null */
1440
+ $result['custom']['error'] = '<br>' . sprintf( __( '%1$s: Bad specification option "%2$s"', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $result['custom']['option'] );
1441
  }
1442
  } else {
1443
  /* translators: 1: ERROR tag 2: prefix, e.g., custom */
1444
+ $result['custom']['error'] = '<br>' . sprintf( __( '%1$s: Bad specification prefix "%2$s"', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $result['custom']['prefix'] );
1445
  }
1446
+ }
1447
 
1448
  //error_log( __LINE__ . ' MLACore::mla_parse_view_specification result = ' . var_export( $result, true ), 0 );
1449
  return $result;
includes/class-mla-data-query.php CHANGED
@@ -1078,6 +1078,7 @@ class MLAQuery {
1078
  // ignore anything else in $_REQUEST
1079
  } // switch $key
1080
  } // foreach $raw_request
 
1081
 
1082
  // Pass query and search parameters to the filters for _execute_list_table_query
1083
  self::$query_parameters = array( self::MLA_ALT_TEXT_SUBQUERY => false, self::MLA_FILE_SUBQUERY => false, self::MLA_TABLE_VIEW_SUBQUERY => false, self::MLA_ORDERBY_SUBQUERY => false, 'orderby' => $clean_request['orderby'], 'order' => $clean_request['order'] );
@@ -1090,7 +1091,7 @@ class MLAQuery {
1090
  */
1091
  if ( isset( $clean_request['meta_query']['key'] ) ) {
1092
  self::$query_parameters[self::MLA_TABLE_VIEW_SUBQUERY] = true;
1093
- self::$query_parameters['postmeta_key'] = $clean_request['meta_query']['key'];
1094
  self::$query_parameters['postmeta_value'] = NULL;
1095
  unset( $clean_request['meta_query'] );
1096
  } elseif ( isset( $clean_request['meta_query']['patterns'] ) ) {
@@ -1328,6 +1329,7 @@ class MLAQuery {
1328
  }
1329
 
1330
  //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query clean_request = " . var_export( $clean_request, true ), 0 );
 
1331
  //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query search_parameters = " . var_export( self::$search_parameters, true ), 0 );
1332
  return $clean_request;
1333
  }
1078
  // ignore anything else in $_REQUEST
1079
  } // switch $key
1080
  } // foreach $raw_request
1081
+ //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query( $offset, $count ) clean_request = " . var_export( $clean_request, true ), 0 );
1082
 
1083
  // Pass query and search parameters to the filters for _execute_list_table_query
1084
  self::$query_parameters = array( self::MLA_ALT_TEXT_SUBQUERY => false, self::MLA_FILE_SUBQUERY => false, self::MLA_TABLE_VIEW_SUBQUERY => false, self::MLA_ORDERBY_SUBQUERY => false, 'orderby' => $clean_request['orderby'], 'order' => $clean_request['order'] );
1091
  */
1092
  if ( isset( $clean_request['meta_query']['key'] ) ) {
1093
  self::$query_parameters[self::MLA_TABLE_VIEW_SUBQUERY] = true;
1094
+ self::$query_parameters['postmeta_key'] = implode( ',', (array) $clean_request['meta_query']['key'] );
1095
  self::$query_parameters['postmeta_value'] = NULL;
1096
  unset( $clean_request['meta_query'] );
1097
  } elseif ( isset( $clean_request['meta_query']['patterns'] ) ) {
1329
  }
1330
 
1331
  //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query clean_request = " . var_export( $clean_request, true ), 0 );
1332
+ //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query query_parameters = " . var_export( self::$query_parameters, true ), 0 );
1333
  //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query search_parameters = " . var_export( self::$search_parameters, true ), 0 );
1334
  return $clean_request;
1335
  }
includes/class-mla-data-source.php CHANGED
@@ -49,6 +49,10 @@ class MLAData_Source {
49
  'base_url',
50
  'base_dir',
51
 
 
 
 
 
52
  'absolute_path',
53
  'absolute_file_name',
54
  'base_file',
@@ -164,6 +168,7 @@ class MLAData_Source {
164
 
165
  $default_arguments = array(
166
  'data_source' => 'none',
 
167
  'keep_existing' => true,
168
  'format' => 'native',
169
  'meta_name' => '',
@@ -387,6 +392,7 @@ class MLAData_Source {
387
  }
388
 
389
  $data_source = $data_value['data_source'];
 
390
 
391
  // Do this once per page load; cache attachment metadata if mapping all attachments
392
  if ( NULL == $intermediate_sizes ) {
@@ -468,6 +474,7 @@ class MLAData_Source {
468
  if ( empty( $placeholder['prefix'] ) ) {
469
  $field_value = $data_value;
470
  $field_value['data_source'] = $placeholder['value'];
 
471
  $field_value['meta_name'] = '';
472
  $field_value['option'] = $placeholder['option'];
473
  $field_value['format'] = $placeholder['format'];
@@ -550,6 +557,48 @@ class MLAData_Source {
550
  case 'base_dir':
551
  $result = wptexturize( str_replace( '\\', '/', $upload_dir_array['basedir'] ) );
552
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
553
  case 'absolute_path':
554
  case 'absolute_file_name':
555
  case 'base_file':
49
  'base_url',
50
  'base_dir',
51
 
52
+ 'current_timestamp',
53
+ 'current_datetime',
54
+ 'current_getdate',
55
+
56
  'absolute_path',
57
  'absolute_file_name',
58
  'base_file',
168
 
169
  $default_arguments = array(
170
  'data_source' => 'none',
171
+ 'qualifier' => '',
172
  'keep_existing' => true,
173
  'format' => 'native',
174
  'meta_name' => '',
392
  }
393
 
394
  $data_source = $data_value['data_source'];
395
+ $qualifier = isset( $data_value['qualifier'] ) && ( 0 < strlen( $data_value['qualifier'] ) ) ? $data_value['qualifier'] : '';
396
 
397
  // Do this once per page load; cache attachment metadata if mapping all attachments
398
  if ( NULL == $intermediate_sizes ) {
474
  if ( empty( $placeholder['prefix'] ) ) {
475
  $field_value = $data_value;
476
  $field_value['data_source'] = $placeholder['value'];
477
+ $field_value['qualifier'] = $placeholder['qualifier'];
478
  $field_value['meta_name'] = '';
479
  $field_value['option'] = $placeholder['option'];
480
  $field_value['format'] = $placeholder['format'];
557
  case 'base_dir':
558
  $result = wptexturize( str_replace( '\\', '/', $upload_dir_array['basedir'] ) );
559
  break;
560
+ case 'current_timestamp':
561
+ switch ( strtolower( $qualifier ) ) {
562
+ case 'gmt':
563
+ $result = time();
564
+ break;
565
+ default:
566
+ $result = current_time( 'timestamp' );
567
+ }
568
+
569
+ break;
570
+ case 'current_datetime':
571
+ switch ( strtolower( $qualifier ) ) {
572
+ case 'gmt':
573
+ $result = time();
574
+ break;
575
+ default:
576
+ $result = current_time( 'timestamp' );
577
+ }
578
+
579
+ $result = date( 'Y:m:d H:i:s', $result );
580
+ break;
581
+ case 'current_getdate':
582
+ $qualifier = strtolower( $qualifier );
583
+ if ( 0 === strpos( $qualifier, 'gmt' ) ) {
584
+ $result = time();
585
+ $qualifier = substr( $qualifier, 3 );
586
+ } else {
587
+ $result = current_time( 'timestamp' );
588
+ }
589
+
590
+ $result = getdate( $result );
591
+
592
+ if ( '0' === $qualifier ) {
593
+ $result = $result[ 0 ];
594
+ } elseif ( empty( $qualifier ) ) {
595
+ $result = MLAData_Source::_evaluate_array_result( $result, $data_value['option'], $data_value['keep_existing'] );
596
+ } elseif ( isset( $result[ $qualifier ] ) ) {
597
+ $result = $result[ $qualifier ];
598
+ } else {
599
+ $result = '';
600
+ }
601
+ break;
602
  case 'absolute_path':
603
  case 'absolute_file_name':
604
  case 'base_file':
includes/class-mla-data.php CHANGED
@@ -889,26 +889,41 @@ class MLAData {
889
  * @return array Parameter components: prefix, value, qualifier, option, format, args
890
  */
891
  public static function mla_parse_substitution_parameter( $parameter, $default_option = 'text' ) {
 
 
892
  // Strip optional enclosing delimiters
893
  if ( 0 === strpos( $parameter, '[+' ) ) {
894
  $parameter = substr( $parameter, 2, (strlen( $parameter ) - 4 ) );
895
  }
896
 
897
  $result = array( 'prefix' => '', 'value' => '', 'qualifier' => '', 'option' => $default_option, 'format' => 'native', 'args' => '' );
898
- $match_count = preg_match( '/([^,:]+):(.+)/', $parameter, $matches );
 
 
 
899
  if ( 1 == $match_count ) {
900
- $result['prefix'] = $matches[1];
901
  $tail = $matches[2];
902
  } else {
903
- $tail = $parameter;
 
 
 
 
 
 
 
 
 
 
904
  }
905
 
906
- if ( false !== strpos( $tail, ',' ) ) {
907
- $match_count = preg_match( '/([^,]+)(,(text|single|export|unpack|array|multi|commas|raw|attr|url|kbmb|timestamp|date|fraction|substr|str_replace|match|extract|replace))(\((.*)\)$)*/', $tail, $matches );
 
908
  if ( 1 == $match_count ) {
909
- $result['value'] = $matches[1];
910
- if ( ! empty( $matches[5] ) ) {
911
- $args = self::_parse_arguments( $matches[5] );
912
 
913
  if ( 1 == count( $args ) ) {
914
  $args = $args[0];
@@ -917,33 +932,28 @@ class MLAData {
917
  $args = '';
918
  }
919
 
920
- if ( in_array( $matches[3], array( 'commas', 'raw', 'attr', 'url', 'kbmb', 'timestamp', 'date', 'fraction', 'substr', 'str_replace', 'match', 'extract', 'replace' ) ) ) {
921
  $result['option'] = 'text';
922
- $result['format'] = $matches[3];
923
  $result['args'] = $args;
924
  } else {
925
- $result['option'] = $matches[3];
926
  }
927
  } else {
928
- $match_count = preg_match( '/([^,]+),([^(]+)(\(([^)]+)\))*/', $tail, $matches );
929
  if ( 1 == $match_count ) {
930
- $result['value'] = $matches[1];
931
- $result['format'] = $matches[2];
932
 
933
- if ( ! empty( $matches[4] ) ) {
934
- $args = self::_parse_arguments( $matches[4] );
935
 
936
  if ( 1 == count( $args ) ) {
937
  $args = $args[0];
938
  }
939
  $result['args'] = $args;
940
  }
941
- } else {
942
- $result['value'] = $tail;
943
  }
944
  }
945
- } else {
946
- $result['value'] = $tail;
947
  }
948
 
949
  // Look for field/value qualifier
@@ -953,6 +963,7 @@ class MLAData {
953
  $result['qualifier'] = $matches[2];
954
  }
955
 
 
956
  return $result;
957
  }
958
 
@@ -1413,15 +1424,8 @@ class MLAData {
1413
  $markup_values[ $key ] = $text;
1414
  break;
1415
  case 'terms':
1416
- // Look for field specification
1417
- $match_count = preg_match( '/^(.+)\((.+)\)/', $value['value'], $matches );
1418
- if ( $match_count ) {
1419
- $taxonomy = $matches[1];
1420
- $field = $matches[2];
1421
- } else {
1422
- $taxonomy = $value['value'];
1423
- $field = 'name';
1424
- }
1425
 
1426
  // Look for compound taxonomy.slug notation
1427
  $matches = explode( '.', $taxonomy );
@@ -1613,6 +1617,7 @@ class MLAData {
1613
  if ( MLAShortcodes::mla_is_data_source( $candidate ) ) {
1614
  $data_value = array(
1615
  'data_source' => $candidate,
 
1616
  'keep_existing' => false,
1617
  'format' => 'raw',
1618
  'option' => $value['option'] ); // single, export, text for array values, e.g., alt_text
889
  * @return array Parameter components: prefix, value, qualifier, option, format, args
890
  */
891
  public static function mla_parse_substitution_parameter( $parameter, $default_option = 'text' ) {
892
+ //error_log( __LINE__ . ' mla_parse_substitution_parameter parameter = ' . var_export( $parameter, true ), 0 );
893
+
894
  // Strip optional enclosing delimiters
895
  if ( 0 === strpos( $parameter, '[+' ) ) {
896
  $parameter = substr( $parameter, 2, (strlen( $parameter ) - 4 ) );
897
  }
898
 
899
  $result = array( 'prefix' => '', 'value' => '', 'qualifier' => '', 'option' => $default_option, 'format' => 'native', 'args' => '' );
900
+
901
+ // Split the prefix, name and qualifier from the format/option code
902
+ $match_count = preg_match( '/([^,]+),(.+)/', $parameter, $matches );
903
+ //error_log( __LINE__ . ' mla_parse_substitution_parameter matches = ' . var_export( $matches, true ), 0 );
904
  if ( 1 == $match_count ) {
905
+ $name = $matches[1];
906
  $tail = $matches[2];
907
  } else {
908
+ $name = $parameter;
909
+ $tail = '';
910
+ }
911
+
912
+ $match_count = preg_match( '/([^:]+):(.+)/', $name, $matches );
913
+ //error_log( __LINE__ . ' mla_parse_substitution_parameter matches = ' . var_export( $matches, true ), 0 );
914
+ if ( 1 == $match_count ) {
915
+ $result['prefix'] = $matches[1];
916
+ $result['value'] = $matches[2];
917
+ } else {
918
+ $result['value'] = $name;
919
  }
920
 
921
+ if ( !empty( $tail ) ) {
922
+ $match_count = preg_match( '/((text|single|export|unpack|array|multi|commas|raw|attr|url|kbmb|timestamp|date|fraction|substr|str_replace|match|extract|replace))(\((.*)\)$)*/', $tail, $matches );
923
+ //error_log( __LINE__ . ' mla_parse_substitution_parameter matches = ' . var_export( $matches, true ), 0 );
924
  if ( 1 == $match_count ) {
925
+ if ( ! empty( $matches[4] ) ) {
926
+ $args = self::_parse_arguments( $matches[4] );
 
927
 
928
  if ( 1 == count( $args ) ) {
929
  $args = $args[0];
932
  $args = '';
933
  }
934
 
935
+ if ( in_array( $matches[2], array( 'commas', 'raw', 'attr', 'url', 'kbmb', 'timestamp', 'date', 'fraction', 'substr', 'str_replace', 'match', 'extract', 'replace' ) ) ) {
936
  $result['option'] = 'text';
937
+ $result['format'] = $matches[2];
938
  $result['args'] = $args;
939
  } else {
940
+ $result['option'] = $matches[2];
941
  }
942
  } else {
943
+ $match_count = preg_match( '/([^(]+)(\(([^)]+)\))*/', $tail, $matches );
944
  if ( 1 == $match_count ) {
945
+ $result['format'] = $matches[1];
 
946
 
947
+ if ( ! empty( $matches[3] ) ) {
948
+ $args = self::_parse_arguments( $matches[3] );
949
 
950
  if ( 1 == count( $args ) ) {
951
  $args = $args[0];
952
  }
953
  $result['args'] = $args;
954
  }
 
 
955
  }
956
  }
 
 
957
  }
958
 
959
  // Look for field/value qualifier
963
  $result['qualifier'] = $matches[2];
964
  }
965
 
966
+ //error_log( __LINE__ . ' mla_parse_substitution_parameter result = ' . var_export( $result, true ), 0 );
967
  return $result;
968
  }
969
 
1424
  $markup_values[ $key ] = $text;
1425
  break;
1426
  case 'terms':
1427
+ $taxonomy = $value['value'];
1428
+ $field = !empty( $value['qualifier'] ) ? $value['qualifier'] : 'name';
 
 
 
 
 
 
 
1429
 
1430
  // Look for compound taxonomy.slug notation
1431
  $matches = explode( '.', $taxonomy );
1617
  if ( MLAShortcodes::mla_is_data_source( $candidate ) ) {
1618
  $data_value = array(
1619
  'data_source' => $candidate,
1620
+ 'qualifier' => $value['qualifier'],
1621
  'keep_existing' => false,
1622
  'format' => 'raw',
1623
  'option' => $value['option'] ); // single, export, text for array values, e.g., alt_text
includes/class-mla-edit-media.php CHANGED
@@ -154,11 +154,11 @@ class MLAEdit {
154
  // Add New Bulk Edit Area
155
  if ( 'media-new.php' == $page_hook && ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_ADD_NEW_BULK_EDIT ) ) ) {
156
  if ( $wp_locale->is_rtl() ) {
157
- wp_register_style( 'mla-add-new-bulk-edit', MLA_PLUGIN_URL . 'css/mla-add-new-bulk-edit-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
158
- wp_register_style( 'mla-add-new-bulk-edit' . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
159
  } else {
160
- wp_register_style( 'mla-add-new-bulk-edit', MLA_PLUGIN_URL . 'css/mla-add-new-bulk-edit.css', false, MLACore::CURRENT_MLA_VERSION );
161
- wp_register_style( 'mla-add-new-bulk-edit' . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, MLACore::CURRENT_MLA_VERSION );
162
  }
163
 
164
  wp_enqueue_style( 'mla-add-new-bulk-edit' );
@@ -166,15 +166,15 @@ class MLAEdit {
166
 
167
  // 'suggest' loads the script for flat taxonomy auto-complete/suggested matches
168
  wp_enqueue_script( 'mla-add-new-bulk-edit-scripts', MLA_PLUGIN_URL . "js/mla-add-new-bulk-edit-scripts{$suffix}.js",
169
- array( 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
170
 
171
  if ( MLACore::mla_supported_taxonomies( 'checklist-add-term' ) ) {
172
  wp_enqueue_script( 'mla-add-new-bulk-edit-scripts' . '-add-term', MLA_PLUGIN_URL . "js/mla-add-term-scripts{$suffix}.js",
173
- array( 'wp-ajax-response', 'jquery', 'mla-add-new-bulk-edit-scripts' ), MLACore::CURRENT_MLA_VERSION, false );
174
  }
175
 
176
  wp_enqueue_script( 'mla-add-new-bulk-edit-scripts' . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
177
- array( 'mla-add-new-bulk-edit-scripts', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
178
 
179
  $script_variables = array(
180
  'uploadTitle' => __( 'Upload New Media items', 'media-library-assistant' ),
@@ -185,6 +185,9 @@ class MLAEdit {
185
  'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
186
  'ajaxFailError' => __( 'An ajax.fail error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
187
  'ajaxDoneError' => __( 'An ajax.done error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
 
 
 
188
  'useDashicons' => false,
189
  'useSpinnerClass' => false,
190
  );
@@ -222,23 +225,24 @@ class MLAEdit {
222
  * Media/Edit Media submenu
223
  * Register and queue the style sheet, if needed
224
  */
225
- wp_register_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES, MLA_PLUGIN_URL . 'css/mla-edit-media-style.css', false, MLACore::CURRENT_MLA_VERSION );
226
  wp_enqueue_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES );
227
 
228
- wp_register_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, MLACore::CURRENT_MLA_VERSION );
229
  wp_enqueue_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES . '-set-parent' );
230
 
231
  wp_enqueue_script( self::JAVASCRIPT_EDIT_MEDIA_SLUG, MLA_PLUGIN_URL . "js/mla-edit-media-scripts{$suffix}.js",
232
- array( 'post', 'wp-lists', 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
233
 
234
  wp_enqueue_script( self::JAVASCRIPT_EDIT_MEDIA_SLUG . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
235
- array( 'post', 'wp-lists', 'suggest', 'jquery', self::JAVASCRIPT_EDIT_MEDIA_SLUG ), MLACore::CURRENT_MLA_VERSION, false );
236
 
237
  $script_variables = array(
238
  'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
239
  'Ajax_Url' => admin_url( 'admin-ajax.php' ),
240
  'ajaxFailError' => __( 'An ajax.fail error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
241
  'ajaxDoneError' => __( 'An ajax.done error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
 
242
  'uploadLabel' => sprintf( __( 'Uploaded on: %s' ), '' ),
243
  'modifyLabel' => __( 'Last modified', 'media-library-assistant' ) . ': ',
244
  'useDashicons' => false,
@@ -277,29 +281,132 @@ class MLAEdit {
277
  }
278
 
279
  /**
280
- * Echoes bulk edit area HTML to the Media/Add New screen
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
281
  *
282
  * Fires on the post upload UI screen; legacy (pre-3.5.0) upload interface.
283
  * Anything echoed here goes below the "Maximum upload file size" message
284
  * and above the id="media-items" div.
285
  *
286
- * @since 2.02
 
 
 
287
  *
288
  */
289
- public static function mla_post_upload_ui() {
290
- /*
291
- * Only add our form to the Media/Add New screen. In particular,
292
- * do NOT add it to the Media Manager Modal Window
293
- */
294
- if ( function_exists( 'get_current_screen' ) ) {
295
- $screen = get_current_screen();
296
- } else {
297
- $screen = NULL;
298
  }
299
 
300
- if ( is_object( $screen ) && ( 'add' != $screen->action || 'media' != $screen->base ) ) {
301
- return;
302
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
303
 
304
  $taxonomies = get_object_taxonomies( 'attachment', 'objects' );
305
 
@@ -315,44 +422,52 @@ class MLAEdit {
315
  }
316
  }
317
 
318
- $page_template_array = MLACore::mla_load_template( 'mla-add-new-bulk-edit.tpl' );
319
- if ( ! is_array( $page_template_array ) ) {
320
- /* translators: 1: ERROR tag 2: function name 3: non-array value */
321
- MLACore::mla_debug_add( sprintf( _x( '%1$s: %2$s non-array "%3$s"', 'error_log', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), 'MLAEdit::mla_post_upload_ui', var_export( $page_template_array, true ) ), MLACore::MLA_DEBUG_CATEGORY_ANY );
322
- return;
323
- }
324
-
325
- // The left-hand column contains the hierarchical taxonomies,e.g., Att. Category
326
  $category_fieldset = '';
327
 
 
 
 
 
 
 
 
 
328
  if ( count( $hierarchical_taxonomies ) ) {
329
  $bulk_category_blocks = '';
330
 
331
  foreach ( $hierarchical_taxonomies as $tax_name => $tax_object ) {
332
  if ( current_user_can( $tax_object->cap->assign_terms ) ) {
 
 
 
 
 
 
333
  ob_start();
334
- wp_terms_checklist( NULL, array( 'taxonomy' => $tax_name, 'popular_cats' => array(), ) );
335
  $tax_checklist = ob_get_contents();
336
  ob_end_clean();
337
 
338
  if ( MLACore::mla_taxonomy_support( $tax_name, 'checklist-add-term' ) ) {
339
- $page_values = array(
340
  'tax_attr' => esc_attr( $tax_name ),
341
  'Add New Term' => __( '+&nbsp;Add&nbsp;New&nbsp;Term', 'media-library-assistant' ),
342
  'Add Reader' => __( 'Add New', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->singular_name ),
343
  'tax_parents' => wp_dropdown_categories( array( 'taxonomy' => $tax_name, 'hide_empty' => 0, 'name' => "new{$tax_name}_parent", 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '&mdash; ' . $tax_object->labels->parent_item . ' &mdash;', 'echo' => 0 ) ),
344
  'Add Button' => esc_html( $tax_object->labels->add_new_item ),
345
- 'ajax_nonce_field' => wp_nonce_field( 'add-'.$tax_name, '_ajax_nonce-add-'.$tax_name, false ),
346
  );
347
 
348
- $category_add_link = MLAData::mla_parse_template( $page_template_array['category_add_link'], $page_values );
349
- $category_adder = MLAData::mla_parse_template( $page_template_array['category_adder'], $page_values );
350
  } else {
351
  $category_add_link = '';
352
  $category_adder = '';
353
  }
354
 
355
- $page_values = array(
356
  'tax_html' => esc_html( $tax_object->labels->name ),
357
  'tax_attr' => esc_attr( $tax_name ),
358
  'tax_checklist' => $tax_checklist,
@@ -360,21 +475,42 @@ class MLAEdit {
360
  'Search' => __( '?&nbsp;Search', 'media-library-assistant' ),
361
  'category_adder' => $category_adder,
362
  'Search Reader' => __( 'Search', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->name ),
 
 
 
363
  'Add' => __( 'Add', 'media-library-assistant' ),
364
  'Remove' => __( 'Remove', 'media-library-assistant' ),
365
  'Replace' => __( 'Replace', 'media-library-assistant' ),
366
  );
367
- $category_block = MLAData::mla_parse_template( $page_template_array['category_block'], $page_values );
368
- $taxonomy_options = MLAData::mla_parse_template( $page_template_array['taxonomy_options'], $page_values );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
369
 
370
  $bulk_category_blocks .= $category_block . $taxonomy_options;
371
  } // current_user_can
372
  } // foreach $hierarchical_taxonomies
373
 
374
- $page_values = array(
 
375
  'category_blocks' => $bulk_category_blocks
376
  );
377
- $category_fieldset = MLAData::mla_parse_template( $page_template_array['category_fieldset'], $page_values );
378
  } // count( $hierarchical_taxonomies )
379
 
380
  // The middle column contains the flat taxonomies, e.g., Att. Tag
@@ -386,29 +522,35 @@ class MLAEdit {
386
  foreach ( $flat_taxonomies as $tax_name => $tax_object ) {
387
  if ( current_user_can( $tax_object->cap->assign_terms ) ) {
388
  if ( MLACore::mla_taxonomy_support( $tax_name, 'flat-checklist' ) ) {
 
 
 
 
 
 
389
  ob_start();
390
- wp_terms_checklist( NULL, array( 'taxonomy' => $tax_name, 'popular_cats' => array(), ) );
391
  $tax_checklist = ob_get_contents();
392
  ob_end_clean();
393
 
394
  if ( MLACore::mla_taxonomy_support( $tax_name, 'checklist-add-term' ) ) {
395
- $page_values = array(
396
  'tax_attr' => esc_attr( $tax_name ),
397
  'Add New Term' => __( '+&nbsp;Add&nbsp;New&nbsp;Term', 'media-library-assistant' ),
398
  'Add Reader' => __( 'Add New', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->singular_name ),
399
  'tax_parents' => "<input type='hidden' name='new{$tax_name}_parent' id='new{$tax_name}_parent' value='-1' />",
400
  'Add Button' => esc_html( $tax_object->labels->add_new_item ),
401
- 'ajax_nonce_field' => wp_nonce_field( 'add-'.$tax_name, '_ajax_nonce-add-'.$tax_name, false ),
402
  );
403
 
404
- $category_add_link = MLAData::mla_parse_template( $page_template_array['category_add_link'], $page_values );
405
- $category_adder = MLAData::mla_parse_template( $page_template_array['category_adder'], $page_values );
406
  } else {
407
  $category_add_link = '';
408
  $category_adder = '';
409
  }
410
 
411
- $page_values = array(
412
  'tax_html' => esc_html( $tax_object->labels->name ),
413
  'tax_attr' => esc_attr( $tax_name ),
414
  'tax_checklist' => $tax_checklist,
@@ -416,35 +558,113 @@ class MLAEdit {
416
  'Search' => __( '?&nbsp;Search', 'media-library-assistant' ),
417
  'category_adder' => $category_adder,
418
  'Search Reader' => __( 'Search', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->name ),
 
 
 
419
  'Add' => __( 'Add', 'media-library-assistant' ),
420
  'Remove' => __( 'Remove', 'media-library-assistant' ),
421
  'Replace' => __( 'Replace', 'media-library-assistant' ),
422
  );
423
- $tag_block = MLAData::mla_parse_template( $page_template_array['category_block'], $page_values );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
424
  } else {
425
- $page_values = array(
 
 
 
 
 
 
426
  'tax_html' => esc_html( $tax_object->labels->name ),
427
  'tax_attr' => esc_attr( $tax_name ),
 
 
 
 
428
  'Add' => __( 'Add', 'media-library-assistant' ),
429
  'Remove' => __( 'Remove', 'media-library-assistant' ),
430
  'Replace' => __( 'Replace', 'media-library-assistant' ),
431
  );
432
- $tag_block = MLAData::mla_parse_template( $page_template_array['tag_block'], $page_values );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
433
  }
434
 
435
- $taxonomy_options = MLAData::mla_parse_template( $page_template_array['taxonomy_options'], $page_values );
436
  $bulk_tag_blocks .= $tag_block . $taxonomy_options;
437
  } // current_user_can
438
  } // foreach $flat_taxonomies
439
 
440
- $page_values = array(
 
441
  'tag_blocks' => $bulk_tag_blocks
442
  );
443
- $tag_fieldset = MLAData::mla_parse_template( $page_template_array['tag_fieldset'], $page_values );
444
  } // count( $flat_taxonomies )
445
 
446
  // The right-hand column contains the standard and custom fields
447
- if ( $authors = MLA::mla_authors_dropdown( -1 ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
448
  $authors_dropdown = ' <label class="inline-edit-author alignright">' . "\n";
449
  $authors_dropdown .= ' <span class="title">' . __( 'Author', 'media-library-assistant' ) . '</span>' . "\n";
450
  $authors_dropdown .= $authors . "\n";
@@ -453,38 +673,117 @@ class MLAEdit {
453
  $authors_dropdown = '';
454
  }
455
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
456
  $custom_fields = '';
457
  foreach (MLACore::mla_custom_field_support( 'bulk_edit' ) as $slug => $details ) {
458
- $page_values = array(
459
  'slug' => $slug,
460
  'label' => esc_attr( $details['name'] ),
 
461
  );
462
- $custom_fields .= MLAData::mla_parse_template( $page_template_array['custom_field'], $page_values );
463
  }
464
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
465
  $set_parent_form = MLA::mla_set_parent_form( false );
466
 
467
  $page_values = array(
468
- 'NOTE' => __( 'IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help menu for more information.', 'media-library-assistant' ),
 
 
469
  'Toggle' => __( 'Open Bulk Edit area', 'media-library-assistant' ),
470
  'Reset' => __( 'Reset', 'media-library-assistant' ),
471
- 'category_fieldset' => $category_fieldset,
472
- 'tag_fieldset' => $tag_fieldset,
473
- 'authors' => $authors_dropdown,
474
- 'Comments' => __( 'Comments', 'media-library-assistant' ),
475
- 'Pings' => __( 'Pings', 'media-library-assistant' ),
476
- 'No Change' => __( 'No Change', 'media-library-assistant' ),
477
- 'Allow' => __( 'Allow', 'media-library-assistant' ),
478
- 'Do not allow' => __( 'Do not allow', 'media-library-assistant' ),
479
- 'custom_fields' => $custom_fields,
480
- 'Title' => __( 'Title', 'media-library-assistant' ),
481
- 'Name/Slug' => __( 'Name/Slug', 'media-library-assistant' ),
482
- 'Caption' => __( 'Caption', 'media-library-assistant' ),
483
- 'Description' => __( 'Description', 'media-library-assistant' ),
484
- 'ALT Text' => __( 'ALT Text', 'media-library-assistant' ),
485
- 'Uploaded on' => __( 'Uploaded on', 'media-library-assistant' ),
486
- 'Parent ID' => __( 'Parent ID', 'media-library-assistant' ),
487
- 'Select' => __( 'Select', 'media-library-assistant' ),
488
  'set_parent_form' => $set_parent_form,
489
  );
490
 
@@ -917,6 +1216,7 @@ class MLAEdit {
917
  if ( isset( $active_boxes['mla-mla-gallery-in'] ) && MLACore::$process_mla_gallery_in ) {
918
  add_meta_box( 'mla-mla-gallery-in', __( 'MLA Gallery in', 'media-library-assistant' ), 'MLAEdit::mla_mla_gallery_in_handler', 'attachment', 'normal', 'core' );
919
  }
 
920
  }
921
  } // mla_add_meta_boxes_action
922
 
154
  // Add New Bulk Edit Area
155
  if ( 'media-new.php' == $page_hook && ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_ADD_NEW_BULK_EDIT ) ) ) {
156
  if ( $wp_locale->is_rtl() ) {
157
+ wp_register_style( 'mla-add-new-bulk-edit', MLA_PLUGIN_URL . 'css/mla-add-new-bulk-edit-rtl.css', false, MLACore::mla_script_version() );
158
+ wp_register_style( 'mla-add-new-bulk-edit' . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent-rtl.css', false, MLACore::mla_script_version() );
159
  } else {
160
+ wp_register_style( 'mla-add-new-bulk-edit', MLA_PLUGIN_URL . 'css/mla-add-new-bulk-edit.css', false, MLACore::mla_script_version() );
161
+ wp_register_style( 'mla-add-new-bulk-edit' . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, MLACore::mla_script_version() );
162
  }
163
 
164
  wp_enqueue_style( 'mla-add-new-bulk-edit' );
166
 
167
  // 'suggest' loads the script for flat taxonomy auto-complete/suggested matches
168
  wp_enqueue_script( 'mla-add-new-bulk-edit-scripts', MLA_PLUGIN_URL . "js/mla-add-new-bulk-edit-scripts{$suffix}.js",
169
+ array( 'suggest', 'jquery' ), MLACore::mla_script_version(), false );
170
 
171
  if ( MLACore::mla_supported_taxonomies( 'checklist-add-term' ) ) {
172
  wp_enqueue_script( 'mla-add-new-bulk-edit-scripts' . '-add-term', MLA_PLUGIN_URL . "js/mla-add-term-scripts{$suffix}.js",
173
+ array( 'wp-ajax-response', 'jquery', 'mla-add-new-bulk-edit-scripts' ), MLACore::mla_script_version(), false );
174
  }
175
 
176
  wp_enqueue_script( 'mla-add-new-bulk-edit-scripts' . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
177
+ array( 'mla-add-new-bulk-edit-scripts', 'jquery' ), MLACore::mla_script_version(), false );
178
 
179
  $script_variables = array(
180
  'uploadTitle' => __( 'Upload New Media items', 'media-library-assistant' ),
185
  'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
186
  'ajaxFailError' => __( 'An ajax.fail error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
187
  'ajaxDoneError' => __( 'An ajax.done error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
188
+ 'setParentAction' => MLACore::JAVASCRIPT_FIND_POSTS_SLUG,
189
+ 'exportPresetsAction' => MLACore::JAVASCRIPT_EXPORT_PRESETS_SLUG,
190
+ 'exportPresetsOption' => MLACoreOptions::MLA_UPLOAD_BULK_EDIT_PRESETS,
191
  'useDashicons' => false,
192
  'useSpinnerClass' => false,
193
  );
225
  * Media/Edit Media submenu
226
  * Register and queue the style sheet, if needed
227
  */
228
+ wp_register_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES, MLA_PLUGIN_URL . 'css/mla-edit-media-style.css', false, MLACore::mla_script_version() );
229
  wp_enqueue_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES );
230
 
231
+ wp_register_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, MLACore::mla_script_version() );
232
  wp_enqueue_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES . '-set-parent' );
233
 
234
  wp_enqueue_script( self::JAVASCRIPT_EDIT_MEDIA_SLUG, MLA_PLUGIN_URL . "js/mla-edit-media-scripts{$suffix}.js",
235
+ array( 'post', 'wp-lists', 'suggest', 'jquery' ), MLACore::mla_script_version(), false );
236
 
237
  wp_enqueue_script( self::JAVASCRIPT_EDIT_MEDIA_SLUG . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
238
+ array( 'post', 'wp-lists', 'suggest', 'jquery', self::JAVASCRIPT_EDIT_MEDIA_SLUG ), MLACore::mla_script_version(), false );
239
 
240
  $script_variables = array(
241
  'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
242
  'Ajax_Url' => admin_url( 'admin-ajax.php' ),
243
  'ajaxFailError' => __( 'An ajax.fail error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
244
  'ajaxDoneError' => __( 'An ajax.done error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
245
+ 'setParentAction' => MLACore::JAVASCRIPT_FIND_POSTS_SLUG,
246
  'uploadLabel' => sprintf( __( 'Uploaded on: %s' ), '' ),
247
  'modifyLabel' => __( 'Last modified', 'media-library-assistant' ) . ': ',
248
  'useDashicons' => false,
281
  }
282
 
283
  /**
284
+ * Page template array used by mla_generate_bulk_edit_form_fieldsets()
285
+ *
286
+ * @since 2.99
287
+ *
288
+ * @var array
289
+ */
290
+ private static $fieldset_template_array = NULL;
291
+
292
+ /**
293
+ * Loads the self::$fieldset_template_array
294
+ *
295
+ * @since 2.99
296
+ *
297
+ */
298
+ private static function _load_fieldset_template_array() {
299
+ if ( NULL === self::$fieldset_template_array ) {
300
+ self::$fieldset_template_array = MLACore::mla_load_template( 'mla-bulk-edit-fieldsets.tpl' );
301
+ if ( ! is_array( self::$fieldset_template_array ) ) {
302
+ /* translators: 1: ERROR tag 2: function name 3: non-array value */
303
+ MLACore::mla_debug_add( sprintf( _x( '%1$s: %2$s non-array "%3$s"', 'error_log', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), 'MLAEdit::_load_fieldset_template_array', var_export( self::$fieldset_template_array, true ) ), MLACore::MLA_DEBUG_CATEGORY_ANY );
304
+ return false;
305
+ }
306
+ }
307
+
308
+ return true;
309
+ }
310
+
311
+ /**
312
+ * Gets preset values from the wp_options or wp_usermeta table
313
+ *
314
+ * @since 2.99
315
+ *
316
+ * @param string Name of the desired option
317
+ * @param boolean True to ignore current setting and return default values
318
+ *
319
+ * @return mixed Value(s) for the option or false if the option is not a defined MLA option
320
+ */
321
+ public static function mla_get_bulk_edit_form_presets( $option, $get_default = false ) {
322
+ //error_log( __LINE__ . " MLAEdit::mla_get_bulk_edit_form_presets( {$option}, {$get_default} ) _per_user = " . var_export( MLACore::mla_get_option( $option . '_per_user' ), true ), 0 );
323
+ if ( $get_default || ( 'checked' !== MLACore::mla_get_option( $option . '_per_user' ) ) ) {
324
+ return MLACore::mla_get_option( $option, $get_default );
325
+ }
326
+
327
+ // Handle per-user option
328
+ $option_value = get_user_meta( get_current_user_id(), $option, true );
329
+ //error_log( __LINE__ . ' MLAEdit::mla_get_bulk_edit_form_presets option_value = ' . var_export( $option_value, true ), 0 );
330
+
331
+ if ( empty( $option_value ) ) {
332
+ return MLACore::mla_get_option( $option, true );
333
+ }
334
+
335
+ return $option_value;
336
+ }
337
+
338
+ /**
339
+ * Stores preset values in the wp_options or wp_usermeta table
340
+ *
341
+ * @since 2.99
342
+ *
343
+ * @param string Name of the desired option
344
+ * @param mixed New value for the desired option
345
+ *
346
+ * @return boolean True if the value was changed or false if the update failed
347
+ */
348
+ public static function mla_update_bulk_edit_form_presets( $option, $new_values ) {
349
+ if ( 'checked' !== MLACore::mla_get_option( $option . '_per_user' ) ) {
350
+ return MLACore::mla_update_option( $option, $new_values );
351
+ }
352
+
353
+ // Handle per-user option
354
+ return update_user_meta( get_current_user_id(), $option, $new_values );
355
+ }
356
+
357
+ /**
358
+ * Generates the bulk edit area presets HTML for the Media/Add New screen
359
  *
360
  * Fires on the post upload UI screen; legacy (pre-3.5.0) upload interface.
361
  * Anything echoed here goes below the "Maximum upload file size" message
362
  * and above the id="media-items" div.
363
  *
364
+ * @param array $fieldset_values Initial taxonomy terms and field values
365
+ * @param string $filter_root Root portion of "_values" and _template" filter names
366
+ *
367
+ * @since 2.99
368
  *
369
  */
370
+ public static function mla_generate_bulk_edit_form_fieldsets( $fieldset_values, $filter_root ) {
371
+ if ( false === self::_load_fieldset_template_array() ) {
372
+ /* translators: 1: ERROR tag 2: function name 3: non-array value */
373
+ $message = sprintf( _x( '%1$s: %2$s non-array "%3$s"', 'error_log', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), 'MLAEdit::mla_generate_bulk_edit_form_fieldsets', var_export( self::$fieldset_template_array, true ) );
374
+ MLACore::mla_debug_add( $message, MLACore::MLA_DEBUG_CATEGORY_ANY );
375
+ return $message;
 
 
 
376
  }
377
 
378
+ // Initialize blank/default fieldset values
379
+ $page_values = array(
380
+ 'filter_root' => $filter_root,
381
+ 'category_fieldset' => '',
382
+ 'tag_fieldset' => '',
383
+ 'Title' => __( 'Title', 'media-library-assistant' ),
384
+ 'post_title_value' => '',
385
+ 'Caption' => __( 'Caption', 'media-library-assistant' ),
386
+ 'post_excerpt_value' => '',
387
+ 'Description' => __( 'Description', 'media-library-assistant' ),
388
+ 'post_content_value' => '',
389
+ 'ALT Text' => __( 'ALT Text', 'media-library-assistant' ),
390
+ 'image_alt_value' => '',
391
+ 'Uploaded on' => __( 'Uploaded on', 'media-library-assistant' ),
392
+ 'post_date_value' => '',
393
+ 'Parent ID' => __( 'Parent ID', 'media-library-assistant' ),
394
+ 'post_parent_value' => '',
395
+ 'Select' => __( 'Select', 'media-library-assistant' ),
396
+ 'authors' => '',
397
+ 'Comments' => __( 'Comments', 'media-library-assistant' ),
398
+ 'comments_no_change' => '',
399
+ 'comments_open' => '',
400
+ 'comments_closed' => '',
401
+ 'No Change' => __( 'No Change', 'media-library-assistant' ),
402
+ 'Allow' => __( 'Allow', 'media-library-assistant' ),
403
+ 'Do not allow' => __( 'Do not allow', 'media-library-assistant' ),
404
+ 'Pings' => __( 'Pings', 'media-library-assistant' ),
405
+ 'pings_no_change' => '',
406
+ 'pings_open' => '',
407
+ 'pings_closed' => '',
408
+ 'custom_fields' => '',
409
+ );
410
 
411
  $taxonomies = get_object_taxonomies( 'attachment', 'objects' );
412
 
422
  }
423
  }
424
 
425
+ // The left-hand or center column contains the hierarchical taxonomies,e.g., Att. Category
426
+ // The center or right-hand column contains the flat taxonomies, e.g., Att. Tag
 
 
 
 
 
 
427
  $category_fieldset = '';
428
 
429
+ if ( false !== strpos( $filter_root, 'upload' ) ) {
430
+ $category_fieldset_column = 'left';
431
+ $tag_fieldset_column = 'center';
432
+ } else {
433
+ $category_fieldset_column = 'center';
434
+ $tag_fieldset_column = 'right';
435
+ }
436
+
437
  if ( count( $hierarchical_taxonomies ) ) {
438
  $bulk_category_blocks = '';
439
 
440
  foreach ( $hierarchical_taxonomies as $tax_name => $tax_object ) {
441
  if ( current_user_can( $tax_object->cap->assign_terms ) ) {
442
+ // Apply presets
443
+ $selected_cats = false;
444
+ if ( !empty( $fieldset_values['tax_input'][ $tax_name ] ) && is_array( $fieldset_values['tax_input'][ $tax_name ] ) ) {
445
+ $selected_cats = $fieldset_values['tax_input'][ $tax_name ];
446
+ }
447
+
448
  ob_start();
449
+ wp_terms_checklist( NULL, array( 'taxonomy' => $tax_name, 'selected_cats' => $selected_cats, 'popular_cats' => array(), ) );
450
  $tax_checklist = ob_get_contents();
451
  ob_end_clean();
452
 
453
  if ( MLACore::mla_taxonomy_support( $tax_name, 'checklist-add-term' ) ) {
454
+ $element_values = array(
455
  'tax_attr' => esc_attr( $tax_name ),
456
  'Add New Term' => __( '+&nbsp;Add&nbsp;New&nbsp;Term', 'media-library-assistant' ),
457
  'Add Reader' => __( 'Add New', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->singular_name ),
458
  'tax_parents' => wp_dropdown_categories( array( 'taxonomy' => $tax_name, 'hide_empty' => 0, 'name' => "new{$tax_name}_parent", 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '&mdash; ' . $tax_object->labels->parent_item . ' &mdash;', 'echo' => 0 ) ),
459
  'Add Button' => esc_html( $tax_object->labels->add_new_item ),
460
+ 'ajax_nonce_field' => wp_nonce_field( 'add-'.$tax_name, '_ajax_nonce-add-'.$tax_name, false, false ),
461
  );
462
 
463
+ $category_add_link = MLAData::mla_parse_template( self::$fieldset_template_array['category_add_link'], $element_values );
464
+ $category_adder = MLAData::mla_parse_template( self::$fieldset_template_array['category_adder'], $element_values );
465
  } else {
466
  $category_add_link = '';
467
  $category_adder = '';
468
  }
469
 
470
+ $element_values = array(
471
  'tax_html' => esc_html( $tax_object->labels->name ),
472
  'tax_attr' => esc_attr( $tax_name ),
473
  'tax_checklist' => $tax_checklist,
475
  'Search' => __( '?&nbsp;Search', 'media-library-assistant' ),
476
  'category_adder' => $category_adder,
477
  'Search Reader' => __( 'Search', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->name ),
478
+ 'tax_add_checked' => 'checked="checked"',
479
+ 'tax_remove_checked' => '',
480
+ 'tax_replace_checked' => '',
481
  'Add' => __( 'Add', 'media-library-assistant' ),
482
  'Remove' => __( 'Remove', 'media-library-assistant' ),
483
  'Replace' => __( 'Replace', 'media-library-assistant' ),
484
  );
485
+
486
+ // Apply tax_action presets
487
+ if ( !empty( $fieldset_values['tax_action'][ $tax_name ] ) ) {
488
+ $element_values['tax_add_checked'] = '';
489
+
490
+ switch ( $fieldset_values['tax_action'][ $tax_name ] ) {
491
+ case 'remove':
492
+ $element_values['tax_remove_checked'] = 'checked="checked"';
493
+ break;
494
+ case 'replace':
495
+ $element_values['tax_replace_checked'] = 'checked="checked"';
496
+ break;
497
+ default:
498
+ $element_values['tax_add_checked'] = 'checked="checked"';
499
+ }
500
+ }
501
+
502
+ $category_block = MLAData::mla_parse_template( self::$fieldset_template_array['category_block'], $element_values );
503
+ $taxonomy_options = MLAData::mla_parse_template( self::$fieldset_template_array['taxonomy_options'], $element_values );
504
 
505
  $bulk_category_blocks .= $category_block . $taxonomy_options;
506
  } // current_user_can
507
  } // foreach $hierarchical_taxonomies
508
 
509
+ $element_values = array(
510
+ 'category_fieldset_column' => $category_fieldset_column,
511
  'category_blocks' => $bulk_category_blocks
512
  );
513
+ $page_values['category_fieldset'] = MLAData::mla_parse_template( self::$fieldset_template_array['category_fieldset'], $element_values );
514
  } // count( $hierarchical_taxonomies )
515
 
516
  // The middle column contains the flat taxonomies, e.g., Att. Tag
522
  foreach ( $flat_taxonomies as $tax_name => $tax_object ) {
523
  if ( current_user_can( $tax_object->cap->assign_terms ) ) {
524
  if ( MLACore::mla_taxonomy_support( $tax_name, 'flat-checklist' ) ) {
525
+ // Apply presets
526
+ $selected_cats = false;
527
+ if ( !empty( $fieldset_values['tax_input'][ $tax_name ] ) && is_array( $fieldset_values['tax_input'][ $tax_name ] ) ) {
528
+ $selected_cats = $fieldset_values['tax_input'][ $tax_name ];
529
+ }
530
+
531
  ob_start();
532
+ wp_terms_checklist( NULL, array( 'taxonomy' => $tax_name, 'selected_cats' => $selected_cats, 'popular_cats' => array(), ) );
533
  $tax_checklist = ob_get_contents();
534
  ob_end_clean();
535
 
536
  if ( MLACore::mla_taxonomy_support( $tax_name, 'checklist-add-term' ) ) {
537
+ $element_values = array(
538
  'tax_attr' => esc_attr( $tax_name ),
539
  'Add New Term' => __( '+&nbsp;Add&nbsp;New&nbsp;Term', 'media-library-assistant' ),
540
  'Add Reader' => __( 'Add New', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->singular_name ),
541
  'tax_parents' => "<input type='hidden' name='new{$tax_name}_parent' id='new{$tax_name}_parent' value='-1' />",
542
  'Add Button' => esc_html( $tax_object->labels->add_new_item ),
543
+ 'ajax_nonce_field' => wp_nonce_field( 'add-'.$tax_name, '_ajax_nonce-add-'.$tax_name, false, false ),
544
  );
545
 
546
+ $category_add_link = MLAData::mla_parse_template( self::$fieldset_template_array['category_add_link'], $element_values );
547
+ $category_adder = MLAData::mla_parse_template( self::$fieldset_template_array['category_adder'], $element_values );
548
  } else {
549
  $category_add_link = '';
550
  $category_adder = '';
551
  }
552
 
553
+ $element_values = array(
554
  'tax_html' => esc_html( $tax_object->labels->name ),
555
  'tax_attr' => esc_attr( $tax_name ),
556
  'tax_checklist' => $tax_checklist,
558
  'Search' => __( '?&nbsp;Search', 'media-library-assistant' ),
559
  'category_adder' => $category_adder,
560
  'Search Reader' => __( 'Search', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->name ),
561
+ 'tax_add_checked' => 'checked="checked"',
562
+ 'tax_remove_checked' => '',
563
+ 'tax_replace_checked' => '',
564
  'Add' => __( 'Add', 'media-library-assistant' ),
565
  'Remove' => __( 'Remove', 'media-library-assistant' ),
566
  'Replace' => __( 'Replace', 'media-library-assistant' ),
567
  );
568
+
569
+ // Apply tax_action presets
570
+ if ( !empty( $fieldset_values['tax_action'][ $tax_name ] ) ) {
571
+ $element_values['tax_add_checked'] = '';
572
+
573
+ switch ( $fieldset_values['tax_action'][ $tax_name ] ) {
574
+ case 'remove':
575
+ $element_values['tax_remove_checked'] = 'checked="checked"';
576
+ break;
577
+ case 'replace':
578
+ $element_values['tax_replace_checked'] = 'checked="checked"';
579
+ break;
580
+ default:
581
+ $element_values['tax_add_checked'] = 'checked="checked"';
582
+ }
583
+ }
584
+
585
+ $tag_block = MLAData::mla_parse_template( self::$fieldset_template_array['category_block'], $element_values );
586
  } else {
587
+ // Apply presets
588
+ $selected_tags = '';
589
+ if ( !empty( $fieldset_values['tax_input'][ $tax_name ] ) && is_string( $fieldset_values['tax_input'][ $tax_name ] ) ) {
590
+ $selected_tags = $fieldset_values['tax_input'][ $tax_name ];
591
+ }
592
+
593
+ $element_values = array(
594
  'tax_html' => esc_html( $tax_object->labels->name ),
595
  'tax_attr' => esc_attr( $tax_name ),
596
+ 'tax_value' => esc_textarea( $selected_tags ),
597
+ 'tax_add_checked' => 'checked="checked"',
598
+ 'tax_remove_checked' => '',
599
+ 'tax_replace_checked' => '',
600
  'Add' => __( 'Add', 'media-library-assistant' ),
601
  'Remove' => __( 'Remove', 'media-library-assistant' ),
602
  'Replace' => __( 'Replace', 'media-library-assistant' ),
603
  );
604
+
605
+ // Apply tax_action presets
606
+ if ( !empty( $fieldset_values['tax_action'][ $tax_name ] ) ) {
607
+ $element_values['tax_add_checked'] = '';
608
+
609
+ switch ( $fieldset_values['tax_action'][ $tax_name ] ) {
610
+ case 'remove':
611
+ $element_values['tax_remove_checked'] = 'checked="checked"';
612
+ break;
613
+ case 'replace':
614
+ $element_values['tax_replace_checked'] = 'checked="checked"';
615
+ break;
616
+ default:
617
+ $element_values['tax_add_checked'] = 'checked="checked"';
618
+ }
619
+ }
620
+
621
+ $tag_block = MLAData::mla_parse_template( self::$fieldset_template_array['tag_block'], $element_values );
622
  }
623
 
624
+ $taxonomy_options = MLAData::mla_parse_template( self::$fieldset_template_array['taxonomy_options'], $element_values );
625
  $bulk_tag_blocks .= $tag_block . $taxonomy_options;
626
  } // current_user_can
627
  } // foreach $flat_taxonomies
628
 
629
+ $element_values = array(
630
+ 'tag_fieldset_column' => $tag_fieldset_column,
631
  'tag_blocks' => $bulk_tag_blocks
632
  );
633
+ $page_values['tag_fieldset'] = MLAData::mla_parse_template( self::$fieldset_template_array['tag_fieldset'], $element_values );
634
  } // count( $flat_taxonomies )
635
 
636
  // The right-hand column contains the standard and custom fields
637
+ if ( !empty( $fieldset_values['post_title'] ) ) {
638
+ $page_values['post_title_value'] = $fieldset_values['post_title'];
639
+ }
640
+
641
+ if ( !empty( $fieldset_values['post_excerpt'] ) ) {
642
+ $page_values['post_excerpt_value'] = $fieldset_values['post_excerpt'];
643
+ }
644
+
645
+ if ( !empty( $fieldset_values['post_content'] ) ) {
646
+ $page_values['post_content_value'] = $fieldset_values['post_content'];
647
+ }
648
+
649
+ if ( !empty( $fieldset_values['image_alt'] ) ) {
650
+ $page_values['image_alt_value'] = $fieldset_values['image_alt'];
651
+ }
652
+
653
+ if ( !empty( $fieldset_values['post_date'] ) ) {
654
+ $page_values['post_date_value'] = $fieldset_values['post_date'];
655
+ }
656
+
657
+ if ( !empty( $fieldset_values['post_parent'] ) ) {
658
+ $page_values['post_parent_value'] = $fieldset_values['post_parent'];
659
+ }
660
+
661
+ // Apply authors preset
662
+ $selected_author = -1;
663
+ if ( !empty( $fieldset_values['post_author'] ) ) {
664
+ $selected_author = $fieldset_values['post_author'];
665
+ }
666
+
667
+ if ( $authors = MLA::mla_authors_dropdown( $selected_author ) ) {
668
  $authors_dropdown = ' <label class="inline-edit-author alignright">' . "\n";
669
  $authors_dropdown .= ' <span class="title">' . __( 'Author', 'media-library-assistant' ) . '</span>' . "\n";
670
  $authors_dropdown .= $authors . "\n";
673
  $authors_dropdown = '';
674
  }
675
 
676
+ $page_values['authors'] = $authors_dropdown;
677
+
678
+ switch ( $fieldset_values['comment_status'] ) {
679
+ case 'open':
680
+ $page_values['comments_open'] = 'selected="selected"';
681
+ break;
682
+ case 'closed':
683
+ $page_values['comments_closed'] = 'selected="selected"';
684
+ break;
685
+ default:
686
+ $page_values['comments_no_change'] = 'selected="selected"';
687
+ }
688
+
689
+ switch ( $fieldset_values['ping_status'] ) {
690
+ case 'open':
691
+ $page_values['pings_open'] = 'selected="selected"';
692
+ break;
693
+ case 'closed':
694
+ $page_values['pings_closed'] = 'selected="selected"';
695
+ break;
696
+ default:
697
+ $page_values['pings_no_change'] = 'selected="selected"';
698
+ }
699
+
700
  $custom_fields = '';
701
  foreach (MLACore::mla_custom_field_support( 'bulk_edit' ) as $slug => $details ) {
702
+ $element_values = array(
703
  'slug' => $slug,
704
  'label' => esc_attr( $details['name'] ),
705
+ 'value' => '',
706
  );
707
+ $custom_fields .= MLAData::mla_parse_template( self::$fieldset_template_array['custom_field'], $element_values );
708
  }
709
 
710
+ $page_values['custom_fields'] = $custom_fields;
711
+
712
+ $page_values = apply_filters( $filter_root . '_values', $page_values );
713
+ $page_template = apply_filters( $filter_root . '_template', self::$fieldset_template_array['form_fieldsets'], $page_values );
714
+ $preset_fieldsets = MLAData::mla_parse_template( $page_template, $page_values );
715
+
716
+ if ( false !== strpos( $filter_root, 'preset' ) ) {
717
+ $presets = wp_nonce_field( MLACore::JAVASCRIPT_EXPORT_PRESETS_SLUG, 'mla-export-presets-ajax-nonce', false, false ) . "\n";
718
+ } else {
719
+ $presets = '';
720
+ }
721
+
722
+ $presets .= $preset_fieldsets;
723
+ //error_log( __LINE__ . ' MLAEdit::mla_generate_bulk_edit_form_fieldsets presets = ' . var_export( $presets, true ), 0 );
724
+
725
+ return $presets;
726
+ }
727
+
728
+ /**
729
+ * Echoes bulk edit area HTML to the Media/Add New screen
730
+ *
731
+ * Fires on the post upload UI screen; legacy (pre-3.5.0) upload interface.
732
+ * Anything echoed here goes below the "Maximum upload file size" message
733
+ * and above the id="media-items" div.
734
+ *
735
+ * @since 2.02
736
+ *
737
+ */
738
+ public static function mla_post_upload_ui() {
739
+ /*
740
+ * Only add our form to the Media/Add New screen. In particular,
741
+ * do NOT add it to the Media Manager Modal Window
742
+ */
743
+ if ( function_exists( 'get_current_screen' ) ) {
744
+ $screen = get_current_screen();
745
+ } else {
746
+ $screen = NULL;
747
+ }
748
+
749
+ if ( is_object( $screen ) && ( 'add' != $screen->action || 'media' != $screen->base ) ) {
750
+ return;
751
+ }
752
+
753
+ $page_template_array = MLACore::mla_load_template( 'mla-add-new-bulk-edit.tpl' );
754
+ if ( ! is_array( $page_template_array ) ) {
755
+ /* translators: 1: ERROR tag 2: function name 3: non-array value */
756
+ MLACore::mla_debug_add( sprintf( _x( '%1$s: %2$s non-array "%3$s"', 'error_log', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), 'MLAEdit::mla_post_upload_ui', var_export( $page_template_array, true ) ), MLACore::MLA_DEBUG_CATEGORY_ANY );
757
+ return;
758
+ }
759
+
760
+ // Get a "blank" presets array for the blank and initial fieldsets
761
+ $fieldset_values = MLAEdit::mla_get_bulk_edit_form_presets( MLACoreOptions::MLA_UPLOAD_BULK_EDIT_PRESETS, true );
762
+
763
+ // Format and filter the blank/reset fieldset values
764
+ $blank_div_content = self::mla_generate_bulk_edit_form_fieldsets( $fieldset_values, 'mla_upload_bulk_edit_form_blank' );
765
+
766
+ // Format and filter the initial fieldset values
767
+ $initial_div_content = self::mla_generate_bulk_edit_form_fieldsets( $fieldset_values, 'mla_upload_bulk_edit_form_initial' );
768
+
769
+ // Populate the import/export saved fieldset values, if any
770
+ $fieldset_values = MLAEdit::mla_get_bulk_edit_form_presets( MLACoreOptions::MLA_UPLOAD_BULK_EDIT_PRESETS );
771
+ //error_log( __LINE__ . ' MLAEdit::mla_generate_bulk_edit_form_fieldsets preset_values = ' . var_export( $fieldset_values, true ), 0 );
772
+
773
+ $preset_div_content = self::mla_generate_bulk_edit_form_fieldsets( $fieldset_values, 'mla_upload_bulk_edit_form_preset' );
774
+
775
  $set_parent_form = MLA::mla_set_parent_form( false );
776
 
777
  $page_values = array(
778
+ 'filter_root' => 'mla_upload_bulk_edit_form',
779
+ 'preset_div_content' => $preset_div_content,
780
+ 'blank_div_content' => $blank_div_content,
781
  'Toggle' => __( 'Open Bulk Edit area', 'media-library-assistant' ),
782
  'Reset' => __( 'Reset', 'media-library-assistant' ),
783
+ 'Import' => __( 'Import', 'media-library-assistant' ),
784
+ 'Export' => __( 'Export', 'media-library-assistant' ),
785
+ 'NOTE' => __( 'IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help menu for more information.', 'media-library-assistant' ),
786
+ 'initial_div_content' => $initial_div_content,
 
 
 
 
 
 
 
 
 
 
 
 
 
787
  'set_parent_form' => $set_parent_form,
788
  );
789
 
1216
  if ( isset( $active_boxes['mla-mla-gallery-in'] ) && MLACore::$process_mla_gallery_in ) {
1217
  add_meta_box( 'mla-mla-gallery-in', __( 'MLA Gallery in', 'media-library-assistant' ), 'MLAEdit::mla_mla_gallery_in_handler', 'attachment', 'normal', 'core' );
1218
  }
1219
+
1220
  }
1221
  } // mla_add_meta_boxes_action
1222
 
includes/class-mla-list-table.php CHANGED
@@ -1892,7 +1892,9 @@ class MLA_List_Table extends WP_List_Table {
1892
 
1893
  if ( isset( $query['post_mime_type'] ) ) {
1894
  $query['post_mime_type'] = urlencode( $query['post_mime_type'] );
1895
- } else {
 
 
1896
  $query['meta_slug'] = $view_slug;
1897
  $query['meta_query'] = urlencode( json_encode( $query['meta_query'] ) );
1898
  }
1892
 
1893
  if ( isset( $query['post_mime_type'] ) ) {
1894
  $query['post_mime_type'] = urlencode( $query['post_mime_type'] );
1895
+ }
1896
+
1897
+ if ( isset( $query['meta_query'] ) ) {
1898
  $query['meta_slug'] = $view_slug;
1899
  $query['meta_query'] = urlencode( json_encode( $query['meta_query'] ) );
1900
  }
includes/class-mla-main.php CHANGED
@@ -19,15 +19,6 @@ if ( !function_exists( 'post_categories_meta_box' ) ) {
19
  * @since 0.1
20
  */
21
  class MLA {
22
- /**
23
- * Current date for Development Versions, empty for production versions
24
- *
25
- * @since 2.10
26
- *
27
- * @var string
28
- */
29
- const MLA_DEVELOPMENT_VERSION = '';
30
-
31
  /**
32
  * Object name for localizing JavaScript - MLA List Table
33
  *
@@ -214,7 +205,7 @@ class MLA {
214
  // Process row-level actions from the Edit Media screen
215
  if ( !empty( $_REQUEST['mla_admin_action'] ) ) {
216
  if ( isset( $_REQUEST['mla-set-parent-ajax-nonce'] ) ) {
217
- check_admin_referer( 'mla_find_posts', 'mla-set-parent-ajax-nonce' );
218
  } else {
219
  check_admin_referer( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME );
220
  }
@@ -402,12 +393,12 @@ class MLA {
402
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
403
 
404
  if ( 'checked' != MLACore::mla_get_option( MLACoreOptions::MLA_SCREEN_DISPLAY_LIBRARY ) ) {
405
- wp_register_style( MLACore::STYLESHEET_SLUG . '-nolibrary', MLA_PLUGIN_URL . 'css/mla-nolibrary.css', false, MLACore::CURRENT_MLA_VERSION );
406
  wp_enqueue_style( MLACore::STYLESHEET_SLUG . '-nolibrary' );
407
  }
408
 
409
  if ( 'edit-tags.php' == $page_hook ) {
410
- wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-edit-tags-style.css', false, MLACore::CURRENT_MLA_VERSION );
411
  wp_enqueue_style( MLACore::STYLESHEET_SLUG );
412
  return;
413
  }
@@ -420,26 +411,26 @@ class MLA {
420
  add_action( 'admin_print_styles', 'MLA::mla_admin_print_styles_action' );
421
 
422
  if ( $wp_locale->is_rtl() ) {
423
- wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
424
  } else {
425
- wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLACore::CURRENT_MLA_VERSION );
426
  }
427
 
428
  wp_enqueue_style( MLACore::STYLESHEET_SLUG );
429
 
430
- wp_register_style( MLACore::STYLESHEET_SLUG . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, MLACore::CURRENT_MLA_VERSION );
431
  wp_enqueue_style( MLACore::STYLESHEET_SLUG . '-set-parent' );
432
 
433
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-inline-edit-scripts{$suffix}.js",
434
- array( 'wp-lists', 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
435
 
436
  if ( MLACore::mla_supported_taxonomies( 'checklist-add-term' ) ) {
437
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-add-term', MLA_PLUGIN_URL . "js/mla-add-term-scripts{$suffix}.js",
438
- array( 'wp-ajax-response', 'jquery', MLACore::JAVASCRIPT_INLINE_EDIT_SLUG ), MLACore::CURRENT_MLA_VERSION, false );
439
  }
440
 
441
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
442
- array( 'wp-lists', 'suggest', 'jquery', MLACore::JAVASCRIPT_INLINE_EDIT_SLUG ), MLACore::CURRENT_MLA_VERSION, false );
443
 
444
  MLAModal::mla_add_terms_search_scripts();
445
 
@@ -454,8 +445,6 @@ class MLA {
454
 
455
  $script_variables = array(
456
  'fields' => $fields,
457
- 'ajaxFailError' => __( 'An ajax.fail error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
458
- 'ajaxDoneError' => __( 'An ajax.done error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
459
  'error' => __( 'Error while saving the changes.', 'media-library-assistant' ),
460
  'ntdelTitle' => __( 'Remove From Bulk Edit', 'media-library-assistant' ),
461
  'noTitle' => __( '(no title)', 'media-library-assistant' ),
@@ -471,6 +460,11 @@ class MLA {
471
  'useSpinnerClass' => false,
472
  'ajax_action' => MLACore::JAVASCRIPT_INLINE_EDIT_SLUG,
473
  'ajax_nonce' => wp_create_nonce( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME ),
 
 
 
 
 
474
  'deleteAcpBulkEdit' => false,
475
  );
476
 
@@ -2087,7 +2081,7 @@ class MLA {
2087
  'Date' => __( 'Date', 'media-library-assistant' ),
2088
  'Status' => __( 'Status', 'media-library-assistant' ),
2089
  'Unattached' => __( 'Unattached', 'media-library-assistant' ),
2090
- 'mla_find_posts_nonce' => wp_nonce_field( 'mla_find_posts', 'mla-set-parent-ajax-nonce', false, false ),
2091
  );
2092
 
2093
  ob_start();
@@ -2211,6 +2205,13 @@ class MLA {
2211
  return '';
2212
  }
2213
 
 
 
 
 
 
 
 
2214
  if ( $authors = self::mla_authors_dropdown() ) {
2215
  $authors_dropdown = ' <label class="inline-edit-author">' . "\n";
2216
  $authors_dropdown .= ' <span class="title">' . __( 'Author', 'media-library-assistant' ) . '</span>' . "\n";
@@ -2225,17 +2226,16 @@ class MLA {
2225
  $page_values = array(
2226
  'slug' => $slug,
2227
  'label' => esc_attr( $details['name'] ),
 
2228
  );
2229
- $custom_fields .= MLAData::mla_parse_template( $page_template_array['custom_field'], $page_values );
2230
  }
2231
 
2232
  // The middle column contains the hierarchical taxonomies, e.g., Att. Category
2233
  $quick_middle_column = '';
2234
- $bulk_middle_column = '';
2235
 
2236
  if ( count( $hierarchical_taxonomies ) ) {
2237
  $quick_category_blocks = '';
2238
- $bulk_category_blocks = '';
2239
 
2240
  foreach ( $hierarchical_taxonomies as $tax_name => $tax_object ) {
2241
  if ( current_user_can( $tax_object->cap->assign_terms ) ) {
@@ -2253,11 +2253,11 @@ class MLA {
2253
  'Add Reader' => __( 'Add New', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->singular_name ),
2254
  'tax_parents' => wp_dropdown_categories( array( 'taxonomy' => $tax_name, 'hide_empty' => 0, 'name' => "new{$tax_name}_parent", 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '&mdash; ' . $tax_object->labels->parent_item . ' &mdash;', 'echo' => 0, 'update_term_meta_cache' => false ) ),
2255
  'Add Button' => esc_html( $tax_object->labels->add_new_item ),
2256
- 'ajax_nonce_field' => wp_nonce_field( 'add-'.$tax_name, '_ajax_nonce-add-'.$tax_name, false ),
2257
  );
2258
 
2259
- $category_add_link = MLAData::mla_parse_template( $page_template_array['category_add_link'], $page_values );
2260
- $category_adder = MLAData::mla_parse_template( $page_template_array['category_adder'], $page_values );
2261
  } else {
2262
  $category_add_link = '';
2263
  $category_adder = '';
@@ -2271,36 +2271,32 @@ class MLA {
2271
  'Search' => __( '?&nbsp;Search', 'media-library-assistant' ),
2272
  'category_adder' => $category_adder,
2273
  'Search Reader' => __( 'Search', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->name ),
 
 
 
2274
  'Add' => __( 'Add', 'media-library-assistant' ),
2275
  'Remove' => __( 'Remove', 'media-library-assistant' ),
2276
  'Replace' => __( 'Replace', 'media-library-assistant' ),
2277
  );
2278
- $category_block = MLAData::mla_parse_template( $page_template_array['category_block'], $page_values );
2279
- $taxonomy_options = MLAData::mla_parse_template( $page_template_array['taxonomy_options'], $page_values );
2280
 
2281
  $quick_category_blocks .= $category_block;
2282
- $bulk_category_blocks .= $category_block . $taxonomy_options;
2283
  } // current_user_can
2284
  } // foreach $hierarchical_taxonomies
2285
 
2286
  $page_values = array(
 
2287
  'category_blocks' => $quick_category_blocks
2288
  );
2289
- $quick_middle_column = MLAData::mla_parse_template( $page_template_array['category_fieldset'], $page_values );
2290
-
2291
- $page_values = array(
2292
- 'category_blocks' => $bulk_category_blocks
2293
- );
2294
- $bulk_middle_column = MLAData::mla_parse_template( $page_template_array['category_fieldset'], $page_values );
2295
  } // count( $hierarchical_taxonomies )
2296
 
2297
  // The right-hand column contains the flat taxonomies, e.g., Att. Tag
2298
  $quick_right_column = '';
2299
- $bulk_right_column = '';
2300
 
2301
  if ( count( $flat_taxonomies ) ) {
2302
  $quick_tag_blocks = '';
2303
- $bulk_tag_blocks = '';
2304
 
2305
  foreach ( $flat_taxonomies as $tax_name => $tax_object ) {
2306
  if ( current_user_can( $tax_object->cap->assign_terms ) ) {
@@ -2319,11 +2315,11 @@ class MLA {
2319
  'Add Reader' => __( 'Add New', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->singular_name ),
2320
  'tax_parents' => "<input type='hidden' name='new{$tax_name}_parent' id='new{$tax_name}_parent' value='-1' />",
2321
  'Add Button' => esc_html( $tax_object->labels->add_new_item ),
2322
- 'ajax_nonce_field' => wp_nonce_field( 'add-'.$tax_name, '_ajax_nonce-add-'.$tax_name, false ),
2323
  );
2324
 
2325
- $category_add_link = MLAData::mla_parse_template( $page_template_array['category_add_link'], $page_values );
2326
- $category_adder = MLAData::mla_parse_template( $page_template_array['category_adder'], $page_values );
2327
  } else {
2328
  $category_add_link = '';
2329
  $category_adder = '';
@@ -2337,57 +2333,59 @@ class MLA {
2337
  'Search' => __( '?&nbsp;Search', 'media-library-assistant' ),
2338
  'category_adder' => $category_adder,
2339
  'Search Reader' => __( 'Search', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->name ),
 
 
 
2340
  'Add' => __( 'Add', 'media-library-assistant' ),
2341
  'Remove' => __( 'Remove', 'media-library-assistant' ),
2342
  'Replace' => __( 'Replace', 'media-library-assistant' ),
2343
  );
2344
- $tag_block = MLAData::mla_parse_template( $page_template_array['category_block'], $page_values );
2345
  } else {
2346
  $page_values = array(
2347
  'tax_html' => esc_html( $tax_object->labels->name ),
2348
  'tax_attr' => esc_attr( $tax_name ),
 
 
 
 
2349
  'Add' => __( 'Add', 'media-library-assistant' ),
2350
  'Remove' => __( 'Remove', 'media-library-assistant' ),
2351
  'Replace' => __( 'Replace', 'media-library-assistant' ),
2352
  );
2353
- $tag_block = MLAData::mla_parse_template( $page_template_array['tag_block'], $page_values );
2354
  }
2355
 
2356
- $taxonomy_options = MLAData::mla_parse_template( $page_template_array['taxonomy_options'], $page_values );
2357
 
2358
  $quick_tag_blocks .= $tag_block;
2359
- $bulk_tag_blocks .= $tag_block . $taxonomy_options;
2360
  } // current_user_can
2361
  } // foreach $flat_taxonomies
2362
 
2363
  $page_values = array(
 
2364
  'tag_blocks' => $quick_tag_blocks
2365
  );
2366
- $quick_right_column = MLAData::mla_parse_template( $page_template_array['tag_fieldset'], $page_values );
2367
-
2368
- $page_values = array(
2369
- 'tag_blocks' => $bulk_tag_blocks
2370
- );
2371
- $bulk_right_column = MLAData::mla_parse_template( $page_template_array['tag_fieldset'], $page_values );
2372
  } // count( $flat_taxonomies )
2373
 
2374
- if ( $authors = self::mla_authors_dropdown( -1 ) ) {
2375
- $bulk_authors_dropdown = ' <label class="inline-edit-author alignright">' . "\n";
2376
- $bulk_authors_dropdown .= ' <span class="title">' . __( 'Author', 'media-library-assistant' ) . '</span>' . "\n";
2377
- $bulk_authors_dropdown .= $authors . "\n";
2378
- $bulk_authors_dropdown .= ' </label>' . "\n";
2379
- } else {
2380
- $bulk_authors_dropdown = '';
2381
- }
2382
 
2383
- $bulk_custom_fields = '';
2384
- foreach ( MLACore::mla_custom_field_support( 'bulk_edit' ) as $slug => $details ) {
2385
- $page_values = array(
2386
- 'slug' => $slug,
2387
- 'label' => esc_attr( $details['name'] ),
2388
- );
2389
- $bulk_custom_fields .= MLAData::mla_parse_template( $page_template_array['custom_field'], $page_values );
2390
- }
 
 
 
 
 
 
2391
 
2392
  $set_parent_form = MLA::mla_set_parent_form();
2393
 
@@ -2402,6 +2400,7 @@ class MLA {
2402
  }
2403
 
2404
  $page_values = array(
 
2405
  'colspan' => $MLAListTable->get_column_count(),
2406
  'Quick Edit' => __( 'Quick Edit', 'media-library-assistant' ),
2407
  'Title' => __( 'Title', 'media-library-assistant' ),
@@ -2416,22 +2415,18 @@ class MLA {
2416
  'Select' => __( 'Select', 'media-library-assistant' ),
2417
  'Menu Order' => __( 'Menu Order', 'media-library-assistant' ),
2418
  'authors' => $authors_dropdown,
2419
- 'custom_fields' => $custom_fields,
2420
  'quick_middle_column' => $quick_middle_column,
2421
  'quick_right_column' => $quick_right_column,
 
2422
  'Cancel' => __( 'Cancel', 'media-library-assistant' ),
2423
- 'Reset' => __( 'Reset', 'media-library-assistant' ),
2424
  'Update' => __( 'Update', 'media-library-assistant' ),
 
 
 
2425
  'Bulk Edit' => __( 'Bulk Edit', 'media-library-assistant' ),
2426
- 'bulk_middle_column' => $bulk_middle_column,
2427
- 'bulk_right_column' => $bulk_right_column,
2428
- 'bulk_authors' => $bulk_authors_dropdown,
2429
- 'Comments' => __( 'Comments', 'media-library-assistant' ),
2430
- 'Pings' => __( 'Pings', 'media-library-assistant' ),
2431
- 'No Change' => __( 'No Change', 'media-library-assistant' ),
2432
- 'Allow' => __( 'Allow', 'media-library-assistant' ),
2433
- 'Do not allow' => __( 'Do not allow', 'media-library-assistant' ),
2434
- 'bulk_custom_fields' => $bulk_custom_fields,
2435
  'bulk_map_style' => '',
2436
  'Map IPTC/EXIF metadata' => __( 'Map IPTC/EXIF metadata', 'media-library-assistant' ),
2437
  'bulk_custom_field_map_style' => '',
@@ -2473,13 +2468,19 @@ class MLA {
2473
  if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) {
2474
  $users_opt = array(
2475
  'hide_if_only_one_author' => false,
2476
- 'who' => 'authors',
2477
  'name' => $name,
2478
  'class'=> $class,
2479
  'multi' => 1,
2480
  'echo' => 0
2481
  );
2482
 
 
 
 
 
 
 
 
2483
  if ( $author > 0 ) {
2484
  $users_opt['selected'] = $author;
2485
  $users_opt['include_selected'] = true;
19
  * @since 0.1
20
  */
21
  class MLA {
 
 
 
 
 
 
 
 
 
22
  /**
23
  * Object name for localizing JavaScript - MLA List Table
24
  *
205
  // Process row-level actions from the Edit Media screen
206
  if ( !empty( $_REQUEST['mla_admin_action'] ) ) {
207
  if ( isset( $_REQUEST['mla-set-parent-ajax-nonce'] ) ) {
208
+ check_admin_referer( MLACore::JAVASCRIPT_FIND_POSTS_SLUG, 'mla-set-parent-ajax-nonce' );
209
  } else {
210
  check_admin_referer( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME );
211
  }
393
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
394
 
395
  if ( 'checked' != MLACore::mla_get_option( MLACoreOptions::MLA_SCREEN_DISPLAY_LIBRARY ) ) {
396
+ wp_register_style( MLACore::STYLESHEET_SLUG . '-nolibrary', MLA_PLUGIN_URL . 'css/mla-nolibrary.css', false, MLACore::mla_script_version() );
397
  wp_enqueue_style( MLACore::STYLESHEET_SLUG . '-nolibrary' );
398
  }
399
 
400
  if ( 'edit-tags.php' == $page_hook ) {
401
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-edit-tags-style.css', false, MLACore::mla_script_version() );
402
  wp_enqueue_style( MLACore::STYLESHEET_SLUG );
403
  return;
404
  }
411
  add_action( 'admin_print_styles', 'MLA::mla_admin_print_styles_action' );
412
 
413
  if ( $wp_locale->is_rtl() ) {
414
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, MLACore::mla_script_version() );
415
  } else {
416
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLACore::mla_script_version() );
417
  }
418
 
419
  wp_enqueue_style( MLACore::STYLESHEET_SLUG );
420
 
421
+ wp_register_style( MLACore::STYLESHEET_SLUG . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, MLACore::mla_script_version() );
422
  wp_enqueue_style( MLACore::STYLESHEET_SLUG . '-set-parent' );
423
 
424
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-inline-edit-scripts{$suffix}.js",
425
+ array( 'wp-lists', 'suggest', 'jquery' ), MLACore::mla_script_version(), false );
426
 
427
  if ( MLACore::mla_supported_taxonomies( 'checklist-add-term' ) ) {
428
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-add-term', MLA_PLUGIN_URL . "js/mla-add-term-scripts{$suffix}.js",
429
+ array( 'wp-ajax-response', 'jquery', MLACore::JAVASCRIPT_INLINE_EDIT_SLUG ), MLACore::mla_script_version(), false );
430
  }
431
 
432
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
433
+ array( 'wp-lists', 'suggest', 'jquery', MLACore::JAVASCRIPT_INLINE_EDIT_SLUG ), MLACore::mla_script_version(), false );
434
 
435
  MLAModal::mla_add_terms_search_scripts();
436
 
445
 
446
  $script_variables = array(
447
  'fields' => $fields,
 
 
448
  'error' => __( 'Error while saving the changes.', 'media-library-assistant' ),
449
  'ntdelTitle' => __( 'Remove From Bulk Edit', 'media-library-assistant' ),
450
  'noTitle' => __( '(no title)', 'media-library-assistant' ),
460
  'useSpinnerClass' => false,
461
  'ajax_action' => MLACore::JAVASCRIPT_INLINE_EDIT_SLUG,
462
  'ajax_nonce' => wp_create_nonce( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME ),
463
+ 'ajaxFailError' => __( 'An ajax.fail error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
464
+ 'ajaxDoneError' => __( 'An ajax.done error has occurred. Please reload the page and try again.', 'media-library-assistant' ),
465
+ 'setParentAction' => MLACore::JAVASCRIPT_FIND_POSTS_SLUG,
466
+ 'exportPresetsAction' => MLACore::JAVASCRIPT_EXPORT_PRESETS_SLUG,
467
+ 'exportPresetsOption' => MLACoreOptions::MLA_BULK_EDIT_PRESETS,
468
  'deleteAcpBulkEdit' => false,
469
  );
470
 
2081
  'Date' => __( 'Date', 'media-library-assistant' ),
2082
  'Status' => __( 'Status', 'media-library-assistant' ),
2083
  'Unattached' => __( 'Unattached', 'media-library-assistant' ),
2084
+ 'mla_find_posts_nonce' => wp_nonce_field( MLACore::JAVASCRIPT_FIND_POSTS_SLUG, 'mla-set-parent-ajax-nonce', false, false ),
2085
  );
2086
 
2087
  ob_start();
2205
  return '';
2206
  }
2207
 
2208
+ $fieldset_template_array = MLACore::mla_load_template( 'mla-bulk-edit-fieldsets.tpl' );
2209
+ if ( ! is_array( $fieldset_template_array ) ) {
2210
+ /* translators: 1: ERROR tag 2: function name 3: non-array value */
2211
+ MLACore::mla_debug_add( sprintf( _x( '%1$s: %2$s non-array "%3$s"', 'error_log', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), 'MLA::_build_inline_edit_form', var_export( $fieldset_template_array, true ) ), MLACore::MLA_DEBUG_CATEGORY_ANY );
2212
+ return '';
2213
+ }
2214
+
2215
  if ( $authors = self::mla_authors_dropdown() ) {
2216
  $authors_dropdown = ' <label class="inline-edit-author">' . "\n";
2217
  $authors_dropdown .= ' <span class="title">' . __( 'Author', 'media-library-assistant' ) . '</span>' . "\n";
2226
  $page_values = array(
2227
  'slug' => $slug,
2228
  'label' => esc_attr( $details['name'] ),
2229
+ 'value' => '',
2230
  );
2231
+ $custom_fields .= MLAData::mla_parse_template( $fieldset_template_array['custom_field'], $page_values );
2232
  }
2233
 
2234
  // The middle column contains the hierarchical taxonomies, e.g., Att. Category
2235
  $quick_middle_column = '';
 
2236
 
2237
  if ( count( $hierarchical_taxonomies ) ) {
2238
  $quick_category_blocks = '';
 
2239
 
2240
  foreach ( $hierarchical_taxonomies as $tax_name => $tax_object ) {
2241
  if ( current_user_can( $tax_object->cap->assign_terms ) ) {
2253
  'Add Reader' => __( 'Add New', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->singular_name ),
2254
  'tax_parents' => wp_dropdown_categories( array( 'taxonomy' => $tax_name, 'hide_empty' => 0, 'name' => "new{$tax_name}_parent", 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '&mdash; ' . $tax_object->labels->parent_item . ' &mdash;', 'echo' => 0, 'update_term_meta_cache' => false ) ),
2255
  'Add Button' => esc_html( $tax_object->labels->add_new_item ),
2256
+ 'ajax_nonce_field' => wp_nonce_field( 'add-'.$tax_name, '_ajax_nonce-add-'.$tax_name, false, false ),
2257
  );
2258
 
2259
+ $category_add_link = MLAData::mla_parse_template( $fieldset_template_array['category_add_link'], $page_values );
2260
+ $category_adder = MLAData::mla_parse_template( $fieldset_template_array['category_adder'], $page_values );
2261
  } else {
2262
  $category_add_link = '';
2263
  $category_adder = '';
2271
  'Search' => __( '?&nbsp;Search', 'media-library-assistant' ),
2272
  'category_adder' => $category_adder,
2273
  'Search Reader' => __( 'Search', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->name ),
2274
+ 'tax_add_checked' => 'checked="checked"',
2275
+ 'tax_remove_checked' => '',
2276
+ 'tax_replace_checked' => '',
2277
  'Add' => __( 'Add', 'media-library-assistant' ),
2278
  'Remove' => __( 'Remove', 'media-library-assistant' ),
2279
  'Replace' => __( 'Replace', 'media-library-assistant' ),
2280
  );
2281
+ $category_block = MLAData::mla_parse_template( $fieldset_template_array['category_block'], $page_values );
2282
+ $taxonomy_options = MLAData::mla_parse_template( $fieldset_template_array['taxonomy_options'], $page_values );
2283
 
2284
  $quick_category_blocks .= $category_block;
 
2285
  } // current_user_can
2286
  } // foreach $hierarchical_taxonomies
2287
 
2288
  $page_values = array(
2289
+ 'category_fieldset_column' => 'center',
2290
  'category_blocks' => $quick_category_blocks
2291
  );
2292
+ $quick_middle_column = MLAData::mla_parse_template( $fieldset_template_array['category_fieldset'], $page_values );
 
 
 
 
 
2293
  } // count( $hierarchical_taxonomies )
2294
 
2295
  // The right-hand column contains the flat taxonomies, e.g., Att. Tag
2296
  $quick_right_column = '';
 
2297
 
2298
  if ( count( $flat_taxonomies ) ) {
2299
  $quick_tag_blocks = '';
 
2300
 
2301
  foreach ( $flat_taxonomies as $tax_name => $tax_object ) {
2302
  if ( current_user_can( $tax_object->cap->assign_terms ) ) {
2315
  'Add Reader' => __( 'Add New', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->singular_name ),
2316
  'tax_parents' => "<input type='hidden' name='new{$tax_name}_parent' id='new{$tax_name}_parent' value='-1' />",
2317
  'Add Button' => esc_html( $tax_object->labels->add_new_item ),
2318
+ 'ajax_nonce_field' => wp_nonce_field( 'add-'.$tax_name, '_ajax_nonce-add-'.$tax_name, false, false ),
2319
  );
2320
 
2321
+ $category_add_link = MLAData::mla_parse_template( $fieldset_template_array['category_add_link'], $page_values );
2322
+ $category_adder = MLAData::mla_parse_template( $fieldset_template_array['category_adder'], $page_values );
2323
  } else {
2324
  $category_add_link = '';
2325
  $category_adder = '';
2333
  'Search' => __( '?&nbsp;Search', 'media-library-assistant' ),
2334
  'category_adder' => $category_adder,
2335
  'Search Reader' => __( 'Search', 'media-library-assistant' ) . ' ' . esc_html( $tax_object->labels->name ),
2336
+ 'tax_add_checked' => 'checked="checked"',
2337
+ 'tax_remove_checked' => '',
2338
+ 'tax_replace_checked' => '',
2339
  'Add' => __( 'Add', 'media-library-assistant' ),
2340
  'Remove' => __( 'Remove', 'media-library-assistant' ),
2341
  'Replace' => __( 'Replace', 'media-library-assistant' ),
2342
  );
2343
+ $tag_block = MLAData::mla_parse_template( $fieldset_template_array['category_block'], $page_values );
2344
  } else {
2345
  $page_values = array(
2346
  'tax_html' => esc_html( $tax_object->labels->name ),
2347
  'tax_attr' => esc_attr( $tax_name ),
2348
+ 'tax_value' => '',
2349
+ 'tax_add_checked' => 'checked="checked"',
2350
+ 'tax_remove_checked' => '',
2351
+ 'tax_replace_checked' => '',
2352
  'Add' => __( 'Add', 'media-library-assistant' ),
2353
  'Remove' => __( 'Remove', 'media-library-assistant' ),
2354
  'Replace' => __( 'Replace', 'media-library-assistant' ),
2355
  );
2356
+ $tag_block = MLAData::mla_parse_template( $fieldset_template_array['tag_block'], $page_values );
2357
  }
2358
 
2359
+ $taxonomy_options = MLAData::mla_parse_template( $fieldset_template_array['taxonomy_options'], $page_values );
2360
 
2361
  $quick_tag_blocks .= $tag_block;
 
2362
  } // current_user_can
2363
  } // foreach $flat_taxonomies
2364
 
2365
  $page_values = array(
2366
+ 'tag_fieldset_column' => 'right',
2367
  'tag_blocks' => $quick_tag_blocks
2368
  );
2369
+ $quick_right_column = MLAData::mla_parse_template( $fieldset_template_array['tag_fieldset'], $page_values );
 
 
 
 
 
2370
  } // count( $flat_taxonomies )
2371
 
2372
+ // Get a "blank" presets array for the blank and initial fieldsets
2373
+ $fieldset_values = MLAEdit::mla_get_bulk_edit_form_presets( MLACoreOptions::MLA_BULK_EDIT_PRESETS, true );
 
 
 
 
 
 
2374
 
2375
+ // Format and filter the blank/reset fieldset values
2376
+ $blank_div_content = MLAEdit::mla_generate_bulk_edit_form_fieldsets( $fieldset_values, 'mla_list_table_inline_blank' );
2377
+
2378
+ // Format and filter the initial fieldset values
2379
+ $initial_div_content = MLAEdit::mla_generate_bulk_edit_form_fieldsets( $fieldset_values, 'mla_list_table_inline_initial' );
2380
+ //error_log( __LINE__ . ' MLA::_build_inline_edit_form initial_div_content = ' . var_export( $initial_div_content, true ), 0 );
2381
+
2382
+ // Populate the import/export saved fieldset values, if any
2383
+ $fieldset_values = MLAEdit::mla_get_bulk_edit_form_presets( MLACoreOptions::MLA_BULK_EDIT_PRESETS );
2384
+ //$fieldset_values['post_title'] = 'Preset Title';
2385
+ //error_log( __LINE__ . ' MLA::_build_inline_edit_form preset_values = ' . var_export( $fieldset_values, true ), 0 );
2386
+
2387
+ $preset_div_content = MLAEdit::mla_generate_bulk_edit_form_fieldsets( $fieldset_values, 'mla_list_table_inline_preset' );
2388
+ //error_log( __LINE__ . ' MLA::_build_inline_edit_form preset_div_content = ' . var_export( $preset_div_content, true ), 0 );
2389
 
2390
  $set_parent_form = MLA::mla_set_parent_form();
2391
 
2400
  }
2401
 
2402
  $page_values = array(
2403
+ 'filter_root' => 'mla_list_table_inline',
2404
  'colspan' => $MLAListTable->get_column_count(),
2405
  'Quick Edit' => __( 'Quick Edit', 'media-library-assistant' ),
2406
  'Title' => __( 'Title', 'media-library-assistant' ),
2415
  'Select' => __( 'Select', 'media-library-assistant' ),
2416
  'Menu Order' => __( 'Menu Order', 'media-library-assistant' ),
2417
  'authors' => $authors_dropdown,
 
2418
  'quick_middle_column' => $quick_middle_column,
2419
  'quick_right_column' => $quick_right_column,
2420
+ 'custom_fields' => $custom_fields,
2421
  'Cancel' => __( 'Cancel', 'media-library-assistant' ),
 
2422
  'Update' => __( 'Update', 'media-library-assistant' ),
2423
+ 'preset_div_content' => $preset_div_content,
2424
+ 'blank_div_content' => $blank_div_content,
2425
+ 'initial_div_content' => $initial_div_content,
2426
  'Bulk Edit' => __( 'Bulk Edit', 'media-library-assistant' ),
2427
+ 'Reset' => __( 'Reset', 'media-library-assistant' ),
2428
+ 'Import' => __( 'Import', 'media-library-assistant' ),
2429
+ 'Export' => __( 'Export', 'media-library-assistant' ),
 
 
 
 
 
 
2430
  'bulk_map_style' => '',
2431
  'Map IPTC/EXIF metadata' => __( 'Map IPTC/EXIF metadata', 'media-library-assistant' ),
2432
  'bulk_custom_field_map_style' => '',
2468
  if ( is_super_admin() || current_user_can( $post_type_object->cap->edit_others_posts ) ) {
2469
  $users_opt = array(
2470
  'hide_if_only_one_author' => false,
 
2471
  'name' => $name,
2472
  'class'=> $class,
2473
  'multi' => 1,
2474
  'echo' => 0
2475
  );
2476
 
2477
+ // 'who' => 'authors', deprecated in WP 5.9
2478
+ if ( version_compare( get_bloginfo('version'), '5.8.99', '>' ) ) {
2479
+ $users_opt['capability'] = array( $post_type_object->cap->edit_posts );
2480
+ } else {
2481
+ $users_opt['who'] = 'authors';
2482
+ }
2483
+
2484
  if ( $author > 0 ) {
2485
  $users_opt['selected'] = $author;
2486
  $users_opt['include_selected'] = true;
includes/class-mla-media-modal.php CHANGED
@@ -433,21 +433,21 @@ class MLAModal {
433
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
434
 
435
  if ( $wp_locale->is_rtl() ) {
436
- wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
437
  } else {
438
- wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style.css', false, MLACore::CURRENT_MLA_VERSION );
439
  }
440
 
441
  wp_enqueue_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES );
442
 
443
  // Make sure ajaxurl is defined before loading wp-lists and suggest
444
- wp_enqueue_script( self::JAVASCRIPT_DEFINE_AJAXURL_SLUG, MLA_PLUGIN_URL . "js/mla-define-ajaxurl-scripts{$suffix}.js", array(), MLACore::CURRENT_MLA_VERSION, false );
445
 
446
  // Gutenberg Block Editor won't tolerate loading 'wp-lists' in the header section; load in footer section
447
  if ( ! function_exists( 'use_block_editor_for_post_type' ) || isset( $_GET['classic-editor'] ) ) {
448
- wp_enqueue_script( self::JAVASCRIPT_MEDIA_MODAL_SLUG, MLA_PLUGIN_URL . "js/mla-media-modal-scripts{$suffix}.js", array( 'media-views', 'wp-lists', 'suggest' ), MLACore::CURRENT_MLA_VERSION, false );
449
  } else {
450
- wp_enqueue_script( self::JAVASCRIPT_MEDIA_MODAL_SLUG, MLA_PLUGIN_URL . "js/mla-media-modal-scripts{$suffix}.js", array( 'media-views', 'wp-lists', 'suggest' ), MLACore::CURRENT_MLA_VERSION, true );
451
  }
452
 
453
  if ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) ) {
@@ -542,15 +542,15 @@ class MLAModal {
542
 
543
  if ( $add_the_scripts ) {
544
  if ( $wp_locale->is_rtl() ) {
545
- wp_register_style( MLACore::STYLESHEET_SLUG . '-terms-search', MLA_PLUGIN_URL . 'css/mla-style-terms-search-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
546
  } else {
547
- wp_register_style( MLACore::STYLESHEET_SLUG . '-terms-search', MLA_PLUGIN_URL . 'css/mla-style-terms-search.css', false, MLACore::CURRENT_MLA_VERSION );
548
  }
549
 
550
  wp_enqueue_style( MLACore::STYLESHEET_SLUG . '-terms-search' );
551
 
552
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-terms-search', MLA_PLUGIN_URL . "js/mla-terms-search-scripts{$suffix}.js",
553
- array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
554
 
555
  $script_variables = array(
556
  'useDashicons' => false,
433
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
434
 
435
  if ( $wp_locale->is_rtl() ) {
436
+ wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style-rtl.css', false, MLACore::mla_script_version() );
437
  } else {
438
+ wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style.css', false, MLACore::mla_script_version() );
439
  }
440
 
441
  wp_enqueue_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES );
442
 
443
  // Make sure ajaxurl is defined before loading wp-lists and suggest
444
+ wp_enqueue_script( self::JAVASCRIPT_DEFINE_AJAXURL_SLUG, MLA_PLUGIN_URL . "js/mla-define-ajaxurl-scripts{$suffix}.js", array(), MLACore::mla_script_version(), false );
445
 
446
  // Gutenberg Block Editor won't tolerate loading 'wp-lists' in the header section; load in footer section
447
  if ( ! function_exists( 'use_block_editor_for_post_type' ) || isset( $_GET['classic-editor'] ) ) {
448
+ wp_enqueue_script( self::JAVASCRIPT_MEDIA_MODAL_SLUG, MLA_PLUGIN_URL . "js/mla-media-modal-scripts{$suffix}.js", array( 'media-views', 'wp-lists', 'suggest' ), MLACore::mla_script_version(), false );
449
  } else {
450
+ wp_enqueue_script( self::JAVASCRIPT_MEDIA_MODAL_SLUG, MLA_PLUGIN_URL . "js/mla-media-modal-scripts{$suffix}.js", array( 'media-views', 'wp-lists', 'suggest' ), MLACore::mla_script_version(), true );
451
  }
452
 
453
  if ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) ) {
542
 
543
  if ( $add_the_scripts ) {
544
  if ( $wp_locale->is_rtl() ) {
545
+ wp_register_style( MLACore::STYLESHEET_SLUG . '-terms-search', MLA_PLUGIN_URL . 'css/mla-style-terms-search-rtl.css', false, MLACore::mla_script_version() );
546
  } else {
547
+ wp_register_style( MLACore::STYLESHEET_SLUG . '-terms-search', MLA_PLUGIN_URL . 'css/mla-style-terms-search.css', false, MLACore::mla_script_version() );
548
  }
549
 
550
  wp_enqueue_style( MLACore::STYLESHEET_SLUG . '-terms-search' );
551
 
552
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-terms-search', MLA_PLUGIN_URL . "js/mla-terms-search-scripts{$suffix}.js",
553
+ array( 'jquery' ), MLACore::mla_script_version(), false );
554
 
555
  $script_variables = array(
556
  'useDashicons' => false,
includes/class-mla-mime-types.php CHANGED
@@ -1184,9 +1184,7 @@ class MLAMime {
1184
  $messages = '';
1185
  $errors = '';
1186
 
1187
- /*
1188
- * Sanitize slug value
1189
- */
1190
  $slug = sanitize_mime_type( $request['slug'] );
1191
  if ( $request['post_mime_type'] ) {
1192
 
@@ -1201,21 +1199,22 @@ class MLAMime {
1201
  $messages .= sprintf( __( '<br>' . 'Changing %1$s "%2$s" to valid value "%3$s"', 'media-library-assistant' ), __( 'Slug', 'media-library-assistant' ), $request['slug'], $slug );
1202
  }
1203
 
1204
- /*
1205
- * Make sure new slug is unique
1206
- */
1207
  if ( isset( self::$mla_post_mime_templates[ $slug ] ) ) {
1208
  /* translators: 1: ERROR tag 2: slug */
1209
  $errors .= '<br>' . sprintf( __( '%1$s: Could not add Slug "%2$s"; value already exists', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $slug );
1210
  }
1211
 
1212
- /*
1213
- * Validate specification, if present
1214
- */
1215
  if ( !empty( $request['specification'] ) ) {
1216
- $specification = MLACore::mla_parse_view_specification( $request['specification'] );
1217
- if ( isset( $specification['error'] ) ) {
1218
- $errors .= $specification['error'];
 
 
 
 
 
1219
  }
1220
  }
1221
 
@@ -1280,18 +1279,14 @@ class MLAMime {
1280
  );
1281
  }
1282
 
1283
- /*
1284
- * Validate changed slug value
1285
- */
1286
  if ( $slug != $original_slug ) {
1287
  if ( $slug != $request['slug'] ) {
1288
  /* translators: 1: element name 2: bad_value 3: good_value */
1289
  $messages .= sprintf( __( '<br>' . 'Changing new %1$s "%2$s" to valid value "%3$s"', 'media-library-assistant' ), __( 'Slug', 'media-library-assistant' ), $request['slug'], $slug );
1290
  }
1291
 
1292
- /*
1293
- * Make sure new slug is unique
1294
- */
1295
  if ( isset( self::$mla_post_mime_templates[ $slug ] ) ) {
1296
  /* translators: 1: ERROR tag 2: slug */
1297
  $errors .= '<br>' . sprintf( __( '%1$s: Could not add Slug "%2$s"; value already exists', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $slug );
@@ -1301,9 +1296,7 @@ class MLAMime {
1301
  }
1302
  }
1303
 
1304
- /*
1305
- * Validate specification, if present and allowed
1306
- */
1307
  $specification = trim( isset( $request['specification'] ) ? $request['specification'] : $original_type['specification'] );
1308
  $post_mime_type = isset( $request['post_mime_type'] ) ? $request['post_mime_type'] : $original_type['post_mime_type'];
1309
  if ( $post_mime_type ) {
@@ -1315,8 +1308,13 @@ class MLAMime {
1315
 
1316
  if ( !empty( $specification ) ) {
1317
  $result = MLACore::mla_parse_view_specification( $specification );
1318
- if ( isset( $result['error'] ) ) {
1319
- $errors .= $result['error'];
 
 
 
 
 
1320
  }
1321
  }
1322
 
1184
  $messages = '';
1185
  $errors = '';
1186
 
1187
+ // Sanitize slug value
 
 
1188
  $slug = sanitize_mime_type( $request['slug'] );
1189
  if ( $request['post_mime_type'] ) {
1190
 
1199
  $messages .= sprintf( __( '<br>' . 'Changing %1$s "%2$s" to valid value "%3$s"', 'media-library-assistant' ), __( 'Slug', 'media-library-assistant' ), $request['slug'], $slug );
1200
  }
1201
 
1202
+ // Make sure new slug is unique
 
 
1203
  if ( isset( self::$mla_post_mime_templates[ $slug ] ) ) {
1204
  /* translators: 1: ERROR tag 2: slug */
1205
  $errors .= '<br>' . sprintf( __( '%1$s: Could not add Slug "%2$s"; value already exists', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $slug );
1206
  }
1207
 
1208
+ // Validate specification, if present
 
 
1209
  if ( !empty( $request['specification'] ) ) {
1210
+ $result = MLACore::mla_parse_view_specification( $request['specification'] );
1211
+
1212
+ if ( isset( $result['mime']['error'] ) ) {
1213
+ $errors .= $result['mime']['error'];
1214
+ }
1215
+
1216
+ if ( isset( $result['custom']['error'] ) ) {
1217
+ $errors .= $result['custom']['error'];
1218
  }
1219
  }
1220
 
1279
  );
1280
  }
1281
 
1282
+ // Validate changed slug value
 
 
1283
  if ( $slug != $original_slug ) {
1284
  if ( $slug != $request['slug'] ) {
1285
  /* translators: 1: element name 2: bad_value 3: good_value */
1286
  $messages .= sprintf( __( '<br>' . 'Changing new %1$s "%2$s" to valid value "%3$s"', 'media-library-assistant' ), __( 'Slug', 'media-library-assistant' ), $request['slug'], $slug );
1287
  }
1288
 
1289
+ // Make sure new slug is unique
 
 
1290
  if ( isset( self::$mla_post_mime_templates[ $slug ] ) ) {
1291
  /* translators: 1: ERROR tag 2: slug */
1292
  $errors .= '<br>' . sprintf( __( '%1$s: Could not add Slug "%2$s"; value already exists', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $slug );
1296
  }
1297
  }
1298
 
1299
+ // Validate specification, if present and allowed
 
 
1300
  $specification = trim( isset( $request['specification'] ) ? $request['specification'] : $original_type['specification'] );
1301
  $post_mime_type = isset( $request['post_mime_type'] ) ? $request['post_mime_type'] : $original_type['post_mime_type'];
1302
  if ( $post_mime_type ) {
1308
 
1309
  if ( !empty( $specification ) ) {
1310
  $result = MLACore::mla_parse_view_specification( $specification );
1311
+
1312
+ if ( isset( $result['mime']['error'] ) ) {
1313
+ $errors .= $result['mime']['error'];
1314
+ }
1315
+
1316
+ if ( isset( $result['custom']['error'] ) ) {
1317
+ $errors .= $result['custom']['error'];
1318
  }
1319
  }
1320
 
includes/class-mla-polylang-support.php CHANGED
@@ -87,6 +87,10 @@ class MLA_Polylang {
87
  add_filter( 'mla_list_table_inline_values', 'MLA_Polylang::mla_list_table_inline_values', 10, 1 );
88
  add_filter( 'mla_list_table_inline_parse', 'MLA_Polylang::mla_list_table_inline_parse', 10, 3 );
89
 
 
 
 
 
90
  // Defined in /media-library-assistant/includes/class-mla-list-table.php
91
  add_filter( 'mla_list_table_get_columns', 'MLA_Polylang::mla_list_table_get_columns', 10, 1 );
92
  add_filter( 'mla_list_table_get_bulk_actions', 'MLA_Polylang::mla_list_table_get_bulk_actions', 10, 1 );
@@ -359,11 +363,11 @@ class MLA_Polylang {
359
  return;
360
  }
361
 
362
- wp_register_style( 'mla-polylang-support', MLA_PLUGIN_URL . 'css/mla-polylang-support.css', false, MLACore::CURRENT_MLA_VERSION );
363
  wp_enqueue_style( 'mla-polylang-support' );
364
 
365
  wp_enqueue_script( 'mla-polylang-support-scripts', MLA_PLUGIN_URL . "js/mla-polylang-support-scripts{$suffix}.js",
366
- array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
367
 
368
  // For Quick and Bulk Translate
369
  $fields = array( 'old_lang', 'inline_lang_choice', 'inline_translations' );
@@ -1947,12 +1951,50 @@ class MLA_Polylang {
1947
  return $actions;
1948
  } // mla_list_table_get_bulk_actions
1949
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1950
  /**
1951
  * MLA_List_Table inline edit item values
1952
  *
1953
  * Builds the Language dropdown and edit translation links for the
1954
- * Quick and Bulk Edit forms, adding them to the 'custom_fields'
1955
- * and 'bulk_custom_fields' substitution parameters.
1956
  *
1957
  * @since 2.11
1958
  *
@@ -2010,17 +2052,6 @@ class MLA_Polylang {
2010
  $item_values['custom_fields'] .= $actions;
2011
  }
2012
 
2013
- ob_start();
2014
- do_action( 'bulk_edit_custom_box', $language_column, 'attachment' );
2015
- $value = ob_get_clean();
2016
-
2017
- if ( !empty( $value ) ) {
2018
- // Strip off <fieldset> and <div> tags around the <input> and <label> tags
2019
- preg_match('/\<input|\<label/', $value, $match_start, PREG_OFFSET_CAPTURE );
2020
- preg_match('/\<\/label[^\>]*\>/', $value, $match_end, PREG_OFFSET_CAPTURE );
2021
- $item_values['bulk_custom_fields'] .= substr( $value, $match_start[0][1], ( $match_end[0][1] + strlen( $match_end[0][0] ) ) - $match_start[0][1] );
2022
- }
2023
-
2024
  return $item_values;
2025
  } // mla_list_table_inline_values
2026
 
@@ -2133,7 +2164,7 @@ class MLA_Polylang {
2133
  MLA_Polylang::$language_columns = array();
2134
 
2135
  if ( isset( $_REQUEST['quick_current_language'] ) ) {
2136
- $current_language = sanitize_text_field( wp_unslash( $_REQUEST['quick_current_language'] ) );
2137
  } else {
2138
  $current_language = $polylang->curlang;
2139
  }
@@ -2145,6 +2176,11 @@ class MLA_Polylang {
2145
  if ( $show_translations ) {
2146
  $flags_column = $polylang->filters_columns->add_post_column( array() );
2147
  if ( is_array($flags_column ) ) {
 
 
 
 
 
2148
  $flags_column = implode( '', $flags_column );
2149
  MLA_Polylang::$language_columns['pll_translations'] = $flags_column;
2150
  }
@@ -2207,7 +2243,7 @@ class MLA_Polylang {
2207
  } elseif ('pll_translations' == $column_name ) {
2208
  if ( is_null( $languages ) ) {
2209
  if ( isset( $_REQUEST['quick_current_language'] ) ) {
2210
- $current_language = sanitize_text_field( wp_unslash( $_REQUEST['quick_current_language'] ) );
2211
  } else {
2212
  $current_language = $polylang->curlang;
2213
  }
@@ -2218,7 +2254,7 @@ class MLA_Polylang {
2218
  $content = '';
2219
  foreach ($polylang->model->get_languages_list() as $language) {
2220
  // don't add the column for the filtered language
2221
- if ( empty($current_language) || $language->slug != $current_language->slug ) {
2222
  // Polylang post_column() function applies this test for 'inline-save' before updating "language"
2223
  $save_action = isset( $_REQUEST['action'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['action'] ) ) : '';
2224
  $inline = defined('DOING_AJAX') && isset($_POST['inline_lang_choice']) && in_array( $save_action, array( MLA_Polylang::MLA_PLL_QUICK_TRANSLATE, MLACore::JAVASCRIPT_INLINE_EDIT_SLUG ) );
87
  add_filter( 'mla_list_table_inline_values', 'MLA_Polylang::mla_list_table_inline_values', 10, 1 );
88
  add_filter( 'mla_list_table_inline_parse', 'MLA_Polylang::mla_list_table_inline_parse', 10, 3 );
89
 
90
+ add_filter( 'mla_list_table_inline_initial_values', 'MLA_Polylang::mla_list_table_bulk_values', 10, 1 );
91
+ add_filter( 'mla_list_table_inline_blank_values', 'MLA_Polylang::mla_list_table_bulk_values', 10, 1 );
92
+ add_filter( 'mla_list_table_inline_preset_values', 'MLA_Polylang::mla_list_table_bulk_values', 10, 1 );
93
+
94
  // Defined in /media-library-assistant/includes/class-mla-list-table.php
95
  add_filter( 'mla_list_table_get_columns', 'MLA_Polylang::mla_list_table_get_columns', 10, 1 );
96
  add_filter( 'mla_list_table_get_bulk_actions', 'MLA_Polylang::mla_list_table_get_bulk_actions', 10, 1 );
363
  return;
364
  }
365
 
366
+ wp_register_style( 'mla-polylang-support', MLA_PLUGIN_URL . 'css/mla-polylang-support.css', false, MLACore::mla_script_version() );
367
  wp_enqueue_style( 'mla-polylang-support' );
368
 
369
  wp_enqueue_script( 'mla-polylang-support-scripts', MLA_PLUGIN_URL . "js/mla-polylang-support-scripts{$suffix}.js",
370
+ array( 'jquery' ), MLACore::mla_script_version(), false );
371
 
372
  // For Quick and Bulk Translate
373
  $fields = array( 'old_lang', 'inline_lang_choice', 'inline_translations' );
1951
  return $actions;
1952
  } // mla_list_table_get_bulk_actions
1953
 
1954
+ /**
1955
+ * MLA_List_Table bulk edit item values
1956
+ *
1957
+ * Builds the Language dropdown and edit translation links for the
1958
+ * Bulk Edit form, adding them to the 'custom_fields' substitution parameter.
1959
+ *
1960
+ * @since 2.99
1961
+ *
1962
+ * @param array $item_values parameter_name => parameter_value pairs
1963
+ *
1964
+ * @return array updated substitution parameter name => value pairs
1965
+ */
1966
+ public static function mla_list_table_bulk_values( $item_values ) {
1967
+ global $polylang;
1968
+
1969
+ // Find the first "language" column slug
1970
+ $all_languages = false === $polylang->curlang;
1971
+ $language_column = '';
1972
+ foreach ( $polylang->filters_columns->model->get_languages_list() as $language) {
1973
+ if ( $all_languages || $language->slug != $polylang->curlang->slug) {
1974
+ $language_column = 'language_'.$language->slug;
1975
+ break;
1976
+ }
1977
+ }
1978
+
1979
+ ob_start();
1980
+ do_action( 'bulk_edit_custom_box', $language_column, 'attachment' );
1981
+ $value = ob_get_clean();
1982
+
1983
+ if ( !empty( $value ) ) {
1984
+ // Strip off <fieldset> and <div> tags around the <input> and <label> tags
1985
+ preg_match('/\<input|\<label/', $value, $match_start, PREG_OFFSET_CAPTURE );
1986
+ preg_match('/\<\/label[^\>]*\>/', $value, $match_end, PREG_OFFSET_CAPTURE );
1987
+ $item_values['custom_fields'] .= substr( $value, $match_start[0][1], ( $match_end[0][1] + strlen( $match_end[0][0] ) ) - $match_start[0][1] );
1988
+ }
1989
+
1990
+ return $item_values;
1991
+ } // mla_list_table_bulk_values
1992
+
1993
  /**
1994
  * MLA_List_Table inline edit item values
1995
  *
1996
  * Builds the Language dropdown and edit translation links for the
1997
+ * Quick form, adding them to the 'custom_fields' substitution parameter.
 
1998
  *
1999
  * @since 2.11
2000
  *
2052
  $item_values['custom_fields'] .= $actions;
2053
  }
2054
 
 
 
 
 
 
 
 
 
 
 
 
2055
  return $item_values;
2056
  } // mla_list_table_inline_values
2057
 
2164
  MLA_Polylang::$language_columns = array();
2165
 
2166
  if ( isset( $_REQUEST['quick_current_language'] ) ) {
2167
+ $current_language = (object) array( 'slug' => sanitize_text_field( wp_unslash( $_REQUEST['quick_current_language'] ) ) );
2168
  } else {
2169
  $current_language = $polylang->curlang;
2170
  }
2176
  if ( $show_translations ) {
2177
  $flags_column = $polylang->filters_columns->add_post_column( array() );
2178
  if ( is_array($flags_column ) ) {
2179
+ // Don't add the flag for the current language
2180
+ if ( !empty( $current_language ) ) {
2181
+ unset( $flags_column[ 'language_' . $current_language->slug] );
2182
+ }
2183
+
2184
  $flags_column = implode( '', $flags_column );
2185
  MLA_Polylang::$language_columns['pll_translations'] = $flags_column;
2186
  }
2243
  } elseif ('pll_translations' == $column_name ) {
2244
  if ( is_null( $languages ) ) {
2245
  if ( isset( $_REQUEST['quick_current_language'] ) ) {
2246
+ $current_language = (object) array( 'slug' => sanitize_text_field( wp_unslash( $_REQUEST['quick_current_language'] ) ) );
2247
  } else {
2248
  $current_language = $polylang->curlang;
2249
  }
2254
  $content = '';
2255
  foreach ($polylang->model->get_languages_list() as $language) {
2256
  // don't add the column for the filtered language
2257
+ if ( empty( $current_language ) || $language->slug != $current_language->slug ) {
2258
  // Polylang post_column() function applies this test for 'inline-save' before updating "language"
2259
  $save_action = isset( $_REQUEST['action'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['action'] ) ) : '';
2260
  $inline = defined('DOING_AJAX') && isset($_POST['inline_lang_choice']) && in_array( $save_action, array( MLA_Polylang::MLA_PLL_QUICK_TRANSLATE, MLACore::JAVASCRIPT_INLINE_EDIT_SLUG ) );
includes/class-mla-settings-custom-fields-tab.php CHANGED
@@ -39,9 +39,9 @@ class MLASettings_CustomFields {
39
  }
40
 
41
  if ( $wp_locale->is_rtl() ) {
42
- wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
43
  } else {
44
- wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLACore::CURRENT_MLA_VERSION );
45
  }
46
 
47
  wp_enqueue_style( MLACore::STYLESHEET_SLUG );
@@ -77,7 +77,7 @@ class MLASettings_CustomFields {
77
 
78
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG,
79
  MLA_PLUGIN_URL . "js/mla-inline-mapping-scripts{$suffix}.js",
80
- array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
81
 
82
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG,
83
  MLASettings::JAVASCRIPT_INLINE_MAPPING_OBJECT, $script_variables );
@@ -98,7 +98,7 @@ class MLASettings_CustomFields {
98
 
99
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_EDIT_CUSTOM_SLUG,
100
  MLA_PLUGIN_URL . "js/mla-inline-edit-settings-scripts{$suffix}.js",
101
- array( 'wp-lists', 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
102
 
103
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_EDIT_CUSTOM_SLUG,
104
  self::JAVASCRIPT_INLINE_EDIT_CUSTOM_OBJECT, $script_variables );
39
  }
40
 
41
  if ( $wp_locale->is_rtl() ) {
42
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, MLACore::mla_script_version() );
43
  } else {
44
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLACore::mla_script_version() );
45
  }
46
 
47
  wp_enqueue_style( MLACore::STYLESHEET_SLUG );
77
 
78
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG,
79
  MLA_PLUGIN_URL . "js/mla-inline-mapping-scripts{$suffix}.js",
80
+ array( 'jquery' ), MLACore::mla_script_version(), false );
81
 
82
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG,
83
  MLASettings::JAVASCRIPT_INLINE_MAPPING_OBJECT, $script_variables );
98
 
99
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_EDIT_CUSTOM_SLUG,
100
  MLA_PLUGIN_URL . "js/mla-inline-edit-settings-scripts{$suffix}.js",
101
+ array( 'wp-lists', 'suggest', 'jquery' ), MLACore::mla_script_version(), false );
102
 
103
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_EDIT_CUSTOM_SLUG,
104
  self::JAVASCRIPT_INLINE_EDIT_CUSTOM_OBJECT, $script_variables );
includes/class-mla-settings-documentation-tab.php CHANGED
@@ -53,7 +53,7 @@ class MLASettings_Documentation {
53
 
54
  wp_enqueue_script( self::JAVASCRIPT_DOCUMENTATION_TAB_SLUG,
55
  MLA_PLUGIN_URL . "js/mla-settings-shortcodes-tab-scripts{$suffix}.js",
56
- array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
57
 
58
  wp_localize_script( self::JAVASCRIPT_DOCUMENTATION_TAB_SLUG,
59
  self::JAVASCRIPT_DOCUMENTATION_TAB_OBJECT, $script_variables );
53
 
54
  wp_enqueue_script( self::JAVASCRIPT_DOCUMENTATION_TAB_SLUG,
55
  MLA_PLUGIN_URL . "js/mla-settings-shortcodes-tab-scripts{$suffix}.js",
56
+ array( 'jquery' ), MLACore::mla_script_version(), false );
57
 
58
  wp_localize_script( self::JAVASCRIPT_DOCUMENTATION_TAB_SLUG,
59
  self::JAVASCRIPT_DOCUMENTATION_TAB_OBJECT, $script_variables );
includes/class-mla-settings-iptc-exif-tab.php CHANGED
@@ -39,9 +39,9 @@ class MLASettings_IPTCEXIF {
39
  }
40
 
41
  if ( $wp_locale->is_rtl() ) {
42
- wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
43
  } else {
44
- wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLACore::CURRENT_MLA_VERSION );
45
  }
46
 
47
  wp_enqueue_style( MLACore::STYLESHEET_SLUG );
@@ -101,7 +101,7 @@ class MLASettings_IPTCEXIF {
101
 
102
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG,
103
  MLA_PLUGIN_URL . "js/mla-inline-mapping-scripts{$suffix}.js",
104
- array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
105
 
106
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG,
107
  MLASettings::JAVASCRIPT_INLINE_MAPPING_OBJECT, $script_variables );
@@ -122,7 +122,7 @@ class MLASettings_IPTCEXIF {
122
 
123
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_EDIT_IPTC_EXIF_SLUG,
124
  MLA_PLUGIN_URL . "js/mla-inline-edit-settings-scripts{$suffix}.js",
125
- array( 'wp-lists', 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
126
 
127
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_EDIT_IPTC_EXIF_SLUG,
128
  self::JAVASCRIPT_INLINE_EDIT_IPTC_EXIF_OBJECT, $script_variables );
39
  }
40
 
41
  if ( $wp_locale->is_rtl() ) {
42
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, MLACore::mla_script_version() );
43
  } else {
44
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLACore::mla_script_version() );
45
  }
46
 
47
  wp_enqueue_style( MLACore::STYLESHEET_SLUG );
101
 
102
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG,
103
  MLA_PLUGIN_URL . "js/mla-inline-mapping-scripts{$suffix}.js",
104
+ array( 'jquery' ), MLACore::mla_script_version(), false );
105
 
106
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG,
107
  MLASettings::JAVASCRIPT_INLINE_MAPPING_OBJECT, $script_variables );
122
 
123
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_EDIT_IPTC_EXIF_SLUG,
124
  MLA_PLUGIN_URL . "js/mla-inline-edit-settings-scripts{$suffix}.js",
125
+ array( 'wp-lists', 'suggest', 'jquery' ), MLACore::mla_script_version(), false );
126
 
127
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_EDIT_IPTC_EXIF_SLUG,
128
  self::JAVASCRIPT_INLINE_EDIT_IPTC_EXIF_OBJECT, $script_variables );
includes/class-mla-settings-shortcodes-tab.php CHANGED
@@ -54,7 +54,7 @@ class MLASettings_Shortcodes {
54
 
55
  wp_enqueue_script( self::JAVASCRIPT_SHORTCODES_TAB_SLUG,
56
  MLA_PLUGIN_URL . "js/mla-settings-shortcodes-tab-scripts{$suffix}.js",
57
- array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
58
 
59
  wp_localize_script( self::JAVASCRIPT_SHORTCODES_TAB_SLUG,
60
  self::JAVASCRIPT_SHORTCODES_TAB_OBJECT, $script_variables );
54
 
55
  wp_enqueue_script( self::JAVASCRIPT_SHORTCODES_TAB_SLUG,
56
  MLA_PLUGIN_URL . "js/mla-settings-shortcodes-tab-scripts{$suffix}.js",
57
+ array( 'jquery' ), MLACore::mla_script_version(), false );
58
 
59
  wp_localize_script( self::JAVASCRIPT_SHORTCODES_TAB_SLUG,
60
  self::JAVASCRIPT_SHORTCODES_TAB_OBJECT, $script_variables );
includes/class-mla-settings-upload-tab.php CHANGED
@@ -60,7 +60,7 @@ class MLASettings_Upload {
60
 
61
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG,
62
  MLA_PLUGIN_URL . "js/mla-inline-edit-settings-scripts{$suffix}.js",
63
- array( 'wp-lists', 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
64
 
65
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG,
66
  self::JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT, $script_variables );
60
 
61
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG,
62
  MLA_PLUGIN_URL . "js/mla-inline-edit-settings-scripts{$suffix}.js",
63
+ array( 'wp-lists', 'suggest', 'jquery' ), MLACore::mla_script_version(), false );
64
 
65
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG,
66
  self::JAVASCRIPT_INLINE_EDIT_UPLOAD_OBJECT, $script_variables );
includes/class-mla-settings-view-tab.php CHANGED
@@ -60,7 +60,7 @@ class MLASettings_View {
60
 
61
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG,
62
  MLA_PLUGIN_URL . "js/mla-inline-edit-settings-scripts{$suffix}.js",
63
- array( 'wp-lists', 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
64
 
65
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG,
66
  self::JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT, $script_variables );
@@ -290,10 +290,10 @@ class MLASettings_View {
290
  $page_content = self::_compose_edit_view_tab( $mla_view_item, $page_template_array['single-item-edit'] );
291
  $page_content['message'] = $message;
292
  }
293
- } else {
294
  $page_content = array(
295
  /* translators: 1: view name/slug */
296
- 'message' => sprintf( __( 'Edit view "%1$s" cancelled.', 'media-library-assistant' ), $mla_view_item['mla_view_item']['original_slug'] ),
297
  'body' => ''
298
  );
299
  }
60
 
61
  wp_enqueue_script( MLASettings::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG,
62
  MLA_PLUGIN_URL . "js/mla-inline-edit-settings-scripts{$suffix}.js",
63
+ array( 'wp-lists', 'suggest', 'jquery' ), MLACore::mla_script_version(), false );
64
 
65
  wp_localize_script( MLASettings::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG,
66
  self::JAVASCRIPT_INLINE_EDIT_VIEW_OBJECT, $script_variables );
290
  $page_content = self::_compose_edit_view_tab( $mla_view_item, $page_template_array['single-item-edit'] );
291
  $page_content['message'] = $message;
292
  }
293
+ } else {
294
  $page_content = array(
295
  /* translators: 1: view name/slug */
296
+ 'message' => sprintf( __( 'Edit view "%1$s" cancelled.', 'media-library-assistant' ), $mla_view_item['original_slug'] ),
297
  'body' => ''
298
  );
299
  }
includes/class-mla-settings.php CHANGED
@@ -390,9 +390,9 @@ class MLASettings {
390
  }
391
 
392
  if ( $wp_locale->is_rtl() ) {
393
- wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
394
  } else {
395
- wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLACore::CURRENT_MLA_VERSION );
396
  }
397
 
398
  wp_enqueue_style( MLACore::STYLESHEET_SLUG );
@@ -1448,7 +1448,7 @@ If you find the Media Library Assistant plugin useful and would like to support
1448
  }
1449
 
1450
  // Load template array and initialize page-level values.
1451
- $development_version = MLA::MLA_DEVELOPMENT_VERSION;
1452
  $development_version = ( ! empty( $development_version ) ) ? ' (' . $development_version . ')' : '';
1453
  self::$page_template_array = MLACore::mla_load_template( 'admin-display-settings-page.tpl' );
1454
  $current_tab_slug = isset( $_REQUEST['mla_tab'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['mla_tab'] ) ): 'general';
390
  }
391
 
392
  if ( $wp_locale->is_rtl() ) {
393
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, MLACore::mla_script_version() );
394
  } else {
395
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLACore::mla_script_version() );
396
  }
397
 
398
  wp_enqueue_style( MLACore::STYLESHEET_SLUG );
1448
  }
1449
 
1450
  // Load template array and initialize page-level values.
1451
+ $development_version = MLACore::MLA_DEVELOPMENT_VERSION;
1452
  $development_version = ( ! empty( $development_version ) ) ? ' (' . $development_version . ')' : '';
1453
  self::$page_template_array = MLACore::mla_load_template( 'admin-display-settings-page.tpl' );
1454
  $current_tab_slug = isset( $_REQUEST['mla_tab'] ) ? sanitize_text_field( wp_unslash( $_REQUEST['mla_tab'] ) ): 'general';
includes/class-mla-shortcode-support.php CHANGED
@@ -260,11 +260,15 @@ class MLAShortcode_Support {
260
  // Numeric keys indicate parse errors
261
  $not_valid = false;
262
  foreach ( $attr as $key => $value ) {
 
 
 
263
  if ( is_numeric( $key ) ) {
264
  $not_valid = true;
265
  break;
266
  }
267
  }
 
268
 
269
  if ( $not_valid ) {
270
  /*
@@ -3189,7 +3193,7 @@ class MLAShortcode_Support {
3189
  break;
3190
  }
3191
  } else {
3192
- if ( $term->term_id === (integer) $current_item ) {
3193
  $is_active = true;
3194
  $item_values['current_item_class'] = $arguments['current_item_class'];
3195
  break;
@@ -3356,6 +3360,17 @@ class MLAShortcode_Support {
3356
  }
3357
  } // foreach tag
3358
 
 
 
 
 
 
 
 
 
 
 
 
3359
  if ( $is_list || $is_dropdown || $is_checklist ) {
3360
  if ( $is_list || ( ( 0 == $current_level ) && $is_dropdown ) || $is_checklist ) {
3361
  $markup_values = apply_filters( 'mla_term_list_close_values', $markup_values );
@@ -3776,6 +3791,15 @@ class MLAShortcode_Support {
3776
 
3777
  $show_empty = false;
3778
  if ( 0 == $found_rows ) {
 
 
 
 
 
 
 
 
 
3779
  if ( self::$mla_debug ) {
3780
  MLACore::mla_debug_add( __LINE__ . ' <strong>' . __( 'mla_debug empty list', 'media-library-assistant' ) . '</strong>, query = ' . var_export( $arguments, true ) );
3781
  $list = MLACore::mla_debug_flush();
@@ -3936,6 +3960,15 @@ class MLAShortcode_Support {
3936
  } else {
3937
  $found_rows = count( $tags );
3938
  }
 
 
 
 
 
 
 
 
 
3939
  } else {
3940
  if ( !$show_empty ) {
3941
  foreach ( $tags as $key => $tag ) {
@@ -4365,16 +4398,20 @@ class MLAShortcode_Support {
4365
  * @since 2.20
4366
  *
4367
  * @param array value(s) for mla_output_type parameter
4368
- * @param string template substitution values, e.g., ('instance' => '1', ... )
4369
- * @param string merged default and passed shortcode parameter values
4370
  * @param integer number of attachments in the gallery, without pagination
4371
  * @param string output text so far, may include debug values
4372
  *
4373
- * @return mixed false or string with HTML for pagination output types
4374
  */
4375
  private static function _paginate_links( $output_parameters, $markup_values, $arguments, $found_rows, $output = '' ) {
4376
  if ( 2 > $markup_values['last_page'] ) {
4377
- return '';
 
 
 
 
4378
  }
4379
 
4380
  $show_all = $prev_next = false;
@@ -4529,7 +4566,7 @@ class MLAShortcode_Support {
4529
  }
4530
 
4531
  if ( 0 < $posts_per_page ) {
4532
- $max_page = floor( $found_rows / $posts_per_page );
4533
  if ( $max_page < ( $found_rows / $posts_per_page ) ) {
4534
  $max_page++;
4535
  }
@@ -4764,12 +4801,14 @@ class MLAShortcode_Support {
4764
  *
4765
  * @since 2.82
4766
  *
4767
- * @param string query specification; PHP nested arrays
 
4768
  *
4769
  * @return boolean true if specification is a valid PHP array else false
4770
  */
4771
- private static function _validate_array_specification( $specification ) {
4772
  //error_log( __LINE__ . " _validate_array_specification() specification = " . var_export( $specification, true ), 0 );
 
4773
  self::$array_specification_error = '';
4774
 
4775
  // Check for outer array specification(s) and reject anything else.
@@ -4779,66 +4818,131 @@ class MLAShortcode_Support {
4779
  return false;
4780
  }
4781
 
 
 
4782
  $interior = trim( $matches[1], ', ' );
4783
  while ( strlen( $interior ) ) {
 
4784
  //error_log( __LINE__ . " _validate_array_specification() interior = " . var_export( $interior, true ), 0 );
 
 
4785
  // Recursive matching required for nested and multiple arrays
4786
  while ( preg_match_all( '/(?x)array\s*\( ( (?>[^()]+) | (?R) )* \)/', $interior, $matches ) ) {
4787
  //error_log( __LINE__ . " _validate_array_specification() recursion matches = " . var_export( $matches, true ), 0 );
4788
  foreach ( $matches[0] as $search ) {
4789
  // Replace valid arrays with a harmless literal value
4790
- if ( false === self::_validate_array_specification( $search ) ) {
 
4791
  self::$array_specification_error = " FAILED nested array = " . var_export( $search, true );
4792
  //error_log( __LINE__ . " _validate_array_specification() search = " . var_export( $search, true ), 0 );
4793
  return false;
4794
  }
4795
 
4796
- $interior = str_replace( $search, 'ARRAY', $interior );
 
4797
  }
4798
  //error_log( __LINE__ . " _validate_array_specification() recursion interior = " . var_export( $interior, true ), 0 );
4799
- }
4800
-
4801
- // Look for an already-validated array match
4802
- if ( 0 === strpos( $interior, 'ARRAY' ) ) {
4803
- $interior = trim( substr( $interior, 5 ), ' ,' );
4804
- continue;
4805
  }
4806
 
4807
  // Look for a nested array
4808
  if ( 1 === preg_match( '/^(array\s*\(.*\))(.*)$/', $interior, $matches ) ) {
4809
- //error_log( __LINE__ . " _validate_array_specification() matches = " . var_export( $matches, true ), 0 );
4810
- if ( false === self::_validate_array_specification( $matches[1] ) ) {
 
4811
  return false;
4812
  }
4813
 
 
4814
  $interior = trim( $matches[2], ' ,' );
4815
  continue;
4816
  }
4817
 
4818
  // PHP "undefined constant" pattern: [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
4819
-
4820
- // Look for 'key' => value
4821
- if ( 1 === preg_match( '/^((([\'\"](.+?)[\'\"])|(\d+)|([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*))\s*\=\>\s*)(([\'\"](.*?)[\'\"])|(\d+)|(\w{4,5}))(.*)$/', $interior, $matches /*, PREG_OFFSET_CAPTURE */ ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4822
  //error_log( __LINE__ . " _validate_array_specification() key => value matches = " . var_export( $matches, true ), 0 );
4823
 
4824
- // Validate boolean and array() values
4825
- if ( ! empty( $matches[11] ) ) {
4826
  //error_log( __LINE__ . " _validate_array_specification() boolean and array() matches = " . var_export( $matches[10], true ), 0 );
4827
- if ( false === in_array( strtolower( $matches[11] ), array( 'false', 'true', 'array' ) ) ) {
 
4828
  //error_log( __LINE__ . " _validate_array_specification() FAILED boolean matches = " . var_export( $matches[7], true ), 0 );
4829
  self::$array_specification_error = " FAILED boolean matches = " . var_export( $matches[7], true );
4830
  return false;
4831
  }
4832
  }
4833
 
4834
- $interior = trim( $matches[12], ' ,' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4835
  continue;
4836
  }
4837
 
4838
- // Look for simple quoted string, integer value or "undefined constant", e.g., in 'terms' =>
 
 
 
 
 
 
 
 
 
4839
  if ( 1 === preg_match( '/^(([\'\"](.+?)[\'\"])|(-{0,1}\d+)|([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*))(.*)$/', $interior, $matches ) ) {
4840
  //error_log( __LINE__ . " _validate_array_specification() simple matches = " . var_export( $matches, true ), 0 );
4841
-
 
 
 
 
 
 
 
 
 
 
 
 
4842
  $interior = trim( $matches[6], ' ,' );
4843
  continue;
4844
  }
@@ -4847,9 +4951,10 @@ class MLAShortcode_Support {
4847
  self::$array_specification_error = " FAILED interior = " . var_export( $interior, true );
4848
  return false;
4849
  }
4850
-
4851
  //error_log( __LINE__ . " _validate_array_specification() GOOD interior = " . var_export( $interior, true ), 0 );
4852
- return true;
 
 
4853
  }
4854
 
4855
  /**
@@ -5128,7 +5233,83 @@ class MLAShortcode_Support {
5128
  public static function mla_pmp_hide_attachments_filter( $post_types ) {
5129
  $post_types[] = 'attachment';
5130
  return $post_types;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5131
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5132
  }
5133
 
5134
  /**
@@ -5257,26 +5438,7 @@ class MLAShortcode_Support {
5257
  $query_arguments[ $key ] = $value;
5258
  self::$mla_get_shortcode_dynamic_attachments_parameters[ $key ] = $value;
5259
  } else {
5260
- $value = self::_sanitize_query_specification( $value );
5261
-
5262
- // Replace invalid queries from "where-used" callers with a harmless equivalent
5263
- if ( $where_used_query && ( ( 'false' === $value ) || ( false !== strpos( $value, '{+' ) ) ) ) {
5264
- $value = "array( array( 'taxonomy' => 'none', 'field' => 'slug', 'terms' => 'none' ) )";
5265
- } else {
5266
- // If sanitization fails, return an error message
5267
- if ( 'false' === $value ) {
5268
- self::$mla_debug = $old_debug_mode;
5269
- return '<p>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . __( 'Invalid mla_gallery', 'media-library-assistant' ) . ' tax_query = ' . self::$array_specification_error . '</p>';
5270
- }
5271
- }
5272
-
5273
- try {
5274
- $tax_query = @eval( 'return ' . $value . ';' );
5275
- } catch ( Throwable $e ) { // PHP 7+
5276
- $tax_query = NULL;
5277
- } catch ( Exception $e ) { // PHP 5
5278
- $tax_query = NULL;
5279
- }
5280
 
5281
  if ( is_array( $tax_query ) ) {
5282
  // Check for ignore.terms.assigned/-3, no.terms.assigned/-1 or any.terms.assigned/-2
@@ -5792,32 +5954,13 @@ class MLAShortcode_Support {
5792
  if ( is_array( $value ) ) {
5793
  $query_arguments[ $key ] = $value;
5794
  } else {
5795
- $value = self::_sanitize_query_specification( $value );
5796
-
5797
- // Replace invalid queries from "where-used" callers with a harmless equivalent
5798
- if ( $where_used_query && ( ( 'false' === $value ) || ( false !== strpos( $value, '{+' ) ) ) ) {
5799
- $value = "array( array( 'key' => 'unlikely', 'value' => 'none or otherwise unlikely' ) )";
5800
- } else {
5801
- // If sanitization fails, return an error message
5802
- if ( 'false' === $value ) {
5803
- self::$mla_debug = $old_debug_mode;
5804
- return '<p>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . __( 'Invalid mla_gallery', 'media-library-assistant' ) . ' date_query = ' . self::$array_specification_error . '</p>';
5805
- }
5806
- }
5807
-
5808
- try {
5809
- $date_query = @eval( 'return ' . $value . ';' );
5810
- } catch ( Throwable $e ) { // PHP 7+
5811
- $date_query = NULL;
5812
- } catch ( Exception $e ) { // PHP 5
5813
- $date_query = NULL;
5814
- }
5815
-
5816
  if ( is_array( $date_query ) ) {
5817
  $query_arguments[ $key ] = $date_query;
5818
  } else {
5819
  self::$mla_debug = $old_debug_mode;
5820
- return '<p>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . __( 'Invalid mla_gallery', 'media-library-assistant' ) . ' date_query = ' . var_export( $value, true ) . '</p>';
5821
  }
5822
  } // not array
5823
 
@@ -5831,32 +5974,13 @@ class MLAShortcode_Support {
5831
  if ( is_array( $value ) ) {
5832
  $query_arguments[ $key ] = $value;
5833
  } else {
5834
- $value = self::_sanitize_query_specification( $value );
5835
-
5836
- // Replace invalid queries from "where-used" callers with a harmless equivalent
5837
- if ( $where_used_query && ( ( 'false' === $value ) || ( false !== strpos( $value, '{+' ) ) ) ) {
5838
- $value = "array( array( 'key' => 'unlikely', 'value' => 'none or otherwise unlikely' ) )";
5839
- } else {
5840
- // If sanitization fails, return an error message
5841
- if ( 'false' === $value ) {
5842
- self::$mla_debug = $old_debug_mode;
5843
- return '<p>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . __( 'Invalid mla_gallery', 'media-library-assistant' ) . ' meta_query = ' . self::$array_specification_error . '</p>';
5844
- }
5845
- }
5846
-
5847
- try {
5848
- $meta_query = @eval( 'return ' . $value . ';' );
5849
- } catch ( Throwable $e ) { // PHP 7+
5850
- $meta_query = NULL;
5851
- } catch ( Exception $e ) { // PHP 5
5852
- $meta_query = NULL;
5853
- }
5854
 
5855
  if ( is_array( $meta_query ) ) {
5856
  $query_arguments[ $key ] = $meta_query;
5857
  } else {
5858
  self::$mla_debug = $old_debug_mode;
5859
- return '<p>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . __( 'Invalid mla_gallery', 'media-library-assistant' ) . ' meta_query = ' . var_export( $value, true ) . '</p>';
5860
  }
5861
  } // not array
5862
 
@@ -5958,9 +6082,12 @@ class MLAShortcode_Support {
5958
  unset( self::$query_parameters['orderby'] );
5959
  }
5960
 
5961
- unset( $query_arguments['orderby'] );
5962
- unset( $query_arguments['order'] );
5963
-
 
 
 
5964
  if ( self::$mla_debug ) {
5965
  add_filter( 'posts_clauses', 'MLAShortcode_Support::mla_shortcode_query_posts_clauses_filter', 0x7FFFFFFF, 1 );
5966
  add_filter( 'posts_clauses_request', 'MLAShortcode_Support::mla_shortcode_query_posts_clauses_request_filter', 0x7FFFFFFF, 1 );
@@ -7081,16 +7208,6 @@ class MLAShortcode_Support {
7081
  // Calculate and potentially trim parent/child tree
7082
  $all_terms_count = 0;
7083
  foreach ( array_keys( $term_tree ) as $taxonomy ) {
7084
- if ( $child_of ) {
7085
- $result = self::_find_child_of( $term_tree[ $taxonomy ], $child_of );
7086
- if ( false !== $result ) {
7087
- $term_tree[ $taxonomy ] = $result->children;
7088
- } else {
7089
- $term_tree[ $taxonomy ] = array();
7090
- continue;
7091
- }
7092
- } // $child_of
7093
-
7094
  if ( $include_tree ) {
7095
  $result = self::_find_include_tree( $term_tree[ $taxonomy ], $include_tree );
7096
  if ( false !== $result ) {
@@ -7105,6 +7222,17 @@ class MLAShortcode_Support {
7105
  self::_remove_exclude_tree( $term_tree[ $taxonomy ], $exclude_tree );
7106
  }
7107
 
 
 
 
 
 
 
 
 
 
 
 
7108
  $term_count = 0;
7109
  $root_limit = count( $term_tree[ $taxonomy ] );
7110
 
260
  // Numeric keys indicate parse errors
261
  $not_valid = false;
262
  foreach ( $attr as $key => $value ) {
263
+ // Clean up damage caused by the Visual Editor
264
+ $attr[ $key ] = wp_specialchars_decode( $value );
265
+
266
  if ( is_numeric( $key ) ) {
267
  $not_valid = true;
268
  break;
269
  }
270
  }
271
+ //error_log( __LINE__ . " mla_validate_attributes() attr = " . var_export( $attr, true ), 0 );
272
 
273
  if ( $not_valid ) {
274
  /*
3193
  break;
3194
  }
3195
  } else {
3196
+ if ( (integer) $term->term_id === (integer) $current_item ) {
3197
  $is_active = true;
3198
  $item_values['current_item_class'] = $arguments['current_item_class'];
3199
  break;
3360
  }
3361
  } // foreach tag
3362
 
3363
+ // If the current item isn't in the term list, remove it to prevent "stale" [mla_gallery] content
3364
+ if ( ( 0 == $current_level ) && ( false === $has_active ) ) {
3365
+ $mla_control_name = $markup_values['thename'];
3366
+
3367
+ // Does not handle default 'tax_input[[+taxonomy+]][]' values
3368
+ if ( false === strpos( $mla_control_name, '[]' ) ) {
3369
+ unset( $_REQUEST[ $mla_item_parameter ] );
3370
+ unset( $_REQUEST[ $mla_control_name ] );
3371
+ }
3372
+ }
3373
+
3374
  if ( $is_list || $is_dropdown || $is_checklist ) {
3375
  if ( $is_list || ( ( 0 == $current_level ) && $is_dropdown ) || $is_checklist ) {
3376
  $markup_values = apply_filters( 'mla_term_list_close_values', $markup_values );
3791
 
3792
  $show_empty = false;
3793
  if ( 0 == $found_rows ) {
3794
+ if ( !empty( $arguments['mla_control_name'] ) ) {
3795
+ // Remove the current item from the parameters to prevent "stale" [mla_gallery] content
3796
+ $mla_control_name = self::_process_shortcode_parameter( $arguments['mla_control_name'], $page_values );
3797
+
3798
+ // Does not handle default 'tax_input[[+taxonomy+]][]' values
3799
+ unset( $_REQUEST[ $mla_item_parameter ] );
3800
+ unset( $_REQUEST[ $mla_control_name ] );
3801
+ }
3802
+
3803
  if ( self::$mla_debug ) {
3804
  MLACore::mla_debug_add( __LINE__ . ' <strong>' . __( 'mla_debug empty list', 'media-library-assistant' ) . '</strong>, query = ' . var_export( $arguments, true ) );
3805
  $list = MLACore::mla_debug_flush();
3960
  } else {
3961
  $found_rows = count( $tags );
3962
  }
3963
+
3964
+ if ( ( 0 === $found_rows ) && !empty( $arguments['mla_control_name'] ) ) {
3965
+ // Remove the current item from the parameters to prevent "stale" [mla_gallery] content
3966
+ $mla_control_name = self::_process_shortcode_parameter( $arguments['mla_control_name'], $page_values );
3967
+
3968
+ // Does not handle default 'tax_input[[+taxonomy+]][]' values
3969
+ unset( $_REQUEST[ $mla_item_parameter ] );
3970
+ unset( $_REQUEST[ $mla_control_name ] );
3971
+ }
3972
  } else {
3973
  if ( !$show_empty ) {
3974
  foreach ( $tags as $key => $tag ) {
4398
  * @since 2.20
4399
  *
4400
  * @param array value(s) for mla_output_type parameter
4401
+ * @param array template substitution values, e.g., ('instance' => '1', ... )
4402
+ * @param array merged default and passed shortcode parameter values
4403
  * @param integer number of attachments in the gallery, without pagination
4404
  * @param string output text so far, may include debug values
4405
  *
4406
+ * @return string empty string, mla_nolink_text or string with HTML for pagination output types
4407
  */
4408
  private static function _paginate_links( $output_parameters, $markup_values, $arguments, $found_rows, $output = '' ) {
4409
  if ( 2 > $markup_values['last_page'] ) {
4410
+ if ( ! empty( $arguments['mla_nolink_text'] ) ) {
4411
+ return self::_process_shortcode_parameter( $arguments['mla_nolink_text'], $markup_values );
4412
+ } else {
4413
+ return '';
4414
+ }
4415
  }
4416
 
4417
  $show_all = $prev_next = false;
4566
  }
4567
 
4568
  if ( 0 < $posts_per_page ) {
4569
+ $max_page = (integer) floor( $found_rows / $posts_per_page );
4570
  if ( $max_page < ( $found_rows / $posts_per_page ) ) {
4571
  $max_page++;
4572
  }
4801
  *
4802
  * @since 2.82
4803
  *
4804
+ * @param string $specification query specification; PHP nested arrays
4805
+ * @param array $interor_arrays Optional. Values for nested arrays, by reference.
4806
  *
4807
  * @return boolean true if specification is a valid PHP array else false
4808
  */
4809
+ private static function _validate_array_specification( $specification, &$interor_arrays = array() ) {
4810
  //error_log( __LINE__ . " _validate_array_specification() specification = " . var_export( $specification, true ), 0 );
4811
+ //error_log( __LINE__ . " _validate_array_specification() interor_arrays = " . var_export( $interor_arrays, true ), 0 );
4812
  self::$array_specification_error = '';
4813
 
4814
  // Check for outer array specification(s) and reject anything else.
4818
  return false;
4819
  }
4820
 
4821
+ $converted_array = array();
4822
+
4823
  $interior = trim( $matches[1], ', ' );
4824
  while ( strlen( $interior ) ) {
4825
+ //error_log( __LINE__ . " _validate_array_specification() converted_array = " . var_export( $converted_array, true ), 0 );
4826
  //error_log( __LINE__ . " _validate_array_specification() interior = " . var_export( $interior, true ), 0 );
4827
+ $interior_array = array();
4828
+
4829
  // Recursive matching required for nested and multiple arrays
4830
  while ( preg_match_all( '/(?x)array\s*\( ( (?>[^()]+) | (?R) )* \)/', $interior, $matches ) ) {
4831
  //error_log( __LINE__ . " _validate_array_specification() recursion matches = " . var_export( $matches, true ), 0 );
4832
  foreach ( $matches[0] as $search ) {
4833
  // Replace valid arrays with a harmless literal value
4834
+ $interior_array = self::_validate_array_specification( $search, $interor_arrays );
4835
+ if ( false === $interior_array ) {
4836
  self::$array_specification_error = " FAILED nested array = " . var_export( $search, true );
4837
  //error_log( __LINE__ . " _validate_array_specification() search = " . var_export( $search, true ), 0 );
4838
  return false;
4839
  }
4840
 
4841
+ $interor_arrays[] = $interior_array;
4842
+ $interior = str_replace( $search, sprintf( 'ARRAY%1$03d', ( count( $interor_arrays ) - 1 ) ), $interior );
4843
  }
4844
  //error_log( __LINE__ . " _validate_array_specification() recursion interior = " . var_export( $interior, true ), 0 );
4845
+ //error_log( __LINE__ . " _validate_array_specification() recursion interor_arrays = " . var_export( $interor_arrays, true ), 0 );
 
 
 
 
 
4846
  }
4847
 
4848
  // Look for a nested array
4849
  if ( 1 === preg_match( '/^(array\s*\(.*\))(.*)$/', $interior, $matches ) ) {
4850
+ //error_log( __LINE__ . " _validate_array_specification() nested matches = " . var_export( $matches, true ), 0 );
4851
+ $interior_array = self::_validate_array_specification( $matches[1], $interor_arrays );
4852
+ if ( false === $interior_array ) {
4853
  return false;
4854
  }
4855
 
4856
+ $converted_array[] = $interior_array;
4857
  $interior = trim( $matches[2], ' ,' );
4858
  continue;
4859
  }
4860
 
4861
  // PHP "undefined constant" pattern: [a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*
4862
+ /* Look for 'key' => value
4863
+ * 0 Entire interior
4864
+ * 1 key and assignment literal, e.g., '\'key\' => '
4865
+ * 2 quoted string | integer | undefined constant
4866
+ * 3 string key with enclosing quotes
4867
+ * 4 string key without quotes
4868
+ * 5 integer key
4869
+ * 6 undefined constant key
4870
+ * 7 quoted string | integer | ARRAY999 placeholder | 4- or 5-letter word
4871
+ * 8 string value with quotes
4872
+ * 9 string value without quotes
4873
+ * 10 integer value
4874
+ * 11 ARRAY999 placeholder
4875
+ * 12 tail portion following ARRAY999 placeholder
4876
+ * 13 4 or 5 letter word, e.g. true or false
4877
+ * 14 tail portion following string, integer or word/boolean value
4878
+ */
4879
+ if ( 1 === preg_match( '/^((([\'\"](.+?)[\'\"])|(\d+)|([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*))\s*\=\>\s*)(([\'\"](.*?)[\'\"])|(\d+)|(ARRAY...)(.*)|(\w{4,5}))(.*)$/', $interior, $matches /*, PREG_OFFSET_CAPTURE */ ) ) {
4880
  //error_log( __LINE__ . " _validate_array_specification() key => value matches = " . var_export( $matches, true ), 0 );
4881
 
4882
+ // Validate boolean values
4883
+ if ( ! empty( $matches[13] ) ) {
4884
  //error_log( __LINE__ . " _validate_array_specification() boolean and array() matches = " . var_export( $matches[10], true ), 0 );
4885
+ //error_log( __LINE__ . " _validate_array_specification() boolean and array() interior_array = " . var_export( $interior_array, true ), 0 );
4886
+ if ( false === in_array( strtolower( $matches[13] ), array( 'false', 'true' ) ) ) {
4887
  //error_log( __LINE__ . " _validate_array_specification() FAILED boolean matches = " . var_export( $matches[7], true ), 0 );
4888
  self::$array_specification_error = " FAILED boolean matches = " . var_export( $matches[7], true );
4889
  return false;
4890
  }
4891
  }
4892
 
4893
+ if ( ! empty( $matches[5] ) ) {
4894
+ $key = (integer) $matches[5];
4895
+ } else {
4896
+ $key = trim( $matches[2], '"\'' );
4897
+ }
4898
+
4899
+ if ( 8 === strlen( $matches[11] ) ) {
4900
+ $simple_index = substr( $matches[11], 5, 3 );
4901
+ if ( 'XXX' !== $simple_index ) {
4902
+ $converted_array[ $key ] = $interor_arrays[ (integer) $simple_index ];
4903
+ }
4904
+
4905
+ $interior = trim( $matches[12], ' ,' );
4906
+ } else {
4907
+ if ( ! empty( $matches[10] ) ) {
4908
+ $converted_array[ $key ] = (integer) $matches[10];
4909
+ } elseif ( ! empty( $matches[13] ) ) {
4910
+ $converted_array[ $key ] = ( 'true' === strtolower( $matches[13] ) );
4911
+ } else {
4912
+ $converted_array[ $key ] = trim( $matches[7], '"\'' );
4913
+ }
4914
+
4915
+ $interior = trim( $matches[14], ' ,' );
4916
+ }
4917
+
4918
  continue;
4919
  }
4920
 
4921
+ /*
4922
+ * Look for already-validated array match, simple quoted string, integer value or "undefined constant", e.g., in 'terms' =>
4923
+ * 0 Entire interior
4924
+ * 1 string | integer | constant
4925
+ * 2 string with quotes
4926
+ * 3 string trimmed of quotes
4927
+ * 4 integer
4928
+ * 5 undefined constant or ARRAY999 placeholder
4929
+ * 6 tail portion of interior
4930
+ */
4931
  if ( 1 === preg_match( '/^(([\'\"](.+?)[\'\"])|(-{0,1}\d+)|([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*))(.*)$/', $interior, $matches ) ) {
4932
  //error_log( __LINE__ . " _validate_array_specification() simple matches = " . var_export( $matches, true ), 0 );
4933
+ if ( 0 === strpos( $interior, 'ARRAY' ) ) {
4934
+ $simple_index = substr( $interior, 5, 3 );
4935
+ if ( 'XXX' !== $simple_index ) {
4936
+ $converted_array[] = $interor_arrays[ (integer) $simple_index ];
4937
+ }
4938
+ } else {
4939
+ if ( !empty( $matches[4] ) ) {
4940
+ $converted_array[] = (integer) $matches[4];
4941
+ } else {
4942
+ $converted_array[] = trim( $matches[1], '"\'' );
4943
+ }
4944
+ }
4945
+
4946
  $interior = trim( $matches[6], ' ,' );
4947
  continue;
4948
  }
4951
  self::$array_specification_error = " FAILED interior = " . var_export( $interior, true );
4952
  return false;
4953
  }
 
4954
  //error_log( __LINE__ . " _validate_array_specification() GOOD interior = " . var_export( $interior, true ), 0 );
4955
+
4956
+ //error_log( __LINE__ . " _validate_array_specification() GOOD converted_array = " . var_export( $converted_array, true ), 0 );
4957
+ return $converted_array;
4958
  }
4959
 
4960
  /**
5233
  public static function mla_pmp_hide_attachments_filter( $post_types ) {
5234
  $post_types[] = 'attachment';
5235
  return $post_types;
5236
+ }
5237
+
5238
+ /**
5239
+ * Convert a taxonomy, date or meta query parameter to an array
5240
+ *
5241
+ * @since 2.99
5242
+ *
5243
+ * @param string $query_type 'tax_query', 'date_query' or 'meta_query'.
5244
+ * @param mixed $query_string Array specification in text or array format, e.g., array of arrays.
5245
+ * @param array $where_used_alternative Harmless substitute for invalid "where-used" queries.
5246
+ *
5247
+ * @return mixed An array on success, error message string on failure
5248
+ */
5249
+ private static function _convert_query_parameter( $query_type, $query_string, $where_used_alternative ) {
5250
+ //error_log( __LINE__ . " _convert_query_parameter( {$query_type} ) query_string = " . var_export( $query_string, true ), 0 );
5251
+ if ( is_array( $query_string ) ) {
5252
+ return $query_string;
5253
+ }
5254
+
5255
+ // Clean up damage caused by the Visual Editor
5256
+ $candidate = wp_specialchars_decode( $query_string );
5257
+
5258
+ $candidate = str_replace( array( '&#038;', '&#8216;', '&#8217;', '&#8220;', '&#8221;', '&#8242;', '&#8243;', '&amp;', '<br />', '<br>', '<p>', '</p>', "\r", "\n", "\t" ),
5259
+ array( '&', '\'', '\'', '"', '"', '\'', '"', '&', ' ', ' ', ' ', ' ', ' ', ' ', ' ' ), $candidate );
5260
+
5261
+ $candidate = trim( $candidate, ' ,"\`' );
5262
+ //error_log( __LINE__ . " _convert_query_parameter( {$query_type} ) candidate = " . var_export( $candidate, true ), 0 );
5263
 
5264
+ // Unexpanded substitution parameters are not allowed
5265
+ if ( false !== strpos( $candidate, '{+' ) ) {
5266
+ $converted_result = false;
5267
+ self::$array_specification_error = 'FAILED substitution parameter in ' . $candidate;
5268
+ } else {
5269
+ // Check for nested array specification(s) and reject anything else.
5270
+ $converted_result = self::_validate_array_specification( $candidate );
5271
+ }
5272
+ //error_log( __LINE__ . " _convert_query_parameter( {$query_type} ) converted_result = " . var_export( $converted_result, true ), 0 );
5273
+
5274
+ if ( false === $converted_result ) {
5275
+ // Replace invalid queries from "where-used" callers with a harmless equivalent
5276
+ if ( !empty( $where_used_alternative ) ) {
5277
+ return $where_used_alternative;
5278
+ }
5279
+
5280
+ return '<p>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . __( 'Invalid mla_gallery', 'media-library-assistant' ) . " {$query_type} = " . self::$array_specification_error . '</p>';
5281
+ }
5282
+
5283
+ /* * /
5284
+ try {
5285
+ //error_log( __LINE__ . " _convert_query_parameter( {$query_type} ) candidate = " . var_export( $candidate, true ), 0 );
5286
+ $result = @eval( 'return ' . $candidate . ';' );
5287
+ //error_log( __LINE__ . " _convert_query_parameter( {$query_type} ) result = " . var_export( $result, true ), 0 );
5288
+ } catch ( Throwable $e ) { // PHP 7+
5289
+ $result = NULL;
5290
+ } catch ( Exception $e ) { // PHP 5
5291
+ $result = NULL;
5292
+ } // */
5293
+ //error_log( __LINE__ . " _convert_query_parameter( {$query_type} ) result = " . var_export( $result, true ), 0 );
5294
+
5295
+ // if ( is_array( $result ) ) {
5296
+ if ( is_array( $converted_result ) ) {
5297
+ /* * /
5298
+ if ( $converted_result != $result ) {
5299
+ //error_log( __LINE__ . " _convert_query_parameter( {$query_type} ) loose failure converted_result = " . var_export( $converted_result, true ), 0 );
5300
+ //error_log( __LINE__ . " _convert_query_parameter( {$query_type} ) loose failure eval result = " . var_export( $result, true ), 0 );
5301
+ }
5302
+
5303
+ if ( $converted_result !== $result ) {
5304
+ //error_log( __LINE__ . " _convert_query_parameter( {$query_type} ) strict failure converted_result = " . var_export( $converted_result, true ), 0 );
5305
+ //error_log( __LINE__ . " _convert_query_parameter( {$query_type} ) strict failure eval result = " . var_export( $result, true ), 0 );
5306
+ } // */
5307
+
5308
+ // return $result;
5309
+ return $converted_result;
5310
+ }
5311
+
5312
+ return '<p>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . __( 'Invalid mla_gallery', 'media-library-assistant' ) . " {$query_type} = " . var_export( $candidate, true ) . '</p>';
5313
  }
5314
 
5315
  /**
5438
  $query_arguments[ $key ] = $value;
5439
  self::$mla_get_shortcode_dynamic_attachments_parameters[ $key ] = $value;
5440
  } else {
5441
+ $tax_query = self::_convert_query_parameter( 'tax_query', $value, array( array( 'taxonomy' => 'none', 'field' => 'slug', 'terms' => 'none' ) ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5442
 
5443
  if ( is_array( $tax_query ) ) {
5444
  // Check for ignore.terms.assigned/-3, no.terms.assigned/-1 or any.terms.assigned/-2
5954
  if ( is_array( $value ) ) {
5955
  $query_arguments[ $key ] = $value;
5956
  } else {
5957
+ $date_query = self::_convert_query_parameter( 'date_query', $value, ( $where_used_query ? array( array( 'key' => 'unlikely', 'value' => 'none or otherwise unlikely' ) ) : '' ) );
5958
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5959
  if ( is_array( $date_query ) ) {
5960
  $query_arguments[ $key ] = $date_query;
5961
  } else {
5962
  self::$mla_debug = $old_debug_mode;
5963
+ return $date_query;
5964
  }
5965
  } // not array
5966
 
5974
  if ( is_array( $value ) ) {
5975
  $query_arguments[ $key ] = $value;
5976
  } else {
5977
+ $meta_query = self::_convert_query_parameter( 'meta_query', $value, ( $where_used_query ? array( array( 'key' => 'unlikely', 'value' => 'none or otherwise unlikely' ) ) : '' ) );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5978
 
5979
  if ( is_array( $meta_query ) ) {
5980
  $query_arguments[ $key ] = $meta_query;
5981
  } else {
5982
  self::$mla_debug = $old_debug_mode;
5983
+ return $meta_query; // '<p>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . __( 'Invalid mla_gallery', 'media-library-assistant' ) . ' meta_query = ' . var_export( $value, true ) . '</p>';
5984
  }
5985
  } // not array
5986
 
6082
  unset( self::$query_parameters['orderby'] );
6083
  }
6084
 
6085
+ // RML Pro overrides orderby if it's not present in the query arguments
6086
+ if ( false === defined('RML_FILE') ) {
6087
+ unset( $query_arguments['orderby'] );
6088
+ unset( $query_arguments['order'] );
6089
+ }
6090
+
6091
  if ( self::$mla_debug ) {
6092
  add_filter( 'posts_clauses', 'MLAShortcode_Support::mla_shortcode_query_posts_clauses_filter', 0x7FFFFFFF, 1 );
6093
  add_filter( 'posts_clauses_request', 'MLAShortcode_Support::mla_shortcode_query_posts_clauses_request_filter', 0x7FFFFFFF, 1 );
7208
  // Calculate and potentially trim parent/child tree
7209
  $all_terms_count = 0;
7210
  foreach ( array_keys( $term_tree ) as $taxonomy ) {
 
 
 
 
 
 
 
 
 
 
7211
  if ( $include_tree ) {
7212
  $result = self::_find_include_tree( $term_tree[ $taxonomy ], $include_tree );
7213
  if ( false !== $result ) {
7222
  self::_remove_exclude_tree( $term_tree[ $taxonomy ], $exclude_tree );
7223
  }
7224
 
7225
+ if ( $child_of ) {
7226
+ $result = self::_find_child_of( $term_tree[ $taxonomy ], $child_of );
7227
+
7228
+ if ( false !== $result ) {
7229
+ $term_tree[ $taxonomy ] = $result->children;
7230
+ } else {
7231
+ $term_tree[ $taxonomy ] = array();
7232
+ continue;
7233
+ }
7234
+ } // $child_of
7235
+
7236
  $term_count = 0;
7237
  $root_limit = count( $term_tree[ $taxonomy ] );
7238
 
includes/class-mla-thumbnail-generation.php CHANGED
@@ -81,15 +81,15 @@ class MLA_Thumbnail {
81
  }
82
 
83
  if ( $wp_locale->is_rtl() ) {
84
- wp_register_style( 'mla-thumbnail-generation', MLA_PLUGIN_URL . 'css/mla-thumbnail-generation-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
85
  } else {
86
- wp_register_style( 'mla-thumbnail-generation', MLA_PLUGIN_URL . 'css/mla-thumbnail-generation.css', false, MLACore::CURRENT_MLA_VERSION );
87
  }
88
 
89
  wp_enqueue_style( 'mla-thumbnail-generation' );
90
 
91
  wp_enqueue_script( 'mla-thumbnail-generation-scripts', MLA_PLUGIN_URL . "js/mla-thumbnail-generation-scripts{$suffix}.js",
92
- array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
93
 
94
  $script_variables = array(
95
  'error' => __( 'Error while saving the thumbnails.', 'media-library-assistant' ),
81
  }
82
 
83
  if ( $wp_locale->is_rtl() ) {
84
+ wp_register_style( 'mla-thumbnail-generation', MLA_PLUGIN_URL . 'css/mla-thumbnail-generation-rtl.css', false, MLACore::mla_script_version() );
85
  } else {
86
+ wp_register_style( 'mla-thumbnail-generation', MLA_PLUGIN_URL . 'css/mla-thumbnail-generation.css', false, MLACore::mla_script_version() );
87
  }
88
 
89
  wp_enqueue_style( 'mla-thumbnail-generation' );
90
 
91
  wp_enqueue_script( 'mla-thumbnail-generation-scripts', MLA_PLUGIN_URL . "js/mla-thumbnail-generation-scripts{$suffix}.js",
92
+ array( 'jquery' ), MLACore::mla_script_version(), false );
93
 
94
  $script_variables = array(
95
  'error' => __( 'Error while saving the thumbnails.', 'media-library-assistant' ),
includes/mla-plugin-loader.php CHANGED
@@ -115,7 +115,7 @@ if ( ! empty( $mla_plugin_loader_error_messages ) ) {
115
  * IPTC/EXIF and Custom Field mapping require full support, too.
116
  * NOTE: AJAX upload_attachment is no longer used - see /wp-admin/asynch-upload.php
117
  */
118
- $ajax_exceptions = array( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG, 'mla-inline-mapping-iptc-exif-scripts', 'mla-inline-mapping-custom-scripts', 'mla-polylang-quick-translate', 'mla-inline-edit-upload-scripts', 'mla-inline-edit-view-scripts', 'mla-inline-edit-custom-scripts', 'mla-inline-edit-iptc-exif-scripts', 'upload-attachment' );
119
 
120
  $ajax_only = true;
121
  if ( MLA_AJAX_EXCEPTIONS ) {
115
  * IPTC/EXIF and Custom Field mapping require full support, too.
116
  * NOTE: AJAX upload_attachment is no longer used - see /wp-admin/asynch-upload.php
117
  */
118
+ $ajax_exceptions = array( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG, 'mla-inline-mapping-iptc-exif-scripts', 'mla-inline-mapping-custom-scripts', 'mla-polylang-quick-translate', 'mla-inline-edit-upload-scripts', 'mla-inline-edit-view-scripts', 'mla-inline-edit-custom-scripts', 'mla-inline-edit-iptc-exif-scripts', 'upload-attachment', 'mla-export-presets' );
119
 
120
  $ajax_only = true;
121
  if ( MLA_AJAX_EXCEPTIONS ) {
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 2.98
10
  */
11
 
12
  /*
@@ -16,10 +16,10 @@ Description: Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud]
16
  Author: David Lingren
17
  Text Domain: media-library-assistant
18
  Domain Path: /languages
19
- Version: 2.98
20
  Author URI: http://davidlingren.com/
21
 
22
- Copyright 2011-2021 David Lingren
23
 
24
  This program is free software; you can redistribute it and/or modify
25
  it under the terms of the GNU General Public License as published by
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
+ * @version 2.99
10
  */
11
 
12
  /*
16
  Author: David Lingren
17
  Text Domain: media-library-assistant
18
  Domain Path: /languages
19
+ Version: 2.99
20
  Author URI: http://davidlingren.com/
21
 
22
+ Copyright 2011-2022 David Lingren
23
 
24
  This program is free software; you can redistribute it and/or modify
25
  it under the terms of the GNU General Public License as published by
js/mla-add-new-bulk-edit-scripts.js CHANGED
@@ -9,10 +9,12 @@ var jQuery,
9
  // mla.settings.toggleOpen
10
  // mla.settings.areaOnTop
11
  // mla.settings.comma for flat taxonomy suggest
12
- // mla.settings.ajaxFailError for setParent
13
- // mla.settings.ajaxDoneError for setParent
14
- // mla.settings.useDashicons for setParent
15
- // mla.settings.useSpinnerClass for setParent
 
 
16
  settings: {},
17
 
18
  // Utility functions
@@ -24,61 +26,64 @@ var jQuery,
24
  },
25
 
26
  attachSearch : function( rowId ) {
27
- jQuery( rowId + ' .categorydiv' ).each( function(){
28
- var this_id = jQuery(this).attr('id'), taxonomyParts, taxonomy;
29
-
30
- taxonomyParts = this_id.split('-');
31
- taxonomyParts.shift(); // taxonomy-
32
- taxonomy = taxonomyParts.join('-');
33
 
 
 
 
 
 
34
  jQuery.extend( jQuery.expr.pseudos || jQuery.expr[":"], {
35
  "matchTerms": function( elem, i, match, array ) {
36
  return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
37
  }
38
  });
39
 
40
- jQuery( rowId + ' #' + taxonomy + '-searcher' ).addClass( 'wp-hidden-children' );
41
- jQuery( rowId + ' #' + taxonomy + 'checklist li' ).show();
42
 
43
- jQuery( rowId + ' #search-' + taxonomy ).off();
 
 
44
 
45
- jQuery( rowId + ' #search-' + taxonomy ).on( 'keydown', function( event ){
46
-
47
  if( 13 === event.keyCode ) {
48
  event.preventDefault();
49
- jQuery( rowId + ' #search-' + taxonomy ).val( '' );
50
- jQuery( rowId + ' #' + taxonomy + '-searcher' ).addClass( 'wp-hidden-children' );
51
 
52
- jQuery( rowId + ' #' + taxonomy + 'checklist li' ).show();
53
  return false;
54
  }
55
 
56
  } );
57
 
58
- jQuery( rowId + ' #search-' + taxonomy ).on( 'keypress', function( event ){
59
 
60
  if( 13 === event.keyCode ) {
61
  event.preventDefault();
62
- jQuery( rowId + ' #search-' + taxonomy ).val( '' );
63
- jQuery( rowId + ' #' + taxonomy + '-searcher' ).addClass( 'wp-hidden-children' );
64
 
65
- jQuery( rowId + ' #' + taxonomy + 'checklist li' ).show();
66
  return;
67
  }
68
 
69
  } );
70
 
71
- jQuery( rowId + ' #search-' + taxonomy ).on( 'keyup', function( event ){
72
  var searchValue, termList, matchingTerms;
73
 
74
  if( 13 === event.keyCode ) {
75
  event.preventDefault();
76
- jQuery( rowId + ' #' + taxonomy + '-search-toggle' ).focus();
77
  return;
78
  }
79
 
80
- searchValue = jQuery( rowId + ' #search-' + taxonomy ).val();
81
- termList = jQuery( rowId + ' #' + taxonomy + 'checklist li' );
82
 
83
  if ( 0 < searchValue.length ) {
84
  termList.hide();
@@ -86,21 +91,21 @@ var jQuery,
86
  termList.show();
87
  }
88
 
89
- matchingTerms = jQuery( rowId + ' #' + taxonomy + "checklist label:matchTerms('" + searchValue + "')");
90
- matchingTerms.closest( 'li' ).find( 'li' ).andSelf().show();
91
- matchingTerms.parents( rowId + ' #' + taxonomy + 'checklist li' ).show();
92
  } );
93
 
94
- jQuery( rowId + ' #' + taxonomy + '-search-toggle' ).off();
95
 
96
- jQuery( rowId + ' #' + taxonomy + '-search-toggle' ).on( 'click', function() {
97
- jQuery( rowId + ' #' + taxonomy + '-adder ').addClass( 'wp-hidden-children' );
98
- jQuery( rowId + ' #' + taxonomy + '-searcher' ).toggleClass( 'wp-hidden-children' );
99
- jQuery( rowId + ' #' + taxonomy + 'checklist li' ).show();
100
 
101
- if ( false === jQuery( rowId + ' #' + taxonomy + '-searcher' ).hasClass( 'wp-hidden-children' ) ) {
102
- jQuery( rowId + ' #search-' + taxonomy ).val( '' ).removeClass( 'form-input-tip' );
103
- jQuery( rowId + ' #search-' + taxonomy ).focus();
104
  }
105
 
106
  return false;
@@ -125,7 +130,7 @@ var jQuery,
125
 
126
  mla.addNewBulkEdit = {
127
  init: function() {
128
- var blankContent, toggleButton, resetButton,
129
  bypass = $( '.upload-flash-bypass' ), title = $( '#wpbody .wrap' ).children ( 'h1, h2' ),
130
  uploadContent, uploadDiv = $( '#mla-add-new-bulk-edit-div' ).hide(); // Start with area closed up
131
 
@@ -138,6 +143,10 @@ var jQuery,
138
  return mla.addNewBulkEdit.parentOpen();
139
  });
140
 
 
 
 
 
141
  // Move the blank content out of the form so it won't pollute the serialize() results
142
  blankContent = $('#mla-blank-add-new-bulk-edit-div').detach();
143
  $( '#file-form' ).after( blankContent );
@@ -145,15 +154,21 @@ var jQuery,
145
  // Move the Open/Close Bulk Edit area toggleButton to save space on the page
146
  toggleButton = $( '#bulk-edit-toggle', uploadDiv ).detach();
147
  resetButton = $( '#bulk-edit-reset', uploadDiv ).detach();
 
 
148
 
149
  if ( mla.settings.areaOnTop ) {
150
  toggleButton.appendTo( title );
151
  resetButton.appendTo( title );
 
 
152
  uploadContent = uploadDiv.detach();
153
  $( '#media-upload-notice' ).before( uploadContent );
154
  } else {
155
  toggleButton.appendTo( bypass );
156
  resetButton.appendTo( bypass );
 
 
157
  };
158
 
159
  // Hook the "browser uploader" link to close the Bulk Edit area when it is in use
@@ -161,6 +176,8 @@ var jQuery,
161
  toggleButton.attr( 'title', mla.settings.toggleOpen );
162
  toggleButton.attr( 'value', mla.settings.toggleOpen );
163
  resetButton.hide();
 
 
164
  uploadDiv.hide();
165
  });
166
 
@@ -172,6 +189,14 @@ var jQuery,
172
  return mla.addNewBulkEdit.doReset();
173
  });
174
 
 
 
 
 
 
 
 
 
175
  if ( mla.settings.areaOpen ) {
176
  mla.addNewBulkEdit.formToggle();
177
  };
@@ -213,8 +238,81 @@ var jQuery,
213
  return false;
214
  },
215
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  formToggle : function() {
217
  var toggleButton = $( '#bulk-edit-toggle' ), resetButton = $( '#bulk-edit-reset' ),
 
218
  area = $( '#mla-add-new-bulk-edit-div' );
219
 
220
  // Expand/collapse the Bulk Edit area
@@ -222,10 +320,14 @@ var jQuery,
222
  toggleButton.attr( 'title', mla.settings.toggleClose );
223
  toggleButton.attr( 'value', mla.settings.toggleClose );
224
  resetButton.show();
 
 
225
  } else {
226
  toggleButton.attr( 'title', mla.settings.toggleOpen );
227
  toggleButton.attr( 'value', mla.settings.toggleOpen );
228
  resetButton.hide();
 
 
229
  }
230
 
231
  area.slideToggle( 'slow' );
9
  // mla.settings.toggleOpen
10
  // mla.settings.areaOnTop
11
  // mla.settings.comma for flat taxonomy suggest
12
+ // mla.settings.ajaxFailError for setParent, doExport
13
+ // mla.settings.ajaxDoneError for setParent, doExport
14
+ // mla.settings.setParentAction for setParent
15
+ // mla.settings.exportPresetsAction for doExport
16
+ // mla.settings.useDashicons for setParent, doExport
17
+ // mla.settings.useSpinnerClass for setParent, doExport
18
  settings: {},
19
 
20
  // Utility functions
26
  },
27
 
28
  attachSearch : function( rowId ) {
29
+ var editDiv = jQuery( rowId );
30
+
31
+ jQuery( '.categorydiv', editDiv ).each( function(){
32
+ var this_id = jQuery(this).attr('id'), taxonomy, taxonomyPrefix;
 
 
33
 
34
+ taxonomy = this_id.split('-');
35
+ taxonomy.shift(); // taxonomy-
36
+ taxonomy = taxonomy.join('-');
37
+ taxonomyPrefix = '#' + taxonomy;
38
+
39
  jQuery.extend( jQuery.expr.pseudos || jQuery.expr[":"], {
40
  "matchTerms": function( elem, i, match, array ) {
41
  return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
42
  }
43
  });
44
 
45
+ jQuery( taxonomyPrefix + '-searcher', editDiv ).addClass( 'wp-hidden-children' );
46
+ jQuery( taxonomyPrefix + 'checklist li', editDiv ).show();
47
 
48
+ jQuery( '#search-' + taxonomy, editDiv ).off();
49
+
50
+ jQuery( '#search-' + taxonomy, editDiv ).on( 'keydown', function( event ){
51
 
 
 
52
  if( 13 === event.keyCode ) {
53
  event.preventDefault();
54
+ jQuery( '#search-' + taxonomy, editDiv ).val( '' );
55
+ jQuery( taxonomyPrefix + '-searcher', editDiv ).addClass( 'wp-hidden-children' );
56
 
57
+ jQuery( taxonomyPrefix + 'checklist li', editDiv ).show();
58
  return false;
59
  }
60
 
61
  } );
62
 
63
+ jQuery( '#search-' + taxonomy, editDiv ).on( 'keypress', function( event ){
64
 
65
  if( 13 === event.keyCode ) {
66
  event.preventDefault();
67
+ jQuery( '#search-' + taxonomy, editDiv ).val( '' );
68
+ jQuery( taxonomyPrefix + '-searcher', editDiv ).addClass( 'wp-hidden-children' );
69
 
70
+ jQuery( taxonomyPrefix + 'checklist li', editDiv ).show();
71
  return;
72
  }
73
 
74
  } );
75
 
76
+ jQuery( '#search-' + taxonomy, editDiv ).on( 'keyup', function( event ){
77
  var searchValue, termList, matchingTerms;
78
 
79
  if( 13 === event.keyCode ) {
80
  event.preventDefault();
81
+ jQuery( taxonomyPrefix + '-search-toggle', editDiv ).trigger('focus');
82
  return;
83
  }
84
 
85
+ searchValue = jQuery( '#search-' + taxonomy, editDiv ).val();
86
+ termList = jQuery( taxonomyPrefix + 'checklist li', editDiv );
87
 
88
  if ( 0 < searchValue.length ) {
89
  termList.hide();
91
  termList.show();
92
  }
93
 
94
+ matchingTerms = jQuery( taxonomyPrefix + "checklist label:matchTerms('" + searchValue + "')", editDiv );
95
+ matchingTerms.closest( 'li' ).find( 'li' ).addBack().show();
96
+ matchingTerms.parents( taxonomyPrefix + 'checklist li', editDiv ).show();
97
  } );
98
 
99
+ jQuery( taxonomyPrefix + '-search-toggle', editDiv ).off();
100
 
101
+ jQuery( taxonomyPrefix + '-search-toggle', editDiv ).on( 'click', function() {
102
+ jQuery( taxonomyPrefix + '-adder ', editDiv ).addClass( 'wp-hidden-children' );
103
+ jQuery( taxonomyPrefix + '-searcher', editDiv ).toggleClass( 'wp-hidden-children' );
104
+ jQuery( taxonomyPrefix + 'checklist li', editDiv ).show();
105
 
106
+ if ( false === jQuery( taxonomyPrefix + '-searcher', editDiv ).hasClass( 'wp-hidden-children' ) ) {
107
+ jQuery( '#search-' + taxonomy, editDiv ).val( '' ).removeClass( 'form-input-tip' );
108
+ jQuery( '#search-' + taxonomy, editDiv ).trigger('focus');
109
  }
110
 
111
  return false;
130
 
131
  mla.addNewBulkEdit = {
132
  init: function() {
133
+ var presetContent, blankContent, toggleButton, resetButton, importButton, exportButton,
134
  bypass = $( '.upload-flash-bypass' ), title = $( '#wpbody .wrap' ).children ( 'h1, h2' ),
135
  uploadContent, uploadDiv = $( '#mla-add-new-bulk-edit-div' ).hide(); // Start with area closed up
136
 
143
  return mla.addNewBulkEdit.parentOpen();
144
  });
145
 
146
+ // Move the import/export preset content out of the form so it won't pollute the serialize() results
147
+ presetContent = $('#mla-preset-add-new-bulk-edit-div').detach();
148
+ $( '#file-form' ).after( presetContent );
149
+
150
  // Move the blank content out of the form so it won't pollute the serialize() results
151
  blankContent = $('#mla-blank-add-new-bulk-edit-div').detach();
152
  $( '#file-form' ).after( blankContent );
154
  // Move the Open/Close Bulk Edit area toggleButton to save space on the page
155
  toggleButton = $( '#bulk-edit-toggle', uploadDiv ).detach();
156
  resetButton = $( '#bulk-edit-reset', uploadDiv ).detach();
157
+ importButton = $( '#bulk-edit-import', uploadDiv ).detach();
158
+ exportButton = $( '#bulk-edit-export', uploadDiv ).detach();
159
 
160
  if ( mla.settings.areaOnTop ) {
161
  toggleButton.appendTo( title );
162
  resetButton.appendTo( title );
163
+ importButton.appendTo( title );
164
+ exportButton.appendTo( title );
165
  uploadContent = uploadDiv.detach();
166
  $( '#media-upload-notice' ).before( uploadContent );
167
  } else {
168
  toggleButton.appendTo( bypass );
169
  resetButton.appendTo( bypass );
170
+ importButton.appendTo( bypass );
171
+ exportButton.appendTo( bypass );
172
  };
173
 
174
  // Hook the "browser uploader" link to close the Bulk Edit area when it is in use
176
  toggleButton.attr( 'title', mla.settings.toggleOpen );
177
  toggleButton.attr( 'value', mla.settings.toggleOpen );
178
  resetButton.hide();
179
+ importButton.hide();
180
+ exportButton.hide();
181
  uploadDiv.hide();
182
  });
183
 
189
  return mla.addNewBulkEdit.doReset();
190
  });
191
 
192
+ importButton.on( 'click', function(){
193
+ return mla.addNewBulkEdit.doImport();
194
+ });
195
+
196
+ exportButton.on( 'click', function(){
197
+ return mla.addNewBulkEdit.doExport();
198
+ });
199
+
200
  if ( mla.settings.areaOpen ) {
201
  mla.addNewBulkEdit.formToggle();
202
  };
238
  return false;
239
  },
240
 
241
+ doImport : function(){
242
+ var bulkDiv = $('#mla-add-new-bulk-edit-div'),
243
+ presetDiv = $('#mla-preset-add-new-bulk-edit-div'),
244
+ presetCategories = $('.inline-edit-categories', presetDiv ).html(),
245
+ presetTags = $('.inline-edit-tags', presetDiv ).html(),
246
+ presetFields = $('.inline-edit-fields', presetDiv ).html();
247
+
248
+ $('.inline-edit-categories', bulkDiv ).html( presetCategories ),
249
+ $('.inline-edit-tags', bulkDiv ).html( presetTags ),
250
+ $('.inline-edit-fields', bulkDiv ).html( presetFields );
251
+
252
+ if ( typeof mla.addTerm !== 'undefined' ) {
253
+ mla.addTerm.init( '#mla-add-new-bulk-edit-div' );
254
+ }
255
+ mla.utility.attachSearch( '#mla-add-new-bulk-edit-div' );
256
+
257
+ $('#bulk-edit-set-parent', bulkDiv).on( 'click', function(){
258
+ return mla.addNewBulkEdit.parentOpen();
259
+ });
260
+
261
+ return false;
262
+ },
263
+
264
+ doExport : function(){
265
+ var post = {
266
+ action: mla.settings.exportPresetsAction,
267
+ mla_preset_values: $( '#file-form' ).serialize(),
268
+ mla_preset_option: mla.settings.exportPresetsOption,
269
+ mla_admin_nonce: $('#mla-export-presets-ajax-nonce').val()
270
+ },
271
+ spinner = $( '#mla-add-new-bulk-edit-div .spinner' );
272
+
273
+ if ( mla.settings.useSpinnerClass ) {
274
+ spinner.addClass("is-active");
275
+ } else {
276
+ spinner.show();
277
+ }
278
+
279
+ $.ajax( ajaxurl, {
280
+ type: 'POST',
281
+ data: post,
282
+ dataType: 'json'
283
+ }).always( function( response ) {
284
+ if ( mla.settings.useSpinnerClass ) {
285
+ spinner.removeClass("is-active");
286
+ } else {
287
+ spinner.hide();
288
+ }
289
+ }).done( function( response ) {
290
+ var responseData = 'no response.data';
291
+
292
+ if ( ! response.success ) {
293
+ if ( response.data ) {
294
+ responseData = response.data;
295
+ }
296
+
297
+ $( '#media-upload-error' ).html( '<strong>' + mla.settings.ajaxDoneError + ' (' + responseData + ')</strong>' );
298
+ } else {
299
+ // replace the old presets with the current values
300
+ $( '#mla-preset-add-new-bulk-edit-div' ).html( response.data );
301
+ }
302
+ }).fail( function( jqXHR, status ) {
303
+ if ( 200 == jqXHR.status ) {
304
+ $( '#media-upload-error' ).text( '(' + status + ') ' + jqXHR.responseText );
305
+ } else {
306
+ $( '#media-upload-error' ).text( mla.settings.ajaxFailError + ' (' + status + '), jqXHR( ' + jqXHR.status + ', ' + jqXHR.statusText + ', ' + jqXHR.responseText + ')' );
307
+ }
308
+ });
309
+
310
+ return false;
311
+ },
312
+
313
  formToggle : function() {
314
  var toggleButton = $( '#bulk-edit-toggle' ), resetButton = $( '#bulk-edit-reset' ),
315
+ importButton = $( '#bulk-edit-import' ), exportButton = $( '#bulk-edit-export' ),
316
  area = $( '#mla-add-new-bulk-edit-div' );
317
 
318
  // Expand/collapse the Bulk Edit area
320
  toggleButton.attr( 'title', mla.settings.toggleClose );
321
  toggleButton.attr( 'value', mla.settings.toggleClose );
322
  resetButton.show();
323
+ importButton.show();
324
+ exportButton.show();
325
  } else {
326
  toggleButton.attr( 'title', mla.settings.toggleOpen );
327
  toggleButton.attr( 'value', mla.settings.toggleOpen );
328
  resetButton.hide();
329
+ importButton.hide();
330
+ exportButton.hide();
331
  }
332
 
333
  area.slideToggle( 'slow' );
js/mla-add-new-bulk-edit-scripts.min.js CHANGED
@@ -1 +1 @@
1
- var jQuery,mla_add_new_bulk_edit_vars,mla={settings:{},utility:{getId:function(b){var c=jQuery(b).closest("tr").attr("id"),a=c.split("-");return a[a.length-1]},attachSearch:function(a){jQuery(a+" .categorydiv").each(function(){var d=jQuery(this).attr("id"),c,b;c=d.split("-");c.shift();b=c.join("-");jQuery.extend(jQuery.expr.pseudos||jQuery.expr[":"],{matchTerms:function(g,f,e,h){return(g.textContent||g.innerText||"").toLowerCase().indexOf((e[3]||"").toLowerCase())>=0}});jQuery(a+" #"+b+"-searcher").addClass("wp-hidden-children");jQuery(a+" #"+b+"checklist li").show();jQuery(a+" #search-"+b).off();jQuery(a+" #search-"+b).on("keydown",function(e){if(13===e.keyCode){e.preventDefault();jQuery(a+" #search-"+b).val("");jQuery(a+" #"+b+"-searcher").addClass("wp-hidden-children");jQuery(a+" #"+b+"checklist li").show();return false}});jQuery(a+" #search-"+b).on("keypress",function(e){if(13===e.keyCode){e.preventDefault();jQuery(a+" #search-"+b).val("");jQuery(a+" #"+b+"-searcher").addClass("wp-hidden-children");jQuery(a+" #"+b+"checklist li").show();return}});jQuery(a+" #search-"+b).on("keyup",function(f){var h,g,e;if(13===f.keyCode){f.preventDefault();jQuery(a+" #"+b+"-search-toggle").focus();return}h=jQuery(a+" #search-"+b).val();g=jQuery(a+" #"+b+"checklist li");if(0<h.length){g.hide()}else{g.show()}e=jQuery(a+" #"+b+"checklist label:matchTerms('"+h+"')");e.closest("li").find("li").andSelf().show();e.parents(a+" #"+b+"checklist li").show()});jQuery(a+" #"+b+"-search-toggle").off();jQuery(a+" #"+b+"-search-toggle").on("click",function(){jQuery(a+" #"+b+"-adder ").addClass("wp-hidden-children");jQuery(a+" #"+b+"-searcher").toggleClass("wp-hidden-children");jQuery(a+" #"+b+"checklist li").show();if(false===jQuery(a+" #"+b+"-searcher").hasClass("wp-hidden-children")){jQuery(a+" #search-"+b).val("").removeClass("form-input-tip");jQuery(a+" #search-"+b).focus()}return false})})}},addNewBulkEdit:null,setParent:null};(function(a){mla.settings=typeof mla_add_new_bulk_edit_vars==="undefined"?{}:mla_add_new_bulk_edit_vars;mla_add_new_bulk_edit_vars=void 0;if(typeof mla.settings.areaOnTop==="undefined"){mla.settings.areaOnTop=false}mla.addNewBulkEdit={init:function(){var d,e,c,g=a(".upload-flash-bypass"),f=a("#wpbody .wrap").children("h1, h2"),b,h=a("#mla-add-new-bulk-edit-div").hide();if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#mla-add-new-bulk-edit-div")}mla.utility.attachSearch("#mla-add-new-bulk-edit-div");a("#bulk-edit-set-parent",h).on("click",function(){return mla.addNewBulkEdit.parentOpen()});d=a("#mla-blank-add-new-bulk-edit-div").detach();a("#file-form").after(d);e=a("#bulk-edit-toggle",h).detach();c=a("#bulk-edit-reset",h).detach();if(mla.settings.areaOnTop){e.appendTo(f);c.appendTo(f);b=h.detach();a("#media-upload-notice").before(b)}else{e.appendTo(g);c.appendTo(g)}e.siblings("a").on("click",function(){e.attr("title",mla.settings.toggleOpen);e.attr("value",mla.settings.toggleOpen);c.hide();h.hide()});e.on("click",function(){return mla.addNewBulkEdit.formToggle()});c.on("click",function(){return mla.addNewBulkEdit.doReset()});if(mla.settings.areaOpen){mla.addNewBulkEdit.formToggle()}a("textarea.mla_tags",h).each(function(){var i=a(this).attr("name").replace("]","").replace("tax_input[","");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+i,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});uploader.bind("BeforeUpload",function(i,j){var k=a("#file-form").serialize();i.settings.multipart_params.mlaAddNewBulkEditFormString=k})},doReset:function(){var e=a("#mla-add-new-bulk-edit-div"),d=a("#mla-blank-add-new-bulk-edit-div"),b=a(".inline-edit-categories",d).html(),f=a(".inline-edit-tags",d).html(),c=a(".inline-edit-fields",d).html();a(".inline-edit-categories",e).html(b),a(".inline-edit-tags",e).html(f),a(".inline-edit-fields",e).html(c);if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#mla-add-new-bulk-edit-div")}mla.utility.attachSearch("#mla-add-new-bulk-edit-div");a("#bulk-edit-set-parent",e).on("click",function(){return mla.addNewBulkEdit.parentOpen()});return false},formToggle:function(){var d=a("#bulk-edit-toggle"),b=a("#bulk-edit-reset"),c=a("#mla-add-new-bulk-edit-div");if("none"===c.css("display")){d.attr("title",mla.settings.toggleClose);d.attr("value",mla.settings.toggleClose);b.show()}else{d.attr("title",mla.settings.toggleOpen);d.attr("value",mla.settings.toggleOpen);b.hide()}c.slideToggle("slow")},parentOpen:function(){var d,b,c;b=-1;c=mla.settings.uploadTitle;d=a('#mla-add-new-bulk-edit-div :input[name="post_parent"]').val()||-1;mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.addNewBulkEdit.parentSave();return false})},parentSave: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('#mla-add-new-bulk-edit-div :input[name="post_parent"]').clone(true).val(d);a('#mla-add-new-bulk-edit-div :input[name="post_parent"]').replaceWith(b)}mla.setParent.close();a("#mla-set-parent-submit").off("click")}};a(document).ready(function(){mla.addNewBulkEdit.init()})})(jQuery);
1
+ var jQuery,mla_add_new_bulk_edit_vars,mla={settings:{},utility:{getId:function(b){var c=jQuery(b).closest("tr").attr("id"),a=c.split("-");return a[a.length-1]},attachSearch:function(b){var a=jQuery(b);jQuery(".categorydiv",a).each(function(){var d=jQuery(this).attr("id"),c,e;c=d.split("-");c.shift();c=c.join("-");e="#"+c;jQuery.extend(jQuery.expr.pseudos||jQuery.expr[":"],{matchTerms:function(h,g,f,j){return(h.textContent||h.innerText||"").toLowerCase().indexOf((f[3]||"").toLowerCase())>=0}});jQuery(e+"-searcher",a).addClass("wp-hidden-children");jQuery(e+"checklist li",a).show();jQuery("#search-"+c,a).off();jQuery("#search-"+c,a).on("keydown",function(f){if(13===f.keyCode){f.preventDefault();jQuery("#search-"+c,a).val("");jQuery(e+"-searcher",a).addClass("wp-hidden-children");jQuery(e+"checklist li",a).show();return false}});jQuery("#search-"+c,a).on("keypress",function(f){if(13===f.keyCode){f.preventDefault();jQuery("#search-"+c,a).val("");jQuery(e+"-searcher",a).addClass("wp-hidden-children");jQuery(e+"checklist li",a).show();return}});jQuery("#search-"+c,a).on("keyup",function(g){var i,h,f;if(13===g.keyCode){g.preventDefault();jQuery(e+"-search-toggle",a).trigger("focus");return}i=jQuery("#search-"+c,a).val();h=jQuery(e+"checklist li",a);if(0<i.length){h.hide()}else{h.show()}f=jQuery(e+"checklist label:matchTerms('"+i+"')",a);f.closest("li").find("li").addBack().show();f.parents(e+"checklist li",a).show()});jQuery(e+"-search-toggle",a).off();jQuery(e+"-search-toggle",a).on("click",function(){jQuery(e+"-adder ",a).addClass("wp-hidden-children");jQuery(e+"-searcher",a).toggleClass("wp-hidden-children");jQuery(e+"checklist li",a).show();if(false===jQuery(e+"-searcher",a).hasClass("wp-hidden-children")){jQuery("#search-"+c,a).val("").removeClass("form-input-tip");jQuery("#search-"+c,a).trigger("focus")}return false})})}},addNewBulkEdit:null,setParent:null};(function(a){mla.settings=typeof mla_add_new_bulk_edit_vars==="undefined"?{}:mla_add_new_bulk_edit_vars;mla_add_new_bulk_edit_vars=void 0;if(typeof mla.settings.areaOnTop==="undefined"){mla.settings.areaOnTop=false}mla.addNewBulkEdit={init:function(){var d,b,h,k,g,c,f=a(".upload-flash-bypass"),j=a("#wpbody .wrap").children("h1, h2"),e,i=a("#mla-add-new-bulk-edit-div").hide();if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#mla-add-new-bulk-edit-div")}mla.utility.attachSearch("#mla-add-new-bulk-edit-div");a("#bulk-edit-set-parent",i).on("click",function(){return mla.addNewBulkEdit.parentOpen()});d=a("#mla-preset-add-new-bulk-edit-div").detach();a("#file-form").after(d);b=a("#mla-blank-add-new-bulk-edit-div").detach();a("#file-form").after(b);h=a("#bulk-edit-toggle",i).detach();k=a("#bulk-edit-reset",i).detach();g=a("#bulk-edit-import",i).detach();c=a("#bulk-edit-export",i).detach();if(mla.settings.areaOnTop){h.appendTo(j);k.appendTo(j);g.appendTo(j);c.appendTo(j);e=i.detach();a("#media-upload-notice").before(e)}else{h.appendTo(f);k.appendTo(f);g.appendTo(f);c.appendTo(f)}h.siblings("a").on("click",function(){h.attr("title",mla.settings.toggleOpen);h.attr("value",mla.settings.toggleOpen);k.hide();g.hide();c.hide();i.hide()});h.on("click",function(){return mla.addNewBulkEdit.formToggle()});k.on("click",function(){return mla.addNewBulkEdit.doReset()});g.on("click",function(){return mla.addNewBulkEdit.doImport()});c.on("click",function(){return mla.addNewBulkEdit.doExport()});if(mla.settings.areaOpen){mla.addNewBulkEdit.formToggle()}a("textarea.mla_tags",i).each(function(){var l=a(this).attr("name").replace("]","").replace("tax_input[","");a(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+l,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});uploader.bind("BeforeUpload",function(l,m){var n=a("#file-form").serialize();l.settings.multipart_params.mlaAddNewBulkEditFormString=n})},doReset:function(){var e=a("#mla-add-new-bulk-edit-div"),d=a("#mla-blank-add-new-bulk-edit-div"),b=a(".inline-edit-categories",d).html(),f=a(".inline-edit-tags",d).html(),c=a(".inline-edit-fields",d).html();a(".inline-edit-categories",e).html(b),a(".inline-edit-tags",e).html(f),a(".inline-edit-fields",e).html(c);if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#mla-add-new-bulk-edit-div")}mla.utility.attachSearch("#mla-add-new-bulk-edit-div");a("#bulk-edit-set-parent",e).on("click",function(){return mla.addNewBulkEdit.parentOpen()});return false},doImport:function(){var c=a("#mla-add-new-bulk-edit-div"),f=a("#mla-preset-add-new-bulk-edit-div"),d=a(".inline-edit-categories",f).html(),e=a(".inline-edit-tags",f).html(),b=a(".inline-edit-fields",f).html();a(".inline-edit-categories",c).html(d),a(".inline-edit-tags",c).html(e),a(".inline-edit-fields",c).html(b);if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#mla-add-new-bulk-edit-div")}mla.utility.attachSearch("#mla-add-new-bulk-edit-div");a("#bulk-edit-set-parent",c).on("click",function(){return mla.addNewBulkEdit.parentOpen()});return false},doExport:function(){var b={action:mla.settings.exportPresetsAction,mla_preset_values:a("#file-form").serialize(),mla_preset_option:mla.settings.exportPresetsOption,mla_admin_nonce:a("#mla-export-presets-ajax-nonce").val()},c=a("#mla-add-new-bulk-edit-div .spinner");if(mla.settings.useSpinnerClass){c.addClass("is-active")}else{c.show()}a.ajax(ajaxurl,{type:"POST",data:b,dataType:"json"}).always(function(d){if(mla.settings.useSpinnerClass){c.removeClass("is-active")}else{c.hide()}}).done(function(d){var e="no response.data";if(!d.success){if(d.data){e=d.data}a("#media-upload-error").html("<strong>"+mla.settings.ajaxDoneError+" ("+e+")</strong>")}else{a("#mla-preset-add-new-bulk-edit-div").html(d.data)}}).fail(function(e,d){if(200==e.status){a("#media-upload-error").text("("+d+") "+e.responseText)}else{a("#media-upload-error").text(mla.settings.ajaxFailError+" ("+d+"), jqXHR( "+e.status+", "+e.statusText+", "+e.responseText+")")}});return false},formToggle:function(){var f=a("#bulk-edit-toggle"),b=a("#bulk-edit-reset"),e=a("#bulk-edit-import"),d=a("#bulk-edit-export"),c=a("#mla-add-new-bulk-edit-div");if("none"===c.css("display")){f.attr("title",mla.settings.toggleClose);f.attr("value",mla.settings.toggleClose);b.show();e.show();d.show()}else{f.attr("title",mla.settings.toggleOpen);f.attr("value",mla.settings.toggleOpen);b.hide();e.hide();d.hide()}c.slideToggle("slow")},parentOpen:function(){var d,b,c;b=-1;c=mla.settings.uploadTitle;d=a('#mla-add-new-bulk-edit-div :input[name="post_parent"]').val()||-1;mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.addNewBulkEdit.parentSave();return false})},parentSave: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('#mla-add-new-bulk-edit-div :input[name="post_parent"]').clone(true).val(d);a('#mla-add-new-bulk-edit-div :input[name="post_parent"]').replaceWith(b)}mla.setParent.close();a("#mla-set-parent-submit").off("click")}};a(document).ready(function(){mla.addNewBulkEdit.init()})})(jQuery);
js/mla-add-term-scripts.js CHANGED
@@ -104,8 +104,7 @@ var jQuery;
104
  $( '#' + taxonomy + 'checklist', context ).mlaList({
105
  alt: '',
106
  context: context,
107
- // response: taxonomy + '-ajax-response',
108
- response: 'add-term-ajax-response',
109
  addBefore: catAddBefore,
110
  addAfter: catAddAfter
111
  });
@@ -313,7 +312,6 @@ var jQuery;
313
  target: list.get( 0 )
314
  }, settings || {} );
315
 
316
- // if ( $.isFunction( settings.confirm ) ) {
317
  if ( typeof settings.confirm === 'function' ) {
318
  $element = $( '#' + settings.element, mla.mlaList.settings.context );
319
 
@@ -386,7 +384,6 @@ var jQuery;
386
  settings.data += '&' + formData;
387
  }
388
 
389
- // if ( $.isFunction( settings.addBefore ) ) {
390
  if ( typeof settings.addBefore === 'function' ) {
391
  settings = settings.addBefore( settings );
392
 
@@ -400,9 +397,7 @@ var jQuery;
400
  }
401
 
402
  settings.success = function( response ) {
403
- var contextId = mla.mlaList.settings.context.selector.substring(1);
404
-
405
- parsedResponse = wpAjax.parseAjaxResponse( response, contextId + ' #' + settings.response, settings.element );
406
  returnedResponse = response;
407
 
408
  if ( ! parsedResponse || parsedResponse.errors ) {
@@ -429,7 +424,6 @@ var jQuery;
429
 
430
  // The addAfter function uses the supplemental data to update the "Parent Term" dropdown ontrol
431
  settings.complete = function( jqXHR, status ) {
432
- // if ( $.isFunction( settings.addAfter ) ) {
433
  if ( typeof settings.addAfter === 'function' ) {
434
  settings.addAfter( returnedResponse, $.extend( {
435
  xml: jqXHR,
@@ -465,7 +459,7 @@ var jQuery;
465
  $( '.edit-fields-div' ).each( function() {
466
  var $thisDiv = $( this ),
467
  thisId = $thisDiv.attr( 'id' ),
468
- targetId = settings.context.selector.substring(1),
469
  $checklist, $element, old, position, reference;
470
 
471
  if ( targetId !== thisId ) {
104
  $( '#' + taxonomy + 'checklist', context ).mlaList({
105
  alt: '',
106
  context: context,
107
+ response: 'ajax-response',
 
108
  addBefore: catAddBefore,
109
  addAfter: catAddAfter
110
  });
312
  target: list.get( 0 )
313
  }, settings || {} );
314
 
 
315
  if ( typeof settings.confirm === 'function' ) {
316
  $element = $( '#' + settings.element, mla.mlaList.settings.context );
317
 
384
  settings.data += '&' + formData;
385
  }
386
 
 
387
  if ( typeof settings.addBefore === 'function' ) {
388
  settings = settings.addBefore( settings );
389
 
397
  }
398
 
399
  settings.success = function( response ) {
400
+ parsedResponse = wpAjax.parseAjaxResponse( response, settings.response, settings.element );
 
 
401
  returnedResponse = response;
402
 
403
  if ( ! parsedResponse || parsedResponse.errors ) {
424
 
425
  // The addAfter function uses the supplemental data to update the "Parent Term" dropdown ontrol
426
  settings.complete = function( jqXHR, status ) {
 
427
  if ( typeof settings.addAfter === 'function' ) {
428
  settings.addAfter( returnedResponse, $.extend( {
429
  xml: jqXHR,
459
  $( '.edit-fields-div' ).each( function() {
460
  var $thisDiv = $( this ),
461
  thisId = $thisDiv.attr( 'id' ),
462
+ targetId = settings.element,
463
  $checklist, $element, old, position, reference;
464
 
465
  if ( targetId !== thisId ) {
js/mla-add-term-scripts.min.js CHANGED
@@ -1 +1 @@
1
- var jQuery;(function(a){mla.addTerm={init:function(c){var d=a(c);a(".categorydiv",d).each(function(){var h=a(this).attr("id"),g,i,f,e;f=h.split("-");f.shift();e=f.join("-");a("#new"+e,d).one("focus",function(){a(this).val("").removeClass("form-input-tip")});a("#new"+e,d).on("keypress",function(j){if(13===j.keyCode){j.preventDefault();a("#"+e+"-add-submit",d).trigger("click")}});a("#"+e+"-add-submit",d).on("click",function(){a("#new"+e,d).focus()});g=function(j){if(!a("#new"+e,d).val()){return false}j.data+="&"+a(":checked","#"+e+"-checklist",d).serialize();a("#"+e+"-add-submit",d).prop("disabled",true);return j};i=function(l,k){var j;a("#"+e+"-add-submit",d).prop("disabled",false);if("undefined"!=k.parsed.responses[0]&&(j=k.parsed.responses[0].supplemental.newcat_parent)){a(".edit-fields-div").each(function(){var m=a("#new"+e+"_parent",a(this));m.before(j);m.remove()})}};mla.mlaList.settings.context=d;a("#"+e+"checklist",d).mlaList({alt:"",context:d,response:"add-term-ajax-response",addBefore:g,addAfter:i});a("#"+e+"-add-toggle",d).off();a("#"+e+"-add-toggle",d).on("click",function(j){j.preventDefault();a("#"+e+"-adder",d).toggleClass("wp-hidden-children");a("#new"+e,d).focus();a("#"+e+"-searcher",d).addClass("wp-hidden-children");return false})})}};mla.mlaList={settings:{url:ajaxurl,type:"POST",context:null,response:"ajax-response",what:"",alt:"alternate",altOffset:0,addColor:"#ffff33",confirm:null,addBefore:null,addAfter:null},nonce:function(e,f){var d=wpAjax.unserialize(e.attr("href")),c=a("#"+f.element,mla.mlaList.settings.context);return f.nonce||d._ajax_nonce||c.find('input[name="_ajax_nonce"]').val()||d._wpnonce||c.find('input[name="_wpnonce"]').val()||0},parseData:function(d,e){var g=[],f;try{f=a(d).data("wp-lists")||"";f=f.match(new RegExp(e+":[\\S]+"));if(f){g=f[0].split(":")}}catch(c){}return g},pre:function(g,e,f){var c,d,h;e=a.extend({},this.mlaList.settings,{element:null,nonce:0,target:g.get(0)},e||{});if(typeof e.confirm==="function"){c=a("#"+e.element,mla.mlaList.settings.context);if("add"!==f){d=c.css("backgroundColor");c.css("backgroundColor","#ff9966")}h=e.confirm.call(this,g,e,f,d);if("add"!==f){c.css("backgroundColor",d)}if(!h){return false}}return e},ajaxAdd:function(g,e){var j=this,k=a(g,mla.mlaList.settings.context),f=mla.mlaList.parseData(k,"add"),i,c,h,d;e=e||{};e=mla.mlaList.pre.call(j,k,e,"add");e.element=f[2]||k.prop("id")||e.element||null;e.addColor=f[3]?"#"+f[3]:e.addColor;if(!e){return false}if(!k.is('[id="'+e.element+'-submit"]',mla.mlaList.settings.context)){return !mla.mlaList.add.call(j,k,e)}if(!e.element){return true}e.action="add-"+e.what;e.nonce=mla.mlaList.nonce(k,e);if(!wpAjax.validateForm(mla.mlaList.settings.context.selector+" #"+e.element)){return false}e.data=a.param(a.extend({_ajax_nonce:e.nonce,action:e.action},wpAjax.unserialize(f[4]||"")));i=a("#"+e.element+" :input",mla.mlaList.settings.context).not('[name="_ajax_nonce"], [name="_wpnonce"], [name="action"]');c=typeof i.fieldSerialize==="function"?i.fieldSerialize():i.serialize();if(c){e.data+="&"+c}if(typeof e.addBefore==="function"){e=e.addBefore(e);if(!e){return true}}if(!e.data.match(/_ajax_nonce=[a-f0-9]+/)){return true}e.success=function(m){var l=mla.mlaList.settings.context.selector.substring(1);h=wpAjax.parseAjaxResponse(m,l+" #"+e.response,e.element);d=m;if(!h||h.errors){return false}if(true===h){return true}a.each(h.responses,function(){mla.mlaList.add.call(j,this.data,a.extend({},e,{position:this.position||0,id:this.id||0,oldId:this.oldId||null}))});j.mlaList.recolor();a(j).trigger("mlaListAddEnd",[e,j.mlaList]);mla.mlaList.clear.call(j,"#"+e.element)};e.complete=function(m,l){if(typeof e.addAfter==="function"){e.addAfter(d,a.extend({xml:m,status:l,parsed:h},e))}};a.ajax(e);return false},getColor:function(c){return a(c).css("backgroundColor")||"#ffffff"},addToOtherLists:function(d,c,e){a(".edit-fields-div").each(function(){var m=a(this),i=m.attr("id"),l=e.context.selector.substring(1),h,k,j,g,f;if(l!==i){h=a("."+c.attr("id"),m);k=a(d);j=false;a("input",k).removeAttr("checked");if(e.oldId){j=a("#"+e.what+"-"+e.oldId,h)}if(e.id&&(e.id!==e.oldId||!j||!j.length)){a("#"+e.what+"-"+e.id,h).remove()}if(j&&j.length){j.before(k);j.remove()}else{if(isNaN(e.position)){g="after";if("-"===e.position.substr(0,1)){e.position=e.position.substr(1);g="before"}f=h.find("#"+e.position);if(1===f.length){f[g](k)}else{h.append(k)}}else{if("comment"!==e.what||0===a("#"+e.element,h).length){if(e.position<0){h.prepend(k)}else{h.append(k)}}}}}})},add:function(h,i){var g=a(this),f=a(h),e=false,d,c;if("string"===typeof i){i={what:i}}i=a.extend({position:0,id:0,oldId:null},this.mlaList.settings,i);if(!f.length||!i.what){return false}mla.mlaList.addToOtherLists(h,g,i);if(i.oldId){e=a("#"+i.what+"-"+i.oldId,i.context)}if(i.id&&(i.id!==i.oldId||!e||!e.length)){a("#"+i.what+"-"+i.id,i.context).remove()}if(e&&e.length){e.before(f);e.remove()}else{if(isNaN(i.position)){d="after";if("-"===i.position.substr(0,1)){i.position=i.position.substr(1);d="before"}c=g.find("#"+i.position);if(1===c.length){c[d](f)}else{g.append(f)}}else{if("comment"!==i.what||0===a("#"+i.element,mla.mlaList.settings.context).length){if(i.position<0){g.prepend(f)}else{g.append(f)}}}}if(i.alt){f.toggleClass(i.alt,(g.children(":visible").index(f[0])+i.altOffset)%2)}if("none"!==i.addColor){f.css("backgroundColor",i.addColor).animate({backgroundColor:mla.mlaList.getColor(f)},{complete:function(){a(this).css("backgroundColor","")}})}g.each(function(j,k){k.mlaList.process(f)});return f},clear:function(d){var g=this,c=a(d),f,e;if(g.mlaList&&c.parents("#"+g.id).length){return}c.find(":input").each(function(i,h){if(a(h).parents(".form-no-clear").length){return}f=h.type.toLowerCase();e=h.tagName.toLowerCase();if("text"===f||"password"===f||"textarea"===e){h.value=""}else{if("checkbox"===f||"radio"===f){h.checked=false}else{if("select"===e){h.selectedIndex=null}}}})},process:function(d){var e=this,c=a(d||document);c.on("submit",'form[data-wp-lists^="add:'+e.id+':"]',function(){return e.mlaList.add(this)});c.on("click",'a[data-wp-lists^="add:'+e.id+':"], input[data-wp-lists^="add:'+e.id+':"]',function(){return e.mlaList.add(this)})},recolor:function(){var d=this,e=[":even",":odd"],c;if(!d.mlaList.settings.alt){return}c=a(".list-item:visible",d);if(!c.length){c=a(d).children(":visible")}if(d.mlaList.settings.altOffset%2){e.reverse()}c.filter(e[0]).addClass(d.mlaList.settings.alt).end();c.filter(e[1]).removeClass(d.mlaList.settings.alt)},init:function(){var c=this;c.mlaList.process=function(d){c.each(function(){this.mlaList.process(d)})};c.mlaList.recolor=function(){c.each(function(){this.mlaList.recolor()})}}};var b={add:"ajaxAdd",process:"process",recolor:"recolor"};a.fn.mlaList=function(c){this.each(function(d,e){e.mlaList={settings:a.extend({},mla.mlaList.settings,{what:mla.mlaList.parseData(e,"list")[1]||""},c)};a.each(b,function(f,g){e.mlaList[f]=function(h,i){return mla.mlaList[g].call(e,h,i)}})});mla.mlaList.init.call(this);this.mlaList.process(c.context);return this}})(jQuery);
1
+ var jQuery;(function(a){mla.addTerm={init:function(c){var d=a(c);a(".categorydiv",d).each(function(){var h=a(this).attr("id"),g,i,f,e;f=h.split("-");f.shift();e=f.join("-");a("#new"+e,d).one("focus",function(){a(this).val("").removeClass("form-input-tip")});a("#new"+e,d).on("keypress",function(j){if(13===j.keyCode){j.preventDefault();a("#"+e+"-add-submit",d).trigger("click")}});a("#"+e+"-add-submit",d).on("click",function(){a("#new"+e,d).focus()});g=function(j){if(!a("#new"+e,d).val()){return false}j.data+="&"+a(":checked","#"+e+"-checklist",d).serialize();a("#"+e+"-add-submit",d).prop("disabled",true);return j};i=function(l,k){var j;a("#"+e+"-add-submit",d).prop("disabled",false);if("undefined"!=k.parsed.responses[0]&&(j=k.parsed.responses[0].supplemental.newcat_parent)){a(".edit-fields-div").each(function(){var m=a("#new"+e+"_parent",a(this));m.before(j);m.remove()})}};mla.mlaList.settings.context=d;a("#"+e+"checklist",d).mlaList({alt:"",context:d,response:"ajax-response",addBefore:g,addAfter:i});a("#"+e+"-add-toggle",d).off();a("#"+e+"-add-toggle",d).on("click",function(j){j.preventDefault();a("#"+e+"-adder",d).toggleClass("wp-hidden-children");a("#new"+e,d).focus();a("#"+e+"-searcher",d).addClass("wp-hidden-children");return false})})}};mla.mlaList={settings:{url:ajaxurl,type:"POST",context:null,response:"ajax-response",what:"",alt:"alternate",altOffset:0,addColor:"#ffff33",confirm:null,addBefore:null,addAfter:null},nonce:function(e,f){var d=wpAjax.unserialize(e.attr("href")),c=a("#"+f.element,mla.mlaList.settings.context);return f.nonce||d._ajax_nonce||c.find('input[name="_ajax_nonce"]').val()||d._wpnonce||c.find('input[name="_wpnonce"]').val()||0},parseData:function(d,e){var g=[],f;try{f=a(d).data("wp-lists")||"";f=f.match(new RegExp(e+":[\\S]+"));if(f){g=f[0].split(":")}}catch(c){}return g},pre:function(g,e,f){var c,d,h;e=a.extend({},this.mlaList.settings,{element:null,nonce:0,target:g.get(0)},e||{});if(typeof e.confirm==="function"){c=a("#"+e.element,mla.mlaList.settings.context);if("add"!==f){d=c.css("backgroundColor");c.css("backgroundColor","#ff9966")}h=e.confirm.call(this,g,e,f,d);if("add"!==f){c.css("backgroundColor",d)}if(!h){return false}}return e},ajaxAdd:function(g,e){var j=this,k=a(g,mla.mlaList.settings.context),f=mla.mlaList.parseData(k,"add"),i,c,h,d;e=e||{};e=mla.mlaList.pre.call(j,k,e,"add");e.element=f[2]||k.prop("id")||e.element||null;e.addColor=f[3]?"#"+f[3]:e.addColor;if(!e){return false}if(!k.is('[id="'+e.element+'-submit"]',mla.mlaList.settings.context)){return !mla.mlaList.add.call(j,k,e)}if(!e.element){return true}e.action="add-"+e.what;e.nonce=mla.mlaList.nonce(k,e);if(!wpAjax.validateForm(mla.mlaList.settings.context.selector+" #"+e.element)){return false}e.data=a.param(a.extend({_ajax_nonce:e.nonce,action:e.action},wpAjax.unserialize(f[4]||"")));i=a("#"+e.element+" :input",mla.mlaList.settings.context).not('[name="_ajax_nonce"], [name="_wpnonce"], [name="action"]');c=typeof i.fieldSerialize==="function"?i.fieldSerialize():i.serialize();if(c){e.data+="&"+c}if(typeof e.addBefore==="function"){e=e.addBefore(e);if(!e){return true}}if(!e.data.match(/_ajax_nonce=[a-f0-9]+/)){return true}e.success=function(l){h=wpAjax.parseAjaxResponse(l,e.response,e.element);d=l;if(!h||h.errors){return false}if(true===h){return true}a.each(h.responses,function(){mla.mlaList.add.call(j,this.data,a.extend({},e,{position:this.position||0,id:this.id||0,oldId:this.oldId||null}))});j.mlaList.recolor();a(j).trigger("mlaListAddEnd",[e,j.mlaList]);mla.mlaList.clear.call(j,"#"+e.element)};e.complete=function(m,l){if(typeof e.addAfter==="function"){e.addAfter(d,a.extend({xml:m,status:l,parsed:h},e))}};a.ajax(e);return false},getColor:function(c){return a(c).css("backgroundColor")||"#ffffff"},addToOtherLists:function(d,c,e){a(".edit-fields-div").each(function(){var m=a(this),i=m.attr("id"),l=e.element,h,k,j,g,f;if(l!==i){h=a("."+c.attr("id"),m);k=a(d);j=false;a("input",k).removeAttr("checked");if(e.oldId){j=a("#"+e.what+"-"+e.oldId,h)}if(e.id&&(e.id!==e.oldId||!j||!j.length)){a("#"+e.what+"-"+e.id,h).remove()}if(j&&j.length){j.before(k);j.remove()}else{if(isNaN(e.position)){g="after";if("-"===e.position.substr(0,1)){e.position=e.position.substr(1);g="before"}f=h.find("#"+e.position);if(1===f.length){f[g](k)}else{h.append(k)}}else{if("comment"!==e.what||0===a("#"+e.element,h).length){if(e.position<0){h.prepend(k)}else{h.append(k)}}}}}})},add:function(h,i){var g=a(this),f=a(h),e=false,d,c;if("string"===typeof i){i={what:i}}i=a.extend({position:0,id:0,oldId:null},this.mlaList.settings,i);if(!f.length||!i.what){return false}mla.mlaList.addToOtherLists(h,g,i);if(i.oldId){e=a("#"+i.what+"-"+i.oldId,i.context)}if(i.id&&(i.id!==i.oldId||!e||!e.length)){a("#"+i.what+"-"+i.id,i.context).remove()}if(e&&e.length){e.before(f);e.remove()}else{if(isNaN(i.position)){d="after";if("-"===i.position.substr(0,1)){i.position=i.position.substr(1);d="before"}c=g.find("#"+i.position);if(1===c.length){c[d](f)}else{g.append(f)}}else{if("comment"!==i.what||0===a("#"+i.element,mla.mlaList.settings.context).length){if(i.position<0){g.prepend(f)}else{g.append(f)}}}}if(i.alt){f.toggleClass(i.alt,(g.children(":visible").index(f[0])+i.altOffset)%2)}if("none"!==i.addColor){f.css("backgroundColor",i.addColor).animate({backgroundColor:mla.mlaList.getColor(f)},{complete:function(){a(this).css("backgroundColor","")}})}g.each(function(j,k){k.mlaList.process(f)});return f},clear:function(d){var g=this,c=a(d),f,e;if(g.mlaList&&c.parents("#"+g.id).length){return}c.find(":input").each(function(i,h){if(a(h).parents(".form-no-clear").length){return}f=h.type.toLowerCase();e=h.tagName.toLowerCase();if("text"===f||"password"===f||"textarea"===e){h.value=""}else{if("checkbox"===f||"radio"===f){h.checked=false}else{if("select"===e){h.selectedIndex=null}}}})},process:function(d){var e=this,c=a(d||document);c.on("submit",'form[data-wp-lists^="add:'+e.id+':"]',function(){return e.mlaList.add(this)});c.on("click",'a[data-wp-lists^="add:'+e.id+':"], input[data-wp-lists^="add:'+e.id+':"]',function(){return e.mlaList.add(this)})},recolor:function(){var d=this,e=[":even",":odd"],c;if(!d.mlaList.settings.alt){return}c=a(".list-item:visible",d);if(!c.length){c=a(d).children(":visible")}if(d.mlaList.settings.altOffset%2){e.reverse()}c.filter(e[0]).addClass(d.mlaList.settings.alt).end();c.filter(e[1]).removeClass(d.mlaList.settings.alt)},init:function(){var c=this;c.mlaList.process=function(d){c.each(function(){this.mlaList.process(d)})};c.mlaList.recolor=function(){c.each(function(){this.mlaList.recolor()})}}};var b={add:"ajaxAdd",process:"process",recolor:"recolor"};a.fn.mlaList=function(c){this.each(function(d,e){e.mlaList={settings:a.extend({},mla.mlaList.settings,{what:mla.mlaList.parseData(e,"list")[1]||""},c)};a.each(b,function(f,g){e.mlaList[f]=function(h,i){return mla.mlaList[g].call(e,h,i)}})});mla.mlaList.init.call(this);this.mlaList.process(c.context);return this}})(jQuery);
js/mla-edit-media-scripts.js CHANGED
@@ -64,7 +64,7 @@ var jQuery,
64
 
65
  if( 13 === event.keyCode ) {
66
  event.preventDefault();
67
- $( '#' + taxonomy + '-search-toggle' ).focus();
68
  return;
69
  }
70
 
@@ -81,11 +81,11 @@ var jQuery,
81
  }
82
 
83
  matchingTerms = $( '#' + taxonomy + "checklist label:matchTerms('" + searchValue + "')");
84
- matchingTerms.closest( 'li' ).find( 'li' ).andSelf().show();
85
  matchingTerms.parents( '#' + taxonomy + 'checklist li' ).show();
86
 
87
  matchingTermsPopular = $( '#' + taxonomy + "checklist-pop label:matchTerms('" + searchValue + "')");
88
- matchingTermsPopular.closest( 'li' ).find( 'li' ).andSelf().show();
89
  matchingTermsPopular.parents( '#' + taxonomy + 'checklist li' ).show();
90
  } );
91
 
@@ -98,7 +98,7 @@ var jQuery,
98
 
99
  if ( false === $( '#' + taxonomy + '-searcher' ).hasClass( 'wp-hidden-children' ) ) {
100
  $( '#search-' + taxonomy ).val( '' ).removeClass( 'form-input-tip' );
101
- $( '#search-' + taxonomy ).focus();
102
  }
103
 
104
  return false;
@@ -122,7 +122,7 @@ var jQuery,
122
  mla.mlaEditAttachment.$uploaddiv.siblings('a.edit-timestamp').on( 'click', function( event ) {
123
  if ( mla.mlaEditAttachment.$uploaddiv.is( ':hidden' ) ) {
124
  mla.mlaEditAttachment.$uploaddiv.slideDown( 'fast', function() {
125
- $( 'input, select', mla.mlaEditAttachment.$uploaddiv.find( '.timestamp-wrap' ) ).first().focus();
126
  } );
127
  $(this).hide();
128
  }
@@ -131,7 +131,7 @@ var jQuery,
131
 
132
  // Cancel editing the Uploaded on time and hide the settings.
133
  mla.mlaEditAttachment.$uploaddiv.find('.cancel-timestamp').on( 'click', function( event ) {
134
- mla.mlaEditAttachment.$uploaddiv.slideUp('fast').siblings('a.edit-timestamp').show().focus();
135
  $( '#mm', mla.mlaEditAttachment.$uploaddiv ).val($( '#hidden_mm', mla.mlaEditAttachment.$uploaddiv ).val());
136
  $( '#jj', mla.mlaEditAttachment.$uploaddiv ).val($( '#hidden_jj', mla.mlaEditAttachment.$uploaddiv ).val());
137
  $( '#aa', mla.mlaEditAttachment.$uploaddiv ).val($( '#hidden_aa', mla.mlaEditAttachment.$uploaddiv ).val());
@@ -145,7 +145,7 @@ var jQuery,
145
  mla.mlaEditAttachment.$uploaddiv.find('.save-timestamp').on( 'click', function( event ) { // crazyhorse - multiple ok cancels
146
  if ( mla.mlaEditAttachment.updateText( mla.mlaEditAttachment.$uploaddiv, mla.mlaEditAttachment.uploadtimestamp, '#upload-timestamp' ) ) {
147
  mla.mlaEditAttachment.$uploaddiv.slideUp('fast');
148
- mla.mlaEditAttachment.$uploaddiv.siblings('a.edit-timestamp').show().focus();
149
  }
150
  event.preventDefault();
151
  });
64
 
65
  if( 13 === event.keyCode ) {
66
  event.preventDefault();
67
+ $( '#' + taxonomy + '-search-toggle' ).trigger('focus');
68
  return;
69
  }
70
 
81
  }
82
 
83
  matchingTerms = $( '#' + taxonomy + "checklist label:matchTerms('" + searchValue + "')");
84
+ matchingTerms.closest( 'li' ).find( 'li' ).addBack().show();
85
  matchingTerms.parents( '#' + taxonomy + 'checklist li' ).show();
86
 
87
  matchingTermsPopular = $( '#' + taxonomy + "checklist-pop label:matchTerms('" + searchValue + "')");
88
+ matchingTermsPopular.closest( 'li' ).find( 'li' ).addBack().show();
89
  matchingTermsPopular.parents( '#' + taxonomy + 'checklist li' ).show();
90
  } );
91
 
98
 
99
  if ( false === $( '#' + taxonomy + '-searcher' ).hasClass( 'wp-hidden-children' ) ) {
100
  $( '#search-' + taxonomy ).val( '' ).removeClass( 'form-input-tip' );
101
+ $( '#search-' + taxonomy ).trigger('focus');
102
  }
103
 
104
  return false;
122
  mla.mlaEditAttachment.$uploaddiv.siblings('a.edit-timestamp').on( 'click', function( event ) {
123
  if ( mla.mlaEditAttachment.$uploaddiv.is( ':hidden' ) ) {
124
  mla.mlaEditAttachment.$uploaddiv.slideDown( 'fast', function() {
125
+ $( 'input, select', mla.mlaEditAttachment.$uploaddiv.find( '.timestamp-wrap' ) ).first().trigger('focus');
126
  } );
127
  $(this).hide();
128
  }
131
 
132
  // Cancel editing the Uploaded on time and hide the settings.
133
  mla.mlaEditAttachment.$uploaddiv.find('.cancel-timestamp').on( 'click', function( event ) {
134
+ mla.mlaEditAttachment.$uploaddiv.slideUp('fast').siblings('a.edit-timestamp').show().trigger('focus');
135
  $( '#mm', mla.mlaEditAttachment.$uploaddiv ).val($( '#hidden_mm', mla.mlaEditAttachment.$uploaddiv ).val());
136
  $( '#jj', mla.mlaEditAttachment.$uploaddiv ).val($( '#hidden_jj', mla.mlaEditAttachment.$uploaddiv ).val());
137
  $( '#aa', mla.mlaEditAttachment.$uploaddiv ).val($( '#hidden_aa', mla.mlaEditAttachment.$uploaddiv ).val());
145
  mla.mlaEditAttachment.$uploaddiv.find('.save-timestamp').on( 'click', function( event ) { // crazyhorse - multiple ok cancels
146
  if ( mla.mlaEditAttachment.updateText( mla.mlaEditAttachment.$uploaddiv, mla.mlaEditAttachment.uploadtimestamp, '#upload-timestamp' ) ) {
147
  mla.mlaEditAttachment.$uploaddiv.slideUp('fast');
148
+ mla.mlaEditAttachment.$uploaddiv.siblings('a.edit-timestamp').show().trigger('focus');
149
  }
150
  event.preventDefault();
151
  });
js/mla-edit-media-scripts.min.js CHANGED
@@ -1 +1 @@
1
- var jQuery,mla_edit_media_vars,mla={settings:{},utility:{},setParent:null,mlaEditAttachment:null};(function(a){mla.settings=typeof mla_edit_media_vars==="undefined"?{}:mla_edit_media_vars;mla_edit_media_vars=void 0;mla.mlaEditAttachment={$uploaddiv:null,uploadtimestamp:"",$modifydiv:null,modifytimestamp:"",init:function(){a("#mla_set_parent").on("click",function(){return mla.mlaEditAttachment.setParentOpen()});a(".categorydiv").each(function(){var d=a(this).attr("id"),c,b;c=d.split("-");c.shift();b=c.join("-");a.extend(a.expr.pseudos||a.expr[":"],{matchTerms:function(g,f,e,h){return(g.textContent||g.innerText||"").toLowerCase().indexOf((e[3]||"").toLowerCase())>=0}});a("#search-"+b).on("keypress",function(e){if(13===e.keyCode){e.preventDefault();a("#search-"+b).val("");a("#"+b+"-searcher").addClass("wp-hidden-children");a("#"+b+"checklist li").show();a("#"+b+"checklist-pop li").show();return}});a("#search-"+b).on("keyup",function(g){var i,h,j,f,e;if(13===g.keyCode){g.preventDefault();a("#"+b+"-search-toggle").focus();return}i=a("#search-"+b).val();h=a("#"+b+"checklist li");j=a("#"+b+"checklist-pop li");if(0<i.length){h.hide();j.hide()}else{h.show();j.show()}f=a("#"+b+"checklist label:matchTerms('"+i+"')");f.closest("li").find("li").andSelf().show();f.parents("#"+b+"checklist li").show();e=a("#"+b+"checklist-pop label:matchTerms('"+i+"')");e.closest("li").find("li").andSelf().show();e.parents("#"+b+"checklist li").show()});a("#"+b+"-search-toggle").on("click",function(){a("#"+b+"-adder ").addClass("wp-hidden-children");a("#"+b+"-searcher").toggleClass("wp-hidden-children");a('a[href="#'+b+'-all"]',"#"+b+"-tabs").trigger("click");a("#"+b+"checklist li").show();a("#"+b+"checklist-pop li").show();if(false===a("#"+b+"-searcher").hasClass("wp-hidden-children")){a("#search-"+b).val("").removeClass("form-input-tip");a("#search-"+b).focus()}return false});a("#"+b+"-add-toggle").on("click",function(){a("#"+b+"-searcher").addClass("wp-hidden-children");return false})});if(a("#submitdiv").length){mla.mlaEditAttachment.uploadtimestamp=a("#upload-timestamp").html();mla.mlaEditAttachment.$uploaddiv=a("#timestampdiv");mla.mlaEditAttachment.$uploaddiv.siblings("a.edit-timestamp").on("click",function(b){if(mla.mlaEditAttachment.$uploaddiv.is(":hidden")){mla.mlaEditAttachment.$uploaddiv.slideDown("fast",function(){a("input, select",mla.mlaEditAttachment.$uploaddiv.find(".timestamp-wrap")).first().focus()});a(this).hide()}b.preventDefault()});mla.mlaEditAttachment.$uploaddiv.find(".cancel-timestamp").on("click",function(b){mla.mlaEditAttachment.$uploaddiv.slideUp("fast").siblings("a.edit-timestamp").show().focus();a("#mm",mla.mlaEditAttachment.$uploaddiv).val(a("#hidden_mm",mla.mlaEditAttachment.$uploaddiv).val());a("#jj",mla.mlaEditAttachment.$uploaddiv).val(a("#hidden_jj",mla.mlaEditAttachment.$uploaddiv).val());a("#aa",mla.mlaEditAttachment.$uploaddiv).val(a("#hidden_aa",mla.mlaEditAttachment.$uploaddiv).val());a("#hh",mla.mlaEditAttachment.$uploaddiv).val(a("#hidden_hh",mla.mlaEditAttachment.$uploaddiv).val());a("#mn",mla.mlaEditAttachment.$uploaddiv).val(a("#hidden_mn",mla.mlaEditAttachment.$uploaddiv).val());mla.mlaEditAttachment.updateText(mla.mlaEditAttachment.$uploaddiv,mla.mlaEditAttachment.uploadtimestamp,"#upload-timestamp");b.preventDefault()});mla.mlaEditAttachment.$uploaddiv.find(".save-timestamp").on("click",function(b){if(mla.mlaEditAttachment.updateText(mla.mlaEditAttachment.$uploaddiv,mla.mlaEditAttachment.uploadtimestamp,"#upload-timestamp")){mla.mlaEditAttachment.$uploaddiv.slideUp("fast");mla.mlaEditAttachment.$uploaddiv.siblings("a.edit-timestamp").show().focus()}b.preventDefault()});a("#post").on("submit",function(b){if(!mla.mlaEditAttachment.updateText(mla.mlaEditAttachment.$uploaddiv,mla.mlaEditAttachment.uploadtimestamp,"#upload-timestamp")){b.preventDefault();mla.mlaEditAttachment.$uploaddiv.show();if(wp.autosave){wp.autosave.enableButtons()}a("#publishing-action .spinner").removeClass("is-active")}})}},setParentOpen:function(){var d,b,c;d=a("#mla_post_parent").val()||"";b=a("#post_ID").val()||"";c=a("#title").val()||"";mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.mlaEditAttachment.setParentSave();return false})},setParentSave:function(){var d=a("#mla-set-parent-response-div input:checked").closest("tr"),f,c,b,e;if(d.length){f=a(":radio",d).val()||"";c=a("label",d).html()||"";b=a("#mla_post_parent").clone(true).val(f);e=a("#mla_parent_info").clone(true).val(c);a("#mla_post_parent").replaceWith(b);a("#mla_parent_info").replaceWith(e);mla.setParent.close()}a("#mla-set-parent-submit").off("click")},updateText:function(k,c,h){if(!k.length){return true}var j,l,d,m,n,b=a("#aa",k).val(),g=a("#mm",k).val(),i=a("#jj",k).val(),f=a("#hh",k).val(),e=a("#mn",k).val();j=new Date(b,g-1,i,f,e);l=new Date(a("#hidden_aa",k).val(),a("#hidden_mm",k).val()-1,a("#hidden_jj",k).val(),a("#hidden_hh",k).val(),a("#hidden_mn",k).val());d=new Date(a("#cur_aa",k).val(),a("#cur_mm",k).val()-1,a("#cur_jj",k).val(),a("#cur_hh",k).val(),a("#cur_mn",k).val());if(j.getFullYear()!=b||(1+j.getMonth())!=g||j.getDate()!=i||j.getMinutes()!=e){k.find(".timestamp-wrap").addClass("form-invalid");return false}else{k.find(".timestamp-wrap").removeClass("form-invalid")}if(l.toUTCString()==j.toUTCString()){a(h).html(c)}else{m="#upload-timestamp"==h?mla.settings.uploadLabel:mla.settings.modifyLabel;if("object"===typeof wp.i18n){n=wp.i18n.__("%1$s %2$s, %3$s at %4$s:%5$s").replace("%1$s",a('option[value="'+g+'"]',"#mm").attr("data-text")).replace("%2$s",parseInt(i,10)).replace("%3$s",b).replace("%4$s",("00"+f).slice(-2)).replace("%5$s",("00"+e).slice(-2))}else{n=postL10n.dateFormat.replace("%1$s",a('option[value="'+g+'"]',"#mm").attr("data-text")).replace("%2$s",parseInt(i,10)).replace("%3$s",b).replace("%4$s",("00"+f).slice(-2)).replace("%5$s",("00"+e).slice(-2))}a(h).html(m+"<b>"+n+"</b> ")}return true}};a(document).ready(function(){mla.mlaEditAttachment.init()})})(jQuery);
1
+ var jQuery,mla_edit_media_vars,mla={settings:{},utility:{},setParent:null,mlaEditAttachment:null};(function(a){mla.settings=typeof mla_edit_media_vars==="undefined"?{}:mla_edit_media_vars;mla_edit_media_vars=void 0;mla.mlaEditAttachment={$uploaddiv:null,uploadtimestamp:"",$modifydiv:null,modifytimestamp:"",init:function(){a("#mla_set_parent").on("click",function(){return mla.mlaEditAttachment.setParentOpen()});a(".categorydiv").each(function(){var d=a(this).attr("id"),c,b;c=d.split("-");c.shift();b=c.join("-");a.extend(a.expr.pseudos||a.expr[":"],{matchTerms:function(g,f,e,h){return(g.textContent||g.innerText||"").toLowerCase().indexOf((e[3]||"").toLowerCase())>=0}});a("#search-"+b).on("keypress",function(e){if(13===e.keyCode){e.preventDefault();a("#search-"+b).val("");a("#"+b+"-searcher").addClass("wp-hidden-children");a("#"+b+"checklist li").show();a("#"+b+"checklist-pop li").show();return}});a("#search-"+b).on("keyup",function(g){var i,h,j,f,e;if(13===g.keyCode){g.preventDefault();a("#"+b+"-search-toggle").trigger("focus");return}i=a("#search-"+b).val();h=a("#"+b+"checklist li");j=a("#"+b+"checklist-pop li");if(0<i.length){h.hide();j.hide()}else{h.show();j.show()}f=a("#"+b+"checklist label:matchTerms('"+i+"')");f.closest("li").find("li").addBack().show();f.parents("#"+b+"checklist li").show();e=a("#"+b+"checklist-pop label:matchTerms('"+i+"')");e.closest("li").find("li").addBack().show();e.parents("#"+b+"checklist li").show()});a("#"+b+"-search-toggle").on("click",function(){a("#"+b+"-adder ").addClass("wp-hidden-children");a("#"+b+"-searcher").toggleClass("wp-hidden-children");a('a[href="#'+b+'-all"]',"#"+b+"-tabs").trigger("click");a("#"+b+"checklist li").show();a("#"+b+"checklist-pop li").show();if(false===a("#"+b+"-searcher").hasClass("wp-hidden-children")){a("#search-"+b).val("").removeClass("form-input-tip");a("#search-"+b).trigger("focus")}return false});a("#"+b+"-add-toggle").on("click",function(){a("#"+b+"-searcher").addClass("wp-hidden-children");return false})});if(a("#submitdiv").length){mla.mlaEditAttachment.uploadtimestamp=a("#upload-timestamp").html();mla.mlaEditAttachment.$uploaddiv=a("#timestampdiv");mla.mlaEditAttachment.$uploaddiv.siblings("a.edit-timestamp").on("click",function(b){if(mla.mlaEditAttachment.$uploaddiv.is(":hidden")){mla.mlaEditAttachment.$uploaddiv.slideDown("fast",function(){a("input, select",mla.mlaEditAttachment.$uploaddiv.find(".timestamp-wrap")).first().trigger("focus")});a(this).hide()}b.preventDefault()});mla.mlaEditAttachment.$uploaddiv.find(".cancel-timestamp").on("click",function(b){mla.mlaEditAttachment.$uploaddiv.slideUp("fast").siblings("a.edit-timestamp").show().trigger("focus");a("#mm",mla.mlaEditAttachment.$uploaddiv).val(a("#hidden_mm",mla.mlaEditAttachment.$uploaddiv).val());a("#jj",mla.mlaEditAttachment.$uploaddiv).val(a("#hidden_jj",mla.mlaEditAttachment.$uploaddiv).val());a("#aa",mla.mlaEditAttachment.$uploaddiv).val(a("#hidden_aa",mla.mlaEditAttachment.$uploaddiv).val());a("#hh",mla.mlaEditAttachment.$uploaddiv).val(a("#hidden_hh",mla.mlaEditAttachment.$uploaddiv).val());a("#mn",mla.mlaEditAttachment.$uploaddiv).val(a("#hidden_mn",mla.mlaEditAttachment.$uploaddiv).val());mla.mlaEditAttachment.updateText(mla.mlaEditAttachment.$uploaddiv,mla.mlaEditAttachment.uploadtimestamp,"#upload-timestamp");b.preventDefault()});mla.mlaEditAttachment.$uploaddiv.find(".save-timestamp").on("click",function(b){if(mla.mlaEditAttachment.updateText(mla.mlaEditAttachment.$uploaddiv,mla.mlaEditAttachment.uploadtimestamp,"#upload-timestamp")){mla.mlaEditAttachment.$uploaddiv.slideUp("fast");mla.mlaEditAttachment.$uploaddiv.siblings("a.edit-timestamp").show().trigger("focus")}b.preventDefault()});a("#post").on("submit",function(b){if(!mla.mlaEditAttachment.updateText(mla.mlaEditAttachment.$uploaddiv,mla.mlaEditAttachment.uploadtimestamp,"#upload-timestamp")){b.preventDefault();mla.mlaEditAttachment.$uploaddiv.show();if(wp.autosave){wp.autosave.enableButtons()}a("#publishing-action .spinner").removeClass("is-active")}})}},setParentOpen:function(){var d,b,c;d=a("#mla_post_parent").val()||"";b=a("#post_ID").val()||"";c=a("#title").val()||"";mla.setParent.open(d,b,c);a("#mla-set-parent-submit").on("click",function(e){e.preventDefault();mla.mlaEditAttachment.setParentSave();return false})},setParentSave:function(){var d=a("#mla-set-parent-response-div input:checked").closest("tr"),f,c,b,e;if(d.length){f=a(":radio",d).val()||"";c=a("label",d).html()||"";b=a("#mla_post_parent").clone(true).val(f);e=a("#mla_parent_info").clone(true).val(c);a("#mla_post_parent").replaceWith(b);a("#mla_parent_info").replaceWith(e);mla.setParent.close()}a("#mla-set-parent-submit").off("click")},updateText:function(k,c,h){if(!k.length){return true}var j,l,d,m,n,b=a("#aa",k).val(),g=a("#mm",k).val(),i=a("#jj",k).val(),f=a("#hh",k).val(),e=a("#mn",k).val();j=new Date(b,g-1,i,f,e);l=new Date(a("#hidden_aa",k).val(),a("#hidden_mm",k).val()-1,a("#hidden_jj",k).val(),a("#hidden_hh",k).val(),a("#hidden_mn",k).val());d=new Date(a("#cur_aa",k).val(),a("#cur_mm",k).val()-1,a("#cur_jj",k).val(),a("#cur_hh",k).val(),a("#cur_mn",k).val());if(j.getFullYear()!=b||(1+j.getMonth())!=g||j.getDate()!=i||j.getMinutes()!=e){k.find(".timestamp-wrap").addClass("form-invalid");return false}else{k.find(".timestamp-wrap").removeClass("form-invalid")}if(l.toUTCString()==j.toUTCString()){a(h).html(c)}else{m="#upload-timestamp"==h?mla.settings.uploadLabel:mla.settings.modifyLabel;if("object"===typeof wp.i18n){n=wp.i18n.__("%1$s %2$s, %3$s at %4$s:%5$s").replace("%1$s",a('option[value="'+g+'"]',"#mm").attr("data-text")).replace("%2$s",parseInt(i,10)).replace("%3$s",b).replace("%4$s",("00"+f).slice(-2)).replace("%5$s",("00"+e).slice(-2))}else{n=postL10n.dateFormat.replace("%1$s",a('option[value="'+g+'"]',"#mm").attr("data-text")).replace("%2$s",parseInt(i,10)).replace("%3$s",b).replace("%4$s",("00"+f).slice(-2)).replace("%5$s",("00"+e).slice(-2))}a(h).html(m+"<b>"+n+"</b> ")}return true}};a(document).ready(function(){mla.mlaEditAttachment.init()})})(jQuery);
js/mla-inline-edit-scripts.js CHANGED
@@ -38,61 +38,64 @@ var jQuery,
38
  },
39
 
40
  attachSearch : function( rowId ) {
41
- jQuery( rowId + ' .categorydiv').each( function(){
42
- var this_id = jQuery(this).attr('id'), taxonomyParts, taxonomy;
43
-
44
- taxonomyParts = this_id.split('-');
45
- taxonomyParts.shift(); // taxonomy-
46
- taxonomy = taxonomyParts.join('-');
47
 
 
 
 
 
 
48
  jQuery.extend( jQuery.expr.pseudos || jQuery.expr[":"], {
49
  "matchTerms": function( elem, i, match, array ) {
50
  return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
51
  }
52
  });
53
 
54
- jQuery( rowId + ' #' + taxonomy + '-searcher' ).addClass( 'wp-hidden-children' );
55
- jQuery( rowId + ' #' + taxonomy + 'checklist li' ).show();
56
 
57
- jQuery( rowId + ' #search-' + taxonomy ).off();
 
 
58
 
59
- jQuery( rowId + ' #search-' + taxonomy ).on( 'keydown', function( event ){
60
-
61
  if( 13 === event.keyCode ) {
62
  event.preventDefault();
63
- jQuery( rowId + ' #search-' + taxonomy ).val( '' );
64
- jQuery( rowId + ' #' + taxonomy + '-searcher' ).addClass( 'wp-hidden-children' );
65
 
66
- jQuery( rowId + ' #' + taxonomy + 'checklist li' ).show();
67
  return false;
68
  }
69
 
70
  } );
71
 
72
- jQuery( rowId + ' #search-' + taxonomy ).on( 'keypress', function( event ){
73
 
74
  if( 13 === event.keyCode ) {
75
  event.preventDefault();
76
- jQuery( rowId + ' #search-' + taxonomy ).val( '' );
77
- jQuery( rowId + ' #' + taxonomy + '-searcher' ).addClass( 'wp-hidden-children' );
78
 
79
- jQuery( rowId + ' #' + taxonomy + 'checklist li' ).show();
80
  return;
81
  }
82
 
83
  } );
84
 
85
- jQuery( rowId + ' #search-' + taxonomy ).on( 'keyup', function( event ){
86
  var searchValue, termList, matchingTerms;
87
 
88
  if( 13 === event.keyCode ) {
89
  event.preventDefault();
90
- jQuery( rowId + ' #' + taxonomy + '-search-toggle' ).focus();
91
  return;
92
  }
93
 
94
- searchValue = jQuery( rowId + ' #search-' + taxonomy ).val();
95
- termList = jQuery( rowId + ' #' + taxonomy + 'checklist li' );
96
 
97
  if ( 0 < searchValue.length ) {
98
  termList.hide();
@@ -100,21 +103,21 @@ var jQuery,
100
  termList.show();
101
  }
102
 
103
- matchingTerms = jQuery( rowId + ' #' + taxonomy + "checklist label:matchTerms('" + searchValue + "')");
104
- matchingTerms.closest( 'li' ).find( 'li' ).andSelf().show();
105
- matchingTerms.parents( rowId + ' #' + taxonomy + 'checklist li' ).show();
106
  } );
107
 
108
- jQuery( rowId + ' #' + taxonomy + '-search-toggle' ).off();
109
 
110
- jQuery( rowId + ' #' + taxonomy + '-search-toggle' ).on( 'click', function() {
111
- jQuery( rowId + ' #' + taxonomy + '-adder ').addClass( 'wp-hidden-children' );
112
- jQuery( rowId + ' #' + taxonomy + '-searcher' ).toggleClass( 'wp-hidden-children' );
113
- jQuery( rowId + ' #' + taxonomy + 'checklist li' ).show();
114
 
115
- if ( false === jQuery( rowId + ' #' + taxonomy + '-searcher' ).hasClass( 'wp-hidden-children' ) ) {
116
- jQuery( rowId + ' #search-' + taxonomy ).val( '' ).removeClass( 'form-input-tip' );
117
- jQuery( rowId + ' #search-' + taxonomy ).focus();
118
  }
119
 
120
  return false;
@@ -193,6 +196,12 @@ var jQuery,
193
  $('a.reset', bulkRow).on( 'click', function(){
194
  return mla.inlineEditAttachment.doReset();
195
  });
 
 
 
 
 
 
196
  $('input[type="submit"]', bulkRow).on( 'click', function(e){
197
  e.preventDefault();
198
  return mla.inlineEditAttachment.bulkSave(e);
@@ -256,6 +265,10 @@ var jQuery,
256
 
257
  $('#bulk-edit').addClass('inline-editor').show();
258
 
 
 
 
 
259
  $('tbody th.check-column input[type="checkbox"]').each(function(){
260
  if ( $(this).prop('checked') ) {
261
  c = false;
@@ -493,6 +506,10 @@ var jQuery,
493
 
494
  $( '#bulk_refresh' ).prop( 'disabled', false ).css( 'opacity', '1.0' );
495
  mla.bulkEdit.inProcess = false;
 
 
 
 
496
  }).fail( function( jqXHR, status ) {
497
  if ( 200 == jqXHR.status ) {
498
  results.text( '(' + status + ') ' + jqXHR.responseText );
@@ -516,7 +533,11 @@ var jQuery,
516
  * in WP 4.2+ to maintain zebra striping
517
  */
518
  editRow = $('#inline-edit').clone(true);
519
- $('td', editRow).attr('colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length);
 
 
 
 
520
 
521
  if ( mla.settings.useSpinnerClass ) {
522
  $(t.what+id).hide().after(editRow).after('<tr class="hidden"></tr>');
@@ -597,7 +618,7 @@ var jQuery,
597
  });
598
 
599
  rowData = $(editRow).attr('id', 'edit-'+id).addClass('inline-editor').show().position().top;
600
- $('.ptitle', editRow).focus();
601
  $( 'html, body' ).animate( { scrollTop: rowData }, 'fast' );
602
 
603
  // Make the edit-fields-div id unique again
@@ -651,8 +672,12 @@ var jQuery,
651
  $( mla.inlineEditAttachment.what + id ).remove();
652
  }
653
 
 
654
  $( '#edit-' + id ).before( response ).remove();
655
  $( mla.inlineEditAttachment.what + id ).hide().fadeIn();
 
 
 
656
  } else {
657
  response = response.replace( /<.[^<>]*?>/g, '' );
658
  $( '#edit-' + id + ' .inline-edit-save .error' ).html( response ).show();
@@ -788,6 +813,102 @@ var jQuery,
788
  mla.setParent.close();
789
  },
790
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
791
  doReset : function(){
792
  var id = $('table.wp-list-table tr.inline-editor').attr('id'),
793
  bulkRow = $('table.wp-list-table #bulk-edit'),
@@ -869,6 +990,10 @@ var jQuery,
869
  }
870
  }
871
 
 
 
 
 
872
  return false;
873
  }
874
  }; // mla.inlineEditAttachment
38
  },
39
 
40
  attachSearch : function( rowId ) {
41
+ var editDiv = jQuery( rowId );
42
+
43
+ jQuery( '.categorydiv', editDiv ).each( function(){
44
+ var this_id = jQuery(this).attr('id'), taxonomy, taxonomyPrefix;
 
 
45
 
46
+ taxonomy = this_id.split('-');
47
+ taxonomy.shift(); // taxonomy-
48
+ taxonomy = taxonomy.join('-');
49
+ taxonomyPrefix = '#' + taxonomy;
50
+
51
  jQuery.extend( jQuery.expr.pseudos || jQuery.expr[":"], {
52
  "matchTerms": function( elem, i, match, array ) {
53
  return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
54
  }
55
  });
56
 
57
+ jQuery( taxonomyPrefix + '-searcher', editDiv ).addClass( 'wp-hidden-children' );
58
+ jQuery( taxonomyPrefix + 'checklist li', editDiv ).show();
59
 
60
+ jQuery( '#search-' + taxonomy, editDiv ).off();
61
+
62
+ jQuery( '#search-' + taxonomy, editDiv ).on( 'keydown', function( event ){
63
 
 
 
64
  if( 13 === event.keyCode ) {
65
  event.preventDefault();
66
+ jQuery( '#search-' + taxonomy, editDiv ).val( '' );
67
+ jQuery( taxonomyPrefix + '-searcher', editDiv ).addClass( 'wp-hidden-children' );
68
 
69
+ jQuery( taxonomyPrefix + 'checklist li', editDiv ).show();
70
  return false;
71
  }
72
 
73
  } );
74
 
75
+ jQuery( '#search-' + taxonomy, editDiv ).on( 'keypress', function( event ){
76
 
77
  if( 13 === event.keyCode ) {
78
  event.preventDefault();
79
+ jQuery( '#search-' + taxonomy, editDiv ).val( '' );
80
+ jQuery( taxonomyPrefix + '-searcher', editDiv ).addClass( 'wp-hidden-children' );
81
 
82
+ jQuery( taxonomyPrefix + 'checklist li', editDiv ).show();
83
  return;
84
  }
85
 
86
  } );
87
 
88
+ jQuery( '#search-' + taxonomy, editDiv ).on( 'keyup', function( event ){
89
  var searchValue, termList, matchingTerms;
90
 
91
  if( 13 === event.keyCode ) {
92
  event.preventDefault();
93
+ jQuery( taxonomyPrefix + '-search-toggle', editDiv ).trigger('focus');
94
  return;
95
  }
96
 
97
+ searchValue = jQuery( '#search-' + taxonomy, editDiv ).val();
98
+ termList = jQuery( taxonomyPrefix + 'checklist li', editDiv );
99
 
100
  if ( 0 < searchValue.length ) {
101
  termList.hide();
103
  termList.show();
104
  }
105
 
106
+ matchingTerms = jQuery( taxonomyPrefix + "checklist label:matchTerms('" + searchValue + "')", editDiv );
107
+ matchingTerms.closest( 'li' ).find( 'li' ).addBack().show();
108
+ matchingTerms.parents( taxonomyPrefix + 'checklist li', editDiv ).show();
109
  } );
110
 
111
+ jQuery( taxonomyPrefix + '-search-toggle', editDiv ).off();
112
 
113
+ jQuery( taxonomyPrefix + '-search-toggle', editDiv ).on( 'click', function() {
114
+ jQuery( taxonomyPrefix + '-adder ', editDiv ).addClass( 'wp-hidden-children' );
115
+ jQuery( taxonomyPrefix + '-searcher', editDiv ).toggleClass( 'wp-hidden-children' );
116
+ jQuery( taxonomyPrefix + 'checklist li', editDiv ).show();
117
 
118
+ if ( false === jQuery( taxonomyPrefix + '-searcher', editDiv ).hasClass( 'wp-hidden-children' ) ) {
119
+ jQuery( '#search-' + taxonomy, editDiv ).val( '' ).removeClass( 'form-input-tip' );
120
+ jQuery( '#search-' + taxonomy, editDiv ).trigger('focus');
121
  }
122
 
123
  return false;
196
  $('a.reset', bulkRow).on( 'click', function(){
197
  return mla.inlineEditAttachment.doReset();
198
  });
199
+ $('a.import', bulkRow).on( 'click', function(){
200
+ return mla.inlineEditAttachment.doImport();
201
+ });
202
+ $('a.export', bulkRow).on( 'click', function(){
203
+ return mla.inlineEditAttachment.doExport();
204
+ });
205
  $('input[type="submit"]', bulkRow).on( 'click', function(e){
206
  e.preventDefault();
207
  return mla.inlineEditAttachment.bulkSave(e);
265
 
266
  $('#bulk-edit').addClass('inline-editor').show();
267
 
268
+ // Activate the add term ajax response tag
269
+ $('#ajax-response').attr( 'id', 'default-ajax-response' );
270
+ $( '#bulk-edit #bulkrow-ajax-response' ).attr( 'id', 'ajax-response' );
271
+
272
  $('tbody th.check-column input[type="checkbox"]').each(function(){
273
  if ( $(this).prop('checked') ) {
274
  c = false;
506
 
507
  $( '#bulk_refresh' ).prop( 'disabled', false ).css( 'opacity', '1.0' );
508
  mla.bulkEdit.inProcess = false;
509
+
510
+ // Restore the default ajax response tag
511
+ $( '#bulk-edit #ajax-response' ).attr( 'id', 'bulkrow-ajax-response' ).empty();
512
+ $('#default-ajax-response').attr( 'id', 'ajax-response' );
513
  }).fail( function( jqXHR, status ) {
514
  if ( 200 == jqXHR.status ) {
515
  results.text( '(' + status + ') ' + jqXHR.responseText );
533
  * in WP 4.2+ to maintain zebra striping
534
  */
535
  editRow = $('#inline-edit').clone(true);
536
+ $( 'td', editRow ).attr('colspan', $( 'th:visible, td:visible', '.widefat:first thead' ).length);
537
+
538
+ // Activate the add term ajax response tag
539
+ $('#ajax-response').attr( 'id', 'default-ajax-response' );
540
+ $( '#qerow-ajax-response', editRow ).attr( 'id', 'ajax-response' );
541
 
542
  if ( mla.settings.useSpinnerClass ) {
543
  $(t.what+id).hide().after(editRow).after('<tr class="hidden"></tr>');
618
  });
619
 
620
  rowData = $(editRow).attr('id', 'edit-'+id).addClass('inline-editor').show().position().top;
621
+ $('.ptitle', editRow).trigger('focus');
622
  $( 'html, body' ).animate( { scrollTop: rowData }, 'fast' );
623
 
624
  // Make the edit-fields-div id unique again
672
  $( mla.inlineEditAttachment.what + id ).remove();
673
  }
674
 
675
+
676
  $( '#edit-' + id ).before( response ).remove();
677
  $( mla.inlineEditAttachment.what + id ).hide().fadeIn();
678
+
679
+ // Restore the default ajax response tag
680
+ $('#default-ajax-response').attr( 'id', 'ajax-response' );
681
  } else {
682
  response = response.replace( /<.[^<>]*?>/g, '' );
683
  $( '#edit-' + id + ' .inline-edit-save .error' ).html( response ).show();
813
  mla.setParent.close();
814
  },
815
 
816
+ doExport : function(){
817
+ //console.log( 'TODO: doExport' );
818
+ //return false;
819
+
820
+ var post = {
821
+ action: mla.settings.exportPresetsAction,
822
+ mla_preset_values: $( '#bulk-edit :input' ).serialize(),
823
+ mla_preset_option: mla.settings.exportPresetsOption,
824
+ mla_admin_nonce: $('#mla-export-presets-ajax-nonce').val()
825
+ },
826
+ spinner = $( 'table.wp-list-table #bulk-edit-fields-div .spinner' );
827
+
828
+ if ( mla.settings.useSpinnerClass ) {
829
+ spinner.addClass("is-active");
830
+ } else {
831
+ spinner.show();
832
+ }
833
+
834
+ $.ajax( ajaxurl, {
835
+ type: 'POST',
836
+ data: post,
837
+ dataType: 'json'
838
+ }).always( function( response ) {
839
+ if ( mla.settings.useSpinnerClass ) {
840
+ spinner.removeClass("is-active");
841
+ } else {
842
+ spinner.hide();
843
+ }
844
+ }).done( function( response ) {
845
+ var responseData = 'no response.data';
846
+
847
+ if ( ! response.success ) {
848
+ if ( response.data ) {
849
+ responseData = response.data;
850
+ }
851
+
852
+ $( '#ajax-response' ).html( '<strong>' + mla.settings.ajaxDoneError + ' (' + responseData + ')</strong>' );
853
+ } else {
854
+ // replace the old presets with the current values
855
+ $( '#preset-bulk-edit-fields-div' ).html( response.data );
856
+ }
857
+ }).fail( function( jqXHR, status ) {
858
+ if ( 200 == jqXHR.status ) {
859
+ $( '#ajax-response' ).text( '(' + status + ') ' + jqXHR.responseText );
860
+ } else {
861
+ $( '#ajax-response' ).text( mla.settings.ajaxFailError + ' (' + status + '), jqXHR( ' + jqXHR.status + ', ' + jqXHR.statusText + ', ' + jqXHR.responseText + ')' );
862
+ }
863
+ });
864
+
865
+ return false;
866
+ },
867
+
868
+ doImport : function(){
869
+ var id = $('table.wp-list-table tr.inline-editor').attr('id'),
870
+ bulkRow = $('table.wp-list-table #bulk-edit'),
871
+ presetRow = $('#inlineedit #preset-bulk-edit'),
872
+ presetCategories = $('.inline-edit-categories', presetRow ).html(),
873
+ presetTags = $('.inline-edit-tags', presetRow ).html(),
874
+ presetFields = $('.inline-edit-fields', presetRow ).html();
875
+
876
+ if ( id ) {
877
+ if ( mla.settings.useSpinnerClass ) {
878
+ $('table.wp-list-table .inline-edit-save .spinner').removeClass("is-active");
879
+ } else {
880
+ $('table.wp-list-table .inline-edit-save .spinner').hide();
881
+ }
882
+
883
+ if ( 'bulk-edit' == id ) {
884
+ $('.inline-edit-categories', bulkRow ).html( presetCategories ),
885
+ $('.inline-edit-tags', bulkRow ).html( presetTags ),
886
+ $('.inline-edit-fields', bulkRow ).html( presetFields );
887
+
888
+ if ( ( typeof quicktags !== 'undefined' ) && ( typeof mla.settings.quickTagsInit !== 'undefined' ) ) {
889
+ for ( id in mla.settings.quickTagsInit ) {
890
+ quicktags( mla.settings.quickTagsInit[id] );
891
+
892
+ if ( mla.settings.quickTagsInit[id]['active'] ) {
893
+ window.wpActiveEditor = id;
894
+ }
895
+ }
896
+ }
897
+
898
+ if ( typeof mla.addTerm !== 'undefined' ) {
899
+ mla.addTerm.init( '#bulk-edit-fields-div' );
900
+ }
901
+ mla.utility.attachSearch( '#bulk-edit-fields-div' );
902
+
903
+ $('#bulk-edit-set-parent', bulkRow).on( 'click', function(){
904
+ return mla.inlineEditAttachment.bulkParentOpen();
905
+ });
906
+ }
907
+ }
908
+
909
+ return false;
910
+ },
911
+
912
  doReset : function(){
913
  var id = $('table.wp-list-table tr.inline-editor').attr('id'),
914
  bulkRow = $('table.wp-list-table #bulk-edit'),
990
  }
991
  }
992
 
993
+
994
+ // Restore the default ajax response tag
995
+ $( '#bulk-edit #ajax-response' ).attr( 'id', 'bulkrow-ajax-response' ).empty();
996
+ $('#default-ajax-response').attr( 'id', 'ajax-response' );
997
  return false;
998
  }
999
  }; // mla.inlineEditAttachment
js/mla-inline-edit-scripts.min.js CHANGED
@@ -1 +1 @@
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]},attachSearch:function(a){jQuery(a+" .categorydiv").each(function(){var d=jQuery(this).attr("id"),c,b;c=d.split("-");c.shift();b=c.join("-");jQuery.extend(jQuery.expr.pseudos||jQuery.expr[":"],{matchTerms:function(g,f,e,h){return(g.textContent||g.innerText||"").toLowerCase().indexOf((e[3]||"").toLowerCase())>=0}});jQuery(a+" #"+b+"-searcher").addClass("wp-hidden-children");jQuery(a+" #"+b+"checklist li").show();jQuery(a+" #search-"+b).off();jQuery(a+" #search-"+b).on("keydown",function(e){if(13===e.keyCode){e.preventDefault();jQuery(a+" #search-"+b).val("");jQuery(a+" #"+b+"-searcher").addClass("wp-hidden-children");jQuery(a+" #"+b+"checklist li").show();return false}});jQuery(a+" #search-"+b).on("keypress",function(e){if(13===e.keyCode){e.preventDefault();jQuery(a+" #search-"+b).val("");jQuery(a+" #"+b+"-searcher").addClass("wp-hidden-children");jQuery(a+" #"+b+"checklist li").show();return}});jQuery(a+" #search-"+b).on("keyup",function(f){var h,g,e;if(13===f.keyCode){f.preventDefault();jQuery(a+" #"+b+"-search-toggle").focus();return}h=jQuery(a+" #search-"+b).val();g=jQuery(a+" #"+b+"checklist li");if(0<h.length){g.hide()}else{g.show()}e=jQuery(a+" #"+b+"checklist label:matchTerms('"+h+"')");e.closest("li").find("li").andSelf().show();e.parents(a+" #"+b+"checklist li").show()});jQuery(a+" #"+b+"-search-toggle").off();jQuery(a+" #"+b+"-search-toggle").on("click",function(){jQuery(a+" #"+b+"-adder ").addClass("wp-hidden-children");jQuery(a+" #"+b+"-searcher").toggleClass("wp-hidden-children");jQuery(a+" #"+b+"checklist li").show();if(false===jQuery(a+" #"+b+"-searcher").hasClass("wp-hidden-children")){jQuery(a+" #search-"+b).val("").removeClass("form-input-tip");jQuery(a+" #search-"+b).focus()}return false})})}},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");if(mla.settings.deleteAcpBulkEdit){setTimeout(function(){var f=document.querySelectorAll("body.ac-mla-media-assistant .acp-be-editrow, body.ac-mla-media-assistant .acp-be-noticerow");for(i=0;i<f.length;++i){f[i].remove()}},1000)}d.type="attachment";d.what="#attachment-";e.on("keyup",function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});c.on("keyup",function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});b.on("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).on("click",function(){return mla.inlineEditAttachment.revert()});a("a.save",e).on("click",function(){return mla.inlineEditAttachment.quickSave(this)});a("td",e).on("keydown",function(f){if(f.which==13){return mla.inlineEditAttachment.quickSave(this)}});if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#bulk-edit-fields-div")}mla.utility.attachSearch("#bulk-edit-fields-div");a("#bulk-edit-set-parent",c).on("click",function(){return mla.inlineEditAttachment.bulkParentOpen()});a("a.cancel",c).on("click",function(){return mla.inlineEditAttachment.revert()});a("a.reset",c).on("click",function(){return mla.inlineEditAttachment.doReset()});a('input[type="submit"]',c).on("click",function(f){f.preventDefault();return mla.inlineEditAttachment.bulkSave(f)});a("a.cancel",b).on("click",function(){if(mla.bulkEdit.inProcess){mla.bulkEdit.doCancel=true;return false}else{return mla.inlineEditAttachment.revert()}});a("#bulk_refresh",b).on("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('select[name="_status"] option[value="future"]',c).remove();a("#doaction, #doaction2").on("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").on("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("th:visible, td:visible",".widefat:first thead").length);if(mla.settings.useSpinnerClass){a("table.wp-list-table tbody").prepend(a("#bulk-edit")).prepend('<tr class="hidden"></tr>')}else{a("table.wp-list-table 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").on("click",function(){var c=a(this).attr("id").substr(1);a('table.wp-list-table 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");if((typeof quicktags!=="undefined")&&(typeof mla.settings.quickTagsInit!=="undefined")){for(id in mla.settings.quickTagsInit){quicktags(mla.settings.quickTagsInit[id]);if(mla.settings.quickTagsInit[id]["active"]){window.wpActiveEditor=id}}}},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("th:visible, td:visible",".widefat:first thead").length);a("table.wp-list-table 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").on("click",function(){var c=a(this).attr("id").substr(1);a('table.wp-list-table 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,j,c,h=a("table.wp-list-table .inline-edit-save .spinner"),d=a("#bulk-progress .inline-edit-save .error"),k=a("#bulk-progress-waiting"),e=a("#bulk-progress-running");g=mla.bulkEdit.ids.slice(mla.bulkEdit.offset,mla.bulkEdit.offset+mla.bulkEdit.chunkSize);for(f=0;f<g.length;f++){j=a("#ttle"+g[f],k).remove();a("a",j).hide();e.append(j)}mla.bulkEdit.waiting-=g.length;mla.bulkEdit.running=g.length;b={action:mla.settings.ajax_action,mla_admin_nonce:mla.settings.ajax_nonce,bulk_action:mla.bulkEdit.targetName,cb_offset:mla.bulkEdit.offset,cb_count:mla.bulkEdit.idsCount,cb_attachment:g};mla.bulkEdit.offset+=mla.bulkEdit.chunkSize;b=a.param(b)+"&"+mla.bulkEdit.fields;mla.bulkEdit.inProcess=true;if(mla.settings.useSpinnerClass){h.addClass("is-active")}else{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(){if(mla.settings.useSpinnerClass){h.removeClass("is-active")}else{h.hide()}}).done(function(o,m){var p="no response.data",l,n;if(mla.settings.useSpinnerClass){h.removeClass("is-active")}else{h.hide()}if(o){if(!o.success){if(o.responseData){p=o.data}d.html(JSON.stringify(o)).show();mla.bulkEdit.offset=mla.bulkEdit.idsCount}else{n=a("#bulk-progress-running div").remove();a.each(n,function(){var q,r=a(this).html(),s=a(this).attr("id").substr(4);if("string"===typeof(o.data.item_results[s]["result"])){q=o.data.item_results[s]["result"];a(this).html(r+" ("+s+") - "+q)}a("#attachment-"+s).remove()});a("#bulk-progress-complete").append(n);mla.bulkEdit.complete+=mla.bulkEdit.running;mla.bulkEdit.running=0;mla.bulkEdit.unchanged+=o.data.unchanged;mla.bulkEdit.success+=o.data.success;mla.bulkEdit.failure+=o.data.failure;l=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(l).show()}}else{d.html(mla.settings.error).show();mla.bulkEdit.offset=mla.bulkEdit.idsCount}if(mla.bulkEdit.doCancel){d.html(mla.settings.bulkCanceled+". "+l).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(m,l){if(200==m.status){d.text("("+l+") "+m.responseText)}else{d.text(mla.settings.ajaxFailError+" ("+l+"), jqXHR( "+m.status+", "+m.statusText+", "+m.responseText+")")}})},quickEdit:function(j){var d=this,b,c,f,h=[],e,g;d.revert();if(typeof(j)=="object"){j=mla.utility.getId(j)}b=mla.settings.fields;c=a("#inline-edit").clone(true);a("td",c).attr("colspan",a("th:visible, td:visible",".widefat:first thead").length);if(mla.settings.useSpinnerClass){a(d.what+j).hide().after(c).after('<tr class="hidden"></tr>')}else{if(a(d.what+j).hasClass("alternate")){a(c).addClass("alternate")}a(d.what+j).hide().after(c)}f=a("#inline_"+j);e=a(".item_thumbnail",f).html();if(e.length){a("#item_thumbnail",c).html(e)}if(!a(':input[name="post_author"] option[value="'+a(".post_author",f).text()+'"]',c).val()){a(':input[name="post_author"]',c).prepend('<option value="'+a(".post_author",f).text()+'">'+a("#"+d.type+"-"+j+" .author").text()+"</option>")}if(a(':input[name="post_author"] option',c).length==1){a("label.inline-edit-author",c).hide()}for(g=0;g<b.length;g++){a(':input[name="'+b[g]+'"]',c).val(a("."+b[g],f).text())}if(a(".image_alt",f).length===0){a("label.inline-edit-image-alt",c).hide()}a(".checked_on_top",f).each(function(){h[h.length]=a(this).attr("id").replace("_"+j,"")});a(".mla_category",f).each(function(){var m=a(this).text(),n=a(this).attr("id").replace("_"+j,""),l,k;if(m){a("ul."+n+"checklist :checkbox",c).val(m.split(","));if(-1!==h.indexOf(n)){l=a("ul."+n+"checklist li :checked",c).parents("label").remove().toArray().reverse();k=a("<li></li>").html(l);a("ul."+n+"checklist",c).prepend(k)}}});a(".mla_tags",f).each(function(){var n=a(this).text(),o=a(this).attr("id").replace("_"+j,""),m=a("textarea.tax_input_"+o,c),k=mla.settings.comma,l;if(n){if(","!==k){n=n.replace(/,/g,k)}m.val(n)}l=a(".lang",f).text();if(0<l.length){l="&lang="+l}else{l=""}m.suggest(ajaxurl+"?action=ajax-tag-search&tax="+o+"&preview_id="+j+l,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});f=a(c).attr("id","edit-"+j).addClass("inline-editor").show().position().top;a(".ptitle",c).focus();a("html, body").animate({scrollTop:f},"fast");a("#inline-edit-fields-div",c).attr("id","inline-edit-fields-div-active");if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#inline-edit-fields-div-active")}mla.utility.attachSearch("#inline-edit-fields-div-active");return false},quickSave:function(e){var d,b,c=a(".post_status_page").val()||"";if(typeof(e)=="object"){e=mla.utility.getId(e)}if(mla.settings.useSpinnerClass){a("table.wp-list-table .inline-edit-save .spinner").addClass("is-active")}else{a("table.wp-list-table .inline-edit-save .spinner").show()}d={action:mla.settings.ajax_action,mla_admin_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){if(mla.settings.useSpinnerClass){a("table.wp-list-table .inline-edit-save .spinner").removeClass("is-active")}else{a("table.wp-list-table .inline-edit-save .spinner").hide()}if(f){if(-1!=f.indexOf("<tr")){if(mla.settings.useSpinnerClass){a(mla.inlineEditAttachment.what+e).siblings("tr.hidden").addBack().remove()}else{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);if(mla.settings.useSpinnerClass){a("#attachment-"+b+" td.attached_to .spinner").addClass("is-active")}else{a("#attachment-"+b+" td.attached_to .spinner").show()}c=a.param({action:mla.settings.ajax_action+"-set-parent",mla_admin_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()},doReset:function(){var g=a("table.wp-list-table tr.inline-editor").attr("id"),d=a("table.wp-list-table #bulk-edit"),c=a("#inlineedit #blank-bulk-edit"),b=a(".inline-edit-categories",c).html(),f=a(".inline-edit-tags",c).html(),e=a(".inline-edit-fields",c).html();if(g){if(mla.settings.useSpinnerClass){a("table.wp-list-table .inline-edit-save .spinner").removeClass("is-active")}else{a("table.wp-list-table .inline-edit-save .spinner").hide()}if("bulk-edit"==g){a(".inline-edit-categories",d).html(b),a(".inline-edit-tags",d).html(f),a(".inline-edit-fields",d).html(e);if((typeof quicktags!=="undefined")&&(typeof mla.settings.quickTagsInit!=="undefined")){for(g in mla.settings.quickTagsInit){quicktags(mla.settings.quickTagsInit[g]);if(mla.settings.quickTagsInit[g]["active"]){window.wpActiveEditor=g}}}if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#bulk-edit-fields-div")}mla.utility.attachSearch("#bulk-edit-fields-div");a("#bulk-edit-set-parent",d).on("click",function(){return mla.inlineEditAttachment.bulkParentOpen()})}}return false},revert:function(){var b=a("table.wp-list-table tr.inline-editor").attr("id");if(b){if(mla.settings.useSpinnerClass){a("table.wp-list-table .inline-edit-save .spinner").removeClass("is-active")}else{a("table.wp-list-table .inline-edit-save .spinner").hide()}if("bulk-edit"==b){if(mla.settings.useSpinnerClass){a("table.wp-list-table #bulk-edit").removeClass("inline-editor").hide().siblings("tr.hidden").remove()}else{a("table.wp-list-table #bulk-edit").removeClass("inline-editor").hide()}a("#bulk-titles").html("");a("#inlineedit").append(a("#bulk-edit"))}else{if("bulk-progress"==b){a("table.wp-list-table #bulk-progress").removeClass("inline-editor").hide();a("#bulk-progress-waiting").html("");a("#inlineedit").append(a("#bulk-progress"))}else{if(mla.settings.useSpinnerClass){a("#"+b).siblings("tr.hidden").addBack().remove()}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);
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]},attachSearch:function(b){var a=jQuery(b);jQuery(".categorydiv",a).each(function(){var d=jQuery(this).attr("id"),c,e;c=d.split("-");c.shift();c=c.join("-");e="#"+c;jQuery.extend(jQuery.expr.pseudos||jQuery.expr[":"],{matchTerms:function(h,g,f,j){return(h.textContent||h.innerText||"").toLowerCase().indexOf((f[3]||"").toLowerCase())>=0}});jQuery(e+"-searcher",a).addClass("wp-hidden-children");jQuery(e+"checklist li",a).show();jQuery("#search-"+c,a).off();jQuery("#search-"+c,a).on("keydown",function(f){if(13===f.keyCode){f.preventDefault();jQuery("#search-"+c,a).val("");jQuery(e+"-searcher",a).addClass("wp-hidden-children");jQuery(e+"checklist li",a).show();return false}});jQuery("#search-"+c,a).on("keypress",function(f){if(13===f.keyCode){f.preventDefault();jQuery("#search-"+c,a).val("");jQuery(e+"-searcher",a).addClass("wp-hidden-children");jQuery(e+"checklist li",a).show();return}});jQuery("#search-"+c,a).on("keyup",function(g){var j,h,f;if(13===g.keyCode){g.preventDefault();jQuery(e+"-search-toggle",a).trigger("focus");return}j=jQuery("#search-"+c,a).val();h=jQuery(e+"checklist li",a);if(0<j.length){h.hide()}else{h.show()}f=jQuery(e+"checklist label:matchTerms('"+j+"')",a);f.closest("li").find("li").addBack().show();f.parents(e+"checklist li",a).show()});jQuery(e+"-search-toggle",a).off();jQuery(e+"-search-toggle",a).on("click",function(){jQuery(e+"-adder ",a).addClass("wp-hidden-children");jQuery(e+"-searcher",a).toggleClass("wp-hidden-children");jQuery(e+"checklist li",a).show();if(false===jQuery(e+"-searcher",a).hasClass("wp-hidden-children")){jQuery("#search-"+c,a).val("").removeClass("form-input-tip");jQuery("#search-"+c,a).trigger("focus")}return false})})}},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");if(mla.settings.deleteAcpBulkEdit){setTimeout(function(){var f=document.querySelectorAll("body.ac-mla-media-assistant .acp-be-editrow, body.ac-mla-media-assistant .acp-be-noticerow");for(i=0;i<f.length;++i){f[i].remove()}},1000)}d.type="attachment";d.what="#attachment-";e.on("keyup",function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});c.on("keyup",function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});b.on("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).on("click",function(){return mla.inlineEditAttachment.revert()});a("a.save",e).on("click",function(){return mla.inlineEditAttachment.quickSave(this)});a("td",e).on("keydown",function(f){if(f.which==13){return mla.inlineEditAttachment.quickSave(this)}});if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#bulk-edit-fields-div")}mla.utility.attachSearch("#bulk-edit-fields-div");a("#bulk-edit-set-parent",c).on("click",function(){return mla.inlineEditAttachment.bulkParentOpen()});a("a.cancel",c).on("click",function(){return mla.inlineEditAttachment.revert()});a("a.reset",c).on("click",function(){return mla.inlineEditAttachment.doReset()});a("a.import",c).on("click",function(){return mla.inlineEditAttachment.doImport()});a("a.export",c).on("click",function(){return mla.inlineEditAttachment.doExport()});a('input[type="submit"]',c).on("click",function(f){f.preventDefault();return mla.inlineEditAttachment.bulkSave(f)});a("a.cancel",b).on("click",function(){if(mla.bulkEdit.inProcess){mla.bulkEdit.doCancel=true;return false}else{return mla.inlineEditAttachment.revert()}});a("#bulk_refresh",b).on("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('select[name="_status"] option[value="future"]',c).remove();a("#doaction, #doaction2").on("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").on("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("th:visible, td:visible",".widefat:first thead").length);if(mla.settings.useSpinnerClass){a("table.wp-list-table tbody").prepend(a("#bulk-edit")).prepend('<tr class="hidden"></tr>')}else{a("table.wp-list-table tbody").prepend(a("#bulk-edit"))}a("#bulk-edit").addClass("inline-editor").show();a("#ajax-response").attr("id","default-ajax-response");a("#bulk-edit #bulkrow-ajax-response").attr("id","ajax-response");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").on("click",function(){var c=a(this).attr("id").substr(1);a('table.wp-list-table 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");if((typeof quicktags!=="undefined")&&(typeof mla.settings.quickTagsInit!=="undefined")){for(id in mla.settings.quickTagsInit){quicktags(mla.settings.quickTagsInit[id]);if(mla.settings.quickTagsInit[id]["active"]){window.wpActiveEditor=id}}}},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("th:visible, td:visible",".widefat:first thead").length);a("table.wp-list-table 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").on("click",function(){var c=a(this).attr("id").substr(1);a('table.wp-list-table 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,j,c,h=a("table.wp-list-table .inline-edit-save .spinner"),d=a("#bulk-progress .inline-edit-save .error"),k=a("#bulk-progress-waiting"),e=a("#bulk-progress-running");g=mla.bulkEdit.ids.slice(mla.bulkEdit.offset,mla.bulkEdit.offset+mla.bulkEdit.chunkSize);for(f=0;f<g.length;f++){j=a("#ttle"+g[f],k).remove();a("a",j).hide();e.append(j)}mla.bulkEdit.waiting-=g.length;mla.bulkEdit.running=g.length;b={action:mla.settings.ajax_action,mla_admin_nonce:mla.settings.ajax_nonce,bulk_action:mla.bulkEdit.targetName,cb_offset:mla.bulkEdit.offset,cb_count:mla.bulkEdit.idsCount,cb_attachment:g};mla.bulkEdit.offset+=mla.bulkEdit.chunkSize;b=a.param(b)+"&"+mla.bulkEdit.fields;mla.bulkEdit.inProcess=true;if(mla.settings.useSpinnerClass){h.addClass("is-active")}else{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(){if(mla.settings.useSpinnerClass){h.removeClass("is-active")}else{h.hide()}}).done(function(o,m){var p="no response.data",l,n;if(mla.settings.useSpinnerClass){h.removeClass("is-active")}else{h.hide()}if(o){if(!o.success){if(o.responseData){p=o.data}d.html(JSON.stringify(o)).show();mla.bulkEdit.offset=mla.bulkEdit.idsCount}else{n=a("#bulk-progress-running div").remove();a.each(n,function(){var q,r=a(this).html(),s=a(this).attr("id").substr(4);if("string"===typeof(o.data.item_results[s]["result"])){q=o.data.item_results[s]["result"];a(this).html(r+" ("+s+") - "+q)}a("#attachment-"+s).remove()});a("#bulk-progress-complete").append(n);mla.bulkEdit.complete+=mla.bulkEdit.running;mla.bulkEdit.running=0;mla.bulkEdit.unchanged+=o.data.unchanged;mla.bulkEdit.success+=o.data.success;mla.bulkEdit.failure+=o.data.failure;l=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(l).show()}}else{d.html(mla.settings.error).show();mla.bulkEdit.offset=mla.bulkEdit.idsCount}if(mla.bulkEdit.doCancel){d.html(mla.settings.bulkCanceled+". "+l).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;a("#bulk-edit #ajax-response").attr("id","bulkrow-ajax-response").empty();a("#default-ajax-response").attr("id","ajax-response")}).fail(function(m,l){if(200==m.status){d.text("("+l+") "+m.responseText)}else{d.text(mla.settings.ajaxFailError+" ("+l+"), jqXHR( "+m.status+", "+m.statusText+", "+m.responseText+")")}})},quickEdit:function(j){var d=this,b,c,f,h=[],e,g;d.revert();if(typeof(j)=="object"){j=mla.utility.getId(j)}b=mla.settings.fields;c=a("#inline-edit").clone(true);a("td",c).attr("colspan",a("th:visible, td:visible",".widefat:first thead").length);a("#ajax-response").attr("id","default-ajax-response");a("#qerow-ajax-response",c).attr("id","ajax-response");if(mla.settings.useSpinnerClass){a(d.what+j).hide().after(c).after('<tr class="hidden"></tr>')}else{if(a(d.what+j).hasClass("alternate")){a(c).addClass("alternate")}a(d.what+j).hide().after(c)}f=a("#inline_"+j);e=a(".item_thumbnail",f).html();if(e.length){a("#item_thumbnail",c).html(e)}if(!a(':input[name="post_author"] option[value="'+a(".post_author",f).text()+'"]',c).val()){a(':input[name="post_author"]',c).prepend('<option value="'+a(".post_author",f).text()+'">'+a("#"+d.type+"-"+j+" .author").text()+"</option>")}if(a(':input[name="post_author"] option',c).length==1){a("label.inline-edit-author",c).hide()}for(g=0;g<b.length;g++){a(':input[name="'+b[g]+'"]',c).val(a("."+b[g],f).text())}if(a(".image_alt",f).length===0){a("label.inline-edit-image-alt",c).hide()}a(".checked_on_top",f).each(function(){h[h.length]=a(this).attr("id").replace("_"+j,"")});a(".mla_category",f).each(function(){var m=a(this).text(),n=a(this).attr("id").replace("_"+j,""),l,k;if(m){a("ul."+n+"checklist :checkbox",c).val(m.split(","));if(-1!==h.indexOf(n)){l=a("ul."+n+"checklist li :checked",c).parents("label").remove().toArray().reverse();k=a("<li></li>").html(l);a("ul."+n+"checklist",c).prepend(k)}}});a(".mla_tags",f).each(function(){var n=a(this).text(),o=a(this).attr("id").replace("_"+j,""),m=a("textarea.tax_input_"+o,c),k=mla.settings.comma,l;if(n){if(","!==k){n=n.replace(/,/g,k)}m.val(n)}l=a(".lang",f).text();if(0<l.length){l="&lang="+l}else{l=""}m.suggest(ajaxurl+"?action=ajax-tag-search&tax="+o+"&preview_id="+j+l,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});f=a(c).attr("id","edit-"+j).addClass("inline-editor").show().position().top;a(".ptitle",c).trigger("focus");a("html, body").animate({scrollTop:f},"fast");a("#inline-edit-fields-div",c).attr("id","inline-edit-fields-div-active");if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#inline-edit-fields-div-active")}mla.utility.attachSearch("#inline-edit-fields-div-active");return false},quickSave:function(e){var d,b,c=a(".post_status_page").val()||"";if(typeof(e)=="object"){e=mla.utility.getId(e)}if(mla.settings.useSpinnerClass){a("table.wp-list-table .inline-edit-save .spinner").addClass("is-active")}else{a("table.wp-list-table .inline-edit-save .spinner").show()}d={action:mla.settings.ajax_action,mla_admin_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){if(mla.settings.useSpinnerClass){a("table.wp-list-table .inline-edit-save .spinner").removeClass("is-active")}else{a("table.wp-list-table .inline-edit-save .spinner").hide()}if(f){if(-1!=f.indexOf("<tr")){if(mla.settings.useSpinnerClass){a(mla.inlineEditAttachment.what+e).siblings("tr.hidden").addBack().remove()}else{a(mla.inlineEditAttachment.what+e).remove()}a("#edit-"+e).before(f).remove();a(mla.inlineEditAttachment.what+e).hide().fadeIn();a("#default-ajax-response").attr("id","ajax-response")}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);if(mla.settings.useSpinnerClass){a("#attachment-"+b+" td.attached_to .spinner").addClass("is-active")}else{a("#attachment-"+b+" td.attached_to .spinner").show()}c=a.param({action:mla.settings.ajax_action+"-set-parent",mla_admin_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()},doExport:function(){var b={action:mla.settings.exportPresetsAction,mla_preset_values:a("#bulk-edit :input").serialize(),mla_preset_option:mla.settings.exportPresetsOption,mla_admin_nonce:a("#mla-export-presets-ajax-nonce").val()},c=a("table.wp-list-table #bulk-edit-fields-div .spinner");if(mla.settings.useSpinnerClass){c.addClass("is-active")}else{c.show()}a.ajax(ajaxurl,{type:"POST",data:b,dataType:"json"}).always(function(d){if(mla.settings.useSpinnerClass){c.removeClass("is-active")}else{c.hide()}}).done(function(d){var e="no response.data";if(!d.success){if(d.data){e=d.data}a("#ajax-response").html("<strong>"+mla.settings.ajaxDoneError+" ("+e+")</strong>")}else{a("#preset-bulk-edit-fields-div").html(d.data)}}).fail(function(e,d){if(200==e.status){a("#ajax-response").text("("+d+") "+e.responseText)}else{a("#ajax-response").text(mla.settings.ajaxFailError+" ("+d+"), jqXHR( "+e.status+", "+e.statusText+", "+e.responseText+")")}});return false},doImport:function(){var g=a("table.wp-list-table tr.inline-editor").attr("id"),c=a("table.wp-list-table #bulk-edit"),f=a("#inlineedit #preset-bulk-edit"),d=a(".inline-edit-categories",f).html(),e=a(".inline-edit-tags",f).html(),b=a(".inline-edit-fields",f).html();if(g){if(mla.settings.useSpinnerClass){a("table.wp-list-table .inline-edit-save .spinner").removeClass("is-active")}else{a("table.wp-list-table .inline-edit-save .spinner").hide()}if("bulk-edit"==g){a(".inline-edit-categories",c).html(d),a(".inline-edit-tags",c).html(e),a(".inline-edit-fields",c).html(b);if((typeof quicktags!=="undefined")&&(typeof mla.settings.quickTagsInit!=="undefined")){for(g in mla.settings.quickTagsInit){quicktags(mla.settings.quickTagsInit[g]);if(mla.settings.quickTagsInit[g]["active"]){window.wpActiveEditor=g}}}if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#bulk-edit-fields-div")}mla.utility.attachSearch("#bulk-edit-fields-div");a("#bulk-edit-set-parent",c).on("click",function(){return mla.inlineEditAttachment.bulkParentOpen()})}}return false},doReset:function(){var g=a("table.wp-list-table tr.inline-editor").attr("id"),d=a("table.wp-list-table #bulk-edit"),c=a("#inlineedit #blank-bulk-edit"),b=a(".inline-edit-categories",c).html(),f=a(".inline-edit-tags",c).html(),e=a(".inline-edit-fields",c).html();if(g){if(mla.settings.useSpinnerClass){a("table.wp-list-table .inline-edit-save .spinner").removeClass("is-active")}else{a("table.wp-list-table .inline-edit-save .spinner").hide()}if("bulk-edit"==g){a(".inline-edit-categories",d).html(b),a(".inline-edit-tags",d).html(f),a(".inline-edit-fields",d).html(e);if((typeof quicktags!=="undefined")&&(typeof mla.settings.quickTagsInit!=="undefined")){for(g in mla.settings.quickTagsInit){quicktags(mla.settings.quickTagsInit[g]);if(mla.settings.quickTagsInit[g]["active"]){window.wpActiveEditor=g}}}if(typeof mla.addTerm!=="undefined"){mla.addTerm.init("#bulk-edit-fields-div")}mla.utility.attachSearch("#bulk-edit-fields-div");a("#bulk-edit-set-parent",d).on("click",function(){return mla.inlineEditAttachment.bulkParentOpen()})}}return false},revert:function(){var b=a("table.wp-list-table tr.inline-editor").attr("id");if(b){if(mla.settings.useSpinnerClass){a("table.wp-list-table .inline-edit-save .spinner").removeClass("is-active")}else{a("table.wp-list-table .inline-edit-save .spinner").hide()}if("bulk-edit"==b){if(mla.settings.useSpinnerClass){a("table.wp-list-table #bulk-edit").removeClass("inline-editor").hide().siblings("tr.hidden").remove()}else{a("table.wp-list-table #bulk-edit").removeClass("inline-editor").hide()}a("#bulk-titles").html("");a("#inlineedit").append(a("#bulk-edit"))}else{if("bulk-progress"==b){a("table.wp-list-table #bulk-progress").removeClass("inline-editor").hide();a("#bulk-progress-waiting").html("");a("#inlineedit").append(a("#bulk-progress"))}else{if(mla.settings.useSpinnerClass){a("#"+b).siblings("tr.hidden").addBack().remove()}else{a("#"+b).remove()}b=b.substr(b.lastIndexOf("-")+1);a(this.what+b).show()}}}a("#bulk-edit #ajax-response").attr("id","bulkrow-ajax-response").empty();a("#default-ajax-response").attr("id","ajax-response");return false}};a(document).ready(function(){mla.inlineEditAttachment.init()})})(jQuery);
js/mla-media-modal-scripts.js CHANGED
@@ -1373,6 +1373,7 @@ console.log( 'listening to controller events' );
1373
  */
1374
  if ( mlaModal.settings.enableDetailsCategory || mlaModal.settings.enableDetailsTag ) {
1375
  wp.media.view.AttachmentCompat = wp.media.view.AttachmentCompat.extend({
 
1376
  initialize: function() {
1377
  // Call the base method in the super class
1378
  //wp.media.view.AttachmentCompat.__super__.initialize.apply( this, arguments );
@@ -1382,6 +1383,15 @@ console.log( 'listening to controller events' );
1382
  this.on( 'ready', function() {
1383
  mlaModal.utility.hookCompatTaxonomies( this.model.get('id'), this.el );
1384
  });
 
 
 
 
 
 
 
 
 
1385
  }
1386
  });
1387
  }
1373
  */
1374
  if ( mlaModal.settings.enableDetailsCategory || mlaModal.settings.enableDetailsTag ) {
1375
  wp.media.view.AttachmentCompat = wp.media.view.AttachmentCompat.extend({
1376
+ /* Removed in MLA 2.99 to resolve "how to fix some att. categories bugs with ACF field" * /
1377
  initialize: function() {
1378
  // Call the base method in the super class
1379
  //wp.media.view.AttachmentCompat.__super__.initialize.apply( this, arguments );
1383
  this.on( 'ready', function() {
1384
  mlaModal.utility.hookCompatTaxonomies( this.model.get('id'), this.el );
1385
  });
1386
+ }, // */
1387
+
1388
+ render: function() {
1389
+ // Call the base method in the super class
1390
+ //wp.media.view.AttachmentCompat.__super__.initialize.apply( this, arguments );
1391
+ mlaAttachmentCompat.prototype.render.apply( this, arguments );
1392
+
1393
+ mlaModal.utility.hookCompatTaxonomies( this.model.get('id'), this.el );
1394
+ return this;
1395
  }
1396
  });
1397
  }
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(d){var c=wp.media.view.AttachmentsBrowser,b=wp.media.view.AttachmentCompat,a=wp.media.model.Selection;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){if(false===mlaModal.settings.enableMediaGrid){return}d("body").addClass("mla-media-grid")}if("modal"===mlaModal.settings.screen){if(false===mlaModal.settings.enableMediaModal){return}d("body").addClass("mla-media-modal")}mlaModal.settings.pagenow=typeof pagenow==="undefined"?"unknown":pagenow;if(mlaModal.settings.pagenow==="toolset_page_views-editor"){return}mlaModal.utility.originalMediaAjax=wp.media.ajax;wp.media.ajax=function(k,g){var j=mlaModal.settings.state,i,f,h,e,l;if(_.isObject(k)){g=k}else{g=g||{};g.data=_.extend(g.data||{},{action:k})}if("query-attachments"==g.data.action){i=g.data.query;f=typeof i.s;if("object"==f){h=i.s}else{if("string"==f){h={mla_search_value:i.s}}else{h={mla_search_value:""}}}if("undefined"!=typeof i.post_mime_type){mlaModal.settings.query[j].filterMime=i.post_mime_type}else{mlaModal.settings.query[j].filterMime="all"}if("undefined"!=typeof h.mla_filter_month){mlaModal.settings.query[j].filterMonth=h.mla_filter_month}else{if("undefined"!=typeof i.year){mlaModal.settings.query[j].filterMonth=(100*i.year)+(1*i.monthnum)}else{}}if("undefined"!=typeof h.mla_filter_term){mlaModal.settings.query[j].filterTerm=h.mla_filter_term}if("undefined"!=typeof h.mla_search_value){mlaModal.settings.query[j].searchValue=h.mla_search_value}e={mla_filter_month:mlaModal.settings.query[j].filterMonth,mla_filter_term:mlaModal.settings.query[j].filterTerm,mla_terms_search:mlaModal.settings.query[j].termsSearch,mla_search_clicks:mlaModal.settings.query[j].searchClicks,mla_search_value:mlaModal.settings.query[j].searchValue,mla_search_fields:mlaModal.settings.query[j].searchFields,mla_search_connector:mlaModal.settings.query[j].searchConnector};mlaModal.settings.query[j].termsSearch="";d("#mla-terms-search-input").html("").val("");g.data.query.s=e;if(d(document.activeElement).hasClass("acf-button")){l=d(document.activeElement).parentsUntil("div.acf-fields");if(l.length){g.data.query._acfuploader=d(l[l.length-1]).attr("data-key")}}}return mlaModal.utility.originalMediaAjax.call(this,g)};if(mlaModal.settings.enableMimeTypes){wp.media.view.AttachmentFilters.Mla=wp.media.view.AttachmentFilters.extend({createFilters:function(){var f=this.controller._state,e={};_.each(mlaModal.settings.allMimeTypes||{},function(h,g){if(("grid"===mlaModal.settings.screen)||("trash"!==g)){e[g]={text:h,props:{type:g,uploadedTo:null,orderby:"date",order:"DESC"}}}});e.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){e.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=e;if("undefined"===typeof e[mlaModal.settings.query[f].filterMime]){mlaModal.settings.query[f].filterMime="all"}if(mlaModal.settings.query[f].filterMime!="all"){this.model.set(e[mlaModal.settings.query[f].filterMime].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMime,f=e.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m===(_.isUndefined(f[l])?null:f[l])});if(i){return g=k}});this.$el.val(g)},change:function(){var f=d(this.el).closest("div.media-toolbar"),e=this.filters[this.el.value];if(e){this.model.set(e.props,{silent:true});d("#mla-search-submit",f).trigger("click")}}});wp.media.view.AttachmentFilters.MlaUploaded=wp.media.view.AttachmentFilters.extend({createFilters:function(){var f=this.model.get("type"),e=wp.media.view.settings.mimeTypes,i,h=this.controller._state,g={};if(e&&f){i=e[f]}_.each(mlaModal.settings.uploadMimeTypes||{},function(k,j){if(("grid"===mlaModal.settings.screen)||("trash"!==j)){g[j]={text:k,props:{type:j,uploadedTo:null,orderby:"date",order:"DESC"}}}});g.all={text:i||wp.media.view.l10n.allMediaItems,props:{uploadedTo:null,orderby:"date",order:"DESC"},priority:10};g.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};g.unattached={text:wp.media.view.l10n.unattached,props:{uploadedTo:0,orderby:"menuOrder",order:"ASC"},priority:50};this.filters=g;if("undefined"===typeof g[mlaModal.settings.query[h].filterUploaded]){mlaModal.settings.query[h].filterUploaded="all"}if(mlaModal.settings.query[h].filterUploaded!="all"){this.model.set(g[mlaModal.settings.query[h].filterUploaded].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMime,f=e.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m===(_.isUndefined(f[l])?null:f[l])});if(i){return g=k}});this.$el.val(g)},change:function(){var f=d(this.el).closest("div.media-toolbar"),e=this.filters[this.el.value];if(e){this.model.set(e.props,{silent:true});d("#mla-search-submit",f).trigger("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 f=this.controller._state,e={};_.each(mlaModal.settings.months||{},function(h,g){e[g]={text:h,props:{s:{mla_filter_month:g}}}});this.filters=e;if("undefined"===typeof e[mlaModal.settings.query[f].filterMonth]){mlaModal.settings.query[f].filterMonth=0}if(mlaModal.settings.query[f].filterMonth>0){this.model.set(e[mlaModal.settings.query[f].filterMonth].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMonth,f=e.toJSON();if(_.isUndefined(f.s)){f.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}if(_.isUndefined(f.s.mla_filter_month)){f.s.mla_filter_month=mlaModal.settings.query[h].filterMonth}else{mlaModal.settings.query[h].filterMonth=f.s.mla_filter_month}_.find(this.filters,function(j,k){var i=_.all(j.props,function(l){return l.mla_filter_month==mlaModal.settings.query[h].filterMonth});if(i){return g=k}});this.$el.val(g)},change:function(){var e=this.filters[this.el.value],f;if(e){f={s:{mla_filter_month:e.props.s.mla_filter_month}};this.model.set(f)}}})}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 h=this.controller._state,e,f,g={};_.each(mlaModal.settings.termsText||{},function(j,i){if(mlaModal.settings.termsCustom){f=mlaModal.settings.termsValue[i]}else{f=parseInt(mlaModal.settings.termsValue[i])}g[i]={text:j,props:{s:{mla_filter_term:f}}}});this.filters=g;e=_.indexOf(mlaModal.settings.termsValue,mlaModal.settings.query[h].filterTerm);if(e>0){this.model.set(g[e].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterTerm,f=e.toJSON();if(_.isUndefined(f.s)){f.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}if(_.isUndefined(f.s.mla_filter_term)){f.s.mla_filter_term=mlaModal.settings.query[h].filterTerm}else{mlaModal.settings.query[h].filterTerm=f.s.mla_filter_term}_.find(this.filters,function(j,k){var i=_.all(j.props,function(l){return l.mla_filter_term==mlaModal.settings.query[h].filterTerm});if(i){return g=k}});this.$el.val(g)},change:function(){var e=this.filters[this.el.value],f;if(e){f={s:{mla_filter_term:e.props.s.mla_filter_term}};this.model.set(f)}}})}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(f){var e=d(this.el).closest("div.media-toolbar");if(("click"==f.type)&&("mla_terms_search"===f.target.name)){mlaTaxonomy.termsSearch.open();d("#mla-terms-search-form").off("submit");d("#mla-terms-search-form").submit(function(j){var g,i,h={phrases:"",taxonomies:[]};j.preventDefault();g=d("#mla-terms-search-form").serializeArray();for(i=0;i<g.length;i++){switch(g[i].name){case"mla_terms_search[phrases]":h.phrases=g[i].value;break;case"mla_terms_search[radio_phrases]":h.radio_phrases=g[i].value;break;case"mla_terms_search[radio_terms]":h.radio_terms=g[i].value;break;case"mla_terms_search[taxonomies][]":h.taxonomies[h.taxonomies.length]=g[i].value;break}}mlaModal.settings.query[mlaModal.settings.state].termsSearch=h;d("#mla-search-submit",e).trigger("click");return false});d("#mla-terms-search-input").on("keypress",function(g){if(13==g.which){g.preventDefault();d("#mla-terms-search-submit").trigger("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 e=this.controller._state;if("undefined"===typeof mlaModal.settings.query[e]){mlaModal.settings.query[e]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[e].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}},render:function(){var f=this.controller._state,e=_.extend(mlaModal.strings,mlaModal.settings.query[f]);searchValues={mla_filter_month:mlaModal.settings.query[f].filterMonth,mla_filter_term:mlaModal.settings.query[f].filterTerm,mla_terms_search:mlaModal.settings.query[f].termsSearch,mla_search_clicks:mlaModal.settings.query[f].searchClicks++,mla_search_value:mlaModal.settings.query[f].searchValue,mla_search_fields:mlaModal.settings.query[f].searchFields,mla_search_connector:mlaModal.settings.query[f].searchConnector};this.model.set({s:searchValues});this.$el.html(this.template(e));return this},search:function(g){var h=this.controller._state,e,f;if(("input"==g.type)&&("s[mla_search_value]"==g.target.name)){mlaModal.settings.query[h].searchValue=g.target.value;return}if(("click"==g.type)&&("mla_search_submit"!=g.target.name)){return}switch(g.target.name){case"s[mla_search_value]":mlaModal.settings.query[h].searchValue=g.target.value;break;case"mla_search_submit":e={mla_filter_month:mlaModal.settings.query[h].filterMonth,mla_filter_term:mlaModal.settings.query[h].filterTerm,mla_terms_search:mlaModal.settings.query[h].termsSearch,mla_search_clicks:mlaModal.settings.query[h].searchClicks++,mla_search_value:mlaModal.settings.query[h].searchValue,mla_search_fields:mlaModal.settings.query[h].searchFields,mla_search_connector:mlaModal.settings.query[h].searchConnector};this.model.set({s:e});break;case"s[mla_search_connector]":mlaModal.settings.query[h].searchConnector=g.target.value;break;case"s[mla_search_title]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("title");if(-1==f){mlaModal.settings.query[h].searchFields.push("title")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_name]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("name");if(-1==f){mlaModal.settings.query[h].searchFields.push("name")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_alt_text]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("alt-text");if(-1==f){mlaModal.settings.query[h].searchFields.push("alt-text")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_excerpt]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("excerpt");if(-1==f){mlaModal.settings.query[h].searchFields.push("excerpt")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_content]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("content");if(-1==f){mlaModal.settings.query[h].searchFields.push("content")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_file]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("file");if(-1==f){mlaModal.settings.query[h].searchFields.push("file")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_terms]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("terms");if(-1==f){mlaModal.settings.query[h].searchFields.push("terms")}else{mlaModal.settings.query[h].searchFields.splice(f,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 f=this.controller._state,e={mla_filter_month:mlaModal.settings.query[f].filterMonth,mla_filter_term:mlaModal.settings.query[f].filterTerm,mla_terms_search:mlaModal.settings.query[f].termsSearch,mla_search_clicks:mlaModal.settings.query[f].searchClicks++,mla_search_value:mlaModal.settings.query[f].searchValue,mla_search_fields:mlaModal.settings.query[f].searchFields,mla_search_connector:mlaModal.settings.query[f].searchConnector};this.model.set({s:e})}})}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({initialize:function(){c.prototype.initialize.apply(this,arguments);if("undefined"===typeof window.eml){if("grid"===mlaModal.settings.screen){d("body").addClass("mla-media-grid")}else{d("body").addClass("mla-media-modal")}mlaModal.settings.oldHeight=0;this.$window=d(window);if("object"===typeof this.attachmentsWrapper){this.on("ready",this.adjustBrowser58,this);this.$window.on("resize",_.debounce(_.bind(this.adjustBrowser58,this),15))}else{if("object"===typeof this.attachments){this.on("ready",this.adjustBrowser57,this);this.$window.on("resize",_.debounce(_.bind(this.adjustBrowser57,this),15))}}}},adjustBrowser58:function(){var i=this.attachmentsWrapper,f=this.toolbar,h,e,g;e=f.primary.$el.height();g=f.secondary.$el.height();if(e>g){h=e}else{h=g}if((0<h)&&(h!==mlaModal.settings.oldHeight)){i.$el.css("top",h+10+"px");mlaModal.settings.oldHeight=h}},adjustBrowser57:function(){var f=this.attachments,g=this.toolbar,i,e,h;e=g.primary.$el.height();h=g.secondary.$el.height();if(e>h){i=e}else{i=h}if((0<i)&&(i!==mlaModal.settings.oldHeight)){f.$el.css("top",i+10+"px");mlaModal.settings.oldHeight=i}},createToolbar:function(){var e,f=this.controller._state;mlaModal.settings.state=f;mlaModal.settings.$el=this.controller.$el;if("undefined"===typeof mlaModal.settings.query[f]){mlaModal.settings.query[f]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[f].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}c.prototype.createToolbar.apply(this,arguments);mlaModal.utility.mlaAttachmentsBrowser=this;e=this.options.filters;d(".media-attachments-filter-heading",this.$el).css("display","none");if(("all"===e)&&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(("uploaded"===e)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.MlaUploaded({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.controller.on("content:activate",this.hideDefaultSearch);this.controller.on("edit:activate",this.hideDefaultSearch);this.controller.on("router:render",this.hideDefaultSearch);this.controller.on("uploader:ready",this.hideDefaultSearch);this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:-40}).render())}else{this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:70}).render())}}},hideDefaultSearch:function(){var e=d("#media-search-input",mlaModal.settings.$el),f=d(".media-search-input-label",mlaModal.settings.$el);if(0===e.length){e=d("div.media-toolbar-primary > input.search",mlaModal.settings.$el)}e.hide();f.hide()},updateFilters:function(e,f){var g={};if(this.options.search&&mlaModal.settings.enableTermsDropdown&&mlaModal.settings.termsTaxonomy==e){g=mlaModal.utility.parseTermsOptions(f);mlaModal.settings.termsClass=g.termsClass;mlaModal.settings.termsText=g.termsText;mlaModal.settings.termsValue=g.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(k){var j={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]]},g=2,e,f,i=/\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,h=[];if("object"===typeof k){g=mlaModal.settings.termsValue.length;for(e=2;e<g;e++){h[e]={termsClass:mlaModal.settings.termsClass[e],termsText:mlaModal.settings.termsText[e],termsValue:mlaModal.settings.termsValue[e]};if("undefined"!==typeof k[mlaModal.settings.termsValue[e]]){delete k[mlaModal.settings.termsValue[e]]}}for(f in k){h[e++]={termsClass:"level-0",termsText:k[f],termsValue:f.toString()}}if(g===e){return{termsClass:mlaModal.settings.termsClass,termsText:mlaModal.settings.termsText,termsValue:mlaModal.settings.termsValue}}h.sort(function(m,l){if(m.termsText>l.termsText){return 1}else{if(m.termsText<l.termsText){return -1}else{return 0}}});e=2;for(f in h){j.termsClass[e]=h[f].termsClass;j.termsText[e]=h[f].termsText;j.termsValue[e++]=h[f].termsValue}return j}h=i.exec(k);while(null!==(h=i.exec(k))){j.termsClass[g]=h[3];j.termsValue[g]=("undefined"===typeof h[6])?h[9]:h[7];j.termsText[g++]=h[11].replace("&nbsp;",mlaModal.settings.termsIndent)}return j};mlaModal.utility.arrayCleanup=function(g){var f=[],e=("string"===typeof g);if(e){g=g.split(mlaModal.settings.comma)}jQuery.each(g,function(h,i){i=jQuery.trim(i);if(i&&jQuery.inArray(i,f)==-1){f.push(i)}});f.sort();if(e){f=f.join(mlaModal.settings.comma)}return f};mlaModal.utility.parseTaxonomyId=function(f){var e=f.split("-");e.shift();e.shift();return e.join("-")};mlaModal.tagBox={cleanTags:function(f){var e=mlaModal.settings.comma;if(","!==e){f=f.replace(new RegExp(e,"g"),",")}f=f.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==e){f=f.replace(/,/g,e)}return f},parseTags:function(h){var l=h.id,f=l.split("-check-num-")[1],i=d(h).closest(".tagsdiv"),k=i.find(".the-tags"),e=mlaModal.settings.comma,g=k.val().split(e),j=[];delete g[f];d.each(g,function(m,n){n=d.trim(n);if(n){j.push(n)}});k.val(this.cleanTags(j.join(e)));this.quickClicks(i);return false},quickClicks:function(g){var j=d(".the-tags",g),h=d(".tagchecklist",g),i=d(g).attr("id"),e,f;if(!j.length){return}f=j.prop("disabled");e=j.val().split(mlaModal.settings.comma);h.empty();d.each(e,function(m,n){var l,k;n=d.trim(n);if(!n){return}if(mlaModal.settings.generateTagUl){l=d("<li />").text(n)}else{l=d("<span />").text(n)}if(!f){if(mlaModal.settings.generateTagButtons){k=d('<button class="ntdelbutton" id="'+i+"-check-num-"+m+'" type="button"><span class="remove-tag-icon" aria-hidden="true"></span><span class="screen-reader-text">'+mlaModal.settings.removeTerm+": "+n+"</span></button>")}else{k=d('<a id="'+i+"-check-num-"+m+'" class="ntdelbutton">X</a>')}k.on("click",function(){mlaModal.tagBox.parseTags(this)});l.prepend("&nbsp;").prepend(k)}h.append(l)})},flushTags:function(k,h,g){var m,e,i,n=d(".the-tags",k),j=d("input.newtag",k),l=mlaModal.settings.comma;h=h||false;i=h?d(h).text():j.val();m=n.val();e=m?m+l+i:i;e=mlaModal.utility.arrayCleanup(this.cleanTags(e));n.val(e);this.quickClicks(k);if(!h){j.val("")}if("undefined"==typeof(g)){j.focus()}return false},getCloud:function(f,e){d.post(ajaxurl,{action:"get-tagcloud",tax:e},function(h,g){if(0===h||"success"!=g){h=wpAjax.broken}h=d('<p id="tagcloud-'+e+'" class="the-tagcloud">'+h+"</p>");d("a",h).on("click",function(){mlaModal.tagBox.flushTags(d(this).closest(".mla-taxonomy-field").children(".tagsdiv"),this);return false});d("#"+f).after(h)})},init:function(i,e,g){var h,f;h=d("#mla-taxonomy-"+e,g);f=d("div.ajaxtag",h);mlaModal.tagBox.quickClicks(h);d("input.tagadd",f).on("click",function(){mlaModal.tagBox.flushTags(d(this).closest(".tagsdiv"))});d("input.newtag",f).on("keyup",function(j){if(13==j.which){mlaModal.tagBox.flushTags(h);return false}}).on("keypress",function(j){if(13==j.which){j.preventDefault();return false}}).each(function(){d(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+e,{delay:500,resultsClass:"mla_ac_results",selectClass:"mla_ac_over",matchClass:"mla_ac_match",minchars:2,multiple:true,multipleSep:mlaModal.settings.comma+" "})});h.siblings(":first").on("click",function(){mlaModal.tagBox.getCloud(d("a",this).attr("id"),e);d("a",this).unbind().on("click",function(){d(this).siblings(".the-tagcloud").toggle();return false});return false});d(".compat-field-"+e+" td",g).on("mouseleave",function(){var m,k=this,j=mlaModal.utility.arrayCleanup(d(".server-tags",k).val()),l=mlaModal.utility.arrayCleanup(d(".the-tags",k).val());if(j===l){return}d(k).css("opacity","0.5");m={id:i};m[e]=l;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,m).done(function(o){var p,n,q;for(n in o){if("object"===typeof(o[n]["object-terms"])){if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(n,o[n]["object-terms"])}delete o[n]["object-terms"]}for(q in o[n]){d("#"+q,k).replaceWith(o[n][q])}p=d("#mla-taxonomy-"+n,k);mlaModal.tagBox.quickClicks(p)}d(k).css("opacity","1.0")})});h.on("change",function(j){j.stopPropagation();return false});d(".the-tags, .server-tags .newtag",h).on("change",function(j){j.stopPropagation();return false})}};if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({initialize:function(){b.prototype.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(){a.prototype.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(e){mlaModal.cid=e.cid});this.on("change:uploading",function(){mlaModal.uploading=true});this.on("change",function(e){var f=false,g;if(mlaModal.uploading&&mlaModal.cid===e.cid){mlaModal.uploading=false;f=true}else{if(false===e.attributes.uploading){g=_.clone(e.changed);delete g.title;delete g.caption;delete g.alt;delete g.description;if(!_.isEmpty(g)){f=true}}}if(true===f){mlaModal.utility.hookCompatTaxonomies(e.get("id"),mlaModal.settings.$el)}})}})}mlaModal.utility.hookCompatTaxonomies=function(h,f){var e,g=null;d(".mla-taxonomy-field .categorydiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(e)){d(".compat-field-"+e+" th",f).on("click",{id:h,currentTaxonomy:e,el:f},function(i){mlaModal.utility.fillCompatTaxonomies(i.data)});d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).show()}else{d(this).remove()}});if(null===g){g=e}}else{d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).remove()}})}});d(".mla-taxonomy-field .tagsdiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(e)){d(".compat-field-"+e+" th",f).on("click",{id:h,currentTaxonomy:e,el:f},function(i){mlaModal.utility.fillCompatTaxonomies(i.data)});d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).show()}else{d(this).remove()}});if(null===g){g=e}}else{d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).remove()}})}});if(mlaModal.settings.enableTermsAutofill&&null!==g){d(".compat-field-"+g+" th",f).trigger("click")}};mlaModal.utility.fillCompatTaxonomies=function(i){var f=i.el,h=[],e,g;d(".mla-taxonomy-field .categorydiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));h[h.length]=e;g=".compat-field-"+e;if("undefined"===typeof(mlaModal.initialHTML[e])){mlaModal.initialHTML[e]=d(g,f).html()}else{d(g,f).html(mlaModal.initialHTML[e])}d(g+" .categorydiv",f).html(mlaModal.strings.loadingText)});d(".mla-taxonomy-field .tagsdiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));h[h.length]=e;g=".compat-field-"+e;if("undefined"===typeof(mlaModal.initialHTML[e])){mlaModal.initialHTML[e]=d(g,f).html()}else{d(g,f).html(mlaModal.initialHTML[e])}d(g+" .tagsdiv",f).html(mlaModal.strings.loadingText)});if(h.length){wp.media.post(mlaModal.settings.ajaxFillCompatAction,{id:i.id,query:h}).done(function(k){var j,l;for(j in k){l=".compat-field-"+j;d(l,f).html(k[j])}mlaModal.utility.supportCompatTaxonomies(i);d(".compat-field-"+i.currentTaxonomy+" td",f).show()})}};mlaModal.utility.supportCompatTaxonomies=function(g){var f=g.id,e=g.el;if(mlaModal.settings.enableDetailsCategory){d(".mla-taxonomy-field .categorydiv",e).each(function(){var j=d(this),h,k,i,n,l,p,o,m;i=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));n=i+"_tab";l="#mla-"+i;p="#mla-new-"+i;o="#mla-search-"+i;m="#mla-attachments-"+f+"-"+i;if(i=="category"){n="cats"}j.find(".category-tabs").show();d(".compat-field-"+i+" th",e).on("click",function(){d(this).siblings("td").slideToggle()});j.on("mouseleave",function(){var t,q,s=[],r=j.find(l+"-checklist input:checked");r.each(function(){s[s.length]=d(this).val()});s.sort(function(v,u){return v-u});s=s.join(",");q=j.siblings(m).val();if(q===s){return}j.siblings(m).val(s);j.prop("disabled",true);t={id:f};t[i]=s;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,t).done(function(v){var u,w;for(u in v){for(w in v[u]){j.find("#"+w).html(v[u][w])}}j.find(o).val("");j.find(l+"-searcher").addClass("mla-hidden-children");j.prop("disabled",false)})});j.on('change input[type="checkbox"]',function(q){q.stopPropagation();return false});j.find(l+"-tabs a").on("click",function(){var q=d(this).attr("href");d(this).parent().addClass("tabs").siblings("li").removeClass("tabs");j.find(l+"-tabs").siblings(".tabs-panel").hide();j.find(q).show();d(this).focus();if("#mla-"+i+"-all"==q){deleteUserSetting(n)}else{setUserSetting(n,"pop")}return false});if(getUserSetting(n)){j.find(l+'-tabs a[href="#mla-'+i+'-pop"]').trigger("click")}j.find(l+"-add-toggle").on("click",function(){j.find(l+"-searcher").addClass("mla-hidden-children");j.find(l+"-adder").toggleClass("mla-hidden-children");j.find(l+'-tabs a[href="#mla-'+i+'-all"]').trigger("click");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();if(false===j.find(l+"-adder").hasClass("mla-hidden-children")){j.find(p).val("").removeClass("form-input-tip");j.find(p).focus()}return false});j.find(p).on("keypress",function(q){if(13===q.keyCode){q.preventDefault();j.find(l+"-add-submit").trigger("click")}});j.find(l+"-add-submit").on("click",function(){j.find(p).focus()});h=function(q){if(!j.find(p).val()){return false}q.data+="&"+j.find(l+"-checklist :checked").serialize();j.prop("disabled",true);return q};k=function(v,u){var t,q=j.find("#new"+i+"_parent");j.prop("disabled",false);if("undefined"!=u.parsed.responses[0]&&(t=u.parsed.responses[0].supplemental.newcat_parent)){q.before(t);q.remove();if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(i,t)}}};j.find(l+"-checklist").wpList({alt:"",response:"mla-"+i+"-ajax-response",addBefore:h,addAfter:k});j.find(l+"-checklist, "+l+"-checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var q=d(this),s=q.is(":checked"),r=q.val();if(r&&q.parents("#mla-taxonomy-"+i).length){d("#in-"+i+"-"+r+", #in-popular-"+i+"-"+r,"#mla-taxonomy-"+i).prop("checked",s)}});d.extend(d.expr.pseudos||d.expr[":"],{matchTerms:function(s,r,q,t){return(s.textContent||s.innerText||"").toLowerCase().indexOf((q[3]||"").toLowerCase())>=0}});j.find(o).on("keypress",function(q){if(13===q.keyCode){q.preventDefault();j.find(o).val("");j.find(l+"-searcher").addClass("mla-hidden-children");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();return}});j.find(o).on("keyup",function(s){var u,t,v,r,q;if(13===s.keyCode){s.preventDefault();j.find(l+"-search-toggle").focus();return}u=j.find(o).val();t=j.find(l+"-checklist li");v=j.find(l+"-checklist-pop li");if(0<u.length){t.hide();v.hide()}else{t.show();v.show()}r=j.find(l+"-checklist label:matchTerms('"+u+"')");r.closest("li").find("li").andSelf().show();r.parents(l+"-checklist li").show();q=j.find(l+"-checklist-pop label:matchTerms('"+u+"')");q.closest("li").find("li").andSelf().show();q.parents(l+"-checklist li").show()});j.find(l+"-search-toggle").on("click",function(){j.find(l+"-adder ").addClass("mla-hidden-children");j.find(l+"-searcher").toggleClass("mla-hidden-children");j.find(l+'-tabs a[href="#mla-'+i+'-all"]').trigger("click");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();if(false===j.find(l+"-searcher").hasClass("mla-hidden-children")){j.find(o).val("").removeClass("form-input-tip");j.find(o).focus()}return false})})}if(mlaModal.settings.enableDetailsTag){d(".mla-taxonomy-field .tagsdiv",e).each(function(){var h=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));d(".compat-field-"+h+" th",e).on("click",function(){d(this).siblings("td").slideToggle()});mlaModal.tagBox.init(f,h,e)})}}}(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(d){var c=wp.media.view.AttachmentsBrowser,b=wp.media.view.AttachmentCompat,a=wp.media.model.Selection;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){if(false===mlaModal.settings.enableMediaGrid){return}d("body").addClass("mla-media-grid")}if("modal"===mlaModal.settings.screen){if(false===mlaModal.settings.enableMediaModal){return}d("body").addClass("mla-media-modal")}mlaModal.settings.pagenow=typeof pagenow==="undefined"?"unknown":pagenow;if(mlaModal.settings.pagenow==="toolset_page_views-editor"){return}mlaModal.utility.originalMediaAjax=wp.media.ajax;wp.media.ajax=function(k,g){var j=mlaModal.settings.state,i,f,h,e,l;if(_.isObject(k)){g=k}else{g=g||{};g.data=_.extend(g.data||{},{action:k})}if("query-attachments"==g.data.action){i=g.data.query;f=typeof i.s;if("object"==f){h=i.s}else{if("string"==f){h={mla_search_value:i.s}}else{h={mla_search_value:""}}}if("undefined"!=typeof i.post_mime_type){mlaModal.settings.query[j].filterMime=i.post_mime_type}else{mlaModal.settings.query[j].filterMime="all"}if("undefined"!=typeof h.mla_filter_month){mlaModal.settings.query[j].filterMonth=h.mla_filter_month}else{if("undefined"!=typeof i.year){mlaModal.settings.query[j].filterMonth=(100*i.year)+(1*i.monthnum)}else{}}if("undefined"!=typeof h.mla_filter_term){mlaModal.settings.query[j].filterTerm=h.mla_filter_term}if("undefined"!=typeof h.mla_search_value){mlaModal.settings.query[j].searchValue=h.mla_search_value}e={mla_filter_month:mlaModal.settings.query[j].filterMonth,mla_filter_term:mlaModal.settings.query[j].filterTerm,mla_terms_search:mlaModal.settings.query[j].termsSearch,mla_search_clicks:mlaModal.settings.query[j].searchClicks,mla_search_value:mlaModal.settings.query[j].searchValue,mla_search_fields:mlaModal.settings.query[j].searchFields,mla_search_connector:mlaModal.settings.query[j].searchConnector};mlaModal.settings.query[j].termsSearch="";d("#mla-terms-search-input").html("").val("");g.data.query.s=e;if(d(document.activeElement).hasClass("acf-button")){l=d(document.activeElement).parentsUntil("div.acf-fields");if(l.length){g.data.query._acfuploader=d(l[l.length-1]).attr("data-key")}}}return mlaModal.utility.originalMediaAjax.call(this,g)};if(mlaModal.settings.enableMimeTypes){wp.media.view.AttachmentFilters.Mla=wp.media.view.AttachmentFilters.extend({createFilters:function(){var f=this.controller._state,e={};_.each(mlaModal.settings.allMimeTypes||{},function(h,g){if(("grid"===mlaModal.settings.screen)||("trash"!==g)){e[g]={text:h,props:{type:g,uploadedTo:null,orderby:"date",order:"DESC"}}}});e.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){e.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=e;if("undefined"===typeof e[mlaModal.settings.query[f].filterMime]){mlaModal.settings.query[f].filterMime="all"}if(mlaModal.settings.query[f].filterMime!="all"){this.model.set(e[mlaModal.settings.query[f].filterMime].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMime,f=e.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m===(_.isUndefined(f[l])?null:f[l])});if(i){return g=k}});this.$el.val(g)},change:function(){var f=d(this.el).closest("div.media-toolbar"),e=this.filters[this.el.value];if(e){this.model.set(e.props,{silent:true});d("#mla-search-submit",f).trigger("click")}}});wp.media.view.AttachmentFilters.MlaUploaded=wp.media.view.AttachmentFilters.extend({createFilters:function(){var f=this.model.get("type"),e=wp.media.view.settings.mimeTypes,i,h=this.controller._state,g={};if(e&&f){i=e[f]}_.each(mlaModal.settings.uploadMimeTypes||{},function(k,j){if(("grid"===mlaModal.settings.screen)||("trash"!==j)){g[j]={text:k,props:{type:j,uploadedTo:null,orderby:"date",order:"DESC"}}}});g.all={text:i||wp.media.view.l10n.allMediaItems,props:{uploadedTo:null,orderby:"date",order:"DESC"},priority:10};g.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};g.unattached={text:wp.media.view.l10n.unattached,props:{uploadedTo:0,orderby:"menuOrder",order:"ASC"},priority:50};this.filters=g;if("undefined"===typeof g[mlaModal.settings.query[h].filterUploaded]){mlaModal.settings.query[h].filterUploaded="all"}if(mlaModal.settings.query[h].filterUploaded!="all"){this.model.set(g[mlaModal.settings.query[h].filterUploaded].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMime,f=e.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m===(_.isUndefined(f[l])?null:f[l])});if(i){return g=k}});this.$el.val(g)},change:function(){var f=d(this.el).closest("div.media-toolbar"),e=this.filters[this.el.value];if(e){this.model.set(e.props,{silent:true});d("#mla-search-submit",f).trigger("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 f=this.controller._state,e={};_.each(mlaModal.settings.months||{},function(h,g){e[g]={text:h,props:{s:{mla_filter_month:g}}}});this.filters=e;if("undefined"===typeof e[mlaModal.settings.query[f].filterMonth]){mlaModal.settings.query[f].filterMonth=0}if(mlaModal.settings.query[f].filterMonth>0){this.model.set(e[mlaModal.settings.query[f].filterMonth].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMonth,f=e.toJSON();if(_.isUndefined(f.s)){f.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}if(_.isUndefined(f.s.mla_filter_month)){f.s.mla_filter_month=mlaModal.settings.query[h].filterMonth}else{mlaModal.settings.query[h].filterMonth=f.s.mla_filter_month}_.find(this.filters,function(j,k){var i=_.all(j.props,function(l){return l.mla_filter_month==mlaModal.settings.query[h].filterMonth});if(i){return g=k}});this.$el.val(g)},change:function(){var e=this.filters[this.el.value],f;if(e){f={s:{mla_filter_month:e.props.s.mla_filter_month}};this.model.set(f)}}})}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 h=this.controller._state,e,f,g={};_.each(mlaModal.settings.termsText||{},function(j,i){if(mlaModal.settings.termsCustom){f=mlaModal.settings.termsValue[i]}else{f=parseInt(mlaModal.settings.termsValue[i])}g[i]={text:j,props:{s:{mla_filter_term:f}}}});this.filters=g;e=_.indexOf(mlaModal.settings.termsValue,mlaModal.settings.query[h].filterTerm);if(e>0){this.model.set(g[e].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterTerm,f=e.toJSON();if(_.isUndefined(f.s)){f.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}if(_.isUndefined(f.s.mla_filter_term)){f.s.mla_filter_term=mlaModal.settings.query[h].filterTerm}else{mlaModal.settings.query[h].filterTerm=f.s.mla_filter_term}_.find(this.filters,function(j,k){var i=_.all(j.props,function(l){return l.mla_filter_term==mlaModal.settings.query[h].filterTerm});if(i){return g=k}});this.$el.val(g)},change:function(){var e=this.filters[this.el.value],f;if(e){f={s:{mla_filter_term:e.props.s.mla_filter_term}};this.model.set(f)}}})}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(f){var e=d(this.el).closest("div.media-toolbar");if(("click"==f.type)&&("mla_terms_search"===f.target.name)){mlaTaxonomy.termsSearch.open();d("#mla-terms-search-form").off("submit");d("#mla-terms-search-form").submit(function(j){var g,i,h={phrases:"",taxonomies:[]};j.preventDefault();g=d("#mla-terms-search-form").serializeArray();for(i=0;i<g.length;i++){switch(g[i].name){case"mla_terms_search[phrases]":h.phrases=g[i].value;break;case"mla_terms_search[radio_phrases]":h.radio_phrases=g[i].value;break;case"mla_terms_search[radio_terms]":h.radio_terms=g[i].value;break;case"mla_terms_search[taxonomies][]":h.taxonomies[h.taxonomies.length]=g[i].value;break}}mlaModal.settings.query[mlaModal.settings.state].termsSearch=h;d("#mla-search-submit",e).trigger("click");return false});d("#mla-terms-search-input").on("keypress",function(g){if(13==g.which){g.preventDefault();d("#mla-terms-search-submit").trigger("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 e=this.controller._state;if("undefined"===typeof mlaModal.settings.query[e]){mlaModal.settings.query[e]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[e].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}},render:function(){var f=this.controller._state,e=_.extend(mlaModal.strings,mlaModal.settings.query[f]);searchValues={mla_filter_month:mlaModal.settings.query[f].filterMonth,mla_filter_term:mlaModal.settings.query[f].filterTerm,mla_terms_search:mlaModal.settings.query[f].termsSearch,mla_search_clicks:mlaModal.settings.query[f].searchClicks++,mla_search_value:mlaModal.settings.query[f].searchValue,mla_search_fields:mlaModal.settings.query[f].searchFields,mla_search_connector:mlaModal.settings.query[f].searchConnector};this.model.set({s:searchValues});this.$el.html(this.template(e));return this},search:function(g){var h=this.controller._state,e,f;if(("input"==g.type)&&("s[mla_search_value]"==g.target.name)){mlaModal.settings.query[h].searchValue=g.target.value;return}if(("click"==g.type)&&("mla_search_submit"!=g.target.name)){return}switch(g.target.name){case"s[mla_search_value]":mlaModal.settings.query[h].searchValue=g.target.value;break;case"mla_search_submit":e={mla_filter_month:mlaModal.settings.query[h].filterMonth,mla_filter_term:mlaModal.settings.query[h].filterTerm,mla_terms_search:mlaModal.settings.query[h].termsSearch,mla_search_clicks:mlaModal.settings.query[h].searchClicks++,mla_search_value:mlaModal.settings.query[h].searchValue,mla_search_fields:mlaModal.settings.query[h].searchFields,mla_search_connector:mlaModal.settings.query[h].searchConnector};this.model.set({s:e});break;case"s[mla_search_connector]":mlaModal.settings.query[h].searchConnector=g.target.value;break;case"s[mla_search_title]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("title");if(-1==f){mlaModal.settings.query[h].searchFields.push("title")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_name]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("name");if(-1==f){mlaModal.settings.query[h].searchFields.push("name")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_alt_text]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("alt-text");if(-1==f){mlaModal.settings.query[h].searchFields.push("alt-text")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_excerpt]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("excerpt");if(-1==f){mlaModal.settings.query[h].searchFields.push("excerpt")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_content]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("content");if(-1==f){mlaModal.settings.query[h].searchFields.push("content")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_file]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("file");if(-1==f){mlaModal.settings.query[h].searchFields.push("file")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_terms]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("terms");if(-1==f){mlaModal.settings.query[h].searchFields.push("terms")}else{mlaModal.settings.query[h].searchFields.splice(f,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 f=this.controller._state,e={mla_filter_month:mlaModal.settings.query[f].filterMonth,mla_filter_term:mlaModal.settings.query[f].filterTerm,mla_terms_search:mlaModal.settings.query[f].termsSearch,mla_search_clicks:mlaModal.settings.query[f].searchClicks++,mla_search_value:mlaModal.settings.query[f].searchValue,mla_search_fields:mlaModal.settings.query[f].searchFields,mla_search_connector:mlaModal.settings.query[f].searchConnector};this.model.set({s:e})}})}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({initialize:function(){c.prototype.initialize.apply(this,arguments);if("undefined"===typeof window.eml){if("grid"===mlaModal.settings.screen){d("body").addClass("mla-media-grid")}else{d("body").addClass("mla-media-modal")}mlaModal.settings.oldHeight=0;this.$window=d(window);if("object"===typeof this.attachmentsWrapper){this.on("ready",this.adjustBrowser58,this);this.$window.on("resize",_.debounce(_.bind(this.adjustBrowser58,this),15))}else{if("object"===typeof this.attachments){this.on("ready",this.adjustBrowser57,this);this.$window.on("resize",_.debounce(_.bind(this.adjustBrowser57,this),15))}}}},adjustBrowser58:function(){var i=this.attachmentsWrapper,f=this.toolbar,h,e,g;e=f.primary.$el.height();g=f.secondary.$el.height();if(e>g){h=e}else{h=g}if((0<h)&&(h!==mlaModal.settings.oldHeight)){i.$el.css("top",h+10+"px");mlaModal.settings.oldHeight=h}},adjustBrowser57:function(){var f=this.attachments,g=this.toolbar,i,e,h;e=g.primary.$el.height();h=g.secondary.$el.height();if(e>h){i=e}else{i=h}if((0<i)&&(i!==mlaModal.settings.oldHeight)){f.$el.css("top",i+10+"px");mlaModal.settings.oldHeight=i}},createToolbar:function(){var e,f=this.controller._state;mlaModal.settings.state=f;mlaModal.settings.$el=this.controller.$el;if("undefined"===typeof mlaModal.settings.query[f]){mlaModal.settings.query[f]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[f].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}c.prototype.createToolbar.apply(this,arguments);mlaModal.utility.mlaAttachmentsBrowser=this;e=this.options.filters;d(".media-attachments-filter-heading",this.$el).css("display","none");if(("all"===e)&&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(("uploaded"===e)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.MlaUploaded({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.controller.on("content:activate",this.hideDefaultSearch);this.controller.on("edit:activate",this.hideDefaultSearch);this.controller.on("router:render",this.hideDefaultSearch);this.controller.on("uploader:ready",this.hideDefaultSearch);this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:-40}).render())}else{this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:70}).render())}}},hideDefaultSearch:function(){var e=d("#media-search-input",mlaModal.settings.$el),f=d(".media-search-input-label",mlaModal.settings.$el);if(0===e.length){e=d("div.media-toolbar-primary > input.search",mlaModal.settings.$el)}e.hide();f.hide()},updateFilters:function(e,f){var g={};if(this.options.search&&mlaModal.settings.enableTermsDropdown&&mlaModal.settings.termsTaxonomy==e){g=mlaModal.utility.parseTermsOptions(f);mlaModal.settings.termsClass=g.termsClass;mlaModal.settings.termsText=g.termsText;mlaModal.settings.termsValue=g.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(k){var j={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]]},g=2,e,f,i=/\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,h=[];if("object"===typeof k){g=mlaModal.settings.termsValue.length;for(e=2;e<g;e++){h[e]={termsClass:mlaModal.settings.termsClass[e],termsText:mlaModal.settings.termsText[e],termsValue:mlaModal.settings.termsValue[e]};if("undefined"!==typeof k[mlaModal.settings.termsValue[e]]){delete k[mlaModal.settings.termsValue[e]]}}for(f in k){h[e++]={termsClass:"level-0",termsText:k[f],termsValue:f.toString()}}if(g===e){return{termsClass:mlaModal.settings.termsClass,termsText:mlaModal.settings.termsText,termsValue:mlaModal.settings.termsValue}}h.sort(function(m,l){if(m.termsText>l.termsText){return 1}else{if(m.termsText<l.termsText){return -1}else{return 0}}});e=2;for(f in h){j.termsClass[e]=h[f].termsClass;j.termsText[e]=h[f].termsText;j.termsValue[e++]=h[f].termsValue}return j}h=i.exec(k);while(null!==(h=i.exec(k))){j.termsClass[g]=h[3];j.termsValue[g]=("undefined"===typeof h[6])?h[9]:h[7];j.termsText[g++]=h[11].replace("&nbsp;",mlaModal.settings.termsIndent)}return j};mlaModal.utility.arrayCleanup=function(g){var f=[],e=("string"===typeof g);if(e){g=g.split(mlaModal.settings.comma)}jQuery.each(g,function(h,i){i=jQuery.trim(i);if(i&&jQuery.inArray(i,f)==-1){f.push(i)}});f.sort();if(e){f=f.join(mlaModal.settings.comma)}return f};mlaModal.utility.parseTaxonomyId=function(f){var e=f.split("-");e.shift();e.shift();return e.join("-")};mlaModal.tagBox={cleanTags:function(f){var e=mlaModal.settings.comma;if(","!==e){f=f.replace(new RegExp(e,"g"),",")}f=f.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==e){f=f.replace(/,/g,e)}return f},parseTags:function(h){var l=h.id,f=l.split("-check-num-")[1],i=d(h).closest(".tagsdiv"),k=i.find(".the-tags"),e=mlaModal.settings.comma,g=k.val().split(e),j=[];delete g[f];d.each(g,function(m,n){n=d.trim(n);if(n){j.push(n)}});k.val(this.cleanTags(j.join(e)));this.quickClicks(i);return false},quickClicks:function(g){var j=d(".the-tags",g),h=d(".tagchecklist",g),i=d(g).attr("id"),e,f;if(!j.length){return}f=j.prop("disabled");e=j.val().split(mlaModal.settings.comma);h.empty();d.each(e,function(m,n){var l,k;n=d.trim(n);if(!n){return}if(mlaModal.settings.generateTagUl){l=d("<li />").text(n)}else{l=d("<span />").text(n)}if(!f){if(mlaModal.settings.generateTagButtons){k=d('<button class="ntdelbutton" id="'+i+"-check-num-"+m+'" type="button"><span class="remove-tag-icon" aria-hidden="true"></span><span class="screen-reader-text">'+mlaModal.settings.removeTerm+": "+n+"</span></button>")}else{k=d('<a id="'+i+"-check-num-"+m+'" class="ntdelbutton">X</a>')}k.on("click",function(){mlaModal.tagBox.parseTags(this)});l.prepend("&nbsp;").prepend(k)}h.append(l)})},flushTags:function(k,h,g){var m,e,i,n=d(".the-tags",k),j=d("input.newtag",k),l=mlaModal.settings.comma;h=h||false;i=h?d(h).text():j.val();m=n.val();e=m?m+l+i:i;e=mlaModal.utility.arrayCleanup(this.cleanTags(e));n.val(e);this.quickClicks(k);if(!h){j.val("")}if("undefined"==typeof(g)){j.focus()}return false},getCloud:function(f,e){d.post(ajaxurl,{action:"get-tagcloud",tax:e},function(h,g){if(0===h||"success"!=g){h=wpAjax.broken}h=d('<p id="tagcloud-'+e+'" class="the-tagcloud">'+h+"</p>");d("a",h).on("click",function(){mlaModal.tagBox.flushTags(d(this).closest(".mla-taxonomy-field").children(".tagsdiv"),this);return false});d("#"+f).after(h)})},init:function(i,e,g){var h,f;h=d("#mla-taxonomy-"+e,g);f=d("div.ajaxtag",h);mlaModal.tagBox.quickClicks(h);d("input.tagadd",f).on("click",function(){mlaModal.tagBox.flushTags(d(this).closest(".tagsdiv"))});d("input.newtag",f).on("keyup",function(j){if(13==j.which){mlaModal.tagBox.flushTags(h);return false}}).on("keypress",function(j){if(13==j.which){j.preventDefault();return false}}).each(function(){d(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+e,{delay:500,resultsClass:"mla_ac_results",selectClass:"mla_ac_over",matchClass:"mla_ac_match",minchars:2,multiple:true,multipleSep:mlaModal.settings.comma+" "})});h.siblings(":first").on("click",function(){mlaModal.tagBox.getCloud(d("a",this).attr("id"),e);d("a",this).unbind().on("click",function(){d(this).siblings(".the-tagcloud").toggle();return false});return false});d(".compat-field-"+e+" td",g).on("mouseleave",function(){var m,k=this,j=mlaModal.utility.arrayCleanup(d(".server-tags",k).val()),l=mlaModal.utility.arrayCleanup(d(".the-tags",k).val());if(j===l){return}d(k).css("opacity","0.5");m={id:i};m[e]=l;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,m).done(function(o){var p,n,q;for(n in o){if("object"===typeof(o[n]["object-terms"])){if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(n,o[n]["object-terms"])}delete o[n]["object-terms"]}for(q in o[n]){d("#"+q,k).replaceWith(o[n][q])}p=d("#mla-taxonomy-"+n,k);mlaModal.tagBox.quickClicks(p)}d(k).css("opacity","1.0")})});h.on("change",function(j){j.stopPropagation();return false});d(".the-tags, .server-tags .newtag",h).on("change",function(j){j.stopPropagation();return false})}};if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({render:function(){b.prototype.render.apply(this,arguments);mlaModal.utility.hookCompatTaxonomies(this.model.get("id"),this.el);return this}})}if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.model.Selection=wp.media.model.Selection.extend({initialize:function(){a.prototype.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(e){mlaModal.cid=e.cid});this.on("change:uploading",function(){mlaModal.uploading=true});this.on("change",function(e){var f=false,g;if(mlaModal.uploading&&mlaModal.cid===e.cid){mlaModal.uploading=false;f=true}else{if(false===e.attributes.uploading){g=_.clone(e.changed);delete g.title;delete g.caption;delete g.alt;delete g.description;if(!_.isEmpty(g)){f=true}}}if(true===f){mlaModal.utility.hookCompatTaxonomies(e.get("id"),mlaModal.settings.$el)}})}})}mlaModal.utility.hookCompatTaxonomies=function(h,f){var e,g=null;d(".mla-taxonomy-field .categorydiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(e)){d(".compat-field-"+e+" th",f).on("click",{id:h,currentTaxonomy:e,el:f},function(i){mlaModal.utility.fillCompatTaxonomies(i.data)});d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).show()}else{d(this).remove()}});if(null===g){g=e}}else{d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).remove()}})}});d(".mla-taxonomy-field .tagsdiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(e)){d(".compat-field-"+e+" th",f).on("click",{id:h,currentTaxonomy:e,el:f},function(i){mlaModal.utility.fillCompatTaxonomies(i.data)});d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).show()}else{d(this).remove()}});if(null===g){g=e}}else{d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).remove()}})}});if(mlaModal.settings.enableTermsAutofill&&null!==g){d(".compat-field-"+g+" th",f).trigger("click")}};mlaModal.utility.fillCompatTaxonomies=function(i){var f=i.el,h=[],e,g;d(".mla-taxonomy-field .categorydiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));h[h.length]=e;g=".compat-field-"+e;if("undefined"===typeof(mlaModal.initialHTML[e])){mlaModal.initialHTML[e]=d(g,f).html()}else{d(g,f).html(mlaModal.initialHTML[e])}d(g+" .categorydiv",f).html(mlaModal.strings.loadingText)});d(".mla-taxonomy-field .tagsdiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));h[h.length]=e;g=".compat-field-"+e;if("undefined"===typeof(mlaModal.initialHTML[e])){mlaModal.initialHTML[e]=d(g,f).html()}else{d(g,f).html(mlaModal.initialHTML[e])}d(g+" .tagsdiv",f).html(mlaModal.strings.loadingText)});if(h.length){wp.media.post(mlaModal.settings.ajaxFillCompatAction,{id:i.id,query:h}).done(function(k){var j,l;for(j in k){l=".compat-field-"+j;d(l,f).html(k[j])}mlaModal.utility.supportCompatTaxonomies(i);d(".compat-field-"+i.currentTaxonomy+" td",f).show()})}};mlaModal.utility.supportCompatTaxonomies=function(g){var f=g.id,e=g.el;if(mlaModal.settings.enableDetailsCategory){d(".mla-taxonomy-field .categorydiv",e).each(function(){var j=d(this),h,k,i,n,l,p,o,m;i=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));n=i+"_tab";l="#mla-"+i;p="#mla-new-"+i;o="#mla-search-"+i;m="#mla-attachments-"+f+"-"+i;if(i=="category"){n="cats"}j.find(".category-tabs").show();d(".compat-field-"+i+" th",e).on("click",function(){d(this).siblings("td").slideToggle()});j.on("mouseleave",function(){var t,q,s=[],r=j.find(l+"-checklist input:checked");r.each(function(){s[s.length]=d(this).val()});s.sort(function(v,u){return v-u});s=s.join(",");q=j.siblings(m).val();if(q===s){return}j.siblings(m).val(s);j.prop("disabled",true);t={id:f};t[i]=s;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,t).done(function(v){var u,w;for(u in v){for(w in v[u]){j.find("#"+w).html(v[u][w])}}j.find(o).val("");j.find(l+"-searcher").addClass("mla-hidden-children");j.prop("disabled",false)})});j.on('change input[type="checkbox"]',function(q){q.stopPropagation();return false});j.find(l+"-tabs a").on("click",function(){var q=d(this).attr("href");d(this).parent().addClass("tabs").siblings("li").removeClass("tabs");j.find(l+"-tabs").siblings(".tabs-panel").hide();j.find(q).show();d(this).focus();if("#mla-"+i+"-all"==q){deleteUserSetting(n)}else{setUserSetting(n,"pop")}return false});if(getUserSetting(n)){j.find(l+'-tabs a[href="#mla-'+i+'-pop"]').trigger("click")}j.find(l+"-add-toggle").on("click",function(){j.find(l+"-searcher").addClass("mla-hidden-children");j.find(l+"-adder").toggleClass("mla-hidden-children");j.find(l+'-tabs a[href="#mla-'+i+'-all"]').trigger("click");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();if(false===j.find(l+"-adder").hasClass("mla-hidden-children")){j.find(p).val("").removeClass("form-input-tip");j.find(p).focus()}return false});j.find(p).on("keypress",function(q){if(13===q.keyCode){q.preventDefault();j.find(l+"-add-submit").trigger("click")}});j.find(l+"-add-submit").on("click",function(){j.find(p).focus()});h=function(q){if(!j.find(p).val()){return false}q.data+="&"+j.find(l+"-checklist :checked").serialize();j.prop("disabled",true);return q};k=function(v,u){var t,q=j.find("#new"+i+"_parent");j.prop("disabled",false);if("undefined"!=u.parsed.responses[0]&&(t=u.parsed.responses[0].supplemental.newcat_parent)){q.before(t);q.remove();if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(i,t)}}};j.find(l+"-checklist").wpList({alt:"",response:"mla-"+i+"-ajax-response",addBefore:h,addAfter:k});j.find(l+"-checklist, "+l+"-checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var q=d(this),s=q.is(":checked"),r=q.val();if(r&&q.parents("#mla-taxonomy-"+i).length){d("#in-"+i+"-"+r+", #in-popular-"+i+"-"+r,"#mla-taxonomy-"+i).prop("checked",s)}});d.extend(d.expr.pseudos||d.expr[":"],{matchTerms:function(s,r,q,t){return(s.textContent||s.innerText||"").toLowerCase().indexOf((q[3]||"").toLowerCase())>=0}});j.find(o).on("keypress",function(q){if(13===q.keyCode){q.preventDefault();j.find(o).val("");j.find(l+"-searcher").addClass("mla-hidden-children");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();return}});j.find(o).on("keyup",function(s){var u,t,v,r,q;if(13===s.keyCode){s.preventDefault();j.find(l+"-search-toggle").focus();return}u=j.find(o).val();t=j.find(l+"-checklist li");v=j.find(l+"-checklist-pop li");if(0<u.length){t.hide();v.hide()}else{t.show();v.show()}r=j.find(l+"-checklist label:matchTerms('"+u+"')");r.closest("li").find("li").andSelf().show();r.parents(l+"-checklist li").show();q=j.find(l+"-checklist-pop label:matchTerms('"+u+"')");q.closest("li").find("li").andSelf().show();q.parents(l+"-checklist li").show()});j.find(l+"-search-toggle").on("click",function(){j.find(l+"-adder ").addClass("mla-hidden-children");j.find(l+"-searcher").toggleClass("mla-hidden-children");j.find(l+'-tabs a[href="#mla-'+i+'-all"]').trigger("click");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();if(false===j.find(l+"-searcher").hasClass("mla-hidden-children")){j.find(o).val("").removeClass("form-input-tip");j.find(o).focus()}return false})})}if(mlaModal.settings.enableDetailsTag){d(".mla-taxonomy-field .tagsdiv",e).each(function(){var h=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));d(".compat-field-"+h+" th",e).on("click",function(){d(this).siblings("td").slideToggle()});mlaModal.tagBox.init(f,h,e)})}}}(jQuery));
js/mla-set-parent-scripts.js CHANGED
@@ -10,6 +10,7 @@ var jQuery;
10
  * mla.settings.useSpinnerClass
11
  * mla.settings.ajaxDoneError
12
  * mla.settings.ajaxFailError
 
13
  *
14
  * components:
15
  * mla.setParent
@@ -76,7 +77,7 @@ var jQuery;
76
  });
77
 
78
  // Close the setParent pop-up
79
- $( '#mla-set-parent-close-div' ).trigger( 'click', mla.setParent.close );
80
 
81
  $( '#mla-set-parent-cancel' ).on( 'click', function ( event ) {
82
  event.preventDefault();
@@ -148,7 +149,7 @@ var jQuery;
148
  mla_set_parent_post_type: $( '#mla-set-parent-post-type' ).val(),
149
  mla_set_parent_count: $( '#mla-set-parent-count' ).val(),
150
  mla_set_parent_paged: $( '#mla-set-parent-paged' ).val(),
151
- action: 'mla_find_posts',
152
  mla_admin_nonce: $('#mla-set-parent-ajax-nonce').val()
153
  },
154
  spinner = $( '#mla-set-parent-search-div .spinner' );
10
  * mla.settings.useSpinnerClass
11
  * mla.settings.ajaxDoneError
12
  * mla.settings.ajaxFailError
13
+ * mla.settings.setParentAction
14
  *
15
  * components:
16
  * mla.setParent
77
  });
78
 
79
  // Close the setParent pop-up
80
+ $( '#mla-set-parent-close-div' ).on( 'click', mla.setParent.close );
81
 
82
  $( '#mla-set-parent-cancel' ).on( 'click', function ( event ) {
83
  event.preventDefault();
149
  mla_set_parent_post_type: $( '#mla-set-parent-post-type' ).val(),
150
  mla_set_parent_count: $( '#mla-set-parent-count' ).val(),
151
  mla_set_parent_paged: $( '#mla-set-parent-paged' ).val(),
152
+ action: mla.settings.setParentAction,
153
  mla_admin_nonce: $('#mla-set-parent-ajax-nonce').val()
154
  },
155
  spinner = $( '#mla-set-parent-search-div .spinner' );
js/mla-set-parent-scripts.min.js CHANGED
@@ -1 +1 @@
1
- var jQuery;(function(a){mla.setParent={init:function(){a("#mla-set-parent-submit").on("click",function(b){if(!a('#mla-set-parent-response-div input[type="radio"]:checked').length){b.preventDefault()}});a("#mla-set-parent-search").on("click",function(){a("#mla-set-parent-paged").val(1);mla.setParent.send()});a("#mla-set-parent-search-div :input").on("keypress",function(){if(13==event.which){mla.setParent.send();return false}});a("#mla-set-parent-post-type").on("change",function(){a("#mla-set-parent-paged").val(1);mla.setParent.send()});a("#mla-set-parent-previous").on("click",function(){var b=+a("#mla-set-parent-paged").val();if(b>1){a("#mla-set-parent-paged").val(b-1)}else{a("#mla-set-parent-paged").val(1)}mla.setParent.send()});a("#mla-set-parent-next").on("click",function(){var c=+a("#mla-set-parent-count").val(),b=+a("#mla-set-parent-paged").val(),d=+a("#mla-set-parent-found").val();if(d<c){a("#mla-set-parent-paged").val(1)}else{a("#mla-set-parent-paged").val(b+1)}mla.setParent.send()});a("#mla-set-parent-close-div").trigger("click",mla.setParent.close);a("#mla-set-parent-cancel").on("click",function(b){b.preventDefault();return mla.setParent.close()});a("#mla-set-parent-inside-div").on("click","tr",function(){a(this).find(".found-radio input").prop("checked",true)})},open:function(e,d,b){var c=a("#mla-set-parent-overlay");if(c.length===0){a("body").append('<div id="mla-set-parent-overlay"></div>');mla.setParent.overlay()}c.show();if(e&&d){a("#mla-set-parent-parent").val(e);a("#mla-set-parent-children").val(d)}if(b){a("#mla-set-parent-titles").html(b)}if(mla.settings.useDashicons){a("#mla-set-parent-close-div").addClass("mla-set-parent-close-div-dashicons")}else{a("#mla-set-parent-close-div").html("x")}a("#mla-set-parent-div").show();a("#mla-set-parent-input ").focus().on("keyup",function(f){if(f.which==27){mla.setParent.close()}});mla.setParent.send();return false},close:function(){a("#mla-set-parent-input").val("");a("#mla-set-parent-post-type").val("all");a("#mla-set-parent-response-div").html("");a("#mla-set-parent-div").hide();a("#mla-set-parent-overlay").hide()},overlay:function(){a("#mla-set-parent-overlay").on("click",function(){mla.setParent.close()})},send:function(){var b={mla_set_parent_search_text:a("#mla-set-parent-input").val(),mla_set_parent_post_type:a("#mla-set-parent-post-type").val(),mla_set_parent_count:a("#mla-set-parent-count").val(),mla_set_parent_paged:a("#mla-set-parent-paged").val(),action:"mla_find_posts",mla_admin_nonce:a("#mla-set-parent-ajax-nonce").val()},c=a("#mla-set-parent-search-div .spinner");if(mla.settings.useSpinnerClass){c.addClass("is-active")}else{c.show()}a.ajax(ajaxurl,{type:"POST",data:b,dataType:"json"}).always(function(){if(mla.settings.useSpinnerClass){c.removeClass("is-active")}else{c.hide()}}).done(function(d){var e="no response.data",f=0;if(!d.success){if(d.responseData){e=d.data}a("#mla-set-parent-response-div").text(mla.settings.ajaxDoneError+" ("+e+")")}else{a("#mla-set-parent-response-div").html(d.data);a("#mla-set-parent-response-div table tbody tr:eq(0)").before(a("#found-0-row").clone());f=a("#mla-set-parent-parent").val();a("#mla-set-parent-response-div #found-"+f).each(function(){a(this).prop("checked",true)})}}).fail(function(e,d){if(200==e.status){a("#mla-set-parent-response-div").text("("+d+") "+e.responseText)}else{a("#mla-set-parent-response-div").text(mla.settings.ajaxFailError+" ("+d+"), jqXHR( "+e.status+", "+e.statusText+", "+e.responseText+")")}})}};a(document).ready(function(){mla.setParent.init()})})(jQuery);
1
+ var jQuery;(function(a){mla.setParent={init:function(){a("#mla-set-parent-submit").on("click",function(b){if(!a('#mla-set-parent-response-div input[type="radio"]:checked').length){b.preventDefault()}});a("#mla-set-parent-search").on("click",function(){a("#mla-set-parent-paged").val(1);mla.setParent.send()});a("#mla-set-parent-search-div :input").on("keypress",function(){if(13==event.which){mla.setParent.send();return false}});a("#mla-set-parent-post-type").on("change",function(){a("#mla-set-parent-paged").val(1);mla.setParent.send()});a("#mla-set-parent-previous").on("click",function(){var b=+a("#mla-set-parent-paged").val();if(b>1){a("#mla-set-parent-paged").val(b-1)}else{a("#mla-set-parent-paged").val(1)}mla.setParent.send()});a("#mla-set-parent-next").on("click",function(){var c=+a("#mla-set-parent-count").val(),b=+a("#mla-set-parent-paged").val(),d=+a("#mla-set-parent-found").val();if(d<c){a("#mla-set-parent-paged").val(1)}else{a("#mla-set-parent-paged").val(b+1)}mla.setParent.send()});a("#mla-set-parent-close-div").on("click",mla.setParent.close);a("#mla-set-parent-cancel").on("click",function(b){b.preventDefault();return mla.setParent.close()});a("#mla-set-parent-inside-div").on("click","tr",function(){a(this).find(".found-radio input").prop("checked",true)})},open:function(e,d,b){var c=a("#mla-set-parent-overlay");if(c.length===0){a("body").append('<div id="mla-set-parent-overlay"></div>');mla.setParent.overlay()}c.show();if(e&&d){a("#mla-set-parent-parent").val(e);a("#mla-set-parent-children").val(d)}if(b){a("#mla-set-parent-titles").html(b)}if(mla.settings.useDashicons){a("#mla-set-parent-close-div").addClass("mla-set-parent-close-div-dashicons")}else{a("#mla-set-parent-close-div").html("x")}a("#mla-set-parent-div").show();a("#mla-set-parent-input ").focus().on("keyup",function(f){if(f.which==27){mla.setParent.close()}});mla.setParent.send();return false},close:function(){a("#mla-set-parent-input").val("");a("#mla-set-parent-post-type").val("all");a("#mla-set-parent-response-div").html("");a("#mla-set-parent-div").hide();a("#mla-set-parent-overlay").hide()},overlay:function(){a("#mla-set-parent-overlay").on("click",function(){mla.setParent.close()})},send:function(){var b={mla_set_parent_search_text:a("#mla-set-parent-input").val(),mla_set_parent_post_type:a("#mla-set-parent-post-type").val(),mla_set_parent_count:a("#mla-set-parent-count").val(),mla_set_parent_paged:a("#mla-set-parent-paged").val(),action:mla.settings.setParentAction,mla_admin_nonce:a("#mla-set-parent-ajax-nonce").val()},c=a("#mla-set-parent-search-div .spinner");if(mla.settings.useSpinnerClass){c.addClass("is-active")}else{c.show()}a.ajax(ajaxurl,{type:"POST",data:b,dataType:"json"}).always(function(){if(mla.settings.useSpinnerClass){c.removeClass("is-active")}else{c.hide()}}).done(function(d){var e="no response.data",f=0;if(!d.success){if(d.responseData){e=d.data}a("#mla-set-parent-response-div").text(mla.settings.ajaxDoneError+" ("+e+")")}else{a("#mla-set-parent-response-div").html(d.data);a("#mla-set-parent-response-div table tbody tr:eq(0)").before(a("#found-0-row").clone());f=a("#mla-set-parent-parent").val();a("#mla-set-parent-response-div #found-"+f).each(function(){a(this).prop("checked",true)})}}).fail(function(e,d){if(200==e.status){a("#mla-set-parent-response-div").text("("+d+") "+e.responseText)}else{a("#mla-set-parent-response-div").text(mla.settings.ajaxFailError+" ("+d+"), jqXHR( "+e.status+", "+e.statusText+", "+e.responseText+")")}})}};a(document).ready(function(){mla.setParent.init()})})(jQuery);
languages/media-library-assistant-en_US - References.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Media Library Assistant\n"
5
- "POT-Creation-Date: 2021-10-17 15:53-0700\n"
6
  "PO-Revision-Date: 2015-08-21 21:38-0800\n"
7
  "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
8
  "Language-Team: David Lingren <david@davidlingren.com>\n"
@@ -24,7 +24,7 @@ msgstr ""
24
  #: includes/class-mla-admin-columns-pro-support-423.php:178
25
  #: includes/class-mla-admin-columns-pro-support-44.php:175
26
  #: includes/class-mla-admin-columns-pro-support.php:193
27
- #: includes/class-mla-ajax.php:356 includes/class-mla-edit-media.php:1065
28
  #: includes/class-mla-list-table.php:712
29
  msgid "Draft"
30
  msgstr ""
@@ -32,7 +32,7 @@ msgstr ""
32
  #: includes/class-mla-admin-columns-pro-support-423.php:181
33
  #: includes/class-mla-admin-columns-pro-support-44.php:178
34
  #: includes/class-mla-admin-columns-pro-support.php:196
35
- #: includes/class-mla-ajax.php:350 includes/class-mla-edit-media.php:1059
36
  #: includes/class-mla-list-table.php:715
37
  msgid "Scheduled"
38
  msgstr ""
@@ -40,7 +40,7 @@ msgstr ""
40
  #: includes/class-mla-admin-columns-pro-support-423.php:184
41
  #: includes/class-mla-admin-columns-pro-support-44.php:181
42
  #: includes/class-mla-admin-columns-pro-support.php:199
43
- #: includes/class-mla-edit-media.php:1062 includes/class-mla-list-table.php:718
44
  msgctxt "post state"
45
  msgid "Pending"
46
  msgstr ""
@@ -74,10 +74,10 @@ msgstr ""
74
  #: includes/class-mla-admin-columns-pro-support.php:692
75
  #: includes/class-mla-admin-columns-pro-support.php:759
76
  #: includes/class-mla-admin-columns-pro-support.php:821
77
- #: includes/class-mla-core-options.php:462
78
- #: includes/class-mla-core-options.php:472
79
- #: includes/class-mla-core-options.php:482
80
- #: includes/class-mla-core-options.php:492
81
  #: includes/class-mla-list-table.php:1234
82
  #: includes/class-mla-list-table.php:1279
83
  #: includes/class-mla-list-table.php:1329
@@ -97,10 +97,10 @@ msgstr ""
97
  #: includes/class-mla-admin-columns-pro-support.php:715
98
  #: includes/class-mla-admin-columns-pro-support.php:778
99
  #: includes/class-mla-admin-columns-pro-support.php:840
100
- #: includes/class-mla-edit-media.php:1166
101
- #: includes/class-mla-edit-media.php:1203
102
- #: includes/class-mla-edit-media.php:1238
103
- #: includes/class-mla-edit-media.php:1272
104
  #: includes/class-mla-list-table.php:1252
105
  #: includes/class-mla-list-table.php:1301
106
  #: includes/class-mla-list-table.php:1347
@@ -111,10 +111,10 @@ msgstr ""
111
  #: includes/class-mla-admin-columns-pro-support-423.php:1027
112
  #: includes/class-mla-admin-columns-pro-support-44.php:1024
113
  #: includes/class-mla-admin-columns-pro-support.php:1065
114
- #: includes/class-mla-core-options.php:621
115
- #: includes/class-mla-core-options.php:887
116
- #: includes/class-mla-core-options.php:918
117
- #: includes/class-mla-core-options.php:932
118
  #: includes/class-mla-list-table.php:561 includes/class-mla-list-table.php:1487
119
  #: includes/class-mla-settings-shortcodes-tab.php:649
120
  msgid "None"
@@ -130,7 +130,7 @@ msgstr ""
130
  #: includes/class-mla-admin-columns-pro-support-423.php:1121
131
  #: includes/class-mla-admin-columns-pro-support-44.php:1118
132
  #: includes/class-mla-admin-columns-pro-support.php:1159
133
- #: includes/class-mla-ajax.php:366 includes/class-mla-list-table.php:1537
134
  #: includes/class-mla-list-table.php:1566
135
  #: includes/class-mla-list-table.php:1630
136
  msgid "Y/m/d"
@@ -139,7 +139,7 @@ msgstr ""
139
  #: includes/class-mla-admin-columns-pro-support-423.php:1134
140
  #: includes/class-mla-admin-columns-pro-support-44.php:1131
141
  #: includes/class-mla-admin-columns-pro-support.php:1172
142
- #: includes/class-mla-core-options.php:1334
143
  #: includes/class-mla-list-table.php:1643
144
  msgctxt "table_view_singular"
145
  msgid "Unattached"
@@ -147,7 +147,7 @@ msgstr ""
147
 
148
  #: includes/class-mla-admin-columns-support-deprecated.php:33
149
  #: includes/class-mla-admin-columns-support.php:43
150
- #: includes/class-mla-core-options.php:571 includes/class-mla-settings.php:426
151
  #: includes/class-mla-settings.php:1446 includes/class-mla-settings.php:1464
152
  #: index.php:46
153
  msgid "Media Library Assistant"
@@ -155,7 +155,7 @@ msgstr ""
155
 
156
  #: includes/class-mla-admin-columns-support-deprecated.php:34
157
  #: includes/class-mla-admin-columns-support.php:44
158
- #: includes/class-mla-core-options.php:580
159
  msgid "Assistant"
160
  msgstr ""
161
 
@@ -167,15 +167,15 @@ msgstr ""
167
 
168
  #: includes/class-mla-ajax.php:77 includes/class-mla-ajax.php:94
169
  #: includes/class-mla-ajax.php:111 includes/class-mla-ajax.php:129
170
- #: includes/class-mla-ajax.php:148 includes/class-mla-data-query.php:1381
171
- #: includes/class-mla-data-query.php:1397
172
  #: includes/class-mla-data-query.php:1399
173
- #: includes/class-mla-data-query.php:1913
174
- #: includes/class-mla-data-query.php:2004
175
- #: includes/class-mla-data-query.php:2076
176
- #: includes/class-mla-data-query.php:2171
177
- #: includes/class-mla-data-query.php:2257
178
- #: includes/class-mla-data-query.php:2276
 
179
  msgid "DEBUG"
180
  msgstr ""
181
 
@@ -207,25 +207,25 @@ msgid ""
207
  "\"%3$d\" count = %4$d."
208
  msgstr ""
209
 
210
- #: includes/class-mla-ajax.php:337 includes/class-mla-core-options.php:1210
211
- #: includes/class-mla-data.php:4408 includes/class-mla-edit-media.php:480
212
- #: includes/class-mla-main.php:2085 includes/class-mla-main.php:2407
213
  #: includes/class-mla-objects.php:369 includes/class-mla-options.php:466
214
  #: includes/mla-main-search-box-template.php:47
215
  #: includes/mla-media-modal-js-template.php:38
216
  msgid "Title"
217
  msgstr ""
218
 
219
- #: includes/class-mla-ajax.php:337 includes/class-mla-main.php:2086
220
  #: includes/class-mla-thumbnail-generation.php:644
221
  msgid "Type"
222
  msgstr ""
223
 
224
- #: includes/class-mla-ajax.php:337 includes/class-mla-main.php:2087
225
  msgid "Date"
226
  msgstr ""
227
 
228
- #: includes/class-mla-ajax.php:337 includes/class-mla-main.php:2088
229
  #: includes/class-mla-settings-custom-fields-tab.php:524
230
  #: includes/class-mla-settings-custom-fields-tab.php:834
231
  #: includes/class-mla-settings-iptc-exif-tab.php:585
@@ -234,25 +234,25 @@ msgstr ""
234
  msgid "Status"
235
  msgstr ""
236
 
237
- #: includes/class-mla-ajax.php:341 includes/class-mla-list-table.php:963
238
- #: includes/class-mla-list-table.php:1128 includes/class-mla-main.php:461
239
- #: includes/class-mla-polylang-support.php:375
240
  #: includes/class-mla-thumbnail-generation.php:97
241
  msgid "(no title)"
242
  msgstr ""
243
 
244
- #: includes/class-mla-ajax.php:347
245
  msgid "Published"
246
  msgstr ""
247
 
248
- #: includes/class-mla-ajax.php:353
249
  msgid "Pending Review"
250
  msgstr ""
251
 
252
- #: includes/class-mla-ajax.php:395 includes/class-mla-ajax.php:402
253
- #: includes/class-mla-ajax.php:411 includes/class-mla-core.php:893
254
- #: includes/class-mla-core.php:911 includes/class-mla-core.php:1371
255
- #: includes/class-mla-core.php:1377 includes/class-mla-core.php:1381
256
  #: includes/class-mla-data-office.php:35 includes/class-mla-data-office.php:40
257
  #: includes/class-mla-data-office.php:50 includes/class-mla-data-office.php:54
258
  #: includes/class-mla-data-office.php:69 includes/class-mla-data-office.php:74
@@ -263,46 +263,47 @@ msgstr ""
263
  #: includes/class-mla-data.php:196 includes/class-mla-data.php:257
264
  #: includes/class-mla-data.php:325 includes/class-mla-data.php:414
265
  #: includes/class-mla-data.php:566 includes/class-mla-data.php:629
266
- #: includes/class-mla-data.php:1676 includes/class-mla-data.php:1823
267
- #: includes/class-mla-data.php:1829 includes/class-mla-data.php:2179
268
- #: includes/class-mla-data.php:2183 includes/class-mla-data.php:3613
269
- #: includes/class-mla-data.php:3669 includes/class-mla-data.php:3713
270
- #: includes/class-mla-data.php:4108 includes/class-mla-data.php:4121
271
- #: includes/class-mla-data.php:4143 includes/class-mla-data.php:4383
272
- #: includes/class-mla-data.php:4429 includes/class-mla-data.php:4462
273
- #: includes/class-mla-data.php:4478 includes/class-mla-data.php:4752
274
- #: includes/class-mla-edit-media.php:321 includes/class-mla-edit-media.php:971
275
- #: includes/class-mla-edit-media.php:1013 includes/class-mla-main.php:709
276
- #: includes/class-mla-main.php:837 includes/class-mla-main.php:839
277
- #: includes/class-mla-main.php:842 includes/class-mla-main.php:902
278
- #: includes/class-mla-main.php:936 includes/class-mla-main.php:945
279
- #: includes/class-mla-main.php:952 includes/class-mla-main.php:1337
280
- #: includes/class-mla-main.php:1393 includes/class-mla-main.php:1418
281
- #: includes/class-mla-main.php:1556 includes/class-mla-main.php:1606
282
- #: includes/class-mla-main.php:1716 includes/class-mla-main.php:1745
283
- #: includes/class-mla-main.php:1887 includes/class-mla-main.php:1894
284
- #: includes/class-mla-main.php:2071 includes/class-mla-main.php:2210
285
- #: includes/class-mla-main.php:2539 includes/class-mla-main.php:2547
286
- #: includes/class-mla-main.php:2571 includes/class-mla-main.php:2579
287
- #: includes/class-mla-main.php:2611 includes/class-mla-main.php:2619
288
- #: includes/class-mla-media-modal.php:618 includes/class-mla-mime-types.php:825
289
- #: includes/class-mla-mime-types.php:1209
290
- #: includes/class-mla-mime-types.php:1297
291
- #: includes/class-mla-mime-types.php:1443
292
- #: includes/class-mla-mime-types.php:1466
293
- #: includes/class-mla-mime-types.php:2265
294
- #: includes/class-mla-mime-types.php:2276
295
- #: includes/class-mla-mime-types.php:2289
296
- #: includes/class-mla-mime-types.php:2297
297
- #: includes/class-mla-mime-types.php:2302
298
- #: includes/class-mla-mime-types.php:2345
299
- #: includes/class-mla-mime-types.php:2364
300
- #: includes/class-mla-mime-types.php:2409
301
- #: includes/class-mla-mime-types.php:2444
302
- #: includes/class-mla-mime-types.php:2525
303
- #: includes/class-mla-mime-types.php:2604
304
- #: includes/class-mla-mime-types.php:2613
305
- #: includes/class-mla-mime-types.php:2645 includes/class-mla-objects.php:266
 
306
  #: includes/class-mla-options.php:218 includes/class-mla-options.php:434
307
  #: includes/class-mla-options.php:515 includes/class-mla-options.php:570
308
  #: includes/class-mla-options.php:1133 includes/class-mla-options.php:1978
@@ -368,17 +369,14 @@ msgstr ""
368
  #: includes/class-mla-settings.php:1792 includes/class-mla-settings.php:1799
369
  #: includes/class-mla-settings.php:1808 includes/class-mla-settings.php:1845
370
  #: includes/class-mla-settings.php:1853 includes/class-mla-settings.php:1862
371
- #: includes/class-mla-shortcode-support.php:2272
372
- #: includes/class-mla-shortcode-support.php:2367
373
- #: includes/class-mla-shortcode-support.php:3755
374
- #: includes/class-mla-shortcode-support.php:3919
375
- #: includes/class-mla-shortcode-support.php:3951
376
- #: includes/class-mla-shortcode-support.php:5269
377
- #: includes/class-mla-shortcode-support.php:5339
378
- #: includes/class-mla-shortcode-support.php:5804
379
- #: includes/class-mla-shortcode-support.php:5820
380
- #: includes/class-mla-shortcode-support.php:5843
381
- #: includes/class-mla-shortcode-support.php:5859
382
  #: includes/class-mla-thumbnail-generation.php:437
383
  #: includes/class-mla-thumbnail-generation.php:449
384
  #: includes/class-mla-thumbnail-generation.php:461
@@ -386,114 +384,116 @@ msgstr ""
386
  msgid "ERROR"
387
  msgstr ""
388
 
389
- #: includes/class-mla-ajax.php:395 includes/class-mla-main.php:1887
390
  msgid "No post ID found"
391
  msgstr ""
392
 
393
- #: includes/class-mla-ajax.php:402 includes/class-mla-main.php:1894
394
- #: includes/class-mla-polylang-support.php:271
395
  msgid "You are not allowed to edit this Attachment."
396
  msgstr ""
397
 
398
- #: includes/class-mla-core-options.php:423 includes/class-mla-options.php:257
399
  msgid "Attachment Categories"
400
  msgstr ""
401
 
402
- #: includes/class-mla-core-options.php:427
403
  msgid "Check this option to add support for Attachment Categories."
404
  msgstr ""
405
 
406
- #: includes/class-mla-core-options.php:431 includes/class-mla-options.php:272
407
  msgid "Attachment Tags"
408
  msgstr ""
409
 
410
- #: includes/class-mla-core-options.php:435
411
  msgid "Check this option to add support for Attachment Tags."
412
  msgstr ""
413
 
414
- #: includes/class-mla-core-options.php:439 includes/class-mla-settings.php:1060
415
  msgid "Where-used Reporting"
416
  msgstr ""
417
 
418
- #: includes/class-mla-core-options.php:444
419
  msgid "Exclude Revisions"
420
  msgstr ""
421
 
422
- #: includes/class-mla-core-options.php:448
423
  msgid "Check this option to exclude revisions from where-used reporting."
424
  msgstr ""
425
 
426
- #: includes/class-mla-core-options.php:452
427
  msgid "Where-used database access tuning"
428
  msgstr ""
429
 
430
- #: includes/class-mla-core-options.php:457
431
- #: includes/class-mla-edit-media.php:906 includes/class-mla-edit-media.php:1177
 
432
  msgid "Featured in"
433
  msgstr ""
434
 
435
- #: includes/class-mla-core-options.php:462
436
- #: includes/class-mla-core-options.php:472
437
  msgid "Enabled"
438
  msgstr ""
439
 
440
- #: includes/class-mla-core-options.php:463
441
  msgid "Search database posts and pages for Featured Image attachments."
442
  msgstr ""
443
 
444
- #: includes/class-mla-core-options.php:467
445
- #: includes/class-mla-edit-media.php:910 includes/class-mla-edit-media.php:1215
 
446
  msgid "Inserted in"
447
  msgstr ""
448
 
449
- #: includes/class-mla-core-options.php:472
450
  msgid "Base"
451
  msgstr ""
452
 
453
- #: includes/class-mla-core-options.php:473
454
  msgid ""
455
  "Search database posts and pages for attachments embedded in content."
456
  "<br>&nbsp;&nbsp;Base = ignore intermediate size suffixes; use path, base "
457
  "name and extension only."
458
  msgstr ""
459
 
460
- #: includes/class-mla-core-options.php:477
461
- #: includes/class-mla-edit-media.php:914 includes/class-mla-edit-media.php:1249
462
- #: includes/class-mla-settings.php:1558
463
  msgid "Gallery in"
464
  msgstr ""
465
 
466
- #: includes/class-mla-core-options.php:482
467
- #: includes/class-mla-core-options.php:492
468
  msgid "Dynamic"
469
  msgstr ""
470
 
471
- #: includes/class-mla-core-options.php:482
472
- #: includes/class-mla-core-options.php:492 includes/class-mla-main.php:2442
473
  #: includes/class-mla-settings-custom-fields-tab.php:764
474
  #: includes/class-mla-settings-iptc-exif-tab.php:902
475
  msgid "Refresh"
476
  msgstr ""
477
 
478
- #: includes/class-mla-core-options.php:482
479
- #: includes/class-mla-core-options.php:492
480
  msgid "Cached"
481
  msgstr ""
482
 
483
- #: includes/class-mla-core-options.php:483
484
  msgid ""
485
  "Search database posts and pages for [ gallery ] shortcode results.<br>&nbsp;"
486
  "&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = "
487
  "never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached."
488
  msgstr ""
489
 
490
- #: includes/class-mla-core-options.php:487
491
- #: includes/class-mla-edit-media.php:918 includes/class-mla-edit-media.php:1283
492
- #: includes/class-mla-settings.php:1568
493
  msgid "MLA Gallery in"
494
  msgstr ""
495
 
496
- #: includes/class-mla-core-options.php:493
497
  msgid ""
498
  "Search database posts and pages for [mla_gallery] shortcode results."
499
  "<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, "
@@ -501,125 +501,125 @@ msgid ""
501
  "Cached."
502
  msgstr ""
503
 
504
- #: includes/class-mla-core-options.php:497 includes/class-mla-settings.php:1060
505
  msgid "Taxonomy Support"
506
  msgstr ""
507
 
508
- #: includes/class-mla-core-options.php:502
509
  msgid "Compute Attachments Column"
510
  msgstr ""
511
 
512
- #: includes/class-mla-core-options.php:506
513
  msgid ""
514
  "Check this option to calculate attachments per term in the Attachments "
515
  "Column."
516
  msgstr ""
517
 
518
- #: includes/class-mla-core-options.php:510
519
  msgid "Show Count Column"
520
  msgstr ""
521
 
522
- #: includes/class-mla-core-options.php:514
523
  msgid "Check this option to display the Count column on taxonomy edit screens."
524
  msgstr ""
525
 
526
- #: includes/class-mla-core-options.php:519
527
  msgid ""
528
  "Check the \"<strong>Support</strong>\" box to add the taxonomy to the "
529
  "Assistant and the Edit Media screen."
530
  msgstr ""
531
 
532
- #: includes/class-mla-core-options.php:520
533
  msgid ""
534
  "Check the \"<strong>Inline Edit</strong>\" box to display the taxonomy in "
535
  "the Quick Edit and Bulk Edit areas."
536
  msgstr ""
537
 
538
- #: includes/class-mla-core-options.php:521
539
  msgid ""
540
  "Check the \"<strong>Term Search</strong>\" box to add the taxonomy to the "
541
  "\"Search Media/Terms\" list."
542
  msgstr ""
543
 
544
- #: includes/class-mla-core-options.php:522
545
- #: includes/class-mla-core-options.php:760
546
- #: includes/class-mla-core-options.php:769 includes/class-mla-settings.php:1093
547
  #: includes/class-mla-settings.php:1094 includes/class-mla-settings.php:1095
548
  msgid "For complete documentation"
549
  msgstr ""
550
 
551
- #: includes/class-mla-core-options.php:522
552
- #: includes/class-mla-core-options.php:760
553
- #: includes/class-mla-core-options.php:769 includes/class-mla-settings.php:1093
554
  #: includes/class-mla-settings.php:1094 includes/class-mla-settings.php:1095
555
  msgid "click here"
556
  msgstr ""
557
 
558
- #: includes/class-mla-core-options.php:524
559
  msgid ""
560
  "Check the \"<strong>Checklist</strong>\" box to enable the checklist-style "
561
  "meta box for a flat taxonomy."
562
  msgstr ""
563
 
564
- #: includes/class-mla-core-options.php:525
565
  msgid ""
566
  "You must also check the <strong>\"Enable enhanced checklist taxonomies\"</"
567
  "strong> box below to enable this feature."
568
  msgstr ""
569
 
570
- #: includes/class-mla-core-options.php:526
571
  msgid ""
572
  "Check the \"<strong>Checked On Top</strong>\" box to move checked terms to "
573
  "the top of the checklist-style meta box."
574
  msgstr ""
575
 
576
- #: includes/class-mla-core-options.php:527
577
  msgid ""
578
  "Check the \"<strong>Inline Add Term</strong>\" box to support adding terms "
579
  "in the Quick Edit and Bulk Edit areas."
580
  msgstr ""
581
 
582
- #: includes/class-mla-core-options.php:528
583
  msgid ""
584
  "Use the \"<strong>List Filter</strong>\" option to select the taxonomy (or "
585
  "custom field) on which to filter the Assistant table listing."
586
  msgstr ""
587
 
588
- #: includes/class-mla-core-options.php:529
589
  msgid ""
590
  "To <strong>filter on a custom field</strong>, enter the field name and "
591
  "select ASC (Ascending) or DESC (Descending) order."
592
  msgstr ""
593
 
594
- #: includes/class-mla-core-options.php:558
595
  msgid "Media/Assistant Screen Options"
596
  msgstr ""
597
 
598
- #: includes/class-mla-core-options.php:563
599
  msgid "Admin Menu Options"
600
  msgstr ""
601
 
602
- #: includes/class-mla-core-options.php:568
603
  msgid "Page Title"
604
  msgstr ""
605
 
606
- #: includes/class-mla-core-options.php:573
607
  msgid "Enter the title for the Media/Assistant submenu page"
608
  msgstr ""
609
 
610
- #: includes/class-mla-core-options.php:577
611
  msgid "Menu Title"
612
  msgstr ""
613
 
614
- #: includes/class-mla-core-options.php:582
615
  msgid "Enter the title for the Media/Assistant submenu entry"
616
  msgstr ""
617
 
618
- #: includes/class-mla-core-options.php:586
619
  msgid "Submenu Order"
620
  msgstr ""
621
 
622
- #: includes/class-mla-core-options.php:591
623
  msgid ""
624
  "Enter the position of the Media/Assistant submenu entry.<br>&nbsp;&nbsp;0 = "
625
  "natural order (at bottom),&nbsp;&nbsp;&nbsp;&nbsp;1 - 4 = at top<br>&nbsp;"
@@ -627,315 +627,325 @@ msgid ""
627
  "\""
628
  msgstr ""
629
 
630
- #: includes/class-mla-core-options.php:595
631
  msgid "Display Media/Library"
632
  msgstr ""
633
 
634
- #: includes/class-mla-core-options.php:599
635
  msgid ""
636
  "Check/uncheck this option to display/remove the WordPress Media/Library "
637
  "submenu entry."
638
  msgstr ""
639
 
640
- #: includes/class-mla-core-options.php:603
641
  msgid "Display Media/Assistant list/grid view switcher"
642
  msgstr ""
643
 
644
- #: includes/class-mla-core-options.php:607
645
  msgid ""
646
  "Check/uncheck this option to display/remove the \"list/grid\" view switcher "
647
  "on the Media/Assistant submenu."
648
  msgstr ""
649
 
650
- #: includes/class-mla-core-options.php:611
651
  msgid "Table Defaults"
652
  msgstr ""
653
 
654
- #: includes/class-mla-core-options.php:616
655
  msgid "Order By"
656
  msgstr ""
657
 
658
- #: includes/class-mla-core-options.php:621
659
  msgid "ID/Parent"
660
  msgstr ""
661
 
662
- #: includes/class-mla-core-options.php:622
663
  msgid "Select the column for the sort order of the Assistant table listing."
664
  msgstr ""
665
 
666
- #: includes/class-mla-core-options.php:626
667
  msgid "Order"
668
  msgstr ""
669
 
670
- #: includes/class-mla-core-options.php:631
671
  msgid "Ascending"
672
  msgstr ""
673
 
674
- #: includes/class-mla-core-options.php:631
675
  msgid "Descending"
676
  msgstr ""
677
 
678
- #: includes/class-mla-core-options.php:632
679
- #: includes/class-mla-core-options.php:897
680
  msgid "Choose the sort order."
681
  msgstr ""
682
 
683
- #: includes/class-mla-core-options.php:636 includes/class-mla-main.php:630
684
  msgid "Entries per page"
685
  msgstr ""
686
 
687
- #: includes/class-mla-core-options.php:640
688
  msgid "Enter the number of Media/Assistant submenu table items per page."
689
  msgstr ""
690
 
691
- #: includes/class-mla-core-options.php:649
692
  msgid "Views Width"
693
  msgstr ""
694
 
695
- #: includes/class-mla-core-options.php:654
696
  msgid "Enter the width for the views list, in pixels (px) or percent (%)"
697
  msgstr ""
698
 
699
- #: includes/class-mla-core-options.php:658
700
  msgid "Icon Size"
701
  msgstr ""
702
 
703
- #: includes/class-mla-core-options.php:663
704
  msgid "Enter the size of the thumbnail/icon images, in pixels"
705
  msgstr ""
706
 
707
- #: includes/class-mla-core-options.php:667
708
  msgid "Show Primary Column File Name"
709
  msgstr ""
710
 
711
- #: includes/class-mla-core-options.php:671
712
  msgid ""
713
  "Check/uncheck this option to show/omit the file name from the primary column."
714
  msgstr ""
715
 
716
- #: includes/class-mla-core-options.php:675
717
  msgid "QuickTags editor for bulk description"
718
  msgstr ""
719
 
720
- #: includes/class-mla-core-options.php:679
721
  msgid ""
722
  "Check this option to use the QuickTags editor for the Description field in "
723
  "the Bulk Edit area."
724
  msgstr ""
725
 
726
- #: includes/class-mla-core-options.php:683
727
  msgid "Bulk Chunk Size"
728
  msgstr ""
729
 
730
- #: includes/class-mla-core-options.php:688
731
  msgid "Enter the size of the Bulk Edit and Map All processing chunks"
732
  msgstr ""
733
 
734
- #: includes/class-mla-core-options.php:692
 
 
 
 
 
 
 
 
 
 
735
  msgid "Taxonomy Filter parameters"
736
  msgstr ""
737
 
738
- #: includes/class-mla-core-options.php:697
739
  msgid "Maximum Depth"
740
  msgstr ""
741
 
742
- #: includes/class-mla-core-options.php:702
743
  msgid ""
744
  "Enter the number of levels displayed for hierarchial taxonomies; enter zero "
745
  "for no limit."
746
  msgstr ""
747
 
748
- #: includes/class-mla-core-options.php:706
749
  msgid "Include Children"
750
  msgstr ""
751
 
752
- #: includes/class-mla-core-options.php:710
753
  msgid ""
754
  "Check/uncheck this option to include/exclude children for hierarchical "
755
  "taxonomies."
756
  msgstr ""
757
 
758
- #: includes/class-mla-core-options.php:714
759
  msgid "Search Media Defaults"
760
  msgstr ""
761
 
762
- #: includes/class-mla-core-options.php:719
763
  msgid "Display Search Controls"
764
  msgstr ""
765
 
766
- #: includes/class-mla-core-options.php:723
767
- #: includes/class-mla-core-options.php:858
768
  msgid ""
769
  "Check/uncheck this option to display/hide the and/or connector and search "
770
  "fields controls."
771
  msgstr ""
772
 
773
- #: includes/class-mla-core-options.php:727
774
  msgid ""
775
  "Use these controls to set defaults for the and/or connector and search "
776
  "fields controls.<br>These defaults will be used for the Search Media boxes "
777
  "on both the Media/Assistant submenu<br>and the Media Manager Modal Window."
778
  msgstr ""
779
 
780
- #: includes/class-mla-core-options.php:741
781
  msgid "Media/Edit Media Enhancements"
782
  msgstr ""
783
 
784
- #: includes/class-mla-core-options.php:746
785
  msgid "Enable &quot;enhanced checklist&quot; taxonomies"
786
  msgstr ""
787
 
788
- #: includes/class-mla-core-options.php:750
789
  msgid ""
790
  "Check this option to enable the \"? Search\" feature for hierarchical "
791
  "taxonomies, e.g., Att. Categories.<br>&nbsp;&nbsp;This option also enables "
792
  "the \"checklist-style\" support for flat taxonomies, e.g., Att. Tags."
793
  msgstr ""
794
 
795
- #: includes/class-mla-core-options.php:754
796
  msgid "Enable Edit Media additional meta boxes"
797
  msgstr ""
798
 
799
- #: includes/class-mla-core-options.php:758
800
  msgid ""
801
  "Check this option to add \"Parent Info\", \"Menu Order\", \"Attachment "
802
  "Metadata\", \"Attachment File Metadata\" and four \"where-used\" meta boxes "
803
  "to the Edit Media screen."
804
  msgstr ""
805
 
806
- #: includes/class-mla-core-options.php:759
807
  msgid "You can also use Filters to customize the meta boxes."
808
  msgstr ""
809
 
810
- #: includes/class-mla-core-options.php:764
811
  msgid "Enable File Attachment Metadata meta box"
812
  msgstr ""
813
 
814
- #: includes/class-mla-core-options.php:768
815
  msgid ""
816
  "Check this option to enable the \"Attachment File Metadata\" meta box on "
817
  "the Edit Media screen."
818
  msgstr ""
819
 
820
- #: includes/class-mla-core-options.php:773
821
  msgid "Media/Add New Enhancements"
822
  msgstr ""
823
 
824
- #: includes/class-mla-core-options.php:778
825
  msgid "Enable &quot;bulk edit&quot; area"
826
  msgstr ""
827
 
828
- #: includes/class-mla-core-options.php:782
829
  msgid ""
830
  "Check this option to enable the \"Bulk Edit area\" feature on the Media/Add "
831
  "New screen."
832
  msgstr ""
833
 
834
- #: includes/class-mla-core-options.php:786
835
  msgid "&quot;bulk edit&quot; area on top"
836
  msgstr ""
837
 
838
- #: includes/class-mla-core-options.php:790
839
  msgid ""
840
  "Check this option to move the \"Bulk Edit area\" to the top of the Media/Add "
841
  "New screen."
842
  msgstr ""
843
 
844
- #: includes/class-mla-core-options.php:794
845
  msgid "&quot;bulk edit&quot; area initially open"
846
  msgstr ""
847
 
848
- #: includes/class-mla-core-options.php:797
849
  msgid ""
850
  "Check this option to automatically open the \"Bulk Edit area\" when the "
851
  "Media/Add New screen is displayed."
852
  msgstr ""
853
 
854
- #: includes/class-mla-core-options.php:801
855
  msgid "Media Manager/Media Grid Enhancements"
856
  msgstr ""
857
 
858
- #: includes/class-mla-core-options.php:806
859
  msgid "Enable Media Grid Enhancements"
860
  msgstr ""
861
 
862
- #: includes/class-mla-core-options.php:809
863
  msgid ""
864
  "Check/uncheck this option to enable/disable Media Library Grid View "
865
  "Enhancements."
866
  msgstr ""
867
 
868
- #: includes/class-mla-core-options.php:813
869
  msgid "Enable Media Manager Enhancements"
870
  msgstr ""
871
 
872
- #: includes/class-mla-core-options.php:816
873
  msgid ""
874
  "Check/uncheck this option to enable/disable Media Manager Modal Window "
875
  "Enhancements."
876
  msgstr ""
877
 
878
- #: includes/class-mla-core-options.php:820
879
  msgid "Media Manager Enhanced MIME Type filter"
880
  msgstr ""
881
 
882
- #: includes/class-mla-core-options.php:823
883
  msgid ""
884
  "Check this option to filter by more MIME Types, e.g., text, applications."
885
  msgstr ""
886
 
887
- #: includes/class-mla-core-options.php:827
888
  msgid "Media Manager Month and Year filter"
889
  msgstr ""
890
 
891
- #: includes/class-mla-core-options.php:830
892
  msgid "Check this option to filter by month and year uploaded."
893
  msgstr ""
894
 
895
- #: includes/class-mla-core-options.php:834
896
  msgid "Media Manager Category/Tag filter"
897
  msgstr ""
898
 
899
- #: includes/class-mla-core-options.php:837
900
  msgid "Check this option to filter by taxonomy terms."
901
  msgstr ""
902
 
903
- #: includes/class-mla-core-options.php:841
904
  msgid "Media Manager Terms Search popup"
905
  msgstr ""
906
 
907
- #: includes/class-mla-core-options.php:844
908
  msgid "Check this option to enable the \"Terms Search\" popup window."
909
  msgstr ""
910
 
911
- #: includes/class-mla-core-options.php:848
912
  msgid "Media Manager Enhanced Search Media box"
913
  msgstr ""
914
 
915
- #: includes/class-mla-core-options.php:851
916
  msgid "Check this option to enable search box enhancements."
917
  msgstr ""
918
 
919
- #: includes/class-mla-core-options.php:855
920
  msgid "Media Manager Enhanced Search Media Controls"
921
  msgstr ""
922
 
923
- #: includes/class-mla-core-options.php:862
924
  msgid "Media Manager Checklist meta boxes"
925
  msgstr ""
926
 
927
- #: includes/class-mla-core-options.php:865
928
  msgid ""
929
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
930
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for any taxonomy that uses a "
931
  "<strong>\"checklist-style\"</strong> meta box."
932
  msgstr ""
933
 
934
- #: includes/class-mla-core-options.php:869
935
  msgid "Media Manager Flat meta boxes"
936
  msgstr ""
937
 
938
- #: includes/class-mla-core-options.php:872
939
  msgid ""
940
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
941
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies</"
@@ -943,211 +953,211 @@ msgid ""
943
  "style\" meta box."
944
  msgstr ""
945
 
946
- #: includes/class-mla-core-options.php:876
947
  msgid "Media Manager auto-fill meta boxes"
948
  msgstr ""
949
 
950
- #: includes/class-mla-core-options.php:879
951
  msgid ""
952
  "Check this option to automatically fill MLA-enhanced meta boxes in the "
953
  "\"ATTACHMENT DETAILS\" pane<br>&nbsp;&nbsp;when the item is selected."
954
  msgstr ""
955
 
956
- #: includes/class-mla-core-options.php:883
957
  msgid "Media Manager Order By"
958
  msgstr ""
959
 
960
- #: includes/class-mla-core-options.php:887
961
- #: includes/class-mla-core-options.php:896
962
- #: includes/class-mla-core-options.php:918
963
- #: includes/class-mla-core-options.php:932
964
- #: includes/class-mla-core-options.php:946 includes/class-mla-settings.php:1144
965
  msgid "Media Manager Default"
966
  msgstr ""
967
 
968
- #: includes/class-mla-core-options.php:887
969
  msgid "Title/Name"
970
  msgstr ""
971
 
972
- #: includes/class-mla-core-options.php:888
973
  msgid ""
974
  "If you want to override the Media Manager default,<br>&nbsp;&nbsp;select a "
975
  "column for the sort order of the Media Library listing."
976
  msgstr ""
977
 
978
- #: includes/class-mla-core-options.php:892
979
  msgid "Media Manager Order"
980
  msgstr ""
981
 
982
- #: includes/class-mla-core-options.php:901
983
  msgid "Attachment Display Settings"
984
  msgstr ""
985
 
986
- #: includes/class-mla-core-options.php:906
987
  msgid "Media Manager Apply Display Settings"
988
  msgstr ""
989
 
990
- #: includes/class-mla-core-options.php:909
991
  msgid ""
992
  "Check this option to always start with the Attachment Display Settings set "
993
  "here,<br>&nbsp;&nbsp;overriding browser-/cookie-based defaults."
994
  msgstr ""
995
 
996
- #: includes/class-mla-core-options.php:913
997
- #: includes/class-mla-core-options.php:915
998
  msgid "Alignment"
999
  msgstr ""
1000
 
1001
- #: includes/class-mla-core-options.php:915
1002
- #: includes/class-mla-core-options.php:929
1003
- #: includes/class-mla-core-options.php:943
1004
  #, php-format
1005
  msgid ""
1006
  "Select a value for the default %1$s option in the Attachment Display "
1007
  "Settings."
1008
  msgstr ""
1009
 
1010
- #: includes/class-mla-core-options.php:918
1011
  msgid "Left"
1012
  msgstr ""
1013
 
1014
- #: includes/class-mla-core-options.php:918
1015
  msgid "Center"
1016
  msgstr ""
1017
 
1018
- #: includes/class-mla-core-options.php:918
1019
  msgid "Right"
1020
  msgstr ""
1021
 
1022
- #: includes/class-mla-core-options.php:927
1023
- #: includes/class-mla-core-options.php:929
1024
  msgid "Link To"
1025
  msgstr ""
1026
 
1027
- #: includes/class-mla-core-options.php:932
1028
  msgid "Media File"
1029
  msgstr ""
1030
 
1031
- #: includes/class-mla-core-options.php:932
1032
  msgid "Attachment Page"
1033
  msgstr ""
1034
 
1035
- #: includes/class-mla-core-options.php:932
1036
  msgid "Custom URL"
1037
  msgstr ""
1038
 
1039
- #: includes/class-mla-core-options.php:941
1040
- #: includes/class-mla-core-options.php:943
1041
  msgid "Size"
1042
  msgstr ""
1043
 
1044
- #: includes/class-mla-core-options.php:946
1045
  #: includes/class-mla-thumbnail-generation.php:591
1046
  #: includes/class-mla-thumbnail-generation.php:655
1047
  msgid "Thumbnail"
1048
  msgstr ""
1049
 
1050
- #: includes/class-mla-core-options.php:946
1051
  msgid "Medium"
1052
  msgstr ""
1053
 
1054
- #: includes/class-mla-core-options.php:946
1055
  msgid "Large"
1056
  msgstr ""
1057
 
1058
- #: includes/class-mla-core-options.php:946
1059
  msgid "Full Size"
1060
  msgstr ""
1061
 
1062
- #: includes/class-mla-core-options.php:955
1063
  msgid "Uninstall (Delete) Plugin Settings"
1064
  msgstr ""
1065
 
1066
- #: includes/class-mla-core-options.php:960
1067
  msgid "Delete Option Settings"
1068
  msgstr ""
1069
 
1070
- #: includes/class-mla-core-options.php:963
1071
  msgid ""
1072
  "Check this option to remove all MLA option settings from the database when "
1073
  "the plugin is deleted.<br>&nbsp;&nbsp;<strong>You can make a backup copy</"
1074
  "strong> of your settings below by clicking \""
1075
  msgstr ""
1076
 
1077
- #: includes/class-mla-core-options.php:963 includes/class-mla-settings.php:1062
1078
  msgid "Export ALL Settings"
1079
  msgstr ""
1080
 
1081
- #: includes/class-mla-core-options.php:967
1082
  msgid "Delete Option Settings Backups"
1083
  msgstr ""
1084
 
1085
- #: includes/class-mla-core-options.php:970
1086
  msgid ""
1087
  "Check this option to remove the <code>/wp-content/mla-backup</code> "
1088
  "directory and its contents when the plugin is deleted."
1089
  msgstr ""
1090
 
1091
- #: includes/class-mla-core-options.php:974
1092
  msgid "Default [mla_gallery] Templates and Settings"
1093
  msgstr ""
1094
 
1095
- #: includes/class-mla-core-options.php:979
1096
- #: includes/class-mla-core-options.php:985
1097
- #: includes/class-mla-core-options.php:1023
1098
- #: includes/class-mla-core-options.php:1029
1099
  msgid "Style Template"
1100
  msgstr ""
1101
 
1102
- #: includes/class-mla-core-options.php:985
1103
- #: includes/class-mla-core-options.php:995
1104
- #: includes/class-mla-core-options.php:1029
1105
- #: includes/class-mla-core-options.php:1039
1106
  #, php-format
1107
  msgid "Select the default %1$s for your %2$s shortcodes."
1108
  msgstr ""
1109
 
1110
- #: includes/class-mla-core-options.php:989
1111
- #: includes/class-mla-core-options.php:1033
1112
  msgid "Markup Template"
1113
  msgstr ""
1114
 
1115
- #: includes/class-mla-core-options.php:995
1116
- #: includes/class-mla-core-options.php:1039
1117
  #: includes/class-mla-settings-shortcodes-tab.php:108
1118
  msgid "markup template"
1119
  msgstr ""
1120
 
1121
- #: includes/class-mla-core-options.php:999
1122
- #: includes/class-mla-core-options.php:1043
1123
  msgid "Default columns"
1124
  msgstr ""
1125
 
1126
- #: includes/class-mla-core-options.php:1003
1127
  msgid ""
1128
  "Enter the number of [mla_tag_cloud] columns; must be a positive integer."
1129
  msgstr ""
1130
 
1131
- #: includes/class-mla-core-options.php:1007
1132
- #: includes/class-mla-core-options.php:1051
1133
  msgid "Default mla_margin"
1134
  msgstr ""
1135
 
1136
- #: includes/class-mla-core-options.php:1011
1137
- #: includes/class-mla-core-options.php:1055
1138
  msgid ""
1139
  "Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
1140
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"none\" to "
1141
  "remove the property entirely."
1142
  msgstr ""
1143
 
1144
- #: includes/class-mla-core-options.php:1015
1145
- #: includes/class-mla-core-options.php:1059
1146
  msgid "Default mla_itemwidth"
1147
  msgstr ""
1148
 
1149
- #: includes/class-mla-core-options.php:1019
1150
- #: includes/class-mla-core-options.php:1063
1151
  msgid ""
1152
  "Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
1153
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"calculate"
@@ -1157,19 +1167,19 @@ msgid ""
1157
  "the property entirely."
1158
  msgstr ""
1159
 
1160
- #: includes/class-mla-core-options.php:1047
1161
  msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
1162
  msgstr ""
1163
 
1164
- #: includes/class-mla-core-options.php:1067
1165
  msgid "Thumbnail Substitution Support, mla_viewer"
1166
  msgstr ""
1167
 
1168
- #: includes/class-mla-core-options.php:1072
1169
  msgid "Enable thumbnail substitution"
1170
  msgstr ""
1171
 
1172
- #: includes/class-mla-core-options.php:1075
1173
  msgid ""
1174
  "Check this option to allow the \"mla_viewer\" to generate thumbnail images "
1175
  "for PDF documents. Thumbnails are generated dynamically, each time the item "
@@ -1178,32 +1188,32 @@ msgid ""
1178
  "strong>"
1179
  msgstr ""
1180
 
1181
- #: includes/class-mla-core-options.php:1079
1182
  msgid "Enable Featured Images"
1183
  msgstr ""
1184
 
1185
- #: includes/class-mla-core-options.php:1082
1186
  msgid ""
1187
  "Check this option to extend Featured Image support to all Media Library "
1188
  "items. The Featured Image can be used as a thumbnail image for the item in "
1189
  "an [mla_gallery] display."
1190
  msgstr ""
1191
 
1192
- #: includes/class-mla-core-options.php:1086
1193
  msgid "Enable Featured Image Generation"
1194
  msgstr ""
1195
 
1196
- #: includes/class-mla-core-options.php:1089
1197
  msgid ""
1198
  "Check this option to enable the \"Thumbnail\" generation action in the Media/"
1199
  "Assistant submenu Bulk Actions dropdown."
1200
  msgstr ""
1201
 
1202
- #: includes/class-mla-core-options.php:1093
1203
  msgid "Enable explicit Ghostscript check"
1204
  msgstr ""
1205
 
1206
- #: includes/class-mla-core-options.php:1096
1207
  msgid ""
1208
  "Check this option to enable the explicit check for Ghostscript support "
1209
  "required for thumbnail generation. If your Ghostscript software is in a non-"
@@ -1212,37 +1222,37 @@ msgid ""
1212
  "leave this option checked unless you know it is safe to turn it off."
1213
  msgstr ""
1214
 
1215
- #: includes/class-mla-core-options.php:1100
1216
  msgid "Ghostscript path"
1217
  msgstr ""
1218
 
1219
- #: includes/class-mla-core-options.php:1104
1220
  msgid ""
1221
  "If your &ldquo;gs&rdquo; executable is in a non-standard location, enter the "
1222
  "full path and filename here, e.g., &ldquo;/usr/bin/gs&rdquo;. It will "
1223
  "override the search for Ghostscript in other places."
1224
  msgstr ""
1225
 
1226
- #: includes/class-mla-core-options.php:1124
1227
  msgid "Enable custom field mapping"
1228
  msgstr ""
1229
 
1230
- #: includes/class-mla-core-options.php:1127
1231
- #: includes/class-mla-core-options.php:1134
1232
- #: includes/class-mla-core-options.php:1141
1233
- #: includes/class-mla-core-options.php:1158
1234
  msgid "See Help menu."
1235
  msgstr ""
1236
 
1237
- #: includes/class-mla-core-options.php:1131
1238
  msgid "Enable custom field mapping when adding new media"
1239
  msgstr ""
1240
 
1241
- #: includes/class-mla-core-options.php:1138
1242
  msgid "Enable custom field mapping when updating media metadata"
1243
  msgstr ""
1244
 
1245
- #: includes/class-mla-core-options.php:1145
1246
  msgid ""
1247
  "Update the custom field mapping values above, then click Save Changes to "
1248
  "make the updates permanent.<br>You can also make temporary updates and click "
@@ -1250,33 +1260,33 @@ msgid ""
1250
  "saving any rule changes."
1251
  msgstr ""
1252
 
1253
- #: includes/class-mla-core-options.php:1155
1254
  msgid "Enable IPTC/EXIF Mapping"
1255
  msgstr ""
1256
 
1257
- #: includes/class-mla-core-options.php:1162
1258
  msgid "Enable IPTC/EXIF Mapping when adding new media"
1259
  msgstr ""
1260
 
1261
- #: includes/class-mla-core-options.php:1165
1262
  msgid ""
1263
  "Check this option to enable mapping when uploading new media (attachments)."
1264
  "<br>&nbsp;&nbsp;Does NOT affect the operation of the \"Map\" buttons on the "
1265
  "bulk edit, single edit and settings screens."
1266
  msgstr ""
1267
 
1268
- #: includes/class-mla-core-options.php:1169
1269
  msgid "Enable IPTC/EXIF Mapping when updating media metadata"
1270
  msgstr ""
1271
 
1272
- #: includes/class-mla-core-options.php:1172
1273
  msgid ""
1274
  "Check this option to enable mapping when media (attachments) metadata is "
1275
  "regenerated,<br>&nbsp;&nbsp;e.g., when the Media/Edit Media \"Edit Image\" "
1276
  "functions are used."
1277
  msgstr ""
1278
 
1279
- #: includes/class-mla-core-options.php:1176
1280
  msgid ""
1281
  "Update the standard field mapping values above, then click <strong>Save "
1282
  "Changes</strong> to make the updates permanent.<br>You can also make "
@@ -1285,13 +1295,13 @@ msgid ""
1285
  "changes."
1286
  msgstr ""
1287
 
1288
- #: includes/class-mla-core-options.php:1186
1289
  msgid ""
1290
  "Update the taxonomy term mapping values above, then click <strong>Save "
1291
  "Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
1292
  msgstr ""
1293
 
1294
- #: includes/class-mla-core-options.php:1196
1295
  msgid ""
1296
  "<strong>Update</strong> individual custom field mapping values above, or "
1297
  "make several updates and click <strong>Save Changes</strong> below to apply "
@@ -1302,33 +1312,33 @@ msgid ""
1302
  "changes."
1303
  msgstr ""
1304
 
1305
- #: includes/class-mla-core-options.php:1206
1306
  msgid "IPTC/EXIF Mapping help"
1307
  msgstr ""
1308
 
1309
- #: includes/class-mla-core-options.php:1217 includes/class-mla-data.php:4432
1310
- #: includes/class-mla-edit-media.php:481 includes/class-mla-main.php:2408
1311
  msgid "Name/Slug"
1312
  msgstr ""
1313
 
1314
- #: includes/class-mla-core-options.php:1224 includes/class-mla-data.php:4475
1315
- #: includes/class-mla-edit-media.php:484 includes/class-mla-list-table.php:1429
1316
- #: includes/class-mla-main.php:2412 includes/class-mla-options.php:472
1317
  #: includes/mla-main-search-box-template.php:51
1318
  #: includes/mla-media-modal-js-template.php:46
1319
  msgid "ALT Text"
1320
  msgstr ""
1321
 
1322
- #: includes/class-mla-core-options.php:1231 includes/class-mla-data.php:4488
1323
- #: includes/class-mla-edit-media.php:482 includes/class-mla-main.php:2409
1324
  #: includes/class-mla-options.php:475
1325
  #: includes/mla-main-search-box-template.php:53
1326
  #: includes/mla-media-modal-js-template.php:51
1327
  msgid "Caption"
1328
  msgstr ""
1329
 
1330
- #: includes/class-mla-core-options.php:1238 includes/class-mla-data.php:4497
1331
- #: includes/class-mla-edit-media.php:483 includes/class-mla-main.php:2410
1332
  #: includes/class-mla-options.php:478
1333
  #: includes/class-mla-settings-custom-fields-tab.php:480
1334
  #: includes/class-mla-settings-iptc-exif-tab.php:533
@@ -1347,28 +1357,28 @@ msgstr ""
1347
  msgid "Description"
1348
  msgstr ""
1349
 
1350
- #: includes/class-mla-core-options.php:1245 includes/class-mla-data.php:4559
1351
- #: includes/class-mla-data.php:4568 includes/class-mla-edit-media.php:485
1352
- #: includes/class-mla-edit-media.php:749 includes/class-mla-main.php:2414
1353
  msgid "Uploaded on"
1354
  msgstr ""
1355
 
1356
- #: includes/class-mla-core-options.php:1265
1357
  msgid "Enable View and Post MIME Type Support"
1358
  msgstr ""
1359
 
1360
- #: includes/class-mla-core-options.php:1268
1361
  msgid ""
1362
  "Check/uncheck this option to enable/disable Post MIME Type Support, then "
1363
  "click <strong>Save Changes</strong> to record the new setting."
1364
  msgstr ""
1365
 
1366
- #: includes/class-mla-core-options.php:1277
1367
  msgid "Post MIME Types help."
1368
  msgstr ""
1369
 
1370
- #: includes/class-mla-core-options.php:1280
1371
- #: includes/class-mla-mime-types.php:1696
1372
  #: includes/class-mla-settings-custom-fields-tab.php:2501
1373
  #: includes/class-mla-settings-documentation-tab.php:1545
1374
  #: includes/class-mla-settings-iptc-exif-tab.php:2845
@@ -1377,8 +1387,8 @@ msgctxt "table_view_singular"
1377
  msgid "All"
1378
  msgstr ""
1379
 
1380
- #: includes/class-mla-core-options.php:1281
1381
- #: includes/class-mla-mime-types.php:1697
1382
  #: includes/class-mla-settings-custom-fields-tab.php:2502
1383
  #: includes/class-mla-settings-documentation-tab.php:1546
1384
  #: includes/class-mla-settings-iptc-exif-tab.php:2846
@@ -1387,174 +1397,174 @@ msgctxt "table_view_plural"
1387
  msgid "All"
1388
  msgstr ""
1389
 
1390
- #: includes/class-mla-core-options.php:1286
1391
- #: includes/class-mla-core-options.php:1340
1392
- #: includes/class-mla-core-options.php:1349
1393
- #: includes/class-mla-core-options.php:1358
1394
- #: includes/class-mla-core-options.php:1367
1395
  msgctxt "post_mime_types_description"
1396
  msgid "Built-in view"
1397
  msgstr ""
1398
 
1399
- #: includes/class-mla-core-options.php:1289
1400
  msgctxt "table_view_singular"
1401
  msgid "Image"
1402
  msgstr ""
1403
 
1404
- #: includes/class-mla-core-options.php:1290
1405
  msgctxt "table_view_plural"
1406
  msgid "Images"
1407
  msgstr ""
1408
 
1409
- #: includes/class-mla-core-options.php:1295
1410
  msgctxt "post_mime_types_description"
1411
  msgid "All image subtypes"
1412
  msgstr ""
1413
 
1414
- #: includes/class-mla-core-options.php:1298
1415
  msgctxt "table_view_singular"
1416
  msgid "Audio"
1417
  msgstr ""
1418
 
1419
- #: includes/class-mla-core-options.php:1299
1420
  msgctxt "table_view_plural"
1421
  msgid "Audio"
1422
  msgstr ""
1423
 
1424
- #: includes/class-mla-core-options.php:1304
1425
  msgctxt "post_mime_types_description"
1426
  msgid "All audio subtypes"
1427
  msgstr ""
1428
 
1429
- #: includes/class-mla-core-options.php:1307
1430
  msgctxt "table_view_singular"
1431
  msgid "Video"
1432
  msgstr ""
1433
 
1434
- #: includes/class-mla-core-options.php:1308
1435
  msgctxt "table_view_plural"
1436
  msgid "Video"
1437
  msgstr ""
1438
 
1439
- #: includes/class-mla-core-options.php:1313
1440
  msgctxt "post_mime_types_description"
1441
  msgid "All video subtypes"
1442
  msgstr ""
1443
 
1444
- #: includes/class-mla-core-options.php:1316
1445
  msgctxt "table_view_singular"
1446
  msgid "Text"
1447
  msgstr ""
1448
 
1449
- #: includes/class-mla-core-options.php:1317
1450
  msgctxt "table_view_plural"
1451
  msgid "Text"
1452
  msgstr ""
1453
 
1454
- #: includes/class-mla-core-options.php:1322
1455
  msgctxt "post_mime_types_description"
1456
  msgid "All text subtypes"
1457
  msgstr ""
1458
 
1459
- #: includes/class-mla-core-options.php:1325
1460
  msgctxt "table_view_singular"
1461
  msgid "Application"
1462
  msgstr ""
1463
 
1464
- #: includes/class-mla-core-options.php:1326
1465
  msgctxt "table_view_plural"
1466
  msgid "Applications"
1467
  msgstr ""
1468
 
1469
- #: includes/class-mla-core-options.php:1331
1470
  msgctxt "post_mime_types_description"
1471
  msgid "All application subtypes"
1472
  msgstr ""
1473
 
1474
- #: includes/class-mla-core-options.php:1335
1475
  msgctxt "table_view_plural"
1476
  msgid "Unattached"
1477
  msgstr ""
1478
 
1479
- #: includes/class-mla-core-options.php:1343
1480
  msgctxt "table_view_singular"
1481
  msgid "Attached"
1482
  msgstr ""
1483
 
1484
- #: includes/class-mla-core-options.php:1344
1485
  msgctxt "table_view_plural"
1486
  msgid "Attached"
1487
  msgstr ""
1488
 
1489
- #: includes/class-mla-core-options.php:1352
1490
  msgctxt "table_view_singular"
1491
  msgid "Mine"
1492
  msgstr ""
1493
 
1494
- #: includes/class-mla-core-options.php:1353
1495
  msgctxt "table_view_plural"
1496
  msgid "Mine"
1497
  msgstr ""
1498
 
1499
- #: includes/class-mla-core-options.php:1361
1500
  msgctxt "table_view_singular"
1501
  msgid "Trash"
1502
  msgstr ""
1503
 
1504
- #: includes/class-mla-core-options.php:1362
1505
  msgctxt "table_view_plural"
1506
  msgid "Trash"
1507
  msgstr ""
1508
 
1509
- #: includes/class-mla-core-options.php:1373
1510
  msgid "Enable Upload MIME Type Support"
1511
  msgstr ""
1512
 
1513
- #: includes/class-mla-core-options.php:1376
1514
  msgid ""
1515
  "Check/uncheck this option to enable/disable Upload MIME Type Support, then "
1516
  "click <strong>Save Changes</strong> to record the new setting."
1517
  msgstr ""
1518
 
1519
- #: includes/class-mla-core-options.php:1385
1520
  msgid "Upload MIME Types help."
1521
  msgstr ""
1522
 
1523
- #: includes/class-mla-core-options.php:1390
1524
  msgid "Enable MLA File Type Icons Support"
1525
  msgstr ""
1526
 
1527
- #: includes/class-mla-core-options.php:1393
1528
  msgid ""
1529
  "Check/uncheck this option to enable/disable MLA File Type Icons Support, "
1530
  "then click <strong>Save Changes</strong> to record the new setting."
1531
  msgstr ""
1532
 
1533
- #: includes/class-mla-core-options.php:1397
1534
  msgid "Always Use MLA MIME Type"
1535
  msgstr ""
1536
 
1537
- #: includes/class-mla-core-options.php:1400
1538
  msgid ""
1539
  "Check this option to override WordPress MIME Type security checks, then "
1540
  "click <strong>Save Changes</strong> to record the new setting."
1541
  msgstr ""
1542
 
1543
- #: includes/class-mla-core-options.php:1404
1544
  msgid "Display Limit"
1545
  msgstr ""
1546
 
1547
- #: includes/class-mla-core-options.php:1408
1548
  msgid ""
1549
  "Enter the maximum number of debug log characters to display; enter zero or "
1550
  "leave blank for no limit."
1551
  msgstr ""
1552
 
1553
- #: includes/class-mla-core-options.php:1412
1554
  msgid "Debug File"
1555
  msgstr ""
1556
 
1557
- #: includes/class-mla-core-options.php:1416
1558
  msgid ""
1559
  "Enter the name of an alternate, MLA-specific debug log file; leave blank to "
1560
  "use the PHP error_log.<br>&nbsp;&nbsp;The WP_CONTENT_DIR value (below) will "
@@ -1562,85 +1572,85 @@ msgid ""
1562
  "\"."
1563
  msgstr ""
1564
 
1565
- #: includes/class-mla-core-options.php:1420
1566
  msgid "Replace PHP error_log file"
1567
  msgstr ""
1568
 
1569
- #: includes/class-mla-core-options.php:1423
1570
  msgid ""
1571
  "Check this option to replace the PHP error_log file with the MLA Debug File."
1572
  "<br>&nbsp;&nbsp;allows capture of PHP messages in the MLA Debug File."
1573
  msgstr ""
1574
 
1575
- #: includes/class-mla-core-options.php:1427
1576
  msgid "PHP Reporting"
1577
  msgstr ""
1578
 
1579
- #: includes/class-mla-core-options.php:1431
1580
  msgid ""
1581
  "Enter a numeric error_reporting value, e.g., 0x7FFF or 32767; leave blank to "
1582
  "use the existing PHP error_reporting value."
1583
  msgstr ""
1584
 
1585
- #: includes/class-mla-core-options.php:1435
1586
  msgid "MLA Reporting"
1587
  msgstr ""
1588
 
1589
- #: includes/class-mla-core-options.php:1439
1590
  msgid ""
1591
  "Enter a numeric MLA_DEBUG_LEVEL value, e.g., 0x0003 or 3; leave blank to use "
1592
  "the existing MLA_DEBUG_LEVEL value."
1593
  msgstr ""
1594
 
1595
- #: includes/class-mla-core-options.php:1443
1596
  msgid "Add Tax. Columns"
1597
  msgstr ""
1598
 
1599
- #: includes/class-mla-core-options.php:1446
1600
  msgid ""
1601
  "Check this option to add Parent, Term ID and Term-Taxonomy ID columns to the "
1602
  "taxonomy edit admin submenu tables."
1603
  msgstr ""
1604
 
1605
- #: includes/class-mla-core.php:893
1606
  #, php-format
1607
  msgctxt "error_log"
1608
  msgid "%1$s: mla_load_template file \"%2$s\" not found."
1609
  msgstr ""
1610
 
1611
- #: includes/class-mla-core.php:911
1612
  #, php-format
1613
  msgctxt "error_log"
1614
  msgid "%1$s: mla_load_template file \"%2$s\" bad source type \"%3$s\"."
1615
  msgstr ""
1616
 
1617
- #: includes/class-mla-core.php:1371
1618
  #, php-format
1619
  msgid "%1$s: Bad specification part \"%2$s\""
1620
  msgstr ""
1621
 
1622
- #: includes/class-mla-core.php:1377
1623
  #, php-format
1624
  msgid "%1$s: Bad specification option \"%2$s\""
1625
  msgstr ""
1626
 
1627
- #: includes/class-mla-core.php:1381
1628
  #, php-format
1629
  msgid "%1$s: Bad specification prefix \"%2$s\""
1630
  msgstr ""
1631
 
1632
- #: includes/class-mla-core.php:1482
1633
  msgid "Most Used"
1634
  msgstr ""
1635
 
1636
- #: includes/class-mla-core.php:1511
1637
  #, php-format
1638
  msgid "+ %s"
1639
  msgstr ""
1640
 
1641
- #: includes/class-mla-core.php:1517 includes/class-mla-edit-media.php:362
1642
- #: includes/class-mla-edit-media.php:418 includes/class-mla-main.php:2077
1643
- #: includes/class-mla-main.php:2273 includes/class-mla-main.php:2339
1644
  #: includes/class-mla-media-modal.php:648
1645
  #: includes/mla-media-modal-js-template.php:26
1646
  #: includes/mla-media-modal-js-template.php:73
@@ -1825,55 +1835,55 @@ msgctxt "error_log"
1825
  msgid " %1$s: %2$s non-array \"%3$s\""
1826
  msgstr ""
1827
 
1828
- #: includes/class-mla-data-query.php:1381
1829
  #, php-format
1830
  msgctxt "error_log"
1831
  msgid " %1$s: _execute_list_table_query $wp_filter = \"%2$s\"."
1832
  msgstr ""
1833
 
1834
- #: includes/class-mla-data-query.php:1397
1835
  #, php-format
1836
  msgctxt "error_log"
1837
  msgid " %1$s: _execute_list_table_query WP_Query = \"%2$s\"."
1838
  msgstr ""
1839
 
1840
- #: includes/class-mla-data-query.php:1399
1841
  #, php-format
1842
  msgctxt "error_log"
1843
  msgid " %1$s: _execute_list_table_query SQL_request = \"%2$s\"."
1844
  msgstr ""
1845
 
1846
- #: includes/class-mla-data-query.php:1913
1847
  #, php-format
1848
  msgctxt "error_log"
1849
  msgid " %1$s: mla_query_posts_search_filter = \"%2$s\"."
1850
  msgstr ""
1851
 
1852
- #: includes/class-mla-data-query.php:2004
1853
  #, php-format
1854
  msgctxt "error_log"
1855
  msgid " %1$s: mla_query_posts_where_filter = \"%2$s\"."
1856
  msgstr ""
1857
 
1858
- #: includes/class-mla-data-query.php:2076
1859
  #, php-format
1860
  msgctxt "error_log"
1861
  msgid " %1$s: mla_query_posts_join_filter = \"%2$s\"."
1862
  msgstr ""
1863
 
1864
- #: includes/class-mla-data-query.php:2171
1865
  #, php-format
1866
  msgctxt "error_log"
1867
  msgid " %1$s: mla_query_posts_orderby_filter = \"%2$s\"."
1868
  msgstr ""
1869
 
1870
- #: includes/class-mla-data-query.php:2257
1871
  #, php-format
1872
  msgctxt "error_log"
1873
  msgid " %1$s: mla_query_posts_clauses_filter = \"%2$s\"."
1874
  msgstr ""
1875
 
1876
- #: includes/class-mla-data-query.php:2276
1877
  #, php-format
1878
  msgctxt "error_log"
1879
  msgid " %1$s: mla_query_posts_clauses_request_filter = \"%2$s\"."
@@ -1881,8 +1891,8 @@ msgstr ""
1881
 
1882
  #: includes/class-mla-data-references.php:316
1883
  #: includes/class-mla-data-references.php:640
1884
- #: includes/class-mla-data-source.php:701
1885
- #: includes/class-mla-data-source.php:702
1886
  msgid "ORPHAN"
1887
  msgstr ""
1888
 
@@ -1955,7 +1965,7 @@ msgctxt "error_log"
1955
  msgid "%1$s: _evaluate_template_node unknown type \"%2$s\"."
1956
  msgstr ""
1957
 
1958
- #: includes/class-mla-data.php:1676
1959
  #, php-format
1960
  msgctxt "error_log"
1961
  msgid ""
@@ -1963,45 +1973,45 @@ msgid ""
1963
  "\"."
1964
  msgstr ""
1965
 
1966
- #: includes/class-mla-data.php:1823
1967
  #, php-format
1968
  msgctxt "error_log"
1969
  msgid "%1$s: mla_get_attachment_by_id(%2$d) not found."
1970
  msgstr ""
1971
 
1972
- #: includes/class-mla-data.php:1829
1973
  #, php-format
1974
  msgctxt "error_log"
1975
  msgid "%1$s: mla_get_attachment_by_id(%2$d) wrong post_type \"%3$s\"."
1976
  msgstr ""
1977
 
1978
- #: includes/class-mla-data.php:2179
1979
  msgctxt "error_log"
1980
  msgid "mla_parse_xml_string xml_parse_into_struct failed."
1981
  msgstr ""
1982
 
1983
- #: includes/class-mla-data.php:2183
1984
  msgctxt "error_log"
1985
  msgid "mla_parse_xml_string set option failed."
1986
  msgstr ""
1987
 
1988
- #: includes/class-mla-data.php:3840
1989
  msgid "Auto"
1990
  msgstr ""
1991
 
1992
- #: includes/class-mla-data.php:3843
1993
  msgid "Manual"
1994
  msgstr ""
1995
 
1996
- #: includes/class-mla-data.php:3846
1997
  msgid "Bracket"
1998
  msgstr ""
1999
 
2000
- #: includes/class-mla-data.php:3849
2001
  msgid "Other"
2002
  msgstr ""
2003
 
2004
- #: includes/class-mla-data.php:3856
2005
  #: includes/class-mla-settings-custom-fields-tab.php:841
2006
  #: includes/class-mla-settings-custom-fields-tab.php:1563
2007
  #: includes/class-mla-settings-iptc-exif-tab.php:981
@@ -2014,7 +2024,7 @@ msgstr ""
2014
  msgid "Yes"
2015
  msgstr ""
2016
 
2017
- #: includes/class-mla-data.php:3858
2018
  #: includes/class-mla-settings-custom-fields-tab.php:842
2019
  #: includes/class-mla-settings-custom-fields-tab.php:1565
2020
  #: includes/class-mla-settings-iptc-exif-tab.php:982
@@ -2027,85 +2037,85 @@ msgstr ""
2027
  msgid "No"
2028
  msgstr ""
2029
 
2030
- #: includes/class-mla-data.php:4105 includes/class-mla-data.php:4229
2031
  #, php-format
2032
  msgid "Deleting %1$s"
2033
  msgstr ""
2034
 
2035
- #: includes/class-mla-data.php:4108
2036
  #, php-format
2037
  msgid "%1$s: meta:%2$s not found"
2038
  msgstr ""
2039
 
2040
- #: includes/class-mla-data.php:4117 includes/class-mla-data.php:4240
2041
- #: includes/class-mla-data.php:4252
2042
  #, php-format
2043
  msgid "Adding %1$s = %2$s"
2044
  msgstr ""
2045
 
2046
- #: includes/class-mla-data.php:4121
2047
  #, php-format
2048
  msgid "%1$s: Adding meta:%2$s; not found"
2049
  msgstr ""
2050
 
2051
- #: includes/class-mla-data.php:4128
2052
  #, php-format
2053
  msgid "Deleting Null meta:%1$s"
2054
  msgstr ""
2055
 
2056
- #: includes/class-mla-data.php:4138 includes/class-mla-data.php:4321
2057
- #: includes/class-mla-data.php:4408 includes/class-mla-data.php:4432
2058
- #: includes/class-mla-data.php:4475 includes/class-mla-data.php:4488
2059
- #: includes/class-mla-data.php:4497 includes/class-mla-data.php:4508
2060
- #: includes/class-mla-data.php:4519 includes/class-mla-data.php:4532
2061
- #: includes/class-mla-data.php:4541 includes/class-mla-data.php:4550
2062
- #: includes/class-mla-data.php:4559 includes/class-mla-data.php:4568
2063
- #: includes/class-mla-mime-types.php:1300
2064
- #: includes/class-mla-mime-types.php:2412
2065
  #, php-format
2066
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
2067
  msgstr ""
2068
 
2069
- #: includes/class-mla-data.php:4143
2070
  #, php-format
2071
  msgid "%1$s: Changing meta:%2$s; not found"
2072
  msgstr ""
2073
 
2074
- #: includes/class-mla-data.php:4276
2075
  #, php-format
2076
  msgid "Deleting old %1$s values"
2077
  msgstr ""
2078
 
2079
- #: includes/class-mla-data.php:4306
2080
  #, php-format
2081
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
2082
  msgstr ""
2083
 
2084
- #: includes/class-mla-data.php:4383
2085
  msgid "Could not retrieve Attachment."
2086
  msgstr ""
2087
 
2088
- #: includes/class-mla-data.php:4429
2089
  #, php-format
2090
  msgid "%1$s: Could not change Name/Slug \"%2$s\"; name already exists"
2091
  msgstr ""
2092
 
2093
- #: includes/class-mla-data.php:4459
2094
  #, php-format
2095
  msgid "Deleting ALT Text, was \"%1$s\""
2096
  msgstr ""
2097
 
2098
- #: includes/class-mla-data.php:4462
2099
  #, php-format
2100
  msgid "%1$s: Could not delete ALT Text, remains \"%2$s\""
2101
  msgstr ""
2102
 
2103
- #: includes/class-mla-data.php:4478
2104
  #, php-format
2105
  msgid "%1$s: Could not change ALT Text from \"%2$s\" to \"%3$s\""
2106
  msgstr ""
2107
 
2108
- #: includes/class-mla-data.php:4508 includes/class-mla-list-table.php:1131
2109
  #: includes/class-mla-list-table.php:1134
2110
  #: includes/class-mla-list-table.php:1137
2111
  #: includes/class-mla-list-table.php:1205 includes/class-mla-objects.php:158
@@ -2115,81 +2125,78 @@ msgstr ""
2115
  msgid "Parent"
2116
  msgstr ""
2117
 
2118
- #: includes/class-mla-data.php:4519 includes/class-mla-edit-media.php:889
2119
- #: includes/class-mla-edit-media.php:1100 includes/class-mla-main.php:2417
2120
  #: includes/class-mla-settings-view-tab.php:126
2121
  #: includes/class-mla-settings-view-tab.php:389
2122
  msgid "Menu Order"
2123
  msgstr ""
2124
 
2125
- #: includes/class-mla-data.php:4532 includes/class-mla-edit-media.php:449
2126
  #: includes/class-mla-list-table.php:1585
2127
- #: includes/class-mla-list-table.php:1588 includes/class-mla-main.php:2216
2128
- #: includes/class-mla-main.php:2376
2129
  msgid "Author"
2130
  msgstr ""
2131
 
2132
- #: includes/class-mla-data.php:4541 includes/class-mla-edit-media.php:474
2133
- #: includes/class-mla-main.php:2429
2134
  msgid "Comments"
2135
  msgstr ""
2136
 
2137
- #: includes/class-mla-data.php:4550 includes/class-mla-edit-media.php:475
2138
- #: includes/class-mla-main.php:2430
2139
  msgid "Pings"
2140
  msgstr ""
2141
 
2142
- #: includes/class-mla-data.php:4598
2143
  #, php-format
2144
  msgid "You cannot assign \"%1$s\" terms"
2145
  msgstr ""
2146
 
2147
- #: includes/class-mla-data.php:4611
2148
  msgctxt "tag delimiter"
2149
  msgid ","
2150
  msgstr ""
2151
 
2152
- #: includes/class-mla-data.php:4650
2153
  msgid "Adding"
2154
  msgstr ""
2155
 
2156
- #: includes/class-mla-data.php:4655
2157
  msgid "Removing"
2158
  msgstr ""
2159
 
2160
- #: includes/class-mla-data.php:4664
2161
  msgid "Replacing"
2162
  msgstr ""
2163
 
2164
- #: includes/class-mla-data.php:4672
2165
  msgid "Ignoring"
2166
  msgstr ""
2167
 
2168
- #: includes/class-mla-data.php:4689
2169
  #, php-format
2170
  msgid "%1$s \"%2$s\" terms"
2171
  msgstr ""
2172
 
2173
- #: includes/class-mla-data.php:4701 includes/class-mla-main.php:1403
2174
  #, php-format
2175
  msgid "Item %1$d, no changes detected."
2176
  msgstr ""
2177
 
2178
- #: includes/class-mla-data.php:4734
2179
  #, php-format
2180
  msgid "Item %1$d updated."
2181
  msgstr ""
2182
 
2183
- #: includes/class-mla-data.php:4752
2184
  #, php-format
2185
  msgid "%1$s: Item %2$d update failed."
2186
  msgstr ""
2187
 
2188
  #: includes/class-mla-edit-media.php:131 includes/class-mla-edit-media.php:185
2189
- #: includes/class-mla-edit-media.php:238 includes/class-mla-main.php:470
2190
- #: includes/class-mla-main.php:1158 includes/class-mla-main.php:1948
2191
  #: includes/class-mla-media-modal.php:268 includes/class-mla-options.php:1654
2192
- #: includes/class-mla-polylang-support.php:379
2193
  #: includes/class-mla-settings-custom-fields-tab.php:57
2194
  #: includes/class-mla-settings-custom-fields-tab.php:90
2195
  #: includes/class-mla-settings-iptc-exif-tab.php:80
@@ -2205,7 +2212,7 @@ msgstr ""
2205
  msgid "Upload New Media items"
2206
  msgstr ""
2207
 
2208
- #: includes/class-mla-edit-media.php:181 includes/class-mla-edit-media.php:469
2209
  msgid "Open Bulk Edit area"
2210
  msgstr ""
2211
 
@@ -2213,29 +2220,31 @@ msgstr ""
2213
  msgid "Close Bulk Edit area"
2214
  msgstr ""
2215
 
2216
- #: includes/class-mla-edit-media.php:186 includes/class-mla-edit-media.php:240
2217
- #: includes/class-mla-main.php:457
2218
  msgid "An ajax.fail error has occurred. Please reload the page and try again."
2219
  msgstr ""
2220
 
2221
- #: includes/class-mla-edit-media.php:187 includes/class-mla-edit-media.php:241
2222
- #: includes/class-mla-main.php:458
2223
  msgid "An ajax.done error has occurred. Please reload the page and try again."
2224
  msgstr ""
2225
 
2226
- #: includes/class-mla-edit-media.php:242 includes/class-mla-main.php:2157
2227
  #, php-format
2228
  msgid "Uploaded on: %s"
2229
  msgstr ""
2230
 
2231
- #: includes/class-mla-edit-media.php:243 includes/class-mla-edit-media.php:761
2232
  msgid "Last modified"
2233
  msgstr ""
2234
 
2235
- #: includes/class-mla-edit-media.php:321 includes/class-mla-main.php:2071
2236
- #: includes/class-mla-main.php:2210 includes/class-mla-media-modal.php:618
2237
- #: includes/class-mla-mime-types.php:825 includes/class-mla-mime-types.php:1466
2238
- #: includes/class-mla-mime-types.php:2645
 
 
2239
  #: includes/class-mla-settings-custom-fields-tab.php:578
2240
  #: includes/class-mla-settings-custom-fields-tab.php:749
2241
  #: includes/class-mla-settings-custom-fields-tab.php:2079
@@ -2253,36 +2262,64 @@ msgctxt "error_log"
2253
  msgid "%1$s: %2$s non-array \"%3$s\""
2254
  msgstr ""
2255
 
2256
- #: includes/class-mla-edit-media.php:341 includes/class-mla-edit-media.php:397
2257
- #: includes/class-mla-main.php:2252 includes/class-mla-main.php:2318
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2258
  msgid "+&nbsp;Add&nbsp;New&nbsp;Term"
2259
  msgstr ""
2260
 
2261
- #: includes/class-mla-edit-media.php:342 includes/class-mla-edit-media.php:398
2262
- #: includes/class-mla-main.php:2253 includes/class-mla-main.php:2319
2263
  msgid "Add New"
2264
  msgstr ""
2265
 
2266
- #: includes/class-mla-edit-media.php:360 includes/class-mla-edit-media.php:416
2267
- #: includes/class-mla-main.php:2271 includes/class-mla-main.php:2337
2268
  msgid "?&nbsp;Search"
2269
  msgstr ""
2270
 
2271
- #: includes/class-mla-edit-media.php:363 includes/class-mla-edit-media.php:419
2272
- #: includes/class-mla-edit-media.php:428 includes/class-mla-main.php:2274
2273
- #: includes/class-mla-main.php:2340 includes/class-mla-main.php:2349
2274
  msgid "Add"
2275
  msgstr ""
2276
 
2277
- #: includes/class-mla-edit-media.php:364 includes/class-mla-edit-media.php:420
2278
- #: includes/class-mla-edit-media.php:429 includes/class-mla-main.php:2275
2279
- #: includes/class-mla-main.php:2341 includes/class-mla-main.php:2350
2280
  msgid "Remove"
2281
  msgstr ""
2282
 
2283
- #: includes/class-mla-edit-media.php:365 includes/class-mla-edit-media.php:421
2284
- #: includes/class-mla-edit-media.php:430 includes/class-mla-main.php:2276
2285
- #: includes/class-mla-main.php:2342 includes/class-mla-main.php:2351
2286
  #: includes/class-mla-settings-custom-fields-tab.php:502
2287
  #: includes/class-mla-settings-custom-fields-tab.php:812
2288
  #: includes/class-mla-settings-custom-fields-tab.php:1549
@@ -2293,99 +2330,82 @@ msgstr ""
2293
  msgid "Replace"
2294
  msgstr ""
2295
 
2296
- #: includes/class-mla-edit-media.php:468
2297
- msgid ""
2298
- "IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help "
2299
- "menu for more information."
2300
- msgstr ""
2301
-
2302
- #: includes/class-mla-edit-media.php:470 includes/class-mla-main.php:2423
2303
  #: includes/class-mla-settings.php:1391
2304
  msgid "Reset"
2305
  msgstr ""
2306
 
2307
- #: includes/class-mla-edit-media.php:476 includes/class-mla-main.php:2431
2308
- #: includes/class-mla-main.php:2487
2309
- #: includes/class-mla-settings-custom-fields-tab.php:840
2310
- #: includes/class-mla-settings-iptc-exif-tab.php:980
2311
- #: includes/class-mla-settings-upload-tab.php:120
2312
- #: includes/class-mla-settings-upload-tab.php:554
2313
- #: includes/class-mla-settings-view-tab.php:399
2314
- msgid "No Change"
2315
  msgstr ""
2316
 
2317
- #: includes/class-mla-edit-media.php:477 includes/class-mla-main.php:2432
2318
- msgid "Allow"
2319
- msgstr ""
2320
-
2321
- #: includes/class-mla-edit-media.php:478 includes/class-mla-main.php:2433
2322
- msgid "Do not allow"
2323
- msgstr ""
2324
-
2325
- #: includes/class-mla-edit-media.php:486 includes/class-mla-list-table.php:1131
2326
- #: includes/class-mla-list-table.php:1202 includes/class-mla-main.php:2415
2327
- msgid "Parent ID"
2328
  msgstr ""
2329
 
2330
- #: includes/class-mla-edit-media.php:487 includes/class-mla-edit-media.php:1080
2331
- #: includes/class-mla-main.php:2416
2332
- #: includes/class-mla-settings-upload-tab.php:1469
2333
- msgid "Select"
2334
  msgstr ""
2335
 
2336
- #: includes/class-mla-edit-media.php:650
2337
  msgid "Custom field mapping updated."
2338
  msgstr ""
2339
 
2340
- #: includes/class-mla-edit-media.php:651
2341
  msgid "IPTC/EXIF mapping updated."
2342
  msgstr ""
2343
 
2344
- #: includes/class-mla-edit-media.php:652
2345
  msgid "Custom field mapping is disabled."
2346
  msgstr ""
2347
 
2348
- #: includes/class-mla-edit-media.php:653
2349
  msgid "IPTC/EXIF mapping is disabled."
2350
  msgstr ""
2351
 
2352
- #: includes/class-mla-edit-media.php:688 includes/class-mla-main.php:2141
2353
  msgid "Month"
2354
  msgstr ""
2355
 
2356
- #: includes/class-mla-edit-media.php:694 includes/class-mla-main.php:2147
2357
  #, php-format
2358
  msgid "%1$s-%2$s"
2359
  msgstr ""
2360
 
2361
- #: includes/class-mla-edit-media.php:698 includes/class-mla-main.php:2151
2362
  msgid "Day"
2363
  msgstr ""
2364
 
2365
- #: includes/class-mla-edit-media.php:699 includes/class-mla-main.php:2152
2366
  msgid "Year"
2367
  msgstr ""
2368
 
2369
- #: includes/class-mla-edit-media.php:700 includes/class-mla-main.php:2153
2370
  msgid "Hour"
2371
  msgstr ""
2372
 
2373
- #: includes/class-mla-edit-media.php:701 includes/class-mla-main.php:2154
2374
  msgid "Minute"
2375
  msgstr ""
2376
 
2377
- #: includes/class-mla-edit-media.php:705 includes/class-mla-main.php:2159
2378
  #, php-format
2379
  msgid "%1$s %2$s, %3$s @ %4$s:%5$s"
2380
  msgstr ""
2381
 
2382
- #: includes/class-mla-edit-media.php:728
2383
  msgid "OK"
2384
  msgstr ""
2385
 
2386
- #: includes/class-mla-edit-media.php:729 includes/class-mla-main.php:2094
2387
- #: includes/class-mla-main.php:2422
2388
- #: includes/class-mla-polylang-support.php:2083
2389
  #: includes/class-mla-settings-custom-fields-tab.php:530
2390
  #: includes/class-mla-settings-custom-fields-tab.php:761
2391
  #: includes/class-mla-settings-custom-fields-tab.php:843
@@ -2404,19 +2424,19 @@ msgstr ""
2404
  msgid "Cancel"
2405
  msgstr ""
2406
 
2407
- #: includes/class-mla-edit-media.php:745
2408
  msgid "M j, Y @ H:i"
2409
  msgstr ""
2410
 
2411
- #: includes/class-mla-edit-media.php:751 includes/class-mla-list-table.php:696
2412
  #: includes/class-mla-list-table.php:820 includes/class-mla-list-table.php:1086
2413
  #: includes/class-mla-list-table.php:1257
2414
  #: includes/class-mla-list-table.php:1306
2415
  #: includes/class-mla-list-table.php:1352
2416
  #: includes/class-mla-list-table.php:1397
2417
  #: includes/class-mla-list-table.php:1619
2418
- #: includes/class-mla-list-table.php:1972
2419
- #: includes/class-mla-polylang-support.php:378
2420
  #: includes/class-mla-settings-custom-fields-tab.php:1392
2421
  #: includes/class-mla-settings-custom-fields-tab.php:1739
2422
  #: includes/class-mla-settings-iptc-exif-tab.php:1529
@@ -2429,56 +2449,60 @@ msgstr ""
2429
  msgid "Edit"
2430
  msgstr ""
2431
 
2432
- #: includes/class-mla-edit-media.php:752
2433
  msgid "Edit upload date and time"
2434
  msgstr ""
2435
 
2436
- #: includes/class-mla-edit-media.php:754
2437
  msgid "Upload Date and time"
2438
  msgstr ""
2439
 
2440
- #: includes/class-mla-edit-media.php:785
2441
  msgid "Map Custom Field metadata for this item"
2442
  msgstr ""
2443
 
2444
- #: includes/class-mla-edit-media.php:785 includes/class-mla-main.php:1852
2445
- #: includes/class-mla-main.php:2438
2446
  msgid "Map Custom Field metadata"
2447
  msgstr ""
2448
 
2449
- #: includes/class-mla-edit-media.php:789
2450
  msgid "Map IPTC/EXIF metadata for this item"
2451
  msgstr ""
2452
 
2453
- #: includes/class-mla-edit-media.php:789 includes/class-mla-main.php:1855
2454
- #: includes/class-mla-main.php:2436
2455
  msgid "Map IPTC/EXIF metadata"
2456
  msgstr ""
2457
 
2458
- #: includes/class-mla-edit-media.php:885 includes/class-mla-edit-media.php:1081
 
2459
  msgid "Parent Info"
2460
  msgstr ""
2461
 
2462
- #: includes/class-mla-edit-media.php:895 includes/class-mla-edit-media.php:1124
 
2463
  msgid "Attachment Metadata"
2464
  msgstr ""
2465
 
2466
- #: includes/class-mla-edit-media.php:901 includes/class-mla-edit-media.php:1143
 
2467
  msgid "Attachment File Metadata"
2468
  msgstr ""
2469
 
2470
- #: includes/class-mla-edit-media.php:971 includes/class-mla-edit-media.php:1013
2471
- #: includes/class-mla-main.php:709 includes/class-mla-settings.php:586
 
2472
  #, php-format
2473
  msgctxt "error_log"
2474
  msgid "%1$s: %2$s discarding \"%3$s\"; no title/order"
2475
  msgstr ""
2476
 
2477
- #: includes/class-mla-edit-media.php:1079
2478
  msgid "Post Parent"
2479
  msgstr ""
2480
 
2481
- #: includes/class-mla-edit-media.php:1080 includes/class-mla-main.php:2076
2482
  msgid "Select Parent"
2483
  msgstr ""
2484
 
@@ -2530,7 +2554,7 @@ msgstr ""
2530
  msgid "Restore this item from the Trash"
2531
  msgstr ""
2532
 
2533
- #: includes/class-mla-list-table.php:809 includes/class-mla-list-table.php:1969
2534
  msgid "Restore"
2535
  msgstr ""
2536
 
@@ -2551,7 +2575,7 @@ msgstr ""
2551
  msgid "Edit this item inline"
2552
  msgstr ""
2553
 
2554
- #: includes/class-mla-list-table.php:821 includes/class-mla-main.php:2406
2555
  #: includes/class-mla-options.php:1244
2556
  #: includes/class-mla-settings-custom-fields-tab.php:493
2557
  #: includes/class-mla-settings-custom-fields-tab.php:803
@@ -2568,7 +2592,7 @@ msgstr ""
2568
  msgid "Move this item to the Trash"
2569
  msgstr ""
2570
 
2571
- #: includes/class-mla-list-table.php:827 includes/class-mla-list-table.php:1975
2572
  msgid "Move to Trash"
2573
  msgstr ""
2574
 
@@ -2581,8 +2605,8 @@ msgstr ""
2581
  msgid "Delete this item Permanently"
2582
  msgstr ""
2583
 
2584
- #: includes/class-mla-list-table.php:832 includes/class-mla-list-table.php:1970
2585
- #: includes/class-mla-list-table.php:1977
2586
  #: includes/class-mla-settings-custom-fields-tab.php:1403
2587
  #: includes/class-mla-settings-custom-fields-tab.php:1740
2588
  #: includes/class-mla-settings-iptc-exif-tab.php:1542
@@ -2594,7 +2618,7 @@ msgstr ""
2594
  msgid "Delete Permanently"
2595
  msgstr ""
2596
 
2597
- #: includes/class-mla-list-table.php:840 includes/class-mla-list-table.php:1982
2598
  #: includes/class-mla-settings-documentation-tab.php:673
2599
  #: includes/class-mla-settings.php:1381
2600
  msgid "Download"
@@ -2653,33 +2677,33 @@ msgid_plural "All"
2653
  msgstr[0] ""
2654
  msgstr[1] ""
2655
 
2656
- #: includes/class-mla-list-table.php:2071
2657
  #: includes/class-mla-settings-custom-fields-tab.php:1803
2658
  #: includes/class-mla-settings-iptc-exif-tab.php:1969
2659
  #: includes/class-mla-settings-shortcodes-tab.php:1361
2660
  msgid "Filter"
2661
  msgstr ""
2662
 
2663
- #: includes/class-mla-list-table.php:2074
2664
  #: includes/mla-media-modal-js-template.php:70
2665
  msgid "Terms Search"
2666
  msgstr ""
2667
 
2668
- #: includes/class-mla-list-table.php:2079
2669
- #: includes/class-mla-polylang-support.php:2090
2670
  #: includes/class-mla-thumbnail-generation.php:657
2671
  msgid "Clear Filter-by"
2672
  msgstr ""
2673
 
2674
- #: includes/class-mla-list-table.php:2082
2675
  msgid "Empty Trash"
2676
  msgstr ""
2677
 
2678
- #: includes/class-mla-main.php:459
2679
  msgid "Error while saving the changes."
2680
  msgstr ""
2681
 
2682
- #: includes/class-mla-main.php:460
2683
  #: includes/class-mla-settings-custom-fields-tab.php:55
2684
  #: includes/class-mla-settings-custom-fields-tab.php:88
2685
  #: includes/class-mla-settings-iptc-exif-tab.php:78
@@ -2689,101 +2713,101 @@ msgstr ""
2689
  msgid "Remove From Bulk Edit"
2690
  msgstr ""
2691
 
2692
- #: includes/class-mla-main.php:462
2693
  msgid "Bulk Edit items"
2694
  msgstr ""
2695
 
2696
- #: includes/class-mla-main.php:463 includes/class-mla-main.php:2439
2697
  #: includes/class-mla-settings-custom-fields-tab.php:61
2698
  #: includes/class-mla-settings-iptc-exif-tab.php:84
2699
  msgid "Waiting"
2700
  msgstr ""
2701
 
2702
- #: includes/class-mla-main.php:464 includes/class-mla-main.php:2441
2703
  #: includes/class-mla-settings-custom-fields-tab.php:63
2704
  #: includes/class-mla-settings-iptc-exif-tab.php:86
2705
  msgid "Complete"
2706
  msgstr ""
2707
 
2708
- #: includes/class-mla-main.php:465
2709
  #: includes/class-mla-settings-custom-fields-tab.php:64
2710
  #: includes/class-mla-settings-iptc-exif-tab.php:87
2711
  msgid "Unchanged"
2712
  msgstr ""
2713
 
2714
- #: includes/class-mla-main.php:466
2715
  #: includes/class-mla-settings-custom-fields-tab.php:65
2716
  #: includes/class-mla-settings-iptc-exif-tab.php:88
2717
  msgid "Succeeded"
2718
  msgstr ""
2719
 
2720
- #: includes/class-mla-main.php:467
2721
  #: includes/class-mla-settings-custom-fields-tab.php:66
2722
  #: includes/class-mla-settings-iptc-exif-tab.php:89
2723
  msgid "Failed"
2724
  msgstr ""
2725
 
2726
- #: includes/class-mla-main.php:468
2727
  msgid "CANCELED"
2728
  msgstr ""
2729
 
2730
- #: includes/class-mla-main.php:606
2731
  #, php-format
2732
  msgid "Item permanently deleted."
2733
  msgid_plural "%d items permanently deleted."
2734
  msgstr[0] ""
2735
  msgstr[1] ""
2736
 
2737
- #: includes/class-mla-main.php:611 includes/class-mla-main.php:2626
2738
  #, php-format
2739
  msgid "Item %1$d moved to Trash."
2740
  msgstr ""
2741
 
2742
- #: includes/class-mla-main.php:837
2743
  msgid "download path out of bounds."
2744
  msgstr ""
2745
 
2746
- #: includes/class-mla-main.php:839
2747
  msgid "download path invalid."
2748
  msgstr ""
2749
 
2750
- #: includes/class-mla-main.php:842
2751
  msgid "download argument(s) not set."
2752
  msgstr ""
2753
 
2754
- #: includes/class-mla-main.php:902
2755
  msgid "no ZipArchive support."
2756
  msgstr ""
2757
 
2758
- #: includes/class-mla-main.php:934
2759
  #, php-format
2760
  msgid "The ZIP archive ( %1$s ) could not be created."
2761
  msgstr ""
2762
 
2763
- #: includes/class-mla-main.php:944
2764
  #, php-format
2765
  msgid "The file ( %1$s ) could not be added to the ZIP archive."
2766
  msgstr ""
2767
 
2768
- #: includes/class-mla-main.php:951
2769
  #, php-format
2770
  msgid "The ZIP archive ( %1$s ) could not be closed."
2771
  msgstr ""
2772
 
2773
- #: includes/class-mla-main.php:1337
2774
  msgid "You are not allowed to edit Attachment: "
2775
  msgstr ""
2776
 
2777
- #: includes/class-mla-main.php:1393
2778
  #, php-format
2779
  msgid "%1$s: Unknown bulk action %2$s"
2780
  msgstr ""
2781
 
2782
- #: includes/class-mla-main.php:1415
2783
  msgid "no changes detected"
2784
  msgstr ""
2785
 
2786
- #: includes/class-mla-main.php:1462
2787
  #: includes/class-mla-settings-custom-fields-tab.php:635
2788
  #: includes/class-mla-settings-documentation-tab.php:287
2789
  #: includes/class-mla-settings-iptc-exif-tab.php:775
@@ -2794,16 +2818,16 @@ msgstr ""
2794
  msgid "Bulk Action %1$s - no items selected."
2795
  msgstr ""
2796
 
2797
- #: includes/class-mla-main.php:1557
2798
  msgid "You do not have permission to manage attachments."
2799
  msgstr ""
2800
 
2801
- #: includes/class-mla-main.php:1560
2802
  msgctxt "file"
2803
  msgid "Add New"
2804
  msgstr ""
2805
 
2806
- #: includes/class-mla-main.php:1615
2807
  #, php-format
2808
  msgctxt "deleted items"
2809
  msgid "%s item deleted."
@@ -2811,15 +2835,15 @@ msgid_plural "%s items deleted."
2811
  msgstr[0] ""
2812
  msgstr[1] ""
2813
 
2814
- #: includes/class-mla-main.php:1617
2815
  msgid "No items deleted."
2816
  msgstr ""
2817
 
2818
- #: includes/class-mla-main.php:1676
2819
  msgid "Empty Terms Search; ignored"
2820
  msgstr ""
2821
 
2822
- #: includes/class-mla-main.php:1688
2823
  #: includes/class-mla-settings-custom-fields-tab.php:663
2824
  #: includes/class-mla-settings-documentation-tab.php:321
2825
  #: includes/class-mla-settings-iptc-exif-tab.php:803
@@ -2830,20 +2854,20 @@ msgstr ""
2830
  msgid "Unknown mla_admin_action - \"%1$s\""
2831
  msgstr ""
2832
 
2833
- #: includes/class-mla-main.php:1733
2834
  msgid "term search results for"
2835
  msgstr ""
2836
 
2837
- #: includes/class-mla-main.php:1736
2838
  msgid "post/parent results for"
2839
  msgstr ""
2840
 
2841
- #: includes/class-mla-main.php:1738
2842
  msgid "search results for"
2843
  msgstr ""
2844
 
2845
- #: includes/class-mla-main.php:1858 includes/class-mla-main.php:2098
2846
- #: includes/class-mla-main.php:2424
2847
  #: includes/class-mla-settings-custom-fields-tab.php:532
2848
  #: includes/class-mla-settings-custom-fields-tab.php:844
2849
  #: includes/class-mla-settings-documentation-tab.php:664
@@ -2858,20 +2882,20 @@ msgstr ""
2858
  msgid "Update"
2859
  msgstr ""
2860
 
2861
- #: includes/class-mla-main.php:2033
2862
  msgid "All Post Types"
2863
  msgstr ""
2864
 
2865
- #: includes/class-mla-main.php:2079
2866
  msgid "For"
2867
  msgstr ""
2868
 
2869
- #: includes/class-mla-main.php:2089
2870
- #: includes/class-mla-shortcode-support.php:1244
2871
  msgid "Unattached"
2872
  msgstr ""
2873
 
2874
- #: includes/class-mla-main.php:2425 includes/class-mla-options.php:1258
2875
  #: includes/class-mla-settings-custom-fields-tab.php:496
2876
  #: includes/class-mla-settings-custom-fields-tab.php:806
2877
  #: includes/class-mla-settings-custom-fields-tab.php:1509
@@ -2881,43 +2905,43 @@ msgstr ""
2881
  msgid "Bulk Edit"
2882
  msgstr ""
2883
 
2884
- #: includes/class-mla-main.php:2440
2885
  msgid "In-process"
2886
  msgstr ""
2887
 
2888
- #: includes/class-mla-main.php:2539
2889
  msgid "You are not allowed to delete this item."
2890
  msgstr ""
2891
 
2892
- #: includes/class-mla-main.php:2547
2893
  #, php-format
2894
  msgid "%1$s: Item %2$d could NOT be deleted."
2895
  msgstr ""
2896
 
2897
- #: includes/class-mla-main.php:2554
2898
  #, php-format
2899
  msgid "Item %1$d permanently deleted."
2900
  msgstr ""
2901
 
2902
- #: includes/class-mla-main.php:2571
2903
  msgid "You are not allowed to move this item out of the Trash."
2904
  msgstr ""
2905
 
2906
- #: includes/class-mla-main.php:2579
2907
  #, php-format
2908
  msgid "%1$s: Item %2$d could NOT be restored from Trash."
2909
  msgstr ""
2910
 
2911
- #: includes/class-mla-main.php:2594
2912
  #, php-format
2913
  msgid "Item %1$d restored from Trash."
2914
  msgstr ""
2915
 
2916
- #: includes/class-mla-main.php:2611
2917
  msgid "You are not allowed to move this item to the Trash."
2918
  msgstr ""
2919
 
2920
- #: includes/class-mla-main.php:2619
2921
  #, php-format
2922
  msgid "%1$s: Item %2$d could NOT be moved to Trash."
2923
  msgstr ""
@@ -3089,196 +3113,196 @@ msgctxt "post_mime_types_description"
3089
  msgid "Copied from previous filter/plugin"
3090
  msgstr ""
3091
 
3092
- #: includes/class-mla-mime-types.php:1195
3093
- #: includes/class-mla-mime-types.php:1312
3094
  msgid "Ignoring specification for Post MIME Type; using slug"
3095
  msgstr ""
3096
 
3097
- #: includes/class-mla-mime-types.php:1201
3098
- #: includes/class-mla-mime-types.php:2281
3099
  #, php-format
3100
  msgid "<br>Changing %1$s \"%2$s\" to valid value \"%3$s\""
3101
  msgstr ""
3102
 
3103
- #: includes/class-mla-mime-types.php:1201
3104
- #: includes/class-mla-mime-types.php:1289
3105
- #: includes/class-mla-mime-types.php:1300
3106
  #: includes/class-mla-settings-view-tab.php:115
3107
  #: includes/class-mla-settings-view-tab.php:378
3108
  msgid "Slug"
3109
  msgstr ""
3110
 
3111
- #: includes/class-mla-mime-types.php:1209
3112
- #: includes/class-mla-mime-types.php:1297
3113
  #, php-format
3114
  msgid "%1$s: Could not add Slug \"%2$s\"; value already exists"
3115
  msgstr ""
3116
 
3117
- #: includes/class-mla-mime-types.php:1244
3118
  #, php-format
3119
  msgid "Edit view \"%1$s\"; added"
3120
  msgstr ""
3121
 
3122
- #: includes/class-mla-mime-types.php:1289
3123
- #: includes/class-mla-mime-types.php:2403
3124
  #, php-format
3125
  msgid "<br>Changing new %1$s \"%2$s\" to valid value \"%3$s\""
3126
  msgstr ""
3127
 
3128
- #: includes/class-mla-mime-types.php:1342
3129
  #, php-format
3130
  msgid "Edit view \"%1$s\"; no changes detected"
3131
  msgstr ""
3132
 
3133
- #: includes/class-mla-mime-types.php:1356
3134
  #, php-format
3135
  msgid "Edit view \"%1$s\"; updated"
3136
  msgstr ""
3137
 
3138
- #: includes/class-mla-mime-types.php:1429
3139
  #, php-format
3140
  msgid "View \"%1$s\" reverted to standard"
3141
  msgstr ""
3142
 
3143
- #: includes/class-mla-mime-types.php:1435
3144
  #, php-format
3145
  msgid "View \"%1$s\" deleted"
3146
  msgstr ""
3147
 
3148
- #: includes/class-mla-mime-types.php:1443
3149
  #, php-format
3150
  msgid "%1$s: Did not find view \"%2$s\""
3151
  msgstr ""
3152
 
3153
- #: includes/class-mla-mime-types.php:1700
3154
  #: includes/class-mla-settings-documentation-tab.php:1553
3155
  msgctxt "table_view_singular"
3156
  msgid "Active"
3157
  msgstr ""
3158
 
3159
- #: includes/class-mla-mime-types.php:1701
3160
  #: includes/class-mla-settings-documentation-tab.php:1554
3161
  msgctxt "table_view_plural"
3162
  msgid "Active"
3163
  msgstr ""
3164
 
3165
- #: includes/class-mla-mime-types.php:1704
3166
  #: includes/class-mla-settings-documentation-tab.php:1557
3167
  msgctxt "table_view_singular"
3168
  msgid "Inactive"
3169
  msgstr ""
3170
 
3171
- #: includes/class-mla-mime-types.php:1705
3172
  #: includes/class-mla-settings-documentation-tab.php:1558
3173
  msgctxt "table_view_plural"
3174
  msgid "Inactive"
3175
  msgstr ""
3176
 
3177
- #: includes/class-mla-mime-types.php:1708
3178
  msgctxt "table_view_singular"
3179
  msgid "WordPress"
3180
  msgstr ""
3181
 
3182
- #: includes/class-mla-mime-types.php:1709
3183
  msgctxt "table_view_plural"
3184
  msgid "WordPress"
3185
  msgstr ""
3186
 
3187
- #: includes/class-mla-mime-types.php:1712
3188
  msgctxt "table_view_singular"
3189
  msgid "MLA"
3190
  msgstr ""
3191
 
3192
- #: includes/class-mla-mime-types.php:1713
3193
  msgctxt "table_view_plural"
3194
  msgid "MLA"
3195
  msgstr ""
3196
 
3197
- #: includes/class-mla-mime-types.php:1716
3198
  #: includes/class-mla-settings-iptc-exif-tab.php:2857
3199
  msgctxt "table_view_singular"
3200
  msgid "Custom"
3201
  msgstr ""
3202
 
3203
- #: includes/class-mla-mime-types.php:1717
3204
  #: includes/class-mla-settings-iptc-exif-tab.php:2858
3205
  msgctxt "table_view_plural"
3206
  msgid "Custom"
3207
  msgstr ""
3208
 
3209
- #: includes/class-mla-mime-types.php:1972
3210
  msgid "icon"
3211
  msgstr ""
3212
 
3213
- #: includes/class-mla-mime-types.php:2265
3214
- #: includes/class-mla-mime-types.php:2364
3215
  msgid "Cannot load Upload MIME Types"
3216
  msgstr ""
3217
 
3218
- #: includes/class-mla-mime-types.php:2276
3219
  msgid "Extension is required"
3220
  msgstr ""
3221
 
3222
- #: includes/class-mla-mime-types.php:2281
3223
- #: includes/class-mla-mime-types.php:2403
3224
- #: includes/class-mla-mime-types.php:2412
3225
  #: includes/class-mla-settings-upload-tab.php:190
3226
  #: includes/class-mla-settings-upload-tab.php:535
3227
  msgid "Extension"
3228
  msgstr ""
3229
 
3230
- #: includes/class-mla-mime-types.php:2289
3231
  #, php-format
3232
  msgid "%1$s: Could not add extension \"%2$s\"; value already exists"
3233
  msgstr ""
3234
 
3235
- #: includes/class-mla-mime-types.php:2297
3236
  msgid "MIME type is required"
3237
  msgstr ""
3238
 
3239
- #: includes/class-mla-mime-types.php:2302
3240
- #: includes/class-mla-mime-types.php:2444
3241
  #, php-format
3242
  msgid "%1$s: Bad MIME type; try \"%2$s\""
3243
  msgstr ""
3244
 
3245
- #: includes/class-mla-mime-types.php:2339
3246
  #, php-format
3247
  msgid "Upload MIME Type \"%1$s\"; added"
3248
  msgstr ""
3249
 
3250
- #: includes/class-mla-mime-types.php:2345
3251
- #: includes/class-mla-mime-types.php:2525
3252
- #: includes/class-mla-mime-types.php:2604
3253
  msgid "Cannot update Upload MIME Types"
3254
  msgstr ""
3255
 
3256
- #: includes/class-mla-mime-types.php:2409
3257
  #, php-format
3258
  msgid "%1$s: Could not add new extension \"%2$s\"; value already exists"
3259
  msgstr ""
3260
 
3261
- #: includes/class-mla-mime-types.php:2505
3262
  #, php-format
3263
  msgid "Edit type \"%1$s\"; no changes detected"
3264
  msgstr ""
3265
 
3266
- #: includes/class-mla-mime-types.php:2519
3267
  #, php-format
3268
  msgid "Edit type \"%1$s\"; updated"
3269
  msgstr ""
3270
 
3271
- #: includes/class-mla-mime-types.php:2592
3272
  #, php-format
3273
  msgid "Upload MIME Type \"%1$s\"; reverted to standard"
3274
  msgstr ""
3275
 
3276
- #: includes/class-mla-mime-types.php:2598
3277
  #, php-format
3278
  msgid "Upload MIME Type \"%1$s\"; deleted"
3279
  msgstr ""
3280
 
3281
- #: includes/class-mla-mime-types.php:2613
3282
  #, php-format
3283
  msgid "%1$s: Did not find Upload type \"%2$s\""
3284
  msgstr ""
@@ -3695,167 +3719,167 @@ msgstr ""
3695
  msgid "Delimiter(s)"
3696
  msgstr ""
3697
 
3698
- #: includes/class-mla-polylang-support.php:264
3699
  msgid "ERROR: No post ID found"
3700
  msgstr ""
3701
 
3702
- #: includes/class-mla-polylang-support.php:373
3703
  msgid "Error while saving the translations."
3704
  msgstr ""
3705
 
3706
- #: includes/class-mla-polylang-support.php:374
3707
  msgid "Remove From Bulk Translate"
3708
  msgstr ""
3709
 
3710
- #: includes/class-mla-polylang-support.php:376
3711
  msgid "Bulk Translate items"
3712
  msgstr ""
3713
 
3714
- #: includes/class-mla-polylang-support.php:377
3715
  msgid "Add new"
3716
  msgstr ""
3717
 
3718
- #: includes/class-mla-polylang-support.php:1921
3719
- #: includes/class-mla-polylang-support.php:2286
3720
  msgid "Bulk Translations"
3721
  msgstr ""
3722
 
3723
- #: includes/class-mla-polylang-support.php:1945
3724
  msgid "Translate"
3725
  msgstr ""
3726
 
3727
- #: includes/class-mla-polylang-support.php:2073
3728
  msgid "All Languages"
3729
  msgstr ""
3730
 
3731
- #: includes/class-mla-polylang-support.php:2080
3732
- #: includes/class-mla-polylang-support.php:2351
3733
- #: includes/class-mla-polylang-support.php:2511
3734
  msgid "Quick Translate"
3735
  msgstr ""
3736
 
3737
- #: includes/class-mla-polylang-support.php:2084
3738
  msgid "Set Language"
3739
  msgstr ""
3740
 
3741
- #: includes/class-mla-polylang-support.php:2085
3742
- #: includes/class-mla-polylang-support.php:2518
3743
  msgid "Bulk Translate"
3744
  msgstr ""
3745
 
3746
- #: includes/class-mla-polylang-support.php:2086
3747
  msgid "Add or Modify Translation"
3748
  msgstr ""
3749
 
3750
- #: includes/class-mla-polylang-support.php:2087
3751
- #: includes/class-mla-polylang-support.php:2142
3752
- #: includes/class-mla-polylang-support.php:2455
3753
- #: includes/class-mla-polylang-support.php:2570
3754
  #: includes/class-mla-wpml-support.php:1607
3755
  #: includes/class-mla-wpml-support.php:1697
3756
  #: includes/class-mla-wpml-support.php:2182
3757
  msgid "Language"
3758
  msgstr ""
3759
 
3760
- #: includes/class-mla-polylang-support.php:2089
3761
  #: includes/class-mla-thumbnail-generation.php:656
3762
  msgid "Options"
3763
  msgstr ""
3764
 
3765
- #: includes/class-mla-polylang-support.php:2351
3766
  msgid "Translate this item inline"
3767
  msgstr ""
3768
 
3769
- #: includes/class-mla-polylang-support.php:2492
3770
- #: includes/class-mla-polylang-support.php:2597
3771
  #: includes/class-mla-wpml-support.php:1642
3772
  #: includes/class-mla-wpml-support.php:1745
3773
  msgid "Media/Assistant submenu table"
3774
  msgstr ""
3775
 
3776
- #: includes/class-mla-polylang-support.php:2497
3777
  #: includes/class-mla-wpml-support.php:1647
3778
  msgid "Language Column"
3779
  msgstr ""
3780
 
3781
- #: includes/class-mla-polylang-support.php:2500
3782
  #: includes/class-mla-wpml-support.php:1650
3783
  msgid ""
3784
  "Check this option to add a Language column to the Media/Assistant submenu "
3785
  "table."
3786
  msgstr ""
3787
 
3788
- #: includes/class-mla-polylang-support.php:2504
3789
  #: includes/class-mla-wpml-support.php:1654
3790
  msgid "Translations Column"
3791
  msgstr ""
3792
 
3793
- #: includes/class-mla-polylang-support.php:2507
3794
  #: includes/class-mla-wpml-support.php:1657
3795
  msgid ""
3796
  "Check this option to add a Translation Status column to the Media/Assistant "
3797
  "submenu table."
3798
  msgstr ""
3799
 
3800
- #: includes/class-mla-polylang-support.php:2514
3801
  msgid ""
3802
  "Check this option to add a Quick Translate rollover action to the Media/"
3803
  "Assistant submenu table."
3804
  msgstr ""
3805
 
3806
- #: includes/class-mla-polylang-support.php:2521
3807
  msgid ""
3808
  "Check this option to add \"Translate\" to the \"Bulk Actions\" control on "
3809
  "the Media/Assistant submenu table."
3810
  msgstr ""
3811
 
3812
- #: includes/class-mla-polylang-support.php:2525
3813
- #: includes/class-mla-polylang-support.php:2597
3814
  #: includes/class-mla-wpml-support.php:1661
3815
  #: includes/class-mla-wpml-support.php:1745
3816
  msgid "Term Management"
3817
  msgstr ""
3818
 
3819
- #: includes/class-mla-polylang-support.php:2530
3820
  #: includes/class-mla-wpml-support.php:1666
3821
  msgid "Term Assignment"
3822
  msgstr ""
3823
 
3824
- #: includes/class-mla-polylang-support.php:2533
3825
  #: includes/class-mla-wpml-support.php:1669
3826
  msgid ""
3827
  "Check this option to assign language-specific terms when items are updated."
3828
  msgstr ""
3829
 
3830
- #: includes/class-mla-polylang-support.php:2537
3831
  #: includes/class-mla-wpml-support.php:1673
3832
  msgid "Term Synchronization"
3833
  msgstr ""
3834
 
3835
- #: includes/class-mla-polylang-support.php:2540
3836
  #: includes/class-mla-wpml-support.php:1676
3837
  msgid ""
3838
  "Check this option to synchronize common terms among all item translations."
3839
  msgstr ""
3840
 
3841
- #: includes/class-mla-polylang-support.php:2544
3842
  #: includes/class-mla-wpml-support.php:1680
3843
  msgid "Term Mapping Replication"
3844
  msgstr ""
3845
 
3846
- #: includes/class-mla-polylang-support.php:2547
3847
  #: includes/class-mla-wpml-support.php:1683
3848
  msgid ""
3849
  "When mapping IPTC/EXIF metadata to taxonomy terms, make them available in "
3850
  "all languages."
3851
  msgstr ""
3852
 
3853
- #: includes/class-mla-polylang-support.php:2595
3854
  #: includes/class-mla-wpml-support.php:1743
3855
  msgid "Language Options"
3856
  msgstr ""
3857
 
3858
- #: includes/class-mla-polylang-support.php:2597
3859
  #, php-format
3860
  msgid ""
3861
  "In this tab you can find a number of options for controlling Polylang-"
@@ -3864,7 +3888,7 @@ msgid ""
3864
  "make."
3865
  msgstr ""
3866
 
3867
- #: includes/class-mla-polylang-support.php:2599
3868
  #: includes/class-mla-wpml-support.php:1747
3869
  #, php-format
3870
  msgid ""
@@ -3872,17 +3896,17 @@ msgid ""
3872
  "section of the Documentation."
3873
  msgstr ""
3874
 
3875
- #: includes/class-mla-polylang-support.php:2599
3876
  #: includes/class-mla-wpml-support.php:1747
3877
  msgid "Language Options documentation"
3878
  msgstr ""
3879
 
3880
- #: includes/class-mla-polylang-support.php:2599
3881
  #: includes/class-mla-wpml-support.php:1747
3882
  msgid "WPML &amp; Polylang Multilingual Support; the MLA Language Tab"
3883
  msgstr ""
3884
 
3885
- #: includes/class-mla-polylang-support.php:2602
3886
  #: includes/class-mla-settings-custom-fields-tab.php:686
3887
  #: includes/class-mla-settings-custom-fields-tab.php:787
3888
  #: includes/class-mla-settings-iptc-exif-tab.php:826
@@ -3898,23 +3922,23 @@ msgstr ""
3898
  msgid "Save Changes"
3899
  msgstr ""
3900
 
3901
- #: includes/class-mla-polylang-support.php:2603
3902
  #: includes/class-mla-wpml-support.php:1751
3903
  msgid "Delete Language options and restore default settings"
3904
  msgstr ""
3905
 
3906
- #: includes/class-mla-polylang-support.php:2606
3907
  #: includes/class-mla-settings.php:799 includes/class-mla-settings.php:1066
3908
  #: includes/class-mla-wpml-support.php:1754
3909
  msgid "Go to Top"
3910
  msgstr ""
3911
 
3912
- #: includes/class-mla-polylang-support.php:2643
3913
  #: includes/class-mla-wpml-support.php:1791
3914
  msgid "Language settings saved."
3915
  msgstr ""
3916
 
3917
- #: includes/class-mla-polylang-support.php:2674
3918
  #: includes/class-mla-settings.php:1642
3919
  #: includes/class-mla-wpml-support.php:1822
3920
  #, php-format
@@ -3922,7 +3946,7 @@ msgctxt "message_list"
3922
  msgid "delete_option \"%1$s\""
3923
  msgstr ""
3924
 
3925
- #: includes/class-mla-polylang-support.php:2682
3926
  #: includes/class-mla-wpml-support.php:1830
3927
  msgid "Language settings reset to default values."
3928
  msgstr ""
@@ -4159,13 +4183,6 @@ msgstr ""
4159
  msgid "Single"
4160
  msgstr ""
4161
 
4162
- #: includes/class-mla-settings-custom-fields-tab.php:516
4163
- #: includes/class-mla-settings-custom-fields-tab.php:826
4164
- #: includes/class-mla-settings-iptc-exif-tab.php:576
4165
- #: includes/class-mla-settings-iptc-exif-tab.php:965
4166
- msgid "Export"
4167
- msgstr ""
4168
-
4169
  #: includes/class-mla-settings-custom-fields-tab.php:518
4170
  #: includes/class-mla-settings-custom-fields-tab.php:828
4171
  #: includes/class-mla-settings-iptc-exif-tab.php:578
@@ -5722,180 +5739,177 @@ msgstr ""
5722
  msgid "Settings imported; %1$s updated, %2$s unchanged."
5723
  msgstr ""
5724
 
5725
- #: includes/class-mla-shortcode-support.php:523
5726
- #: includes/class-mla-shortcode-support.php:2024
5727
- #: includes/class-mla-shortcode-support.php:4416
5728
- #: includes/class-mla-shortcode-support.php:4722
5729
  msgid "Previous"
5730
  msgstr ""
5731
 
5732
- #: includes/class-mla-shortcode-support.php:524
5733
- #: includes/class-mla-shortcode-support.php:2025
5734
- #: includes/class-mla-shortcode-support.php:4463
5735
- #: includes/class-mla-shortcode-support.php:4728
5736
  msgid "Next"
5737
  msgstr ""
5738
 
5739
- #: includes/class-mla-shortcode-support.php:600
5740
- #: includes/class-mla-shortcode-support.php:606
5741
- #: includes/class-mla-shortcode-support.php:2171
5742
- #: includes/class-mla-shortcode-support.php:2178
5743
- #: includes/class-mla-shortcode-support.php:3650
5744
- #: includes/class-mla-shortcode-support.php:3657
5745
  #: includes/class-mla-template-support.php:598
5746
  msgid "not found"
5747
  msgstr ""
5748
 
5749
- #: includes/class-mla-shortcode-support.php:637
5750
- #: includes/class-mla-shortcode-support.php:2163
5751
- #: includes/class-mla-shortcode-support.php:3642
5752
  msgid "mla_debug REQUEST"
5753
  msgstr ""
5754
 
5755
- #: includes/class-mla-shortcode-support.php:641
5756
- #: includes/class-mla-shortcode-support.php:643
5757
  msgid "mla_debug attributes_errors"
5758
  msgstr ""
5759
 
5760
- #: includes/class-mla-shortcode-support.php:649
5761
- #: includes/class-mla-shortcode-support.php:2164
5762
- #: includes/class-mla-shortcode-support.php:3643
5763
- #: includes/class-mla-shortcode-support.php:6446
5764
  msgid "mla_debug attributes"
5765
  msgstr ""
5766
 
5767
- #: includes/class-mla-shortcode-support.php:650
5768
- #: includes/class-mla-shortcode-support.php:2165
5769
- #: includes/class-mla-shortcode-support.php:3644
5770
- #: includes/class-mla-shortcode-support.php:6447
5771
  msgid "mla_debug arguments"
5772
  msgstr ""
5773
 
5774
- #: includes/class-mla-shortcode-support.php:753
5775
  msgid "mla_debug empty gallery"
5776
  msgstr ""
5777
 
5778
- #: includes/class-mla-shortcode-support.php:784
5779
  msgid ""
5780
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
5781
  "<strong>default</strong>, query = "
5782
  msgstr ""
5783
 
5784
- #: includes/class-mla-shortcode-support.php:1268
5785
  msgid "unknown"
5786
  msgstr ""
5787
 
5788
- #: includes/class-mla-shortcode-support.php:2302
5789
  msgid "mla_debug empty cloud"
5790
  msgstr ""
5791
 
5792
- #: includes/class-mla-shortcode-support.php:2421
5793
  msgid "mla_debug adding ANY terms"
5794
  msgstr ""
5795
 
5796
- #: includes/class-mla-shortcode-support.php:2459
5797
  msgid "mla_debug adding NO terms"
5798
  msgstr ""
5799
 
5800
- #: includes/class-mla-shortcode-support.php:2497
5801
  msgid "mla_debug adding IGNORE terms"
5802
  msgstr ""
5803
 
5804
- #: includes/class-mla-shortcode-support.php:3780
5805
  msgid "mla_debug empty list"
5806
  msgstr ""
5807
 
5808
- #: includes/class-mla-shortcode-support.php:3803
5809
  msgid "no-terms"
5810
  msgstr ""
5811
 
5812
- #: includes/class-mla-shortcode-support.php:5269
5813
- #: includes/class-mla-shortcode-support.php:5339
5814
- #: includes/class-mla-shortcode-support.php:5804
5815
- #: includes/class-mla-shortcode-support.php:5820
5816
- #: includes/class-mla-shortcode-support.php:5843
5817
- #: includes/class-mla-shortcode-support.php:5859
5818
  msgid "Invalid mla_gallery"
5819
  msgstr ""
5820
 
5821
- #: includes/class-mla-shortcode-support.php:6176
5822
- #: includes/class-mla-shortcode-support.php:6531
5823
  msgid "mla_debug query"
5824
  msgstr ""
5825
 
5826
- #: includes/class-mla-shortcode-support.php:6177
5827
  msgid "mla_debug request"
5828
  msgstr ""
5829
 
5830
- #: includes/class-mla-shortcode-support.php:6178
5831
  msgid "mla_debug query_vars"
5832
  msgstr ""
5833
 
5834
- #: includes/class-mla-shortcode-support.php:6179
5835
  msgid "mla_debug post_count"
5836
  msgstr ""
5837
 
5838
- #: includes/class-mla-shortcode-support.php:6180
5839
  msgid "mla_debug found_posts"
5840
  msgstr ""
5841
 
5842
- #: includes/class-mla-shortcode-support.php:6206
5843
  msgid "mla_debug JOIN filter"
5844
  msgstr ""
5845
 
5846
- #: includes/class-mla-shortcode-support.php:6247
5847
  msgid "mla_debug modified JOIN filter"
5848
  msgstr ""
5849
 
5850
- #: includes/class-mla-shortcode-support.php:6272
5851
  msgid "mla_debug WHERE filter"
5852
  msgstr ""
5853
 
5854
- #: includes/class-mla-shortcode-support.php:6309
5855
  msgid "mla_debug modified WHERE filter"
5856
  msgstr ""
5857
 
5858
- #: includes/class-mla-shortcode-support.php:6332
5859
  msgid "mla_debug ORDER BY filter, incoming"
5860
  msgstr ""
5861
 
5862
- #: includes/class-mla-shortcode-support.php:6332
5863
  msgid "Replacement ORDER BY clause"
5864
  msgstr ""
5865
 
5866
- #: includes/class-mla-shortcode-support.php:6373
5867
  msgid "mla_debug posts_clauses filter"
5868
  msgstr ""
5869
 
5870
- #: includes/class-mla-shortcode-support.php:6391
5871
  msgid "mla_debug posts_clauses_request filter"
5872
  msgstr ""
5873
 
5874
- #: includes/class-mla-shortcode-support.php:6532
5875
  msgid "mla_debug results"
5876
  msgstr ""
5877
 
5878
- #: includes/class-mla-shortcode-support.php:6764
5879
  msgid "Invalid taxonomy"
5880
  msgstr ""
5881
 
5882
- #: includes/class-mla-shortcode-support.php:6958
5883
  msgid "mla_debug query arguments"
5884
  msgstr ""
5885
 
5886
- #: includes/class-mla-shortcode-support.php:6959
5887
  msgid "mla_debug last_query"
5888
  msgstr ""
5889
 
5890
- #: includes/class-mla-shortcode-support.php:6960
5891
  msgid "mla_debug last_error"
5892
  msgstr ""
5893
 
5894
- #: includes/class-mla-shortcode-support.php:6961
5895
  msgid "mla_debug num_rows"
5896
  msgstr ""
5897
 
5898
- #: includes/class-mla-shortcode-support.php:6962
5899
  msgid "mla_debug found_rows"
5900
  msgstr ""
5901
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Media Library Assistant\n"
5
+ "POT-Creation-Date: 2022-02-13 12:29-0800\n"
6
  "PO-Revision-Date: 2015-08-21 21:38-0800\n"
7
  "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
8
  "Language-Team: David Lingren <david@davidlingren.com>\n"
24
  #: includes/class-mla-admin-columns-pro-support-423.php:178
25
  #: includes/class-mla-admin-columns-pro-support-44.php:175
26
  #: includes/class-mla-admin-columns-pro-support.php:193
27
+ #: includes/class-mla-ajax.php:463 includes/class-mla-edit-media.php:1365
28
  #: includes/class-mla-list-table.php:712
29
  msgid "Draft"
30
  msgstr ""
32
  #: includes/class-mla-admin-columns-pro-support-423.php:181
33
  #: includes/class-mla-admin-columns-pro-support-44.php:178
34
  #: includes/class-mla-admin-columns-pro-support.php:196
35
+ #: includes/class-mla-ajax.php:457 includes/class-mla-edit-media.php:1359
36
  #: includes/class-mla-list-table.php:715
37
  msgid "Scheduled"
38
  msgstr ""
40
  #: includes/class-mla-admin-columns-pro-support-423.php:184
41
  #: includes/class-mla-admin-columns-pro-support-44.php:181
42
  #: includes/class-mla-admin-columns-pro-support.php:199
43
+ #: includes/class-mla-edit-media.php:1362 includes/class-mla-list-table.php:718
44
  msgctxt "post state"
45
  msgid "Pending"
46
  msgstr ""
74
  #: includes/class-mla-admin-columns-pro-support.php:692
75
  #: includes/class-mla-admin-columns-pro-support.php:759
76
  #: includes/class-mla-admin-columns-pro-support.php:821
77
+ #: includes/class-mla-core-options.php:480
78
+ #: includes/class-mla-core-options.php:490
79
+ #: includes/class-mla-core-options.php:500
80
+ #: includes/class-mla-core-options.php:510
81
  #: includes/class-mla-list-table.php:1234
82
  #: includes/class-mla-list-table.php:1279
83
  #: includes/class-mla-list-table.php:1329
97
  #: includes/class-mla-admin-columns-pro-support.php:715
98
  #: includes/class-mla-admin-columns-pro-support.php:778
99
  #: includes/class-mla-admin-columns-pro-support.php:840
100
+ #: includes/class-mla-edit-media.php:1466
101
+ #: includes/class-mla-edit-media.php:1503
102
+ #: includes/class-mla-edit-media.php:1538
103
+ #: includes/class-mla-edit-media.php:1572
104
  #: includes/class-mla-list-table.php:1252
105
  #: includes/class-mla-list-table.php:1301
106
  #: includes/class-mla-list-table.php:1347
111
  #: includes/class-mla-admin-columns-pro-support-423.php:1027
112
  #: includes/class-mla-admin-columns-pro-support-44.php:1024
113
  #: includes/class-mla-admin-columns-pro-support.php:1065
114
+ #: includes/class-mla-core-options.php:639
115
+ #: includes/class-mla-core-options.php:919
116
+ #: includes/class-mla-core-options.php:950
117
+ #: includes/class-mla-core-options.php:964
118
  #: includes/class-mla-list-table.php:561 includes/class-mla-list-table.php:1487
119
  #: includes/class-mla-settings-shortcodes-tab.php:649
120
  msgid "None"
130
  #: includes/class-mla-admin-columns-pro-support-423.php:1121
131
  #: includes/class-mla-admin-columns-pro-support-44.php:1118
132
  #: includes/class-mla-admin-columns-pro-support.php:1159
133
+ #: includes/class-mla-ajax.php:473 includes/class-mla-list-table.php:1537
134
  #: includes/class-mla-list-table.php:1566
135
  #: includes/class-mla-list-table.php:1630
136
  msgid "Y/m/d"
139
  #: includes/class-mla-admin-columns-pro-support-423.php:1134
140
  #: includes/class-mla-admin-columns-pro-support-44.php:1131
141
  #: includes/class-mla-admin-columns-pro-support.php:1172
142
+ #: includes/class-mla-core-options.php:1366
143
  #: includes/class-mla-list-table.php:1643
144
  msgctxt "table_view_singular"
145
  msgid "Unattached"
147
 
148
  #: includes/class-mla-admin-columns-support-deprecated.php:33
149
  #: includes/class-mla-admin-columns-support.php:43
150
+ #: includes/class-mla-core-options.php:589 includes/class-mla-settings.php:426
151
  #: includes/class-mla-settings.php:1446 includes/class-mla-settings.php:1464
152
  #: index.php:46
153
  msgid "Media Library Assistant"
155
 
156
  #: includes/class-mla-admin-columns-support-deprecated.php:34
157
  #: includes/class-mla-admin-columns-support.php:44
158
+ #: includes/class-mla-core-options.php:598
159
  msgid "Assistant"
160
  msgstr ""
161
 
167
 
168
  #: includes/class-mla-ajax.php:77 includes/class-mla-ajax.php:94
169
  #: includes/class-mla-ajax.php:111 includes/class-mla-ajax.php:129
170
+ #: includes/class-mla-ajax.php:148 includes/class-mla-data-query.php:1383
 
171
  #: includes/class-mla-data-query.php:1399
172
+ #: includes/class-mla-data-query.php:1401
173
+ #: includes/class-mla-data-query.php:1915
174
+ #: includes/class-mla-data-query.php:2006
175
+ #: includes/class-mla-data-query.php:2078
176
+ #: includes/class-mla-data-query.php:2173
177
+ #: includes/class-mla-data-query.php:2259
178
+ #: includes/class-mla-data-query.php:2278
179
  msgid "DEBUG"
180
  msgstr ""
181
 
207
  "\"%3$d\" count = %4$d."
208
  msgstr ""
209
 
210
+ #: includes/class-mla-ajax.php:444 includes/class-mla-core-options.php:1242
211
+ #: includes/class-mla-data.php:4413 includes/class-mla-edit-media.php:383
212
+ #: includes/class-mla-main.php:2079 includes/class-mla-main.php:2406
213
  #: includes/class-mla-objects.php:369 includes/class-mla-options.php:466
214
  #: includes/mla-main-search-box-template.php:47
215
  #: includes/mla-media-modal-js-template.php:38
216
  msgid "Title"
217
  msgstr ""
218
 
219
+ #: includes/class-mla-ajax.php:444 includes/class-mla-main.php:2080
220
  #: includes/class-mla-thumbnail-generation.php:644
221
  msgid "Type"
222
  msgstr ""
223
 
224
+ #: includes/class-mla-ajax.php:444 includes/class-mla-main.php:2081
225
  msgid "Date"
226
  msgstr ""
227
 
228
+ #: includes/class-mla-ajax.php:444 includes/class-mla-main.php:2082
229
  #: includes/class-mla-settings-custom-fields-tab.php:524
230
  #: includes/class-mla-settings-custom-fields-tab.php:834
231
  #: includes/class-mla-settings-iptc-exif-tab.php:585
234
  msgid "Status"
235
  msgstr ""
236
 
237
+ #: includes/class-mla-ajax.php:448 includes/class-mla-list-table.php:963
238
+ #: includes/class-mla-list-table.php:1128 includes/class-mla-main.php:450
239
+ #: includes/class-mla-polylang-support.php:379
240
  #: includes/class-mla-thumbnail-generation.php:97
241
  msgid "(no title)"
242
  msgstr ""
243
 
244
+ #: includes/class-mla-ajax.php:454
245
  msgid "Published"
246
  msgstr ""
247
 
248
+ #: includes/class-mla-ajax.php:460
249
  msgid "Pending Review"
250
  msgstr ""
251
 
252
+ #: includes/class-mla-ajax.php:502 includes/class-mla-ajax.php:509
253
+ #: includes/class-mla-ajax.php:518 includes/class-mla-core.php:934
254
+ #: includes/class-mla-core.php:952 includes/class-mla-core.php:1431
255
+ #: includes/class-mla-core.php:1440 includes/class-mla-core.php:1444
256
  #: includes/class-mla-data-office.php:35 includes/class-mla-data-office.php:40
257
  #: includes/class-mla-data-office.php:50 includes/class-mla-data-office.php:54
258
  #: includes/class-mla-data-office.php:69 includes/class-mla-data-office.php:74
263
  #: includes/class-mla-data.php:196 includes/class-mla-data.php:257
264
  #: includes/class-mla-data.php:325 includes/class-mla-data.php:414
265
  #: includes/class-mla-data.php:566 includes/class-mla-data.php:629
266
+ #: includes/class-mla-data.php:1681 includes/class-mla-data.php:1828
267
+ #: includes/class-mla-data.php:1834 includes/class-mla-data.php:2184
268
+ #: includes/class-mla-data.php:2188 includes/class-mla-data.php:3618
269
+ #: includes/class-mla-data.php:3674 includes/class-mla-data.php:3718
270
+ #: includes/class-mla-data.php:4113 includes/class-mla-data.php:4126
271
+ #: includes/class-mla-data.php:4148 includes/class-mla-data.php:4388
272
+ #: includes/class-mla-data.php:4434 includes/class-mla-data.php:4467
273
+ #: includes/class-mla-data.php:4483 includes/class-mla-data.php:4757
274
+ #: includes/class-mla-edit-media.php:303 includes/class-mla-edit-media.php:373
275
+ #: includes/class-mla-edit-media.php:756 includes/class-mla-edit-media.php:1271
276
+ #: includes/class-mla-edit-media.php:1313 includes/class-mla-main.php:703
277
+ #: includes/class-mla-main.php:831 includes/class-mla-main.php:833
278
+ #: includes/class-mla-main.php:836 includes/class-mla-main.php:896
279
+ #: includes/class-mla-main.php:930 includes/class-mla-main.php:939
280
+ #: includes/class-mla-main.php:946 includes/class-mla-main.php:1331
281
+ #: includes/class-mla-main.php:1387 includes/class-mla-main.php:1412
282
+ #: includes/class-mla-main.php:1550 includes/class-mla-main.php:1600
283
+ #: includes/class-mla-main.php:1710 includes/class-mla-main.php:1739
284
+ #: includes/class-mla-main.php:1881 includes/class-mla-main.php:1888
285
+ #: includes/class-mla-main.php:2065 includes/class-mla-main.php:2204
286
+ #: includes/class-mla-main.php:2211 includes/class-mla-main.php:2540
287
+ #: includes/class-mla-main.php:2548 includes/class-mla-main.php:2572
288
+ #: includes/class-mla-main.php:2580 includes/class-mla-main.php:2612
289
+ #: includes/class-mla-main.php:2620 includes/class-mla-media-modal.php:618
290
+ #: includes/class-mla-mime-types.php:825 includes/class-mla-mime-types.php:1205
291
+ #: includes/class-mla-mime-types.php:1292
292
+ #: includes/class-mla-mime-types.php:1441
293
+ #: includes/class-mla-mime-types.php:1464
294
+ #: includes/class-mla-mime-types.php:2263
295
+ #: includes/class-mla-mime-types.php:2274
296
+ #: includes/class-mla-mime-types.php:2287
297
+ #: includes/class-mla-mime-types.php:2295
298
+ #: includes/class-mla-mime-types.php:2300
299
+ #: includes/class-mla-mime-types.php:2343
300
+ #: includes/class-mla-mime-types.php:2362
301
+ #: includes/class-mla-mime-types.php:2407
302
+ #: includes/class-mla-mime-types.php:2442
303
+ #: includes/class-mla-mime-types.php:2523
304
+ #: includes/class-mla-mime-types.php:2602
305
+ #: includes/class-mla-mime-types.php:2611
306
+ #: includes/class-mla-mime-types.php:2643 includes/class-mla-objects.php:266
307
  #: includes/class-mla-options.php:218 includes/class-mla-options.php:434
308
  #: includes/class-mla-options.php:515 includes/class-mla-options.php:570
309
  #: includes/class-mla-options.php:1133 includes/class-mla-options.php:1978
369
  #: includes/class-mla-settings.php:1792 includes/class-mla-settings.php:1799
370
  #: includes/class-mla-settings.php:1808 includes/class-mla-settings.php:1845
371
  #: includes/class-mla-settings.php:1853 includes/class-mla-settings.php:1862
372
+ #: includes/class-mla-shortcode-support.php:2276
373
+ #: includes/class-mla-shortcode-support.php:2371
374
+ #: includes/class-mla-shortcode-support.php:3770
375
+ #: includes/class-mla-shortcode-support.php:3943
376
+ #: includes/class-mla-shortcode-support.php:3984
377
+ #: includes/class-mla-shortcode-support.php:5280
378
+ #: includes/class-mla-shortcode-support.php:5312
379
+ #: includes/class-mla-shortcode-support.php:5501
 
 
 
380
  #: includes/class-mla-thumbnail-generation.php:437
381
  #: includes/class-mla-thumbnail-generation.php:449
382
  #: includes/class-mla-thumbnail-generation.php:461
384
  msgid "ERROR"
385
  msgstr ""
386
 
387
+ #: includes/class-mla-ajax.php:502 includes/class-mla-main.php:1881
388
  msgid "No post ID found"
389
  msgstr ""
390
 
391
+ #: includes/class-mla-ajax.php:509 includes/class-mla-main.php:1888
392
+ #: includes/class-mla-polylang-support.php:275
393
  msgid "You are not allowed to edit this Attachment."
394
  msgstr ""
395
 
396
+ #: includes/class-mla-core-options.php:441 includes/class-mla-options.php:257
397
  msgid "Attachment Categories"
398
  msgstr ""
399
 
400
+ #: includes/class-mla-core-options.php:445
401
  msgid "Check this option to add support for Attachment Categories."
402
  msgstr ""
403
 
404
+ #: includes/class-mla-core-options.php:449 includes/class-mla-options.php:272
405
  msgid "Attachment Tags"
406
  msgstr ""
407
 
408
+ #: includes/class-mla-core-options.php:453
409
  msgid "Check this option to add support for Attachment Tags."
410
  msgstr ""
411
 
412
+ #: includes/class-mla-core-options.php:457 includes/class-mla-settings.php:1060
413
  msgid "Where-used Reporting"
414
  msgstr ""
415
 
416
+ #: includes/class-mla-core-options.php:462
417
  msgid "Exclude Revisions"
418
  msgstr ""
419
 
420
+ #: includes/class-mla-core-options.php:466
421
  msgid "Check this option to exclude revisions from where-used reporting."
422
  msgstr ""
423
 
424
+ #: includes/class-mla-core-options.php:470
425
  msgid "Where-used database access tuning"
426
  msgstr ""
427
 
428
+ #: includes/class-mla-core-options.php:475
429
+ #: includes/class-mla-edit-media.php:1205
430
+ #: includes/class-mla-edit-media.php:1477
431
  msgid "Featured in"
432
  msgstr ""
433
 
434
+ #: includes/class-mla-core-options.php:480
435
+ #: includes/class-mla-core-options.php:490
436
  msgid "Enabled"
437
  msgstr ""
438
 
439
+ #: includes/class-mla-core-options.php:481
440
  msgid "Search database posts and pages for Featured Image attachments."
441
  msgstr ""
442
 
443
+ #: includes/class-mla-core-options.php:485
444
+ #: includes/class-mla-edit-media.php:1209
445
+ #: includes/class-mla-edit-media.php:1515
446
  msgid "Inserted in"
447
  msgstr ""
448
 
449
+ #: includes/class-mla-core-options.php:490
450
  msgid "Base"
451
  msgstr ""
452
 
453
+ #: includes/class-mla-core-options.php:491
454
  msgid ""
455
  "Search database posts and pages for attachments embedded in content."
456
  "<br>&nbsp;&nbsp;Base = ignore intermediate size suffixes; use path, base "
457
  "name and extension only."
458
  msgstr ""
459
 
460
+ #: includes/class-mla-core-options.php:495
461
+ #: includes/class-mla-edit-media.php:1213
462
+ #: includes/class-mla-edit-media.php:1549 includes/class-mla-settings.php:1558
463
  msgid "Gallery in"
464
  msgstr ""
465
 
466
+ #: includes/class-mla-core-options.php:500
467
+ #: includes/class-mla-core-options.php:510
468
  msgid "Dynamic"
469
  msgstr ""
470
 
471
+ #: includes/class-mla-core-options.php:500
472
+ #: includes/class-mla-core-options.php:510 includes/class-mla-main.php:2437
473
  #: includes/class-mla-settings-custom-fields-tab.php:764
474
  #: includes/class-mla-settings-iptc-exif-tab.php:902
475
  msgid "Refresh"
476
  msgstr ""
477
 
478
+ #: includes/class-mla-core-options.php:500
479
+ #: includes/class-mla-core-options.php:510
480
  msgid "Cached"
481
  msgstr ""
482
 
483
+ #: includes/class-mla-core-options.php:501
484
  msgid ""
485
  "Search database posts and pages for [ gallery ] shortcode results.<br>&nbsp;"
486
  "&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = "
487
  "never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached."
488
  msgstr ""
489
 
490
+ #: includes/class-mla-core-options.php:505
491
+ #: includes/class-mla-edit-media.php:1217
492
+ #: includes/class-mla-edit-media.php:1583 includes/class-mla-settings.php:1568
493
  msgid "MLA Gallery in"
494
  msgstr ""
495
 
496
+ #: includes/class-mla-core-options.php:511
497
  msgid ""
498
  "Search database posts and pages for [mla_gallery] shortcode results."
499
  "<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, "
501
  "Cached."
502
  msgstr ""
503
 
504
+ #: includes/class-mla-core-options.php:515 includes/class-mla-settings.php:1060
505
  msgid "Taxonomy Support"
506
  msgstr ""
507
 
508
+ #: includes/class-mla-core-options.php:520
509
  msgid "Compute Attachments Column"
510
  msgstr ""
511
 
512
+ #: includes/class-mla-core-options.php:524
513
  msgid ""
514
  "Check this option to calculate attachments per term in the Attachments "
515
  "Column."
516
  msgstr ""
517
 
518
+ #: includes/class-mla-core-options.php:528
519
  msgid "Show Count Column"
520
  msgstr ""
521
 
522
+ #: includes/class-mla-core-options.php:532
523
  msgid "Check this option to display the Count column on taxonomy edit screens."
524
  msgstr ""
525
 
526
+ #: includes/class-mla-core-options.php:537
527
  msgid ""
528
  "Check the \"<strong>Support</strong>\" box to add the taxonomy to the "
529
  "Assistant and the Edit Media screen."
530
  msgstr ""
531
 
532
+ #: includes/class-mla-core-options.php:538
533
  msgid ""
534
  "Check the \"<strong>Inline Edit</strong>\" box to display the taxonomy in "
535
  "the Quick Edit and Bulk Edit areas."
536
  msgstr ""
537
 
538
+ #: includes/class-mla-core-options.php:539
539
  msgid ""
540
  "Check the \"<strong>Term Search</strong>\" box to add the taxonomy to the "
541
  "\"Search Media/Terms\" list."
542
  msgstr ""
543
 
544
+ #: includes/class-mla-core-options.php:540
545
+ #: includes/class-mla-core-options.php:785
546
+ #: includes/class-mla-core-options.php:794 includes/class-mla-settings.php:1093
547
  #: includes/class-mla-settings.php:1094 includes/class-mla-settings.php:1095
548
  msgid "For complete documentation"
549
  msgstr ""
550
 
551
+ #: includes/class-mla-core-options.php:540
552
+ #: includes/class-mla-core-options.php:785
553
+ #: includes/class-mla-core-options.php:794 includes/class-mla-settings.php:1093
554
  #: includes/class-mla-settings.php:1094 includes/class-mla-settings.php:1095
555
  msgid "click here"
556
  msgstr ""
557
 
558
+ #: includes/class-mla-core-options.php:542
559
  msgid ""
560
  "Check the \"<strong>Checklist</strong>\" box to enable the checklist-style "
561
  "meta box for a flat taxonomy."
562
  msgstr ""
563
 
564
+ #: includes/class-mla-core-options.php:543
565
  msgid ""
566
  "You must also check the <strong>\"Enable enhanced checklist taxonomies\"</"
567
  "strong> box below to enable this feature."
568
  msgstr ""
569
 
570
+ #: includes/class-mla-core-options.php:544
571
  msgid ""
572
  "Check the \"<strong>Checked On Top</strong>\" box to move checked terms to "
573
  "the top of the checklist-style meta box."
574
  msgstr ""
575
 
576
+ #: includes/class-mla-core-options.php:545
577
  msgid ""
578
  "Check the \"<strong>Inline Add Term</strong>\" box to support adding terms "
579
  "in the Quick Edit and Bulk Edit areas."
580
  msgstr ""
581
 
582
+ #: includes/class-mla-core-options.php:546
583
  msgid ""
584
  "Use the \"<strong>List Filter</strong>\" option to select the taxonomy (or "
585
  "custom field) on which to filter the Assistant table listing."
586
  msgstr ""
587
 
588
+ #: includes/class-mla-core-options.php:547
589
  msgid ""
590
  "To <strong>filter on a custom field</strong>, enter the field name and "
591
  "select ASC (Ascending) or DESC (Descending) order."
592
  msgstr ""
593
 
594
+ #: includes/class-mla-core-options.php:576
595
  msgid "Media/Assistant Screen Options"
596
  msgstr ""
597
 
598
+ #: includes/class-mla-core-options.php:581
599
  msgid "Admin Menu Options"
600
  msgstr ""
601
 
602
+ #: includes/class-mla-core-options.php:586
603
  msgid "Page Title"
604
  msgstr ""
605
 
606
+ #: includes/class-mla-core-options.php:591
607
  msgid "Enter the title for the Media/Assistant submenu page"
608
  msgstr ""
609
 
610
+ #: includes/class-mla-core-options.php:595
611
  msgid "Menu Title"
612
  msgstr ""
613
 
614
+ #: includes/class-mla-core-options.php:600
615
  msgid "Enter the title for the Media/Assistant submenu entry"
616
  msgstr ""
617
 
618
+ #: includes/class-mla-core-options.php:604
619
  msgid "Submenu Order"
620
  msgstr ""
621
 
622
+ #: includes/class-mla-core-options.php:609
623
  msgid ""
624
  "Enter the position of the Media/Assistant submenu entry.<br>&nbsp;&nbsp;0 = "
625
  "natural order (at bottom),&nbsp;&nbsp;&nbsp;&nbsp;1 - 4 = at top<br>&nbsp;"
627
  "\""
628
  msgstr ""
629
 
630
+ #: includes/class-mla-core-options.php:613
631
  msgid "Display Media/Library"
632
  msgstr ""
633
 
634
+ #: includes/class-mla-core-options.php:617
635
  msgid ""
636
  "Check/uncheck this option to display/remove the WordPress Media/Library "
637
  "submenu entry."
638
  msgstr ""
639
 
640
+ #: includes/class-mla-core-options.php:621
641
  msgid "Display Media/Assistant list/grid view switcher"
642
  msgstr ""
643
 
644
+ #: includes/class-mla-core-options.php:625
645
  msgid ""
646
  "Check/uncheck this option to display/remove the \"list/grid\" view switcher "
647
  "on the Media/Assistant submenu."
648
  msgstr ""
649
 
650
+ #: includes/class-mla-core-options.php:629
651
  msgid "Table Defaults"
652
  msgstr ""
653
 
654
+ #: includes/class-mla-core-options.php:634
655
  msgid "Order By"
656
  msgstr ""
657
 
658
+ #: includes/class-mla-core-options.php:639
659
  msgid "ID/Parent"
660
  msgstr ""
661
 
662
+ #: includes/class-mla-core-options.php:640
663
  msgid "Select the column for the sort order of the Assistant table listing."
664
  msgstr ""
665
 
666
+ #: includes/class-mla-core-options.php:644
667
  msgid "Order"
668
  msgstr ""
669
 
670
+ #: includes/class-mla-core-options.php:649
671
  msgid "Ascending"
672
  msgstr ""
673
 
674
+ #: includes/class-mla-core-options.php:649
675
  msgid "Descending"
676
  msgstr ""
677
 
678
+ #: includes/class-mla-core-options.php:650
679
+ #: includes/class-mla-core-options.php:929
680
  msgid "Choose the sort order."
681
  msgstr ""
682
 
683
+ #: includes/class-mla-core-options.php:654 includes/class-mla-main.php:624
684
  msgid "Entries per page"
685
  msgstr ""
686
 
687
+ #: includes/class-mla-core-options.php:658
688
  msgid "Enter the number of Media/Assistant submenu table items per page."
689
  msgstr ""
690
 
691
+ #: includes/class-mla-core-options.php:667
692
  msgid "Views Width"
693
  msgstr ""
694
 
695
+ #: includes/class-mla-core-options.php:672
696
  msgid "Enter the width for the views list, in pixels (px) or percent (%)"
697
  msgstr ""
698
 
699
+ #: includes/class-mla-core-options.php:676
700
  msgid "Icon Size"
701
  msgstr ""
702
 
703
+ #: includes/class-mla-core-options.php:681
704
  msgid "Enter the size of the thumbnail/icon images, in pixels"
705
  msgstr ""
706
 
707
+ #: includes/class-mla-core-options.php:685
708
  msgid "Show Primary Column File Name"
709
  msgstr ""
710
 
711
+ #: includes/class-mla-core-options.php:689
712
  msgid ""
713
  "Check/uncheck this option to show/omit the file name from the primary column."
714
  msgstr ""
715
 
716
+ #: includes/class-mla-core-options.php:693
717
  msgid "QuickTags editor for bulk description"
718
  msgstr ""
719
 
720
+ #: includes/class-mla-core-options.php:697
721
  msgid ""
722
  "Check this option to use the QuickTags editor for the Description field in "
723
  "the Bulk Edit area."
724
  msgstr ""
725
 
726
+ #: includes/class-mla-core-options.php:701
727
  msgid "Bulk Chunk Size"
728
  msgstr ""
729
 
730
+ #: includes/class-mla-core-options.php:706
731
  msgid "Enter the size of the Bulk Edit and Map All processing chunks"
732
  msgstr ""
733
 
734
+ #: includes/class-mla-core-options.php:710
735
+ #: includes/class-mla-core-options.php:826
736
+ msgid "Store presets per-user"
737
+ msgstr ""
738
+
739
+ #: includes/class-mla-core-options.php:713
740
+ #: includes/class-mla-core-options.php:829
741
+ msgid "Check this option to store separate Bulk Edit presets for each user."
742
+ msgstr ""
743
+
744
+ #: includes/class-mla-core-options.php:717
745
  msgid "Taxonomy Filter parameters"
746
  msgstr ""
747
 
748
+ #: includes/class-mla-core-options.php:722
749
  msgid "Maximum Depth"
750
  msgstr ""
751
 
752
+ #: includes/class-mla-core-options.php:727
753
  msgid ""
754
  "Enter the number of levels displayed for hierarchial taxonomies; enter zero "
755
  "for no limit."
756
  msgstr ""
757
 
758
+ #: includes/class-mla-core-options.php:731
759
  msgid "Include Children"
760
  msgstr ""
761
 
762
+ #: includes/class-mla-core-options.php:735
763
  msgid ""
764
  "Check/uncheck this option to include/exclude children for hierarchical "
765
  "taxonomies."
766
  msgstr ""
767
 
768
+ #: includes/class-mla-core-options.php:739
769
  msgid "Search Media Defaults"
770
  msgstr ""
771
 
772
+ #: includes/class-mla-core-options.php:744
773
  msgid "Display Search Controls"
774
  msgstr ""
775
 
776
+ #: includes/class-mla-core-options.php:748
777
+ #: includes/class-mla-core-options.php:890
778
  msgid ""
779
  "Check/uncheck this option to display/hide the and/or connector and search "
780
  "fields controls."
781
  msgstr ""
782
 
783
+ #: includes/class-mla-core-options.php:752
784
  msgid ""
785
  "Use these controls to set defaults for the and/or connector and search "
786
  "fields controls.<br>These defaults will be used for the Search Media boxes "
787
  "on both the Media/Assistant submenu<br>and the Media Manager Modal Window."
788
  msgstr ""
789
 
790
+ #: includes/class-mla-core-options.php:766
791
  msgid "Media/Edit Media Enhancements"
792
  msgstr ""
793
 
794
+ #: includes/class-mla-core-options.php:771
795
  msgid "Enable &quot;enhanced checklist&quot; taxonomies"
796
  msgstr ""
797
 
798
+ #: includes/class-mla-core-options.php:775
799
  msgid ""
800
  "Check this option to enable the \"? Search\" feature for hierarchical "
801
  "taxonomies, e.g., Att. Categories.<br>&nbsp;&nbsp;This option also enables "
802
  "the \"checklist-style\" support for flat taxonomies, e.g., Att. Tags."
803
  msgstr ""
804
 
805
+ #: includes/class-mla-core-options.php:779
806
  msgid "Enable Edit Media additional meta boxes"
807
  msgstr ""
808
 
809
+ #: includes/class-mla-core-options.php:783
810
  msgid ""
811
  "Check this option to add \"Parent Info\", \"Menu Order\", \"Attachment "
812
  "Metadata\", \"Attachment File Metadata\" and four \"where-used\" meta boxes "
813
  "to the Edit Media screen."
814
  msgstr ""
815
 
816
+ #: includes/class-mla-core-options.php:784
817
  msgid "You can also use Filters to customize the meta boxes."
818
  msgstr ""
819
 
820
+ #: includes/class-mla-core-options.php:789
821
  msgid "Enable File Attachment Metadata meta box"
822
  msgstr ""
823
 
824
+ #: includes/class-mla-core-options.php:793
825
  msgid ""
826
  "Check this option to enable the \"Attachment File Metadata\" meta box on "
827
  "the Edit Media screen."
828
  msgstr ""
829
 
830
+ #: includes/class-mla-core-options.php:798
831
  msgid "Media/Add New Enhancements"
832
  msgstr ""
833
 
834
+ #: includes/class-mla-core-options.php:803
835
  msgid "Enable &quot;bulk edit&quot; area"
836
  msgstr ""
837
 
838
+ #: includes/class-mla-core-options.php:807
839
  msgid ""
840
  "Check this option to enable the \"Bulk Edit area\" feature on the Media/Add "
841
  "New screen."
842
  msgstr ""
843
 
844
+ #: includes/class-mla-core-options.php:811
845
  msgid "&quot;bulk edit&quot; area on top"
846
  msgstr ""
847
 
848
+ #: includes/class-mla-core-options.php:815
849
  msgid ""
850
  "Check this option to move the \"Bulk Edit area\" to the top of the Media/Add "
851
  "New screen."
852
  msgstr ""
853
 
854
+ #: includes/class-mla-core-options.php:819
855
  msgid "&quot;bulk edit&quot; area initially open"
856
  msgstr ""
857
 
858
+ #: includes/class-mla-core-options.php:822
859
  msgid ""
860
  "Check this option to automatically open the \"Bulk Edit area\" when the "
861
  "Media/Add New screen is displayed."
862
  msgstr ""
863
 
864
+ #: includes/class-mla-core-options.php:833
865
  msgid "Media Manager/Media Grid Enhancements"
866
  msgstr ""
867
 
868
+ #: includes/class-mla-core-options.php:838
869
  msgid "Enable Media Grid Enhancements"
870
  msgstr ""
871
 
872
+ #: includes/class-mla-core-options.php:841
873
  msgid ""
874
  "Check/uncheck this option to enable/disable Media Library Grid View "
875
  "Enhancements."
876
  msgstr ""
877
 
878
+ #: includes/class-mla-core-options.php:845
879
  msgid "Enable Media Manager Enhancements"
880
  msgstr ""
881
 
882
+ #: includes/class-mla-core-options.php:848
883
  msgid ""
884
  "Check/uncheck this option to enable/disable Media Manager Modal Window "
885
  "Enhancements."
886
  msgstr ""
887
 
888
+ #: includes/class-mla-core-options.php:852
889
  msgid "Media Manager Enhanced MIME Type filter"
890
  msgstr ""
891
 
892
+ #: includes/class-mla-core-options.php:855
893
  msgid ""
894
  "Check this option to filter by more MIME Types, e.g., text, applications."
895
  msgstr ""
896
 
897
+ #: includes/class-mla-core-options.php:859
898
  msgid "Media Manager Month and Year filter"
899
  msgstr ""
900
 
901
+ #: includes/class-mla-core-options.php:862
902
  msgid "Check this option to filter by month and year uploaded."
903
  msgstr ""
904
 
905
+ #: includes/class-mla-core-options.php:866
906
  msgid "Media Manager Category/Tag filter"
907
  msgstr ""
908
 
909
+ #: includes/class-mla-core-options.php:869
910
  msgid "Check this option to filter by taxonomy terms."
911
  msgstr ""
912
 
913
+ #: includes/class-mla-core-options.php:873
914
  msgid "Media Manager Terms Search popup"
915
  msgstr ""
916
 
917
+ #: includes/class-mla-core-options.php:876
918
  msgid "Check this option to enable the \"Terms Search\" popup window."
919
  msgstr ""
920
 
921
+ #: includes/class-mla-core-options.php:880
922
  msgid "Media Manager Enhanced Search Media box"
923
  msgstr ""
924
 
925
+ #: includes/class-mla-core-options.php:883
926
  msgid "Check this option to enable search box enhancements."
927
  msgstr ""
928
 
929
+ #: includes/class-mla-core-options.php:887
930
  msgid "Media Manager Enhanced Search Media Controls"
931
  msgstr ""
932
 
933
+ #: includes/class-mla-core-options.php:894
934
  msgid "Media Manager Checklist meta boxes"
935
  msgstr ""
936
 
937
+ #: includes/class-mla-core-options.php:897
938
  msgid ""
939
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
940
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for any taxonomy that uses a "
941
  "<strong>\"checklist-style\"</strong> meta box."
942
  msgstr ""
943
 
944
+ #: includes/class-mla-core-options.php:901
945
  msgid "Media Manager Flat meta boxes"
946
  msgstr ""
947
 
948
+ #: includes/class-mla-core-options.php:904
949
  msgid ""
950
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
951
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies</"
953
  "style\" meta box."
954
  msgstr ""
955
 
956
+ #: includes/class-mla-core-options.php:908
957
  msgid "Media Manager auto-fill meta boxes"
958
  msgstr ""
959
 
960
+ #: includes/class-mla-core-options.php:911
961
  msgid ""
962
  "Check this option to automatically fill MLA-enhanced meta boxes in the "
963
  "\"ATTACHMENT DETAILS\" pane<br>&nbsp;&nbsp;when the item is selected."
964
  msgstr ""
965
 
966
+ #: includes/class-mla-core-options.php:915
967
  msgid "Media Manager Order By"
968
  msgstr ""
969
 
970
+ #: includes/class-mla-core-options.php:919
971
+ #: includes/class-mla-core-options.php:928
972
+ #: includes/class-mla-core-options.php:950
973
+ #: includes/class-mla-core-options.php:964
974
+ #: includes/class-mla-core-options.php:978 includes/class-mla-settings.php:1144
975
  msgid "Media Manager Default"
976
  msgstr ""
977
 
978
+ #: includes/class-mla-core-options.php:919
979
  msgid "Title/Name"
980
  msgstr ""
981
 
982
+ #: includes/class-mla-core-options.php:920
983
  msgid ""
984
  "If you want to override the Media Manager default,<br>&nbsp;&nbsp;select a "
985
  "column for the sort order of the Media Library listing."
986
  msgstr ""
987
 
988
+ #: includes/class-mla-core-options.php:924
989
  msgid "Media Manager Order"
990
  msgstr ""
991
 
992
+ #: includes/class-mla-core-options.php:933
993
  msgid "Attachment Display Settings"
994
  msgstr ""
995
 
996
+ #: includes/class-mla-core-options.php:938
997
  msgid "Media Manager Apply Display Settings"
998
  msgstr ""
999
 
1000
+ #: includes/class-mla-core-options.php:941
1001
  msgid ""
1002
  "Check this option to always start with the Attachment Display Settings set "
1003
  "here,<br>&nbsp;&nbsp;overriding browser-/cookie-based defaults."
1004
  msgstr ""
1005
 
1006
+ #: includes/class-mla-core-options.php:945
1007
+ #: includes/class-mla-core-options.php:947
1008
  msgid "Alignment"
1009
  msgstr ""
1010
 
1011
+ #: includes/class-mla-core-options.php:947
1012
+ #: includes/class-mla-core-options.php:961
1013
+ #: includes/class-mla-core-options.php:975
1014
  #, php-format
1015
  msgid ""
1016
  "Select a value for the default %1$s option in the Attachment Display "
1017
  "Settings."
1018
  msgstr ""
1019
 
1020
+ #: includes/class-mla-core-options.php:950
1021
  msgid "Left"
1022
  msgstr ""
1023
 
1024
+ #: includes/class-mla-core-options.php:950
1025
  msgid "Center"
1026
  msgstr ""
1027
 
1028
+ #: includes/class-mla-core-options.php:950
1029
  msgid "Right"
1030
  msgstr ""
1031
 
1032
+ #: includes/class-mla-core-options.php:959
1033
+ #: includes/class-mla-core-options.php:961
1034
  msgid "Link To"
1035
  msgstr ""
1036
 
1037
+ #: includes/class-mla-core-options.php:964
1038
  msgid "Media File"
1039
  msgstr ""
1040
 
1041
+ #: includes/class-mla-core-options.php:964
1042
  msgid "Attachment Page"
1043
  msgstr ""
1044
 
1045
+ #: includes/class-mla-core-options.php:964
1046
  msgid "Custom URL"
1047
  msgstr ""
1048
 
1049
+ #: includes/class-mla-core-options.php:973
1050
+ #: includes/class-mla-core-options.php:975
1051
  msgid "Size"
1052
  msgstr ""
1053
 
1054
+ #: includes/class-mla-core-options.php:978
1055
  #: includes/class-mla-thumbnail-generation.php:591
1056
  #: includes/class-mla-thumbnail-generation.php:655
1057
  msgid "Thumbnail"
1058
  msgstr ""
1059
 
1060
+ #: includes/class-mla-core-options.php:978
1061
  msgid "Medium"
1062
  msgstr ""
1063
 
1064
+ #: includes/class-mla-core-options.php:978
1065
  msgid "Large"
1066
  msgstr ""
1067
 
1068
+ #: includes/class-mla-core-options.php:978
1069
  msgid "Full Size"
1070
  msgstr ""
1071
 
1072
+ #: includes/class-mla-core-options.php:987
1073
  msgid "Uninstall (Delete) Plugin Settings"
1074
  msgstr ""
1075
 
1076
+ #: includes/class-mla-core-options.php:992
1077
  msgid "Delete Option Settings"
1078
  msgstr ""
1079
 
1080
+ #: includes/class-mla-core-options.php:995
1081
  msgid ""
1082
  "Check this option to remove all MLA option settings from the database when "
1083
  "the plugin is deleted.<br>&nbsp;&nbsp;<strong>You can make a backup copy</"
1084
  "strong> of your settings below by clicking \""
1085
  msgstr ""
1086
 
1087
+ #: includes/class-mla-core-options.php:995 includes/class-mla-settings.php:1062
1088
  msgid "Export ALL Settings"
1089
  msgstr ""
1090
 
1091
+ #: includes/class-mla-core-options.php:999
1092
  msgid "Delete Option Settings Backups"
1093
  msgstr ""
1094
 
1095
+ #: includes/class-mla-core-options.php:1002
1096
  msgid ""
1097
  "Check this option to remove the <code>/wp-content/mla-backup</code> "
1098
  "directory and its contents when the plugin is deleted."
1099
  msgstr ""
1100
 
1101
+ #: includes/class-mla-core-options.php:1006
1102
  msgid "Default [mla_gallery] Templates and Settings"
1103
  msgstr ""
1104
 
1105
+ #: includes/class-mla-core-options.php:1011
1106
+ #: includes/class-mla-core-options.php:1017
1107
+ #: includes/class-mla-core-options.php:1055
1108
+ #: includes/class-mla-core-options.php:1061
1109
  msgid "Style Template"
1110
  msgstr ""
1111
 
1112
+ #: includes/class-mla-core-options.php:1017
1113
+ #: includes/class-mla-core-options.php:1027
1114
+ #: includes/class-mla-core-options.php:1061
1115
+ #: includes/class-mla-core-options.php:1071
1116
  #, php-format
1117
  msgid "Select the default %1$s for your %2$s shortcodes."
1118
  msgstr ""
1119
 
1120
+ #: includes/class-mla-core-options.php:1021
1121
+ #: includes/class-mla-core-options.php:1065
1122
  msgid "Markup Template"
1123
  msgstr ""
1124
 
1125
+ #: includes/class-mla-core-options.php:1027
1126
+ #: includes/class-mla-core-options.php:1071
1127
  #: includes/class-mla-settings-shortcodes-tab.php:108
1128
  msgid "markup template"
1129
  msgstr ""
1130
 
1131
+ #: includes/class-mla-core-options.php:1031
1132
+ #: includes/class-mla-core-options.php:1075
1133
  msgid "Default columns"
1134
  msgstr ""
1135
 
1136
+ #: includes/class-mla-core-options.php:1035
1137
  msgid ""
1138
  "Enter the number of [mla_tag_cloud] columns; must be a positive integer."
1139
  msgstr ""
1140
 
1141
+ #: includes/class-mla-core-options.php:1039
1142
+ #: includes/class-mla-core-options.php:1083
1143
  msgid "Default mla_margin"
1144
  msgstr ""
1145
 
1146
+ #: includes/class-mla-core-options.php:1043
1147
+ #: includes/class-mla-core-options.php:1087
1148
  msgid ""
1149
  "Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
1150
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"none\" to "
1151
  "remove the property entirely."
1152
  msgstr ""
1153
 
1154
+ #: includes/class-mla-core-options.php:1047
1155
+ #: includes/class-mla-core-options.php:1091
1156
  msgid "Default mla_itemwidth"
1157
  msgstr ""
1158
 
1159
+ #: includes/class-mla-core-options.php:1051
1160
+ #: includes/class-mla-core-options.php:1095
1161
  msgid ""
1162
  "Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
1163
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"calculate"
1167
  "the property entirely."
1168
  msgstr ""
1169
 
1170
+ #: includes/class-mla-core-options.php:1079
1171
  msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
1172
  msgstr ""
1173
 
1174
+ #: includes/class-mla-core-options.php:1099
1175
  msgid "Thumbnail Substitution Support, mla_viewer"
1176
  msgstr ""
1177
 
1178
+ #: includes/class-mla-core-options.php:1104
1179
  msgid "Enable thumbnail substitution"
1180
  msgstr ""
1181
 
1182
+ #: includes/class-mla-core-options.php:1107
1183
  msgid ""
1184
  "Check this option to allow the \"mla_viewer\" to generate thumbnail images "
1185
  "for PDF documents. Thumbnails are generated dynamically, each time the item "
1188
  "strong>"
1189
  msgstr ""
1190
 
1191
+ #: includes/class-mla-core-options.php:1111
1192
  msgid "Enable Featured Images"
1193
  msgstr ""
1194
 
1195
+ #: includes/class-mla-core-options.php:1114
1196
  msgid ""
1197
  "Check this option to extend Featured Image support to all Media Library "
1198
  "items. The Featured Image can be used as a thumbnail image for the item in "
1199
  "an [mla_gallery] display."
1200
  msgstr ""
1201
 
1202
+ #: includes/class-mla-core-options.php:1118
1203
  msgid "Enable Featured Image Generation"
1204
  msgstr ""
1205
 
1206
+ #: includes/class-mla-core-options.php:1121
1207
  msgid ""
1208
  "Check this option to enable the \"Thumbnail\" generation action in the Media/"
1209
  "Assistant submenu Bulk Actions dropdown."
1210
  msgstr ""
1211
 
1212
+ #: includes/class-mla-core-options.php:1125
1213
  msgid "Enable explicit Ghostscript check"
1214
  msgstr ""
1215
 
1216
+ #: includes/class-mla-core-options.php:1128
1217
  msgid ""
1218
  "Check this option to enable the explicit check for Ghostscript support "
1219
  "required for thumbnail generation. If your Ghostscript software is in a non-"
1222
  "leave this option checked unless you know it is safe to turn it off."
1223
  msgstr ""
1224
 
1225
+ #: includes/class-mla-core-options.php:1132
1226
  msgid "Ghostscript path"
1227
  msgstr ""
1228
 
1229
+ #: includes/class-mla-core-options.php:1136
1230
  msgid ""
1231
  "If your &ldquo;gs&rdquo; executable is in a non-standard location, enter the "
1232
  "full path and filename here, e.g., &ldquo;/usr/bin/gs&rdquo;. It will "
1233
  "override the search for Ghostscript in other places."
1234
  msgstr ""
1235
 
1236
+ #: includes/class-mla-core-options.php:1156
1237
  msgid "Enable custom field mapping"
1238
  msgstr ""
1239
 
1240
+ #: includes/class-mla-core-options.php:1159
1241
+ #: includes/class-mla-core-options.php:1166
1242
+ #: includes/class-mla-core-options.php:1173
1243
+ #: includes/class-mla-core-options.php:1190
1244
  msgid "See Help menu."
1245
  msgstr ""
1246
 
1247
+ #: includes/class-mla-core-options.php:1163
1248
  msgid "Enable custom field mapping when adding new media"
1249
  msgstr ""
1250
 
1251
+ #: includes/class-mla-core-options.php:1170
1252
  msgid "Enable custom field mapping when updating media metadata"
1253
  msgstr ""
1254
 
1255
+ #: includes/class-mla-core-options.php:1177
1256
  msgid ""
1257
  "Update the custom field mapping values above, then click Save Changes to "
1258
  "make the updates permanent.<br>You can also make temporary updates and click "
1260
  "saving any rule changes."
1261
  msgstr ""
1262
 
1263
+ #: includes/class-mla-core-options.php:1187
1264
  msgid "Enable IPTC/EXIF Mapping"
1265
  msgstr ""
1266
 
1267
+ #: includes/class-mla-core-options.php:1194
1268
  msgid "Enable IPTC/EXIF Mapping when adding new media"
1269
  msgstr ""
1270
 
1271
+ #: includes/class-mla-core-options.php:1197
1272
  msgid ""
1273
  "Check this option to enable mapping when uploading new media (attachments)."
1274
  "<br>&nbsp;&nbsp;Does NOT affect the operation of the \"Map\" buttons on the "
1275
  "bulk edit, single edit and settings screens."
1276
  msgstr ""
1277
 
1278
+ #: includes/class-mla-core-options.php:1201
1279
  msgid "Enable IPTC/EXIF Mapping when updating media metadata"
1280
  msgstr ""
1281
 
1282
+ #: includes/class-mla-core-options.php:1204
1283
  msgid ""
1284
  "Check this option to enable mapping when media (attachments) metadata is "
1285
  "regenerated,<br>&nbsp;&nbsp;e.g., when the Media/Edit Media \"Edit Image\" "
1286
  "functions are used."
1287
  msgstr ""
1288
 
1289
+ #: includes/class-mla-core-options.php:1208
1290
  msgid ""
1291
  "Update the standard field mapping values above, then click <strong>Save "
1292
  "Changes</strong> to make the updates permanent.<br>You can also make "
1295
  "changes."
1296
  msgstr ""
1297
 
1298
+ #: includes/class-mla-core-options.php:1218
1299
  msgid ""
1300
  "Update the taxonomy term mapping values above, then click <strong>Save "
1301
  "Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
1302
  msgstr ""
1303
 
1304
+ #: includes/class-mla-core-options.php:1228
1305
  msgid ""
1306
  "<strong>Update</strong> individual custom field mapping values above, or "
1307
  "make several updates and click <strong>Save Changes</strong> below to apply "
1312
  "changes."
1313
  msgstr ""
1314
 
1315
+ #: includes/class-mla-core-options.php:1238
1316
  msgid "IPTC/EXIF Mapping help"
1317
  msgstr ""
1318
 
1319
+ #: includes/class-mla-core-options.php:1249 includes/class-mla-data.php:4437
1320
+ #: includes/class-mla-main.php:2407
1321
  msgid "Name/Slug"
1322
  msgstr ""
1323
 
1324
+ #: includes/class-mla-core-options.php:1256 includes/class-mla-data.php:4480
1325
+ #: includes/class-mla-edit-media.php:389 includes/class-mla-list-table.php:1429
1326
+ #: includes/class-mla-main.php:2411 includes/class-mla-options.php:472
1327
  #: includes/mla-main-search-box-template.php:51
1328
  #: includes/mla-media-modal-js-template.php:46
1329
  msgid "ALT Text"
1330
  msgstr ""
1331
 
1332
+ #: includes/class-mla-core-options.php:1263 includes/class-mla-data.php:4493
1333
+ #: includes/class-mla-edit-media.php:385 includes/class-mla-main.php:2408
1334
  #: includes/class-mla-options.php:475
1335
  #: includes/mla-main-search-box-template.php:53
1336
  #: includes/mla-media-modal-js-template.php:51
1337
  msgid "Caption"
1338
  msgstr ""
1339
 
1340
+ #: includes/class-mla-core-options.php:1270 includes/class-mla-data.php:4502
1341
+ #: includes/class-mla-edit-media.php:387 includes/class-mla-main.php:2409
1342
  #: includes/class-mla-options.php:478
1343
  #: includes/class-mla-settings-custom-fields-tab.php:480
1344
  #: includes/class-mla-settings-iptc-exif-tab.php:533
1357
  msgid "Description"
1358
  msgstr ""
1359
 
1360
+ #: includes/class-mla-core-options.php:1277 includes/class-mla-data.php:4564
1361
+ #: includes/class-mla-data.php:4573 includes/class-mla-edit-media.php:391
1362
+ #: includes/class-mla-edit-media.php:1048 includes/class-mla-main.php:2413
1363
  msgid "Uploaded on"
1364
  msgstr ""
1365
 
1366
+ #: includes/class-mla-core-options.php:1297
1367
  msgid "Enable View and Post MIME Type Support"
1368
  msgstr ""
1369
 
1370
+ #: includes/class-mla-core-options.php:1300
1371
  msgid ""
1372
  "Check/uncheck this option to enable/disable Post MIME Type Support, then "
1373
  "click <strong>Save Changes</strong> to record the new setting."
1374
  msgstr ""
1375
 
1376
+ #: includes/class-mla-core-options.php:1309
1377
  msgid "Post MIME Types help."
1378
  msgstr ""
1379
 
1380
+ #: includes/class-mla-core-options.php:1312
1381
+ #: includes/class-mla-mime-types.php:1694
1382
  #: includes/class-mla-settings-custom-fields-tab.php:2501
1383
  #: includes/class-mla-settings-documentation-tab.php:1545
1384
  #: includes/class-mla-settings-iptc-exif-tab.php:2845
1387
  msgid "All"
1388
  msgstr ""
1389
 
1390
+ #: includes/class-mla-core-options.php:1313
1391
+ #: includes/class-mla-mime-types.php:1695
1392
  #: includes/class-mla-settings-custom-fields-tab.php:2502
1393
  #: includes/class-mla-settings-documentation-tab.php:1546
1394
  #: includes/class-mla-settings-iptc-exif-tab.php:2846
1397
  msgid "All"
1398
  msgstr ""
1399
 
1400
+ #: includes/class-mla-core-options.php:1318
1401
+ #: includes/class-mla-core-options.php:1372
1402
+ #: includes/class-mla-core-options.php:1381
1403
+ #: includes/class-mla-core-options.php:1390
1404
+ #: includes/class-mla-core-options.php:1399
1405
  msgctxt "post_mime_types_description"
1406
  msgid "Built-in view"
1407
  msgstr ""
1408
 
1409
+ #: includes/class-mla-core-options.php:1321
1410
  msgctxt "table_view_singular"
1411
  msgid "Image"
1412
  msgstr ""
1413
 
1414
+ #: includes/class-mla-core-options.php:1322
1415
  msgctxt "table_view_plural"
1416
  msgid "Images"
1417
  msgstr ""
1418
 
1419
+ #: includes/class-mla-core-options.php:1327
1420
  msgctxt "post_mime_types_description"
1421
  msgid "All image subtypes"
1422
  msgstr ""
1423
 
1424
+ #: includes/class-mla-core-options.php:1330
1425
  msgctxt "table_view_singular"
1426
  msgid "Audio"
1427
  msgstr ""
1428
 
1429
+ #: includes/class-mla-core-options.php:1331
1430
  msgctxt "table_view_plural"
1431
  msgid "Audio"
1432
  msgstr ""
1433
 
1434
+ #: includes/class-mla-core-options.php:1336
1435
  msgctxt "post_mime_types_description"
1436
  msgid "All audio subtypes"
1437
  msgstr ""
1438
 
1439
+ #: includes/class-mla-core-options.php:1339
1440
  msgctxt "table_view_singular"
1441
  msgid "Video"
1442
  msgstr ""
1443
 
1444
+ #: includes/class-mla-core-options.php:1340
1445
  msgctxt "table_view_plural"
1446
  msgid "Video"
1447
  msgstr ""
1448
 
1449
+ #: includes/class-mla-core-options.php:1345
1450
  msgctxt "post_mime_types_description"
1451
  msgid "All video subtypes"
1452
  msgstr ""
1453
 
1454
+ #: includes/class-mla-core-options.php:1348
1455
  msgctxt "table_view_singular"
1456
  msgid "Text"
1457
  msgstr ""
1458
 
1459
+ #: includes/class-mla-core-options.php:1349
1460
  msgctxt "table_view_plural"
1461
  msgid "Text"
1462
  msgstr ""
1463
 
1464
+ #: includes/class-mla-core-options.php:1354
1465
  msgctxt "post_mime_types_description"
1466
  msgid "All text subtypes"
1467
  msgstr ""
1468
 
1469
+ #: includes/class-mla-core-options.php:1357
1470
  msgctxt "table_view_singular"
1471
  msgid "Application"
1472
  msgstr ""
1473
 
1474
+ #: includes/class-mla-core-options.php:1358
1475
  msgctxt "table_view_plural"
1476
  msgid "Applications"
1477
  msgstr ""
1478
 
1479
+ #: includes/class-mla-core-options.php:1363
1480
  msgctxt "post_mime_types_description"
1481
  msgid "All application subtypes"
1482
  msgstr ""
1483
 
1484
+ #: includes/class-mla-core-options.php:1367
1485
  msgctxt "table_view_plural"
1486
  msgid "Unattached"
1487
  msgstr ""
1488
 
1489
+ #: includes/class-mla-core-options.php:1375
1490
  msgctxt "table_view_singular"
1491
  msgid "Attached"
1492
  msgstr ""
1493
 
1494
+ #: includes/class-mla-core-options.php:1376
1495
  msgctxt "table_view_plural"
1496
  msgid "Attached"
1497
  msgstr ""
1498
 
1499
+ #: includes/class-mla-core-options.php:1384
1500
  msgctxt "table_view_singular"
1501
  msgid "Mine"
1502
  msgstr ""
1503
 
1504
+ #: includes/class-mla-core-options.php:1385
1505
  msgctxt "table_view_plural"
1506
  msgid "Mine"
1507
  msgstr ""
1508
 
1509
+ #: includes/class-mla-core-options.php:1393
1510
  msgctxt "table_view_singular"
1511
  msgid "Trash"
1512
  msgstr ""
1513
 
1514
+ #: includes/class-mla-core-options.php:1394
1515
  msgctxt "table_view_plural"
1516
  msgid "Trash"
1517
  msgstr ""
1518
 
1519
+ #: includes/class-mla-core-options.php:1405
1520
  msgid "Enable Upload MIME Type Support"
1521
  msgstr ""
1522
 
1523
+ #: includes/class-mla-core-options.php:1408
1524
  msgid ""
1525
  "Check/uncheck this option to enable/disable Upload MIME Type Support, then "
1526
  "click <strong>Save Changes</strong> to record the new setting."
1527
  msgstr ""
1528
 
1529
+ #: includes/class-mla-core-options.php:1417
1530
  msgid "Upload MIME Types help."
1531
  msgstr ""
1532
 
1533
+ #: includes/class-mla-core-options.php:1422
1534
  msgid "Enable MLA File Type Icons Support"
1535
  msgstr ""
1536
 
1537
+ #: includes/class-mla-core-options.php:1425
1538
  msgid ""
1539
  "Check/uncheck this option to enable/disable MLA File Type Icons Support, "
1540
  "then click <strong>Save Changes</strong> to record the new setting."
1541
  msgstr ""
1542
 
1543
+ #: includes/class-mla-core-options.php:1429
1544
  msgid "Always Use MLA MIME Type"
1545
  msgstr ""
1546
 
1547
+ #: includes/class-mla-core-options.php:1432
1548
  msgid ""
1549
  "Check this option to override WordPress MIME Type security checks, then "
1550
  "click <strong>Save Changes</strong> to record the new setting."
1551
  msgstr ""
1552
 
1553
+ #: includes/class-mla-core-options.php:1436
1554
  msgid "Display Limit"
1555
  msgstr ""
1556
 
1557
+ #: includes/class-mla-core-options.php:1440
1558
  msgid ""
1559
  "Enter the maximum number of debug log characters to display; enter zero or "
1560
  "leave blank for no limit."
1561
  msgstr ""
1562
 
1563
+ #: includes/class-mla-core-options.php:1444
1564
  msgid "Debug File"
1565
  msgstr ""
1566
 
1567
+ #: includes/class-mla-core-options.php:1448
1568
  msgid ""
1569
  "Enter the name of an alternate, MLA-specific debug log file; leave blank to "
1570
  "use the PHP error_log.<br>&nbsp;&nbsp;The WP_CONTENT_DIR value (below) will "
1572
  "\"."
1573
  msgstr ""
1574
 
1575
+ #: includes/class-mla-core-options.php:1452
1576
  msgid "Replace PHP error_log file"
1577
  msgstr ""
1578
 
1579
+ #: includes/class-mla-core-options.php:1455
1580
  msgid ""
1581
  "Check this option to replace the PHP error_log file with the MLA Debug File."
1582
  "<br>&nbsp;&nbsp;allows capture of PHP messages in the MLA Debug File."
1583
  msgstr ""
1584
 
1585
+ #: includes/class-mla-core-options.php:1459
1586
  msgid "PHP Reporting"
1587
  msgstr ""
1588
 
1589
+ #: includes/class-mla-core-options.php:1463
1590
  msgid ""
1591
  "Enter a numeric error_reporting value, e.g., 0x7FFF or 32767; leave blank to "
1592
  "use the existing PHP error_reporting value."
1593
  msgstr ""
1594
 
1595
+ #: includes/class-mla-core-options.php:1467
1596
  msgid "MLA Reporting"
1597
  msgstr ""
1598
 
1599
+ #: includes/class-mla-core-options.php:1471
1600
  msgid ""
1601
  "Enter a numeric MLA_DEBUG_LEVEL value, e.g., 0x0003 or 3; leave blank to use "
1602
  "the existing MLA_DEBUG_LEVEL value."
1603
  msgstr ""
1604
 
1605
+ #: includes/class-mla-core-options.php:1475
1606
  msgid "Add Tax. Columns"
1607
  msgstr ""
1608
 
1609
+ #: includes/class-mla-core-options.php:1478
1610
  msgid ""
1611
  "Check this option to add Parent, Term ID and Term-Taxonomy ID columns to the "
1612
  "taxonomy edit admin submenu tables."
1613
  msgstr ""
1614
 
1615
+ #: includes/class-mla-core.php:934
1616
  #, php-format
1617
  msgctxt "error_log"
1618
  msgid "%1$s: mla_load_template file \"%2$s\" not found."
1619
  msgstr ""
1620
 
1621
+ #: includes/class-mla-core.php:952
1622
  #, php-format
1623
  msgctxt "error_log"
1624
  msgid "%1$s: mla_load_template file \"%2$s\" bad source type \"%3$s\"."
1625
  msgstr ""
1626
 
1627
+ #: includes/class-mla-core.php:1431
1628
  #, php-format
1629
  msgid "%1$s: Bad specification part \"%2$s\""
1630
  msgstr ""
1631
 
1632
+ #: includes/class-mla-core.php:1440
1633
  #, php-format
1634
  msgid "%1$s: Bad specification option \"%2$s\""
1635
  msgstr ""
1636
 
1637
+ #: includes/class-mla-core.php:1444
1638
  #, php-format
1639
  msgid "%1$s: Bad specification prefix \"%2$s\""
1640
  msgstr ""
1641
 
1642
+ #: includes/class-mla-core.php:1546
1643
  msgid "Most Used"
1644
  msgstr ""
1645
 
1646
+ #: includes/class-mla-core.php:1575
1647
  #, php-format
1648
  msgid "+ %s"
1649
  msgstr ""
1650
 
1651
+ #: includes/class-mla-core.php:1581 includes/class-mla-edit-media.php:477
1652
+ #: includes/class-mla-edit-media.php:560 includes/class-mla-main.php:2071
1653
+ #: includes/class-mla-main.php:2273 includes/class-mla-main.php:2335
1654
  #: includes/class-mla-media-modal.php:648
1655
  #: includes/mla-media-modal-js-template.php:26
1656
  #: includes/mla-media-modal-js-template.php:73
1835
  msgid " %1$s: %2$s non-array \"%3$s\""
1836
  msgstr ""
1837
 
1838
+ #: includes/class-mla-data-query.php:1383
1839
  #, php-format
1840
  msgctxt "error_log"
1841
  msgid " %1$s: _execute_list_table_query $wp_filter = \"%2$s\"."
1842
  msgstr ""
1843
 
1844
+ #: includes/class-mla-data-query.php:1399
1845
  #, php-format
1846
  msgctxt "error_log"
1847
  msgid " %1$s: _execute_list_table_query WP_Query = \"%2$s\"."
1848
  msgstr ""
1849
 
1850
+ #: includes/class-mla-data-query.php:1401
1851
  #, php-format
1852
  msgctxt "error_log"
1853
  msgid " %1$s: _execute_list_table_query SQL_request = \"%2$s\"."
1854
  msgstr ""
1855
 
1856
+ #: includes/class-mla-data-query.php:1915
1857
  #, php-format
1858
  msgctxt "error_log"
1859
  msgid " %1$s: mla_query_posts_search_filter = \"%2$s\"."
1860
  msgstr ""
1861
 
1862
+ #: includes/class-mla-data-query.php:2006
1863
  #, php-format
1864
  msgctxt "error_log"
1865
  msgid " %1$s: mla_query_posts_where_filter = \"%2$s\"."
1866
  msgstr ""
1867
 
1868
+ #: includes/class-mla-data-query.php:2078
1869
  #, php-format
1870
  msgctxt "error_log"
1871
  msgid " %1$s: mla_query_posts_join_filter = \"%2$s\"."
1872
  msgstr ""
1873
 
1874
+ #: includes/class-mla-data-query.php:2173
1875
  #, php-format
1876
  msgctxt "error_log"
1877
  msgid " %1$s: mla_query_posts_orderby_filter = \"%2$s\"."
1878
  msgstr ""
1879
 
1880
+ #: includes/class-mla-data-query.php:2259
1881
  #, php-format
1882
  msgctxt "error_log"
1883
  msgid " %1$s: mla_query_posts_clauses_filter = \"%2$s\"."
1884
  msgstr ""
1885
 
1886
+ #: includes/class-mla-data-query.php:2278
1887
  #, php-format
1888
  msgctxt "error_log"
1889
  msgid " %1$s: mla_query_posts_clauses_request_filter = \"%2$s\"."
1891
 
1892
  #: includes/class-mla-data-references.php:316
1893
  #: includes/class-mla-data-references.php:640
1894
+ #: includes/class-mla-data-source.php:750
1895
+ #: includes/class-mla-data-source.php:751
1896
  msgid "ORPHAN"
1897
  msgstr ""
1898
 
1965
  msgid "%1$s: _evaluate_template_node unknown type \"%2$s\"."
1966
  msgstr ""
1967
 
1968
+ #: includes/class-mla-data.php:1681
1969
  #, php-format
1970
  msgctxt "error_log"
1971
  msgid ""
1973
  "\"."
1974
  msgstr ""
1975
 
1976
+ #: includes/class-mla-data.php:1828
1977
  #, php-format
1978
  msgctxt "error_log"
1979
  msgid "%1$s: mla_get_attachment_by_id(%2$d) not found."
1980
  msgstr ""
1981
 
1982
+ #: includes/class-mla-data.php:1834
1983
  #, php-format
1984
  msgctxt "error_log"
1985
  msgid "%1$s: mla_get_attachment_by_id(%2$d) wrong post_type \"%3$s\"."
1986
  msgstr ""
1987
 
1988
+ #: includes/class-mla-data.php:2184
1989
  msgctxt "error_log"
1990
  msgid "mla_parse_xml_string xml_parse_into_struct failed."
1991
  msgstr ""
1992
 
1993
+ #: includes/class-mla-data.php:2188
1994
  msgctxt "error_log"
1995
  msgid "mla_parse_xml_string set option failed."
1996
  msgstr ""
1997
 
1998
+ #: includes/class-mla-data.php:3845
1999
  msgid "Auto"
2000
  msgstr ""
2001
 
2002
+ #: includes/class-mla-data.php:3848
2003
  msgid "Manual"
2004
  msgstr ""
2005
 
2006
+ #: includes/class-mla-data.php:3851
2007
  msgid "Bracket"
2008
  msgstr ""
2009
 
2010
+ #: includes/class-mla-data.php:3854
2011
  msgid "Other"
2012
  msgstr ""
2013
 
2014
+ #: includes/class-mla-data.php:3861
2015
  #: includes/class-mla-settings-custom-fields-tab.php:841
2016
  #: includes/class-mla-settings-custom-fields-tab.php:1563
2017
  #: includes/class-mla-settings-iptc-exif-tab.php:981
2024
  msgid "Yes"
2025
  msgstr ""
2026
 
2027
+ #: includes/class-mla-data.php:3863
2028
  #: includes/class-mla-settings-custom-fields-tab.php:842
2029
  #: includes/class-mla-settings-custom-fields-tab.php:1565
2030
  #: includes/class-mla-settings-iptc-exif-tab.php:982
2037
  msgid "No"
2038
  msgstr ""
2039
 
2040
+ #: includes/class-mla-data.php:4110 includes/class-mla-data.php:4234
2041
  #, php-format
2042
  msgid "Deleting %1$s"
2043
  msgstr ""
2044
 
2045
+ #: includes/class-mla-data.php:4113
2046
  #, php-format
2047
  msgid "%1$s: meta:%2$s not found"
2048
  msgstr ""
2049
 
2050
+ #: includes/class-mla-data.php:4122 includes/class-mla-data.php:4245
2051
+ #: includes/class-mla-data.php:4257
2052
  #, php-format
2053
  msgid "Adding %1$s = %2$s"
2054
  msgstr ""
2055
 
2056
+ #: includes/class-mla-data.php:4126
2057
  #, php-format
2058
  msgid "%1$s: Adding meta:%2$s; not found"
2059
  msgstr ""
2060
 
2061
+ #: includes/class-mla-data.php:4133
2062
  #, php-format
2063
  msgid "Deleting Null meta:%1$s"
2064
  msgstr ""
2065
 
2066
+ #: includes/class-mla-data.php:4143 includes/class-mla-data.php:4326
2067
+ #: includes/class-mla-data.php:4413 includes/class-mla-data.php:4437
2068
+ #: includes/class-mla-data.php:4480 includes/class-mla-data.php:4493
2069
+ #: includes/class-mla-data.php:4502 includes/class-mla-data.php:4513
2070
+ #: includes/class-mla-data.php:4524 includes/class-mla-data.php:4537
2071
+ #: includes/class-mla-data.php:4546 includes/class-mla-data.php:4555
2072
+ #: includes/class-mla-data.php:4564 includes/class-mla-data.php:4573
2073
+ #: includes/class-mla-mime-types.php:1295
2074
+ #: includes/class-mla-mime-types.php:2410
2075
  #, php-format
2076
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
2077
  msgstr ""
2078
 
2079
+ #: includes/class-mla-data.php:4148
2080
  #, php-format
2081
  msgid "%1$s: Changing meta:%2$s; not found"
2082
  msgstr ""
2083
 
2084
+ #: includes/class-mla-data.php:4281
2085
  #, php-format
2086
  msgid "Deleting old %1$s values"
2087
  msgstr ""
2088
 
2089
+ #: includes/class-mla-data.php:4311
2090
  #, php-format
2091
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
2092
  msgstr ""
2093
 
2094
+ #: includes/class-mla-data.php:4388
2095
  msgid "Could not retrieve Attachment."
2096
  msgstr ""
2097
 
2098
+ #: includes/class-mla-data.php:4434
2099
  #, php-format
2100
  msgid "%1$s: Could not change Name/Slug \"%2$s\"; name already exists"
2101
  msgstr ""
2102
 
2103
+ #: includes/class-mla-data.php:4464
2104
  #, php-format
2105
  msgid "Deleting ALT Text, was \"%1$s\""
2106
  msgstr ""
2107
 
2108
+ #: includes/class-mla-data.php:4467
2109
  #, php-format
2110
  msgid "%1$s: Could not delete ALT Text, remains \"%2$s\""
2111
  msgstr ""
2112
 
2113
+ #: includes/class-mla-data.php:4483
2114
  #, php-format
2115
  msgid "%1$s: Could not change ALT Text from \"%2$s\" to \"%3$s\""
2116
  msgstr ""
2117
 
2118
+ #: includes/class-mla-data.php:4513 includes/class-mla-list-table.php:1131
2119
  #: includes/class-mla-list-table.php:1134
2120
  #: includes/class-mla-list-table.php:1137
2121
  #: includes/class-mla-list-table.php:1205 includes/class-mla-objects.php:158
2125
  msgid "Parent"
2126
  msgstr ""
2127
 
2128
+ #: includes/class-mla-data.php:4524 includes/class-mla-edit-media.php:1188
2129
+ #: includes/class-mla-edit-media.php:1400 includes/class-mla-main.php:2416
2130
  #: includes/class-mla-settings-view-tab.php:126
2131
  #: includes/class-mla-settings-view-tab.php:389
2132
  msgid "Menu Order"
2133
  msgstr ""
2134
 
2135
+ #: includes/class-mla-data.php:4537 includes/class-mla-edit-media.php:669
2136
  #: includes/class-mla-list-table.php:1585
2137
+ #: includes/class-mla-list-table.php:1588 includes/class-mla-main.php:2217
 
2138
  msgid "Author"
2139
  msgstr ""
2140
 
2141
+ #: includes/class-mla-data.php:4546 includes/class-mla-edit-media.php:397
 
2142
  msgid "Comments"
2143
  msgstr ""
2144
 
2145
+ #: includes/class-mla-data.php:4555 includes/class-mla-edit-media.php:404
 
2146
  msgid "Pings"
2147
  msgstr ""
2148
 
2149
+ #: includes/class-mla-data.php:4603
2150
  #, php-format
2151
  msgid "You cannot assign \"%1$s\" terms"
2152
  msgstr ""
2153
 
2154
+ #: includes/class-mla-data.php:4616
2155
  msgctxt "tag delimiter"
2156
  msgid ","
2157
  msgstr ""
2158
 
2159
+ #: includes/class-mla-data.php:4655
2160
  msgid "Adding"
2161
  msgstr ""
2162
 
2163
+ #: includes/class-mla-data.php:4660
2164
  msgid "Removing"
2165
  msgstr ""
2166
 
2167
+ #: includes/class-mla-data.php:4669
2168
  msgid "Replacing"
2169
  msgstr ""
2170
 
2171
+ #: includes/class-mla-data.php:4677
2172
  msgid "Ignoring"
2173
  msgstr ""
2174
 
2175
+ #: includes/class-mla-data.php:4694
2176
  #, php-format
2177
  msgid "%1$s \"%2$s\" terms"
2178
  msgstr ""
2179
 
2180
+ #: includes/class-mla-data.php:4706 includes/class-mla-main.php:1397
2181
  #, php-format
2182
  msgid "Item %1$d, no changes detected."
2183
  msgstr ""
2184
 
2185
+ #: includes/class-mla-data.php:4739
2186
  #, php-format
2187
  msgid "Item %1$d updated."
2188
  msgstr ""
2189
 
2190
+ #: includes/class-mla-data.php:4757
2191
  #, php-format
2192
  msgid "%1$s: Item %2$d update failed."
2193
  msgstr ""
2194
 
2195
  #: includes/class-mla-edit-media.php:131 includes/class-mla-edit-media.php:185
2196
+ #: includes/class-mla-edit-media.php:241 includes/class-mla-main.php:459
2197
+ #: includes/class-mla-main.php:1152 includes/class-mla-main.php:1942
2198
  #: includes/class-mla-media-modal.php:268 includes/class-mla-options.php:1654
2199
+ #: includes/class-mla-polylang-support.php:383
2200
  #: includes/class-mla-settings-custom-fields-tab.php:57
2201
  #: includes/class-mla-settings-custom-fields-tab.php:90
2202
  #: includes/class-mla-settings-iptc-exif-tab.php:80
2212
  msgid "Upload New Media items"
2213
  msgstr ""
2214
 
2215
+ #: includes/class-mla-edit-media.php:181 includes/class-mla-edit-media.php:781
2216
  msgid "Open Bulk Edit area"
2217
  msgstr ""
2218
 
2220
  msgid "Close Bulk Edit area"
2221
  msgstr ""
2222
 
2223
+ #: includes/class-mla-edit-media.php:186 includes/class-mla-edit-media.php:243
2224
+ #: includes/class-mla-main.php:463
2225
  msgid "An ajax.fail error has occurred. Please reload the page and try again."
2226
  msgstr ""
2227
 
2228
+ #: includes/class-mla-edit-media.php:187 includes/class-mla-edit-media.php:244
2229
+ #: includes/class-mla-main.php:464
2230
  msgid "An ajax.done error has occurred. Please reload the page and try again."
2231
  msgstr ""
2232
 
2233
+ #: includes/class-mla-edit-media.php:246 includes/class-mla-main.php:2151
2234
  #, php-format
2235
  msgid "Uploaded on: %s"
2236
  msgstr ""
2237
 
2238
+ #: includes/class-mla-edit-media.php:247 includes/class-mla-edit-media.php:1060
2239
  msgid "Last modified"
2240
  msgstr ""
2241
 
2242
+ #: includes/class-mla-edit-media.php:303 includes/class-mla-edit-media.php:373
2243
+ #: includes/class-mla-edit-media.php:756 includes/class-mla-main.php:2065
2244
+ #: includes/class-mla-main.php:2204 includes/class-mla-main.php:2211
2245
+ #: includes/class-mla-media-modal.php:618 includes/class-mla-mime-types.php:825
2246
+ #: includes/class-mla-mime-types.php:1464
2247
+ #: includes/class-mla-mime-types.php:2643
2248
  #: includes/class-mla-settings-custom-fields-tab.php:578
2249
  #: includes/class-mla-settings-custom-fields-tab.php:749
2250
  #: includes/class-mla-settings-custom-fields-tab.php:2079
2262
  msgid "%1$s: %2$s non-array \"%3$s\""
2263
  msgstr ""
2264
 
2265
+ #: includes/class-mla-edit-media.php:393 includes/class-mla-list-table.php:1131
2266
+ #: includes/class-mla-list-table.php:1202 includes/class-mla-main.php:2414
2267
+ msgid "Parent ID"
2268
+ msgstr ""
2269
+
2270
+ #: includes/class-mla-edit-media.php:395 includes/class-mla-edit-media.php:1380
2271
+ #: includes/class-mla-main.php:2415
2272
+ #: includes/class-mla-settings-upload-tab.php:1469
2273
+ msgid "Select"
2274
+ msgstr ""
2275
+
2276
+ #: includes/class-mla-edit-media.php:401 includes/class-mla-main.php:2488
2277
+ #: includes/class-mla-settings-custom-fields-tab.php:840
2278
+ #: includes/class-mla-settings-iptc-exif-tab.php:980
2279
+ #: includes/class-mla-settings-upload-tab.php:120
2280
+ #: includes/class-mla-settings-upload-tab.php:554
2281
+ #: includes/class-mla-settings-view-tab.php:399
2282
+ msgid "No Change"
2283
+ msgstr ""
2284
+
2285
+ #: includes/class-mla-edit-media.php:402
2286
+ msgid "Allow"
2287
+ msgstr ""
2288
+
2289
+ #: includes/class-mla-edit-media.php:403
2290
+ msgid "Do not allow"
2291
+ msgstr ""
2292
+
2293
+ #: includes/class-mla-edit-media.php:456 includes/class-mla-edit-media.php:539
2294
+ #: includes/class-mla-main.php:2252 includes/class-mla-main.php:2314
2295
  msgid "+&nbsp;Add&nbsp;New&nbsp;Term"
2296
  msgstr ""
2297
 
2298
+ #: includes/class-mla-edit-media.php:457 includes/class-mla-edit-media.php:540
2299
+ #: includes/class-mla-main.php:2253 includes/class-mla-main.php:2315
2300
  msgid "Add New"
2301
  msgstr ""
2302
 
2303
+ #: includes/class-mla-edit-media.php:475 includes/class-mla-edit-media.php:558
2304
+ #: includes/class-mla-main.php:2271 includes/class-mla-main.php:2333
2305
  msgid "?&nbsp;Search"
2306
  msgstr ""
2307
 
2308
+ #: includes/class-mla-edit-media.php:481 includes/class-mla-edit-media.php:564
2309
+ #: includes/class-mla-edit-media.php:600 includes/class-mla-main.php:2277
2310
+ #: includes/class-mla-main.php:2339 includes/class-mla-main.php:2352
2311
  msgid "Add"
2312
  msgstr ""
2313
 
2314
+ #: includes/class-mla-edit-media.php:482 includes/class-mla-edit-media.php:565
2315
+ #: includes/class-mla-edit-media.php:601 includes/class-mla-main.php:2278
2316
+ #: includes/class-mla-main.php:2340 includes/class-mla-main.php:2353
2317
  msgid "Remove"
2318
  msgstr ""
2319
 
2320
+ #: includes/class-mla-edit-media.php:483 includes/class-mla-edit-media.php:566
2321
+ #: includes/class-mla-edit-media.php:602 includes/class-mla-main.php:2279
2322
+ #: includes/class-mla-main.php:2341 includes/class-mla-main.php:2354
2323
  #: includes/class-mla-settings-custom-fields-tab.php:502
2324
  #: includes/class-mla-settings-custom-fields-tab.php:812
2325
  #: includes/class-mla-settings-custom-fields-tab.php:1549
2330
  msgid "Replace"
2331
  msgstr ""
2332
 
2333
+ #: includes/class-mla-edit-media.php:782 includes/class-mla-main.php:2427
 
 
 
 
 
 
2334
  #: includes/class-mla-settings.php:1391
2335
  msgid "Reset"
2336
  msgstr ""
2337
 
2338
+ #: includes/class-mla-edit-media.php:783 includes/class-mla-main.php:2428
2339
+ msgid "Import"
 
 
 
 
 
 
2340
  msgstr ""
2341
 
2342
+ #: includes/class-mla-edit-media.php:784 includes/class-mla-main.php:2429
2343
+ #: includes/class-mla-settings-custom-fields-tab.php:516
2344
+ #: includes/class-mla-settings-custom-fields-tab.php:826
2345
+ #: includes/class-mla-settings-iptc-exif-tab.php:576
2346
+ #: includes/class-mla-settings-iptc-exif-tab.php:965
2347
+ msgid "Export"
 
 
 
 
 
2348
  msgstr ""
2349
 
2350
+ #: includes/class-mla-edit-media.php:785
2351
+ msgid ""
2352
+ "IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help "
2353
+ "menu for more information."
2354
  msgstr ""
2355
 
2356
+ #: includes/class-mla-edit-media.php:949
2357
  msgid "Custom field mapping updated."
2358
  msgstr ""
2359
 
2360
+ #: includes/class-mla-edit-media.php:950
2361
  msgid "IPTC/EXIF mapping updated."
2362
  msgstr ""
2363
 
2364
+ #: includes/class-mla-edit-media.php:951
2365
  msgid "Custom field mapping is disabled."
2366
  msgstr ""
2367
 
2368
+ #: includes/class-mla-edit-media.php:952
2369
  msgid "IPTC/EXIF mapping is disabled."
2370
  msgstr ""
2371
 
2372
+ #: includes/class-mla-edit-media.php:987 includes/class-mla-main.php:2135
2373
  msgid "Month"
2374
  msgstr ""
2375
 
2376
+ #: includes/class-mla-edit-media.php:993 includes/class-mla-main.php:2141
2377
  #, php-format
2378
  msgid "%1$s-%2$s"
2379
  msgstr ""
2380
 
2381
+ #: includes/class-mla-edit-media.php:997 includes/class-mla-main.php:2145
2382
  msgid "Day"
2383
  msgstr ""
2384
 
2385
+ #: includes/class-mla-edit-media.php:998 includes/class-mla-main.php:2146
2386
  msgid "Year"
2387
  msgstr ""
2388
 
2389
+ #: includes/class-mla-edit-media.php:999 includes/class-mla-main.php:2147
2390
  msgid "Hour"
2391
  msgstr ""
2392
 
2393
+ #: includes/class-mla-edit-media.php:1000 includes/class-mla-main.php:2148
2394
  msgid "Minute"
2395
  msgstr ""
2396
 
2397
+ #: includes/class-mla-edit-media.php:1004 includes/class-mla-main.php:2153
2398
  #, php-format
2399
  msgid "%1$s %2$s, %3$s @ %4$s:%5$s"
2400
  msgstr ""
2401
 
2402
+ #: includes/class-mla-edit-media.php:1027
2403
  msgid "OK"
2404
  msgstr ""
2405
 
2406
+ #: includes/class-mla-edit-media.php:1028 includes/class-mla-main.php:2088
2407
+ #: includes/class-mla-main.php:2421
2408
+ #: includes/class-mla-polylang-support.php:2114
2409
  #: includes/class-mla-settings-custom-fields-tab.php:530
2410
  #: includes/class-mla-settings-custom-fields-tab.php:761
2411
  #: includes/class-mla-settings-custom-fields-tab.php:843
2424
  msgid "Cancel"
2425
  msgstr ""
2426
 
2427
+ #: includes/class-mla-edit-media.php:1044
2428
  msgid "M j, Y @ H:i"
2429
  msgstr ""
2430
 
2431
+ #: includes/class-mla-edit-media.php:1050 includes/class-mla-list-table.php:696
2432
  #: includes/class-mla-list-table.php:820 includes/class-mla-list-table.php:1086
2433
  #: includes/class-mla-list-table.php:1257
2434
  #: includes/class-mla-list-table.php:1306
2435
  #: includes/class-mla-list-table.php:1352
2436
  #: includes/class-mla-list-table.php:1397
2437
  #: includes/class-mla-list-table.php:1619
2438
+ #: includes/class-mla-list-table.php:1974
2439
+ #: includes/class-mla-polylang-support.php:382
2440
  #: includes/class-mla-settings-custom-fields-tab.php:1392
2441
  #: includes/class-mla-settings-custom-fields-tab.php:1739
2442
  #: includes/class-mla-settings-iptc-exif-tab.php:1529
2449
  msgid "Edit"
2450
  msgstr ""
2451
 
2452
+ #: includes/class-mla-edit-media.php:1051
2453
  msgid "Edit upload date and time"
2454
  msgstr ""
2455
 
2456
+ #: includes/class-mla-edit-media.php:1053
2457
  msgid "Upload Date and time"
2458
  msgstr ""
2459
 
2460
+ #: includes/class-mla-edit-media.php:1084
2461
  msgid "Map Custom Field metadata for this item"
2462
  msgstr ""
2463
 
2464
+ #: includes/class-mla-edit-media.php:1084 includes/class-mla-main.php:1846
2465
+ #: includes/class-mla-main.php:2433
2466
  msgid "Map Custom Field metadata"
2467
  msgstr ""
2468
 
2469
+ #: includes/class-mla-edit-media.php:1088
2470
  msgid "Map IPTC/EXIF metadata for this item"
2471
  msgstr ""
2472
 
2473
+ #: includes/class-mla-edit-media.php:1088 includes/class-mla-main.php:1849
2474
+ #: includes/class-mla-main.php:2431
2475
  msgid "Map IPTC/EXIF metadata"
2476
  msgstr ""
2477
 
2478
+ #: includes/class-mla-edit-media.php:1184
2479
+ #: includes/class-mla-edit-media.php:1381
2480
  msgid "Parent Info"
2481
  msgstr ""
2482
 
2483
+ #: includes/class-mla-edit-media.php:1194
2484
+ #: includes/class-mla-edit-media.php:1424
2485
  msgid "Attachment Metadata"
2486
  msgstr ""
2487
 
2488
+ #: includes/class-mla-edit-media.php:1200
2489
+ #: includes/class-mla-edit-media.php:1443
2490
  msgid "Attachment File Metadata"
2491
  msgstr ""
2492
 
2493
+ #: includes/class-mla-edit-media.php:1271
2494
+ #: includes/class-mla-edit-media.php:1313 includes/class-mla-main.php:703
2495
+ #: includes/class-mla-settings.php:586
2496
  #, php-format
2497
  msgctxt "error_log"
2498
  msgid "%1$s: %2$s discarding \"%3$s\"; no title/order"
2499
  msgstr ""
2500
 
2501
+ #: includes/class-mla-edit-media.php:1379
2502
  msgid "Post Parent"
2503
  msgstr ""
2504
 
2505
+ #: includes/class-mla-edit-media.php:1380 includes/class-mla-main.php:2070
2506
  msgid "Select Parent"
2507
  msgstr ""
2508
 
2554
  msgid "Restore this item from the Trash"
2555
  msgstr ""
2556
 
2557
+ #: includes/class-mla-list-table.php:809 includes/class-mla-list-table.php:1971
2558
  msgid "Restore"
2559
  msgstr ""
2560
 
2575
  msgid "Edit this item inline"
2576
  msgstr ""
2577
 
2578
+ #: includes/class-mla-list-table.php:821 includes/class-mla-main.php:2405
2579
  #: includes/class-mla-options.php:1244
2580
  #: includes/class-mla-settings-custom-fields-tab.php:493
2581
  #: includes/class-mla-settings-custom-fields-tab.php:803
2592
  msgid "Move this item to the Trash"
2593
  msgstr ""
2594
 
2595
+ #: includes/class-mla-list-table.php:827 includes/class-mla-list-table.php:1977
2596
  msgid "Move to Trash"
2597
  msgstr ""
2598
 
2605
  msgid "Delete this item Permanently"
2606
  msgstr ""
2607
 
2608
+ #: includes/class-mla-list-table.php:832 includes/class-mla-list-table.php:1972
2609
+ #: includes/class-mla-list-table.php:1979
2610
  #: includes/class-mla-settings-custom-fields-tab.php:1403
2611
  #: includes/class-mla-settings-custom-fields-tab.php:1740
2612
  #: includes/class-mla-settings-iptc-exif-tab.php:1542
2618
  msgid "Delete Permanently"
2619
  msgstr ""
2620
 
2621
+ #: includes/class-mla-list-table.php:840 includes/class-mla-list-table.php:1984
2622
  #: includes/class-mla-settings-documentation-tab.php:673
2623
  #: includes/class-mla-settings.php:1381
2624
  msgid "Download"
2677
  msgstr[0] ""
2678
  msgstr[1] ""
2679
 
2680
+ #: includes/class-mla-list-table.php:2073
2681
  #: includes/class-mla-settings-custom-fields-tab.php:1803
2682
  #: includes/class-mla-settings-iptc-exif-tab.php:1969
2683
  #: includes/class-mla-settings-shortcodes-tab.php:1361
2684
  msgid "Filter"
2685
  msgstr ""
2686
 
2687
+ #: includes/class-mla-list-table.php:2076
2688
  #: includes/mla-media-modal-js-template.php:70
2689
  msgid "Terms Search"
2690
  msgstr ""
2691
 
2692
+ #: includes/class-mla-list-table.php:2081
2693
+ #: includes/class-mla-polylang-support.php:2121
2694
  #: includes/class-mla-thumbnail-generation.php:657
2695
  msgid "Clear Filter-by"
2696
  msgstr ""
2697
 
2698
+ #: includes/class-mla-list-table.php:2084
2699
  msgid "Empty Trash"
2700
  msgstr ""
2701
 
2702
+ #: includes/class-mla-main.php:448
2703
  msgid "Error while saving the changes."
2704
  msgstr ""
2705
 
2706
+ #: includes/class-mla-main.php:449
2707
  #: includes/class-mla-settings-custom-fields-tab.php:55
2708
  #: includes/class-mla-settings-custom-fields-tab.php:88
2709
  #: includes/class-mla-settings-iptc-exif-tab.php:78
2713
  msgid "Remove From Bulk Edit"
2714
  msgstr ""
2715
 
2716
+ #: includes/class-mla-main.php:451
2717
  msgid "Bulk Edit items"
2718
  msgstr ""
2719
 
2720
+ #: includes/class-mla-main.php:452 includes/class-mla-main.php:2434
2721
  #: includes/class-mla-settings-custom-fields-tab.php:61
2722
  #: includes/class-mla-settings-iptc-exif-tab.php:84
2723
  msgid "Waiting"
2724
  msgstr ""
2725
 
2726
+ #: includes/class-mla-main.php:453 includes/class-mla-main.php:2436
2727
  #: includes/class-mla-settings-custom-fields-tab.php:63
2728
  #: includes/class-mla-settings-iptc-exif-tab.php:86
2729
  msgid "Complete"
2730
  msgstr ""
2731
 
2732
+ #: includes/class-mla-main.php:454
2733
  #: includes/class-mla-settings-custom-fields-tab.php:64
2734
  #: includes/class-mla-settings-iptc-exif-tab.php:87
2735
  msgid "Unchanged"
2736
  msgstr ""
2737
 
2738
+ #: includes/class-mla-main.php:455
2739
  #: includes/class-mla-settings-custom-fields-tab.php:65
2740
  #: includes/class-mla-settings-iptc-exif-tab.php:88
2741
  msgid "Succeeded"
2742
  msgstr ""
2743
 
2744
+ #: includes/class-mla-main.php:456
2745
  #: includes/class-mla-settings-custom-fields-tab.php:66
2746
  #: includes/class-mla-settings-iptc-exif-tab.php:89
2747
  msgid "Failed"
2748
  msgstr ""
2749
 
2750
+ #: includes/class-mla-main.php:457
2751
  msgid "CANCELED"
2752
  msgstr ""
2753
 
2754
+ #: includes/class-mla-main.php:600
2755
  #, php-format
2756
  msgid "Item permanently deleted."
2757
  msgid_plural "%d items permanently deleted."
2758
  msgstr[0] ""
2759
  msgstr[1] ""
2760
 
2761
+ #: includes/class-mla-main.php:605 includes/class-mla-main.php:2627
2762
  #, php-format
2763
  msgid "Item %1$d moved to Trash."
2764
  msgstr ""
2765
 
2766
+ #: includes/class-mla-main.php:831
2767
  msgid "download path out of bounds."
2768
  msgstr ""
2769
 
2770
+ #: includes/class-mla-main.php:833
2771
  msgid "download path invalid."
2772
  msgstr ""
2773
 
2774
+ #: includes/class-mla-main.php:836
2775
  msgid "download argument(s) not set."
2776
  msgstr ""
2777
 
2778
+ #: includes/class-mla-main.php:896
2779
  msgid "no ZipArchive support."
2780
  msgstr ""
2781
 
2782
+ #: includes/class-mla-main.php:928
2783
  #, php-format
2784
  msgid "The ZIP archive ( %1$s ) could not be created."
2785
  msgstr ""
2786
 
2787
+ #: includes/class-mla-main.php:938
2788
  #, php-format
2789
  msgid "The file ( %1$s ) could not be added to the ZIP archive."
2790
  msgstr ""
2791
 
2792
+ #: includes/class-mla-main.php:945
2793
  #, php-format
2794
  msgid "The ZIP archive ( %1$s ) could not be closed."
2795
  msgstr ""
2796
 
2797
+ #: includes/class-mla-main.php:1331
2798
  msgid "You are not allowed to edit Attachment: "
2799
  msgstr ""
2800
 
2801
+ #: includes/class-mla-main.php:1387
2802
  #, php-format
2803
  msgid "%1$s: Unknown bulk action %2$s"
2804
  msgstr ""
2805
 
2806
+ #: includes/class-mla-main.php:1409
2807
  msgid "no changes detected"
2808
  msgstr ""
2809
 
2810
+ #: includes/class-mla-main.php:1456
2811
  #: includes/class-mla-settings-custom-fields-tab.php:635
2812
  #: includes/class-mla-settings-documentation-tab.php:287
2813
  #: includes/class-mla-settings-iptc-exif-tab.php:775
2818
  msgid "Bulk Action %1$s - no items selected."
2819
  msgstr ""
2820
 
2821
+ #: includes/class-mla-main.php:1551
2822
  msgid "You do not have permission to manage attachments."
2823
  msgstr ""
2824
 
2825
+ #: includes/class-mla-main.php:1554
2826
  msgctxt "file"
2827
  msgid "Add New"
2828
  msgstr ""
2829
 
2830
+ #: includes/class-mla-main.php:1609
2831
  #, php-format
2832
  msgctxt "deleted items"
2833
  msgid "%s item deleted."
2835
  msgstr[0] ""
2836
  msgstr[1] ""
2837
 
2838
+ #: includes/class-mla-main.php:1611
2839
  msgid "No items deleted."
2840
  msgstr ""
2841
 
2842
+ #: includes/class-mla-main.php:1670
2843
  msgid "Empty Terms Search; ignored"
2844
  msgstr ""
2845
 
2846
+ #: includes/class-mla-main.php:1682
2847
  #: includes/class-mla-settings-custom-fields-tab.php:663
2848
  #: includes/class-mla-settings-documentation-tab.php:321
2849
  #: includes/class-mla-settings-iptc-exif-tab.php:803
2854
  msgid "Unknown mla_admin_action - \"%1$s\""
2855
  msgstr ""
2856
 
2857
+ #: includes/class-mla-main.php:1727
2858
  msgid "term search results for"
2859
  msgstr ""
2860
 
2861
+ #: includes/class-mla-main.php:1730
2862
  msgid "post/parent results for"
2863
  msgstr ""
2864
 
2865
+ #: includes/class-mla-main.php:1732
2866
  msgid "search results for"
2867
  msgstr ""
2868
 
2869
+ #: includes/class-mla-main.php:1852 includes/class-mla-main.php:2092
2870
+ #: includes/class-mla-main.php:2422
2871
  #: includes/class-mla-settings-custom-fields-tab.php:532
2872
  #: includes/class-mla-settings-custom-fields-tab.php:844
2873
  #: includes/class-mla-settings-documentation-tab.php:664
2882
  msgid "Update"
2883
  msgstr ""
2884
 
2885
+ #: includes/class-mla-main.php:2027
2886
  msgid "All Post Types"
2887
  msgstr ""
2888
 
2889
+ #: includes/class-mla-main.php:2073
2890
  msgid "For"
2891
  msgstr ""
2892
 
2893
+ #: includes/class-mla-main.php:2083
2894
+ #: includes/class-mla-shortcode-support.php:1248
2895
  msgid "Unattached"
2896
  msgstr ""
2897
 
2898
+ #: includes/class-mla-main.php:2426 includes/class-mla-options.php:1258
2899
  #: includes/class-mla-settings-custom-fields-tab.php:496
2900
  #: includes/class-mla-settings-custom-fields-tab.php:806
2901
  #: includes/class-mla-settings-custom-fields-tab.php:1509
2905
  msgid "Bulk Edit"
2906
  msgstr ""
2907
 
2908
+ #: includes/class-mla-main.php:2435
2909
  msgid "In-process"
2910
  msgstr ""
2911
 
2912
+ #: includes/class-mla-main.php:2540
2913
  msgid "You are not allowed to delete this item."
2914
  msgstr ""
2915
 
2916
+ #: includes/class-mla-main.php:2548
2917
  #, php-format
2918
  msgid "%1$s: Item %2$d could NOT be deleted."
2919
  msgstr ""
2920
 
2921
+ #: includes/class-mla-main.php:2555
2922
  #, php-format
2923
  msgid "Item %1$d permanently deleted."
2924
  msgstr ""
2925
 
2926
+ #: includes/class-mla-main.php:2572
2927
  msgid "You are not allowed to move this item out of the Trash."
2928
  msgstr ""
2929
 
2930
+ #: includes/class-mla-main.php:2580
2931
  #, php-format
2932
  msgid "%1$s: Item %2$d could NOT be restored from Trash."
2933
  msgstr ""
2934
 
2935
+ #: includes/class-mla-main.php:2595
2936
  #, php-format
2937
  msgid "Item %1$d restored from Trash."
2938
  msgstr ""
2939
 
2940
+ #: includes/class-mla-main.php:2612
2941
  msgid "You are not allowed to move this item to the Trash."
2942
  msgstr ""
2943
 
2944
+ #: includes/class-mla-main.php:2620
2945
  #, php-format
2946
  msgid "%1$s: Item %2$d could NOT be moved to Trash."
2947
  msgstr ""
3113
  msgid "Copied from previous filter/plugin"
3114
  msgstr ""
3115
 
3116
+ #: includes/class-mla-mime-types.php:1193
3117
+ #: includes/class-mla-mime-types.php:1305
3118
  msgid "Ignoring specification for Post MIME Type; using slug"
3119
  msgstr ""
3120
 
3121
+ #: includes/class-mla-mime-types.php:1199
3122
+ #: includes/class-mla-mime-types.php:2279
3123
  #, php-format
3124
  msgid "<br>Changing %1$s \"%2$s\" to valid value \"%3$s\""
3125
  msgstr ""
3126
 
3127
+ #: includes/class-mla-mime-types.php:1199
3128
+ #: includes/class-mla-mime-types.php:1286
3129
+ #: includes/class-mla-mime-types.php:1295
3130
  #: includes/class-mla-settings-view-tab.php:115
3131
  #: includes/class-mla-settings-view-tab.php:378
3132
  msgid "Slug"
3133
  msgstr ""
3134
 
3135
+ #: includes/class-mla-mime-types.php:1205
3136
+ #: includes/class-mla-mime-types.php:1292
3137
  #, php-format
3138
  msgid "%1$s: Could not add Slug \"%2$s\"; value already exists"
3139
  msgstr ""
3140
 
3141
+ #: includes/class-mla-mime-types.php:1243
3142
  #, php-format
3143
  msgid "Edit view \"%1$s\"; added"
3144
  msgstr ""
3145
 
3146
+ #: includes/class-mla-mime-types.php:1286
3147
+ #: includes/class-mla-mime-types.php:2401
3148
  #, php-format
3149
  msgid "<br>Changing new %1$s \"%2$s\" to valid value \"%3$s\""
3150
  msgstr ""
3151
 
3152
+ #: includes/class-mla-mime-types.php:1340
3153
  #, php-format
3154
  msgid "Edit view \"%1$s\"; no changes detected"
3155
  msgstr ""
3156
 
3157
+ #: includes/class-mla-mime-types.php:1354
3158
  #, php-format
3159
  msgid "Edit view \"%1$s\"; updated"
3160
  msgstr ""
3161
 
3162
+ #: includes/class-mla-mime-types.php:1427
3163
  #, php-format
3164
  msgid "View \"%1$s\" reverted to standard"
3165
  msgstr ""
3166
 
3167
+ #: includes/class-mla-mime-types.php:1433
3168
  #, php-format
3169
  msgid "View \"%1$s\" deleted"
3170
  msgstr ""
3171
 
3172
+ #: includes/class-mla-mime-types.php:1441
3173
  #, php-format
3174
  msgid "%1$s: Did not find view \"%2$s\""
3175
  msgstr ""
3176
 
3177
+ #: includes/class-mla-mime-types.php:1698
3178
  #: includes/class-mla-settings-documentation-tab.php:1553
3179
  msgctxt "table_view_singular"
3180
  msgid "Active"
3181
  msgstr ""
3182
 
3183
+ #: includes/class-mla-mime-types.php:1699
3184
  #: includes/class-mla-settings-documentation-tab.php:1554
3185
  msgctxt "table_view_plural"
3186
  msgid "Active"
3187
  msgstr ""
3188
 
3189
+ #: includes/class-mla-mime-types.php:1702
3190
  #: includes/class-mla-settings-documentation-tab.php:1557
3191
  msgctxt "table_view_singular"
3192
  msgid "Inactive"
3193
  msgstr ""
3194
 
3195
+ #: includes/class-mla-mime-types.php:1703
3196
  #: includes/class-mla-settings-documentation-tab.php:1558
3197
  msgctxt "table_view_plural"
3198
  msgid "Inactive"
3199
  msgstr ""
3200
 
3201
+ #: includes/class-mla-mime-types.php:1706
3202
  msgctxt "table_view_singular"
3203
  msgid "WordPress"
3204
  msgstr ""
3205
 
3206
+ #: includes/class-mla-mime-types.php:1707
3207
  msgctxt "table_view_plural"
3208
  msgid "WordPress"
3209
  msgstr ""
3210
 
3211
+ #: includes/class-mla-mime-types.php:1710
3212
  msgctxt "table_view_singular"
3213
  msgid "MLA"
3214
  msgstr ""
3215
 
3216
+ #: includes/class-mla-mime-types.php:1711
3217
  msgctxt "table_view_plural"
3218
  msgid "MLA"
3219
  msgstr ""
3220
 
3221
+ #: includes/class-mla-mime-types.php:1714
3222
  #: includes/class-mla-settings-iptc-exif-tab.php:2857
3223
  msgctxt "table_view_singular"
3224
  msgid "Custom"
3225
  msgstr ""
3226
 
3227
+ #: includes/class-mla-mime-types.php:1715
3228
  #: includes/class-mla-settings-iptc-exif-tab.php:2858
3229
  msgctxt "table_view_plural"
3230
  msgid "Custom"
3231
  msgstr ""
3232
 
3233
+ #: includes/class-mla-mime-types.php:1970
3234
  msgid "icon"
3235
  msgstr ""
3236
 
3237
+ #: includes/class-mla-mime-types.php:2263
3238
+ #: includes/class-mla-mime-types.php:2362
3239
  msgid "Cannot load Upload MIME Types"
3240
  msgstr ""
3241
 
3242
+ #: includes/class-mla-mime-types.php:2274
3243
  msgid "Extension is required"
3244
  msgstr ""
3245
 
3246
+ #: includes/class-mla-mime-types.php:2279
3247
+ #: includes/class-mla-mime-types.php:2401
3248
+ #: includes/class-mla-mime-types.php:2410
3249
  #: includes/class-mla-settings-upload-tab.php:190
3250
  #: includes/class-mla-settings-upload-tab.php:535
3251
  msgid "Extension"
3252
  msgstr ""
3253
 
3254
+ #: includes/class-mla-mime-types.php:2287
3255
  #, php-format
3256
  msgid "%1$s: Could not add extension \"%2$s\"; value already exists"
3257
  msgstr ""
3258
 
3259
+ #: includes/class-mla-mime-types.php:2295
3260
  msgid "MIME type is required"
3261
  msgstr ""
3262
 
3263
+ #: includes/class-mla-mime-types.php:2300
3264
+ #: includes/class-mla-mime-types.php:2442
3265
  #, php-format
3266
  msgid "%1$s: Bad MIME type; try \"%2$s\""
3267
  msgstr ""
3268
 
3269
+ #: includes/class-mla-mime-types.php:2337
3270
  #, php-format
3271
  msgid "Upload MIME Type \"%1$s\"; added"
3272
  msgstr ""
3273
 
3274
+ #: includes/class-mla-mime-types.php:2343
3275
+ #: includes/class-mla-mime-types.php:2523
3276
+ #: includes/class-mla-mime-types.php:2602
3277
  msgid "Cannot update Upload MIME Types"
3278
  msgstr ""
3279
 
3280
+ #: includes/class-mla-mime-types.php:2407
3281
  #, php-format
3282
  msgid "%1$s: Could not add new extension \"%2$s\"; value already exists"
3283
  msgstr ""
3284
 
3285
+ #: includes/class-mla-mime-types.php:2503
3286
  #, php-format
3287
  msgid "Edit type \"%1$s\"; no changes detected"
3288
  msgstr ""
3289
 
3290
+ #: includes/class-mla-mime-types.php:2517
3291
  #, php-format
3292
  msgid "Edit type \"%1$s\"; updated"
3293
  msgstr ""
3294
 
3295
+ #: includes/class-mla-mime-types.php:2590
3296
  #, php-format
3297
  msgid "Upload MIME Type \"%1$s\"; reverted to standard"
3298
  msgstr ""
3299
 
3300
+ #: includes/class-mla-mime-types.php:2596
3301
  #, php-format
3302
  msgid "Upload MIME Type \"%1$s\"; deleted"
3303
  msgstr ""
3304
 
3305
+ #: includes/class-mla-mime-types.php:2611
3306
  #, php-format
3307
  msgid "%1$s: Did not find Upload type \"%2$s\""
3308
  msgstr ""
3719
  msgid "Delimiter(s)"
3720
  msgstr ""
3721
 
3722
+ #: includes/class-mla-polylang-support.php:268
3723
  msgid "ERROR: No post ID found"
3724
  msgstr ""
3725
 
3726
+ #: includes/class-mla-polylang-support.php:377
3727
  msgid "Error while saving the translations."
3728
  msgstr ""
3729
 
3730
+ #: includes/class-mla-polylang-support.php:378
3731
  msgid "Remove From Bulk Translate"
3732
  msgstr ""
3733
 
3734
+ #: includes/class-mla-polylang-support.php:380
3735
  msgid "Bulk Translate items"
3736
  msgstr ""
3737
 
3738
+ #: includes/class-mla-polylang-support.php:381
3739
  msgid "Add new"
3740
  msgstr ""
3741
 
3742
+ #: includes/class-mla-polylang-support.php:1925
3743
+ #: includes/class-mla-polylang-support.php:2322
3744
  msgid "Bulk Translations"
3745
  msgstr ""
3746
 
3747
+ #: includes/class-mla-polylang-support.php:1949
3748
  msgid "Translate"
3749
  msgstr ""
3750
 
3751
+ #: includes/class-mla-polylang-support.php:2104
3752
  msgid "All Languages"
3753
  msgstr ""
3754
 
3755
+ #: includes/class-mla-polylang-support.php:2111
3756
+ #: includes/class-mla-polylang-support.php:2387
3757
+ #: includes/class-mla-polylang-support.php:2547
3758
  msgid "Quick Translate"
3759
  msgstr ""
3760
 
3761
+ #: includes/class-mla-polylang-support.php:2115
3762
  msgid "Set Language"
3763
  msgstr ""
3764
 
3765
+ #: includes/class-mla-polylang-support.php:2116
3766
+ #: includes/class-mla-polylang-support.php:2554
3767
  msgid "Bulk Translate"
3768
  msgstr ""
3769
 
3770
+ #: includes/class-mla-polylang-support.php:2117
3771
  msgid "Add or Modify Translation"
3772
  msgstr ""
3773
 
3774
+ #: includes/class-mla-polylang-support.php:2118
3775
+ #: includes/class-mla-polylang-support.php:2173
3776
+ #: includes/class-mla-polylang-support.php:2491
3777
+ #: includes/class-mla-polylang-support.php:2606
3778
  #: includes/class-mla-wpml-support.php:1607
3779
  #: includes/class-mla-wpml-support.php:1697
3780
  #: includes/class-mla-wpml-support.php:2182
3781
  msgid "Language"
3782
  msgstr ""
3783
 
3784
+ #: includes/class-mla-polylang-support.php:2120
3785
  #: includes/class-mla-thumbnail-generation.php:656
3786
  msgid "Options"
3787
  msgstr ""
3788
 
3789
+ #: includes/class-mla-polylang-support.php:2387
3790
  msgid "Translate this item inline"
3791
  msgstr ""
3792
 
3793
+ #: includes/class-mla-polylang-support.php:2528
3794
+ #: includes/class-mla-polylang-support.php:2633
3795
  #: includes/class-mla-wpml-support.php:1642
3796
  #: includes/class-mla-wpml-support.php:1745
3797
  msgid "Media/Assistant submenu table"
3798
  msgstr ""
3799
 
3800
+ #: includes/class-mla-polylang-support.php:2533
3801
  #: includes/class-mla-wpml-support.php:1647
3802
  msgid "Language Column"
3803
  msgstr ""
3804
 
3805
+ #: includes/class-mla-polylang-support.php:2536
3806
  #: includes/class-mla-wpml-support.php:1650
3807
  msgid ""
3808
  "Check this option to add a Language column to the Media/Assistant submenu "
3809
  "table."
3810
  msgstr ""
3811
 
3812
+ #: includes/class-mla-polylang-support.php:2540
3813
  #: includes/class-mla-wpml-support.php:1654
3814
  msgid "Translations Column"
3815
  msgstr ""
3816
 
3817
+ #: includes/class-mla-polylang-support.php:2543
3818
  #: includes/class-mla-wpml-support.php:1657
3819
  msgid ""
3820
  "Check this option to add a Translation Status column to the Media/Assistant "
3821
  "submenu table."
3822
  msgstr ""
3823
 
3824
+ #: includes/class-mla-polylang-support.php:2550
3825
  msgid ""
3826
  "Check this option to add a Quick Translate rollover action to the Media/"
3827
  "Assistant submenu table."
3828
  msgstr ""
3829
 
3830
+ #: includes/class-mla-polylang-support.php:2557
3831
  msgid ""
3832
  "Check this option to add \"Translate\" to the \"Bulk Actions\" control on "
3833
  "the Media/Assistant submenu table."
3834
  msgstr ""
3835
 
3836
+ #: includes/class-mla-polylang-support.php:2561
3837
+ #: includes/class-mla-polylang-support.php:2633
3838
  #: includes/class-mla-wpml-support.php:1661
3839
  #: includes/class-mla-wpml-support.php:1745
3840
  msgid "Term Management"
3841
  msgstr ""
3842
 
3843
+ #: includes/class-mla-polylang-support.php:2566
3844
  #: includes/class-mla-wpml-support.php:1666
3845
  msgid "Term Assignment"
3846
  msgstr ""
3847
 
3848
+ #: includes/class-mla-polylang-support.php:2569
3849
  #: includes/class-mla-wpml-support.php:1669
3850
  msgid ""
3851
  "Check this option to assign language-specific terms when items are updated."
3852
  msgstr ""
3853
 
3854
+ #: includes/class-mla-polylang-support.php:2573
3855
  #: includes/class-mla-wpml-support.php:1673
3856
  msgid "Term Synchronization"
3857
  msgstr ""
3858
 
3859
+ #: includes/class-mla-polylang-support.php:2576
3860
  #: includes/class-mla-wpml-support.php:1676
3861
  msgid ""
3862
  "Check this option to synchronize common terms among all item translations."
3863
  msgstr ""
3864
 
3865
+ #: includes/class-mla-polylang-support.php:2580
3866
  #: includes/class-mla-wpml-support.php:1680
3867
  msgid "Term Mapping Replication"
3868
  msgstr ""
3869
 
3870
+ #: includes/class-mla-polylang-support.php:2583
3871
  #: includes/class-mla-wpml-support.php:1683
3872
  msgid ""
3873
  "When mapping IPTC/EXIF metadata to taxonomy terms, make them available in "
3874
  "all languages."
3875
  msgstr ""
3876
 
3877
+ #: includes/class-mla-polylang-support.php:2631
3878
  #: includes/class-mla-wpml-support.php:1743
3879
  msgid "Language Options"
3880
  msgstr ""
3881
 
3882
+ #: includes/class-mla-polylang-support.php:2633
3883
  #, php-format
3884
  msgid ""
3885
  "In this tab you can find a number of options for controlling Polylang-"
3888
  "make."
3889
  msgstr ""
3890
 
3891
+ #: includes/class-mla-polylang-support.php:2635
3892
  #: includes/class-mla-wpml-support.php:1747
3893
  #, php-format
3894
  msgid ""
3896
  "section of the Documentation."
3897
  msgstr ""
3898
 
3899
+ #: includes/class-mla-polylang-support.php:2635
3900
  #: includes/class-mla-wpml-support.php:1747
3901
  msgid "Language Options documentation"
3902
  msgstr ""
3903
 
3904
+ #: includes/class-mla-polylang-support.php:2635
3905
  #: includes/class-mla-wpml-support.php:1747
3906
  msgid "WPML &amp; Polylang Multilingual Support; the MLA Language Tab"
3907
  msgstr ""
3908
 
3909
+ #: includes/class-mla-polylang-support.php:2638
3910
  #: includes/class-mla-settings-custom-fields-tab.php:686
3911
  #: includes/class-mla-settings-custom-fields-tab.php:787
3912
  #: includes/class-mla-settings-iptc-exif-tab.php:826
3922
  msgid "Save Changes"
3923
  msgstr ""
3924
 
3925
+ #: includes/class-mla-polylang-support.php:2639
3926
  #: includes/class-mla-wpml-support.php:1751
3927
  msgid "Delete Language options and restore default settings"
3928
  msgstr ""
3929
 
3930
+ #: includes/class-mla-polylang-support.php:2642
3931
  #: includes/class-mla-settings.php:799 includes/class-mla-settings.php:1066
3932
  #: includes/class-mla-wpml-support.php:1754
3933
  msgid "Go to Top"
3934
  msgstr ""
3935
 
3936
+ #: includes/class-mla-polylang-support.php:2679
3937
  #: includes/class-mla-wpml-support.php:1791
3938
  msgid "Language settings saved."
3939
  msgstr ""
3940
 
3941
+ #: includes/class-mla-polylang-support.php:2710
3942
  #: includes/class-mla-settings.php:1642
3943
  #: includes/class-mla-wpml-support.php:1822
3944
  #, php-format
3946
  msgid "delete_option \"%1$s\""
3947
  msgstr ""
3948
 
3949
+ #: includes/class-mla-polylang-support.php:2718
3950
  #: includes/class-mla-wpml-support.php:1830
3951
  msgid "Language settings reset to default values."
3952
  msgstr ""
4183
  msgid "Single"
4184
  msgstr ""
4185
 
 
 
 
 
 
 
 
4186
  #: includes/class-mla-settings-custom-fields-tab.php:518
4187
  #: includes/class-mla-settings-custom-fields-tab.php:828
4188
  #: includes/class-mla-settings-iptc-exif-tab.php:578
5739
  msgid "Settings imported; %1$s updated, %2$s unchanged."
5740
  msgstr ""
5741
 
5742
+ #: includes/class-mla-shortcode-support.php:527
5743
+ #: includes/class-mla-shortcode-support.php:2028
5744
+ #: includes/class-mla-shortcode-support.php:4453
5745
+ #: includes/class-mla-shortcode-support.php:4759
5746
  msgid "Previous"
5747
  msgstr ""
5748
 
5749
+ #: includes/class-mla-shortcode-support.php:528
5750
+ #: includes/class-mla-shortcode-support.php:2029
5751
+ #: includes/class-mla-shortcode-support.php:4500
5752
+ #: includes/class-mla-shortcode-support.php:4765
5753
  msgid "Next"
5754
  msgstr ""
5755
 
5756
+ #: includes/class-mla-shortcode-support.php:604
5757
+ #: includes/class-mla-shortcode-support.php:610
5758
+ #: includes/class-mla-shortcode-support.php:2175
5759
+ #: includes/class-mla-shortcode-support.php:2182
5760
+ #: includes/class-mla-shortcode-support.php:3665
5761
+ #: includes/class-mla-shortcode-support.php:3672
5762
  #: includes/class-mla-template-support.php:598
5763
  msgid "not found"
5764
  msgstr ""
5765
 
5766
+ #: includes/class-mla-shortcode-support.php:641
5767
+ #: includes/class-mla-shortcode-support.php:2167
5768
+ #: includes/class-mla-shortcode-support.php:3657
5769
  msgid "mla_debug REQUEST"
5770
  msgstr ""
5771
 
5772
+ #: includes/class-mla-shortcode-support.php:645
5773
+ #: includes/class-mla-shortcode-support.php:647
5774
  msgid "mla_debug attributes_errors"
5775
  msgstr ""
5776
 
5777
+ #: includes/class-mla-shortcode-support.php:653
5778
+ #: includes/class-mla-shortcode-support.php:2168
5779
+ #: includes/class-mla-shortcode-support.php:3658
5780
+ #: includes/class-mla-shortcode-support.php:6573
5781
  msgid "mla_debug attributes"
5782
  msgstr ""
5783
 
5784
+ #: includes/class-mla-shortcode-support.php:654
5785
+ #: includes/class-mla-shortcode-support.php:2169
5786
+ #: includes/class-mla-shortcode-support.php:3659
5787
+ #: includes/class-mla-shortcode-support.php:6574
5788
  msgid "mla_debug arguments"
5789
  msgstr ""
5790
 
5791
+ #: includes/class-mla-shortcode-support.php:757
5792
  msgid "mla_debug empty gallery"
5793
  msgstr ""
5794
 
5795
+ #: includes/class-mla-shortcode-support.php:788
5796
  msgid ""
5797
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
5798
  "<strong>default</strong>, query = "
5799
  msgstr ""
5800
 
5801
+ #: includes/class-mla-shortcode-support.php:1272
5802
  msgid "unknown"
5803
  msgstr ""
5804
 
5805
+ #: includes/class-mla-shortcode-support.php:2306
5806
  msgid "mla_debug empty cloud"
5807
  msgstr ""
5808
 
5809
+ #: includes/class-mla-shortcode-support.php:2425
5810
  msgid "mla_debug adding ANY terms"
5811
  msgstr ""
5812
 
5813
+ #: includes/class-mla-shortcode-support.php:2463
5814
  msgid "mla_debug adding NO terms"
5815
  msgstr ""
5816
 
5817
+ #: includes/class-mla-shortcode-support.php:2501
5818
  msgid "mla_debug adding IGNORE terms"
5819
  msgstr ""
5820
 
5821
+ #: includes/class-mla-shortcode-support.php:3804
5822
  msgid "mla_debug empty list"
5823
  msgstr ""
5824
 
5825
+ #: includes/class-mla-shortcode-support.php:3827
5826
  msgid "no-terms"
5827
  msgstr ""
5828
 
5829
+ #: includes/class-mla-shortcode-support.php:5280
5830
+ #: includes/class-mla-shortcode-support.php:5312
5831
+ #: includes/class-mla-shortcode-support.php:5501
 
 
 
5832
  msgid "Invalid mla_gallery"
5833
  msgstr ""
5834
 
5835
+ #: includes/class-mla-shortcode-support.php:6303
5836
+ #: includes/class-mla-shortcode-support.php:6658
5837
  msgid "mla_debug query"
5838
  msgstr ""
5839
 
5840
+ #: includes/class-mla-shortcode-support.php:6304
5841
  msgid "mla_debug request"
5842
  msgstr ""
5843
 
5844
+ #: includes/class-mla-shortcode-support.php:6305
5845
  msgid "mla_debug query_vars"
5846
  msgstr ""
5847
 
5848
+ #: includes/class-mla-shortcode-support.php:6306
5849
  msgid "mla_debug post_count"
5850
  msgstr ""
5851
 
5852
+ #: includes/class-mla-shortcode-support.php:6307
5853
  msgid "mla_debug found_posts"
5854
  msgstr ""
5855
 
5856
+ #: includes/class-mla-shortcode-support.php:6333
5857
  msgid "mla_debug JOIN filter"
5858
  msgstr ""
5859
 
5860
+ #: includes/class-mla-shortcode-support.php:6374
5861
  msgid "mla_debug modified JOIN filter"
5862
  msgstr ""
5863
 
5864
+ #: includes/class-mla-shortcode-support.php:6399
5865
  msgid "mla_debug WHERE filter"
5866
  msgstr ""
5867
 
5868
+ #: includes/class-mla-shortcode-support.php:6436
5869
  msgid "mla_debug modified WHERE filter"
5870
  msgstr ""
5871
 
5872
+ #: includes/class-mla-shortcode-support.php:6459
5873
  msgid "mla_debug ORDER BY filter, incoming"
5874
  msgstr ""
5875
 
5876
+ #: includes/class-mla-shortcode-support.php:6459
5877
  msgid "Replacement ORDER BY clause"
5878
  msgstr ""
5879
 
5880
+ #: includes/class-mla-shortcode-support.php:6500
5881
  msgid "mla_debug posts_clauses filter"
5882
  msgstr ""
5883
 
5884
+ #: includes/class-mla-shortcode-support.php:6518
5885
  msgid "mla_debug posts_clauses_request filter"
5886
  msgstr ""
5887
 
5888
+ #: includes/class-mla-shortcode-support.php:6659
5889
  msgid "mla_debug results"
5890
  msgstr ""
5891
 
5892
+ #: includes/class-mla-shortcode-support.php:6891
5893
  msgid "Invalid taxonomy"
5894
  msgstr ""
5895
 
5896
+ #: includes/class-mla-shortcode-support.php:7085
5897
  msgid "mla_debug query arguments"
5898
  msgstr ""
5899
 
5900
+ #: includes/class-mla-shortcode-support.php:7086
5901
  msgid "mla_debug last_query"
5902
  msgstr ""
5903
 
5904
+ #: includes/class-mla-shortcode-support.php:7087
5905
  msgid "mla_debug last_error"
5906
  msgstr ""
5907
 
5908
+ #: includes/class-mla-shortcode-support.php:7088
5909
  msgid "mla_debug num_rows"
5910
  msgstr ""
5911
 
5912
+ #: includes/class-mla-shortcode-support.php:7089
5913
  msgid "mla_debug found_rows"
5914
  msgstr ""
5915
 
languages/media-library-assistant-en_US.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Media Library Assistant\n"
4
- "POT-Creation-Date: 2021-10-17 15:54-0700\n"
5
- "PO-Revision-Date: 2021-10-17 15:55-0700\n"
6
  "Language-Team: David Lingren <david@davidlingren.com>\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -371,6 +371,12 @@ msgstr ""
371
  msgid "Enter the size of the Bulk Edit and Map All processing chunks"
372
  msgstr ""
373
 
 
 
 
 
 
 
374
  msgid "Taxonomy Filter parameters"
375
  msgstr ""
376
 
@@ -1458,6 +1464,21 @@ msgctxt "error_log"
1458
  msgid "%1$s: %2$s non-array \"%3$s\""
1459
  msgstr ""
1460
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1461
  msgid "+&nbsp;Add&nbsp;New&nbsp;Term"
1462
  msgstr ""
1463
 
@@ -1476,27 +1497,18 @@ msgstr ""
1476
  msgid "Replace"
1477
  msgstr ""
1478
 
1479
- msgid ""
1480
- "IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help "
1481
- "menu for more information."
1482
- msgstr ""
1483
-
1484
  msgid "Reset"
1485
  msgstr ""
1486
 
1487
- msgid "No Change"
1488
- msgstr ""
1489
-
1490
- msgid "Allow"
1491
- msgstr ""
1492
-
1493
- msgid "Do not allow"
1494
  msgstr ""
1495
 
1496
- msgid "Parent ID"
1497
  msgstr ""
1498
 
1499
- msgid "Select"
 
 
1500
  msgstr ""
1501
 
1502
  msgid "Custom field mapping updated."
@@ -2618,9 +2630,6 @@ msgstr ""
2618
  msgid "Single"
2619
  msgstr ""
2620
 
2621
- msgid "Export"
2622
- msgstr ""
2623
-
2624
  msgid "Array"
2625
  msgstr ""
2626
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Media Library Assistant\n"
4
+ "POT-Creation-Date: 2022-02-13 12:30-0800\n"
5
+ "PO-Revision-Date: 2022-02-13 12:31-0800\n"
6
  "Language-Team: David Lingren <david@davidlingren.com>\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
371
  msgid "Enter the size of the Bulk Edit and Map All processing chunks"
372
  msgstr ""
373
 
374
+ msgid "Store presets per-user"
375
+ msgstr ""
376
+
377
+ msgid "Check this option to store separate Bulk Edit presets for each user."
378
+ msgstr ""
379
+
380
  msgid "Taxonomy Filter parameters"
381
  msgstr ""
382
 
1464
  msgid "%1$s: %2$s non-array \"%3$s\""
1465
  msgstr ""
1466
 
1467
+ msgid "Parent ID"
1468
+ msgstr ""
1469
+
1470
+ msgid "Select"
1471
+ msgstr ""
1472
+
1473
+ msgid "No Change"
1474
+ msgstr ""
1475
+
1476
+ msgid "Allow"
1477
+ msgstr ""
1478
+
1479
+ msgid "Do not allow"
1480
+ msgstr ""
1481
+
1482
  msgid "+&nbsp;Add&nbsp;New&nbsp;Term"
1483
  msgstr ""
1484
 
1497
  msgid "Replace"
1498
  msgstr ""
1499
 
 
 
 
 
 
1500
  msgid "Reset"
1501
  msgstr ""
1502
 
1503
+ msgid "Import"
 
 
 
 
 
 
1504
  msgstr ""
1505
 
1506
+ msgid "Export"
1507
  msgstr ""
1508
 
1509
+ msgid ""
1510
+ "IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help "
1511
+ "menu for more information."
1512
  msgstr ""
1513
 
1514
  msgid "Custom field mapping updated."
2630
  msgid "Single"
2631
  msgstr ""
2632
 
 
 
 
2633
  msgid "Array"
2634
  msgstr ""
2635
 
languages/media-library-assistant-en_US.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Media Library Assistant\n"
5
- "POT-Creation-Date: 2021-10-17 15:54-0700\n"
6
  "PO-Revision-Date: 2015-08-21 21:38-0800\n"
7
  "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
8
  "Language-Team: David Lingren <david@davidlingren.com>\n"
@@ -372,6 +372,12 @@ msgstr ""
372
  msgid "Enter the size of the Bulk Edit and Map All processing chunks"
373
  msgstr ""
374
 
 
 
 
 
 
 
375
  msgid "Taxonomy Filter parameters"
376
  msgstr ""
377
 
@@ -1459,6 +1465,21 @@ msgctxt "error_log"
1459
  msgid "%1$s: %2$s non-array \"%3$s\""
1460
  msgstr ""
1461
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1462
  msgid "+&nbsp;Add&nbsp;New&nbsp;Term"
1463
  msgstr ""
1464
 
@@ -1477,27 +1498,18 @@ msgstr ""
1477
  msgid "Replace"
1478
  msgstr ""
1479
 
1480
- msgid ""
1481
- "IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help "
1482
- "menu for more information."
1483
- msgstr ""
1484
-
1485
  msgid "Reset"
1486
  msgstr ""
1487
 
1488
- msgid "No Change"
1489
- msgstr ""
1490
-
1491
- msgid "Allow"
1492
- msgstr ""
1493
-
1494
- msgid "Do not allow"
1495
  msgstr ""
1496
 
1497
- msgid "Parent ID"
1498
  msgstr ""
1499
 
1500
- msgid "Select"
 
 
1501
  msgstr ""
1502
 
1503
  msgid "Custom field mapping updated."
@@ -2619,9 +2631,6 @@ msgstr ""
2619
  msgid "Single"
2620
  msgstr ""
2621
 
2622
- msgid "Export"
2623
- msgstr ""
2624
-
2625
  msgid "Array"
2626
  msgstr ""
2627
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Media Library Assistant\n"
5
+ "POT-Creation-Date: 2022-02-13 12:30-0800\n"
6
  "PO-Revision-Date: 2015-08-21 21:38-0800\n"
7
  "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
8
  "Language-Team: David Lingren <david@davidlingren.com>\n"
372
  msgid "Enter the size of the Bulk Edit and Map All processing chunks"
373
  msgstr ""
374
 
375
+ msgid "Store presets per-user"
376
+ msgstr ""
377
+
378
+ msgid "Check this option to store separate Bulk Edit presets for each user."
379
+ msgstr ""
380
+
381
  msgid "Taxonomy Filter parameters"
382
  msgstr ""
383
 
1465
  msgid "%1$s: %2$s non-array \"%3$s\""
1466
  msgstr ""
1467
 
1468
+ msgid "Parent ID"
1469
+ msgstr ""
1470
+
1471
+ msgid "Select"
1472
+ msgstr ""
1473
+
1474
+ msgid "No Change"
1475
+ msgstr ""
1476
+
1477
+ msgid "Allow"
1478
+ msgstr ""
1479
+
1480
+ msgid "Do not allow"
1481
+ msgstr ""
1482
+
1483
  msgid "+&nbsp;Add&nbsp;New&nbsp;Term"
1484
  msgstr ""
1485
 
1498
  msgid "Replace"
1499
  msgstr ""
1500
 
 
 
 
 
 
1501
  msgid "Reset"
1502
  msgstr ""
1503
 
1504
+ msgid "Import"
 
 
 
 
 
 
1505
  msgstr ""
1506
 
1507
+ msgid "Export"
1508
  msgstr ""
1509
 
1510
+ msgid ""
1511
+ "IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help "
1512
+ "menu for more information."
1513
  msgstr ""
1514
 
1515
  msgid "Custom field mapping updated."
2631
  msgid "Single"
2632
  msgstr ""
2633
 
 
 
 
2634
  msgid "Array"
2635
  msgstr ""
2636
 
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: dglingren
3
  Donate link: http://davidlingren.com/#donate
4
  Tags: media, media library, gallery, images, categories, tags, attachments, IPTC, EXIF, XMP, GPS, PDF, metadata, photos, photographs, photo albums, MIME, mime-type, icon, upload, file extensions, WPML, Polylang
5
  Requires at least: 3.5.0
6
- Tested up to: 5.8.1
7
  Requires PHP: 5.3
8
- Stable tag: 2.98
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -59,7 +59,7 @@ The Assistant is designed to work like the standard Media Library pages, so the
59
 
60
  **I do not solicit nor accept personal donations in support of the plugin.** WordPress and its global community means a lot to me and I am happy to give something back.
61
 
62
- If you find the Media Library Assistant plugin useful and would like to support a great cause, consider a [tax-deductible donation](http://webgw.alsa.org/goto/ChateauSeaviewFund") to our [Chateau Seaview Fund](http://webgw.alsa.org/goto/ChateauSeaviewFund") at the Golden West Chapter of the ALS Association. Every dollar of the fund goes to make the lives of people with ALS, their families and caregivers easier. Thank you!
63
 
64
  == Installation ==
65
 
@@ -187,6 +187,28 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
187
 
188
  == Changelog ==
189
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
190
  = 2.98 =
191
 
192
  * New: A new **"Attachment File Metadata" meta box on the Media/Edit Media screen** displays IPTC, EXIF, XMP, ID3, PDF and/or MSO metadata embedded in the item's file. More information in the pull-down Help menu on that screen.
@@ -206,46 +228,9 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
206
  * Fix: For the "gallery in" and "MLA Gallery in" reporting, PHP "trigger_error" Warning messages have been converted to MLA debug logging messages.
207
  * Fix: For the "MLA Insert Fixit" example plugin, a PHP 8.0+ Deprecation Error has been resolved.
208
 
209
- = 2.97 =
210
- * New: A "Description" element has been added to the "Custom Fields" and "IPTC/EXIF" mapping rule definitions.
211
- * New: For `[mla_tag_cloud]`, the `current_item` and `current_item_class` are managed more or less automatically.
212
- * New: For `[mla_gallery]`, a special `mla_alt_shortcode=yes` parameter lets you use `[mla_gallery]` as both the primary and alternate shortcodes. You can use the new `mla_alt_parameters` parameter to pass parameters directly on to the alternate shortcode.
213
- * New: For the "MLA UI Elements Example" plugin, most sticky shortcodes now support the enclosing shortcode syntax, and the Documentation tab has been completed.
214
- * Fix: **For `[mla_gallery]`, PHP "Warning: array_key_exists()..." messages have been eliminated.**
215
- * Fix: For the Media Manager Modal (popup) Window in WP 5.8, cropping of top row image thubmnails has been corrected.
216
- * Fix: For the "MLA Insert Fixit" example plugin, placement and description of the "Post Type(s)" text box has been updated to clarify its use by all plugin tools.
217
- * Fix: For `[mla_term_list]` and `[mla_tag_cloud]`, special values such as `no.terms.assigned` () are retained after page refresh.
218
-
219
- = 2.96 =
220
- * New: For the "MLA CSV Data Source Example" plugin, the new "Export Item Values" tool lets you export anything you need from Media Library items, e.g., standard values, taxonomy terms, custom fields and embedded image IPTC/EXIF/XMP metadata.
221
- * New: For the "MLA UI Elements Example" plugin, the `[muie_archive_list]' shortcode adds date-based archive controls and lists.
222
- * New: For the "MLA UI Elements Example" plugin, the `[muie_text_box]' shortcode adds a "sticky" text box that survives page refresh and pagination.
223
- * New: An "ExposureMode" data source has been added to the "Field-level enhanced EXIF CAMERA values".
224
- * New: A new debugging tool adds Term ID and Term-taxonomy ID columns to the Media/taxonomy edit screens, controlled by a checkbox on the Settings/Media Library Assistant Debug tab.
225
- * New: Enhanced support for the Enhanced Media Library plugin, including filter support in the Media Manager Modal (popup) Window and Media/Assistant Grid mode.
226
- * New: For `[mla_tag_cloud]` and `[mla_term_list]`, special "ignore.terms.assigned", "no.terms.assigned", and "any.terms.assigned" values let you add links/controls to the cloud or term list to select all items, items with no term assignments and items with one ore more term assginments.
227
- * New: For `[mla_gallery]`, a special "any.terms.assigned" value lets you use a simple taxonomy query or a `tax_query` to find items that have one or more term assignments in a given taxonomy.
228
- * New: For the ",kbmb" Field-level option/format value, if the kilobyte suffix option is empty and the megabyte suffix is present all values above the threshold will be displayed in megabytes.
229
- * New: For the "MLA Insert Fixit" example plugin, the "Attach Referenced in" tool "ids=" analysis can be applied to any shortcode.
230
- * New: For the "WooCommerce Fixit Tools" example plugin, new tools to populate the Product Image and Product Gallery from items attached to the Product(s) have been added.
231
- * New: The full path and file name has been added to the "Settings updated" message for the "Export ALL Settings" function of the Settings/Media Library Assistant General tab.
232
- * New: Donation links and information have been restored, going to our Chateau Seaview Fund at the Golden West Chapter of the ALS Association.
233
- * Fix: Handle new "Load More" functions in WP 5.8 Media Manager Modal Window.
234
- * Fix: Correct handling of spaces in substitution parameter format values, e.g., `,str_replace(s,r)` and `,replace(p,r,v)`.
235
- * Fix: jQuery migrate "deprecated" notices for JS event shorthand instances have been resolved.
236
- * Fix: For the Media/Assistant admin submenu, the "Attached" view item count has been corrected.
237
- * Fix: Handling of array variables in the `request:` prefix has been restored.
238
- * Fix: For `[mla_gallery]`, displaying the Featured Image for a non-image post type, e.g., post or page, has been restored.
239
- * Fix: For WPML term processing in "All Languages" mode, the Quick Edit action will update assigned terms in the proper language regardless of the language of selected terms.
240
- * Fix: For the Media/Assistant admin submenu displayed to members of the "Author" role, Bulk Actions such as "Edit" do not allow the user to select items belionging to other users.
241
- * Fix: For the "MLA Custom Feed" example plugin, code has been added to ensure that all active feeds are reflected in the WordPress URL rewrite rules and flushed (only) when missing feeds are detected.
242
- * Fix: For `[mla_tag_cloud]` and `[mla_term_list]`, "pad_counts" values now reflect filtering with the `post_mime_type` data selection parameter..
243
- * Fix: For `[mla_term_list]`, PHP error messages when using a custom markup template with an empty Open section have been resolved.
244
- * Fix: Improved toolbar layout and styling for the Media Manager Modal (popup) Window and Media/Assistant Grid mode.
245
- * Fix: Support for the `ajax_query_attachments_args` filter to support plugins such as Enhanced Media Library and ACF:Image Aspect Ratio Crop Field.
246
- * Fix: For the Bulk Edit on Upload feature, only one call to the edit processing function is made when all four "Enable ... mapping..." options are disabled.
247
-
248
- = 2.90 - 2.95 =
249
  * 2.95 - Support for Real Media Library plugin in Media/Assistant and `[mla_gallery]`, MLA Insert Fixit improvements, `[mla_gallery]` simple date parameters, "Mine" filter/view. Four enhancements in all, twelve fixes.
250
  * 2.94 - For [mla_gallery], icon handling, mla_viewer, and performance fixes. New and enhanced example plugins. Three enhancements in all, nine fixes.
251
  * 2.93 - Correct defects in handling array values, e.g., tax_input, in request: parameters and pagination controls. Example plugin enhancements. Two enhancements in all, three fixes.
@@ -363,8 +348,8 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
363
 
364
  == Upgrade Notice ==
365
 
366
- = 2.98 =
367
- New "Attachment File Metadata" meta box on the Media/Edit Media screen. Enhanced "MLA Advanced Custom Fields Example" and new "MLA Filename Issues Example" plugins. Five enhancements in all, eleven fixes.
368
 
369
  == Other Notes ==
370
 
3
  Donate link: http://davidlingren.com/#donate
4
  Tags: media, media library, gallery, images, categories, tags, attachments, IPTC, EXIF, XMP, GPS, PDF, metadata, photos, photographs, photo albums, MIME, mime-type, icon, upload, file extensions, WPML, Polylang
5
  Requires at least: 3.5.0
6
+ Tested up to: 5.9
7
  Requires PHP: 5.3
8
+ Stable tag: 2.99
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
59
 
60
  **I do not solicit nor accept personal donations in support of the plugin.** WordPress and its global community means a lot to me and I am happy to give something back.
61
 
62
+ If you find the Media Library Assistant plugin useful and would like to support a great cause, consider a [tax-deductible donation](http://webgw.alsa.org/goto/ChateauSeaviewFund) to our [Chateau Seaview Fund](http://webgw.alsa.org/goto/ChateauSeaviewFund) at the Golden West Chapter of the ALS Association. Every dollar of the fund goes to make the lives of people with ALS, their families and caregivers easier. Thank you!
63
 
64
  == Installation ==
65
 
187
 
188
  == Changelog ==
189
 
190
+ = 2.99 =
191
+
192
+ * New: On the Media/Add New (Upload New Media) and Media/Assistant screens, **MLA Bulk Edit Area values can be saved and recalled for future/repeated use.**
193
+ * New: Current date and time values are available as field-level data sources, `current_timestamp`, `current_datetime` and `current_getdate`.
194
+ * New: Library Views based on a custom field query can now include MIME type filters in addition to the custom field query.
195
+ * New: The "MLA Advanced Custom Fields Example" and "MLA Image Source Control Example" plugins have been updated to support the new Bulk Edit Area features.
196
+ * Fix: For the `terms:` substitution prefix, operation of the field qualifier, e.g., `terms:attachment_tag(slug)`, has been restored.
197
+ * Fix: For the Polylang plugin, some defects in the display of the Media/Assistent country/flags column have been corrected.
198
+ * Fix: To reduce security risks, taxonomy, date and meta queries no longer use the "eval" function to convert parameter values to array variables.
199
+ * Fix: For some forms of the Media Manager Modal (popup) Window, taxonomy "click to toggle" functions have been restored.
200
+ * Fix: For `[mla_gallery]`, `mla_nolink_text` handling for `paginate_links` has been restored.
201
+ * Fix: For `[mla_gallery]` with Real Media Library Pro, the `orderby=` parameter has been restored.
202
+ * Fix: Version numbers for CSS and JavaScript files now include Development Version date to prevent "stale" stylesheet and script problems.
203
+ * Fix: For the "Smart Media Categories" example plugin, syncing child and parent terms during attachment uploads has been restored.
204
+ * Fix: For the "Smart Media Categories" example plugin, synch status coloring in the Posts/All Posts "Children" table column has been corrected.
205
+ * Fix: For the Settings/Media Library Assistant Views tab, a PHP warning message when canceling an Edit View action has been eliminated.
206
+ * Fix: For the Media/Add New Bulk Edit area and the Media/Assistant Bulk and Quick Edit areas, the taxonomy "Add New Term" function has been repaired.
207
+ * Fix: For `[mla_term_list]`, `include_tree` and `exclude_tree` are now evaluated before `child_of` to improve the results.
208
+ * Fix: For `[mla_term_list]`, named control values are removed from the `$_REQUEST` array if the value is not present in the current term list.
209
+ * Fix: For `[mla_term_list]`, `current_item_class` assignments for term_id values have been restored.
210
+ * Fix: For the "MLA Advanced Custom Fields Example" plugin, a PHP warning message during Media/Assistant bulk actions has been eliminated.
211
+
212
  = 2.98 =
213
 
214
  * New: A new **"Attachment File Metadata" meta box on the Media/Edit Media screen** displays IPTC, EXIF, XMP, ID3, PDF and/or MSO metadata embedded in the item's file. More information in the pull-down Help menu on that screen.
228
  * Fix: For the "gallery in" and "MLA Gallery in" reporting, PHP "trigger_error" Warning messages have been converted to MLA debug logging messages.
229
  * Fix: For the "MLA Insert Fixit" example plugin, a PHP 8.0+ Deprecation Error has been resolved.
230
 
231
+ = 2.90 - 2.97 =
232
+ * 2.97 - IMPORTANT: [mla_gallery] PHP "Warning: array_key_exists()..." messages have been eliminated. WP 5.8, cropping of MMMW top row image thubmnails fixed. Description element added to mapping rules. Four enhancements in all, four fixes.
233
+ * 2.96 - WordPress 5.8 support! New [muie_archive_list] shortcode. CSV export item values. Support for Enhanced Media Library plugin. Donation links are back. Thirteen enhancements in all, fourteen fixes.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
234
  * 2.95 - Support for Real Media Library plugin in Media/Assistant and `[mla_gallery]`, MLA Insert Fixit improvements, `[mla_gallery]` simple date parameters, "Mine" filter/view. Four enhancements in all, twelve fixes.
235
  * 2.94 - For [mla_gallery], icon handling, mla_viewer, and performance fixes. New and enhanced example plugins. Three enhancements in all, nine fixes.
236
  * 2.93 - Correct defects in handling array values, e.g., tax_input, in request: parameters and pagination controls. Example plugin enhancements. Two enhancements in all, three fixes.
348
 
349
  == Upgrade Notice ==
350
 
351
+ = 2.99 =
352
+ WordPress 5.9 support. Bulk Edit values save/restore, current date/time data sources, custom field Library views filtered by MIME type. Four enhancements in all, fifteen fixes.
353
 
354
  == Other Notes ==
355
 
tpls/admin-inline-edit-form.tpl CHANGED
@@ -1,67 +1,3 @@
1
- <!-- template="category_fieldset" -->
2
- <fieldset class="inline-edit-col-center inline-edit-categories">
3
- <div class="inline-edit-col">
4
- [+category_blocks+]
5
- </div>
6
- </fieldset>
7
-
8
- <!-- template="category_block" -->
9
- <div id="taxonomy-[+tax_attr+]" class="categorydiv">
10
- <span class="title inline-edit-categories-label">[+tax_html+]</span>
11
- <input type="hidden" name="tax_input[[+tax_attr+]][]" value="0" />
12
- <ul class="cat-checklist [+tax_attr+]checklist form-no-clear" id="[+tax_attr+]checklist" data-wp-lists="list:[+tax_attr+]">
13
- [+tax_checklist+]
14
- </ul>
15
- [+category_add_link+]
16
- <span><a class="hide-if-no-js" id="[+tax_attr+]-search-toggle" href="#[+tax_attr+]-search">[+Search+]</a></span>
17
- [+category_adder+]
18
- <div id="[+tax_attr+]-searcher" class="wp-hidden-children">
19
- <p id="[+tax_attr+]-search" class="category-add wp-hidden-child">
20
- <label class="screen-reader-text" for="search-category">[+Search Reader+]</label>
21
- <input type="text" name="search-[+tax_attr+]" id="search-[+tax_attr+]" class="form-required form-input-tip" value="[+Search Reader+]" aria-required="true">
22
- </p>
23
- </div>
24
- </div>
25
-
26
- <!-- template="category_add_link" -->
27
- <span><a class="hide-if-no-js" id="[+tax_attr+]-add-toggle" href="#[+tax_attr+]-add">[+Add New Term+]</a></span>
28
- &nbsp; &nbsp;
29
-
30
- <!-- template="category_adder" -->
31
- <div id="[+tax_attr+]-adder" class="wp-hidden-children">
32
- <p id="[+tax_attr+]-add" class="category-add wp-hidden-child">
33
- <label class="screen-reader-text" for="new[+tax_attr+]">[+Add Reader+]</label>
34
- <input name="new[+tax_attr+]" class="form-required form-input-tip" id="new[+tax_attr+]" aria-required="true" type="text" value="[+Add Reader+]">
35
- [+tax_parents+]
36
- <input class="button category-add-submit mla-taxonomy-add-submit" id="[+tax_attr+]-add-submit" type="button" data-wp-lists="add:[+tax_attr+]checklist:[+tax_attr+]-add"value="[+Add Button+]">
37
- [+ajax_nonce_field+]
38
- <span id="[+tax_attr+]-ajax-response"></span>
39
- </p>
40
- </div>
41
-
42
- <!-- template="tag_fieldset" -->
43
- <fieldset class="inline-edit-col-right inline-edit-tags">
44
- <div class="inline-edit-col">
45
- [+tag_blocks+]
46
- </div>
47
- </fieldset>
48
-
49
- <!-- template="tag_block" -->
50
- <label class="inline-edit-tags">
51
- <span class="title">[+tax_html+]</span>
52
- <textarea cols="22" rows="1" name="tax_input[[+tax_attr+]]" class="tax_input_[+tax_attr+] mla_tags"></textarea>
53
- </label>
54
-
55
- <!-- template="taxonomy_options" -->
56
- <div class="mla_bulk_taxonomy_options">
57
- <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_add_[+tax_attr+]" checked="checked" value="add" /> [+Add+]&nbsp;
58
- <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_remove_[+tax_attr+]" value="remove" /> [+Remove+]&nbsp;
59
- <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_reset_[+tax_attr+]" value="replace" /> [+Replace+]&nbsp;
60
- </div>
61
- <!-- template="custom_field" -->
62
- <label class="inline-edit-[+slug+]" style="clear:both"> <span class="title">[+label+]</span> <span class="input-text-wrap">
63
- <input type="text" name="[+slug+]" value="" />
64
- </span> </label>
65
  <!-- template="page" -->
66
  <form>
67
  <table width="99%" style="display: none">
@@ -116,6 +52,7 @@
116
  </div>
117
  </fieldset>
118
  </div> <!-- inline-edit-fields-div -->
 
119
  <p class="submit inline-edit-save">
120
  <a accesskey="c" href="#inline-edit" title="[+Cancel+]" class="button-secondary cancel alignleft">[+Cancel+]</a>
121
  <a accesskey="s" href="#inline-edit" title="[+Update+]" class="button-primary save alignright">[+Update+]</a>
@@ -127,60 +64,24 @@
127
  </p>
128
  </td>
129
  </tr>
 
 
 
 
 
 
 
130
  <tr id="blank-bulk-edit" class="inline-edit-row inline-edit-row-attachment inline-edit-attachment bulk-edit-row bulk-edit-row-attachment bulk-edit-attachment" style="display: none">
131
  <td colspan="[+colspan+]" class="colspanchange">
132
  <div class="edit-fields-div" id="blank-bulk-edit-fields-div">
133
- [+bulk_middle_column+]
134
- [+bulk_right_column+]
135
- <fieldset class="inline-edit-col-right inline-edit-fields">
136
- <div class="inline-edit-col">
137
- <label> <span class="title">[+Title+]</span> <span class="input-text-wrap">
138
- <input type="text" name="post_title" class="ptitle" value="" />
139
- </span> </label>
140
- <label> <span class="title">[+Caption+]</span> <span class="input-text-wrap">
141
- <input type="text" name="post_excerpt" value="" />
142
- </span> </label>
143
- <label class="inline-edit-post-content"> <span class="title">[+Description+]</span> <span class="input-text-wrap">
144
- [+description_field+]
145
- </span> </label>
146
- <label class="inline-edit-image-alt"> <span class="title">[+ALT Text+]</span> <span class="input-text-wrap">
147
- <input type="text" name="image_alt" value="" />
148
- </span> </label>
149
- <label class="inline-edit-post-date"><span class="title">[+Bulk Uploaded on+]</span><span class="input-text-wrap">
150
- <input type="text" name="post_date" value="" />
151
- </span></label>
152
- <div class="inline-edit-group">
153
- <label class="inline-edit-post-parent alignleft"> <span class="title">[+Parent ID+]</span> <span class="input-text-wrap">
154
- <input type="text" name="post_parent" value="" />
155
- </span> </label>
156
- <input id="bulk-edit-set-parent" title="[+Select+]" class="button-primary parent" type="button" name="post_parent_set" value="[+Select+]" />
157
- [+bulk_authors+]
158
- </div>
159
- <div class="inline-edit-group">
160
- <label class="inline-edit-comments alignleft"> <span class="title">[+Comments+]</span> <span class="input-text-wrap">
161
- <select name="comment_status">
162
- <option selected="selected" value="-1">&mdash; [+No Change+] &mdash;</option>
163
- <option value="open">[+Allow+]</option>
164
- <option value="closed">[+Do not allow+]</option>
165
- </select>
166
- </span> </label>
167
- <label class="inline-edit-pings alignright"> <span class="title">[+Pings+]</span> <span class="input-text-wrap">
168
- <select name="ping_status">
169
- <option selected="selected" value="-1">&mdash; [+No Change+] &mdash;</option>
170
- <option value="open">[+Allow+]</option>
171
- <option value="closed">[+Do not allow+]</option>
172
- </select>
173
- </span> </label>
174
- </div>
175
- [+bulk_custom_fields+]
176
- </div>
177
- </fieldset>
178
- </div> <!-- blank-bulk-edit-fields-div -->
179
  </td>
180
  </tr>
181
  <tr id="bulk-edit" class="inline-edit-row inline-edit-row-attachment inline-edit-attachment bulk-edit-row bulk-edit-row-attachment bulk-edit-attachment" style="display: none">
182
  <td colspan="[+colspan+]" class="colspanchange">
183
- <div class="edit-fields-div" id="bulk-edit-fields-div">
 
184
  <fieldset class="inline-edit-col-left">
185
  <div class="inline-edit-col">
186
  <h4>[+Bulk Edit+]</h4>
@@ -189,54 +90,13 @@
189
  </div>
190
  <a accesskey="c" href="#inline-edit" title="[+Cancel+]" class="button-secondary cancel alignleft">[+Cancel+]</a>
191
  <a accesskey="r" href="#inline-edit" title="[+Reset+]" class="button-secondary reset alignleft">[+Reset+]</a>
 
 
 
192
  </div>
193
  </fieldset>
194
- [+bulk_middle_column+]
195
- [+bulk_right_column+]
196
- <fieldset class="inline-edit-col-right inline-edit-fields">
197
- <div class="inline-edit-col">
198
- <label> <span class="title">[+Title+]</span> <span class="input-text-wrap">
199
- <input type="text" name="post_title" class="ptitle" value="" />
200
- </span> </label>
201
- <label> <span class="title">[+Caption+]</span> <span class="input-text-wrap">
202
- <input type="text" name="post_excerpt" value="" />
203
- </span> </label>
204
- <label class="inline-edit-post-content"> <span class="title">[+Description+]</span> <span class="input-text-wrap">
205
- [+description_field+]
206
- </span> </label>
207
- <label class="inline-edit-image-alt"> <span class="title">[+ALT Text+]</span> <span class="input-text-wrap">
208
- <input type="text" name="image_alt" value="" />
209
- </span> </label>
210
- <label class="inline-edit-post-date"><span class="title">[+Bulk Uploaded on+]</span><span class="input-text-wrap">
211
- <input type="text" name="post_date" value="" />
212
- </span></label>
213
- <div class="inline-edit-group">
214
- <label class="inline-edit-post-parent alignleft"> <span class="title">[+Parent ID+]</span> <span class="input-text-wrap">
215
- <input type="text" name="post_parent" value="" />
216
- </span> </label>
217
- <input id="bulk-edit-set-parent" title="[+Select+]" class="button-primary parent" type="button" name="post_parent_set" value="[+Select+]" />
218
- [+bulk_authors+]
219
- </div>
220
- <div class="inline-edit-group">
221
- <label class="inline-edit-comments alignleft"> <span class="title">[+Comments+]</span> <span class="input-text-wrap">
222
- <select name="comment_status">
223
- <option selected="selected" value="-1">&mdash; [+No Change+] &mdash;</option>
224
- <option value="open">[+Allow+]</option>
225
- <option value="closed">[+Do not allow+]</option>
226
- </select>
227
- </span> </label>
228
- <label class="inline-edit-pings alignright"> <span class="title">[+Pings+]</span> <span class="input-text-wrap">
229
- <select name="ping_status">
230
- <option selected="selected" value="-1">&mdash; [+No Change+] &mdash;</option>
231
- <option value="open">[+Allow+]</option>
232
- <option value="closed">[+Do not allow+]</option>
233
- </select>
234
- </span> </label>
235
- </div>
236
- [+bulk_custom_fields+]
237
- </div>
238
- </fieldset>
239
- </div> <!-- bulk-edit-fields-div -->
240
  <p class="submit inline-edit-save">
241
  <a accesskey="c" href="#inline-edit" title="[+Cancel+]" class="button-secondary cancel alignleft">[+Cancel+]</a>
242
  <input accesskey="s" type="submit" name="bulk_edit" id="bulk_edit" class="button-primary alignright" value="[+Update+]" />
@@ -286,11 +146,6 @@
286
  </p>
287
  </td>
288
  </tr>
289
- <tr id="add-term-ajax" style="display: none">
290
- <td colspan="[+colspan+]" class="colspanchange">
291
- <span id="add-term-ajax-response"></span>
292
- </td>
293
- </tr>
294
  </tbody>
295
  </table>
296
  </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <!-- template="page" -->
2
  <form>
3
  <table width="99%" style="display: none">
52
  </div>
53
  </fieldset>
54
  </div> <!-- inline-edit-fields-div -->
55
+ <div id="qerow-ajax-response" style="font-weight:bold"></div>
56
  <p class="submit inline-edit-save">
57
  <a accesskey="c" href="#inline-edit" title="[+Cancel+]" class="button-secondary cancel alignleft">[+Cancel+]</a>
58
  <a accesskey="s" href="#inline-edit" title="[+Update+]" class="button-primary save alignright">[+Update+]</a>
64
  </p>
65
  </td>
66
  </tr>
67
+ <tr id="preset-bulk-edit" class="inline-edit-row inline-edit-row-attachment inline-edit-attachment bulk-edit-row bulk-edit-row-attachment bulk-edit-attachment" style="display: none">
68
+ <td colspan="[+colspan+]" class="colspanchange">
69
+ <div class="edit-fields-div" id="preset-bulk-edit-fields-div">
70
+ [+preset_div_content+]
71
+ <!-- preset-bulk-edit-fields-div --></div>
72
+ </td>
73
+ </tr>
74
  <tr id="blank-bulk-edit" class="inline-edit-row inline-edit-row-attachment inline-edit-attachment bulk-edit-row bulk-edit-row-attachment bulk-edit-attachment" style="display: none">
75
  <td colspan="[+colspan+]" class="colspanchange">
76
  <div class="edit-fields-div" id="blank-bulk-edit-fields-div">
77
+ [+blank_div_content+]
78
+ <!-- blank-bulk-edit-fields-div --></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
79
  </td>
80
  </tr>
81
  <tr id="bulk-edit" class="inline-edit-row inline-edit-row-attachment inline-edit-attachment bulk-edit-row bulk-edit-row-attachment bulk-edit-attachment" style="display: none">
82
  <td colspan="[+colspan+]" class="colspanchange">
83
+ <div id="bulkrow-ajax-response" style="font-weight:bold"></div>
84
+ <div class="edit-fields-div" id="bulk-edit-fields-div">
85
  <fieldset class="inline-edit-col-left">
86
  <div class="inline-edit-col">
87
  <h4>[+Bulk Edit+]</h4>
90
  </div>
91
  <a accesskey="c" href="#inline-edit" title="[+Cancel+]" class="button-secondary cancel alignleft">[+Cancel+]</a>
92
  <a accesskey="r" href="#inline-edit" title="[+Reset+]" class="button-secondary reset alignleft">[+Reset+]</a>
93
+ <a accesskey="c" href="#inline-edit" title="[+Import+]" class="button-secondary import alignleft">[+Import+]</a>
94
+ <a accesskey="r" href="#inline-edit" title="[+Export+]" class="button-secondary export alignleft">[+Export+]</a>
95
+ <span class="spinner"></span>
96
  </div>
97
  </fieldset>
98
+ [+initial_div_content+]
99
+ <!-- bulk-edit-fields-div --></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
100
  <p class="submit inline-edit-save">
101
  <a accesskey="c" href="#inline-edit" title="[+Cancel+]" class="button-secondary cancel alignleft">[+Cancel+]</a>
102
  <input accesskey="s" type="submit" name="bulk_edit" id="bulk_edit" class="button-primary alignright" value="[+Update+]" />
146
  </p>
147
  </td>
148
  </tr>
 
 
 
 
 
149
  </tbody>
150
  </table>
151
  </form>
tpls/documentation-settings-tab.tpl CHANGED
@@ -4769,6 +4769,65 @@ Each Media Library attachment item has a row in the "posts" database table that
4769
  <td style="padding-bottom: 2em;">absolute (full) path to the upload directory, without trailing slash.</td>
4770
  </tr>
4771
  <tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4772
  <td class="mla-doc-table-label">absolute_path</td>
4773
  <td>complete path portion of the attachment file, e.g., C:/site/wordpress/wp-content/uploads/2012/11/</td>
4774
  </tr>
@@ -6033,11 +6092,11 @@ The following hooks are defined in <code>/media-library-assistant/includes/class
6033
  </tr>
6034
  <tr>
6035
  <td class="mla-doc-hook-label">mla_list_table_inline_values</td>
6036
- <td class="mla-doc-hook-definition">Gives you a chance to modify and extend the substitution values for the Quick and Bulk Edit forms.</td>
6037
  </tr>
6038
  <tr>
6039
  <td class="mla-doc-hook-label">mla_list_table_inline_template</td>
6040
- <td class="mla-doc-hook-definition">Gives you a chance to modify and extend the template used for the Quick and Bulk Edit forms.</td>
6041
  </tr>
6042
  <tr>
6043
  <td class="mla-doc-hook-label">mla_list_table_inline_parse</td>
@@ -6045,6 +6104,25 @@ The following hooks are defined in <code>/media-library-assistant/includes/class
6045
  </tr>
6046
  </table>
6047
  <p>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6048
  The following hooks are defined in <code>/media-library-assistant/includes/class-mla-list-table.php</code>:
6049
  </p>
6050
  <table>
@@ -6115,17 +6193,36 @@ The following hooks are defined in <code>/media-library-assistant/includes/class
6115
  <table>
6116
  <tr>
6117
  <td class="mla-doc-hook-label">mla_upload_bulk_edit_form_values</td>
6118
- <td class="mla-doc-hook-definition">Gives you a chance to modify and extend the substitution values for the Bulk Edit on Upload form.</td>
6119
  </tr>
6120
  <tr>
6121
  <td class="mla-doc-hook-label">mla_upload_bulk_edit_form_template</td>
6122
- <td class="mla-doc-hook-definition">Gives you a chance to modify and extend the template used for the Bulk Edit on Upload form.</td>
6123
  </tr>
6124
  <tr>
6125
  <td class="mla-doc-hook-label">mla_upload_bulk_edit_form_parse</td>
6126
  <td class="mla-doc-hook-definition">Gives you a final chance to modify and extend the HTML markup used for the Bulk Edit on Upload form.</td>
6127
  </tr>
6128
  </table>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
6129
  <a name="mla_media_modal_filters"></a>&nbsp;
6130
  <p>
6131
  <a href="#backtotop">Go to Top</a>
@@ -6326,6 +6423,9 @@ There are two special forms of the custom field specification used to test for t
6326
  <li>To return all items that have a NULL value in the field, enter the prefix "custom:" followed by the custom field name(s) and then "=", e.g., <code>custom:My Featured Items,My Inserted Items=</code>. You can also enter a single custom field name and then ",null". For example, <code>custom:My Featured Items,null</code>.</li>
6327
  </ul>
6328
  <p>
 
 
 
6329
  If you have enabled the <em><strong>Media Manager Enhanced MIME Type filter</strong></em>, the Table View list will also be available in the Media Manager/Add Media "media items" drop down list.
6330
  <a name="mla_uploads"></a>
6331
  </p>
4769
  <td style="padding-bottom: 2em;">absolute (full) path to the upload directory, without trailing slash.</td>
4770
  </tr>
4771
  <tr>
4772
+ <td class="mla-doc-table-label">current_timestamp</td>
4773
+ <td style="vertical-align: top">an integer Unix timestamp of the current local time. In other words, the value of the PHP <code>time()</code> function, adjusted to the time zone of the site. You can use the <code>,timestamp(f,m)</code> format value described above to re-format the value in a variety of ways. You can get the GMT value by adding a <code>(gmt)</code> qualifier to the name, i.e., <code>current_timestamp(gmt)</code>.</td>
4774
+ </tr>
4775
+ <tr>
4776
+ <td class="mla-doc-table-label">current_datetime</td>
4777
+ <td>a string representation of the current local (adjusted to the time zone of the site) date and time with a format of "YYYY:MM:DD HH:MM:SS". You can use the <code>,date(f,m)</code> format value described above to re-format the value in a variety of ways. You can get the GMT value by adding a <code>(gmt)</code> qualifier to the name, i.e., <code>current_datetime(gmt)</code>.</td>
4778
+ </tr>
4779
+ <tr>
4780
+ <td class="mla-doc-table-label">current_getdate</td>
4781
+ <td style="padding-bottom: 2em;">an associative array containing the date and time elements of the current local (adjusted to the time zone of the site) time. You can use name qualifiers to access individual elements within the array, e.g., `current_getdate(month)` or `current_getdate(wday)`. You can get the GMT value by adding a <code>(gmt)</code> qualifier to the name, i.e., <code>current_getdate(gmt)</code>.<br />&nbsp;<br />Individual array elements are in the site&rsquo;s local time. You can get the GMT value by prepending "gmt" to the name as shown in the list below. The array elements are:<br />&nbsp;<br />
4782
+ <table>
4783
+ <tr>
4784
+ <td class="mla-doc-table-label">seconds,<br />gmtseconds</td>
4785
+ <td style="vertical-align: top">Numeric representation of seconds, 0 to 59.</td>
4786
+ </tr>
4787
+ <tr>
4788
+ <td class="mla-doc-table-label">minutes,<br />gmtminutes</td>
4789
+ <td style="vertical-align: top">Numeric representation of minutes, 0 to 59</td>
4790
+ </tr>
4791
+ <tr>
4792
+ <td class="mla-doc-table-label">hours,<br />gmthours</td>
4793
+ <td style="vertical-align: top">Numeric representation of hours, 0 to 23</td>
4794
+ </tr>
4795
+ <tr>
4796
+ <td class="mla-doc-table-label">mday,<br />gmtmday</td>
4797
+ <td style="vertical-align: top">Numeric representation of the day of the month, 1 to 31</td>
4798
+ </tr>
4799
+ <tr>
4800
+ <td class="mla-doc-table-label">wday,<br />gmtwday</td>
4801
+ <td style="vertical-align: top">Numeric representation of the day of the week, 0 (for Sunday) through 6 (for Saturday)</td>
4802
+ </tr>
4803
+ <tr>
4804
+ <td class="mla-doc-table-label">mon,<br />gmtmon</td>
4805
+ <td style="vertical-align: top">Numeric representation of a month, 1 through 12</td>
4806
+ </tr>
4807
+ <tr>
4808
+ <td class="mla-doc-table-label">year,<br />gmtyear</td>
4809
+ <td style="vertical-align: top">A full numeric representation of a year, 4 digits. Examples: 1999 or 2003</td>
4810
+ </tr>
4811
+ <tr>
4812
+ <td class="mla-doc-table-label">yday,<br />gmtgmtyday</td>
4813
+ <td style="vertical-align: top">Numeric representation of the day of the year, 0 through 365</td>
4814
+ </tr>
4815
+ <tr>
4816
+ <td class="mla-doc-table-label">weekday,<br />gmtweekday</td>
4817
+ <td style="vertical-align: top">A full textual representation of the day of the week, Sunday through Saturday</td>
4818
+ </tr>
4819
+ <tr>
4820
+ <td class="mla-doc-table-label">month,<br />gmtmonth</td>
4821
+ <td style="vertical-align: top">A full textual representation of a month, January through December</td>
4822
+ </tr>
4823
+ <tr>
4824
+ <td class="mla-doc-table-label">0,<br />gmt0</td>
4825
+ <td style="vertical-align: top">Seconds since the Unix Epoch (timestamp), similar to the values returned by time() and used by date().</td>
4826
+ </tr>
4827
+ </table>
4828
+ </td>
4829
+ </tr>
4830
+ <tr>
4831
  <td class="mla-doc-table-label">absolute_path</td>
4832
  <td>complete path portion of the attachment file, e.g., C:/site/wordpress/wp-content/uploads/2012/11/</td>
4833
  </tr>
6092
  </tr>
6093
  <tr>
6094
  <td class="mla-doc-hook-label">mla_list_table_inline_values</td>
6095
+ <td class="mla-doc-hook-definition">Gives you a chance to modify and extend the substitution values for the Quick and Bulk Edit forms. See the additional filters for the Bulk Edit form below.</td>
6096
  </tr>
6097
  <tr>
6098
  <td class="mla-doc-hook-label">mla_list_table_inline_template</td>
6099
+ <td class="mla-doc-hook-definition">Gives you a chance to modify and extend the template used for the Quick and Bulk Edit forms. See the additional filters for the Bulk Edit form below.</td>
6100
  </tr>
6101
  <tr>
6102
  <td class="mla-doc-hook-label">mla_list_table_inline_parse</td>
6104
  </tr>
6105
  </table>
6106
  <p>
6107
+ The Media/Assistant Bulk Edit area has three copies of field-level values. The "initial" values are displayed when the Area opens. The "blank" values are used when the "Reset" button is clicked. The "preset" values are used when the "Import" button is clicked. There are filters that give you a chance to modify the values and templates used to populate each of these three copies separately. The following hooks are defined in <code>/media-library-assistant/includes/class-mla-edit-media.php</code>, function <code>mla_generate_bulk_edit_form_fieldsets()</code>, which is called from <code>/media-library-assistant/includes/class-mla-main.php</code>:
6108
+ </p>
6109
+ <table>
6110
+ <tr>
6111
+ <td class="mla-doc-hook-label">mla_list_table_inline_blank_values,<br />
6112
+ mla_list_table_inline_initial_values,<br />
6113
+ mla_list_table_inline_preset_values
6114
+ </td>
6115
+ <td class="mla-doc-hook-definition">Give you a chance to modify and extend the substitution values for the Bulk Edit forms.</td>
6116
+ </tr>
6117
+ <tr>
6118
+ <td class="mla-doc-hook-label">mla_list_table_inline_blank_template,<br />
6119
+ mla_list_table_inline_initial_template,<br />
6120
+ mla_list_table_inline_preset_template
6121
+ </td>
6122
+ <td class="mla-doc-hook-definition">Give you a chance to modify and extend the template for the Bulk Edit forms.</td>
6123
+ </tr>
6124
+ </table>
6125
+ <p>
6126
  The following hooks are defined in <code>/media-library-assistant/includes/class-mla-list-table.php</code>:
6127
  </p>
6128
  <table>
6193
  <table>
6194
  <tr>
6195
  <td class="mla-doc-hook-label">mla_upload_bulk_edit_form_values</td>
6196
+ <td class="mla-doc-hook-definition">Gives you a chance to modify and extend the substitution values for the Bulk Edit on Upload form. See the additional filters for the Bulk Edit form below.</td>
6197
  </tr>
6198
  <tr>
6199
  <td class="mla-doc-hook-label">mla_upload_bulk_edit_form_template</td>
6200
+ <td class="mla-doc-hook-definition">Gives you a chance to modify and extend the template used for the Bulk Edit on Upload form. See the additional filters for the Bulk Edit form below.</td>
6201
  </tr>
6202
  <tr>
6203
  <td class="mla-doc-hook-label">mla_upload_bulk_edit_form_parse</td>
6204
  <td class="mla-doc-hook-definition">Gives you a final chance to modify and extend the HTML markup used for the Bulk Edit on Upload form.</td>
6205
  </tr>
6206
  </table>
6207
+ <p>
6208
+ The Media/Add New (Upload New Media) Bulk Edit area has three copies of field-level values. The "initial" values are displayed when the Area opens. The "blank" values are used when the "Reset" button is clicked. The "preset" values are used when the "Import" button is clicked. There are filters that give you a chance to modify the values and templates used to populate each of these three copies separately. The following hooks are defined in <code>/media-library-assistant/includes/class-mla-edit-media.php</code>, function <code>mla_generate_bulk_edit_form_fieldsets()</code>:
6209
+ </p>
6210
+ <table>
6211
+ <tr>
6212
+ <td class="mla-doc-hook-label">mla_upload_bulk_edit_form_blank_values,<br />
6213
+ mla_upload_bulk_edit_form_initial_values,<br />
6214
+ mla_upload_bulk_edit_form_preset_values
6215
+ </td>
6216
+ <td class="mla-doc-hook-definition">Give you a chance to modify and extend the substitution values for the Bulk Edit form.</td>
6217
+ </tr>
6218
+ <tr>
6219
+ <td class="mla-doc-hook-label">mla_list_table_inline_blank_template,<br />
6220
+ mla_upload_bulk_edit_form_initial_template,<br />
6221
+ mla_upload_bulk_edit_form_preset_template
6222
+ </td>
6223
+ <td class="mla-doc-hook-definition">Give you a chance to modify and extend the template for the Bulk Edit form.</td>
6224
+ </tr>
6225
+ </table>
6226
  <a name="mla_media_modal_filters"></a>&nbsp;
6227
  <p>
6228
  <a href="#backtotop">Go to Top</a>
6423
  <li>To return all items that have a NULL value in the field, enter the prefix "custom:" followed by the custom field name(s) and then "=", e.g., <code>custom:My Featured Items,My Inserted Items=</code>. You can also enter a single custom field name and then ",null". For example, <code>custom:My Featured Items,null</code>.</li>
6424
  </ul>
6425
  <p>
6426
+ You can add one or more MIME filters to a custom field query. For example, to limit the view to image items you can code something like <code>image,custom:Color=red</code>. Because the comma is used as a delimiter for multiple MIME types as well as within some forms of the custom field query, <strong>the custom field query must be the last (or only) element of the specification</strong>. For example, <code>audio,video,custom:Artist,Patron=smith,jones</code>.
6427
+ </p>
6428
+ <p>
6429
  If you have enabled the <em><strong>Media Manager Enhanced MIME Type filter</strong></em>, the Table View list will also be available in the Media Manager/Add Media "media items" drop down list.
6430
  <a name="mla_uploads"></a>
6431
  </p>
tpls/help-for-media_page_mla-menu.tpl CHANGED
@@ -70,6 +70,9 @@ There are four where-used reporting categories and you can turn them on or off w
70
  <p>If you have enabled Trash support (define MEDIA_TRASH in wp-config.php) you can use bulk actions to move items to and from the Trash or delete them permanently.</p>
71
  <p>The "Download" action (available if your server has ZIP archive support) lets you prepare a ZIP archive containing the selected items and transfer it to your browser.</p>
72
  <p>When using Bulk Edit, you can change the metadata (author, parent, taxonomy terms) for all selected attachments at once. To remove an attachment from the grouping, just click the x next to its name in the left column of the Bulk Edit area.</p>
 
 
 
73
  <p>Bulk Edit support for taxonomy terms allows you to <strong>add, remove or completely replace</strong> terms for the selected attachments. Below each taxonomy edit box are three radio buttons that let you select the action you&#8217;d like to perform.</p>
74
  <p>The taxonomies that appear in the Bulk Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) in the Settings/Media Library Assistant General tab.</p>
75
  <p>You can update the Title, Caption, Description and ALT Text values for all of the selected attachments. You can use a <a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#mla_template_parameters" target="_blank">Content Template</a> to customize the values based on attachment-specific data sources. You can also delete the content of a field by entering the special <code>template:[+empty+]</code> value.</p>
70
  <p>If you have enabled Trash support (define MEDIA_TRASH in wp-config.php) you can use bulk actions to move items to and from the Trash or delete them permanently.</p>
71
  <p>The "Download" action (available if your server has ZIP archive support) lets you prepare a ZIP archive containing the selected items and transfer it to your browser.</p>
72
  <p>When using Bulk Edit, you can change the metadata (author, parent, taxonomy terms) for all selected attachments at once. To remove an attachment from the grouping, just click the x next to its name in the left column of the Bulk Edit area.</p>
73
+ <p>Below the list of selected attachments are four buttons. You can click the "Cancel" button to close the Bulk Edit Area without altering any of the selected attachments.</p>
74
+ <p>To clear out any settings you no longer want you can click the "Reset" button to remove term assignments and other values, leaving an empty/blank Bulk Edit Area.</p>
75
+ <p>You can save any values you enter here for future use. Click the "Export" button to save the current values for term assignments and other fields to the database. Click "Import" to recall saved values and re-populate the current values with them.</p>
76
  <p>Bulk Edit support for taxonomy terms allows you to <strong>add, remove or completely replace</strong> terms for the selected attachments. Below each taxonomy edit box are three radio buttons that let you select the action you&#8217;d like to perform.</p>
77
  <p>The taxonomies that appear in the Bulk Edit area can be a subset of the taxonomies supported on the single item edit screen. You can select which taxonomies appear by entering your choice(s) in the Settings/Media Library Assistant General tab.</p>
78
  <p>You can update the Title, Caption, Description and ALT Text values for all of the selected attachments. You can use a <a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#mla_template_parameters" target="_blank">Content Template</a> to customize the values based on attachment-specific data sources. You can also delete the content of a field by entering the special <code>template:[+empty+]</code> value.</p>
tpls/help-for-upload-new-media.tpl CHANGED
@@ -9,6 +9,8 @@
9
  <p>You can set a post or page as the parent for uploaded items; use the "Select" button to pop up a list of the posts and pages you can select from.</p>
10
  <p>If you have defined Custom Field mapping rules and checked the "Bulk Edit" box for one or more fields, they will appear in the Bulk Edit Area and you can assign values to them.</p>
11
  <p>Once you have filled in the values you want to assign you can click the "Close Bulk Edit Area" button to free up screen area for the list of uploaded files. Even though the Area is closed, your entries will persist until you have left the Upload New Media screen.</p>
 
 
12
  <!-- template="sidebar" -->
13
  <p><strong>For more information:</strong></p><p><a href="https://codex.wordpress.org/Media_Add_New_Screen" target="_blank">Documentation on Uploading Media Files</a></p><p><a href="https://wordpress.org/support/" target="_blank">Support Forums</a></p>
14
  <p><a href="http://wordpress.org/support/plugin/media-library-assistant" target="_blank">MLA Support Forum</a></p>
9
  <p>You can set a post or page as the parent for uploaded items; use the "Select" button to pop up a list of the posts and pages you can select from.</p>
10
  <p>If you have defined Custom Field mapping rules and checked the "Bulk Edit" box for one or more fields, they will appear in the Bulk Edit Area and you can assign values to them.</p>
11
  <p>Once you have filled in the values you want to assign you can click the "Close Bulk Edit Area" button to free up screen area for the list of uploaded files. Even though the Area is closed, your entries will persist until you have left the Upload New Media screen.</p>
12
+ <p>To clear out any settings you no longer want you can click the "Reset" button to remove term assignments and other values, leaving an empty/blank Bulk Edit Area.</p>
13
+ <p>You can save any values you enter here for future use. Click the "Export" button to save the current values for term assignments and other fields to the database. Click "Import" to recall saved values and re-populate the current values with them.</p>
14
  <!-- template="sidebar" -->
15
  <p><strong>For more information:</strong></p><p><a href="https://codex.wordpress.org/Media_Add_New_Screen" target="_blank">Documentation on Uploading Media Files</a></p><p><a href="https://wordpress.org/support/" target="_blank">Support Forums</a></p>
16
  <p><a href="http://wordpress.org/support/plugin/media-library-assistant" target="_blank">MLA Support Forum</a></p>
tpls/mla-add-new-bulk-edit.tpl CHANGED
@@ -1,159 +1,20 @@
1
- <!-- template="category_fieldset" -->
2
- <fieldset class="inline-edit-col-left inline-edit-categories"><div class="inline-edit-col">
3
- [+category_blocks+]
4
- </div></fieldset>
5
- <!-- template="category_block" -->
6
- <div id="taxonomy-[+tax_attr+]" class="categorydiv">
7
- <span class="title inline-edit-categories-label">[+tax_html+]</span>
8
- <input type="hidden" name="tax_input[[+tax_attr+]][]" value="0" />
9
- <ul class="cat-checklist [+tax_attr+]checklist form-no-clear" id="[+tax_attr+]checklist" data-wp-lists="list:[+tax_attr+]">
10
- [+tax_checklist+]
11
- </ul>
12
- [+category_add_link+]
13
- <span><a class="hide-if-no-js" id="[+tax_attr+]-search-toggle" href="#[+tax_attr+]-search">[+Search+]</a></span>
14
- [+category_adder+]
15
- <div id="[+tax_attr+]-searcher" class="wp-hidden-children">
16
- <p id="[+tax_attr+]-search" class="category-add wp-hidden-child">
17
- <label class="screen-reader-text" for="search-category">[+Search Reader+]</label>
18
- <input type="text" name="search-[+tax_attr+]" id="search-[+tax_attr+]" class="form-required form-input-tip" value="[+Search Reader+]" aria-required="true">
19
- </p>
20
- </div>
21
- </div>
22
-
23
- <!-- template="category_add_link" -->
24
- <span><a class="hide-if-no-js" id="[+tax_attr+]-add-toggle" href="#[+tax_attr+]-add">[+Add New Term+]</a></span>
25
- &nbsp; &nbsp;
26
-
27
- <!-- template="category_adder" -->
28
- <div id="[+tax_attr+]-adder" class="wp-hidden-children">
29
- <p id="[+tax_attr+]-add" class="category-add wp-hidden-child">
30
- <label class="screen-reader-text" for="new[+tax_attr+]">[+Add Reader+]</label>
31
- <input name="new[+tax_attr+]" class="form-required form-input-tip" id="new[+tax_attr+]" aria-required="true" type="text" value="[+Add Reader+]">
32
- [+tax_parents+]
33
- <input class="button category-add-submit mla-taxonomy-add-submit" id="[+tax_attr+]-add-submit" type="button" data-wp-lists="add:[+tax_attr+]checklist:[+tax_attr+]-add" value="[+Add Button+]">
34
- [+ajax_nonce_field+]
35
- <span id="[+tax_attr+]-ajax-response"></span>
36
- </p>
37
- </div>
38
-
39
- <!-- template="tag_fieldset" -->
40
- <fieldset class="inline-edit-col-center inline-edit-tags"><div class="inline-edit-col">
41
- [+tag_blocks+]
42
- </div></fieldset>
43
- <!-- template="tag_block" -->
44
- <label class="inline-edit-tags">
45
- <span class="title">[+tax_html+]</span>
46
- <textarea cols="22" rows="1" name="tax_input[[+tax_attr+]]" class="tax_input_[+tax_attr+] mla_tags"></textarea>
47
- </label>
48
- <!-- template="taxonomy_options" -->
49
- <div class="mla_taxonomy_options">
50
- <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_add_[+tax_attr+]" checked="checked" value="add" /> [+Add+]&nbsp;
51
- <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_remove_[+tax_attr+]" value="remove" /> [+Remove+]&nbsp;
52
- <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_reset_[+tax_attr+]" value="replace" /> [+Replace+]&nbsp;
53
- </div>
54
- <!-- template="custom_field" -->
55
- <label class="inline-edit-[+slug+] clear"><span class="title">[+label+]</span><span class="input-text-wrap">
56
- <input type="text" name="[+slug+]" value="" />
57
- </span></label>
58
  <!-- template="page" -->
 
 
 
59
  <div class="edit-fields-div" id="mla-blank-add-new-bulk-edit-div" style="display: none;">
60
- [+category_fieldset+]
61
- [+tag_fieldset+]
62
- <fieldset class="inline-edit-col-right inline-edit-fields">
63
- <div class="inline-edit-col">
64
- <label><span class="title">[+Title+]</span><span class="input-text-wrap">
65
- <input type="text" name="post_title" class="ptitle" value="" />
66
- </span></label>
67
- <label><span class="title">[+Caption+]</span><span class="input-text-wrap">
68
- <input type="text" name="post_excerpt" value="" />
69
- </span></label>
70
- <label><span class="title">[+Description+]</span><span class="input-text-wrap">
71
- <textarea class="widefat" name="post_content"></textarea>
72
- </span></label>
73
- <label class="inline-edit-image-alt"><span class="title">[+ALT Text+]</span><span class="input-text-wrap">
74
- <input type="text" name="image_alt" value="" />
75
- </span></label>
76
- <label class="inline-edit-post-date"><span class="title">[+Uploaded on+]</span><span class="input-text-wrap">
77
- <input type="text" name="post_date" value="" />
78
- </span></label>
79
- <div class="inline-edit-group">
80
- <label class="inline-edit-post-parent alignleft"><span class="title">[+Parent ID+]</span><span class="input-text-wrap">
81
- <input type="text" name="post_parent" value="" />
82
- </span></label>
83
- <input id="bulk-edit-set-parent" title="[+Select+]" class="button-primary parent" type="button" name="post_parent_set" value="[+Select+]" />
84
- [+authors+]
85
- </div>
86
- <div class="inline-edit-group">
87
- <label class="inline-edit-comments alignleft"><span class="title">[+Comments+]</span><span class="input-text-wrap">
88
- <select name="comment_status">
89
- <option selected="selected" value="-1">&mdash; [+No Change+] &mdash;</option>
90
- <option value="open">[+Allow+]</option>
91
- <option value="closed">[+Do not allow+]</option>
92
- </select>
93
- </span></label>
94
- <label class="inline-edit-pings alignright"><span class="title">[+Pings+]</span><span class="input-text-wrap">
95
- <select name="ping_status">
96
- <option selected="selected" value="-1">&mdash; [+No Change+] &mdash;</option>
97
- <option value="open">[+Allow+]</option>
98
- <option value="closed">[+Do not allow+]</option>
99
- </select>
100
- </span></label>
101
- </div>
102
- [+custom_fields+]
103
- </div>
104
- </fieldset>
105
- </div> <!-- mla-blank-add-new-bulk-edit-div -->
106
  <div class="edit-fields-div" id="mla-add-new-bulk-edit-div" style="display: none;">
107
  <input id="bulk-edit-toggle" title="[+Toggle+]" class="button-primary alignright" type="button" name="bulk_edit_toggle" value="[+Toggle+]" />
108
  <input id="bulk-edit-reset" title="[+Reset+]" class="button-secondary alignright" type="button" name="bulk_edit_reset" value="[+Reset+]" style="display:none" />
109
- <strong>[+NOTE+]</strong><br />
110
- [+category_fieldset+]
111
- [+tag_fieldset+]
112
- <fieldset class="inline-edit-col-right inline-edit-fields">
113
- <div class="inline-edit-col">
114
- <label><span class="title">[+Title+]</span><span class="input-text-wrap">
115
- <input type="text" name="post_title" class="ptitle" value="" />
116
- </span></label>
117
- <label><span class="title">[+Caption+]</span><span class="input-text-wrap">
118
- <input type="text" name="post_excerpt" value="" />
119
- </span></label>
120
- <label><span class="title">[+Description+]</span><span class="input-text-wrap">
121
- <textarea class="widefat" name="post_content"></textarea>
122
- </span></label>
123
- <label class="inline-edit-image-alt"><span class="title">[+ALT Text+]</span><span class="input-text-wrap">
124
- <input type="text" name="image_alt" value="" />
125
- </span></label>
126
- <label class="inline-edit-post-date"><span class="title">[+Uploaded on+]</span><span class="input-text-wrap">
127
- <input type="text" name="post_date" value="" />
128
- </span></label>
129
- <div class="inline-edit-group">
130
- <label class="inline-edit-post-parent alignleft"><span class="title">[+Parent ID+]</span><span class="input-text-wrap">
131
- <input type="text" name="post_parent" value="" />
132
- </span></label>
133
- <input id="bulk-edit-set-parent" title="[+Select+]" class="button-primary parent" type="button" name="post_parent_set" value="[+Select+]" />
134
- [+authors+]
135
- </div>
136
- <div class="inline-edit-group">
137
- <label class="inline-edit-comments alignleft"><span class="title">[+Comments+]</span><span class="input-text-wrap">
138
- <select name="comment_status">
139
- <option selected="selected" value="-1">&mdash; [+No Change+] &mdash;</option>
140
- <option value="open">[+Allow+]</option>
141
- <option value="closed">[+Do not allow+]</option>
142
- </select>
143
- </span></label>
144
- <label class="inline-edit-pings alignright"><span class="title">[+Pings+]</span><span class="input-text-wrap">
145
- <select name="ping_status">
146
- <option selected="selected" value="-1">&mdash; [+No Change+] &mdash;</option>
147
- <option value="open">[+Allow+]</option>
148
- <option value="closed">[+Do not allow+]</option>
149
- </select>
150
- </span></label>
151
- </div>
152
- [+custom_fields+]
153
- </div>
154
- </fieldset>
155
  <input type="hidden" name="page" value="media-new.php" />
156
  <input type="hidden" name="screen" value="async-upload" />
157
  <div class="clear" style="border-bottom: thin solid #bbb"></div>
158
- </div> <!-- mla-add-new-bulk-edit-div -->
 
159
  [+set_parent_form+]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  <!-- template="page" -->
2
+ <div class="edit-fields-div" id="mla-preset-add-new-bulk-edit-div" style="display: none;">
3
+ [+preset_div_content+]
4
+ <!-- mla-preset-add-new-bulk-edit-div --></div>
5
  <div class="edit-fields-div" id="mla-blank-add-new-bulk-edit-div" style="display: none;">
6
+ [+blank_div_content+]
7
+ <!-- mla-blank-add-new-bulk-edit-div --></div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
8
  <div class="edit-fields-div" id="mla-add-new-bulk-edit-div" style="display: none;">
9
  <input id="bulk-edit-toggle" title="[+Toggle+]" class="button-primary alignright" type="button" name="bulk_edit_toggle" value="[+Toggle+]" />
10
  <input id="bulk-edit-reset" title="[+Reset+]" class="button-secondary alignright" type="button" name="bulk_edit_reset" value="[+Reset+]" style="display:none" />
11
+ <input id="bulk-edit-import" title="[+Import+]" class="button-secondary alignright" type="button" name="bulk_edit_import" value="[+Import+]" style="display:none" />
12
+ <input id="bulk-edit-export" title="[+Export+]" class="button-secondary alignright" type="button" name="bulk_edit_export" value="[+Export+]" style="display:none" />
13
+ <strong>[+NOTE+]</strong><span class="spinner"></span><br />
14
+ [+initial_div_content+]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  <input type="hidden" name="page" value="media-new.php" />
16
  <input type="hidden" name="screen" value="async-upload" />
17
  <div class="clear" style="border-bottom: thin solid #bbb"></div>
18
+ <div id="ajax-response"></div>
19
+ <!-- mla-add-new-bulk-edit-div --></div>
20
  [+set_parent_form+]
tpls/mla-bulk-edit-fieldsets.tpl ADDED
@@ -0,0 +1,109 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!-- template="category_fieldset" -->
2
+ <fieldset class="inline-edit-col-[+category_fieldset_column+] inline-edit-categories">
3
+ <div class="inline-edit-col">
4
+ [+category_blocks+]
5
+ </div>
6
+ </fieldset>
7
+
8
+ <!-- template="category_block" -->
9
+ <div id="taxonomy-[+tax_attr+]" class="categorydiv">
10
+ <span class="title inline-edit-categories-label">[+tax_html+]</span>
11
+ <input type="hidden" name="tax_input[[+tax_attr+]][]" value="0" />
12
+ <ul class="cat-checklist [+tax_attr+]checklist form-no-clear" id="[+tax_attr+]checklist" data-wp-lists="list:[+tax_attr+]">
13
+ [+tax_checklist+]
14
+ </ul>
15
+ [+category_add_link+]
16
+ <span><a class="hide-if-no-js" id="[+tax_attr+]-search-toggle" href="#[+tax_attr+]-search">[+Search+]</a></span>
17
+ [+category_adder+]
18
+ <div id="[+tax_attr+]-searcher" class="wp-hidden-children">
19
+ <p id="[+tax_attr+]-search" class="category-add wp-hidden-child">
20
+ <label class="screen-reader-text" for="search-category">[+Search Reader+]</label>
21
+ <input type="text" name="search-[+tax_attr+]" id="search-[+tax_attr+]" class="form-required form-input-tip" value="[+Search Reader+]" aria-required="true">
22
+ </p>
23
+ </div>
24
+ </div>
25
+
26
+ <!-- template="category_add_link" -->
27
+ <span><a class="hide-if-no-js" id="[+tax_attr+]-add-toggle" href="#[+tax_attr+]-add">[+Add New Term+]</a></span>
28
+ &nbsp; &nbsp;
29
+
30
+ <!-- template="category_adder" -->
31
+ <div id="[+tax_attr+]-adder" class="wp-hidden-children">
32
+ <p id="[+tax_attr+]-add" class="category-add wp-hidden-child">
33
+ <label class="screen-reader-text" for="new[+tax_attr+]">[+Add Reader+]</label>
34
+ <input name="new[+tax_attr+]" class="form-required form-input-tip" id="new[+tax_attr+]" aria-required="true" type="text" value="[+Add Reader+]">
35
+ [+tax_parents+]
36
+ <input class="button category-add-submit mla-taxonomy-add-submit" id="[+tax_attr+]-add-submit" type="button" data-wp-lists="add:[+tax_attr+]checklist:[+tax_attr+]-add" value="[+Add Button+]">
37
+ [+ajax_nonce_field+]
38
+ </p>
39
+ </div>
40
+
41
+ <!-- template="tag_fieldset" -->
42
+ <fieldset class="inline-edit-col-[+tag_fieldset_column+] inline-edit-tags">
43
+ <div class="inline-edit-col">
44
+ [+tag_blocks+]
45
+ </div></fieldset>
46
+
47
+ <!-- template="tag_block" -->
48
+ <label class="inline-edit-tags">
49
+ <span class="title">[+tax_html+]</span>
50
+ <textarea cols="22" rows="1" name="tax_input[[+tax_attr+]]" class="tax_input_[+tax_attr+] mla_tags">[+tax_value+]</textarea>
51
+ </label>
52
+
53
+ <!-- template="taxonomy_options" -->
54
+ <div class="mla_bulk_taxonomy_options">
55
+ <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_add_[+tax_attr+]" [+tax_add_checked+] value="add" /> [+Add+]&nbsp;
56
+ <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_remove_[+tax_attr+]" [+tax_remove_checked+] value="remove" /> [+Remove+]&nbsp;
57
+ <input type="radio" name="tax_action[[+tax_attr+]]" id="tax_reset_[+tax_attr+]" [+tax_replace_checked+] value="replace" /> [+Replace+]&nbsp;
58
+ </div>
59
+ <!-- template="custom_field" -->
60
+ <label class="inline-edit-[+slug+] clear"><span class="title">[+label+]</span><span class="input-text-wrap">
61
+ <input type="text" name="[+slug+]" value="[+value+]" />
62
+ </span></label>
63
+
64
+ <!-- template="form_fieldsets" -->
65
+ [+category_fieldset+]
66
+ [+tag_fieldset+]
67
+ <fieldset class="inline-edit-col-right inline-edit-fields">
68
+ <div class="inline-edit-col">
69
+ <label><span class="title">[+Title+]</span><span class="input-text-wrap">
70
+ <input type="text" name="post_title" class="ptitle" value="[+post_title_value+]" />
71
+ </span></label>
72
+ <label><span class="title">[+Caption+]</span><span class="input-text-wrap">
73
+ <input type="text" name="post_excerpt" value="[+post_excerpt_value+]" />
74
+ </span></label>
75
+ <label><span class="title">[+Description+]</span><span class="input-text-wrap">
76
+ <textarea class="widefat" name="post_content">[+post_content_value+]</textarea>
77
+ </span></label>
78
+ <label class="inline-edit-image-alt"><span class="title">[+ALT Text+]</span><span class="input-text-wrap">
79
+ <input type="text" name="image_alt" value="[+image_alt_value+]" />
80
+ </span></label>
81
+ <label class="inline-edit-post-date"><span class="title">[+Uploaded on+]</span><span class="input-text-wrap">
82
+ <input type="text" name="post_date" value="[+post_date_value+]" />
83
+ </span></label>
84
+ <div class="inline-edit-group">
85
+ <label class="inline-edit-post-parent alignleft"><span class="title">[+Parent ID+]</span><span class="input-text-wrap">
86
+ <input type="text" name="post_parent" value="[+post_parent_value+]" />
87
+ </span></label>
88
+ <input id="bulk-edit-set-parent" title="[+Select+]" class="button-primary parent" type="button" name="post_parent_set" value="[+Select+]" />
89
+ [+authors+]
90
+ </div>
91
+ <div class="inline-edit-group">
92
+ <label class="inline-edit-comments alignleft"><span class="title">[+Comments+]</span><span class="input-text-wrap">
93
+ <select name="comment_status">
94
+ <option [+comments_no_change+] value="-1">&mdash; [+No Change+] &mdash;</option>
95
+ <option [+comments_open+] value="open">[+Allow+]</option>
96
+ <option [+comments_closed+] value="closed">[+Do not allow+]</option>
97
+ </select>
98
+ </span></label>
99
+ <label class="inline-edit-pings alignright"><span class="title">[+Pings+]</span><span class="input-text-wrap">
100
+ <select name="ping_status">
101
+ <option [+pings_no_change+] value="-1">&mdash; [+No Change+] &mdash;</option>
102
+ <option [+pings_open+] value="open">[+Allow+]</option>
103
+ <option [+pings_closed+] value="closed">[+Do not allow+]</option>
104
+ </select>
105
+ </span></label>
106
+ </div>
107
+ [+custom_fields+]
108
+ </div>
109
+ </fieldset>