Media Library Assistant - Version 2.79

Version Description

  • New: For the [mla_tag_cloud] shortcode, a new no_count=internal parameter setting substitutes the WordPress-maintained "count" value for the explicitly-computed "attachments per term" value. This can significantly improve shortcode performance.
  • New: For the [mla_gallery] "date" and "timestamp" option/format codes, a second argument containing "i18n" will localize the returned value based on the site locale. A second argument containing "age" will return the difference between the source value and the current date/time. See the Documentation tab.
  • New: For all of the keyword search functions, You can also exclude items/terms by prepending a word or quoted phrase with a hyphen, e.g., "pillow -sofa" will select items/terms containing "pillow" but not "sofa".
  • New: For the [mla_gallery] "Keyword(s) Search" and "Taxonomy term keyword(s) search" functions, keywords and terms can be excluded from the results by enclosing them in "/" delimiters, e.g., "/not/ happy" will return items containing "happy" after excluding items containing "not".
  • New: For [mla_gallery], when mla_alt_shortcode=mla_term_list, parameters such as mla_link_href are passed through to be used by [mla_term_list].
  • New: For the [mla_gallery] "Support for Other Gallery-generating Shortcodes", a new mla_alt_ids_template parameter lets you specify a Content Template for the entire parameter value passed to the alternate shortcode.
  • New: For the Media/Assistant admin submenu, a new "Download" Bulk Action has been added. You can select one or more items and use the new action to download a ZIP archive containing the items through your browser. This new feature replaces the "MLA Download ZIP Example" plugin, which is disabled if present.
  • New: The Settings/Media Library Assistant General tab "Show Count Column" option now applies to all taxonomy edit screens, not just Categories and Tags.
  • New: For the "MLA UI Elements Example" plugin, simple taxonomy queries can now be combined with the add_filters_to queries.
  • Fix: For the "Media/Edit Media" screen, IPTC/EXIF metadata mapping now works when the "Enable custom field mapping" option is disabled.
  • Fix: For the Media Manager Modal (Popup) Window, formatting and handling of the "Remove term" elements for flat taxonomies has been corrected.
  • Fix: For [mla_gallery], the link_url item-level substitution parameter now reflects the mla_link_href parameter value.
  • Fix: For the new Gutenberg/Block Editor, load Media Modal scripts in footer section to avoid wp-lists.js conflicts such as failure to update custom fields in Posts/Edit Post and Page/Edit Page.
  • Fix: For the Media/Assistant admin submenu, suppresses the Admin Columns Pro version 4.5.x Bulk Edit feature.
  • Fix: Eliminate "Uncaught ReferenceError: ajaxurl is not defined" error for page builders such as Elementor.
Download this release

Release Info

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

Code changes from version 2.78 to 2.79

examples/plugins/mla-insert-fixit.php CHANGED
@@ -74,7 +74,7 @@ class Insert_Fixit {
74
  *
75
  * @var string
76
  */
77
- const CURRENT_VERSION = '1.09';
78
 
79
  /**
80
  * Slug prefix for registering and enqueueing submenu pages, style sheets and scripts
74
  *
75
  * @var string
76
  */
77
+ const CURRENT_VERSION = '1.10';
78
 
79
  /**
80
  * Slug prefix for registering and enqueueing submenu pages, style sheets and scripts
examples/plugins/mla-substitution-parameter-hooks-example.php CHANGED
@@ -411,14 +411,11 @@ class MLASubstitutionParameterExample {
411
  } else {
412
  // Look for a custom field match
413
  $meta_value = get_metadata( 'post', $parent_id, $value['value'], false );
414
- //error_log( __LINE__ . " MLASubstitutionParameterExample::mla_expand_custom_prefix( {$key}, {$post_id}, {$parent_id} ) meta_value = " . var_export( $meta_value, true ), 0 );
415
  if ( !empty( $meta_value ) ) {
416
  $custom_value = $meta_value;
417
  }
418
  }
419
 
420
- //error_log( __LINE__ . " MLASubstitutionParameterExample::mla_expand_custom_prefix( {$key}, {$post_id}, {$parent_id} ) custom_value = " . var_export( $custom_value, true ), 0 );
421
-
422
  if ( is_array( $custom_value ) ) {
423
  if ( 'single' == $value['option'] || 1 == count( $custom_value ) ) {
424
  $custom_value = sanitize_text_field( reset( $custom_value ) );
411
  } else {
412
  // Look for a custom field match
413
  $meta_value = get_metadata( 'post', $parent_id, $value['value'], false );
 
414
  if ( !empty( $meta_value ) ) {
415
  $custom_value = $meta_value;
416
  }
417
  }
418
 
 
 
419
  if ( is_array( $custom_value ) ) {
420
  if ( 'single' == $value['option'] || 1 == count( $custom_value ) ) {
421
  $custom_value = sanitize_text_field( reset( $custom_value ) );
examples/plugins/mla-ui-elements-example.php CHANGED
@@ -41,8 +41,8 @@
41
  * [mla_tag_cloud taxonomy=attachment_tag number=20 current_item="{+request:current_item+}" mla_link_href="{+currentlink_url+}&tax_input{{+query:taxonomy+}}{}={+slug+}&muie_per_page={+template:({+request:muie_per_page+}|5)+}" mla_link_class="{+current_item_class+}"]
42
  * </span>
43
  *
44
- * This example plugin uses four of the many filters available in the [mla_gallery] shortcode
45
- * and illustrates some of the techniques you can use to customize the gallery display.
46
  *
47
  * Created for support topic "How do I provide a front-end search of my media items using Custom Fields?"
48
  * opened on 4/15/2016 by "direys".
@@ -64,8 +64,12 @@
64
  * opened on 10/18/2016 by "trinitaa".
65
  * https://wordpress.org/support/topic/shortcode-456/
66
  *
 
 
 
 
67
  * @package MLA UI Elements Example
68
- * @version 1.10
69
  */
70
 
71
  /*
@@ -73,10 +77,10 @@ Plugin Name: MLA UI Elements Example
73
  Plugin URI: http://davidlingren.com/
74
  Description: Provides shortcodes to improve user experience for [mla_term_list], [mla_tag_cloud] and [mla_gallery] shortcodes
75
  Author: David Lingren
76
- Version: 1.10
77
  Author URI: http://davidlingren.com/
78
 
79
- Copyright 2016-2018 David Lingren
80
 
81
  This program is free software; you can redistribute it and/or modify
82
  it under the terms of the GNU General Public License as published by
@@ -379,6 +383,42 @@ class MLAUIElementsExample {
379
  $tax_input = array();
380
  }
381
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
382
  // Add the [mla_term_list mla_control_name=] parameter(s)
383
  if ( !empty( self::$mla_control_names ) ) {
384
  $muie_filters = array_merge( $muie_filters, self::$mla_control_names );
@@ -496,9 +536,7 @@ class MLAUIElementsExample {
496
  }
497
  }
498
 
499
- /*
500
- * Add the filter settings to pagination URLs
501
- */
502
  if ( !empty( $shortcode_attributes['mla_output'] ) ) {
503
 
504
  $filters = urlencode( json_encode( $muie_filters ) );
41
  * [mla_tag_cloud taxonomy=attachment_tag number=20 current_item="{+request:current_item+}" mla_link_href="{+currentlink_url+}&tax_input{{+query:taxonomy+}}{}={+slug+}&muie_per_page={+template:({+request:muie_per_page+}|5)+}" mla_link_class="{+current_item_class+}"]
42
  * </span>
43
  *
44
+ * This example plugin uses two of the many filters available in the [mla_gallery] and [mla_term_list] shortcodes
45
+ * and illustrates some of the techniques you can use to customize the gallery display and term list controls.
46
  *
47
  * Created for support topic "How do I provide a front-end search of my media items using Custom Fields?"
48
  * opened on 4/15/2016 by "direys".
64
  * opened on 10/18/2016 by "trinitaa".
65
  * https://wordpress.org/support/topic/shortcode-456/
66
  *
67
+ * Enhanced for support topic "Search solution"
68
+ * opened on 3/28/2019 by "fabrizioarnone".
69
+ * https://wordpress.org/support/topic/search-solution/
70
+ *
71
  * @package MLA UI Elements Example
72
+ * @version 1.11
73
  */
74
 
75
  /*
77
  Plugin URI: http://davidlingren.com/
78
  Description: Provides shortcodes to improve user experience for [mla_term_list], [mla_tag_cloud] and [mla_gallery] shortcodes
79
  Author: David Lingren
80
+ Version: 1.11
81
  Author URI: http://davidlingren.com/
82
 
83
+ Copyright 2016-2019 David Lingren
84
 
85
  This program is free software; you can redistribute it and/or modify
86
  it under the terms of the GNU General Public License as published by
383
  $tax_input = array();
384
  }
385
 
386
+ // Add in any simple taxonomy query shortcode parameters
387
+ if ( ! empty( $shortcode_attributes ) ) {
388
+ $all_taxonomies = get_taxonomies( array ( 'show_ui' => true ), 'names' );
389
+ $simple_tax_queries = array();
390
+ foreach ( $shortcode_attributes as $key => $value ) {
391
+ if ( 'tax_input' == $key ) {
392
+ $tax_queries = array();
393
+ $compound_values = array_filter( array_map( 'trim', explode( ',', $value ) ) );
394
+ foreach ( $compound_values as $compound_value ) {
395
+ $value = explode( '.', $compound_value );
396
+ if ( 2 === count( $value ) ) {
397
+ if ( array_key_exists( $value[0], $all_taxonomies ) ) {
398
+ $tax_queries[ $value[0] ][] = $value[1];
399
+ } // valid taxonomy
400
+ } // valid coumpound value
401
+ } // foreach compound_value
402
+
403
+ foreach( $tax_queries as $key => $value ) {
404
+ $simple_tax_queries[ $key ] = implode(',', $value );
405
+ }
406
+ } // tax_input
407
+ elseif ( array_key_exists( $key, $all_taxonomies ) ) {
408
+ $simple_tax_queries[ $key ] = implode(',', array_filter( array_map( 'trim', explode( ',', $value ) ) ) );
409
+ if ( 'no.terms.assigned' === $simple_tax_queries[ $key ] ) {
410
+ $no_terms_assigned_query = true;
411
+ }
412
+ } // array_key_exists
413
+ } //foreach $shortcode_attributes
414
+
415
+ if ( !empty( $simple_tax_queries ) ) {
416
+ foreach ( $simple_tax_queries as $key => $value ) {
417
+ $tax_input[ $key ] = explode( ',', $value );
418
+ }
419
+ }
420
+ }
421
+
422
  // Add the [mla_term_list mla_control_name=] parameter(s)
423
  if ( !empty( self::$mla_control_names ) ) {
424
  $muie_filters = array_merge( $muie_filters, self::$mla_control_names );
536
  }
537
  }
538
 
539
+ // Add the filter settings to pagination URLs
 
 
540
  if ( !empty( $shortcode_attributes['mla_output'] ) ) {
541
 
542
  $filters = urlencode( json_encode( $muie_filters ) );
examples/plugins/mla-zip-archive-example.php DELETED
@@ -1,190 +0,0 @@
1
- <?php
2
- /**
3
- * Creates a "Download" Bulk Action that downloads one or more Media Library files as a ZIP archive.
4
- *
5
- * Created for support topic "Att Categories menu returns 404 error"
6
- * opened on 11/17/2014 by "activecontent".
7
- * https://wordpress.org/support/topic/att-categories-menu-returns-404-error
8
- *
9
- * @package MLA Download ZIP Example
10
- * @version 1.02
11
- */
12
-
13
- /*
14
- Plugin Name: MLA Download ZIP Example
15
- Plugin URI: http://davidlingren.com/
16
- Description: Creates a "Download" Bulk Action that downloads one or more Media Library files as a ZIP archive
17
- Author: David Lingren
18
- Version: 1.02
19
- Author URI: http://davidlingren.com/
20
-
21
- Copyright 2014, 2018 David Lingren
22
-
23
- This program is free software; you can redistribute it and/or modify
24
- it under the terms of the GNU General Public License as published by
25
- the Free Software Foundation; either version 2 of the License, or
26
- (at your option) any later version.
27
-
28
- This program is distributed in the hope that it will be useful,
29
- but WITHOUT ANY WARRANTY; without even the implied warranty of
30
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
31
- GNU General Public License for more details.
32
-
33
- You can get a copy of the GNU General Public License by writing to the
34
- Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
35
- */
36
-
37
- /**
38
- * Class MLA Download ZIP Example hooks some of the filters provided by the MLA_List_Table class
39
- *
40
- * Call it anything you want, but give it an unlikely and hopefully unique name. Hiding everything
41
- * else inside a class means this is the only name you have to worry about.
42
- *
43
- * @package MLA Download ZIP Example
44
- * @since 1.00
45
- */
46
- class MLADownloadZIPExample {
47
- /**
48
- * Initialization function, similar to __construct()
49
- *
50
- * @since 1.00
51
- *
52
- * @return void
53
- */
54
- public static function initialize() {
55
- /*
56
- * The filters are only useful for the admin section; exit in the front-end posts/pages
57
- */
58
- if ( ! is_admin() )
59
- return;
60
-
61
- /*
62
- * Make sure we have ZIP support
63
- */
64
- if ( ! class_exists( 'ZipArchive' ) )
65
- return;
66
-
67
- /*
68
- * add_filter parameters:
69
- * $tag - name of the hook you're filtering; defined by [mla_gallery]
70
- * $function_to_add - function to be called when [mla_gallery] applies the filter
71
- * $priority - default 10; lower runs earlier, higher runs later
72
- * $accepted_args - number of arguments your function accepts
73
- */
74
-
75
- add_action( 'admin_init', 'MLADownloadZIPExample::admin_init_action', 10 );
76
-
77
- /*
78
- * Defined in /media-library-assistant/includes/class-mla-list-table.php
79
- */
80
- add_filter( 'mla_list_table_get_bulk_actions', 'MLADownloadZIPExample::mla_list_table_get_bulk_actions', 10, 1 );
81
- }
82
-
83
- /**
84
- * Process the 'download-zip' bulk action
85
- *
86
- * We must take control here so we can successfully issue a wp_redirect for the download.
87
- *
88
- * @since 1.00
89
- */
90
- public static function admin_init_action() {
91
- //error_log( 'MLADownloadZIPExample::admin_init_action $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
92
-
93
- $bulk_action = '';
94
- if ( isset( $_REQUEST['action'] ) && 'download-zip' == $_REQUEST['action']) {
95
- $bulk_action = 'download-zip';
96
- } elseif ( isset( $_REQUEST['action2'] ) && 'download-zip' == $_REQUEST['action2']) {
97
- $bulk_action = 'download-zip';
98
- }
99
-
100
- if ( 'download-zip' !== $bulk_action ) {
101
- return;
102
- }
103
-
104
- if ( empty( $_REQUEST['cb_attachment'] ) ) {
105
- return;
106
- }
107
-
108
- /*
109
- * Create unique local names to handle the case where the same file name
110
- * appears in multiple year/month/ directories.
111
- */
112
- $file_names = array();
113
- foreach ( $_REQUEST['cb_attachment'] as $index => $post_id ) {
114
- $file_name = get_attached_file( $post_id );
115
- $path_info = pathinfo( $file_name );
116
- $local_name = $path_info['basename'];
117
- $suffix = 0;
118
- while( array_key_exists( $local_name, $file_names ) ) {
119
- $suffix++;
120
- $local_name = $path_info['filename'] . $suffix . '.' . $path_info['extension'];
121
- }
122
-
123
- $file_names[ $local_name ] = $file_name;
124
- }
125
-
126
- /*
127
- * Create the ZIP archive
128
- */
129
- $upload_dir = wp_upload_dir();
130
- $prefix = ( defined( MLA_OPTION_PREFIX ) ) ? MLA_OPTION_PREFIX : 'mla_';
131
- $date = date("Ymd_B");
132
- $archive_name = $upload_dir['basedir'] . '/' . "{$prefix}_options_{$date}.zip";
133
-
134
- if ( file_exists( $archive_name ) ) {
135
- @unlink( $archive_name );
136
- }
137
-
138
- $zip = new ZipArchive();
139
- if ( true !== $zip->open( $archive_name, ZIPARCHIVE::CREATE ) ) {
140
- /* translators: 1: ZIP archive file name */
141
- $_REQUEST['mla_admin_message'] = sprintf( __( 'ERROR: The ZIP archive ( %1$s ) could not be created.', 'mla-zip-archive-example' ), $archive_name );
142
- return;
143
- }
144
-
145
- foreach( $file_names as $local_name => $file_name ) {
146
- if ( true !== $zip->addFile( $file_name, $local_name ) ) {
147
- /* translators: 1: ZIP archive file name */
148
- $_REQUEST['mla_admin_message'] = sprintf( __( 'ERROR: The file ( %1$s ) could not be added to the ZIP archive.', 'mla-zip-archive-example' ), $file_name );
149
- return;
150
- }
151
- }
152
-
153
- if ( true !== $zip->close() ) {
154
- /* translators: 1: ZIP archive file name */
155
- $_REQUEST['mla_admin_message'] = sprintf( __( 'ERROR: The ZIP archive ( %1$s ) could not be closed.', 'mla-zip-archive-example' ), $archive_name );
156
- return;
157
- }
158
-
159
- $download_args = array( 'page' => MLACore::ADMIN_PAGE_SLUG, 'mla_download_file' => urlencode( $archive_name ), 'mla_download_type' => 'application/zip', 'mla_download_disposition' => 'delete' );
160
-
161
- wp_redirect( add_query_arg( $download_args, wp_nonce_url( 'upload.php', MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME ) ), 302 );
162
- exit;
163
- } // admin_init_action
164
-
165
- /**
166
- * Filter the MLA_List_Table bulk actions
167
- *
168
- * This MLA-specific filter gives you an opportunity to filter the list of bulk actions;
169
- * a good alternative to the 'bulk_actions-media_page_mla-menu' filter.
170
- *
171
- * @since 1.01
172
- *
173
- * @param array $actions An array of bulk actions.
174
- * Format: 'slug' => 'Label'
175
- *
176
- * @return array updated array of actions.
177
- */
178
- public static function mla_list_table_get_bulk_actions( $actions ) {
179
- //error_log( 'MLADownloadZIPExample::mla_list_table_get_bulk_actions $actions = ' . var_export( $actions, true ), 0 );
180
-
181
- $actions[ 'download-zip' ] = __( 'Download', 'mla-zip-archive-example' );
182
- return $actions;
183
- } // mla_list_table_get_bulk_actions
184
- } // Class MLADownloadZIPExample
185
-
186
- /*
187
- * Install the filters at an early opportunity
188
- */
189
- add_action('init', 'MLADownloadZIPExample::initialize');
190
- ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
includes/class-mla-admin-columns-pro-support.php CHANGED
@@ -26,17 +26,35 @@ class ACP_Addon_MLA_ListScreen extends AC_Addon_MLA_ListScreen
26
  parent::__construct();
27
 
28
  add_action( 'ac/table/list_screen', array( $this, 'export_table_global' ) );
 
 
 
 
29
  }
30
 
31
  /**
32
  * Set MLA-specific inline editing strategy for Admin Columns Pro
33
  *
34
  * @since 2.71
 
 
 
 
 
 
 
 
 
35
  *
36
- * @param ACP\Editing\Model $model
 
37
  */
38
- public function editing( /* $model */ ) {
39
- return new ACP_Addon_MLA_Editing_Strategy( 'attachment' /* $model */ );
 
 
 
 
40
  }
41
 
42
  /**
26
  parent::__construct();
27
 
28
  add_action( 'ac/table/list_screen', array( $this, 'export_table_global' ) );
29
+
30
+ if ( version_compare( ACP()->get_version(), '4.5.4', '>=' ) ) {
31
+ add_filter('acp/editing/bulk/active', array( $this, 'disable_bulk_editing' ), 10, 2 );
32
+ }
33
  }
34
 
35
  /**
36
  * Set MLA-specific inline editing strategy for Admin Columns Pro
37
  *
38
  * @since 2.71
39
+ */
40
+ public function editing() {
41
+ return new ACP_Addon_MLA_Editing_Strategy( 'attachment' );
42
+ }
43
+
44
+ /**
45
+ * Set MLA-specific inline editing strategy for Admin Columns Pro
46
+ *
47
+ * @since 2.79
48
  *
49
+ * @param boolean $active
50
+ * @param AC_ListScreen $list_screen
51
  */
52
+ public function disable_bulk_editing( $active, $list_screen ){
53
+ if( $list_screen instanceof ACP_Addon_MLA_ListScreen ){
54
+ return false;
55
+ }
56
+
57
+ return $active;
58
  }
59
 
60
  /**
includes/class-mla-core-options.php CHANGED
@@ -496,7 +496,8 @@ class MLACoreOptions {
496
  'type' => 'checkbox',
497
  'autoload' => true,
498
  'std' => '',
499
- 'help' => __( 'Check this option to display the Count column on Categories and Tags taxonomy edit screens.', 'media-library-assistant' )),
 
500
 
501
  self::MLA_TAXONOMY_SUPPORT =>
502
  array('tab' => 'general',
496
  'type' => 'checkbox',
497
  'autoload' => true,
498
  'std' => '',
499
+ 'help' => __( 'Check this option to display the Count column on taxonomy edit screens.', 'media-library-assistant' )),
500
+ // 'help' => __( 'Check this option to display the Count column on Categories and Tags taxonomy edit screens.', 'media-library-assistant' )),
501
 
502
  self::MLA_TAXONOMY_SUPPORT =>
503
  array('tab' => 'general',
includes/class-mla-core.php CHANGED
@@ -21,7 +21,7 @@ class MLACore {
21
  *
22
  * @var string
23
  */
24
- const CURRENT_MLA_VERSION = '2.78';
25
 
26
  /**
27
  * Slug for registering and enqueueing plugin style sheets (moved from class-mla-main.php)
@@ -1777,10 +1777,10 @@ class MLACore {
1777
 
1778
  if ( function_exists( 'ACP' ) ) {
1779
  if ( version_compare( ACP()->get_version(), '4.5', '>=' ) ) {
1780
- // Load the latest version, with namespace support
1781
  require_once( MLA_PLUGIN_PATH . 'includes/class-mla-admin-columns-pro-support.php' );
1782
  } elseif ( version_compare( ACP()->get_version(), '4.3', '>=' ) ) {
1783
- // Load the interim version, without bulk edit support
1784
  require_once( MLA_PLUGIN_PATH . 'includes/class-mla-admin-columns-pro-support-44.php' );
1785
  } elseif ( version_compare( ACP()->get_version(), '4.2.3', '>=' ) ) {
1786
  // Load the interim version, with export support
21
  *
22
  * @var string
23
  */
24
+ const CURRENT_MLA_VERSION = '2.79';
25
 
26
  /**
27
  * Slug for registering and enqueueing plugin style sheets (moved from class-mla-main.php)
1777
 
1778
  if ( function_exists( 'ACP' ) ) {
1779
  if ( version_compare( ACP()->get_version(), '4.5', '>=' ) ) {
1780
+ // Load the latest version, with bulk edit changes
1781
  require_once( MLA_PLUGIN_PATH . 'includes/class-mla-admin-columns-pro-support.php' );
1782
  } elseif ( version_compare( ACP()->get_version(), '4.3', '>=' ) ) {
1783
+ // Load the interim version, with namespace support, without bulk edit support
1784
  require_once( MLA_PLUGIN_PATH . 'includes/class-mla-admin-columns-pro-support-44.php' );
1785
  } elseif ( version_compare( ACP()->get_version(), '4.2.3', '>=' ) ) {
1786
  // Load the interim version, with export support
includes/class-mla-data-query.php CHANGED
@@ -678,22 +678,23 @@ class MLAQuery {
678
  *
679
  * @uses array self::$search_parameters
680
  *
681
- * @param string phrases, e.g., ( "a phrase" separate phrase ) without parens, space delimited
 
 
682
  *
683
  * @return array ( 'original' => all phrases, 'positive' => positive phrases, 'negative' => negative phrases )
684
  */
685
- private static function _divide_search_string( $whole_string ) {
686
- $separator = ','; // TODO default value
687
- $negative_delimiter = '/'; // TODO default value
688
  $phrases = array( 'original' => $whole_string, 'positive' => '', 'negative' => '' );
689
 
690
  $separator_list = " \n\t\r\0\x0B";
691
- if ( false === strpos( $separator_list, $separator ) ) {
692
- $separator_list .= $separator;
693
  } else {
694
  $separator_list .= ',';
695
  }
696
 
 
697
  $in_negative = false;
698
  $current_quote = '';
699
  $in_trim = false;
@@ -703,21 +704,27 @@ class MLAQuery {
703
 
704
  while ( $index < strlen( $whole_string ) ) {
705
  $byte = $whole_string[ $index++ ];
706
- //error_log( __LINE__ . " MLAQuery::_divide_search_string byte |{$byte}| in_trim |{$in_trim}| in_negative |{$in_negative}| current_quote |{$current_quote}| current_separator |{$current_separator}| argument |{$argument}| phrases = " . var_export( $phrases, true ), 0 );
707
 
708
  // Are we between arguments?
709
  if ( ( false !== strpos( $separator_list, $byte ) ) && !( $in_negative || $current_quote ) ) {
710
  $in_trim = true;
711
 
712
- if ( $separator === $byte ) {
713
- $current_separator = $separator;
714
  }
715
 
716
  continue;
717
  } elseif ( $in_trim ) {
718
  // Have we seen a positive argument?
719
  if ( strlen( $argument ) ) {
720
- $phrases['positive'] .= $argument;
 
 
 
 
 
 
721
  $argument = '';
722
  }
723
 
@@ -737,6 +744,7 @@ class MLAQuery {
737
  if ( $in_negative && ( $negative_delimiter == $byte ) ) {
738
  if ( strlen( $argument ) ) {
739
  $phrases['negative'] .= $argument;
 
740
  $argument = '';
741
  }
742
 
@@ -750,7 +758,12 @@ class MLAQuery {
750
  if ( $in_negative ) {
751
  $phrases['negative'] .= $current_quote . $argument . $current_quote;
752
  } else {
753
- $phrases['positive'] .= $current_quote . $argument . $current_quote;
 
 
 
 
 
754
  }
755
 
756
  $argument = '';
@@ -763,7 +776,12 @@ class MLAQuery {
763
  // Are we starting a negative phrase?
764
  if ( ( $negative_delimiter == $byte ) && !$current_quote ) {
765
  if ( strlen( $argument ) ) {
766
- $phrases['positive'] .= $argument;
 
 
 
 
 
767
  $argument = '';
768
  }
769
 
@@ -777,21 +795,27 @@ class MLAQuery {
777
  continue;
778
  }
779
 
780
- // Accumulate a phrase
781
- $argument .= $byte;
 
 
 
 
 
782
  } // index < strlen
783
 
784
  // Close out the final argument
785
  if ( strlen( $argument ) ) {
786
- // Restore quotes for word-boundary check
787
- $phrases['positive'] .= $argument;
 
 
 
788
  }
789
-
790
- //error_log( __LINE__ . ' MLAQuery::_divide_search_string phrases = ' . var_export( $phrases, true ), 0 );
791
 
792
  return $phrases;
793
- return array( 'original' => 'america /statue/', 'positive' => 'america', 'negative' => 'statue' );
794
- } // _divide_search_string
795
 
796
  /**
797
  * Sanitize and expand query arguments from request variables
@@ -1215,7 +1239,7 @@ class MLAQuery {
1215
  } // isset mla_tax
1216
 
1217
  if ( !empty( self::$search_parameters['s'] ) ) {
1218
- $search_phrases = self::_divide_search_string( self::$search_parameters['s'] );
1219
  //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query search_phrases = " . var_export( $search_phrases, true ), 0 );
1220
 
1221
  if ( !empty( $search_phrases['negative'] ) ) {
@@ -1233,7 +1257,7 @@ class MLAQuery {
1233
  //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query search_parameters = " . var_export( self::$search_parameters, true ), 0 );
1234
 
1235
  if ( !empty( self::$search_parameters['mla_terms_search'] ) ) {
1236
- $search_phrases = self::_divide_search_string( self::$search_parameters['mla_terms_search']['phrases'] );
1237
  //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query mla_terms_search search_phrases = " . var_export( $search_phrases, true ), 0 );
1238
 
1239
  if ( !empty( $search_phrases['negative'] ) ) {
678
  *
679
  * @uses array self::$search_parameters
680
  *
681
+ * @param string whole_string e.g., ( "a phrase" separate phrase ) without parens, space delimited
682
+ * @param string term_delimiter separator between terms for terms search
683
+ * @param string negative_delimiter delimiter for negative phrases, e.g., /exclude this/, /"exclude also"/
684
  *
685
  * @return array ( 'original' => all phrases, 'positive' => positive phrases, 'negative' => negative phrases )
686
  */
687
+ public static function mla_divide_search_string( $whole_string, $term_delimiter = ',', $negative_delimiter = '/' ) {
 
 
688
  $phrases = array( 'original' => $whole_string, 'positive' => '', 'negative' => '' );
689
 
690
  $separator_list = " \n\t\r\0\x0B";
691
+ if ( false === strpos( $separator_list, $term_delimiter ) ) {
692
+ $separator_list .= $term_delimiter;
693
  } else {
694
  $separator_list .= ',';
695
  }
696
 
697
+ $negative_prepend = false;
698
  $in_negative = false;
699
  $current_quote = '';
700
  $in_trim = false;
704
 
705
  while ( $index < strlen( $whole_string ) ) {
706
  $byte = $whole_string[ $index++ ];
707
+ //error_log( __LINE__ . " MLAQuery::mla_divide_search_string byte |{$byte}| in_trim |{$in_trim}| in_negative |{$in_negative}| current_quote |{$current_quote}| current_separator |{$current_separator}| argument |{$argument}| phrases = " . var_export( $phrases, true ), 0 );
708
 
709
  // Are we between arguments?
710
  if ( ( false !== strpos( $separator_list, $byte ) ) && !( $in_negative || $current_quote ) ) {
711
  $in_trim = true;
712
 
713
+ if ( $term_delimiter === $byte ) {
714
+ $current_separator = $term_delimiter;
715
  }
716
 
717
  continue;
718
  } elseif ( $in_trim ) {
719
  // Have we seen a positive argument?
720
  if ( strlen( $argument ) ) {
721
+ if ( $negative_prepend ) {
722
+ $phrases['negative'] .= $argument;
723
+ $negative_prepend = false;
724
+ } else {
725
+ $phrases['positive'] .= $argument;
726
+ }
727
+
728
  $argument = '';
729
  }
730
 
744
  if ( $in_negative && ( $negative_delimiter == $byte ) ) {
745
  if ( strlen( $argument ) ) {
746
  $phrases['negative'] .= $argument;
747
+ $negative_prepend = false; // handle double-delimiting, i.e., -/phrase/
748
  $argument = '';
749
  }
750
 
758
  if ( $in_negative ) {
759
  $phrases['negative'] .= $current_quote . $argument . $current_quote;
760
  } else {
761
+ if ( $negative_prepend ) {
762
+ $phrases['negative'] .= $current_quote . $argument . $current_quote;
763
+ $negative_prepend = false;
764
+ } else {
765
+ $phrases['positive'] .= $current_quote . $argument . $current_quote;
766
+ }
767
  }
768
 
769
  $argument = '';
776
  // Are we starting a negative phrase?
777
  if ( ( $negative_delimiter == $byte ) && !$current_quote ) {
778
  if ( strlen( $argument ) ) {
779
+ if ( $negative_prepend ) {
780
+ $phrases['negative'] .= $argument;
781
+ $negative_prepend = false;
782
+ } else {
783
+ $phrases['positive'] .= $argument;
784
+ }
785
  $argument = '';
786
  }
787
 
795
  continue;
796
  }
797
 
798
+ // Look for prepended "-" as added to WP_Query in WP 4.4
799
+ if ( !$current_quote && empty( $argument ) && '-' === $byte ) {
800
+ $negative_prepend = true;
801
+ } else {
802
+ // Accumulate a phrase
803
+ $argument .= $byte;
804
+ }
805
  } // index < strlen
806
 
807
  // Close out the final argument
808
  if ( strlen( $argument ) ) {
809
+ if ( $negative_prepend ) {
810
+ $phrases['negative'] .= $argument;
811
+ } else {
812
+ $phrases['positive'] .= $argument;
813
+ }
814
  }
815
+ //error_log( __LINE__ . ' MLAQuery::mla_divide_search_string phrases = ' . var_export( $phrases, true ), 0 );
 
816
 
817
  return $phrases;
818
+ } // mla_divide_search_string
 
819
 
820
  /**
821
  * Sanitize and expand query arguments from request variables
1239
  } // isset mla_tax
1240
 
1241
  if ( !empty( self::$search_parameters['s'] ) ) {
1242
+ $search_phrases = self::mla_divide_search_string( self::$search_parameters['s'] );
1243
  //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query search_phrases = " . var_export( $search_phrases, true ), 0 );
1244
 
1245
  if ( !empty( $search_phrases['negative'] ) ) {
1257
  //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query search_parameters = " . var_export( self::$search_parameters, true ), 0 );
1258
 
1259
  if ( !empty( self::$search_parameters['mla_terms_search'] ) ) {
1260
+ $search_phrases = self::mla_divide_search_string( self::$search_parameters['mla_terms_search']['phrases'] );
1261
  //error_log( __LINE__ . " MLAQuery::_prepare_list_table_query mla_terms_search search_phrases = " . var_export( $search_phrases, true ), 0 );
1262
 
1263
  if ( !empty( $search_phrases['negative'] ) ) {
includes/class-mla-data.php CHANGED
@@ -874,31 +874,55 @@ class MLAData {
874
  break;
875
  case 'timestamp':
876
  if ( is_numeric( $value ) ) {
877
- /*
878
- * date "Returns a string formatted according to the given format string using the given integer"
879
- */
880
  $format = empty( $args['args'] ) ? 'd/m/Y H:i:s' : $args['args'];
 
881
  if ( is_array( $format ) ) {
 
882
  $format = $format[0];
883
  }
884
 
885
- $value = date( $format , (integer) $value );
 
 
 
 
 
 
 
 
 
 
886
  }
 
887
  break;
888
  case 'date':
889
  /*
890
  * strtotime will "Parse about any English textual datetime description into a Unix timestamp"
891
  * If it succeeds we can format the timestamp for display
892
  */
893
- $format = empty( $args['args'] ) ? 'd/m/Y H:i:s' : $args['args'];
894
  $timestamp = strtotime( $value );
895
  if( false !== $timestamp ) {
 
 
 
896
  if ( is_array( $format ) ) {
 
897
  $format = $format[0];
898
  }
899
 
900
- $value = date( $format, $timestamp );
 
 
 
 
 
 
 
 
 
901
  }
 
902
  break;
903
  case 'fraction':
904
  $show_fractions = true;
874
  break;
875
  case 'timestamp':
876
  if ( is_numeric( $value ) ) {
877
+ $modifier = '';
 
 
878
  $format = empty( $args['args'] ) ? 'd/m/Y H:i:s' : $args['args'];
879
+
880
  if ( is_array( $format ) ) {
881
+ $modifier = strtolower( trim( $format[1] ) );
882
  $format = $format[0];
883
  }
884
 
885
+ switch ( $modifier ) {
886
+ case 'i18n':
887
+ $value = date_i18n( $format, (integer) $value );
888
+ break;
889
+ case 'age':
890
+ $value = sprintf( $format, human_time_diff( (integer) $value ) );
891
+ break;
892
+ default:
893
+ // date "Returns a string formatted according to the given format string using the given integer"
894
+ $value = date( $format, (integer) $value );
895
+ }
896
  }
897
+
898
  break;
899
  case 'date':
900
  /*
901
  * strtotime will "Parse about any English textual datetime description into a Unix timestamp"
902
  * If it succeeds we can format the timestamp for display
903
  */
 
904
  $timestamp = strtotime( $value );
905
  if( false !== $timestamp ) {
906
+ $modifier = '';
907
+ $format = empty( $args['args'] ) ? 'd/m/Y H:i:s' : $args['args'];
908
+
909
  if ( is_array( $format ) ) {
910
+ $modifier = strtolower( trim( $format[1] ) );
911
  $format = $format[0];
912
  }
913
 
914
+ switch ( $modifier ) {
915
+ case 'i18n':
916
+ $value = date_i18n( $format, $timestamp );
917
+ break;
918
+ case 'age':
919
+ $value = sprintf( $format, human_time_diff( $timestamp ) );
920
+ break;
921
+ default:
922
+ $value = date( $format, $timestamp );
923
+ }
924
  }
925
+
926
  break;
927
  case 'fraction':
928
  $show_fractions = true;
includes/class-mla-list-table.php CHANGED
@@ -1867,6 +1867,10 @@ class MLA_List_Table extends WP_List_Table {
1867
  }
1868
  }
1869
 
 
 
 
 
1870
  return apply_filters( 'mla_list_table_get_bulk_actions', $actions );
1871
  }
1872
 
1867
  }
1868
  }
1869
 
1870
+ if ( class_exists( 'ZipArchive' ) ) {
1871
+ $actions[ 'download-zip' ] = __( 'Download', 'media-library-assistant' );
1872
+ }
1873
+
1874
  return apply_filters( 'mla_list_table_get_bulk_actions', $actions );
1875
  }
1876
 
includes/class-mla-main.php CHANGED
@@ -196,6 +196,20 @@ class MLA {
196
  exit();
197
  }
198
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
199
  // Process row-level actions from the Edit Media screen
200
  if ( !empty( $_REQUEST['mla_admin_action'] ) ) {
201
  if ( isset( $_REQUEST['mla-set-parent-ajax-nonce'] ) ) {
@@ -225,7 +239,7 @@ class MLA {
225
  wp_redirect( add_query_arg( $view_args, admin_url( 'post.php' ) . '?post=' . $_REQUEST['mla_item_ID'] . '&action=edit&message=' . $message ), 302 );
226
  exit;
227
  case MLACore::MLA_ADMIN_SINGLE_MAP:
228
- if ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_ALLOW_CUSTOM_FIELD_MAPPING ) ) {
229
  $item = get_post( $_REQUEST['mla_item_ID'] );
230
  do_action( 'mla_begin_mapping', 'single_iptc_exif', $_REQUEST['mla_item_ID'] );
231
  $updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping' );
@@ -454,7 +468,8 @@ class MLA {
454
  'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
455
  'useSpinnerClass' => false,
456
  'ajax_action' => MLACore::JAVASCRIPT_INLINE_EDIT_SLUG,
457
- 'ajax_nonce' => wp_create_nonce( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME )
 
458
  );
459
 
460
  if ( version_compare( get_bloginfo( 'version' ), '4.2', '>=' ) ) {
@@ -465,6 +480,12 @@ class MLA {
465
  $script_variables['quickTagsInit'] = array( 'post_content' => array( 'id' => 'post_content', 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close', 'active' => true, ) );
466
  }
467
 
 
 
 
 
 
 
468
  wp_localize_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG, self::JAVASCRIPT_INLINE_EDIT_OBJECT, $script_variables );
469
  }
470
 
@@ -484,6 +505,26 @@ class MLA {
484
 
485
  add_action( 'load-upload.php', 'MLA::mla_load_media_action' );
486
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
487
  $page_title = MLACore::mla_get_option( MLACoreOptions::MLA_SCREEN_PAGE_TITLE );
488
  if ( empty( $page_title ) ) {
489
  $page_title = MLACore::mla_get_option( MLACoreOptions::MLA_SCREEN_PAGE_TITLE, true );
@@ -828,6 +869,77 @@ class MLA {
828
  exit();
829
  }
830
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
831
  /**
832
  * Process bulk edit area fields, which may contain a Content Template
833
  *
@@ -1142,6 +1254,12 @@ class MLA {
1142
  $page_content = array( 'message' => '', 'body' => '', 'unchanged' => 0, 'success' => 0, 'failure' => 0, 'item_results' => array() );
1143
  $custom_field_map = MLACore::mla_custom_field_support( 'bulk_edit' );
1144
 
 
 
 
 
 
 
1145
  /*
1146
  * do_cleanup will remove the bulk edit elements from the $_REQUEST super array.
1147
  * It is passed in the $request so it can be filtered.
@@ -1192,6 +1310,7 @@ class MLA {
1192
  do_action( 'mla_begin_mapping', 'bulk_iptc_exif', NULL );
1193
  }
1194
 
 
1195
  foreach ( $request['cb_attachment'] as $index => $post_id ) {
1196
  self::$bulk_edit_data_source['cb_index']++;
1197
 
196
  exit();
197
  }
198
 
199
+ $bulk_action = '';
200
+ if ( isset( $_REQUEST['action'] ) && 'download-zip' == $_REQUEST['action']) {
201
+ $bulk_action = 'download-zip';
202
+ } elseif ( isset( $_REQUEST['action2'] ) && 'download-zip' == $_REQUEST['action2']) {
203
+ $bulk_action = 'download-zip';
204
+ }
205
+
206
+ if ( 'download-zip' == $bulk_action ) {
207
+ // Exits after redirect unless it returns an error
208
+ $_REQUEST['mla_zip_archive_error_message'] = self::_process_zip_archive_download( $_REQUEST );
209
+ MLACore::mla_debug_add( __LINE__ . " MLA::_process_zip_archive_download message = " . var_export( $_REQUEST['mla_zip_archive_error_message'], true ), MLACore::MLA_DEBUG_CATEGORY_ANY );
210
+ return;
211
+ }
212
+
213
  // Process row-level actions from the Edit Media screen
214
  if ( !empty( $_REQUEST['mla_admin_action'] ) ) {
215
  if ( isset( $_REQUEST['mla-set-parent-ajax-nonce'] ) ) {
239
  wp_redirect( add_query_arg( $view_args, admin_url( 'post.php' ) . '?post=' . $_REQUEST['mla_item_ID'] . '&action=edit&message=' . $message ), 302 );
240
  exit;
241
  case MLACore::MLA_ADMIN_SINGLE_MAP:
242
+ if ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_ALLOW_IPTC_EXIF_MAPPING ) ) {
243
  $item = get_post( $_REQUEST['mla_item_ID'] );
244
  do_action( 'mla_begin_mapping', 'single_iptc_exif', $_REQUEST['mla_item_ID'] );
245
  $updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_mapping' );
468
  'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
469
  'useSpinnerClass' => false,
470
  'ajax_action' => MLACore::JAVASCRIPT_INLINE_EDIT_SLUG,
471
+ 'ajax_nonce' => wp_create_nonce( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME ),
472
+ 'deleteAcpBulkEdit' => false,
473
  );
474
 
475
  if ( version_compare( get_bloginfo( 'version' ), '4.2', '>=' ) ) {
480
  $script_variables['quickTagsInit'] = array( 'post_content' => array( 'id' => 'post_content', 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,close', 'active' => true, ) );
481
  }
482
 
483
+ if ( function_exists( 'ACP' ) && ( version_compare( ACP()->get_version(), '4.5', '>=' ) ) ) {
484
+ if ( version_compare( ACP()->get_version(), '4.5.4', '<' ) ) {
485
+ $script_variables['deleteAcpBulkEdit'] = true;
486
+ }
487
+ }
488
+
489
  wp_localize_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG, self::JAVASCRIPT_INLINE_EDIT_OBJECT, $script_variables );
490
  }
491
 
505
 
506
  add_action( 'load-upload.php', 'MLA::mla_load_media_action' );
507
 
508
+ // Disable the MLA Download ZIP Example plugin, if necessary
509
+ if ( isset( $_REQUEST['page'] ) && 'mla-menu' === $_REQUEST['page'] ) {
510
+ $bulk_action = '';
511
+ if ( isset( $_REQUEST['action'] ) && 'download-zip' === $_REQUEST['action']) {
512
+ $bulk_action = 'download-zip';
513
+ } elseif ( isset( $_REQUEST['action2'] ) && 'download-zip' === $_REQUEST['action2']) {
514
+ $bulk_action = 'download-zip';
515
+ }
516
+
517
+ if ( 'download-zip' === $bulk_action ) {
518
+ if ( is_plugin_active( 'mla-zip-archive-example/mla-zip-archive-example.php' ) ) {
519
+ deactivate_plugins( 'mla-zip-archive-example/mla-zip-archive-example.php', true );
520
+ }
521
+
522
+ if ( is_plugin_active( 'mla-zip-archive-example.php' ) ) {
523
+ deactivate_plugins( 'mla-zip-archive-example.php', true );
524
+ }
525
+ }
526
+ }
527
+
528
  $page_title = MLACore::mla_get_option( MLACoreOptions::MLA_SCREEN_PAGE_TITLE );
529
  if ( empty( $page_title ) ) {
530
  $page_title = MLACore::mla_get_option( MLACoreOptions::MLA_SCREEN_PAGE_TITLE, true );
869
  exit();
870
  }
871
 
872
+ /**
873
+ * Process the 'download-zip' bulk action
874
+ *
875
+ * @since 2.79
876
+ *
877
+ * @param array Form elements, e.g., from $_REQUEST
878
+ *
879
+ * @return array success/failure message and NULL content
880
+ */
881
+ private static function _process_zip_archive_download( $request ) {
882
+ // Make sure we have ZIP support
883
+ if ( !class_exists( 'ZipArchive' ) ) {
884
+ return __( 'ERROR', 'media-library-assistant' ) . ': ' . __( 'no ZipArchive support.', 'media-library-assistant' );
885
+ }
886
+
887
+ // Create unique local names in case the same file name appears in multiple year/month/ directories.
888
+ $file_names = array();
889
+ foreach ( $request['cb_attachment'] as $index => $post_id ) {
890
+ $file_name = get_attached_file( $post_id );
891
+ $path_info = pathinfo( $file_name );
892
+ $local_name = $path_info['basename'];
893
+ $suffix = 0;
894
+ while( array_key_exists( $local_name, $file_names ) ) {
895
+ $suffix++;
896
+ $local_name = $path_info['filename'] . $suffix . '.' . $path_info['extension'];
897
+ }
898
+
899
+ $file_names[ $local_name ] = $file_name;
900
+ }
901
+
902
+ // Create the ZIP archive
903
+ $upload_dir = wp_upload_dir();
904
+ $prefix = ( defined( MLA_OPTION_PREFIX ) ) ? MLA_OPTION_PREFIX : 'mla_';
905
+ $date = date("Ymd_B");
906
+ $archive_name = $upload_dir['basedir'] . '/' . "{$prefix}_options_{$date}.zip";
907
+
908
+ // Clean up an obsolete file
909
+ if ( file_exists( $archive_name ) ) {
910
+ @unlink( $archive_name );
911
+ }
912
+
913
+ $zip = new ZipArchive();
914
+ if ( true !== $zip->open( $archive_name, ZIPARCHIVE::CREATE ) ) {
915
+ /* translators: 1: ZIP archive file name */
916
+ $text = sprintf( __( 'The ZIP archive ( %1$s ) could not be created.', 'media-library-assistant' ), $archive_name );
917
+ return array(
918
+ 'message' => __( 'ERROR', 'media-library-assistant' ) . ': ' . $text,
919
+ 'body' => ''
920
+ );
921
+ }
922
+
923
+ foreach( $file_names as $local_name => $file_name ) {
924
+ if ( true !== $zip->addFile( $file_name, $local_name ) ) {
925
+ /* translators: 1: ZIP archive file name */
926
+ $text = sprintf( __( 'The file ( %1$s ) could not be added to the ZIP archive.', 'media-library-assistant' ), $file_name );
927
+ return __( 'ERROR', 'media-library-assistant' ) . ': ' . $text;
928
+ }
929
+ }
930
+
931
+ if ( true !== $zip->close() ) {
932
+ /* translators: 1: ZIP archive file name */
933
+ $text = sprintf( __( 'The ZIP archive ( %1$s ) could not be closed.', 'media-library-assistant' ), $archive_name );
934
+ return __( 'ERROR', 'media-library-assistant' ) . ': ' . $text;
935
+ }
936
+
937
+ $download_args = array( 'page' => MLACore::ADMIN_PAGE_SLUG, 'mla_download_file' => urlencode( $archive_name ), 'mla_download_type' => 'application/zip', 'mla_download_disposition' => 'delete' );
938
+
939
+ wp_redirect( add_query_arg( $download_args, wp_nonce_url( 'upload.php', MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME ) ), 302 );
940
+ exit;
941
+ }
942
+
943
  /**
944
  * Process bulk edit area fields, which may contain a Content Template
945
  *
1254
  $page_content = array( 'message' => '', 'body' => '', 'unchanged' => 0, 'success' => 0, 'failure' => 0, 'item_results' => array() );
1255
  $custom_field_map = MLACore::mla_custom_field_support( 'bulk_edit' );
1256
 
1257
+ // Check for failed ZIP Archive download request
1258
+ if ( !empty( $_REQUEST['mla_zip_archive_error_message'] ) ) {
1259
+ $page_content['message'] = $_REQUEST['mla_zip_archive_error_message'];
1260
+ return $page_content;
1261
+ }
1262
+
1263
  /*
1264
  * do_cleanup will remove the bulk edit elements from the $_REQUEST super array.
1265
  * It is passed in the $request so it can be filtered.
1310
  do_action( 'mla_begin_mapping', 'bulk_iptc_exif', NULL );
1311
  }
1312
 
1313
+
1314
  foreach ( $request['cb_attachment'] as $index => $post_id ) {
1315
  self::$bulk_edit_data_source['cb_index']++;
1316
 
includes/class-mla-media-modal-ajax.php CHANGED
@@ -239,9 +239,7 @@ class MLAModal_Ajax {
239
  $use_checklist = MLACore::mla_taxonomy_support( $key, 'flat-checklist' );
240
  }
241
 
242
- /*
243
- * Make sure the appropriate MMMW Enhancement option has been checked
244
- */
245
  if ( $use_checklist ) {
246
  if ( 'checked' !== MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) ) {
247
  continue;
@@ -252,9 +250,7 @@ class MLAModal_Ajax {
252
  }
253
  }
254
 
255
- /*
256
- * Remove "Media Categories" meta box, if present.
257
- */
258
  if ( isset( $form_fields[ $key . '_metabox' ] ) ) {
259
  unset( $form_fields[ $key . '_metabox' ] );
260
  }
@@ -342,9 +338,12 @@ class MLAModal_Ajax {
342
  wp_send_json_success( $results );
343
  }
344
 
345
- /*
346
- * Match all supported taxonomies against the requested list
347
- */
 
 
 
348
  foreach ( get_taxonomies( array ( 'show_ui' => true ), 'objects' ) as $key => $value ) {
349
  if ( MLACore::mla_taxonomy_support( $key ) ) {
350
  if ( is_integer( $index = array_search( $key, $requested ) ) ) {
@@ -380,9 +379,7 @@ class MLAModal_Ajax {
380
  sort( $list );
381
  $list = join( ',', $list );
382
 
383
- /*
384
- * Simulate the 'add_meta_boxes' callback
385
- */
386
  $box = array (
387
  'id' => $key . 'div',
388
  'title' => $label,
@@ -453,13 +450,41 @@ class MLAModal_Ajax {
453
  $row .= "\t\t</div>\n"; // ajaxtag
454
  $row .= "\t\t<p class='howto'>Separate tags with commas</p>\n";
455
  $row .= "\t\t</div>\n"; // jaxtag
456
- $row .= "\t\t<div class='tagchecklist'>\n";
 
 
 
 
 
 
457
 
458
  foreach ( $list as $index => $term ) {
459
- $row .= "\t\t<span><a class='ntdelbutton' id='post_tag-check-num-{$index}'>X</a>&nbsp;{$term}</span>\n";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
460
  }
461
 
462
- $row .= "\t\t</div>\n"; // tagchecklist
463
  $row .= "\t\t</div>\n"; // tagsdiv
464
  $row .= "\t\t<p><a class='tagcloud-link' id='mla-link-{$key}' href='#titlediv'>" . __( 'Choose from the most used tags', 'media-library-assistant' ) . "</a></p>\n";
465
  $row .= "\t\t</div>\n"; // mla-taxonomy-field
239
  $use_checklist = MLACore::mla_taxonomy_support( $key, 'flat-checklist' );
240
  }
241
 
242
+ // Make sure the appropriate MMMW Enhancement option has been checked
 
 
243
  if ( $use_checklist ) {
244
  if ( 'checked' !== MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) ) {
245
  continue;
250
  }
251
  }
252
 
253
+ // Remove "Media Categories" meta box, if present.
 
 
254
  if ( isset( $form_fields[ $key . '_metabox' ] ) ) {
255
  unset( $form_fields[ $key . '_metabox' ] );
256
  }
338
  wp_send_json_success( $results );
339
  }
340
 
341
+ // Flat taxonomy handling is WP version-specific
342
+ $wp_version = get_bloginfo('version');
343
+ $generate_tag_buttons = version_compare( $wp_version, '4.6.99', '>' );
344
+ $generate_tag_ul = version_compare( $wp_version, '4.8.99', '>' );
345
+
346
+ // Match all supported taxonomies against the requested list
347
  foreach ( get_taxonomies( array ( 'show_ui' => true ), 'objects' ) as $key => $value ) {
348
  if ( MLACore::mla_taxonomy_support( $key ) ) {
349
  if ( is_integer( $index = array_search( $key, $requested ) ) ) {
379
  sort( $list );
380
  $list = join( ',', $list );
381
 
382
+ // Simulate the 'add_meta_boxes' callback
 
 
383
  $box = array (
384
  'id' => $key . 'div',
385
  'title' => $label,
450
  $row .= "\t\t</div>\n"; // ajaxtag
451
  $row .= "\t\t<p class='howto'>Separate tags with commas</p>\n";
452
  $row .= "\t\t</div>\n"; // jaxtag
453
+
454
+ // initiate tagchecklist
455
+ if ( $generate_tag_ul ) {
456
+ $row .= "\t\t<ul class='tagchecklist' role='list'>\n";
457
+ } else {
458
+ $row .= "\t\t<div class='tagchecklist'>\n";
459
+ }
460
 
461
  foreach ( $list as $index => $term ) {
462
+ if ( $generate_tag_buttons ) {
463
+ if ( $generate_tag_ul ) {
464
+ $row .= "\t\t<li>";
465
+ } else {
466
+ $row .= "\t\t<span>";
467
+ }
468
+
469
+ $row .= "<button class='ntdelbutton' id='post_tag-check-num-{$index}' type='button'><span class='remove-tag-icon' aria-hidden='true'></span><span class='screen-reader-text'>" . __( 'Remove term', 'media-library-assistant' ) . ": {$term}</span></button>&nbsp;{$term}";
470
+
471
+ if ( $generate_tag_ul ) {
472
+ $row .= "</li>\n";
473
+ } else {
474
+ $row .= "</span>\n";
475
+ }
476
+ } else {
477
+ $row .= "\t\t<span><a class='ntdelbutton' id='post_tag-check-num-{$index}'>X</a>&nbsp;{$term}</span>\n";
478
+ }
479
+ }
480
+
481
+ // terminate tagchecklist
482
+ if ( $generate_tag_ul ) {
483
+ $row .= "\t\t</ul>\n";
484
+ } else {
485
+ $row .= "\t\t</div>\n";
486
  }
487
 
 
488
  $row .= "\t\t</div>\n"; // tagsdiv
489
  $row .= "\t\t<p><a class='tagcloud-link' id='mla-link-{$key}' href='#titlediv'>" . __( 'Choose from the most used tags', 'media-library-assistant' ) . "</a></p>\n";
490
  $row .= "\t\t</div>\n"; // mla-taxonomy-field
includes/class-mla-media-modal.php CHANGED
@@ -22,6 +22,15 @@ class MLAModal {
22
  */
23
  const JAVASCRIPT_MEDIA_MODAL_STYLES = 'mla-media-modal-style';
24
 
 
 
 
 
 
 
 
 
 
25
  /**
26
  * Slug for localizing and enqueueing JavaScript - Add Media and related dialogs
27
  *
@@ -102,7 +111,7 @@ class MLAModal {
102
  if ( is_array( $library_months_with_files ) ) {
103
  return $library_months_with_files;
104
  }
105
-
106
  $library_months_with_files = $wpdb->get_results( $wpdb->prepare( "
107
  SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
108
  FROM $wpdb->posts
@@ -217,7 +226,6 @@ class MLAModal {
217
  'searchConnector' => NULL,
218
  'searchFields' => NULL,
219
  'searchValue' => NULL,
220
- //'termsSearch' => NULL,
221
  'searchClicks' => 0,
222
  ) ),
223
  'allMimeTypes' => array(),
@@ -229,6 +237,9 @@ class MLAModal {
229
  'termsCustom' => false,
230
  'termsText' => array(),
231
  'termsValue' => array(),
 
 
 
232
  );
233
 
234
  /**
@@ -243,9 +254,7 @@ class MLAModal {
243
  * @return array updated $settings array
244
  */
245
  public static function mla_media_view_settings_filter( $settings, $post ) {
246
- /*
247
- * If we know what screen we're on we can test our enabling options
248
- */
249
  self::$mla_media_modal_settings['screen'] = 'modal';
250
  if ( function_exists( 'get_current_screen' ) ) {
251
  $screen = get_current_screen();
@@ -262,9 +271,7 @@ class MLAModal {
262
  self::$mla_media_modal_settings['allMimeTypes']['detached'] = $default_types['detached']['plural'];
263
  self::$mla_media_modal_settings['allMimeTypes']['attached'] = $default_types['attached']['plural'];
264
 
265
- /*
266
- * Trash items are allowed in the Media/Library Grid view
267
- */
268
  if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
269
  self::$mla_media_modal_settings['allMimeTypes']['trash'] = $default_types['trash']['plural'];
270
  }
@@ -283,6 +290,15 @@ class MLAModal {
283
  self::$mla_media_modal_settings['termsIndent'] = '-';
284
  }
285
 
 
 
 
 
 
 
 
 
 
286
  self::$mla_media_modal_settings['enableMediaGrid'] = ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_GRID_TOOLBAR ) );
287
  self::$mla_media_modal_settings['enableMediaModal'] = ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TOOLBAR ) );
288
  self::$mla_media_modal_settings['enableDetailsCategory'] = ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) );
@@ -299,9 +315,7 @@ class MLAModal {
299
  $supported_taxonomies = MLACore::mla_supported_taxonomies('term-search');
300
  self::$mla_media_modal_settings['enableTermsSearch'] = ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) ) && ( ! empty( $supported_taxonomies ) );
301
 
302
- /*
303
- * Compile a list of the enhanced taxonomies
304
- */
305
  self::$mla_media_modal_settings['enhancedTaxonomies'] = array();
306
  foreach ( get_taxonomies( array ( 'show_ui' => true ), 'objects' ) as $key => $value ) {
307
  if ( MLACore::mla_taxonomy_support( $key ) ) {
@@ -324,9 +338,7 @@ class MLAModal {
324
  } // taxonomy_support
325
  } // each taxonomy
326
 
327
- /*
328
- * Set and filter the initial values for toolbar controls
329
- */
330
  $search_defaults = MLACore::mla_get_option( MLACoreOptions::MLA_SEARCH_MEDIA_FILTER_DEFAULTS );
331
  $initial_values = array(
332
  'filterMime' => 'all',
@@ -381,6 +393,7 @@ class MLAModal {
381
  */
382
  public static function mla_media_view_strings_filter( $strings, $post ) {
383
  $mla_strings = array(
 
384
  'searchBoxPlaceholder' => __( 'Search Box', 'media-library-assistant' ),
385
  'loadingText' => __( 'Loading...', 'media-library-assistant' ),
386
  'searchBoxControlsStyle' => ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS ) ) ? 'display: inline;' : 'display: none;',
@@ -401,9 +414,7 @@ class MLAModal {
401
  public static function mla_wp_enqueue_media_action( ) {
402
  global $wp_locale;
403
 
404
- /*
405
- * If we know what screen we're on we can test our enabling options
406
- */
407
  if ( function_exists( 'get_current_screen' ) ) {
408
  $screen = get_current_screen();
409
 
@@ -428,8 +439,16 @@ class MLAModal {
428
 
429
  wp_enqueue_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES );
430
 
431
- 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 );
 
432
 
 
 
 
 
 
 
 
433
  if ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) ) {
434
  MLAModal::mla_add_terms_search_scripts();
435
  }
@@ -444,9 +463,7 @@ class MLAModal {
444
  * @return void echoes HTML script tags for the templates
445
  */
446
  public static function mla_print_media_templates_action( ) {
447
- /*
448
- * If we know what screen we're on we can test our enabling options
449
- */
450
  if ( function_exists( 'get_current_screen' ) ) {
451
  $screen = get_current_screen();
452
 
22
  */
23
  const JAVASCRIPT_MEDIA_MODAL_STYLES = 'mla-media-modal-style';
24
 
25
+ /**
26
+ * Slug for enqueueing JavaScript - Define ajaxurl if required
27
+ *
28
+ * @since 2.79
29
+ *
30
+ * @var string
31
+ */
32
+ const JAVASCRIPT_DEFINE_AJAXURL_SLUG = 'mla-define-ajaxurl-scripts';
33
+
34
  /**
35
  * Slug for localizing and enqueueing JavaScript - Add Media and related dialogs
36
  *
111
  if ( is_array( $library_months_with_files ) ) {
112
  return $library_months_with_files;
113
  }
114
+
115
  $library_months_with_files = $wpdb->get_results( $wpdb->prepare( "
116
  SELECT DISTINCT YEAR( post_date ) AS year, MONTH( post_date ) AS month
117
  FROM $wpdb->posts
226
  'searchConnector' => NULL,
227
  'searchFields' => NULL,
228
  'searchValue' => NULL,
 
229
  'searchClicks' => 0,
230
  ) ),
231
  'allMimeTypes' => array(),
237
  'termsCustom' => false,
238
  'termsText' => array(),
239
  'termsValue' => array(),
240
+ 'generateTagButtons' => false,
241
+ 'generateTagUl' => false,
242
+ 'removeTerm' => '',
243
  );
244
 
245
  /**
254
  * @return array updated $settings array
255
  */
256
  public static function mla_media_view_settings_filter( $settings, $post ) {
257
+ // If we know what screen we're on we can test our enabling options
 
 
258
  self::$mla_media_modal_settings['screen'] = 'modal';
259
  if ( function_exists( 'get_current_screen' ) ) {
260
  $screen = get_current_screen();
271
  self::$mla_media_modal_settings['allMimeTypes']['detached'] = $default_types['detached']['plural'];
272
  self::$mla_media_modal_settings['allMimeTypes']['attached'] = $default_types['attached']['plural'];
273
 
274
+ // Trash items are allowed in the Media/Library Grid view
 
 
275
  if ( EMPTY_TRASH_DAYS && MEDIA_TRASH ) {
276
  self::$mla_media_modal_settings['allMimeTypes']['trash'] = $default_types['trash']['plural'];
277
  }
290
  self::$mla_media_modal_settings['termsIndent'] = '-';
291
  }
292
 
293
+ if ( version_compare( $current_version, '4.6.99', '>' ) ) {
294
+ self::$mla_media_modal_settings['generateTagButtons'] = true;
295
+ self::$mla_media_modal_settings['removeTerm'] = __( 'Remove term', 'media-library-assistant' );
296
+ }
297
+
298
+ if ( version_compare( $current_version, '4.8.99', '>' ) ) {
299
+ self::$mla_media_modal_settings['generateTagUl'] = true;
300
+ }
301
+
302
  self::$mla_media_modal_settings['enableMediaGrid'] = ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_GRID_TOOLBAR ) );
303
  self::$mla_media_modal_settings['enableMediaModal'] = ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TOOLBAR ) );
304
  self::$mla_media_modal_settings['enableDetailsCategory'] = ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX ) );
315
  $supported_taxonomies = MLACore::mla_supported_taxonomies('term-search');
316
  self::$mla_media_modal_settings['enableTermsSearch'] = ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) ) && ( ! empty( $supported_taxonomies ) );
317
 
318
+ // Compile a list of the enhanced taxonomies
 
 
319
  self::$mla_media_modal_settings['enhancedTaxonomies'] = array();
320
  foreach ( get_taxonomies( array ( 'show_ui' => true ), 'objects' ) as $key => $value ) {
321
  if ( MLACore::mla_taxonomy_support( $key ) ) {
338
  } // taxonomy_support
339
  } // each taxonomy
340
 
341
+ // Set and filter the initial values for toolbar controls
 
 
342
  $search_defaults = MLACore::mla_get_option( MLACoreOptions::MLA_SEARCH_MEDIA_FILTER_DEFAULTS );
343
  $initial_values = array(
344
  'filterMime' => 'all',
393
  */
394
  public static function mla_media_view_strings_filter( $strings, $post ) {
395
  $mla_strings = array(
396
+ 'ajaxurl' => admin_url( 'admin-ajax.php', 'relative' ),
397
  'searchBoxPlaceholder' => __( 'Search Box', 'media-library-assistant' ),
398
  'loadingText' => __( 'Loading...', 'media-library-assistant' ),
399
  'searchBoxControlsStyle' => ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS ) ) ? 'display: inline;' : 'display: none;',
414
  public static function mla_wp_enqueue_media_action( ) {
415
  global $wp_locale;
416
 
417
+ // If we know what screen we're on we can test our enabling options
 
 
418
  if ( function_exists( 'get_current_screen' ) ) {
419
  $screen = get_current_screen();
420
 
439
 
440
  wp_enqueue_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES );
441
 
442
+ // Make sure ajaxurl is defined before loading wp-lists and suggest
443
+ wp_enqueue_script( self::JAVASCRIPT_DEFINE_AJAXURL_SLUG, MLA_PLUGIN_URL . "js/mla-define-ajaxurl-scripts{$suffix}.js", array(), MLACore::CURRENT_MLA_VERSION, false );
444
 
445
+ // Gutenberg Block Editor won't tolerate loading 'wp-lists' in the header section; load in footer section
446
+ if ( ! function_exists( 'use_block_editor_for_post_type' ) || isset( $_GET['classic-editor'] ) ) {
447
+ 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 );
448
+ } else {
449
+ 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 );
450
+ }
451
+
452
  if ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) ) {
453
  MLAModal::mla_add_terms_search_scripts();
454
  }
463
  * @return void echoes HTML script tags for the templates
464
  */
465
  public static function mla_print_media_templates_action( ) {
466
+ // If we know what screen we're on we can test our enabling options
 
 
467
  if ( function_exists( 'get_current_screen' ) ) {
468
  $screen = get_current_screen();
469
 
includes/class-mla-objects.php CHANGED
@@ -146,7 +146,7 @@ class MLAObjects {
146
  }
147
 
148
  if ( isset ( $columns[ 'posts' ] ) ) {
149
- $wp_taxonomy = in_array( $taxonomy, array( 'category', 'post_tag' ) );
150
  if ( ! ( $wp_taxonomy && ( 'checked' === MLACore::mla_get_option( MLACoreOptions::MLA_SHOW_COUNT_COLUMN ) ) ) ) {
151
  unset( $columns[ 'posts' ] );
152
  }
146
  }
147
 
148
  if ( isset ( $columns[ 'posts' ] ) ) {
149
+ $wp_taxonomy = true; // in_array( $taxonomy, array( 'category', 'post_tag' ) );
150
  if ( ! ( $wp_taxonomy && ( 'checked' === MLACore::mla_get_option( MLACoreOptions::MLA_SHOW_COUNT_COLUMN ) ) ) ) {
151
  unset( $columns[ 'posts' ] );
152
  }
includes/class-mla-shortcode-support.php CHANGED
@@ -287,7 +287,8 @@ class MLAShortcode_Support {
287
 
288
  // Look for parameters in an enclosing shortcode
289
  if ( ! ( empty( $content ) || isset( $attr['mla_alt_shortcode'] ) ) ) {
290
- $content = str_replace( array( '&#038;', '&#8216;', '&#8217;', '&#8221;', '&#8243;', '<br />', '<p>', '</p>', "\r", "\n" ), array( '&', '\'', '\'', '"', '"', ' ', ' ', ' ', ' ', ' ' ), $content );
 
291
  $new_attr = shortcode_parse_atts( $content );
292
  if ( is_array( $new_attr ) ) {
293
  $attr = array_merge( $attr, $new_attr );
@@ -462,6 +463,7 @@ class MLAShortcode_Support {
462
  'mla_alt_shortcode' => NULL,
463
  'mla_alt_ids_name' => 'ids',
464
  'mla_alt_ids_value' => NULL,
 
465
 
466
  // paginatation arguments defined in $mla_get_shortcode_attachments_parameters
467
  // 'mla_page_parameter' => 'mla_paginate_current', handled in code with $mla_page_parameter
@@ -558,6 +560,7 @@ class MLAShortcode_Support {
558
  $arguments['mla_alt_shortcode'] = NULL;
559
  $arguments['mla_alt_ids_name'] = 'ids';
560
  $arguments['mla_alt_ids_value'] = NULL;
 
561
  }
562
 
563
  self::$mla_debug = ( ! empty( $arguments['mla_debug'] ) ) ? trim( strtolower( $arguments['mla_debug'] ) ) : false;
@@ -589,6 +592,56 @@ class MLAShortcode_Support {
589
  if ( $is_pagination && ( NULL !== $arguments['mla_paginate_rows'] ) ) {
590
  $attachments['found_rows'] = absint( $arguments['mla_paginate_rows'] );
591
  } else {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
592
  $attachments = self::mla_get_shortcode_attachments( $post->ID, $attr, true );
593
  }
594
 
@@ -652,7 +705,9 @@ class MLAShortcode_Support {
652
  if ( is_string( $arguments['mla_alt_shortcode'] ) ) {
653
  // Replace data-selection parameters with the "ids" list
654
  $blacklist = array_merge( self::$mla_get_shortcode_attachments_parameters, self::$mla_get_shortcode_dynamic_attachments_parameters );
655
- if ( 'mla_tag_cloud' !== $arguments['mla_alt_shortcode'] ) {
 
 
656
  $blacklist = array_merge( $mla_arguments, $blacklist );
657
  }
658
 
@@ -673,12 +728,16 @@ class MLAShortcode_Support {
673
  $mla_alt_shortcode_args .= empty( $mla_alt_shortcode_args ) ? $key . '=' . $value : ' ' . $key . '=' . $value;
674
  } // foreach $attr
675
 
 
 
 
676
  /*
677
  * If an alternate value has been specified we must delay alt shortcode execution
678
  * and accumulate $mla_alt_shortcode_ids in the template Item section.
679
  */
680
  $mla_alt_ids_value = is_null( $arguments['mla_alt_ids_value'] ) ? NULL : str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments['mla_alt_ids_value'] ) );
681
  $mla_alt_shortcode_ids = array();
 
682
 
683
  if ( is_null( $mla_alt_ids_value ) ) {
684
 
@@ -690,7 +749,15 @@ class MLAShortcode_Support {
690
  } // foreach $attachments
691
  }
692
 
693
- $mla_alt_shortcode_ids = $arguments['mla_alt_ids_name'] . '="' . implode( ',', $mla_alt_shortcode_ids ) . '"';
 
 
 
 
 
 
 
 
694
  }
695
 
696
  if ( self::$mla_debug ) {
@@ -1244,9 +1311,7 @@ class MLAShortcode_Support {
1244
  if ( false === strpos( $item_values['pagelink'], ' title=' ) ) {
1245
  $link_attributes .= 'title="' . $rollover_text . '" ';
1246
  }else {
1247
- /*
1248
- * Replace single- and double-quote delimited values
1249
- */
1250
  $item_values['pagelink'] = preg_replace('# title=\'([^\']*)\'#', " title='{$rollover_text}'", $item_values['pagelink'] );
1251
  $item_values['pagelink'] = preg_replace('# title=\"([^\"]*)\"#', " title=\"{$rollover_text}\"", $item_values['pagelink'] );
1252
  $item_values['filelink'] = preg_replace('# title=\'([^\']*)\'#', " title='{$rollover_text}'", $item_values['filelink'] );
@@ -1435,13 +1500,6 @@ class MLAShortcode_Support {
1435
  $item_values['filelink_url'] = '';
1436
  }
1437
 
1438
- $match_count = preg_match_all( '#href=\'([^\']+)\'#', $item_values['link'], $matches, PREG_OFFSET_CAPTURE );
1439
- if ( ! ( ( $match_count == false ) || ( $match_count == 0 ) ) ) {
1440
- $item_values['link_url'] = $matches[1][0][0];
1441
- } else {
1442
- $item_values['link_url'] = '';
1443
- }
1444
-
1445
  /*
1446
  * Override the link value; leave filelink and pagelink unchanged
1447
  * Note that $link_href is used in the Google Viewer code below
@@ -1456,6 +1514,13 @@ class MLAShortcode_Support {
1456
  $link_href = '';
1457
  }
1458
 
 
 
 
 
 
 
 
1459
  $match_count = preg_match_all( '#(\<a [^\>]+\>)(.*)\</a\>#', $item_values['link'], $matches, PREG_OFFSET_CAPTURE );
1460
  if ( ! ( ( $match_count == false ) || ( $match_count == 0 ) ) ) {
1461
  $link_tag = $matches[1][0][0];
@@ -1493,9 +1558,7 @@ class MLAShortcode_Support {
1493
  } // enable_featured_image
1494
  }
1495
 
1496
- /*
1497
- * Now that we have thumbnail_content we can check for 'span' and 'none'
1498
- */
1499
  if ( 'none' == $arguments['link'] ) {
1500
  $item_values['link'] = $item_values['thumbnail_content'];
1501
  } elseif ( 'span' == $arguments['link'] ) {
@@ -1508,16 +1571,12 @@ class MLAShortcode_Support {
1508
  * $image_attributes, $image_class, $image_alt
1509
  */
1510
  if ( $arguments['mla_viewer'] && empty( $item_values['thumbnail_url'] ) ) {
1511
- /*
1512
- * Check for a match on file extension
1513
- */
1514
  $last_dot = strrpos( $item_values['file'], '.' );
1515
  if ( !( false === $last_dot) ) {
1516
  $extension = substr( $item_values['file'], $last_dot + 1 );
1517
  if ( in_array( $extension, $arguments['mla_viewer_extensions'] ) ) {
1518
- /*
1519
- * Default to an icon if thumbnail generation is not available
1520
- */
1521
  $icon_url = wp_mime_type_icon( $attachment->ID );
1522
  $upload_dir = wp_upload_dir();
1523
  $args = array(
@@ -1557,9 +1616,7 @@ class MLAShortcode_Support {
1557
  }
1558
 
1559
  if ( self::mla_ghostscript_present( $ghostscript_path ) ) {
1560
- /*
1561
- * Optional upper limit (in MB) on file size
1562
- */
1563
  if ( $limit = ( 1024 * 1024 ) * $arguments['mla_viewer_limit'] ) {
1564
  $file_size = 0 + @filesize( $item_values['base_dir'] . '/' . $item_values['base_file'] );
1565
  if ( ( 0 < $file_size ) && ( $file_size > $limit ) ) {
@@ -1569,9 +1626,7 @@ class MLAShortcode_Support {
1569
  $file_size = 1;
1570
  }
1571
 
1572
- /*
1573
- * Generate "real" thumbnail
1574
- */
1575
  if ( $file_size ) {
1576
  $frame = ( 0 < $arguments['mla_viewer_page'] ) ? $arguments['mla_viewer_page'] - 1 : 0;
1577
  if ( $frame ) {
@@ -1590,16 +1645,12 @@ class MLAShortcode_Support {
1590
  $args['mla_stream_type'] = $arguments['mla_viewer_type'];
1591
  }
1592
 
1593
- /*
1594
- * For efficiency, image streaming is done outside WordPress
1595
- */
1596
  $icon_url = add_query_arg( $args, MLACore::mla_nonce_url( MLA_PLUGIN_URL . 'includes/mla-stream-image.php', MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME ) );
1597
  }
1598
  }
1599
 
1600
- /*
1601
- * <img> tag (thumbnail_text)
1602
- */
1603
  if ( ! empty( $image_class ) ) {
1604
  $image_class = ' class="' . $image_class . '"';
1605
  }
@@ -1612,10 +1663,7 @@ class MLAShortcode_Support {
1612
 
1613
  $item_values['thumbnail_content'] = sprintf( '<img %1$ssrc="%2$s"%3$s%4$s>', $image_attributes, $icon_url, $image_class, $image_alt );
1614
 
1615
- /*
1616
- * Filelink, pagelink and link.
1617
- * The "title=" attribute is in $link_attributes for WP 3.7+.
1618
- */
1619
  if ( false === strpos( $link_attributes, 'title=' ) ) {
1620
  $item_values['pagelink'] = sprintf( '<a %1$shref="%2$s" title="%3$s">%4$s</a>', $link_attributes, $item_values['pagelink_url'], $rollover_text, $item_values['thumbnail_content'] );
1621
  $item_values['filelink'] = sprintf( '<a %1$shref="%2$s" title="%3$s">%4$s</a>', $link_attributes, $item_values['filelink_url'], $rollover_text, $item_values['thumbnail_content'] );
@@ -1643,9 +1691,7 @@ class MLAShortcode_Support {
1643
  } // mla_viewer
1644
 
1645
  if ( $is_gallery ) {
1646
- /*
1647
- * Start of row markup
1648
- */
1649
  if ( $markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) {
1650
  $markup_values = apply_filters( 'mla_gallery_row_open_values', $markup_values );
1651
  $row_open_template = apply_filters( 'mla_gallery_row_open_template', $row_open_template );
@@ -1653,9 +1699,7 @@ class MLAShortcode_Support {
1653
  $output .= apply_filters( 'mla_gallery_row_open_parse', $parse_value, $row_open_template, $markup_values );
1654
  }
1655
 
1656
- /*
1657
- * item markup
1658
- */
1659
  $column_index++;
1660
  if ( $item_values['columns'] > 0 && $column_index % $item_values['columns'] == 0 ) {
1661
  $item_values['last_in_row'] = 'last_in_row';
@@ -1663,10 +1707,7 @@ class MLAShortcode_Support {
1663
  $item_values['last_in_row'] = '';
1664
  }
1665
 
1666
- /*
1667
- * Conditional caption tag to replicate WP 4.1+,
1668
- * now used in the default markup template.
1669
- */
1670
  if ( $item_values['captiontag'] && trim( $item_values['caption'] ) ) {
1671
  $item_values['captiontag_content'] = '<' . $item_values['captiontag'] . " class='wp-caption-text gallery-caption' id='" . $item_values['selector'] . '-' . $item_values['attachment_ID'] . "'>\n\t\t" . $item_values['caption'] . "\n\t</" . $item_values['captiontag'] . ">\n";
1672
  } else {
@@ -1675,9 +1716,7 @@ class MLAShortcode_Support {
1675
 
1676
  $item_values = apply_filters( 'mla_gallery_item_values', $item_values );
1677
 
1678
- /*
1679
- * Accumulate mla_alt_shortcode_ids when mla_alt_ids_value present
1680
- */
1681
  if ( is_string( $arguments['mla_alt_shortcode'] ) && is_string( $mla_alt_ids_value ) ) {
1682
  $item_values = MLAData::mla_expand_field_level_parameters( $mla_alt_ids_value, $attr, $item_values );
1683
  $mla_alt_shortcode_ids[] = MLAData::mla_parse_template( $mla_alt_ids_value, $item_values );
@@ -1688,9 +1727,7 @@ class MLAShortcode_Support {
1688
  $parse_value = MLAData::mla_parse_template( $item_template, $item_values );
1689
  $output .= apply_filters( 'mla_gallery_item_parse', $parse_value, $item_template, $item_values );
1690
 
1691
- /*
1692
- * End of row markup
1693
- */
1694
  if ( $markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) {
1695
  $markup_values = apply_filters( 'mla_gallery_row_close_values', $markup_values );
1696
  $row_close_template = apply_filters( 'mla_gallery_row_close_template', $row_close_template );
@@ -1703,11 +1740,18 @@ class MLAShortcode_Support {
1703
  }
1704
  } // foreach attachment
1705
 
1706
- /*
1707
- * Execute the alternate gallery shortcode with the new parameters
1708
- */
1709
  if ( is_string( $arguments['mla_alt_shortcode'] ) && is_string( $mla_alt_ids_value ) ) {
1710
- $mla_alt_shortcode_ids = $arguments['mla_alt_ids_name'] . '="' . implode( ',', $mla_alt_shortcode_ids ) . '"';
 
 
 
 
 
 
 
 
 
1711
  $content = apply_filters( 'mla_gallery_final_content', $content );
1712
  if ( ! empty( $content ) ) {
1713
  return $output . do_shortcode( sprintf( '[%1$s %2$s %3$s]%4$s[/%1$s]', $arguments['mla_alt_shortcode'], $mla_alt_shortcode_ids, $mla_alt_shortcode_args, $content ) );
@@ -1717,9 +1761,7 @@ class MLAShortcode_Support {
1717
  }
1718
 
1719
  if ( $is_gallery ) {
1720
- /*
1721
- * Close out partial row
1722
- */
1723
  if ( ! ($markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) ) {
1724
  $markup_values = apply_filters( 'mla_gallery_row_close_values', $markup_values );
1725
  $row_close_template = apply_filters( 'mla_gallery_row_close_template', $row_close_template );
@@ -2051,9 +2093,7 @@ class MLAShortcode_Support {
2051
 
2052
  $is_pagination = in_array( $output_parameters[0], array( 'previous_link', 'current_link', 'next_link', 'previous_page', 'next_page', 'paginate_links' ) );
2053
 
2054
- /*
2055
- * Convert lists to arrays
2056
- */
2057
  if ( is_string( $arguments['taxonomy'] ) ) {
2058
  $arguments['taxonomy'] = explode( ',', $arguments['taxonomy'] );
2059
  }
@@ -2068,9 +2108,7 @@ class MLAShortcode_Support {
2068
 
2069
  $tags = self::mla_get_terms( $arguments );
2070
 
2071
- /*
2072
- * Invalid taxonomy names return WP_Error
2073
- */
2074
  if ( is_wp_error( $tags ) ) {
2075
  $cloud = '<strong>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . $tags->get_error_message() . '</strong>, ' . $tags->get_error_data( $tags->get_error_code() );
2076
 
@@ -2086,9 +2124,7 @@ class MLAShortcode_Support {
2086
  return;
2087
  }
2088
 
2089
- /*
2090
- * Fill in the item_specific link properties, calculate cloud parameters
2091
- */
2092
  if ( isset( $tags['found_rows'] ) ) {
2093
  $found_rows = $tags['found_rows'];
2094
  unset( $tags['found_rows'] );
@@ -2225,9 +2261,7 @@ class MLAShortcode_Support {
2225
  $float = is_rtl() ? 'right' : 'left';
2226
  }
2227
 
2228
- /*
2229
- * Calculate cloud parameters
2230
- */
2231
  $spread = $max_scaled_count - $min_scaled_count;
2232
  if ( $spread <= 0 ) {
2233
  $spread = 1;
@@ -2281,14 +2315,10 @@ class MLAShortcode_Support {
2281
  }
2282
 
2283
  if ( ! empty ( $style_template ) ) {
2284
- /*
2285
- * Look for 'query' and 'request' substitution parameters
2286
- */
2287
  $style_values = MLAData::mla_expand_field_level_parameters( $style_template, $attr, $style_values );
2288
 
2289
- /*
2290
- * Clean up the template to resolve width or margin == 'none'
2291
- */
2292
  if ( 'none' == $margin_string ) {
2293
  $style_values['margin'] = '0';
2294
  $style_template = preg_replace( '/margin:[\s]*\[\+margin\+\][\%]*[\;]*/', '', $style_template );
@@ -2347,9 +2377,7 @@ class MLAShortcode_Support {
2347
  $close_template = '';
2348
  }
2349
 
2350
- /*
2351
- * Look for gallery-level markup substitution parameters
2352
- */
2353
  $new_text = $open_template . $row_open_template . $row_close_template . $close_template;
2354
  $markup_values = MLAData::mla_expand_field_level_parameters( $new_text, $attr, $markup_values );
2355
 
@@ -2365,9 +2393,7 @@ class MLAShortcode_Support {
2365
  $cloud .= $gallery_style . $gallery_open;
2366
  } // is_grid || is_list
2367
  elseif ( $is_pagination ) {
2368
- /*
2369
- * Handle 'previous_page', 'next_page', and 'paginate_links'
2370
- */
2371
  if ( isset( $attr['limit'] ) ) {
2372
  $attr['posts_per_page'] = $attr['limit'];
2373
  }
@@ -2377,9 +2403,7 @@ class MLAShortcode_Support {
2377
  return $pagination_result;
2378
  }
2379
 
2380
- /*
2381
- * For "previous_link", "current_link" and "next_link", discard all of the $tags except the appropriate choice
2382
- */
2383
  $link_type = $output_parameters[0];
2384
 
2385
  if ( ! in_array( $link_type, array ( 'previous_link', 'current_link', 'next_link' ) ) ) {
@@ -2433,9 +2457,7 @@ class MLAShortcode_Support {
2433
  }
2434
  } // is_pagination
2435
 
2436
- /*
2437
- * Accumulate links for flat and array output
2438
- */
2439
  $tag_links = array();
2440
 
2441
  // Find delimiter for currentlink, currentlink_url
@@ -2449,9 +2471,7 @@ class MLAShortcode_Support {
2449
  foreach ( $tags as $key => $tag ) {
2450
  $item_values = $markup_values;
2451
 
2452
- /*
2453
- * fill in item-specific elements
2454
- */
2455
  $item_values['index'] = (string) 1 + $column_index;
2456
  if ( $item_values['columns'] > 0 && ( 1 + $column_index ) % $item_values['columns'] == 0 ) {
2457
  $item_values['last_in_row'] = 'last_in_row';
@@ -2561,9 +2581,7 @@ class MLAShortcode_Support {
2561
  $item_values['link_text'] = $item_values['name'];
2562
  }
2563
 
2564
- /*
2565
- * Currentlink, editlink, termlink and thelink
2566
- */
2567
  $item_values['currentlink'] = sprintf( '<a %1$shref="%2$s%3$scurrent_item=%4$d" title="%5$s" style="%6$s">%7$s</a>', $link_attributes, $item_values['page_url'], $current_item_delimiter, $item_values['term_id'], $item_values['rollover_text'], $item_values['link_style'], $item_values['link_text'] );
2568
  $item_values['editlink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $item_values['editlink_url'], $item_values['rollover_text'], $item_values['link_style'], $item_values['link_text'] );
2569
  $item_values['termlink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $item_values['termlink_url'], $item_values['rollover_text'], $item_values['link_style'], $item_values['link_text'] );
@@ -2584,9 +2602,7 @@ class MLAShortcode_Support {
2584
  }
2585
 
2586
  if ( $is_grid || $is_list ) {
2587
- /*
2588
- * Start of row markup
2589
- */
2590
  if ( $is_grid && ( $markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) ) {
2591
  $markup_values = apply_filters( 'mla_tag_cloud_row_open_values', $markup_values );
2592
  $row_open_template = apply_filters( 'mla_tag_cloud_row_open_template', $row_open_template );
@@ -2594,18 +2610,14 @@ class MLAShortcode_Support {
2594
  $cloud .= apply_filters( 'mla_tag_cloud_row_open_parse', $parse_value, $row_open_template, $markup_values );
2595
  }
2596
 
2597
- /*
2598
- * item markup
2599
- */
2600
  $column_index++;
2601
  $item_values = apply_filters( 'mla_tag_cloud_item_values', $item_values );
2602
  $item_template = apply_filters( 'mla_tag_cloud_item_template', $item_template );
2603
  $parse_value = MLAData::mla_parse_template( $item_template, $item_values );
2604
  $cloud .= apply_filters( 'mla_tag_cloud_item_parse', $parse_value, $item_template, $item_values );
2605
 
2606
- /*
2607
- * End of row markup
2608
- */
2609
  if ( $is_grid && ( $markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) ) {
2610
  $markup_values = apply_filters( 'mla_tag_cloud_row_close_values', $markup_values );
2611
  $row_close_template = apply_filters( 'mla_tag_cloud_row_close_template', $row_close_template );
@@ -2623,9 +2635,7 @@ class MLAShortcode_Support {
2623
  } // foreach tag
2624
 
2625
  if ($is_grid || $is_list ) {
2626
- /*
2627
- * Close out partial row
2628
- */
2629
  if ( $is_grid && ( ! ($markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) ) ) {
2630
  $markup_values = apply_filters( 'mla_tag_cloud_row_close_values', $markup_values );
2631
  $row_close_template = apply_filters( 'mla_tag_cloud_row_close_template', $row_close_template );
@@ -2676,16 +2686,12 @@ class MLAShortcode_Support {
2676
  */
2677
  $attr = self::_validate_attributes( $attr, $content );
2678
 
2679
- /*
2680
- * The 'array' format makes no sense in a shortcode
2681
- */
2682
  if ( isset( $attr['mla_output'] ) && 'array' == $attr['mla_output'] ) {
2683
  $attr['mla_output'] = 'flat';
2684
  }
2685
 
2686
- /*
2687
- * A shortcode must return its content to the caller, so "echo" makes no sense
2688
- */
2689
  $attr['echo'] = false;
2690
 
2691
  return self::mla_tag_cloud( $attr );
@@ -3644,9 +3650,7 @@ class MLAShortcode_Support {
3644
  }
3645
 
3646
  if ( ! empty ( $style_template ) ) {
3647
- /*
3648
- * Look for 'query' and 'request' substitution parameters
3649
- */
3650
  $style_values = MLAData::mla_expand_field_level_parameters( $style_template, $attr, $style_values );
3651
 
3652
  $style_values = apply_filters( 'mla_term_list_style_values', $style_values );
@@ -3991,9 +3995,7 @@ class MLAShortcode_Support {
3991
  return false;
3992
  }
3993
 
3994
- /*
3995
- * Add data selection parameters to gallery-specific and mla_gallery-specific parameters
3996
- */
3997
  $arguments = array_merge( $arguments, shortcode_atts( self::$mla_get_shortcode_attachments_parameters, $attr ) );
3998
  $posts_per_page = absint( $arguments['posts_per_page'] );
3999
  $mla_page_parameter = $arguments['mla_page_parameter'];
@@ -4139,9 +4141,7 @@ class MLAShortcode_Support {
4139
 
4140
  $markup_values = MLAData::mla_expand_field_level_parameters( $new_text, $attr, $markup_values );
4141
 
4142
- /*
4143
- * Build the new link, applying Gallery Display Content parameters
4144
- */
4145
  if ( 'paginate_links' == $output_parameters[0] ) {
4146
  return self::_paginate_links( $output_parameters, $markup_values, $arguments, $found_rows, $output );
4147
  }
@@ -5078,9 +5078,7 @@ class MLAShortcode_Support {
5078
  } // switch $key
5079
  } // foreach $arguments
5080
 
5081
- /*
5082
- * Decide whether to use a "get_children" style query
5083
- */
5084
  self::$query_parameters['disable_tax_join'] = $is_tax_query && ! $use_children;
5085
  if ( $use_children && ! isset( $query_arguments['post_parent'] ) ) {
5086
  if ( ! isset( $query_arguments['id'] ) ) {
@@ -5111,9 +5109,7 @@ class MLAShortcode_Support {
5111
  }
5112
  unset( $query_arguments['posts_per_archive_page'] );
5113
 
5114
- /*
5115
- * MLA pagination will override WordPress pagination
5116
- */
5117
  if ( isset( $query_arguments[ $mla_page_parameter ] ) ) {
5118
  unset( $query_arguments['nopaging'] );
5119
  unset( $query_arguments['offset'] );
@@ -5154,9 +5150,7 @@ class MLAShortcode_Support {
5154
  $query_arguments['ignore_sticky_posts'] = true;
5155
  $query_arguments['no_found_rows'] = is_null( $return_found_rows ) ? true : ! $return_found_rows;
5156
 
5157
- /*
5158
- * We will always handle "orderby" in our filter
5159
- */
5160
  self::$query_parameters['orderby'] = self::_validate_sql_orderby( $query_arguments );
5161
  if ( false === self::$query_parameters['orderby'] ) {
5162
  unset( self::$query_parameters['orderby'] );
@@ -5243,9 +5237,7 @@ class MLAShortcode_Support {
5243
  foreach ( MLAQuery::$search_parameters['mla_search_fields'] as $index => $field ) {
5244
  if ( 'terms' == $field ) {
5245
  if ( isset( MLAQuery::$search_parameters['mla_terms_search']['phrases'] ) ) {
5246
- /*
5247
- * The Terms Search overrides any terms-based keyword search for now; too complicated.
5248
- */
5249
  unset ( MLAQuery::$search_parameters['mla_search_fields'][ $index ] );
5250
  } else {
5251
  MLAQuery::$search_parameters['mla_search_taxonomies'] = MLAQuery::$search_parameters['mla_terms_search']['taxonomies'];
@@ -5616,9 +5608,7 @@ class MLAShortcode_Support {
5616
  $attr = shortcode_parse_atts( $attr );
5617
  }
5618
 
5619
- /*
5620
- * Merge input arguments with defaults
5621
- */
5622
  $attr = apply_filters( 'mla_get_terms_query_attributes', $attr );
5623
  $arguments = shortcode_atts( self::$mla_get_terms_parameters, $attr );
5624
  $arguments = apply_filters( 'mla_get_terms_query_arguments', $arguments );
@@ -5628,30 +5618,57 @@ class MLAShortcode_Support {
5628
 
5629
  /*
5630
  * If we're not counting attachments per term, strip
5631
- * post fields out of list and adjust the orderby value
5632
  */
5633
- if ( $no_count = 'true' == (string) $arguments['no_count'] ) {
5634
- $field_array = explode( ',', $arguments['fields'] );
5635
- foreach ( $field_array as $index => $field ) {
5636
- if ( false !== strpos( $field, 'p.' ) ) {
5637
- unset( $field_array[ $index ] );
 
 
 
 
 
5638
  }
5639
- }
5640
- $arguments['fields'] = implode( ',', $field_array );
5641
- $arguments['minimum'] = 0;
5642
- $arguments['post_mime_type'] = 'all';
5643
 
5644
- if ( 'count' ==strtolower( $arguments['orderby'] ) ) {
5645
- $arguments['orderby'] = 'none';
5646
- }
5647
- }
 
 
5648
 
5649
- $clauses['fields'] = $arguments['fields'];
 
 
 
 
 
 
 
 
 
 
 
 
 
5650
 
 
5651
  $clause = array ( 'INNER JOIN `' . $wpdb->term_taxonomy . '` AS tt ON t.term_id = tt.term_id' );
5652
  $clause_parameters = array();
5653
 
5654
- if ( ! $no_count ) {
 
 
 
 
 
 
 
 
 
 
5655
  $clause[] = 'LEFT JOIN `' . $wpdb->term_relationships . '` AS tr ON tt.term_taxonomy_id = tr.term_taxonomy_id';
5656
  $clause[] = 'LEFT JOIN `' . $wpdb->posts . '` AS p ON tr.object_id = p.ID';
5657
 
@@ -5724,7 +5741,7 @@ class MLAShortcode_Support {
5724
  if ( ! empty( $arguments['ids'] ) && empty( $arguments['include'] ) ) {
5725
  $ids = wp_parse_id_list( $arguments['ids'] );
5726
  $placeholders = implode( "','", $ids );
5727
- $clause[] = "AND p.ID IN ( '{$placeholders}' )";
5728
 
5729
  $includes = array();
5730
  foreach ( $ids as $id ) {
@@ -5860,7 +5877,7 @@ class MLAShortcode_Support {
5860
  $final_clauses[] = $clauses['limits'];
5861
  }
5862
 
5863
- // If we're limiting the final results, we need to get an accurate total count first
5864
  if ( ! $no_count && ( 0 < $offset || 0 < $limit ) ) {
5865
  $count_query = 'SELECT COUNT(*) as count FROM (' . join(' ', $query) . ' ) as subQuery';
5866
  $count = $wpdb->get_results( $count_query );
@@ -5917,9 +5934,7 @@ class MLAShortcode_Support {
5917
  return array();
5918
  }
5919
 
5920
- /*
5921
- * Set found_rows aside to be restored later
5922
- */
5923
  if ( isset( $terms['found_rows'] ) ) {
5924
  $found_rows = $terms['found_rows'];
5925
  unset( $terms['found_rows'] );
@@ -5966,9 +5981,7 @@ class MLAShortcode_Support {
5966
  }
5967
  }
5968
 
5969
- /*
5970
- * Collapse multi-level children
5971
- */
5972
  foreach ( $parents as $taxonomy => $tax_parents ) {
5973
  if ( ! isset( $term_tree[ $taxonomy ] ) ) {
5974
  $term_tree[ $taxonomy ] = array();
@@ -6008,9 +6021,7 @@ class MLAShortcode_Support {
6008
  } // has parents
6009
  } // foreach taxonomy
6010
 
6011
- /*
6012
- * Calculate and potentially trim parent/child tree
6013
- */
6014
  $all_terms_count = 0;
6015
  foreach ( array_keys( $term_tree ) as $taxonomy ) {
6016
  if ( $child_of ) {
287
 
288
  // Look for parameters in an enclosing shortcode
289
  if ( ! ( empty( $content ) || isset( $attr['mla_alt_shortcode'] ) ) ) {
290
+ $content = str_replace( array( '&#038;', '&#8216;', '&#8217;', '&#8221;', '&#8243;', '&amp;', '<br />', '<br>', '<p>', '</p>', "\r", "\n" ),
291
+ array( '&', '\'', '\'', '"', '"', '&', ' ', ' ', ' ', ' ', ' ', ' ' ), $content );
292
  $new_attr = shortcode_parse_atts( $content );
293
  if ( is_array( $new_attr ) ) {
294
  $attr = array_merge( $attr, $new_attr );
463
  'mla_alt_shortcode' => NULL,
464
  'mla_alt_ids_name' => 'ids',
465
  'mla_alt_ids_value' => NULL,
466
+ 'mla_alt_ids_template' => NULL,
467
 
468
  // paginatation arguments defined in $mla_get_shortcode_attachments_parameters
469
  // 'mla_page_parameter' => 'mla_paginate_current', handled in code with $mla_page_parameter
560
  $arguments['mla_alt_shortcode'] = NULL;
561
  $arguments['mla_alt_ids_name'] = 'ids';
562
  $arguments['mla_alt_ids_value'] = NULL;
563
+ $arguments['mla_alt_ids_template'] = NULL;
564
  }
565
 
566
  self::$mla_debug = ( ! empty( $arguments['mla_debug'] ) ) ? trim( strtolower( $arguments['mla_debug'] ) ) : false;
592
  if ( $is_pagination && ( NULL !== $arguments['mla_paginate_rows'] ) ) {
593
  $attachments['found_rows'] = absint( $arguments['mla_paginate_rows'] );
594
  } else {
595
+ // Look for negative phrases in keyword search
596
+ if ( !empty( $attr['s'] ) ) {
597
+ $term_delimiter = /* !empty( $attr['mla_term_delimiter'] ) ? $attr['mla_term_delimiter'] : */ ',';
598
+ $negative_delimiter = !empty( $attr['mla_negative_delimiter'] ) ? $attr['mla_negative_delimiter'] : '/';
599
+ $search_phrases = MLAQuery::mla_divide_search_string( $attr['s'], $term_delimiter, $negative_delimiter );
600
+
601
+ if ( !empty( $search_phrases['negative'] ) ) {
602
+ $negative_arguments = $attr;
603
+ unset( $negative_arguments[ $mla_page_parameter ] );
604
+ unset( $negative_arguments['nopaging'] );
605
+ unset( $negative_arguments['offset'] );
606
+ unset( $negative_arguments['paged'] );
607
+ $negative_arguments['orderby'] = 'none';
608
+ $save_excludes = explode( ',', !empty( $negative_arguments['exclude'] ) ? $negative_arguments['exclude'] : '' );
609
+ $negative_arguments['exclude'] = '';
610
+
611
+ $negative_arguments['s'] = $search_phrases['negative'];
612
+ $negative_arguments['fields'] = 'ids';
613
+ $excluded_items = self::mla_get_shortcode_attachments( $post->ID, $negative_arguments, false );
614
+
615
+ $attr['s'] = $search_phrases['positive'];
616
+ $attr['exclude'] = implode( ',', array_merge( $save_excludes, $excluded_items ) );
617
+ }
618
+ }
619
+
620
+ // Look for negative phrases in taxonomy term keyword search
621
+ if ( !empty( $attr['mla_terms_phrases'] ) ) {
622
+ $term_delimiter = !empty( $attr['mla_term_delimiter'] ) ? $attr['mla_term_delimiter'] : ',';
623
+ $negative_delimiter = !empty( $attr['mla_negative_delimiter'] ) ? $attr['mla_negative_delimiter'] : '/';
624
+ $search_phrases = MLAQuery::mla_divide_search_string( $attr['mla_terms_phrases'], $term_delimiter, $negative_delimiter );
625
+
626
+ if ( !empty( $search_phrases['negative'] ) ) {
627
+ $negative_arguments = $attr;
628
+ unset( $negative_arguments[ $mla_page_parameter ] );
629
+ unset( $negative_arguments['nopaging'] );
630
+ unset( $negative_arguments['offset'] );
631
+ unset( $negative_arguments['paged'] );
632
+ $negative_arguments['orderby'] = 'none';
633
+ $save_excludes = explode( ',', !empty( $negative_arguments['exclude'] ) ? $negative_arguments['exclude'] : '' );
634
+ $negative_arguments['exclude'] = '';
635
+
636
+ $negative_arguments['mla_terms_phrases'] = $search_phrases['negative'];
637
+ $negative_arguments['fields'] = 'ids';
638
+ $excluded_items = self::mla_get_shortcode_attachments( $post->ID, $negative_arguments, false );
639
+
640
+ $attr['mla_terms_phrases'] = $search_phrases['positive'];
641
+ $attr['exclude'] = implode( ',', array_merge( $save_excludes, $excluded_items ) );
642
+ }
643
+ }
644
+
645
  $attachments = self::mla_get_shortcode_attachments( $post->ID, $attr, true );
646
  }
647
 
705
  if ( is_string( $arguments['mla_alt_shortcode'] ) ) {
706
  // Replace data-selection parameters with the "ids" list
707
  $blacklist = array_merge( self::$mla_get_shortcode_attachments_parameters, self::$mla_get_shortcode_dynamic_attachments_parameters );
708
+
709
+ // Other MLA shortcodes use some of the same parameters, e.g., mla_link_href, so let them thru
710
+ if ( !in_array( $arguments['mla_alt_shortcode'], array( 'mla_tag_cloud', 'mla_term_list' ) ) ) {
711
  $blacklist = array_merge( $mla_arguments, $blacklist );
712
  }
713
 
728
  $mla_alt_shortcode_args .= empty( $mla_alt_shortcode_args ) ? $key . '=' . $value : ' ' . $key . '=' . $value;
729
  } // foreach $attr
730
 
731
+ // Restore original delimiters
732
+ $mla_alt_shortcode_args = str_replace( '[+', '{+', str_replace( '+]', '+}', $mla_alt_shortcode_args ) );
733
+
734
  /*
735
  * If an alternate value has been specified we must delay alt shortcode execution
736
  * and accumulate $mla_alt_shortcode_ids in the template Item section.
737
  */
738
  $mla_alt_ids_value = is_null( $arguments['mla_alt_ids_value'] ) ? NULL : str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments['mla_alt_ids_value'] ) );
739
  $mla_alt_shortcode_ids = array();
740
+ $mla_alt_ids_template = is_null( $arguments['mla_alt_ids_template'] ) ? NULL : str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments['mla_alt_ids_template'] ) );
741
 
742
  if ( is_null( $mla_alt_ids_value ) ) {
743
 
749
  } // foreach $attachments
750
  }
751
 
752
+ // Apply the template when mla_alt_ids_template present
753
+ if ( is_string( $mla_alt_ids_template ) ) {
754
+ $page_values['alt_ids'] = implode( ',', $mla_alt_shortcode_ids );
755
+ $replacement_values = MLAData::mla_expand_field_level_parameters( $mla_alt_ids_template, $attr, $page_values );
756
+ $mla_alt_shortcode_ids = $arguments['mla_alt_ids_name'] . '="' . MLAData::mla_parse_template( $mla_alt_ids_template, $replacement_values ) . '"';
757
+ unset( $page_values['alt_ids'] );
758
+ } else {
759
+ $mla_alt_shortcode_ids = $arguments['mla_alt_ids_name'] . '="' . implode( ',', $mla_alt_shortcode_ids ) . '"';
760
+ }
761
  }
762
 
763
  if ( self::$mla_debug ) {
1311
  if ( false === strpos( $item_values['pagelink'], ' title=' ) ) {
1312
  $link_attributes .= 'title="' . $rollover_text . '" ';
1313
  }else {
1314
+ // Replace single- and double-quote delimited values
 
 
1315
  $item_values['pagelink'] = preg_replace('# title=\'([^\']*)\'#', " title='{$rollover_text}'", $item_values['pagelink'] );
1316
  $item_values['pagelink'] = preg_replace('# title=\"([^\"]*)\"#', " title=\"{$rollover_text}\"", $item_values['pagelink'] );
1317
  $item_values['filelink'] = preg_replace('# title=\'([^\']*)\'#', " title='{$rollover_text}'", $item_values['filelink'] );
1500
  $item_values['filelink_url'] = '';
1501
  }
1502
 
 
 
 
 
 
 
 
1503
  /*
1504
  * Override the link value; leave filelink and pagelink unchanged
1505
  * Note that $link_href is used in the Google Viewer code below
1514
  $link_href = '';
1515
  }
1516
 
1517
+ $match_count = preg_match_all( '#href=\'([^\']+)\'#', $item_values['link'], $matches, PREG_OFFSET_CAPTURE );
1518
+ if ( ! ( ( $match_count == false ) || ( $match_count == 0 ) ) ) {
1519
+ $item_values['link_url'] = $matches[1][0][0];
1520
+ } else {
1521
+ $item_values['link_url'] = '';
1522
+ }
1523
+
1524
  $match_count = preg_match_all( '#(\<a [^\>]+\>)(.*)\</a\>#', $item_values['link'], $matches, PREG_OFFSET_CAPTURE );
1525
  if ( ! ( ( $match_count == false ) || ( $match_count == 0 ) ) ) {
1526
  $link_tag = $matches[1][0][0];
1558
  } // enable_featured_image
1559
  }
1560
 
1561
+ // Now that we have thumbnail_content we can check for 'span' and 'none'
 
 
1562
  if ( 'none' == $arguments['link'] ) {
1563
  $item_values['link'] = $item_values['thumbnail_content'];
1564
  } elseif ( 'span' == $arguments['link'] ) {
1571
  * $image_attributes, $image_class, $image_alt
1572
  */
1573
  if ( $arguments['mla_viewer'] && empty( $item_values['thumbnail_url'] ) ) {
1574
+ // Check for a match on file extension
 
 
1575
  $last_dot = strrpos( $item_values['file'], '.' );
1576
  if ( !( false === $last_dot) ) {
1577
  $extension = substr( $item_values['file'], $last_dot + 1 );
1578
  if ( in_array( $extension, $arguments['mla_viewer_extensions'] ) ) {
1579
+ // Default to an icon if thumbnail generation is not available
 
 
1580
  $icon_url = wp_mime_type_icon( $attachment->ID );
1581
  $upload_dir = wp_upload_dir();
1582
  $args = array(
1616
  }
1617
 
1618
  if ( self::mla_ghostscript_present( $ghostscript_path ) ) {
1619
+ // Optional upper limit (in MB) on file size
 
 
1620
  if ( $limit = ( 1024 * 1024 ) * $arguments['mla_viewer_limit'] ) {
1621
  $file_size = 0 + @filesize( $item_values['base_dir'] . '/' . $item_values['base_file'] );
1622
  if ( ( 0 < $file_size ) && ( $file_size > $limit ) ) {
1626
  $file_size = 1;
1627
  }
1628
 
1629
+ // Generate "real" thumbnail
 
 
1630
  if ( $file_size ) {
1631
  $frame = ( 0 < $arguments['mla_viewer_page'] ) ? $arguments['mla_viewer_page'] - 1 : 0;
1632
  if ( $frame ) {
1645
  $args['mla_stream_type'] = $arguments['mla_viewer_type'];
1646
  }
1647
 
1648
+ // For efficiency, image streaming is done outside WordPress
 
 
1649
  $icon_url = add_query_arg( $args, MLACore::mla_nonce_url( MLA_PLUGIN_URL . 'includes/mla-stream-image.php', MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME ) );
1650
  }
1651
  }
1652
 
1653
+ // <img> tag (thumbnail_text)
 
 
1654
  if ( ! empty( $image_class ) ) {
1655
  $image_class = ' class="' . $image_class . '"';
1656
  }
1663
 
1664
  $item_values['thumbnail_content'] = sprintf( '<img %1$ssrc="%2$s"%3$s%4$s>', $image_attributes, $icon_url, $image_class, $image_alt );
1665
 
1666
+ // Filelink, pagelink and link. The "title=" attribute is in $link_attributes for WP 3.7+.
 
 
 
1667
  if ( false === strpos( $link_attributes, 'title=' ) ) {
1668
  $item_values['pagelink'] = sprintf( '<a %1$shref="%2$s" title="%3$s">%4$s</a>', $link_attributes, $item_values['pagelink_url'], $rollover_text, $item_values['thumbnail_content'] );
1669
  $item_values['filelink'] = sprintf( '<a %1$shref="%2$s" title="%3$s">%4$s</a>', $link_attributes, $item_values['filelink_url'], $rollover_text, $item_values['thumbnail_content'] );
1691
  } // mla_viewer
1692
 
1693
  if ( $is_gallery ) {
1694
+ // Start of row markup
 
 
1695
  if ( $markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) {
1696
  $markup_values = apply_filters( 'mla_gallery_row_open_values', $markup_values );
1697
  $row_open_template = apply_filters( 'mla_gallery_row_open_template', $row_open_template );
1699
  $output .= apply_filters( 'mla_gallery_row_open_parse', $parse_value, $row_open_template, $markup_values );
1700
  }
1701
 
1702
+ // item markup
 
 
1703
  $column_index++;
1704
  if ( $item_values['columns'] > 0 && $column_index % $item_values['columns'] == 0 ) {
1705
  $item_values['last_in_row'] = 'last_in_row';
1707
  $item_values['last_in_row'] = '';
1708
  }
1709
 
1710
+ // Conditional caption tag to replicate WP 4.1+, now used in the default markup template.
 
 
 
1711
  if ( $item_values['captiontag'] && trim( $item_values['caption'] ) ) {
1712
  $item_values['captiontag_content'] = '<' . $item_values['captiontag'] . " class='wp-caption-text gallery-caption' id='" . $item_values['selector'] . '-' . $item_values['attachment_ID'] . "'>\n\t\t" . $item_values['caption'] . "\n\t</" . $item_values['captiontag'] . ">\n";
1713
  } else {
1716
 
1717
  $item_values = apply_filters( 'mla_gallery_item_values', $item_values );
1718
 
1719
+ // Accumulate mla_alt_shortcode_ids when mla_alt_ids_value present
 
 
1720
  if ( is_string( $arguments['mla_alt_shortcode'] ) && is_string( $mla_alt_ids_value ) ) {
1721
  $item_values = MLAData::mla_expand_field_level_parameters( $mla_alt_ids_value, $attr, $item_values );
1722
  $mla_alt_shortcode_ids[] = MLAData::mla_parse_template( $mla_alt_ids_value, $item_values );
1727
  $parse_value = MLAData::mla_parse_template( $item_template, $item_values );
1728
  $output .= apply_filters( 'mla_gallery_item_parse', $parse_value, $item_template, $item_values );
1729
 
1730
+ // End of row markup
 
 
1731
  if ( $markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) {
1732
  $markup_values = apply_filters( 'mla_gallery_row_close_values', $markup_values );
1733
  $row_close_template = apply_filters( 'mla_gallery_row_close_template', $row_close_template );
1740
  }
1741
  } // foreach attachment
1742
 
1743
+ // Execute the alternate gallery shortcode with the new parameters
 
 
1744
  if ( is_string( $arguments['mla_alt_shortcode'] ) && is_string( $mla_alt_ids_value ) ) {
1745
+ // Apply the template when mla_alt_ids_template present
1746
+ if ( is_string( $mla_alt_ids_template ) ) {
1747
+ $markup_values['alt_ids'] = implode( ',', $mla_alt_shortcode_ids );
1748
+ $replacement_values = MLAData::mla_expand_field_level_parameters( $mla_alt_ids_template, $attr, $markup_values );
1749
+ $mla_alt_shortcode_ids = $arguments['mla_alt_ids_name'] . '="' . MLAData::mla_parse_template( $mla_alt_ids_template, $replacement_values ) . '"';
1750
+ unset( $markup_values['alt_ids'] );
1751
+ } else {
1752
+ $mla_alt_shortcode_ids = $arguments['mla_alt_ids_name'] . '="' . implode( ',', $mla_alt_shortcode_ids ) . '"';
1753
+ }
1754
+
1755
  $content = apply_filters( 'mla_gallery_final_content', $content );
1756
  if ( ! empty( $content ) ) {
1757
  return $output . do_shortcode( sprintf( '[%1$s %2$s %3$s]%4$s[/%1$s]', $arguments['mla_alt_shortcode'], $mla_alt_shortcode_ids, $mla_alt_shortcode_args, $content ) );
1761
  }
1762
 
1763
  if ( $is_gallery ) {
1764
+ // Close out partial row
 
 
1765
  if ( ! ($markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) ) {
1766
  $markup_values = apply_filters( 'mla_gallery_row_close_values', $markup_values );
1767
  $row_close_template = apply_filters( 'mla_gallery_row_close_template', $row_close_template );
2093
 
2094
  $is_pagination = in_array( $output_parameters[0], array( 'previous_link', 'current_link', 'next_link', 'previous_page', 'next_page', 'paginate_links' ) );
2095
 
2096
+ // Convert lists to arrays
 
 
2097
  if ( is_string( $arguments['taxonomy'] ) ) {
2098
  $arguments['taxonomy'] = explode( ',', $arguments['taxonomy'] );
2099
  }
2108
 
2109
  $tags = self::mla_get_terms( $arguments );
2110
 
2111
+ // Invalid taxonomy names return WP_Error
 
 
2112
  if ( is_wp_error( $tags ) ) {
2113
  $cloud = '<strong>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . $tags->get_error_message() . '</strong>, ' . $tags->get_error_data( $tags->get_error_code() );
2114
 
2124
  return;
2125
  }
2126
 
2127
+ // Fill in the item_specific link properties, calculate cloud parameters
 
 
2128
  if ( isset( $tags['found_rows'] ) ) {
2129
  $found_rows = $tags['found_rows'];
2130
  unset( $tags['found_rows'] );
2261
  $float = is_rtl() ? 'right' : 'left';
2262
  }
2263
 
2264
+ // Calculate cloud parameters
 
 
2265
  $spread = $max_scaled_count - $min_scaled_count;
2266
  if ( $spread <= 0 ) {
2267
  $spread = 1;
2315
  }
2316
 
2317
  if ( ! empty ( $style_template ) ) {
2318
+ // Look for 'query' and 'request' substitution parameters
 
 
2319
  $style_values = MLAData::mla_expand_field_level_parameters( $style_template, $attr, $style_values );
2320
 
2321
+ // Clean up the template to resolve width or margin == 'none'
 
 
2322
  if ( 'none' == $margin_string ) {
2323
  $style_values['margin'] = '0';
2324
  $style_template = preg_replace( '/margin:[\s]*\[\+margin\+\][\%]*[\;]*/', '', $style_template );
2377
  $close_template = '';
2378
  }
2379
 
2380
+ // Look for gallery-level markup substitution parameters
 
 
2381
  $new_text = $open_template . $row_open_template . $row_close_template . $close_template;
2382
  $markup_values = MLAData::mla_expand_field_level_parameters( $new_text, $attr, $markup_values );
2383
 
2393
  $cloud .= $gallery_style . $gallery_open;
2394
  } // is_grid || is_list
2395
  elseif ( $is_pagination ) {
2396
+ // Handle 'previous_page', 'next_page', and 'paginate_links'
 
 
2397
  if ( isset( $attr['limit'] ) ) {
2398
  $attr['posts_per_page'] = $attr['limit'];
2399
  }
2403
  return $pagination_result;
2404
  }
2405
 
2406
+ // For "previous_link", "current_link" and "next_link", discard all of the $tags except the appropriate choice
 
 
2407
  $link_type = $output_parameters[0];
2408
 
2409
  if ( ! in_array( $link_type, array ( 'previous_link', 'current_link', 'next_link' ) ) ) {
2457
  }
2458
  } // is_pagination
2459
 
2460
+ // Accumulate links for flat and array output
 
 
2461
  $tag_links = array();
2462
 
2463
  // Find delimiter for currentlink, currentlink_url
2471
  foreach ( $tags as $key => $tag ) {
2472
  $item_values = $markup_values;
2473
 
2474
+ // fill in item-specific elements
 
 
2475
  $item_values['index'] = (string) 1 + $column_index;
2476
  if ( $item_values['columns'] > 0 && ( 1 + $column_index ) % $item_values['columns'] == 0 ) {
2477
  $item_values['last_in_row'] = 'last_in_row';
2581
  $item_values['link_text'] = $item_values['name'];
2582
  }
2583
 
2584
+ // Currentlink, editlink, termlink and thelink
 
 
2585
  $item_values['currentlink'] = sprintf( '<a %1$shref="%2$s%3$scurrent_item=%4$d" title="%5$s" style="%6$s">%7$s</a>', $link_attributes, $item_values['page_url'], $current_item_delimiter, $item_values['term_id'], $item_values['rollover_text'], $item_values['link_style'], $item_values['link_text'] );
2586
  $item_values['editlink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $item_values['editlink_url'], $item_values['rollover_text'], $item_values['link_style'], $item_values['link_text'] );
2587
  $item_values['termlink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $item_values['termlink_url'], $item_values['rollover_text'], $item_values['link_style'], $item_values['link_text'] );
2602
  }
2603
 
2604
  if ( $is_grid || $is_list ) {
2605
+ // Start of row markup
 
 
2606
  if ( $is_grid && ( $markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) ) {
2607
  $markup_values = apply_filters( 'mla_tag_cloud_row_open_values', $markup_values );
2608
  $row_open_template = apply_filters( 'mla_tag_cloud_row_open_template', $row_open_template );
2610
  $cloud .= apply_filters( 'mla_tag_cloud_row_open_parse', $parse_value, $row_open_template, $markup_values );
2611
  }
2612
 
2613
+ // item markup
 
 
2614
  $column_index++;
2615
  $item_values = apply_filters( 'mla_tag_cloud_item_values', $item_values );
2616
  $item_template = apply_filters( 'mla_tag_cloud_item_template', $item_template );
2617
  $parse_value = MLAData::mla_parse_template( $item_template, $item_values );
2618
  $cloud .= apply_filters( 'mla_tag_cloud_item_parse', $parse_value, $item_template, $item_values );
2619
 
2620
+ // End of row markup
 
 
2621
  if ( $is_grid && ( $markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) ) {
2622
  $markup_values = apply_filters( 'mla_tag_cloud_row_close_values', $markup_values );
2623
  $row_close_template = apply_filters( 'mla_tag_cloud_row_close_template', $row_close_template );
2635
  } // foreach tag
2636
 
2637
  if ($is_grid || $is_list ) {
2638
+ // Close out partial row
 
 
2639
  if ( $is_grid && ( ! ($markup_values['columns'] > 0 && $column_index % $markup_values['columns'] == 0 ) ) ) {
2640
  $markup_values = apply_filters( 'mla_tag_cloud_row_close_values', $markup_values );
2641
  $row_close_template = apply_filters( 'mla_tag_cloud_row_close_template', $row_close_template );
2686
  */
2687
  $attr = self::_validate_attributes( $attr, $content );
2688
 
2689
+ // The 'array' format makes no sense in a shortcode
 
 
2690
  if ( isset( $attr['mla_output'] ) && 'array' == $attr['mla_output'] ) {
2691
  $attr['mla_output'] = 'flat';
2692
  }
2693
 
2694
+ // A shortcode must return its content to the caller, so "echo" makes no sense
 
 
2695
  $attr['echo'] = false;
2696
 
2697
  return self::mla_tag_cloud( $attr );
3650
  }
3651
 
3652
  if ( ! empty ( $style_template ) ) {
3653
+ // Look for 'query' and 'request' substitution parameters
 
 
3654
  $style_values = MLAData::mla_expand_field_level_parameters( $style_template, $attr, $style_values );
3655
 
3656
  $style_values = apply_filters( 'mla_term_list_style_values', $style_values );
3995
  return false;
3996
  }
3997
 
3998
+ // Add data selection parameters to gallery-specific and mla_gallery-specific parameters
 
 
3999
  $arguments = array_merge( $arguments, shortcode_atts( self::$mla_get_shortcode_attachments_parameters, $attr ) );
4000
  $posts_per_page = absint( $arguments['posts_per_page'] );
4001
  $mla_page_parameter = $arguments['mla_page_parameter'];
4141
 
4142
  $markup_values = MLAData::mla_expand_field_level_parameters( $new_text, $attr, $markup_values );
4143
 
4144
+ // Build the new link, applying Gallery Display Content parameters
 
 
4145
  if ( 'paginate_links' == $output_parameters[0] ) {
4146
  return self::_paginate_links( $output_parameters, $markup_values, $arguments, $found_rows, $output );
4147
  }
5078
  } // switch $key
5079
  } // foreach $arguments
5080
 
5081
+ // Decide whether to use a "get_children" style query
 
 
5082
  self::$query_parameters['disable_tax_join'] = $is_tax_query && ! $use_children;
5083
  if ( $use_children && ! isset( $query_arguments['post_parent'] ) ) {
5084
  if ( ! isset( $query_arguments['id'] ) ) {
5109
  }
5110
  unset( $query_arguments['posts_per_archive_page'] );
5111
 
5112
+ // MLA pagination will override WordPress pagination
 
 
5113
  if ( isset( $query_arguments[ $mla_page_parameter ] ) ) {
5114
  unset( $query_arguments['nopaging'] );
5115
  unset( $query_arguments['offset'] );
5150
  $query_arguments['ignore_sticky_posts'] = true;
5151
  $query_arguments['no_found_rows'] = is_null( $return_found_rows ) ? true : ! $return_found_rows;
5152
 
5153
+ // We will always handle "orderby" in our filter
 
 
5154
  self::$query_parameters['orderby'] = self::_validate_sql_orderby( $query_arguments );
5155
  if ( false === self::$query_parameters['orderby'] ) {
5156
  unset( self::$query_parameters['orderby'] );
5237
  foreach ( MLAQuery::$search_parameters['mla_search_fields'] as $index => $field ) {
5238
  if ( 'terms' == $field ) {
5239
  if ( isset( MLAQuery::$search_parameters['mla_terms_search']['phrases'] ) ) {
5240
+ // The Terms Search overrides any terms-based keyword search for now; too complicated.
 
 
5241
  unset ( MLAQuery::$search_parameters['mla_search_fields'][ $index ] );
5242
  } else {
5243
  MLAQuery::$search_parameters['mla_search_taxonomies'] = MLAQuery::$search_parameters['mla_terms_search']['taxonomies'];
5608
  $attr = shortcode_parse_atts( $attr );
5609
  }
5610
 
5611
+ // Merge input arguments with defaults
 
 
5612
  $attr = apply_filters( 'mla_get_terms_query_attributes', $attr );
5613
  $arguments = shortcode_atts( self::$mla_get_terms_parameters, $attr );
5614
  $arguments = apply_filters( 'mla_get_terms_query_arguments', $arguments );
5618
 
5619
  /*
5620
  * If we're not counting attachments per term, strip
5621
+ * post fields out of list and adjust the orderby value
5622
  */
5623
+ $no_count = true;
5624
+ $count_string = trim( strtolower( (string) $arguments['no_count'] ) );
5625
+ $field_array = explode( ',', $arguments['fields'] );
5626
+
5627
+ switch ( $count_string ) {
5628
+ case 'true':
5629
+ foreach ( $field_array as $index => $field ) {
5630
+ if ( false !== strpos( $field, 'p.' ) ) {
5631
+ unset( $field_array[ $index ] );
5632
+ }
5633
  }
 
 
 
 
5634
 
5635
+ $arguments['minimum'] = 0;
5636
+ $arguments['post_mime_type'] = 'all';
5637
+
5638
+ if ( 'count' ==strtolower( $arguments['orderby'] ) ) {
5639
+ $arguments['orderby'] = 'none';
5640
+ }
5641
 
5642
+ break;
5643
+ case 'internal':
5644
+ foreach ( $field_array as $index => $field ) {
5645
+ if ( false !== strpos( $field, 'p.' ) ) {
5646
+ unset( $field_array[ $index ] );
5647
+ }
5648
+ }
5649
+
5650
+ $field_array[] = ' tt.count';
5651
+ $arguments['post_mime_type'] = 'all';
5652
+ break;
5653
+ default:
5654
+ $no_count = false;
5655
+ }
5656
 
5657
+ $clauses['fields'] = implode( ',', $field_array );
5658
  $clause = array ( 'INNER JOIN `' . $wpdb->term_taxonomy . '` AS tt ON t.term_id = tt.term_id' );
5659
  $clause_parameters = array();
5660
 
5661
+ if ( $no_count ) {
5662
+ // If no_count=internal we just omit the explicit count and use the WP-maintained count
5663
+ $no_count = 'true' === $count_string;
5664
+
5665
+ if ( 'internal' === $count_string ) {
5666
+ // The ids parameter requires item-specific ID values
5667
+ if ( ! empty( $arguments['ids'] ) && empty( $arguments['include'] ) ) {
5668
+ $clause[] = 'LEFT JOIN `' . $wpdb->term_relationships . '` AS tr ON tt.term_taxonomy_id = tr.term_taxonomy_id';
5669
+ }
5670
+ }
5671
+ } else {
5672
  $clause[] = 'LEFT JOIN `' . $wpdb->term_relationships . '` AS tr ON tt.term_taxonomy_id = tr.term_taxonomy_id';
5673
  $clause[] = 'LEFT JOIN `' . $wpdb->posts . '` AS p ON tr.object_id = p.ID';
5674
 
5741
  if ( ! empty( $arguments['ids'] ) && empty( $arguments['include'] ) ) {
5742
  $ids = wp_parse_id_list( $arguments['ids'] );
5743
  $placeholders = implode( "','", $ids );
5744
+ $clause[] = "AND tr.object_id IN ( '{$placeholders}' )";
5745
 
5746
  $includes = array();
5747
  foreach ( $ids as $id ) {
5877
  $final_clauses[] = $clauses['limits'];
5878
  }
5879
 
5880
+ // If we're paginating the final results, we need to get an accurate total count first
5881
  if ( ! $no_count && ( 0 < $offset || 0 < $limit ) ) {
5882
  $count_query = 'SELECT COUNT(*) as count FROM (' . join(' ', $query) . ' ) as subQuery';
5883
  $count = $wpdb->get_results( $count_query );
5934
  return array();
5935
  }
5936
 
5937
+ // Set found_rows aside to be restored later
 
 
5938
  if ( isset( $terms['found_rows'] ) ) {
5939
  $found_rows = $terms['found_rows'];
5940
  unset( $terms['found_rows'] );
5981
  }
5982
  }
5983
 
5984
+ // Collapse multi-level children
 
 
5985
  foreach ( $parents as $taxonomy => $tax_parents ) {
5986
  if ( ! isset( $term_tree[ $taxonomy ] ) ) {
5987
  $term_tree[ $taxonomy ] = array();
6021
  } // has parents
6022
  } // foreach taxonomy
6023
 
6024
+ // Calculate and potentially trim parent/child tree
 
 
6025
  $all_terms_count = 0;
6026
  foreach ( array_keys( $term_tree ) as $taxonomy ) {
6027
  if ( $child_of ) {
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.78
10
  */
11
 
12
  /*
@@ -16,7 +16,7 @@ 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.78
20
  Author URI: http://davidlingren.com/
21
 
22
  Copyright 2011-2019 David Lingren
@@ -38,9 +38,7 @@ Copyright 2011-2019 David Lingren
38
  defined( 'ABSPATH' ) or die();
39
  //error_log( __LINE__ . ' MEMORY index.php ' . number_format( memory_get_peak_usage( true ) ), 0);
40
 
41
- /*
42
- * Translation strings for the plugin data in the comment block above; MUST MATCH
43
- */
44
  if ( false ) {
45
  /* translators: Description of the plugin/theme */
46
  __ ( 'Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit.', 'media-library-assistant' );
@@ -161,9 +159,7 @@ $mla_name_conflict_candidates =
161
  //'MLA_BACKUP_DIR' => 'constant'
162
  );
163
 
164
- /*
165
- * Check for conflicting names, i.e., already defined by some other plugin or theme
166
- */
167
  foreach ( $mla_name_conflict_candidates as $value => $type ) {
168
  switch ($type) {
169
  case 'class':
@@ -195,9 +191,7 @@ function mla_name_conflict_reporting_action () {
195
  echo '<p>You must resolve these conflicts before this plugin can safely load.</p></div>'."\r\n";
196
  }
197
 
198
- /*
199
- * Load the plugin or display conflict message(s)
200
- */
201
  if ( empty( $mla_name_conflict_error_messages ) ) {
202
  require_once('includes/mla-plugin-loader.php');
203
 
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
+ * @version 2.79
10
  */
11
 
12
  /*
16
  Author: David Lingren
17
  Text Domain: media-library-assistant
18
  Domain Path: /languages
19
+ Version: 2.79
20
  Author URI: http://davidlingren.com/
21
 
22
  Copyright 2011-2019 David Lingren
38
  defined( 'ABSPATH' ) or die();
39
  //error_log( __LINE__ . ' MEMORY index.php ' . number_format( memory_get_peak_usage( true ) ), 0);
40
 
41
+ // Translation strings for the plugin data in the comment block above; MUST MATCH
 
 
42
  if ( false ) {
43
  /* translators: Description of the plugin/theme */
44
  __ ( 'Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] [mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick edit.', 'media-library-assistant' );
159
  //'MLA_BACKUP_DIR' => 'constant'
160
  );
161
 
162
+ // Check for conflicting names, i.e., already defined by some other plugin or theme
 
 
163
  foreach ( $mla_name_conflict_candidates as $value => $type ) {
164
  switch ($type) {
165
  case 'class':
191
  echo '<p>You must resolve these conflicts before this plugin can safely load.</p></div>'."\r\n";
192
  }
193
 
194
+ // Load the plugin or display conflict message(s)
 
 
195
  if ( empty( $mla_name_conflict_error_messages ) ) {
196
  require_once('includes/mla-plugin-loader.php');
197
 
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).keypress(function(j){if(13===j.keyCode){j.preventDefault();a("#"+e+"-add-submit",d).click()}});a("#"+e+"-add-submit",d).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).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",delColor:"#faafaa",dimAddColor:"#ffff33",dimDelColor:"#ff3333",confirm:null,addBefore:null,addAfter:null,dimBefore:null,dimAfter: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(a.isFunction(e.confirm)){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=a.isFunction(i.fieldSerialize)?i.fieldSerialize():i.serialize();if(c){e.data+="&"+c}if(a.isFunction(e.addBefore)){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(a.isFunction(e.addAfter)){e.addAfter(d,a.extend({xml:m,status:l,parsed:h},e))}};a.ajax(e);return false},ajaxDel:function(e,f){var i=this,c=a(e),h=mla.mlaList.parseData(c,"delete"),d,g,j;f=f||{};f=mla.mlaList.pre.call(i,c,f,"delete");f.element=h[2]||f.element||null;f.delColor=h[3]?"#"+h[3]:f.delColor;if(!f||!f.element){return false}f.action="delete-"+f.what;f.nonce=mla.mlaList.nonce(c,f);f.data=a.extend({_ajax_nonce:f.nonce,action:f.action,id:f.element.split("-").pop()},wpAjax.unserialize(h[4]||""));if(a.isFunction(f.delBefore)){f=f.delBefore(f,i);if(!f){return true}}if(!f.data._ajax_nonce){return true}d=a("#"+f.element,mla.mlaList.settings.context);if("none"!==f.delColor){d.css("backgroundColor",f.delColor).fadeOut(350,function(){i.mlaList.recolor();a(i).trigger("mlaListDelEnd",[f,i.mlaList])})}else{i.mlaList.recolor();a(i).trigger("mlaListDelEnd",[f,i.mlaList])}f.success=function(l){var k=mla.mlaList.settings.context.selector.substring(1);g=wpAjax.parseAjaxResponse(l,k+" #"+f.response,f.element);j=l;if(!g||g.errors){d.stop().stop().css("backgroundColor","#faa").show().queue(function(){i.mlaList.recolor();a(this).dequeue()});return false}};f.complete=function(l,k){if(a.isFunction(f.delAfter)){d.queue(function(){f.delAfter(j,a.extend({xml:l,status:k,parsed:g},f))}).dequeue()}};a.ajax(f);return false},ajaxDim:function(i,e){var k=this,o=a(i),h=mla.mlaList.parseData(o,"dim"),l,c,g,m,j,d,f,n;if("none"===o.parent().css("display")){return false}e=e||{};e=mla.mlaList.pre.call(k,o,e,"dim");e.element=h[2]||e.element||null;e.dimClass=h[3]||e.dimClass||null;e.dimAddColor=h[4]?"#"+h[4]:e.dimAddColor;e.dimDelColor=h[5]?"#"+h[5]:e.dimDelColor;if(!e||!e.element||!e.dimClass){return true}e.action="dim-"+e.what;e.nonce=mla.mlaList.nonce(o,e);e.data=a.extend({_ajax_nonce:e.nonce,action:e.action,id:e.element.split("-").pop(),dimClass:e.dimClass},wpAjax.unserialize(h[6]||""));if(a.isFunction(e.dimBefore)){e=e.dimBefore(e);if(!e){return true}}l=a("#"+e.element,mla.mlaList.settings.context);c=l.toggleClass(e.dimClass).is("."+e.dimClass);g=mla.mlaList.getColor(l);m=c?e.dimAddColor:e.dimDelColor;l.toggleClass(e.dimClass);if("none"!==m){l.animate({backgroundColor:m},"fast").queue(function(){l.toggleClass(e.dimClass);a(this).dequeue()}).animate({backgroundColor:g},{complete:function(){a(this).css("backgroundColor","");a(k).trigger("mlaListDimEnd",[e,k.mlaList])}})}else{a(k).trigger("mlaListDimEnd",[e,k.mlaList])}if(!e.data._ajax_nonce){return true}e.success=function(q){var p=mla.mlaList.settings.context.selector.substring(1);j=wpAjax.parseAjaxResponse(q,p+" #"+e.response,e.element);d=q;if(true===j){return true}if(!j||j.errors){l.stop().stop().css("backgroundColor","#ff3333")[c?"removeClass":"addClass"](e.dimClass).show().queue(function(){k.mlaList.recolor();a(this).dequeue()});return false}if("undefined"!==typeof j.responses[0].supplemental.comment_link){f=o.find(".submitted-on");n=f.find("a");if(""!==j.responses[0].supplemental.comment_link){f.html(a("<a></a>").text(f.text()).prop("href",j.responses[0].supplemental.comment_link))}else{if(n.length){f.text(n.text())}}}};e.complete=function(q,p){if(a.isFunction(e.dimAfter)){l.queue(function(){e.dimAfter(d,a.extend({xml:q,status:p,parsed:j},e))}).dequeue()}};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",del:"ajaxDel",dim:"ajaxDim",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).keypress(function(j){if(13===j.keyCode){j.preventDefault();a("#"+e+"-add-submit",d).click()}});a("#"+e+"-add-submit",d).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).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(a.isFunction(e.confirm)){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=a.isFunction(i.fieldSerialize)?i.fieldSerialize():i.serialize();if(c){e.data+="&"+c}if(a.isFunction(e.addBefore)){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(a.isFunction(e.addAfter)){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);
js/mla-define-ajaxurl-scripts.js ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ // defines Global ajaxurl if needed
2
+
3
+ if ( ( typeof ajaxurl === 'undefined' ) && ( typeof wp.media.view.l10n.mla_strings.ajaxurl === 'string' ) ) {
4
+ var ajaxurl = wp.media.view.l10n.mla_strings.ajaxurl;
5
+ }
js/mla-define-ajaxurl-scripts.min.js ADDED
@@ -0,0 +1 @@
 
1
+ if((typeof ajaxurl==="undefined")&&(typeof wp.media.view.l10n.mla_strings.ajaxurl==="string")){var ajaxurl=wp.media.view.l10n.mla_strings.ajaxurl};
js/mla-inline-edit-scripts.js CHANGED
@@ -138,6 +138,16 @@ var jQuery,
138
  init : function(){
139
  var t = this, qeRow = $( '#inline-edit' ), bulkRow = $( '#bulk-edit' ), progressRow = $( '#bulk-progress' );
140
 
 
 
 
 
 
 
 
 
 
 
141
  t.type = 'attachment';
142
  t.what = '#attachment-';
143
 
138
  init : function(){
139
  var t = this, qeRow = $( '#inline-edit' ), bulkRow = $( '#bulk-edit' ), progressRow = $( '#bulk-progress' );
140
 
141
+ if ( mla.settings.deleteAcpBulkEdit ) {
142
+ setTimeout( function() {
143
+ var elements = document.querySelectorAll( 'body.ac-mla-media-assistant .acp-be-editrow, body.ac-mla-media-assistant .acp-be-noticerow' );
144
+
145
+ for ( i = 0; i < elements.length; ++i ) {
146
+ elements[ i ].remove();
147
+ }
148
+ }, 1000 );
149
+ }
150
+
151
  t.type = 'attachment';
152
  t.what = '#attachment-';
153
 
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[":"],{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).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).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).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").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");d.type="attachment";d.what="#attachment-";e.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});c.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});b.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});a("#inline-edit-post-set-parent",e).on("click",function(){return mla.inlineEditAttachment.inlineParentOpen(this)});a("a.cancel",e).click(function(){return mla.inlineEditAttachment.revert()});a("a.save",e).click(function(){return mla.inlineEditAttachment.quickSave(this)});a("td",e).keydown(function(f){if(f.which==13){return mla.inlineEditAttachment.quickSave(this)}});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).click(function(){return mla.inlineEditAttachment.revert()});a("a.reset",c).click(function(){return mla.inlineEditAttachment.doReset()});a('input[type="submit"]',c).click(function(f){f.preventDefault();return mla.inlineEditAttachment.bulkSave(f)});a("a.cancel",b).click(function(){if(mla.bulkEdit.inProcess){mla.bulkEdit.doCancel=true;return false}else{return mla.inlineEditAttachment.revert()}});a("#bulk_refresh",b).click(function(){a("#bulk-progress a").prop("disabled",true);a("#bulk-progress").css("opacity","0.5")});a("#the-list").on("click","a.editinline",function(){mla.inlineEditAttachment.quickEdit(this);return false});a('select[name="_status"] option[value="future"]',c).remove();a("#doaction, #doaction2").click(function(f){var g=a(this).attr("id").substr(2);if(a('select[name="'+g+'"]').val()=="edit"){f.preventDefault();d.bulkEdit()}else{if(a("form#posts-filter tr.inline-editor").length>0){d.revert()}}});a("#post-query-submit").mousedown(function(){d.revert();a('select[name^="action"]').val("-1")})},bulkEdit:function(){var b="",d=true;this.revert();a("#bulk-edit td").attr("colspan",a("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").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").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,i,c,h=a("table.wp-list-table .inline-edit-save .spinner"),d=a("#bulk-progress .inline-edit-save .error"),j=a("#bulk-progress-waiting"),e=a("#bulk-progress-running");g=mla.bulkEdit.ids.slice(mla.bulkEdit.offset,mla.bulkEdit.offset+mla.bulkEdit.chunkSize);for(f=0;f<g.length;f++){i=a("#ttle"+g[f],j).remove();a("a",i).hide();e.append(i)}mla.bulkEdit.waiting-=g.length;mla.bulkEdit.running=g.length;b={action:mla.settings.ajax_action,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(n,l){var o="no response.data",k,m;if(mla.settings.useSpinnerClass){h.removeClass("is-active")}else{h.hide()}if(n){if(!n.success){if(n.responseData){o=n.data}d.html(JSON.stringify(n)).show();mla.bulkEdit.offset=mla.bulkEdit.idsCount}else{m=a("#bulk-progress-running div").remove();a.each(m,function(){var p,q=a(this).html(),r=a(this).attr("id").substr(4);if("string"===typeof(n.data.item_results[r]["result"])){p=n.data.item_results[r]["result"];a(this).html(q+" ("+r+") - "+p)}a("#attachment-"+r).remove()});a("#bulk-progress-complete").append(m);mla.bulkEdit.complete+=mla.bulkEdit.running;mla.bulkEdit.running=0;mla.bulkEdit.unchanged+=n.data.unchanged;mla.bulkEdit.success+=n.data.success;mla.bulkEdit.failure+=n.data.failure;k=mla.settings.bulkWaiting+": "+mla.bulkEdit.waiting+", "+mla.settings.bulkComplete+": "+mla.bulkEdit.complete+", "+mla.settings.bulkUnchanged+": "+mla.bulkEdit.unchanged+", "+mla.settings.bulkSuccess+": "+mla.bulkEdit.success+", "+mla.settings.bulkFailure+": "+mla.bulkEdit.failure;d.html(k).show()}}else{d.html(mla.settings.error).show();mla.bulkEdit.offset=mla.bulkEdit.idsCount}if(mla.bulkEdit.doCancel){d.html(mla.settings.bulkCanceled+". "+k).show()}else{if(mla.bulkEdit.offset<mla.bulkEdit.idsCount){mla.inlineEditAttachment.bulkPost();return}}a("#bulk_refresh").prop("disabled",false).css("opacity","1.0");mla.bulkEdit.inProcess=false}).fail(function(l,k){if(200==l.status){d.text("("+k+") "+l.responseText)}else{d.text(mla.settings.ajaxFailError+" ("+k+"), jqXHR( "+l.status+", "+l.statusText+", "+l.responseText+")")}})},quickEdit:function(i){var d=this,b,c,f,h=[],e,g;d.revert();if(typeof(i)=="object"){i=mla.utility.getId(i)}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+i).hide().after(c).after('<tr class="hidden"></tr>')}else{if(a(d.what+i).hasClass("alternate")){a(c).addClass("alternate")}a(d.what+i).hide().after(c)}f=a("#inline_"+i);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+"-"+i+" .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("_"+i,"")});a(".mla_category",f).each(function(){var l=a(this).text(),m=a(this).attr("id").replace("_"+i,""),k,j;if(l){a("ul."+m+"checklist :checkbox",c).val(l.split(","));if(-1!==h.indexOf(m)){k=a("ul."+m+"checklist li :checked",c).parents("label").remove().toArray().reverse();j=a("<li></li>").html(k);a("ul."+m+"checklist",c).prepend(j)}}});a(".mla_tags",f).each(function(){var m=a(this).text(),n=a(this).attr("id").replace("_"+i,""),l=a("textarea.tax_input_"+n,c),j=mla.settings.comma,k;if(m){if(","!==j){m=m.replace(/,/g,j)}l.val(m)}k=a(".lang",f).text();if(0<k.length){k="&lang="+k}else{k=""}l.suggest(ajaxurl+"?action=ajax-tag-search&tax="+n+"&preview_id="+i+k,{delay:500,minchars:2,multiple:true,multipleSep:mla.settings.comma+" "})});f=a(c).attr("id","edit-"+i).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(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[":"],{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).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).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).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").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.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});c.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});b.keyup(function(f){if(f.which==27){return mla.inlineEditAttachment.revert()}});a("#inline-edit-post-set-parent",e).on("click",function(){return mla.inlineEditAttachment.inlineParentOpen(this)});a("a.cancel",e).click(function(){return mla.inlineEditAttachment.revert()});a("a.save",e).click(function(){return mla.inlineEditAttachment.quickSave(this)});a("td",e).keydown(function(f){if(f.which==13){return mla.inlineEditAttachment.quickSave(this)}});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).click(function(){return mla.inlineEditAttachment.revert()});a("a.reset",c).click(function(){return mla.inlineEditAttachment.doReset()});a('input[type="submit"]',c).click(function(f){f.preventDefault();return mla.inlineEditAttachment.bulkSave(f)});a("a.cancel",b).click(function(){if(mla.bulkEdit.inProcess){mla.bulkEdit.doCancel=true;return false}else{return mla.inlineEditAttachment.revert()}});a("#bulk_refresh",b).click(function(){a("#bulk-progress a").prop("disabled",true);a("#bulk-progress").css("opacity","0.5")});a("#the-list").on("click","a.editinline",function(){mla.inlineEditAttachment.quickEdit(this);return false});a('select[name="_status"] option[value="future"]',c).remove();a("#doaction, #doaction2").click(function(f){var g=a(this).attr("id").substr(2);if(a('select[name="'+g+'"]').val()=="edit"){f.preventDefault();d.bulkEdit()}else{if(a("form#posts-filter tr.inline-editor").length>0){d.revert()}}});a("#post-query-submit").mousedown(function(){d.revert();a('select[name^="action"]').val("-1")})},bulkEdit:function(){var b="",d=true;this.revert();a("#bulk-edit td").attr("colspan",a("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").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").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);
js/mla-media-modal-scripts.js CHANGED
@@ -1076,7 +1076,7 @@ console.log( 'listening to controller events' );
1076
  },
1077
 
1078
  /**
1079
- * Build or rebuild the current tag list prefaced with "X" buttons,
1080
  * using the hidden '.the-tags' textbox field as input
1081
  */
1082
  quickClicks : function( el ) {
@@ -1095,7 +1095,7 @@ console.log( 'listening to controller events' );
1095
  tagchecklist.empty();
1096
 
1097
  $.each( current_tags, function( key, val ) {
1098
- var span, xbutton;
1099
 
1100
  val = $.trim( val );
1101
 
@@ -1103,18 +1103,27 @@ console.log( 'listening to controller events' );
1103
  return;
1104
  }
1105
 
1106
- // Create a new span, and ensure the text is properly escaped.
1107
- span = $( '<span />' ).text( val );
 
 
 
 
1108
 
1109
- // If tags editing isn't disabled, create the X button.
1110
  if ( ! disabled ) {
1111
- xbutton = $( '<a id="' + id + '-check-num-' + key + '" class="ntdelbutton">X</a>' );
 
 
 
 
 
1112
  xbutton.click( function(){ mlaModal.tagBox.parseTags( this ); });
1113
- span.prepend( '&nbsp;' ).prepend( xbutton );
1114
  }
1115
 
1116
- // Append the span to the tag list.
1117
- tagchecklist.append( span );
1118
  });
1119
  },
1120
 
1076
  },
1077
 
1078
  /**
1079
+ * Build or rebuild the current tag list prefaced with "Remove term" buttons,
1080
  * using the hidden '.the-tags' textbox field as input
1081
  */
1082
  quickClicks : function( el ) {
1095
  tagchecklist.empty();
1096
 
1097
  $.each( current_tags, function( key, val ) {
1098
+ var element, xbutton;
1099
 
1100
  val = $.trim( val );
1101
 
1103
  return;
1104
  }
1105
 
1106
+ // Create a new element, and ensure the text is properly escaped.
1107
+ if ( mlaModal.settings.generateTagUl ) {
1108
+ element = $( '<li />' ).text( val );
1109
+ } else {
1110
+ element = $( '<span />' ).text( val );
1111
+ }
1112
 
1113
+ // If tags editing isn't disabled, create the "Remove term" button.
1114
  if ( ! disabled ) {
1115
+ if ( mlaModal.settings.generateTagButtons ) {
1116
+ xbutton = $( '<button class="ntdelbutton" id="' + id + '-check-num-' + key + '" type="button"><span class="remove-tag-icon" aria-hidden="true"></span><span class="screen-reader-text">' + mlaModal.settings.removeTerm + ': ' + val + '</span></button>' );
1117
+ } else {
1118
+ xbutton = $( '<a id="' + id + '-check-num-' + key + '" class="ntdelbutton">X</a>' );
1119
+ }
1120
+
1121
  xbutton.click( function(){ mlaModal.tagBox.parseTags( this ); });
1122
+ element.prepend( '&nbsp;' ).prepend( xbutton );
1123
  }
1124
 
1125
+ // Append the element to the tag list.
1126
+ tagchecklist.append( element );
1127
  });
1128
  },
1129
 
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)&&false===mlaModal.settings.enableMediaGrid){return}if(("modal"===mlaModal.settings.screen)&&false===mlaModal.settings.enableMediaModal){return}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;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}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).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).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).click();return false});d("#mla-terms-search-input").keypress(function(g){if(13==g.which){g.preventDefault();d("#mla-terms-search-submit").click()}})}}})}if(mlaModal.settings.enableSearchBox){wp.media.view.MlaSearch=wp.media.View.extend({tagName:"div",className:"mla-search-box",template:wp.media.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{input:"search",change:"search",click:"search",search:"search",MlaSearch:"search"},initialize:function(){var 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]);this.$el.html(this.template(e));return this},search:function(g){var h=this.controller._state,e,i,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]":i=mlaModal.settings.query[h].searchFields;f=i.indexOf("title");if(-1==f){i.push("title")}else{i.splice(f,1)}mlaModal.settings.query[h].searchFields=i;break;case"s[mla_search_name]":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]":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]":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]":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]":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]":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({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;if(typeof window.eml!=="undefined"){d(".media-toolbar",this.$el).css("overflow","hidden")}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:60}).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);if(0===e.length){e=d("div.media-toolbar-primary > input.search",mlaModal.settings.$el)}e.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(l,n){var m,k;n=d.trim(n);if(!n){return}m=d("<span />").text(n);if(!f){k=d('<a id="'+i+"-check-num-"+l+'" class="ntdelbutton">X</a>');k.click(function(){mlaModal.tagBox.parseTags(this)});m.prepend("&nbsp;").prepend(k)}h.append(m)})},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).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).click(function(){mlaModal.tagBox.flushTags(d(this).closest(".tagsdiv"))});d("input.newtag",f).keyup(function(j){if(13==j.which){mlaModal.tagBox.flushTags(h);return false}}).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").click(function(){mlaModal.tagBox.getCloud(d("a",this).attr("id"),e);d("a",this).unbind().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).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).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).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).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").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"]').click()}j.find(l+"-add-toggle").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"]').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).keypress(function(q){if(13===q.keyCode){q.preventDefault();j.find(l+"-add-submit").click()}});j.find(l+"-add-submit").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).prop("checked",s)}});d.extend(d.expr[":"],{matchTerms:function(s,r,q,t){return(s.textContent||s.innerText||"").toLowerCase().indexOf((q[3]||"").toLowerCase())>=0}});j.find(o).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).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").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"]').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).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)&&false===mlaModal.settings.enableMediaGrid){return}if(("modal"===mlaModal.settings.screen)&&false===mlaModal.settings.enableMediaModal){return}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;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}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).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).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).click();return false});d("#mla-terms-search-input").keypress(function(g){if(13==g.which){g.preventDefault();d("#mla-terms-search-submit").click()}})}}})}if(mlaModal.settings.enableSearchBox){wp.media.view.MlaSearch=wp.media.View.extend({tagName:"div",className:"mla-search-box",template:wp.media.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{input:"search",change:"search",click:"search",search:"search",MlaSearch:"search"},initialize:function(){var 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]);this.$el.html(this.template(e));return this},search:function(g){var h=this.controller._state,e,i,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]":i=mlaModal.settings.query[h].searchFields;f=i.indexOf("title");if(-1==f){i.push("title")}else{i.splice(f,1)}mlaModal.settings.query[h].searchFields=i;break;case"s[mla_search_name]":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]":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]":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]":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]":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]":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({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;if(typeof window.eml!=="undefined"){d(".media-toolbar",this.$el).css("overflow","hidden")}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:60}).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);if(0===e.length){e=d("div.media-toolbar-primary > input.search",mlaModal.settings.$el)}e.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.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).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).click(function(){mlaModal.tagBox.flushTags(d(this).closest(".tagsdiv"))});d("input.newtag",f).keyup(function(j){if(13==j.which){mlaModal.tagBox.flushTags(h);return false}}).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").click(function(){mlaModal.tagBox.getCloud(d("a",this).attr("id"),e);d("a",this).unbind().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).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).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).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).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").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"]').click()}j.find(l+"-add-toggle").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"]').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).keypress(function(q){if(13===q.keyCode){q.preventDefault();j.find(l+"-add-submit").click()}});j.find(l+"-add-submit").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).prop("checked",s)}});d.extend(d.expr[":"],{matchTerms:function(s,r,q,t){return(s.textContent||s.innerText||"").toLowerCase().indexOf((q[3]||"").toLowerCase())>=0}});j.find(o).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).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").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"]').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).click(function(){d(this).siblings("td").slideToggle()});mlaModal.tagBox.init(f,h,e)})}}}(jQuery));
js/mla-terms-search-scripts.js CHANGED
@@ -7,7 +7,7 @@
7
  * mla.settings.useSpinnerClass
8
  */
9
 
10
- var jQuery, wpAjax,
11
  mla_terms_search_vars,
12
  mlaTaxonomy = {
13
  // Properties
7
  * mla.settings.useSpinnerClass
8
  */
9
 
10
+ var jQuery, wpAjax, ajaxurl,
11
  mla_terms_search_vars,
12
  mlaTaxonomy = {
13
  // Properties
js/mla-terms-search-scripts.min.js CHANGED
@@ -1 +1 @@
1
- var jQuery,wpAjax,mla_terms_search_vars,mlaTaxonomy={settings:{},utility:{},termsSearch:null};(function(a){mlaTaxonomy.settings=typeof mla_terms_search_vars==="undefined"?{}:mla_terms_search_vars;mla_terms_search_vars=void 0;mlaTaxonomy.termsSearch={init:function(){a("#mla-terms-search-open").click(function(b){b.preventDefault()});a("#mla-terms-search-submit").click(function(){mlaTaxonomy.termsSearch.close()});a("#mla-terms-search-close-div").click(mlaTaxonomy.termsSearch.close)},open:function(){var b=a("#mla-terms-search-overlay");if(b.length===0){a("body").append('<div id="mla-terms-search-overlay"></div>');mlaTaxonomy.termsSearch.overlay()}b.show();if(mlaTaxonomy.settings.useDashicons){a("#mla-terms-search-close-div").addClass("mla-terms-search-close-div-dashicons")}else{a("#mla-terms-search-close-div").html("x")}a("#mla-terms-search-div").show();a("#mla-terms-search-input ").focus().keyup(function(c){if(c.which==27){mlaTaxonomy.termsSearch.close()}});return false},close:function(){a("#mla-terms-search-response-div").html("");a("#mla-terms-search-div").hide();a("#mla-terms-search-overlay").hide()},overlay:function(){a("#mla-terms-search-overlay").on("click",function(){mlaTaxonomy.termsSearch.close()})},send:function(){var b={ps:a("#mla-terms-search-input").val(),action:"find_posts",_ajax_nonce:a("#mla-terms-search-ajax-nonce").val()},d=a("#mla-terms-search-search-div .spinner"),c=null;if(mla.settings.useSpinnerClass){d.addClass("is-active")}else{d.show()}a.ajax(ajaxurl,{type:"POST",data:b,dataType:mlaTaxonomy.settings.termsSearchDataType}).always(function(){if(mla.settings.useSpinnerClass){d.removeClass("is-active")}else{d.hide()}}).done(function(e){var f="no response.data",g=0;if("xml"===mlaTaxonomy.settings.termsSearchDataType){if("string"===typeof(e)){e={success:false,data:e}}else{c=wpAjax.parseAjaxResponse(e);if(c.errors){e={success:false,data:wpAjax.broken}}else{e={success:true,data:c.responses[0].data}}}}if(!e.success){if(e.responseData){f=e.data}a("#mla-terms-search-response-div").text(mlaTaxonomy.settings.ajaxDoneError+" ("+f+")")}else{a("#mla-terms-search-response-div").html(e.data);a("#mla-terms-search-response-div table tbody tr:eq(0)").before(a("#found-0-row").clone());g=a("#mla-terms-search-parent").val();a("#mla-terms-search-response-div #found-"+g).each(function(){a(this).prop("checked",true)})}}).fail(function(f,e){if(200==f.status){a("#mla-terms-search-response-div").text("("+e+") "+f.responseText)}else{a("#mla-terms-search-response-div").text(mlaTaxonomy.settings.ajaxFailError+" ("+e+"), jqXHR( "+f.status+", "+f.statusText+", "+f.responseText+")")}})}};a(document).ready(function(){mlaTaxonomy.termsSearch.init()})})(jQuery);
1
+ var jQuery,wpAjax,ajaxurl,mla_terms_search_vars,mlaTaxonomy={settings:{},utility:{},termsSearch:null};(function(a){mlaTaxonomy.settings=typeof mla_terms_search_vars==="undefined"?{}:mla_terms_search_vars;mla_terms_search_vars=void 0;mlaTaxonomy.termsSearch={init:function(){a("#mla-terms-search-open").click(function(b){b.preventDefault()});a("#mla-terms-search-submit").click(function(){mlaTaxonomy.termsSearch.close()});a("#mla-terms-search-close-div").click(mlaTaxonomy.termsSearch.close)},open:function(){var b=a("#mla-terms-search-overlay");if(b.length===0){a("body").append('<div id="mla-terms-search-overlay"></div>');mlaTaxonomy.termsSearch.overlay()}b.show();if(mlaTaxonomy.settings.useDashicons){a("#mla-terms-search-close-div").addClass("mla-terms-search-close-div-dashicons")}else{a("#mla-terms-search-close-div").html("x")}a("#mla-terms-search-div").show();a("#mla-terms-search-input ").focus().keyup(function(c){if(c.which==27){mlaTaxonomy.termsSearch.close()}});return false},close:function(){a("#mla-terms-search-response-div").html("");a("#mla-terms-search-div").hide();a("#mla-terms-search-overlay").hide()},overlay:function(){a("#mla-terms-search-overlay").on("click",function(){mlaTaxonomy.termsSearch.close()})},send:function(){var b={ps:a("#mla-terms-search-input").val(),action:"find_posts",_ajax_nonce:a("#mla-terms-search-ajax-nonce").val()},d=a("#mla-terms-search-search-div .spinner"),c=null;if(mla.settings.useSpinnerClass){d.addClass("is-active")}else{d.show()}a.ajax(ajaxurl,{type:"POST",data:b,dataType:mlaTaxonomy.settings.termsSearchDataType}).always(function(){if(mla.settings.useSpinnerClass){d.removeClass("is-active")}else{d.hide()}}).done(function(e){var f="no response.data",g=0;if("xml"===mlaTaxonomy.settings.termsSearchDataType){if("string"===typeof(e)){e={success:false,data:e}}else{c=wpAjax.parseAjaxResponse(e);if(c.errors){e={success:false,data:wpAjax.broken}}else{e={success:true,data:c.responses[0].data}}}}if(!e.success){if(e.responseData){f=e.data}a("#mla-terms-search-response-div").text(mlaTaxonomy.settings.ajaxDoneError+" ("+f+")")}else{a("#mla-terms-search-response-div").html(e.data);a("#mla-terms-search-response-div table tbody tr:eq(0)").before(a("#found-0-row").clone());g=a("#mla-terms-search-parent").val();a("#mla-terms-search-response-div #found-"+g).each(function(){a(this).prop("checked",true)})}}).fail(function(f,e){if(200==f.status){a("#mla-terms-search-response-div").text("("+e+") "+f.responseText)}else{a("#mla-terms-search-response-div").text(mlaTaxonomy.settings.ajaxFailError+" ("+e+"), jqXHR( "+f.status+", "+f.statusText+", "+f.responseText+")")}})}};a(document).ready(function(){mlaTaxonomy.termsSearch.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: 2019-01-01 17: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@fairtradejudaica.org>\n"
@@ -21,35 +21,40 @@ msgstr ""
21
  "X-Poedit-SearchPath-2: index.php\n"
22
 
23
  #: includes/class-mla-admin-columns-pro-support-423.php:178
24
- #: includes/class-mla-admin-columns-pro-support.php:175
25
- #: includes/class-mla-ajax.php:259 includes/class-mla-edit-media.php:990
 
26
  #: includes/class-mla-list-table.php:635
27
  msgid "Draft"
28
  msgstr ""
29
 
30
  #: includes/class-mla-admin-columns-pro-support-423.php:181
31
- #: includes/class-mla-admin-columns-pro-support.php:178
32
- #: includes/class-mla-ajax.php:253 includes/class-mla-edit-media.php:984
 
33
  #: includes/class-mla-list-table.php:638
34
  msgid "Scheduled"
35
  msgstr ""
36
 
37
  #: includes/class-mla-admin-columns-pro-support-423.php:184
38
- #: includes/class-mla-admin-columns-pro-support.php:181
39
- #: includes/class-mla-edit-media.php:987 includes/class-mla-list-table.php:641
 
40
  msgctxt "post state"
41
  msgid "Pending"
42
  msgstr ""
43
 
44
  #: includes/class-mla-admin-columns-pro-support-423.php:187
45
- #: includes/class-mla-admin-columns-pro-support.php:184
 
46
  #: includes/class-mla-list-table.php:644
47
  #: includes/class-mla-thumbnail-generation.php:645
48
  msgid "Trash"
49
  msgstr ""
50
 
51
  #: includes/class-mla-admin-columns-pro-support-423.php:395
52
- #: includes/class-mla-admin-columns-pro-support.php:392
 
53
  #: includes/class-mla-data-references.php:310
54
  #: includes/class-mla-data-references.php:656
55
  #: includes/class-mla-list-table.php:1070
@@ -60,10 +65,14 @@ msgstr ""
60
  #: includes/class-mla-admin-columns-pro-support-423.php:654
61
  #: includes/class-mla-admin-columns-pro-support-423.php:721
62
  #: includes/class-mla-admin-columns-pro-support-423.php:783
63
- #: includes/class-mla-admin-columns-pro-support.php:589
64
- #: includes/class-mla-admin-columns-pro-support.php:651
65
- #: includes/class-mla-admin-columns-pro-support.php:718
66
- #: includes/class-mla-admin-columns-pro-support.php:780
 
 
 
 
67
  #: includes/class-mla-core-options.php:447
68
  #: includes/class-mla-core-options.php:457
69
  #: includes/class-mla-core-options.php:467
@@ -79,14 +88,18 @@ msgstr ""
79
  #: includes/class-mla-admin-columns-pro-support-423.php:677
80
  #: includes/class-mla-admin-columns-pro-support-423.php:740
81
  #: includes/class-mla-admin-columns-pro-support-423.php:802
82
- #: includes/class-mla-admin-columns-pro-support.php:608
83
- #: includes/class-mla-admin-columns-pro-support.php:674
84
- #: includes/class-mla-admin-columns-pro-support.php:737
85
- #: includes/class-mla-admin-columns-pro-support.php:799
86
- #: includes/class-mla-edit-media.php:1072
87
- #: includes/class-mla-edit-media.php:1110
88
- #: includes/class-mla-edit-media.php:1146
89
- #: includes/class-mla-edit-media.php:1181
 
 
 
 
90
  #: includes/class-mla-list-table.php:1168
91
  #: includes/class-mla-list-table.php:1217
92
  #: includes/class-mla-list-table.php:1263
@@ -95,33 +108,37 @@ msgid "PARENT"
95
  msgstr ""
96
 
97
  #: includes/class-mla-admin-columns-pro-support-423.php:1027
98
- #: includes/class-mla-admin-columns-pro-support.php:1024
99
- #: includes/class-mla-core-options.php:605
100
- #: includes/class-mla-core-options.php:862
101
- #: includes/class-mla-core-options.php:893
102
- #: includes/class-mla-core-options.php:907
 
103
  #: includes/class-mla-list-table.php:493 includes/class-mla-list-table.php:1403
104
  #: includes/class-mla-settings-shortcodes-tab.php:629
105
  msgid "None"
106
  msgstr ""
107
 
108
  #: includes/class-mla-admin-columns-pro-support-423.php:1117
109
- #: includes/class-mla-admin-columns-pro-support.php:1114
 
110
  #: includes/class-mla-list-table.php:1542
111
  msgid "(Private post)"
112
  msgstr ""
113
 
114
  #: includes/class-mla-admin-columns-pro-support-423.php:1121
115
- #: includes/class-mla-admin-columns-pro-support.php:1118
116
- #: includes/class-mla-ajax.php:269 includes/class-mla-list-table.php:1453
 
117
  #: includes/class-mla-list-table.php:1482
118
  #: includes/class-mla-list-table.php:1546
119
  msgid "Y/m/d"
120
  msgstr ""
121
 
122
  #: includes/class-mla-admin-columns-pro-support-423.php:1134
123
- #: includes/class-mla-admin-columns-pro-support.php:1131
124
- #: includes/class-mla-core-options.php:1309
 
125
  #: includes/class-mla-list-table.php:1559
126
  msgctxt "table_view_singular"
127
  msgid "Unattached"
@@ -129,37 +146,37 @@ msgstr ""
129
 
130
  #: includes/class-mla-admin-columns-support-deprecated.php:33
131
  #: includes/class-mla-admin-columns-support.php:43
132
- #: includes/class-mla-core-options.php:555 includes/class-mla-settings.php:429
133
  #: includes/class-mla-settings.php:1452 includes/class-mla-settings.php:1468
134
- #: index.php:48
135
  msgid "Media Library Assistant"
136
  msgstr ""
137
 
138
  #: includes/class-mla-admin-columns-support-deprecated.php:34
139
  #: includes/class-mla-admin-columns-support.php:44
140
- #: includes/class-mla-core-options.php:564
141
  msgid "Assistant"
142
  msgstr ""
143
 
144
- #: includes/class-mla-ajax.php:240 includes/class-mla-core-options.php:1185
145
- #: includes/class-mla-data.php:3959 includes/class-mla-edit-media.php:482
146
- #: includes/class-mla-main.php:1914 includes/class-mla-main.php:2219
147
  #: includes/class-mla-objects.php:348 includes/class-mla-options.php:465
148
  #: includes/mla-main-search-box-template.php:47
149
  #: includes/mla-media-modal-js-template.php:40
150
  msgid "Title"
151
  msgstr ""
152
 
153
- #: includes/class-mla-ajax.php:240 includes/class-mla-main.php:1915
154
  #: includes/class-mla-thumbnail-generation.php:637
155
  msgid "Type"
156
  msgstr ""
157
 
158
- #: includes/class-mla-ajax.php:240 includes/class-mla-main.php:1916
159
  msgid "Date"
160
  msgstr ""
161
 
162
- #: includes/class-mla-ajax.php:240 includes/class-mla-main.php:1917
163
  #: includes/class-mla-settings-custom-fields-tab.php:503
164
  #: includes/class-mla-settings-custom-fields-tab.php:803
165
  #: includes/class-mla-settings-iptc-exif-tab.php:511
@@ -168,52 +185,54 @@ msgstr ""
168
  msgid "Status"
169
  msgstr ""
170
 
171
- #: includes/class-mla-ajax.php:244 includes/class-mla-list-table.php:879
172
- #: includes/class-mla-list-table.php:1044 includes/class-mla-main.php:445
173
  #: includes/class-mla-polylang-support.php:363
174
  #: includes/class-mla-thumbnail-generation.php:97
175
  msgid "(no title)"
176
  msgstr ""
177
 
178
- #: includes/class-mla-ajax.php:250
179
  msgid "Published"
180
  msgstr ""
181
 
182
- #: includes/class-mla-ajax.php:256
183
  msgid "Pending Review"
184
  msgstr ""
185
 
186
- #: includes/class-mla-ajax.php:298 includes/class-mla-ajax.php:305
187
- #: includes/class-mla-ajax.php:314 includes/class-mla-core.php:845
188
  #: includes/class-mla-core.php:863 includes/class-mla-core.php:1288
189
  #: includes/class-mla-core.php:1294 includes/class-mla-core.php:1298
190
  #: includes/class-mla-data-pdf.php:216 includes/class-mla-data-pdf.php:517
191
  #: includes/class-mla-data-pdf.php:519 includes/class-mla-data-pdf.php:565
192
- #: includes/class-mla-data-pdf.php:749 includes/class-mla-data-query.php:695
193
  #: includes/class-mla-data.php:50 includes/class-mla-data.php:108
194
  #: includes/class-mla-data.php:196 includes/class-mla-data.php:242
195
  #: includes/class-mla-data.php:345 includes/class-mla-data.php:501
196
- #: includes/class-mla-data.php:564 includes/class-mla-data.php:1473
197
- #: includes/class-mla-data.php:1671 includes/class-mla-data.php:1677
198
- #: includes/class-mla-data.php:2074 includes/class-mla-data.php:2078
199
- #: includes/class-mla-data.php:3221 includes/class-mla-data.php:3263
200
- #: includes/class-mla-data.php:3307 includes/class-mla-data.php:3687
201
- #: includes/class-mla-data.php:3700 includes/class-mla-data.php:3722
202
- #: includes/class-mla-data.php:3936 includes/class-mla-data.php:3982
203
- #: includes/class-mla-data.php:4015 includes/class-mla-data.php:4031
204
- #: includes/class-mla-data.php:4284 includes/class-mla-edit-media.php:323
205
- #: includes/class-mla-edit-media.php:896 includes/class-mla-edit-media.php:938
206
- #: includes/class-mla-main.php:666 includes/class-mla-main.php:789
207
- #: includes/class-mla-main.php:791 includes/class-mla-main.php:794
208
- #: includes/class-mla-main.php:1199 includes/class-mla-main.php:1255
209
- #: includes/class-mla-main.php:1280 includes/class-mla-main.php:1417
210
- #: includes/class-mla-main.php:1467 includes/class-mla-main.php:1563
211
- #: includes/class-mla-main.php:1592 includes/class-mla-main.php:1730
212
- #: includes/class-mla-main.php:1737 includes/class-mla-main.php:1900
213
- #: includes/class-mla-main.php:2026 includes/class-mla-main.php:2351
214
- #: includes/class-mla-main.php:2359 includes/class-mla-main.php:2383
215
- #: includes/class-mla-main.php:2391 includes/class-mla-main.php:2423
216
- #: includes/class-mla-main.php:2431 includes/class-mla-media-modal.php:600
 
 
217
  #: includes/class-mla-mime-types.php:801 includes/class-mla-mime-types.php:1193
218
  #: includes/class-mla-mime-types.php:1281
219
  #: includes/class-mla-mime-types.php:1427
@@ -295,11 +314,11 @@ msgstr ""
295
  #: includes/class-mla-settings.php:1794 includes/class-mla-settings.php:1801
296
  #: includes/class-mla-settings.php:1810 includes/class-mla-settings.php:1847
297
  #: includes/class-mla-settings.php:1855 includes/class-mla-settings.php:1864
298
- #: includes/class-mla-shortcode-support.php:2075
299
- #: includes/class-mla-shortcode-support.php:2166
300
- #: includes/class-mla-shortcode-support.php:3429
301
- #: includes/class-mla-shortcode-support.php:3556
302
- #: includes/class-mla-shortcode-support.php:3588
303
  #: includes/class-mla-shortcode-support.php:4610
304
  #: includes/class-mla-shortcode-support.php:5021
305
  #: includes/class-mla-shortcode-support.php:5058
@@ -310,11 +329,11 @@ msgstr ""
310
  msgid "ERROR"
311
  msgstr ""
312
 
313
- #: includes/class-mla-ajax.php:298 includes/class-mla-main.php:1730
314
  msgid "No post ID found"
315
  msgstr ""
316
 
317
- #: includes/class-mla-ajax.php:305 includes/class-mla-main.php:1737
318
  #: includes/class-mla-polylang-support.php:260
319
  msgid "You are not allowed to edit this Attachment."
320
  msgstr ""
@@ -352,7 +371,7 @@ msgid "Where-used database access tuning"
352
  msgstr ""
353
 
354
  #: includes/class-mla-core-options.php:442
355
- #: includes/class-mla-edit-media.php:831 includes/class-mla-edit-media.php:1083
356
  msgid "Featured in"
357
  msgstr ""
358
 
@@ -366,7 +385,7 @@ msgid "Search database posts and pages for Featured Image attachments."
366
  msgstr ""
367
 
368
  #: includes/class-mla-core-options.php:452
369
- #: includes/class-mla-edit-media.php:835 includes/class-mla-edit-media.php:1122
370
  msgid "Inserted in"
371
  msgstr ""
372
 
@@ -382,7 +401,7 @@ msgid ""
382
  msgstr ""
383
 
384
  #: includes/class-mla-core-options.php:462
385
- #: includes/class-mla-edit-media.php:839 includes/class-mla-edit-media.php:1157
386
  #: includes/class-mla-settings.php:1560
387
  msgid "Gallery in"
388
  msgstr ""
@@ -393,7 +412,7 @@ msgid "Dynamic"
393
  msgstr ""
394
 
395
  #: includes/class-mla-core-options.php:467
396
- #: includes/class-mla-core-options.php:477 includes/class-mla-main.php:2254
397
  #: includes/class-mla-settings-custom-fields-tab.php:733
398
  #: includes/class-mla-settings-iptc-exif-tab.php:814
399
  msgid "Refresh"
@@ -412,7 +431,7 @@ msgid ""
412
  msgstr ""
413
 
414
  #: includes/class-mla-core-options.php:472
415
- #: includes/class-mla-edit-media.php:843 includes/class-mla-edit-media.php:1192
416
  #: includes/class-mla-settings.php:1570
417
  msgid "MLA Gallery in"
418
  msgstr ""
@@ -444,106 +463,104 @@ msgid "Show Count Column"
444
  msgstr ""
445
 
446
  #: includes/class-mla-core-options.php:499
447
- msgid ""
448
- "Check this option to display the Count column on Categories and Tags "
449
- "taxonomy edit screens."
450
  msgstr ""
451
 
452
- #: includes/class-mla-core-options.php:503
453
  msgid ""
454
  "Check the \"<strong>Support</strong>\" box to add the taxonomy to the "
455
  "Assistant and the Edit Media screen."
456
  msgstr ""
457
 
458
- #: includes/class-mla-core-options.php:504
459
  msgid ""
460
  "Check the \"<strong>Inline Edit</strong>\" box to display the taxonomy in "
461
  "the Quick Edit and Bulk Edit areas."
462
  msgstr ""
463
 
464
- #: includes/class-mla-core-options.php:505
465
  msgid ""
466
  "Check the \"<strong>Term Search</strong>\" box to add the taxonomy to the "
467
  "\"Search Media/Terms\" list."
468
  msgstr ""
469
 
470
- #: includes/class-mla-core-options.php:506
471
- #: includes/class-mla-core-options.php:744 includes/class-mla-settings.php:1088
472
  #: includes/class-mla-settings.php:1089 includes/class-mla-settings.php:1090
473
  msgid "For complete documentation"
474
  msgstr ""
475
 
476
- #: includes/class-mla-core-options.php:506
477
- #: includes/class-mla-core-options.php:744 includes/class-mla-settings.php:1088
478
  #: includes/class-mla-settings.php:1089 includes/class-mla-settings.php:1090
479
  msgid "click here"
480
  msgstr ""
481
 
482
- #: includes/class-mla-core-options.php:508
483
  msgid ""
484
  "Check the \"<strong>Checklist</strong>\" box to enable the checklist-style "
485
  "meta box for a flat taxonomy."
486
  msgstr ""
487
 
488
- #: includes/class-mla-core-options.php:509
489
  msgid ""
490
  "You must also check the <strong>\"Enable enhanced checklist taxonomies\"</"
491
  "strong> box below to enable this feature."
492
  msgstr ""
493
 
494
- #: includes/class-mla-core-options.php:510
495
  msgid ""
496
  "Check the \"<strong>Checked On Top</strong>\" box to move checked terms to "
497
  "the top of the checklist-style meta box."
498
  msgstr ""
499
 
500
- #: includes/class-mla-core-options.php:511
501
  msgid ""
502
  "Check the \"<strong>Inline Add Term</strong>\" box to support adding terms "
503
  "in the Quick Edit and Bulk Edit areas."
504
  msgstr ""
505
 
506
- #: includes/class-mla-core-options.php:512
507
  msgid ""
508
  "Use the \"<strong>List Filter</strong>\" option to select the taxonomy (or "
509
  "custom field) on which to filter the Assistant table listing."
510
  msgstr ""
511
 
512
- #: includes/class-mla-core-options.php:513
513
  msgid ""
514
  "To <strong>filter on a custom field</strong>, enter the field name and "
515
  "select ASC (Ascending) or DESC (Descending) order."
516
  msgstr ""
517
 
518
- #: includes/class-mla-core-options.php:542
519
  msgid "Media/Assistant Screen Options"
520
  msgstr ""
521
 
522
- #: includes/class-mla-core-options.php:547
523
  msgid "Admin Menu Options"
524
  msgstr ""
525
 
526
- #: includes/class-mla-core-options.php:552
527
  msgid "Page Title"
528
  msgstr ""
529
 
530
- #: includes/class-mla-core-options.php:557
531
  msgid "Enter the title for the Media/Assistant submenu page"
532
  msgstr ""
533
 
534
- #: includes/class-mla-core-options.php:561
535
  msgid "Menu Title"
536
  msgstr ""
537
 
538
- #: includes/class-mla-core-options.php:566
539
  msgid "Enter the title for the Media/Assistant submenu entry"
540
  msgstr ""
541
 
542
- #: includes/class-mla-core-options.php:570
543
  msgid "Submenu Order"
544
  msgstr ""
545
 
546
- #: includes/class-mla-core-options.php:575
547
  msgid ""
548
  "Enter the position of the Media/Assistant submenu entry.<br>&nbsp;&nbsp;0 = "
549
  "natural order (at bottom),&nbsp;&nbsp;&nbsp;&nbsp;1 - 4 = at top<br>&nbsp;"
@@ -551,304 +568,304 @@ msgid ""
551
  "\""
552
  msgstr ""
553
 
554
- #: includes/class-mla-core-options.php:579
555
  msgid "Display Media/Library"
556
  msgstr ""
557
 
558
- #: includes/class-mla-core-options.php:583
559
  msgid ""
560
  "Check/uncheck this option to display/remove the WordPress Media/Library "
561
  "submenu entry."
562
  msgstr ""
563
 
564
- #: includes/class-mla-core-options.php:587
565
  msgid "Display Media/Assistant list/grid view switcher"
566
  msgstr ""
567
 
568
- #: includes/class-mla-core-options.php:591
569
  msgid ""
570
  "Check/uncheck this option to display/remove the \"list/grid\" view switcher "
571
  "on the Media/Assistant submenu."
572
  msgstr ""
573
 
574
- #: includes/class-mla-core-options.php:595
575
  msgid "Table Defaults"
576
  msgstr ""
577
 
578
- #: includes/class-mla-core-options.php:600
579
  msgid "Order By"
580
  msgstr ""
581
 
582
- #: includes/class-mla-core-options.php:605
583
  msgid "ID/Parent"
584
  msgstr ""
585
 
586
- #: includes/class-mla-core-options.php:606
587
  msgid "Select the column for the sort order of the Assistant table listing."
588
  msgstr ""
589
 
590
- #: includes/class-mla-core-options.php:610
591
  msgid "Order"
592
  msgstr ""
593
 
594
- #: includes/class-mla-core-options.php:615
595
  msgid "Ascending"
596
  msgstr ""
597
 
598
- #: includes/class-mla-core-options.php:615
599
  msgid "Descending"
600
  msgstr ""
601
 
602
- #: includes/class-mla-core-options.php:616
603
- #: includes/class-mla-core-options.php:872
604
  msgid "Choose the sort order."
605
  msgstr ""
606
 
607
- #: includes/class-mla-core-options.php:620 includes/class-mla-main.php:587
608
  msgid "Entries per page"
609
  msgstr ""
610
 
611
- #: includes/class-mla-core-options.php:624
612
  msgid "Enter the number of Media/Assistant submenu table items per page."
613
  msgstr ""
614
 
615
- #: includes/class-mla-core-options.php:633
616
  msgid "Views Width"
617
  msgstr ""
618
 
619
- #: includes/class-mla-core-options.php:638
620
  msgid "Enter the width for the views list, in pixels (px) or percent (%)"
621
  msgstr ""
622
 
623
- #: includes/class-mla-core-options.php:642
624
  msgid "Icon Size"
625
  msgstr ""
626
 
627
- #: includes/class-mla-core-options.php:647
628
  msgid "Enter the size of the thumbnail/icon images, in pixels"
629
  msgstr ""
630
 
631
- #: includes/class-mla-core-options.php:651
632
  msgid "Show Primary Column File Name"
633
  msgstr ""
634
 
635
- #: includes/class-mla-core-options.php:655
636
  msgid ""
637
  "Check/uncheck this option to show/omit the file name from the primary column."
638
  msgstr ""
639
 
640
- #: includes/class-mla-core-options.php:659
641
  msgid "QuickTags editor for bulk description"
642
  msgstr ""
643
 
644
- #: includes/class-mla-core-options.php:663
645
  msgid ""
646
  "Check this option to use the QuickTags editor for the Description field in "
647
  "the Bulk Edit area."
648
  msgstr ""
649
 
650
- #: includes/class-mla-core-options.php:667
651
  msgid "Bulk Chunk Size"
652
  msgstr ""
653
 
654
- #: includes/class-mla-core-options.php:672
655
  msgid "Enter the size of the Bulk Edit and Map All processing chunks"
656
  msgstr ""
657
 
658
- #: includes/class-mla-core-options.php:676
659
  msgid "Taxonomy Filter parameters"
660
  msgstr ""
661
 
662
- #: includes/class-mla-core-options.php:681
663
  msgid "Maximum Depth"
664
  msgstr ""
665
 
666
- #: includes/class-mla-core-options.php:686
667
  msgid ""
668
  "Enter the number of levels displayed for hierarchial taxonomies; enter zero "
669
  "for no limit."
670
  msgstr ""
671
 
672
- #: includes/class-mla-core-options.php:690
673
  msgid "Include Children"
674
  msgstr ""
675
 
676
- #: includes/class-mla-core-options.php:694
677
  msgid ""
678
  "Check/uncheck this option to include/exclude children for hierarchical "
679
  "taxonomies."
680
  msgstr ""
681
 
682
- #: includes/class-mla-core-options.php:698
683
  msgid "Search Media Defaults"
684
  msgstr ""
685
 
686
- #: includes/class-mla-core-options.php:703
687
  msgid "Display Search Controls"
688
  msgstr ""
689
 
690
- #: includes/class-mla-core-options.php:707
691
- #: includes/class-mla-core-options.php:833
692
  msgid ""
693
  "Check/uncheck this option to display/hide the and/or connector and search "
694
  "fields controls."
695
  msgstr ""
696
 
697
- #: includes/class-mla-core-options.php:711
698
  msgid ""
699
  "Use these controls to set defaults for the and/or connector and search "
700
  "fields controls.<br>These defaults will be used for the Search Media boxes "
701
  "on both the Media/Assistant submenu<br>and the Media Manager Modal Window."
702
  msgstr ""
703
 
704
- #: includes/class-mla-core-options.php:725
705
  msgid "Media/Edit Media Enhancements"
706
  msgstr ""
707
 
708
- #: includes/class-mla-core-options.php:730
709
  msgid "Enable &quot;enhanced checklist&quot; taxonomies"
710
  msgstr ""
711
 
712
- #: includes/class-mla-core-options.php:734
713
  msgid ""
714
  "Check this option to enable the \"? Search\" feature for hierarchical "
715
  "taxonomies, e.g., Att. Categories.<br>&nbsp;&nbsp;This option also enables "
716
  "the \"checklist-style\" support for flat taxonomies, e.g., Att. Tags."
717
  msgstr ""
718
 
719
- #: includes/class-mla-core-options.php:738
720
  msgid "Enable Edit Media additional meta boxes"
721
  msgstr ""
722
 
723
- #: includes/class-mla-core-options.php:742
724
  msgid ""
725
  "Check this option to add \"Parent Info\", \"Menu Order\", \"Attachment "
726
  "Metadata\" and four \"where-used\" meta boxes to the Edit Media screen."
727
  msgstr ""
728
 
729
- #: includes/class-mla-core-options.php:743
730
  msgid "You can also use Filters to customize the meta boxes."
731
  msgstr ""
732
 
733
- #: includes/class-mla-core-options.php:748
734
  msgid "Media/Add New Enhancements"
735
  msgstr ""
736
 
737
- #: includes/class-mla-core-options.php:753
738
  msgid "Enable &quot;bulk edit&quot; area"
739
  msgstr ""
740
 
741
- #: includes/class-mla-core-options.php:757
742
  msgid ""
743
  "Check this option to enable the \"Bulk Edit area\" feature on the Media/Add "
744
  "New screen."
745
  msgstr ""
746
 
747
- #: includes/class-mla-core-options.php:761
748
  msgid "&quot;bulk edit&quot; area on top"
749
  msgstr ""
750
 
751
- #: includes/class-mla-core-options.php:765
752
  msgid ""
753
  "Check this option to move the \"Bulk Edit area\" to the top of the Media/Add "
754
  "New screen."
755
  msgstr ""
756
 
757
- #: includes/class-mla-core-options.php:769
758
  msgid "&quot;bulk edit&quot; area initially open"
759
  msgstr ""
760
 
761
- #: includes/class-mla-core-options.php:772
762
  msgid ""
763
  "Check this option to automatically open the \"Bulk Edit area\" when the "
764
  "Media/Add New screen is displayed."
765
  msgstr ""
766
 
767
- #: includes/class-mla-core-options.php:776
768
  msgid "Media Manager/Media Grid Enhancements"
769
  msgstr ""
770
 
771
- #: includes/class-mla-core-options.php:781
772
  msgid "Enable Media Grid Enhancements"
773
  msgstr ""
774
 
775
- #: includes/class-mla-core-options.php:784
776
  msgid ""
777
  "Check/uncheck this option to enable/disable Media Library Grid View "
778
  "Enhancements."
779
  msgstr ""
780
 
781
- #: includes/class-mla-core-options.php:788
782
  msgid "Enable Media Manager Enhancements"
783
  msgstr ""
784
 
785
- #: includes/class-mla-core-options.php:791
786
  msgid ""
787
  "Check/uncheck this option to enable/disable Media Manager Modal Window "
788
  "Enhancements."
789
  msgstr ""
790
 
791
- #: includes/class-mla-core-options.php:795
792
  msgid "Media Manager Enhanced MIME Type filter"
793
  msgstr ""
794
 
795
- #: includes/class-mla-core-options.php:798
796
  msgid ""
797
  "Check this option to filter by more MIME Types, e.g., text, applications."
798
  msgstr ""
799
 
800
- #: includes/class-mla-core-options.php:802
801
  msgid "Media Manager Month and Year filter"
802
  msgstr ""
803
 
804
- #: includes/class-mla-core-options.php:805
805
  msgid "Check this option to filter by month and year uploaded."
806
  msgstr ""
807
 
808
- #: includes/class-mla-core-options.php:809
809
  msgid "Media Manager Category/Tag filter"
810
  msgstr ""
811
 
812
- #: includes/class-mla-core-options.php:812
813
  msgid "Check this option to filter by taxonomy terms."
814
  msgstr ""
815
 
816
- #: includes/class-mla-core-options.php:816
817
  msgid "Media Manager Terms Search popup"
818
  msgstr ""
819
 
820
- #: includes/class-mla-core-options.php:819
821
  msgid "Check this option to enable the \"Terms Search\" popup window."
822
  msgstr ""
823
 
824
- #: includes/class-mla-core-options.php:823
825
  msgid "Media Manager Enhanced Search Media box"
826
  msgstr ""
827
 
828
- #: includes/class-mla-core-options.php:826
829
  msgid "Check this option to enable search box enhancements."
830
  msgstr ""
831
 
832
- #: includes/class-mla-core-options.php:830
833
  msgid "Media Manager Enhanced Search Media Controls"
834
  msgstr ""
835
 
836
- #: includes/class-mla-core-options.php:837
837
  msgid "Media Manager Checklist meta boxes"
838
  msgstr ""
839
 
840
- #: includes/class-mla-core-options.php:840
841
  msgid ""
842
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
843
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for any taxonomy that uses a "
844
  "<strong>\"checklist-style\"</strong> meta box."
845
  msgstr ""
846
 
847
- #: includes/class-mla-core-options.php:844
848
  msgid "Media Manager Flat meta boxes"
849
  msgstr ""
850
 
851
- #: includes/class-mla-core-options.php:847
852
  msgid ""
853
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
854
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies</"
@@ -856,211 +873,211 @@ msgid ""
856
  "style\" meta box."
857
  msgstr ""
858
 
859
- #: includes/class-mla-core-options.php:851
860
  msgid "Media Manager auto-fill meta boxes"
861
  msgstr ""
862
 
863
- #: includes/class-mla-core-options.php:854
864
  msgid ""
865
  "Check this option to automatically fill MLA-enhanced meta boxes in the "
866
  "\"ATTACHMENT DETAILS\" pane<br>&nbsp;&nbsp;when the item is selected."
867
  msgstr ""
868
 
869
- #: includes/class-mla-core-options.php:858
870
  msgid "Media Manager Order By"
871
  msgstr ""
872
 
873
- #: includes/class-mla-core-options.php:862
874
- #: includes/class-mla-core-options.php:871
875
- #: includes/class-mla-core-options.php:893
876
- #: includes/class-mla-core-options.php:907
877
- #: includes/class-mla-core-options.php:921 includes/class-mla-settings.php:1139
878
  msgid "Media Manager Default"
879
  msgstr ""
880
 
881
- #: includes/class-mla-core-options.php:862
882
  msgid "Title/Name"
883
  msgstr ""
884
 
885
- #: includes/class-mla-core-options.php:863
886
  msgid ""
887
  "If you want to override the Media Manager default,<br>&nbsp;&nbsp;select a "
888
  "column for the sort order of the Media Library listing."
889
  msgstr ""
890
 
891
- #: includes/class-mla-core-options.php:867
892
  msgid "Media Manager Order"
893
  msgstr ""
894
 
895
- #: includes/class-mla-core-options.php:876
896
  msgid "Attachment Display Settings"
897
  msgstr ""
898
 
899
- #: includes/class-mla-core-options.php:881
900
  msgid "Media Manager Apply Display Settings"
901
  msgstr ""
902
 
903
- #: includes/class-mla-core-options.php:884
904
  msgid ""
905
  "Check this option to always start with the Attachment Display Settings set "
906
  "here,<br>&nbsp;&nbsp;overriding browser-/cookie-based defaults."
907
  msgstr ""
908
 
909
- #: includes/class-mla-core-options.php:888
910
- #: includes/class-mla-core-options.php:890
911
  msgid "Alignment"
912
  msgstr ""
913
 
914
- #: includes/class-mla-core-options.php:890
915
- #: includes/class-mla-core-options.php:904
916
- #: includes/class-mla-core-options.php:918
917
  #, php-format
918
  msgid ""
919
  "Select a value for the default %1$s option in the Attachment Display "
920
  "Settings."
921
  msgstr ""
922
 
923
- #: includes/class-mla-core-options.php:893
924
  msgid "Left"
925
  msgstr ""
926
 
927
- #: includes/class-mla-core-options.php:893
928
  msgid "Center"
929
  msgstr ""
930
 
931
- #: includes/class-mla-core-options.php:893
932
  msgid "Right"
933
  msgstr ""
934
 
935
- #: includes/class-mla-core-options.php:902
936
- #: includes/class-mla-core-options.php:904
937
  msgid "Link To"
938
  msgstr ""
939
 
940
- #: includes/class-mla-core-options.php:907
941
  msgid "Media File"
942
  msgstr ""
943
 
944
- #: includes/class-mla-core-options.php:907
945
  msgid "Attachment Page"
946
  msgstr ""
947
 
948
- #: includes/class-mla-core-options.php:907
949
  msgid "Custom URL"
950
  msgstr ""
951
 
952
- #: includes/class-mla-core-options.php:916
953
- #: includes/class-mla-core-options.php:918
954
  msgid "Size"
955
  msgstr ""
956
 
957
- #: includes/class-mla-core-options.php:921
958
  #: includes/class-mla-thumbnail-generation.php:582
959
  #: includes/class-mla-thumbnail-generation.php:648
960
  msgid "Thumbnail"
961
  msgstr ""
962
 
963
- #: includes/class-mla-core-options.php:921
964
  msgid "Medium"
965
  msgstr ""
966
 
967
- #: includes/class-mla-core-options.php:921
968
  msgid "Large"
969
  msgstr ""
970
 
971
- #: includes/class-mla-core-options.php:921
972
  msgid "Full Size"
973
  msgstr ""
974
 
975
- #: includes/class-mla-core-options.php:930
976
  msgid "Uninstall (Delete) Plugin Settings"
977
  msgstr ""
978
 
979
- #: includes/class-mla-core-options.php:935
980
  msgid "Delete Option Settings"
981
  msgstr ""
982
 
983
- #: includes/class-mla-core-options.php:938
984
  msgid ""
985
  "Check this option to remove all MLA option settings from the database when "
986
  "the plugin is deleted.<br>&nbsp;&nbsp;<strong>You can make a backup copy</"
987
  "strong> of your settings below by clicking \""
988
  msgstr ""
989
 
990
- #: includes/class-mla-core-options.php:938 includes/class-mla-settings.php:1064
991
  msgid "Export ALL Settings"
992
  msgstr ""
993
 
994
- #: includes/class-mla-core-options.php:942
995
  msgid "Delete Option Settings Backups"
996
  msgstr ""
997
 
998
- #: includes/class-mla-core-options.php:945
999
  msgid ""
1000
  "Check this option to remove the <code>/wp-content/mla-backup</code> "
1001
  "directory and its contents when the plugin is deleted."
1002
  msgstr ""
1003
 
1004
- #: includes/class-mla-core-options.php:949
1005
  msgid "Default [mla_gallery] Templates and Settings"
1006
  msgstr ""
1007
 
1008
- #: includes/class-mla-core-options.php:954
1009
- #: includes/class-mla-core-options.php:960
1010
- #: includes/class-mla-core-options.php:998
1011
- #: includes/class-mla-core-options.php:1004
1012
  msgid "Style Template"
1013
  msgstr ""
1014
 
1015
- #: includes/class-mla-core-options.php:960
1016
- #: includes/class-mla-core-options.php:970
1017
- #: includes/class-mla-core-options.php:1004
1018
- #: includes/class-mla-core-options.php:1014
1019
  #, php-format
1020
  msgid "Select the default %1$s for your %2$s shortcodes."
1021
  msgstr ""
1022
 
1023
- #: includes/class-mla-core-options.php:964
1024
- #: includes/class-mla-core-options.php:1008
1025
  msgid "Markup Template"
1026
  msgstr ""
1027
 
1028
- #: includes/class-mla-core-options.php:970
1029
- #: includes/class-mla-core-options.php:1014
1030
  #: includes/class-mla-settings-shortcodes-tab.php:85
1031
  msgid "markup template"
1032
  msgstr ""
1033
 
1034
- #: includes/class-mla-core-options.php:974
1035
- #: includes/class-mla-core-options.php:1018
1036
  msgid "Default columns"
1037
  msgstr ""
1038
 
1039
- #: includes/class-mla-core-options.php:978
1040
  msgid ""
1041
  "Enter the number of [mla_tag_cloud] columns; must be a positive integer."
1042
  msgstr ""
1043
 
1044
- #: includes/class-mla-core-options.php:982
1045
- #: includes/class-mla-core-options.php:1026
1046
  msgid "Default mla_margin"
1047
  msgstr ""
1048
 
1049
- #: includes/class-mla-core-options.php:986
1050
- #: includes/class-mla-core-options.php:1030
1051
  msgid ""
1052
  "Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
1053
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"none\" to "
1054
  "remove the property entirely."
1055
  msgstr ""
1056
 
1057
- #: includes/class-mla-core-options.php:990
1058
- #: includes/class-mla-core-options.php:1034
1059
  msgid "Default mla_itemwidth"
1060
  msgstr ""
1061
 
1062
- #: includes/class-mla-core-options.php:994
1063
- #: includes/class-mla-core-options.php:1038
1064
  msgid ""
1065
  "Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
1066
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"calculate"
@@ -1070,19 +1087,19 @@ msgid ""
1070
  "the property entirely."
1071
  msgstr ""
1072
 
1073
- #: includes/class-mla-core-options.php:1022
1074
  msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
1075
  msgstr ""
1076
 
1077
- #: includes/class-mla-core-options.php:1042
1078
  msgid "Thumbnail Substitution Support, mla_viewer"
1079
  msgstr ""
1080
 
1081
- #: includes/class-mla-core-options.php:1047
1082
  msgid "Enable thumbnail substitution"
1083
  msgstr ""
1084
 
1085
- #: includes/class-mla-core-options.php:1050
1086
  msgid ""
1087
  "Check this option to allow the \"mla_viewer\" to generate thumbnail images "
1088
  "for PDF documents. Thumbnails are generated dynamically, each time the item "
@@ -1091,32 +1108,32 @@ msgid ""
1091
  "strong>"
1092
  msgstr ""
1093
 
1094
- #: includes/class-mla-core-options.php:1054
1095
  msgid "Enable Featured Images"
1096
  msgstr ""
1097
 
1098
- #: includes/class-mla-core-options.php:1057
1099
  msgid ""
1100
  "Check this option to extend Featured Image support to all Media Library "
1101
  "items. The Featured Image can be used as a thumbnail image for the item in "
1102
  "an [mla_gallery] display."
1103
  msgstr ""
1104
 
1105
- #: includes/class-mla-core-options.php:1061
1106
  msgid "Enable Featured Image Generation"
1107
  msgstr ""
1108
 
1109
- #: includes/class-mla-core-options.php:1064
1110
  msgid ""
1111
  "Check this option to enable the \"Thumbnail\" generation action in the Media/"
1112
  "Assistant submenu Bulk Actions dropdown."
1113
  msgstr ""
1114
 
1115
- #: includes/class-mla-core-options.php:1068
1116
  msgid "Enable explicit Ghostscript check"
1117
  msgstr ""
1118
 
1119
- #: includes/class-mla-core-options.php:1071
1120
  msgid ""
1121
  "Check this option to enable the explicit check for Ghostscript support "
1122
  "required for thumbnail generation. If your Ghostscript software is in a non-"
@@ -1125,37 +1142,37 @@ msgid ""
1125
  "leave this option checked unless you know it is safe to turn it off."
1126
  msgstr ""
1127
 
1128
- #: includes/class-mla-core-options.php:1075
1129
  msgid "Ghostscript path"
1130
  msgstr ""
1131
 
1132
- #: includes/class-mla-core-options.php:1079
1133
  msgid ""
1134
  "If your &ldquo;gs&rdquo; executable is in a non-standard location, enter the "
1135
  "full path and filename here, e.g., &ldquo;/usr/bin/gs&rdquo;. It will "
1136
  "override the search for Ghostscript in other places."
1137
  msgstr ""
1138
 
1139
- #: includes/class-mla-core-options.php:1099
1140
  msgid "Enable custom field mapping"
1141
  msgstr ""
1142
 
1143
- #: includes/class-mla-core-options.php:1102
1144
- #: includes/class-mla-core-options.php:1109
1145
- #: includes/class-mla-core-options.php:1116
1146
- #: includes/class-mla-core-options.php:1133
1147
  msgid "See Help menu."
1148
  msgstr ""
1149
 
1150
- #: includes/class-mla-core-options.php:1106
1151
  msgid "Enable custom field mapping when adding new media"
1152
  msgstr ""
1153
 
1154
- #: includes/class-mla-core-options.php:1113
1155
  msgid "Enable custom field mapping when updating media metadata"
1156
  msgstr ""
1157
 
1158
- #: includes/class-mla-core-options.php:1120
1159
  msgid ""
1160
  "Update the custom field mapping values above, then click Save Changes to "
1161
  "make the updates permanent.<br>You can also make temporary updates and click "
@@ -1163,33 +1180,33 @@ msgid ""
1163
  "saving any rule changes."
1164
  msgstr ""
1165
 
1166
- #: includes/class-mla-core-options.php:1130
1167
  msgid "Enable IPTC/EXIF Mapping"
1168
  msgstr ""
1169
 
1170
- #: includes/class-mla-core-options.php:1137
1171
  msgid "Enable IPTC/EXIF Mapping when adding new media"
1172
  msgstr ""
1173
 
1174
- #: includes/class-mla-core-options.php:1140
1175
  msgid ""
1176
  "Check this option to enable mapping when uploading new media (attachments)."
1177
  "<br>&nbsp;&nbsp;Does NOT affect the operation of the \"Map\" buttons on the "
1178
  "bulk edit, single edit and settings screens."
1179
  msgstr ""
1180
 
1181
- #: includes/class-mla-core-options.php:1144
1182
  msgid "Enable IPTC/EXIF Mapping when updating media metadata"
1183
  msgstr ""
1184
 
1185
- #: includes/class-mla-core-options.php:1147
1186
  msgid ""
1187
  "Check this option to enable mapping when media (attachments) metadata is "
1188
  "regenerated,<br>&nbsp;&nbsp;e.g., when the Media/Edit Media \"Edit Image\" "
1189
  "functions are used."
1190
  msgstr ""
1191
 
1192
- #: includes/class-mla-core-options.php:1151
1193
  msgid ""
1194
  "Update the standard field mapping values above, then click <strong>Save "
1195
  "Changes</strong> to make the updates permanent.<br>You can also make "
@@ -1198,13 +1215,13 @@ msgid ""
1198
  "changes."
1199
  msgstr ""
1200
 
1201
- #: includes/class-mla-core-options.php:1161
1202
  msgid ""
1203
  "Update the taxonomy term mapping values above, then click <strong>Save "
1204
  "Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
1205
  msgstr ""
1206
 
1207
- #: includes/class-mla-core-options.php:1171
1208
  msgid ""
1209
  "<strong>Update</strong> individual custom field mapping values above, or "
1210
  "make several updates and click <strong>Save Changes</strong> below to apply "
@@ -1215,33 +1232,33 @@ msgid ""
1215
  "changes."
1216
  msgstr ""
1217
 
1218
- #: includes/class-mla-core-options.php:1181
1219
  msgid "IPTC/EXIF Mapping help"
1220
  msgstr ""
1221
 
1222
- #: includes/class-mla-core-options.php:1192 includes/class-mla-data.php:3985
1223
- #: includes/class-mla-edit-media.php:483 includes/class-mla-main.php:2220
1224
  msgid "Name/Slug"
1225
  msgstr ""
1226
 
1227
- #: includes/class-mla-core-options.php:1199 includes/class-mla-data.php:4028
1228
- #: includes/class-mla-edit-media.php:486 includes/class-mla-list-table.php:1345
1229
- #: includes/class-mla-main.php:2224 includes/class-mla-options.php:471
1230
  #: includes/mla-main-search-box-template.php:51
1231
  #: includes/mla-media-modal-js-template.php:48
1232
  msgid "ALT Text"
1233
  msgstr ""
1234
 
1235
- #: includes/class-mla-core-options.php:1206 includes/class-mla-data.php:4041
1236
- #: includes/class-mla-edit-media.php:484 includes/class-mla-main.php:2221
1237
  #: includes/class-mla-options.php:474
1238
  #: includes/mla-main-search-box-template.php:53
1239
  #: includes/mla-media-modal-js-template.php:53
1240
  msgid "Caption"
1241
  msgstr ""
1242
 
1243
- #: includes/class-mla-core-options.php:1213 includes/class-mla-data.php:4050
1244
- #: includes/class-mla-edit-media.php:485 includes/class-mla-main.php:2222
1245
  #: includes/class-mla-options.php:477
1246
  #: includes/class-mla-settings-upload-tab.php:174
1247
  #: includes/class-mla-settings-upload-tab.php:538
@@ -1258,27 +1275,27 @@ msgstr ""
1258
  msgid "Description"
1259
  msgstr ""
1260
 
1261
- #: includes/class-mla-core-options.php:1220 includes/class-mla-data.php:4112
1262
- #: includes/class-mla-data.php:4121 includes/class-mla-edit-media.php:487
1263
- #: includes/class-mla-edit-media.php:681 includes/class-mla-main.php:2226
1264
  msgid "Uploaded on"
1265
  msgstr ""
1266
 
1267
- #: includes/class-mla-core-options.php:1240
1268
  msgid "Enable View and Post MIME Type Support"
1269
  msgstr ""
1270
 
1271
- #: includes/class-mla-core-options.php:1243
1272
  msgid ""
1273
  "Check/uncheck this option to enable/disable Post MIME Type Support, then "
1274
  "click <strong>Save Changes</strong> to record the new setting."
1275
  msgstr ""
1276
 
1277
- #: includes/class-mla-core-options.php:1252
1278
  msgid "Post MIME Types help."
1279
  msgstr ""
1280
 
1281
- #: includes/class-mla-core-options.php:1255
1282
  #: includes/class-mla-mime-types.php:1682
1283
  #: includes/class-mla-settings-custom-fields-tab.php:2460
1284
  #: includes/class-mla-settings-documentation-tab.php:1566
@@ -1288,7 +1305,7 @@ msgctxt "table_view_singular"
1288
  msgid "All"
1289
  msgstr ""
1290
 
1291
- #: includes/class-mla-core-options.php:1256
1292
  #: includes/class-mla-mime-types.php:1683
1293
  #: includes/class-mla-settings-custom-fields-tab.php:2461
1294
  #: includes/class-mla-settings-documentation-tab.php:1567
@@ -1298,153 +1315,153 @@ msgctxt "table_view_plural"
1298
  msgid "All"
1299
  msgstr ""
1300
 
1301
- #: includes/class-mla-core-options.php:1261
1302
- #: includes/class-mla-core-options.php:1315
1303
- #: includes/class-mla-core-options.php:1324
1304
- #: includes/class-mla-core-options.php:1333
1305
  msgctxt "post_mime_types_description"
1306
  msgid "Built-in view"
1307
  msgstr ""
1308
 
1309
- #: includes/class-mla-core-options.php:1264
1310
  msgctxt "table_view_singular"
1311
  msgid "Image"
1312
  msgstr ""
1313
 
1314
- #: includes/class-mla-core-options.php:1265
1315
  msgctxt "table_view_plural"
1316
  msgid "Images"
1317
  msgstr ""
1318
 
1319
- #: includes/class-mla-core-options.php:1270
1320
  msgctxt "post_mime_types_description"
1321
  msgid "All image subtypes"
1322
  msgstr ""
1323
 
1324
- #: includes/class-mla-core-options.php:1273
1325
  msgctxt "table_view_singular"
1326
  msgid "Audio"
1327
  msgstr ""
1328
 
1329
- #: includes/class-mla-core-options.php:1274
1330
  msgctxt "table_view_plural"
1331
  msgid "Audio"
1332
  msgstr ""
1333
 
1334
- #: includes/class-mla-core-options.php:1279
1335
  msgctxt "post_mime_types_description"
1336
  msgid "All audio subtypes"
1337
  msgstr ""
1338
 
1339
- #: includes/class-mla-core-options.php:1282
1340
  msgctxt "table_view_singular"
1341
  msgid "Video"
1342
  msgstr ""
1343
 
1344
- #: includes/class-mla-core-options.php:1283
1345
  msgctxt "table_view_plural"
1346
  msgid "Video"
1347
  msgstr ""
1348
 
1349
- #: includes/class-mla-core-options.php:1288
1350
  msgctxt "post_mime_types_description"
1351
  msgid "All video subtypes"
1352
  msgstr ""
1353
 
1354
- #: includes/class-mla-core-options.php:1291
1355
  msgctxt "table_view_singular"
1356
  msgid "Text"
1357
  msgstr ""
1358
 
1359
- #: includes/class-mla-core-options.php:1292
1360
  msgctxt "table_view_plural"
1361
  msgid "Text"
1362
  msgstr ""
1363
 
1364
- #: includes/class-mla-core-options.php:1297
1365
  msgctxt "post_mime_types_description"
1366
  msgid "All text subtypes"
1367
  msgstr ""
1368
 
1369
- #: includes/class-mla-core-options.php:1300
1370
  msgctxt "table_view_singular"
1371
  msgid "Application"
1372
  msgstr ""
1373
 
1374
- #: includes/class-mla-core-options.php:1301
1375
  msgctxt "table_view_plural"
1376
  msgid "Applications"
1377
  msgstr ""
1378
 
1379
- #: includes/class-mla-core-options.php:1306
1380
  msgctxt "post_mime_types_description"
1381
  msgid "All application subtypes"
1382
  msgstr ""
1383
 
1384
- #: includes/class-mla-core-options.php:1310
1385
  msgctxt "table_view_plural"
1386
  msgid "Unattached"
1387
  msgstr ""
1388
 
1389
- #: includes/class-mla-core-options.php:1318
1390
  msgctxt "table_view_singular"
1391
  msgid "Attached"
1392
  msgstr ""
1393
 
1394
- #: includes/class-mla-core-options.php:1319
1395
  msgctxt "table_view_plural"
1396
  msgid "Attached"
1397
  msgstr ""
1398
 
1399
- #: includes/class-mla-core-options.php:1327
1400
  msgctxt "table_view_singular"
1401
  msgid "Trash"
1402
  msgstr ""
1403
 
1404
- #: includes/class-mla-core-options.php:1328
1405
  msgctxt "table_view_plural"
1406
  msgid "Trash"
1407
  msgstr ""
1408
 
1409
- #: includes/class-mla-core-options.php:1339
1410
  msgid "Enable Upload MIME Type Support"
1411
  msgstr ""
1412
 
1413
- #: includes/class-mla-core-options.php:1342
1414
  msgid ""
1415
  "Check/uncheck this option to enable/disable Upload MIME Type Support, then "
1416
  "click <strong>Save Changes</strong> to record the new setting."
1417
  msgstr ""
1418
 
1419
- #: includes/class-mla-core-options.php:1351
1420
  msgid "Upload MIME Types help."
1421
  msgstr ""
1422
 
1423
- #: includes/class-mla-core-options.php:1356
1424
  msgid "Enable MLA File Type Icons Support"
1425
  msgstr ""
1426
 
1427
- #: includes/class-mla-core-options.php:1359
1428
  msgid ""
1429
  "Check/uncheck this option to enable/disable MLA File Type Icons Support, "
1430
  "then click <strong>Save Changes</strong> to record the new setting."
1431
  msgstr ""
1432
 
1433
- #: includes/class-mla-core-options.php:1363
1434
  msgid "Display Limit"
1435
  msgstr ""
1436
 
1437
- #: includes/class-mla-core-options.php:1367
1438
  msgid ""
1439
  "Enter the maximum number of debug log characters to display; enter zero or "
1440
  "leave blank for no limit."
1441
  msgstr ""
1442
 
1443
- #: includes/class-mla-core-options.php:1371
1444
  msgid "Debug File"
1445
  msgstr ""
1446
 
1447
- #: includes/class-mla-core-options.php:1375
1448
  msgid ""
1449
  "Enter the name of an alternate, MLA-specific debug log file; leave blank to "
1450
  "use the PHP error_log.<br>&nbsp;&nbsp;The WP_CONTENT_DIR value (below) will "
@@ -1452,31 +1469,31 @@ msgid ""
1452
  "\"."
1453
  msgstr ""
1454
 
1455
- #: includes/class-mla-core-options.php:1379
1456
  msgid "Replace PHP error_log file"
1457
  msgstr ""
1458
 
1459
- #: includes/class-mla-core-options.php:1382
1460
  msgid ""
1461
  "Check this option to replace the PHP error_log file with the MLA Debug File."
1462
  "<br>&nbsp;&nbsp;allows capture of PHP messages in the MLA Debug File."
1463
  msgstr ""
1464
 
1465
- #: includes/class-mla-core-options.php:1386
1466
  msgid "PHP Reporting"
1467
  msgstr ""
1468
 
1469
- #: includes/class-mla-core-options.php:1390
1470
  msgid ""
1471
  "Enter a numeric error_reporting value, e.g., 0x7FFF or 32767; leave blank to "
1472
  "use the existing PHP error_reporting value."
1473
  msgstr ""
1474
 
1475
- #: includes/class-mla-core-options.php:1394
1476
  msgid "MLA Reporting"
1477
  msgstr ""
1478
 
1479
- #: includes/class-mla-core-options.php:1398
1480
  msgid ""
1481
  "Enter a numeric MLA_DEBUG_LEVEL value, e.g., 0x0003 or 3; leave blank to use "
1482
  "the existing MLA_DEBUG_LEVEL value."
@@ -1518,10 +1535,10 @@ msgstr ""
1518
  msgid "+ %s"
1519
  msgstr ""
1520
 
1521
- #: includes/class-mla-core.php:1433 includes/class-mla-edit-media.php:364
1522
- #: includes/class-mla-edit-media.php:420 includes/class-mla-main.php:1906
1523
- #: includes/class-mla-main.php:2087 includes/class-mla-main.php:2151
1524
- #: includes/class-mla-media-modal.php:630
1525
  #: includes/mla-media-modal-js-template.php:28
1526
  #: includes/mla-media-modal-js-template.php:75
1527
  msgid "Search"
@@ -1665,9 +1682,9 @@ msgctxt "list_table_column"
1665
  msgid "Attached to"
1666
  msgstr ""
1667
 
1668
- #: includes/class-mla-data-query.php:695 includes/class-mla-edit-media.php:323
1669
- #: includes/class-mla-main.php:1900 includes/class-mla-main.php:2026
1670
- #: includes/class-mla-media-modal.php:600 includes/class-mla-mime-types.php:801
1671
  #: includes/class-mla-mime-types.php:1450
1672
  #: includes/class-mla-mime-types.php:2640
1673
  #: includes/class-mla-settings-custom-fields-tab.php:552
@@ -1687,67 +1704,67 @@ msgctxt "error_log"
1687
  msgid "%1$s: %2$s non-array \"%3$s\""
1688
  msgstr ""
1689
 
1690
- #: includes/class-mla-data-query.php:1156
1691
  #, php-format
1692
  msgctxt "error_log"
1693
  msgid "%1$s: _execute_list_table_query $wp_filter = \"%2$s\"."
1694
  msgstr ""
1695
 
1696
- #: includes/class-mla-data-query.php:1156
1697
- #: includes/class-mla-data-query.php:1171
1698
- #: includes/class-mla-data-query.php:1173
1699
- #: includes/class-mla-data-query.php:1656
1700
- #: includes/class-mla-data-query.php:1728
1701
- #: includes/class-mla-data-query.php:1800
1702
- #: includes/class-mla-data-query.php:1897
1703
- #: includes/class-mla-data-query.php:1989
1704
- #: includes/class-mla-data-query.php:2008
1705
  msgid "DEBUG"
1706
  msgstr ""
1707
 
1708
- #: includes/class-mla-data-query.php:1171
1709
  #, php-format
1710
  msgctxt "error_log"
1711
  msgid "%1$s: _execute_list_table_query WP_Query = \"%2$s\"."
1712
  msgstr ""
1713
 
1714
- #: includes/class-mla-data-query.php:1173
1715
  #, php-format
1716
  msgctxt "error_log"
1717
  msgid "%1$s: _execute_list_table_query SQL_request = \"%2$s\"."
1718
  msgstr ""
1719
 
1720
- #: includes/class-mla-data-query.php:1656
1721
  #, php-format
1722
  msgctxt "error_log"
1723
  msgid "%1$s: mla_query_posts_search_filter = \"%2$s\"."
1724
  msgstr ""
1725
 
1726
- #: includes/class-mla-data-query.php:1728
1727
  #, php-format
1728
  msgctxt "error_log"
1729
  msgid "%1$s: mla_query_posts_where_filter = \"%2$s\"."
1730
  msgstr ""
1731
 
1732
- #: includes/class-mla-data-query.php:1800
1733
  #, php-format
1734
  msgctxt "error_log"
1735
  msgid "%1$s: mla_query_posts_join_filter = \"%2$s\"."
1736
  msgstr ""
1737
 
1738
- #: includes/class-mla-data-query.php:1897
1739
  #, php-format
1740
  msgctxt "error_log"
1741
  msgid "%1$s: mla_query_posts_orderby_filter = \"%2$s\"."
1742
  msgstr ""
1743
 
1744
- #: includes/class-mla-data-query.php:1989
1745
  #, php-format
1746
  msgctxt "error_log"
1747
  msgid "%1$s: mla_query_posts_clauses_filter = \"%2$s\"."
1748
  msgstr ""
1749
 
1750
- #: includes/class-mla-data-query.php:2008
1751
  #, php-format
1752
  msgctxt "error_log"
1753
  msgid "%1$s: mla_query_posts_clauses_request_filter = \"%2$s\"."
@@ -1822,7 +1839,7 @@ msgctxt "error_log"
1822
  msgid "%1$s: _evaluate_template_node unknown type \"%2$s\"."
1823
  msgstr ""
1824
 
1825
- #: includes/class-mla-data.php:1473
1826
  #, php-format
1827
  msgctxt "error_log"
1828
  msgid ""
@@ -1830,29 +1847,29 @@ msgid ""
1830
  "\"."
1831
  msgstr ""
1832
 
1833
- #: includes/class-mla-data.php:1671
1834
  #, php-format
1835
  msgctxt "error_log"
1836
  msgid "%1$s: mla_get_attachment_by_id(%2$d) not found."
1837
  msgstr ""
1838
 
1839
- #: includes/class-mla-data.php:1677
1840
  #, php-format
1841
  msgctxt "error_log"
1842
  msgid "%1$s: mla_get_attachment_by_id(%2$d) wrong post_type \"%3$s\"."
1843
  msgstr ""
1844
 
1845
- #: includes/class-mla-data.php:2074
1846
  msgctxt "error_log"
1847
  msgid "mla_parse_xmp_metadata xml_parse_into_struct failed."
1848
  msgstr ""
1849
 
1850
- #: includes/class-mla-data.php:2078
1851
  msgctxt "error_log"
1852
  msgid "mla_parse_xmp_metadata set option failed."
1853
  msgstr ""
1854
 
1855
- #: includes/class-mla-data.php:3434
1856
  #: includes/class-mla-settings-custom-fields-tab.php:810
1857
  #: includes/class-mla-settings-custom-fields-tab.php:1520
1858
  #: includes/class-mla-settings-iptc-exif-tab.php:893
@@ -1865,7 +1882,7 @@ msgstr ""
1865
  msgid "Yes"
1866
  msgstr ""
1867
 
1868
- #: includes/class-mla-data.php:3436
1869
  #: includes/class-mla-settings-custom-fields-tab.php:811
1870
  #: includes/class-mla-settings-custom-fields-tab.php:1522
1871
  #: includes/class-mla-settings-iptc-exif-tab.php:894
@@ -1878,85 +1895,85 @@ msgstr ""
1878
  msgid "No"
1879
  msgstr ""
1880
 
1881
- #: includes/class-mla-data.php:3684 includes/class-mla-data.php:3801
1882
  #, php-format
1883
  msgid "Deleting %1$s"
1884
  msgstr ""
1885
 
1886
- #: includes/class-mla-data.php:3687
1887
  #, php-format
1888
  msgid "%1$s: meta:%2$s not found"
1889
  msgstr ""
1890
 
1891
- #: includes/class-mla-data.php:3696 includes/class-mla-data.php:3812
1892
- #: includes/class-mla-data.php:3824
1893
  #, php-format
1894
  msgid "Adding %1$s = %2$s"
1895
  msgstr ""
1896
 
1897
- #: includes/class-mla-data.php:3700
1898
  #, php-format
1899
  msgid "%1$s: Adding meta:%2$s; not found"
1900
  msgstr ""
1901
 
1902
- #: includes/class-mla-data.php:3707
1903
  #, php-format
1904
  msgid "Deleting Null meta:%1$s"
1905
  msgstr ""
1906
 
1907
- #: includes/class-mla-data.php:3717 includes/class-mla-data.php:3893
1908
- #: includes/class-mla-data.php:3959 includes/class-mla-data.php:3985
1909
- #: includes/class-mla-data.php:4028 includes/class-mla-data.php:4041
1910
- #: includes/class-mla-data.php:4050 includes/class-mla-data.php:4061
1911
- #: includes/class-mla-data.php:4072 includes/class-mla-data.php:4085
1912
- #: includes/class-mla-data.php:4094 includes/class-mla-data.php:4103
1913
- #: includes/class-mla-data.php:4112 includes/class-mla-data.php:4121
1914
  #: includes/class-mla-mime-types.php:1284
1915
  #: includes/class-mla-mime-types.php:2404
1916
  #, php-format
1917
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
1918
  msgstr ""
1919
 
1920
- #: includes/class-mla-data.php:3722
1921
  #, php-format
1922
  msgid "%1$s: Changing meta:%2$s; not found"
1923
  msgstr ""
1924
 
1925
- #: includes/class-mla-data.php:3848
1926
  #, php-format
1927
  msgid "Deleting old %1$s values"
1928
  msgstr ""
1929
 
1930
- #: includes/class-mla-data.php:3878
1931
  #, php-format
1932
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
1933
  msgstr ""
1934
 
1935
- #: includes/class-mla-data.php:3936
1936
  msgid "Could not retrieve Attachment."
1937
  msgstr ""
1938
 
1939
- #: includes/class-mla-data.php:3982
1940
  #, php-format
1941
  msgid "%1$s: Could not change Name/Slug \"%2$s\"; name already exists"
1942
  msgstr ""
1943
 
1944
- #: includes/class-mla-data.php:4012
1945
  #, php-format
1946
  msgid "Deleting ALT Text, was \"%1$s\""
1947
  msgstr ""
1948
 
1949
- #: includes/class-mla-data.php:4015
1950
  #, php-format
1951
  msgid "%1$s: Could not delete ALT Text, remains \"%2$s\""
1952
  msgstr ""
1953
 
1954
- #: includes/class-mla-data.php:4031
1955
  #, php-format
1956
  msgid "%1$s: Could not change ALT Text from \"%2$s\" to \"%3$s\""
1957
  msgstr ""
1958
 
1959
- #: includes/class-mla-data.php:4061 includes/class-mla-list-table.php:1047
1960
  #: includes/class-mla-list-table.php:1050
1961
  #: includes/class-mla-list-table.php:1053
1962
  #: includes/class-mla-list-table.php:1121 includes/class-mla-options.php:2099
@@ -1965,80 +1982,80 @@ msgstr ""
1965
  msgid "Parent"
1966
  msgstr ""
1967
 
1968
- #: includes/class-mla-data.php:4072 includes/class-mla-edit-media.php:820
1969
- #: includes/class-mla-edit-media.php:1025 includes/class-mla-main.php:2229
1970
  #: includes/class-mla-settings-view-tab.php:130
1971
  #: includes/class-mla-settings-view-tab.php:386
1972
  msgid "Menu Order"
1973
  msgstr ""
1974
 
1975
- #: includes/class-mla-data.php:4085 includes/class-mla-edit-media.php:451
1976
  #: includes/class-mla-list-table.php:1501
1977
- #: includes/class-mla-list-table.php:1504 includes/class-mla-main.php:2032
1978
- #: includes/class-mla-main.php:2188
1979
  msgid "Author"
1980
  msgstr ""
1981
 
1982
- #: includes/class-mla-data.php:4094 includes/class-mla-edit-media.php:476
1983
- #: includes/class-mla-main.php:2241
1984
  msgid "Comments"
1985
  msgstr ""
1986
 
1987
- #: includes/class-mla-data.php:4103 includes/class-mla-edit-media.php:477
1988
- #: includes/class-mla-main.php:2242
1989
  msgid "Pings"
1990
  msgstr ""
1991
 
1992
- #: includes/class-mla-data.php:4148
1993
  #, php-format
1994
  msgid "You cannot assign \"%1$s\" terms"
1995
  msgstr ""
1996
 
1997
- #: includes/class-mla-data.php:4160
1998
  msgctxt "tag delimiter"
1999
  msgid ","
2000
  msgstr ""
2001
 
2002
- #: includes/class-mla-data.php:4193
2003
  msgid "Adding"
2004
  msgstr ""
2005
 
2006
- #: includes/class-mla-data.php:4198
2007
  msgid "Removing"
2008
  msgstr ""
2009
 
2010
- #: includes/class-mla-data.php:4207
2011
  msgid "Replacing"
2012
  msgstr ""
2013
 
2014
- #: includes/class-mla-data.php:4215
2015
  msgid "Ignoring"
2016
  msgstr ""
2017
 
2018
- #: includes/class-mla-data.php:4228
2019
  #, php-format
2020
  msgid "%1$s \"%2$s\" terms"
2021
  msgstr ""
2022
 
2023
- #: includes/class-mla-data.php:4240 includes/class-mla-main.php:1265
2024
  #, php-format
2025
  msgid "Item %1$d, no changes detected."
2026
  msgstr ""
2027
 
2028
- #: includes/class-mla-data.php:4270
2029
  #, php-format
2030
  msgid "Item %1$d updated."
2031
  msgstr ""
2032
 
2033
- #: includes/class-mla-data.php:4284
2034
  #, php-format
2035
  msgid "%1$s: Item %2$d update failed."
2036
  msgstr ""
2037
 
2038
- #: includes/class-mla-edit-media.php:133 includes/class-mla-edit-media.php:187
2039
- #: includes/class-mla-edit-media.php:240 includes/class-mla-main.php:454
2040
- #: includes/class-mla-main.php:1027 includes/class-mla-main.php:1784
2041
- #: includes/class-mla-media-modal.php:259 includes/class-mla-options.php:1602
2042
  #: includes/class-mla-polylang-support.php:367
2043
  #: includes/class-mla-settings-custom-fields-tab.php:59
2044
  #: includes/class-mla-settings-custom-fields-tab.php:94
@@ -2051,67 +2068,67 @@ msgctxt "tag_delimiter"
2051
  msgid ","
2052
  msgstr ""
2053
 
2054
- #: includes/class-mla-edit-media.php:182
2055
  msgid "Upload New Media items"
2056
  msgstr ""
2057
 
2058
- #: includes/class-mla-edit-media.php:183 includes/class-mla-edit-media.php:471
2059
  msgid "Open Bulk Edit area"
2060
  msgstr ""
2061
 
2062
- #: includes/class-mla-edit-media.php:184
2063
  msgid "Close Bulk Edit area"
2064
  msgstr ""
2065
 
2066
- #: includes/class-mla-edit-media.php:188 includes/class-mla-edit-media.php:242
2067
- #: includes/class-mla-main.php:441
2068
  msgid "An ajax.fail error has occurred. Please reload the page and try again."
2069
  msgstr ""
2070
 
2071
- #: includes/class-mla-edit-media.php:189 includes/class-mla-edit-media.php:243
2072
- #: includes/class-mla-main.php:442
2073
  msgid "An ajax.done error has occurred. Please reload the page and try again."
2074
  msgstr ""
2075
 
2076
- #: includes/class-mla-edit-media.php:244 includes/class-mla-main.php:1986
2077
  #, php-format
2078
  msgid "Uploaded on: %s"
2079
  msgstr ""
2080
 
2081
- #: includes/class-mla-edit-media.php:245 includes/class-mla-edit-media.php:693
2082
  msgid "Last modified"
2083
  msgstr ""
2084
 
2085
- #: includes/class-mla-edit-media.php:343 includes/class-mla-edit-media.php:399
2086
- #: includes/class-mla-main.php:2066 includes/class-mla-main.php:2130
2087
  msgid "+&nbsp;Add&nbsp;New&nbsp;Term"
2088
  msgstr ""
2089
 
2090
- #: includes/class-mla-edit-media.php:344 includes/class-mla-edit-media.php:400
2091
- #: includes/class-mla-main.php:2067 includes/class-mla-main.php:2131
2092
  msgid "Add New"
2093
  msgstr ""
2094
 
2095
- #: includes/class-mla-edit-media.php:362 includes/class-mla-edit-media.php:418
2096
- #: includes/class-mla-main.php:2085 includes/class-mla-main.php:2149
2097
  msgid "?&nbsp;Search"
2098
  msgstr ""
2099
 
2100
- #: includes/class-mla-edit-media.php:365 includes/class-mla-edit-media.php:421
2101
- #: includes/class-mla-edit-media.php:430 includes/class-mla-main.php:2088
2102
- #: includes/class-mla-main.php:2152 includes/class-mla-main.php:2161
2103
  msgid "Add"
2104
  msgstr ""
2105
 
2106
- #: includes/class-mla-edit-media.php:366 includes/class-mla-edit-media.php:422
2107
- #: includes/class-mla-edit-media.php:431 includes/class-mla-main.php:2089
2108
- #: includes/class-mla-main.php:2153 includes/class-mla-main.php:2162
2109
  msgid "Remove"
2110
  msgstr ""
2111
 
2112
- #: includes/class-mla-edit-media.php:367 includes/class-mla-edit-media.php:423
2113
- #: includes/class-mla-edit-media.php:432 includes/class-mla-main.php:2090
2114
- #: includes/class-mla-main.php:2154 includes/class-mla-main.php:2163
2115
  #: includes/class-mla-settings-custom-fields-tab.php:481
2116
  #: includes/class-mla-settings-custom-fields-tab.php:781
2117
  #: includes/class-mla-settings-custom-fields-tab.php:1506
@@ -2122,19 +2139,19 @@ msgstr ""
2122
  msgid "Replace"
2123
  msgstr ""
2124
 
2125
- #: includes/class-mla-edit-media.php:470
2126
  msgid ""
2127
  "IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help "
2128
  "menu for more information."
2129
  msgstr ""
2130
 
2131
- #: includes/class-mla-edit-media.php:472 includes/class-mla-main.php:2235
2132
  #: includes/class-mla-settings.php:1397
2133
  msgid "Reset"
2134
  msgstr ""
2135
 
2136
- #: includes/class-mla-edit-media.php:478 includes/class-mla-main.php:2243
2137
- #: includes/class-mla-main.php:2299
2138
  #: includes/class-mla-settings-custom-fields-tab.php:809
2139
  #: includes/class-mla-settings-iptc-exif-tab.php:892
2140
  #: includes/class-mla-settings-upload-tab.php:122
@@ -2143,77 +2160,77 @@ msgstr ""
2143
  msgid "No Change"
2144
  msgstr ""
2145
 
2146
- #: includes/class-mla-edit-media.php:479 includes/class-mla-main.php:2244
2147
  msgid "Allow"
2148
  msgstr ""
2149
 
2150
- #: includes/class-mla-edit-media.php:480 includes/class-mla-main.php:2245
2151
  msgid "Do not allow"
2152
  msgstr ""
2153
 
2154
- #: includes/class-mla-edit-media.php:488 includes/class-mla-list-table.php:1047
2155
- #: includes/class-mla-list-table.php:1118 includes/class-mla-main.php:2227
2156
  msgid "Parent ID"
2157
  msgstr ""
2158
 
2159
- #: includes/class-mla-edit-media.php:489 includes/class-mla-edit-media.php:1005
2160
- #: includes/class-mla-main.php:2228
2161
  #: includes/class-mla-settings-upload-tab.php:1463
2162
  msgid "Select"
2163
  msgstr ""
2164
 
2165
- #: includes/class-mla-edit-media.php:582
2166
  msgid "Custom field mapping updated."
2167
  msgstr ""
2168
 
2169
- #: includes/class-mla-edit-media.php:583
2170
  msgid "IPTC/EXIF mapping updated."
2171
  msgstr ""
2172
 
2173
- #: includes/class-mla-edit-media.php:584
2174
  msgid "Custom field mapping is disabled."
2175
  msgstr ""
2176
 
2177
- #: includes/class-mla-edit-media.php:585
2178
  msgid "IPTC/EXIF mapping is disabled."
2179
  msgstr ""
2180
 
2181
- #: includes/class-mla-edit-media.php:620 includes/class-mla-main.php:1970
2182
  msgid "Month"
2183
  msgstr ""
2184
 
2185
- #: includes/class-mla-edit-media.php:626 includes/class-mla-main.php:1976
2186
  #, php-format
2187
  msgid "%1$s-%2$s"
2188
  msgstr ""
2189
 
2190
- #: includes/class-mla-edit-media.php:630 includes/class-mla-main.php:1980
2191
  msgid "Day"
2192
  msgstr ""
2193
 
2194
- #: includes/class-mla-edit-media.php:631 includes/class-mla-main.php:1981
2195
  msgid "Year"
2196
  msgstr ""
2197
 
2198
- #: includes/class-mla-edit-media.php:632 includes/class-mla-main.php:1982
2199
  msgid "Hour"
2200
  msgstr ""
2201
 
2202
- #: includes/class-mla-edit-media.php:633 includes/class-mla-main.php:1983
2203
  msgid "Minute"
2204
  msgstr ""
2205
 
2206
- #: includes/class-mla-edit-media.php:637 includes/class-mla-main.php:1988
2207
  #, php-format
2208
  msgid "%1$s %2$s, %3$s @ %4$s:%5$s"
2209
  msgstr ""
2210
 
2211
- #: includes/class-mla-edit-media.php:660
2212
  msgid "OK"
2213
  msgstr ""
2214
 
2215
- #: includes/class-mla-edit-media.php:661 includes/class-mla-main.php:1923
2216
- #: includes/class-mla-main.php:2234
2217
  #: includes/class-mla-polylang-support.php:2054
2218
  #: includes/class-mla-settings-custom-fields-tab.php:509
2219
  #: includes/class-mla-settings-custom-fields-tab.php:730
@@ -2233,11 +2250,11 @@ msgstr ""
2233
  msgid "Cancel"
2234
  msgstr ""
2235
 
2236
- #: includes/class-mla-edit-media.php:677
2237
  msgid "M j, Y @ H:i"
2238
  msgstr ""
2239
 
2240
- #: includes/class-mla-edit-media.php:683 includes/class-mla-list-table.php:619
2241
  #: includes/class-mla-list-table.php:747 includes/class-mla-list-table.php:1002
2242
  #: includes/class-mla-list-table.php:1173
2243
  #: includes/class-mla-list-table.php:1222
@@ -2258,52 +2275,52 @@ msgstr ""
2258
  msgid "Edit"
2259
  msgstr ""
2260
 
2261
- #: includes/class-mla-edit-media.php:684
2262
  msgid "Edit upload date and time"
2263
  msgstr ""
2264
 
2265
- #: includes/class-mla-edit-media.php:686
2266
  msgid "Upload Date and time"
2267
  msgstr ""
2268
 
2269
- #: includes/class-mla-edit-media.php:716
2270
  msgid "Map Custom Field metadata for this item"
2271
  msgstr ""
2272
 
2273
- #: includes/class-mla-edit-media.php:716 includes/class-mla-main.php:1698
2274
- #: includes/class-mla-main.php:2250
2275
  msgid "Map Custom Field metadata"
2276
  msgstr ""
2277
 
2278
- #: includes/class-mla-edit-media.php:720
2279
  msgid "Map IPTC/EXIF metadata for this item"
2280
  msgstr ""
2281
 
2282
- #: includes/class-mla-edit-media.php:720 includes/class-mla-main.php:1701
2283
- #: includes/class-mla-main.php:2248
2284
  msgid "Map IPTC/EXIF metadata"
2285
  msgstr ""
2286
 
2287
- #: includes/class-mla-edit-media.php:816 includes/class-mla-edit-media.php:1006
2288
  msgid "Parent Info"
2289
  msgstr ""
2290
 
2291
- #: includes/class-mla-edit-media.php:826 includes/class-mla-edit-media.php:1049
2292
  msgid "Attachment Metadata"
2293
  msgstr ""
2294
 
2295
- #: includes/class-mla-edit-media.php:896 includes/class-mla-edit-media.php:938
2296
- #: includes/class-mla-main.php:666 includes/class-mla-settings.php:589
2297
  #, php-format
2298
  msgctxt "error_log"
2299
  msgid "%1$s: %2$s discarding \"%3$s\"; no title/order"
2300
  msgstr ""
2301
 
2302
- #: includes/class-mla-edit-media.php:1004
2303
  msgid "Post Parent"
2304
  msgstr ""
2305
 
2306
- #: includes/class-mla-edit-media.php:1005 includes/class-mla-main.php:1905
2307
  msgid "Select Parent"
2308
  msgstr ""
2309
 
@@ -2335,7 +2352,7 @@ msgid "Filter by"
2335
  msgstr ""
2336
 
2337
  #: includes/class-mla-list-table.php:509
2338
- #: includes/class-mla-media-modal-ajax.php:490
2339
  msgid "Not Supported"
2340
  msgstr ""
2341
 
@@ -2376,7 +2393,7 @@ msgstr ""
2376
  msgid "Edit this item inline"
2377
  msgstr ""
2378
 
2379
- #: includes/class-mla-list-table.php:748 includes/class-mla-main.php:2218
2380
  #: includes/class-mla-options.php:1195
2381
  #: includes/class-mla-settings-custom-fields-tab.php:472
2382
  #: includes/class-mla-settings-custom-fields-tab.php:772
@@ -2419,7 +2436,7 @@ msgstr ""
2419
  msgid "Delete Permanently"
2420
  msgstr ""
2421
 
2422
- #: includes/class-mla-list-table.php:767
2423
  #: includes/class-mla-settings-documentation-tab.php:688
2424
  #: includes/class-mla-settings.php:1387
2425
  msgid "Download"
@@ -2478,33 +2495,33 @@ msgid_plural "All"
2478
  msgstr[0] ""
2479
  msgstr[1] ""
2480
 
2481
- #: includes/class-mla-list-table.php:1958
2482
  #: includes/class-mla-settings-custom-fields-tab.php:1754
2483
  #: includes/class-mla-settings-iptc-exif-tab.php:1860
2484
  #: includes/class-mla-settings-shortcodes-tab.php:1348
2485
  msgid "Filter"
2486
  msgstr ""
2487
 
2488
- #: includes/class-mla-list-table.php:1961
2489
  #: includes/mla-media-modal-js-template.php:72
2490
  msgid "Terms Search"
2491
  msgstr ""
2492
 
2493
- #: includes/class-mla-list-table.php:1966
2494
  #: includes/class-mla-polylang-support.php:2061
2495
  #: includes/class-mla-thumbnail-generation.php:650
2496
  msgid "Clear Filter-by"
2497
  msgstr ""
2498
 
2499
- #: includes/class-mla-list-table.php:1969
2500
  msgid "Empty Trash"
2501
  msgstr ""
2502
 
2503
- #: includes/class-mla-main.php:443
2504
  msgid "Error while saving the changes."
2505
  msgstr ""
2506
 
2507
- #: includes/class-mla-main.php:444
2508
  #: includes/class-mla-settings-custom-fields-tab.php:57
2509
  #: includes/class-mla-settings-custom-fields-tab.php:92
2510
  #: includes/class-mla-settings-iptc-exif-tab.php:57
@@ -2514,82 +2531,101 @@ msgstr ""
2514
  msgid "Remove From Bulk Edit"
2515
  msgstr ""
2516
 
2517
- #: includes/class-mla-main.php:446
2518
  msgid "Bulk Edit items"
2519
  msgstr ""
2520
 
2521
- #: includes/class-mla-main.php:447 includes/class-mla-main.php:2251
2522
  #: includes/class-mla-settings-custom-fields-tab.php:63
2523
  #: includes/class-mla-settings-iptc-exif-tab.php:63
2524
  msgid "Waiting"
2525
  msgstr ""
2526
 
2527
- #: includes/class-mla-main.php:448 includes/class-mla-main.php:2253
2528
  #: includes/class-mla-settings-custom-fields-tab.php:65
2529
  #: includes/class-mla-settings-iptc-exif-tab.php:65
2530
  msgid "Complete"
2531
  msgstr ""
2532
 
2533
- #: includes/class-mla-main.php:449
2534
  #: includes/class-mla-settings-custom-fields-tab.php:66
2535
  #: includes/class-mla-settings-iptc-exif-tab.php:66
2536
  msgid "Unchanged"
2537
  msgstr ""
2538
 
2539
- #: includes/class-mla-main.php:450
2540
  #: includes/class-mla-settings-custom-fields-tab.php:67
2541
  #: includes/class-mla-settings-iptc-exif-tab.php:67
2542
  msgid "Succeeded"
2543
  msgstr ""
2544
 
2545
- #: includes/class-mla-main.php:451
2546
  #: includes/class-mla-settings-custom-fields-tab.php:68
2547
  #: includes/class-mla-settings-iptc-exif-tab.php:68
2548
  msgid "Failed"
2549
  msgstr ""
2550
 
2551
- #: includes/class-mla-main.php:452
2552
  msgid "CANCELED"
2553
  msgstr ""
2554
 
2555
- #: includes/class-mla-main.php:563
2556
  #, php-format
2557
  msgid "Item permanently deleted."
2558
  msgid_plural "%d items permanently deleted."
2559
  msgstr[0] ""
2560
  msgstr[1] ""
2561
 
2562
- #: includes/class-mla-main.php:568 includes/class-mla-main.php:2438
2563
  #, php-format
2564
  msgid "Item %1$d moved to Trash."
2565
  msgstr ""
2566
 
2567
- #: includes/class-mla-main.php:789
2568
  msgid "download path out of bounds."
2569
  msgstr ""
2570
 
2571
- #: includes/class-mla-main.php:791
2572
  msgid "download path invalid."
2573
  msgstr ""
2574
 
2575
- #: includes/class-mla-main.php:794
2576
  msgid "download argument(s) not set."
2577
  msgstr ""
2578
 
2579
- #: includes/class-mla-main.php:1199
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2580
  msgid "You are not allowed to edit Attachment: "
2581
  msgstr ""
2582
 
2583
- #: includes/class-mla-main.php:1255
2584
  #, php-format
2585
  msgid "%1$s: Unknown bulk action %2$s"
2586
  msgstr ""
2587
 
2588
- #: includes/class-mla-main.php:1277
2589
  msgid "no changes detected"
2590
  msgstr ""
2591
 
2592
- #: includes/class-mla-main.php:1324
2593
  #: includes/class-mla-settings-custom-fields-tab.php:607
2594
  #: includes/class-mla-settings-documentation-tab.php:275
2595
  #: includes/class-mla-settings-iptc-exif-tab.php:686
@@ -2600,11 +2636,11 @@ msgstr ""
2600
  msgid "Bulk Action %1$s - no items selected."
2601
  msgstr ""
2602
 
2603
- #: includes/class-mla-main.php:1418
2604
  msgid "You do not have permission to manage attachments."
2605
  msgstr ""
2606
 
2607
- #: includes/class-mla-main.php:1476
2608
  #, php-format
2609
  msgctxt "deleted items"
2610
  msgid "%s item deleted."
@@ -2612,15 +2648,15 @@ msgid_plural "%s items deleted."
2612
  msgstr[0] ""
2613
  msgstr[1] ""
2614
 
2615
- #: includes/class-mla-main.php:1478
2616
  msgid "No items deleted."
2617
  msgstr ""
2618
 
2619
- #: includes/class-mla-main.php:1530
2620
  msgid "Empty Terms Search; ignored"
2621
  msgstr ""
2622
 
2623
- #: includes/class-mla-main.php:1542
2624
  #: includes/class-mla-settings-custom-fields-tab.php:634
2625
  #: includes/class-mla-settings-documentation-tab.php:307
2626
  #: includes/class-mla-settings-iptc-exif-tab.php:715
@@ -2631,20 +2667,20 @@ msgstr ""
2631
  msgid "Unknown mla_admin_action - \"%1$s\""
2632
  msgstr ""
2633
 
2634
- #: includes/class-mla-main.php:1580
2635
  msgid "term search results for"
2636
  msgstr ""
2637
 
2638
- #: includes/class-mla-main.php:1583
2639
  msgid "post/parent results for"
2640
  msgstr ""
2641
 
2642
- #: includes/class-mla-main.php:1585
2643
  msgid "search results for"
2644
  msgstr ""
2645
 
2646
- #: includes/class-mla-main.php:1704 includes/class-mla-main.php:1927
2647
- #: includes/class-mla-main.php:2236
2648
  #: includes/class-mla-settings-custom-fields-tab.php:511
2649
  #: includes/class-mla-settings-custom-fields-tab.php:813
2650
  #: includes/class-mla-settings-documentation-tab.php:679
@@ -2659,20 +2695,20 @@ msgstr ""
2659
  msgid "Update"
2660
  msgstr ""
2661
 
2662
- #: includes/class-mla-main.php:1862
2663
  msgid "All Post Types"
2664
  msgstr ""
2665
 
2666
- #: includes/class-mla-main.php:1908
2667
  msgid "For"
2668
  msgstr ""
2669
 
2670
- #: includes/class-mla-main.php:1918
2671
- #: includes/class-mla-shortcode-support.php:1062
2672
  msgid "Unattached"
2673
  msgstr ""
2674
 
2675
- #: includes/class-mla-main.php:2237 includes/class-mla-options.php:1209
2676
  #: includes/class-mla-settings-custom-fields-tab.php:475
2677
  #: includes/class-mla-settings-custom-fields-tab.php:775
2678
  #: includes/class-mla-settings-custom-fields-tab.php:1466
@@ -2682,60 +2718,60 @@ msgstr ""
2682
  msgid "Bulk Edit"
2683
  msgstr ""
2684
 
2685
- #: includes/class-mla-main.php:2252
2686
  msgid "In-process"
2687
  msgstr ""
2688
 
2689
- #: includes/class-mla-main.php:2351
2690
  msgid "You are not allowed to delete this item."
2691
  msgstr ""
2692
 
2693
- #: includes/class-mla-main.php:2359
2694
  #, php-format
2695
  msgid "%1$s: Item %2$d could NOT be deleted."
2696
  msgstr ""
2697
 
2698
- #: includes/class-mla-main.php:2366
2699
  #, php-format
2700
  msgid "Item %1$d permanently deleted."
2701
  msgstr ""
2702
 
2703
- #: includes/class-mla-main.php:2383
2704
  msgid "You are not allowed to move this item out of the Trash."
2705
  msgstr ""
2706
 
2707
- #: includes/class-mla-main.php:2391
2708
  #, php-format
2709
  msgid "%1$s: Item %2$d could NOT be restored from Trash."
2710
  msgstr ""
2711
 
2712
- #: includes/class-mla-main.php:2406
2713
  #, php-format
2714
  msgid "Item %1$d restored from Trash."
2715
  msgstr ""
2716
 
2717
- #: includes/class-mla-main.php:2423
2718
  msgid "You are not allowed to move this item to the Trash."
2719
  msgstr ""
2720
 
2721
- #: includes/class-mla-main.php:2431
2722
  #, php-format
2723
  msgid "%1$s: Item %2$d could NOT be moved to Trash."
2724
  msgstr ""
2725
 
2726
- #: includes/class-mla-media-modal-ajax.php:299
2727
- #: includes/class-mla-media-modal-ajax.php:305
2728
- #: includes/class-mla-media-modal-ajax.php:404
2729
- #: includes/class-mla-media-modal-ajax.php:439
2730
- #: includes/class-mla-media-modal-ajax.php:484
2731
  msgid "Click to toggle"
2732
  msgstr ""
2733
 
2734
- #: includes/class-mla-media-modal-ajax.php:450
2735
  msgid "Tags"
2736
  msgstr ""
2737
 
2738
- #: includes/class-mla-media-modal-ajax.php:452
2739
  #: includes/class-mla-objects.php:50 includes/class-mla-objects.php:83
2740
  #: includes/class-mla-settings-upload-tab.php:528
2741
  #: includes/class-mla-settings-view-tab.php:374
@@ -2743,53 +2779,58 @@ msgstr ""
2743
  msgid "Add New %1$s"
2744
  msgstr ""
2745
 
2746
- #: includes/class-mla-media-modal-ajax.php:468
 
 
 
 
 
2747
  msgid "Choose from the most used tags"
2748
  msgstr ""
2749
 
2750
- #: includes/class-mla-media-modal.php:131
2751
  msgid "Show all dates"
2752
  msgstr ""
2753
 
2754
- #: includes/class-mla-media-modal.php:146
2755
  #, php-format
2756
  msgid "%1$s %2$d"
2757
  msgstr ""
2758
 
2759
- #: includes/class-mla-media-modal.php:384
2760
  msgid "Search Box"
2761
  msgstr ""
2762
 
2763
- #: includes/class-mla-media-modal.php:385
2764
  msgid "Loading..."
2765
  msgstr ""
2766
 
2767
- #: includes/class-mla-media-modal.php:613
2768
- #: includes/class-mla-media-modal.php:629
2769
  msgid "Search Terms"
2770
  msgstr ""
2771
 
2772
- #: includes/class-mla-media-modal.php:614
2773
  msgid "There are no taxonomies to search"
2774
  msgstr ""
2775
 
2776
- #: includes/class-mla-media-modal.php:632
2777
  msgid "All phrases"
2778
  msgstr ""
2779
 
2780
- #: includes/class-mla-media-modal.php:634
2781
  msgid "Any phrase"
2782
  msgstr ""
2783
 
2784
- #: includes/class-mla-media-modal.php:636
2785
  msgid "All terms"
2786
  msgstr ""
2787
 
2788
- #: includes/class-mla-media-modal.php:638
2789
  msgid "Any term"
2790
  msgstr ""
2791
 
2792
- #: includes/class-mla-media-modal.php:640
2793
  msgid "Exact"
2794
  msgstr ""
2795
 
@@ -5465,71 +5506,71 @@ msgstr ""
5465
  msgid "Settings imported; %1$s updated, %2$s unchanged."
5466
  msgstr ""
5467
 
5468
- #: includes/class-mla-shortcode-support.php:474
5469
- #: includes/class-mla-shortcode-support.php:1831
5470
- #: includes/class-mla-shortcode-support.php:3902
5471
  #: includes/class-mla-shortcode-support.php:4188
5472
  msgid "Previous"
5473
  msgstr ""
5474
 
5475
- #: includes/class-mla-shortcode-support.php:475
5476
- #: includes/class-mla-shortcode-support.php:1832
5477
- #: includes/class-mla-shortcode-support.php:3951
5478
  #: includes/class-mla-shortcode-support.php:4194
5479
  msgid "Next"
5480
  msgstr ""
5481
 
5482
- #: includes/class-mla-shortcode-support.php:546
5483
- #: includes/class-mla-shortcode-support.php:552
5484
- #: includes/class-mla-shortcode-support.php:1970
5485
- #: includes/class-mla-shortcode-support.php:1977
5486
- #: includes/class-mla-shortcode-support.php:3326
5487
- #: includes/class-mla-shortcode-support.php:3333
5488
  #: includes/class-mla-template-support.php:598
5489
  msgid "not found"
5490
  msgstr ""
5491
 
5492
- #: includes/class-mla-shortcode-support.php:575
5493
- #: includes/class-mla-shortcode-support.php:1962
5494
- #: includes/class-mla-shortcode-support.php:3318
5495
  msgid "mla_debug REQUEST"
5496
  msgstr ""
5497
 
5498
- #: includes/class-mla-shortcode-support.php:576
5499
- #: includes/class-mla-shortcode-support.php:1963
5500
- #: includes/class-mla-shortcode-support.php:3319
5501
  msgid "mla_debug attributes"
5502
  msgstr ""
5503
 
5504
- #: includes/class-mla-shortcode-support.php:577
5505
- #: includes/class-mla-shortcode-support.php:1964
5506
- #: includes/class-mla-shortcode-support.php:3320
5507
  msgid "mla_debug arguments"
5508
  msgstr ""
5509
 
5510
- #: includes/class-mla-shortcode-support.php:619
5511
  msgid "mla_debug empty gallery"
5512
  msgstr ""
5513
 
5514
- #: includes/class-mla-shortcode-support.php:640
5515
  msgid ""
5516
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
5517
  "<strong>default</strong>, query = "
5518
  msgstr ""
5519
 
5520
- #: includes/class-mla-shortcode-support.php:1086
5521
  msgid "unknown"
5522
  msgstr ""
5523
 
5524
- #: includes/class-mla-shortcode-support.php:2101
5525
  msgid "mla_debug empty cloud"
5526
  msgstr ""
5527
 
5528
- #: includes/class-mla-shortcode-support.php:3454
5529
  msgid "mla_debug empty list"
5530
  msgstr ""
5531
 
5532
- #: includes/class-mla-shortcode-support.php:3477
5533
  msgid "no-terms"
5534
  msgstr ""
5535
 
@@ -5539,75 +5580,75 @@ msgstr ""
5539
  msgid "Invalid mla_gallery"
5540
  msgstr ""
5541
 
5542
- #: includes/class-mla-shortcode-support.php:5337
5543
  msgid "mla_debug query"
5544
  msgstr ""
5545
 
5546
- #: includes/class-mla-shortcode-support.php:5338
5547
  msgid "mla_debug request"
5548
  msgstr ""
5549
 
5550
- #: includes/class-mla-shortcode-support.php:5339
5551
  msgid "mla_debug query_vars"
5552
  msgstr ""
5553
 
5554
- #: includes/class-mla-shortcode-support.php:5340
5555
  msgid "mla_debug post_count"
5556
  msgstr ""
5557
 
5558
- #: includes/class-mla-shortcode-support.php:5364
5559
  msgid "mla_debug JOIN filter"
5560
  msgstr ""
5561
 
5562
- #: includes/class-mla-shortcode-support.php:5404
5563
  msgid "mla_debug modified JOIN filter"
5564
  msgstr ""
5565
 
5566
- #: includes/class-mla-shortcode-support.php:5429
5567
  msgid "mla_debug WHERE filter"
5568
  msgstr ""
5569
 
5570
- #: includes/class-mla-shortcode-support.php:5453
5571
  msgid "mla_debug modified WHERE filter"
5572
  msgstr ""
5573
 
5574
- #: includes/class-mla-shortcode-support.php:5476
5575
  msgid "mla_debug ORDER BY filter, incoming"
5576
  msgstr ""
5577
 
5578
- #: includes/class-mla-shortcode-support.php:5476
5579
  msgid "Replacement ORDER BY clause"
5580
  msgstr ""
5581
 
5582
- #: includes/class-mla-shortcode-support.php:5499
5583
  msgid "mla_debug posts_clauses filter"
5584
  msgstr ""
5585
 
5586
- #: includes/class-mla-shortcode-support.php:5517
5587
  msgid "mla_debug posts_clauses_request filter"
5588
  msgstr ""
5589
 
5590
- #: includes/class-mla-shortcode-support.php:5706
5591
  msgid "Invalid taxonomy"
5592
  msgstr ""
5593
 
5594
- #: includes/class-mla-shortcode-support.php:5886
5595
  msgid "mla_debug query arguments"
5596
  msgstr ""
5597
 
5598
- #: includes/class-mla-shortcode-support.php:5887
5599
  msgid "mla_debug last_query"
5600
  msgstr ""
5601
 
5602
- #: includes/class-mla-shortcode-support.php:5888
5603
  msgid "mla_debug last_error"
5604
  msgstr ""
5605
 
5606
- #: includes/class-mla-shortcode-support.php:5889
5607
  msgid "mla_debug num_rows"
5608
  msgstr ""
5609
 
5610
- #: includes/class-mla-shortcode-support.php:5890
5611
  msgid "mla_debug found_rows"
5612
  msgstr ""
5613
 
@@ -5917,7 +5958,7 @@ msgstr ""
5917
  msgid "You must resolve these conflicts before this plugin can safely load."
5918
  msgstr ""
5919
 
5920
- #: index.php:46
5921
  msgid ""
5922
  "Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] "
5923
  "[mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick "
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Media Library Assistant\n"
5
+ "POT-Creation-Date: 2019-04-07 22:23-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@fairtradejudaica.org>\n"
21
  "X-Poedit-SearchPath-2: index.php\n"
22
 
23
  #: includes/class-mla-admin-columns-pro-support-423.php:178
24
+ #: includes/class-mla-admin-columns-pro-support-44.php:175
25
+ #: includes/class-mla-admin-columns-pro-support.php:193
26
+ #: includes/class-mla-ajax.php:252 includes/class-mla-edit-media.php:986
27
  #: includes/class-mla-list-table.php:635
28
  msgid "Draft"
29
  msgstr ""
30
 
31
  #: includes/class-mla-admin-columns-pro-support-423.php:181
32
+ #: includes/class-mla-admin-columns-pro-support-44.php:178
33
+ #: includes/class-mla-admin-columns-pro-support.php:196
34
+ #: includes/class-mla-ajax.php:246 includes/class-mla-edit-media.php:980
35
  #: includes/class-mla-list-table.php:638
36
  msgid "Scheduled"
37
  msgstr ""
38
 
39
  #: includes/class-mla-admin-columns-pro-support-423.php:184
40
+ #: includes/class-mla-admin-columns-pro-support-44.php:181
41
+ #: includes/class-mla-admin-columns-pro-support.php:199
42
+ #: includes/class-mla-edit-media.php:983 includes/class-mla-list-table.php:641
43
  msgctxt "post state"
44
  msgid "Pending"
45
  msgstr ""
46
 
47
  #: includes/class-mla-admin-columns-pro-support-423.php:187
48
+ #: includes/class-mla-admin-columns-pro-support-44.php:184
49
+ #: includes/class-mla-admin-columns-pro-support.php:202
50
  #: includes/class-mla-list-table.php:644
51
  #: includes/class-mla-thumbnail-generation.php:645
52
  msgid "Trash"
53
  msgstr ""
54
 
55
  #: includes/class-mla-admin-columns-pro-support-423.php:395
56
+ #: includes/class-mla-admin-columns-pro-support-44.php:392
57
+ #: includes/class-mla-admin-columns-pro-support.php:410
58
  #: includes/class-mla-data-references.php:310
59
  #: includes/class-mla-data-references.php:656
60
  #: includes/class-mla-list-table.php:1070
65
  #: includes/class-mla-admin-columns-pro-support-423.php:654
66
  #: includes/class-mla-admin-columns-pro-support-423.php:721
67
  #: includes/class-mla-admin-columns-pro-support-423.php:783
68
+ #: includes/class-mla-admin-columns-pro-support-44.php:589
69
+ #: includes/class-mla-admin-columns-pro-support-44.php:651
70
+ #: includes/class-mla-admin-columns-pro-support-44.php:718
71
+ #: includes/class-mla-admin-columns-pro-support-44.php:780
72
+ #: includes/class-mla-admin-columns-pro-support.php:607
73
+ #: includes/class-mla-admin-columns-pro-support.php:669
74
+ #: includes/class-mla-admin-columns-pro-support.php:736
75
+ #: includes/class-mla-admin-columns-pro-support.php:798
76
  #: includes/class-mla-core-options.php:447
77
  #: includes/class-mla-core-options.php:457
78
  #: includes/class-mla-core-options.php:467
88
  #: includes/class-mla-admin-columns-pro-support-423.php:677
89
  #: includes/class-mla-admin-columns-pro-support-423.php:740
90
  #: includes/class-mla-admin-columns-pro-support-423.php:802
91
+ #: includes/class-mla-admin-columns-pro-support-44.php:608
92
+ #: includes/class-mla-admin-columns-pro-support-44.php:674
93
+ #: includes/class-mla-admin-columns-pro-support-44.php:737
94
+ #: includes/class-mla-admin-columns-pro-support-44.php:799
95
+ #: includes/class-mla-admin-columns-pro-support.php:626
96
+ #: includes/class-mla-admin-columns-pro-support.php:692
97
+ #: includes/class-mla-admin-columns-pro-support.php:755
98
+ #: includes/class-mla-admin-columns-pro-support.php:817
99
+ #: includes/class-mla-edit-media.php:1068
100
+ #: includes/class-mla-edit-media.php:1106
101
+ #: includes/class-mla-edit-media.php:1142
102
+ #: includes/class-mla-edit-media.php:1177
103
  #: includes/class-mla-list-table.php:1168
104
  #: includes/class-mla-list-table.php:1217
105
  #: includes/class-mla-list-table.php:1263
108
  msgstr ""
109
 
110
  #: includes/class-mla-admin-columns-pro-support-423.php:1027
111
+ #: includes/class-mla-admin-columns-pro-support-44.php:1024
112
+ #: includes/class-mla-admin-columns-pro-support.php:1042
113
+ #: includes/class-mla-core-options.php:606
114
+ #: includes/class-mla-core-options.php:863
115
+ #: includes/class-mla-core-options.php:894
116
+ #: includes/class-mla-core-options.php:908
117
  #: includes/class-mla-list-table.php:493 includes/class-mla-list-table.php:1403
118
  #: includes/class-mla-settings-shortcodes-tab.php:629
119
  msgid "None"
120
  msgstr ""
121
 
122
  #: includes/class-mla-admin-columns-pro-support-423.php:1117
123
+ #: includes/class-mla-admin-columns-pro-support-44.php:1114
124
+ #: includes/class-mla-admin-columns-pro-support.php:1132
125
  #: includes/class-mla-list-table.php:1542
126
  msgid "(Private post)"
127
  msgstr ""
128
 
129
  #: includes/class-mla-admin-columns-pro-support-423.php:1121
130
+ #: includes/class-mla-admin-columns-pro-support-44.php:1118
131
+ #: includes/class-mla-admin-columns-pro-support.php:1136
132
+ #: includes/class-mla-ajax.php:262 includes/class-mla-list-table.php:1453
133
  #: includes/class-mla-list-table.php:1482
134
  #: includes/class-mla-list-table.php:1546
135
  msgid "Y/m/d"
136
  msgstr ""
137
 
138
  #: includes/class-mla-admin-columns-pro-support-423.php:1134
139
+ #: includes/class-mla-admin-columns-pro-support-44.php:1131
140
+ #: includes/class-mla-admin-columns-pro-support.php:1149
141
+ #: includes/class-mla-core-options.php:1310
142
  #: includes/class-mla-list-table.php:1559
143
  msgctxt "table_view_singular"
144
  msgid "Unattached"
146
 
147
  #: includes/class-mla-admin-columns-support-deprecated.php:33
148
  #: includes/class-mla-admin-columns-support.php:43
149
+ #: includes/class-mla-core-options.php:556 includes/class-mla-settings.php:429
150
  #: includes/class-mla-settings.php:1452 includes/class-mla-settings.php:1468
151
+ #: index.php:46
152
  msgid "Media Library Assistant"
153
  msgstr ""
154
 
155
  #: includes/class-mla-admin-columns-support-deprecated.php:34
156
  #: includes/class-mla-admin-columns-support.php:44
157
+ #: includes/class-mla-core-options.php:565
158
  msgid "Assistant"
159
  msgstr ""
160
 
161
+ #: includes/class-mla-ajax.php:233 includes/class-mla-core-options.php:1186
162
+ #: includes/class-mla-data.php:3983 includes/class-mla-edit-media.php:478
163
+ #: includes/class-mla-main.php:2033 includes/class-mla-main.php:2338
164
  #: includes/class-mla-objects.php:348 includes/class-mla-options.php:465
165
  #: includes/mla-main-search-box-template.php:47
166
  #: includes/mla-media-modal-js-template.php:40
167
  msgid "Title"
168
  msgstr ""
169
 
170
+ #: includes/class-mla-ajax.php:233 includes/class-mla-main.php:2034
171
  #: includes/class-mla-thumbnail-generation.php:637
172
  msgid "Type"
173
  msgstr ""
174
 
175
+ #: includes/class-mla-ajax.php:233 includes/class-mla-main.php:2035
176
  msgid "Date"
177
  msgstr ""
178
 
179
+ #: includes/class-mla-ajax.php:233 includes/class-mla-main.php:2036
180
  #: includes/class-mla-settings-custom-fields-tab.php:503
181
  #: includes/class-mla-settings-custom-fields-tab.php:803
182
  #: includes/class-mla-settings-iptc-exif-tab.php:511
185
  msgid "Status"
186
  msgstr ""
187
 
188
+ #: includes/class-mla-ajax.php:237 includes/class-mla-list-table.php:879
189
+ #: includes/class-mla-list-table.php:1044 includes/class-mla-main.php:459
190
  #: includes/class-mla-polylang-support.php:363
191
  #: includes/class-mla-thumbnail-generation.php:97
192
  msgid "(no title)"
193
  msgstr ""
194
 
195
+ #: includes/class-mla-ajax.php:243
196
  msgid "Published"
197
  msgstr ""
198
 
199
+ #: includes/class-mla-ajax.php:249
200
  msgid "Pending Review"
201
  msgstr ""
202
 
203
+ #: includes/class-mla-ajax.php:291 includes/class-mla-ajax.php:298
204
+ #: includes/class-mla-ajax.php:307 includes/class-mla-core.php:845
205
  #: includes/class-mla-core.php:863 includes/class-mla-core.php:1288
206
  #: includes/class-mla-core.php:1294 includes/class-mla-core.php:1298
207
  #: includes/class-mla-data-pdf.php:216 includes/class-mla-data-pdf.php:517
208
  #: includes/class-mla-data-pdf.php:519 includes/class-mla-data-pdf.php:565
209
+ #: includes/class-mla-data-pdf.php:749 includes/class-mla-data-query.php:841
210
  #: includes/class-mla-data.php:50 includes/class-mla-data.php:108
211
  #: includes/class-mla-data.php:196 includes/class-mla-data.php:242
212
  #: includes/class-mla-data.php:345 includes/class-mla-data.php:501
213
+ #: includes/class-mla-data.php:564 includes/class-mla-data.php:1497
214
+ #: includes/class-mla-data.php:1695 includes/class-mla-data.php:1701
215
+ #: includes/class-mla-data.php:2098 includes/class-mla-data.php:2102
216
+ #: includes/class-mla-data.php:3245 includes/class-mla-data.php:3287
217
+ #: includes/class-mla-data.php:3331 includes/class-mla-data.php:3711
218
+ #: includes/class-mla-data.php:3724 includes/class-mla-data.php:3746
219
+ #: includes/class-mla-data.php:3960 includes/class-mla-data.php:4006
220
+ #: includes/class-mla-data.php:4039 includes/class-mla-data.php:4055
221
+ #: includes/class-mla-data.php:4308 includes/class-mla-edit-media.php:319
222
+ #: includes/class-mla-edit-media.php:892 includes/class-mla-edit-media.php:934
223
+ #: includes/class-mla-main.php:707 includes/class-mla-main.php:830
224
+ #: includes/class-mla-main.php:832 includes/class-mla-main.php:835
225
+ #: includes/class-mla-main.php:884 includes/class-mla-main.php:918
226
+ #: includes/class-mla-main.php:927 includes/class-mla-main.php:934
227
+ #: includes/class-mla-main.php:1318 includes/class-mla-main.php:1374
228
+ #: includes/class-mla-main.php:1399 includes/class-mla-main.php:1536
229
+ #: includes/class-mla-main.php:1586 includes/class-mla-main.php:1682
230
+ #: includes/class-mla-main.php:1711 includes/class-mla-main.php:1849
231
+ #: includes/class-mla-main.php:1856 includes/class-mla-main.php:2019
232
+ #: includes/class-mla-main.php:2145 includes/class-mla-main.php:2470
233
+ #: includes/class-mla-main.php:2478 includes/class-mla-main.php:2502
234
+ #: includes/class-mla-main.php:2510 includes/class-mla-main.php:2542
235
+ #: includes/class-mla-main.php:2550 includes/class-mla-media-modal.php:617
236
  #: includes/class-mla-mime-types.php:801 includes/class-mla-mime-types.php:1193
237
  #: includes/class-mla-mime-types.php:1281
238
  #: includes/class-mla-mime-types.php:1427
314
  #: includes/class-mla-settings.php:1794 includes/class-mla-settings.php:1801
315
  #: includes/class-mla-settings.php:1810 includes/class-mla-settings.php:1847
316
  #: includes/class-mla-settings.php:1855 includes/class-mla-settings.php:1864
317
+ #: includes/class-mla-shortcode-support.php:2113
318
+ #: includes/class-mla-shortcode-support.php:2202
319
+ #: includes/class-mla-shortcode-support.php:3435
320
+ #: includes/class-mla-shortcode-support.php:3562
321
+ #: includes/class-mla-shortcode-support.php:3594
322
  #: includes/class-mla-shortcode-support.php:4610
323
  #: includes/class-mla-shortcode-support.php:5021
324
  #: includes/class-mla-shortcode-support.php:5058
329
  msgid "ERROR"
330
  msgstr ""
331
 
332
+ #: includes/class-mla-ajax.php:291 includes/class-mla-main.php:1849
333
  msgid "No post ID found"
334
  msgstr ""
335
 
336
+ #: includes/class-mla-ajax.php:298 includes/class-mla-main.php:1856
337
  #: includes/class-mla-polylang-support.php:260
338
  msgid "You are not allowed to edit this Attachment."
339
  msgstr ""
371
  msgstr ""
372
 
373
  #: includes/class-mla-core-options.php:442
374
+ #: includes/class-mla-edit-media.php:827 includes/class-mla-edit-media.php:1079
375
  msgid "Featured in"
376
  msgstr ""
377
 
385
  msgstr ""
386
 
387
  #: includes/class-mla-core-options.php:452
388
+ #: includes/class-mla-edit-media.php:831 includes/class-mla-edit-media.php:1118
389
  msgid "Inserted in"
390
  msgstr ""
391
 
401
  msgstr ""
402
 
403
  #: includes/class-mla-core-options.php:462
404
+ #: includes/class-mla-edit-media.php:835 includes/class-mla-edit-media.php:1153
405
  #: includes/class-mla-settings.php:1560
406
  msgid "Gallery in"
407
  msgstr ""
412
  msgstr ""
413
 
414
  #: includes/class-mla-core-options.php:467
415
+ #: includes/class-mla-core-options.php:477 includes/class-mla-main.php:2373
416
  #: includes/class-mla-settings-custom-fields-tab.php:733
417
  #: includes/class-mla-settings-iptc-exif-tab.php:814
418
  msgid "Refresh"
431
  msgstr ""
432
 
433
  #: includes/class-mla-core-options.php:472
434
+ #: includes/class-mla-edit-media.php:839 includes/class-mla-edit-media.php:1188
435
  #: includes/class-mla-settings.php:1570
436
  msgid "MLA Gallery in"
437
  msgstr ""
463
  msgstr ""
464
 
465
  #: includes/class-mla-core-options.php:499
466
+ msgid "Check this option to display the Count column on taxonomy edit screens."
 
 
467
  msgstr ""
468
 
469
+ #: includes/class-mla-core-options.php:504
470
  msgid ""
471
  "Check the \"<strong>Support</strong>\" box to add the taxonomy to the "
472
  "Assistant and the Edit Media screen."
473
  msgstr ""
474
 
475
+ #: includes/class-mla-core-options.php:505
476
  msgid ""
477
  "Check the \"<strong>Inline Edit</strong>\" box to display the taxonomy in "
478
  "the Quick Edit and Bulk Edit areas."
479
  msgstr ""
480
 
481
+ #: includes/class-mla-core-options.php:506
482
  msgid ""
483
  "Check the \"<strong>Term Search</strong>\" box to add the taxonomy to the "
484
  "\"Search Media/Terms\" list."
485
  msgstr ""
486
 
487
+ #: includes/class-mla-core-options.php:507
488
+ #: includes/class-mla-core-options.php:745 includes/class-mla-settings.php:1088
489
  #: includes/class-mla-settings.php:1089 includes/class-mla-settings.php:1090
490
  msgid "For complete documentation"
491
  msgstr ""
492
 
493
+ #: includes/class-mla-core-options.php:507
494
+ #: includes/class-mla-core-options.php:745 includes/class-mla-settings.php:1088
495
  #: includes/class-mla-settings.php:1089 includes/class-mla-settings.php:1090
496
  msgid "click here"
497
  msgstr ""
498
 
499
+ #: includes/class-mla-core-options.php:509
500
  msgid ""
501
  "Check the \"<strong>Checklist</strong>\" box to enable the checklist-style "
502
  "meta box for a flat taxonomy."
503
  msgstr ""
504
 
505
+ #: includes/class-mla-core-options.php:510
506
  msgid ""
507
  "You must also check the <strong>\"Enable enhanced checklist taxonomies\"</"
508
  "strong> box below to enable this feature."
509
  msgstr ""
510
 
511
+ #: includes/class-mla-core-options.php:511
512
  msgid ""
513
  "Check the \"<strong>Checked On Top</strong>\" box to move checked terms to "
514
  "the top of the checklist-style meta box."
515
  msgstr ""
516
 
517
+ #: includes/class-mla-core-options.php:512
518
  msgid ""
519
  "Check the \"<strong>Inline Add Term</strong>\" box to support adding terms "
520
  "in the Quick Edit and Bulk Edit areas."
521
  msgstr ""
522
 
523
+ #: includes/class-mla-core-options.php:513
524
  msgid ""
525
  "Use the \"<strong>List Filter</strong>\" option to select the taxonomy (or "
526
  "custom field) on which to filter the Assistant table listing."
527
  msgstr ""
528
 
529
+ #: includes/class-mla-core-options.php:514
530
  msgid ""
531
  "To <strong>filter on a custom field</strong>, enter the field name and "
532
  "select ASC (Ascending) or DESC (Descending) order."
533
  msgstr ""
534
 
535
+ #: includes/class-mla-core-options.php:543
536
  msgid "Media/Assistant Screen Options"
537
  msgstr ""
538
 
539
+ #: includes/class-mla-core-options.php:548
540
  msgid "Admin Menu Options"
541
  msgstr ""
542
 
543
+ #: includes/class-mla-core-options.php:553
544
  msgid "Page Title"
545
  msgstr ""
546
 
547
+ #: includes/class-mla-core-options.php:558
548
  msgid "Enter the title for the Media/Assistant submenu page"
549
  msgstr ""
550
 
551
+ #: includes/class-mla-core-options.php:562
552
  msgid "Menu Title"
553
  msgstr ""
554
 
555
+ #: includes/class-mla-core-options.php:567
556
  msgid "Enter the title for the Media/Assistant submenu entry"
557
  msgstr ""
558
 
559
+ #: includes/class-mla-core-options.php:571
560
  msgid "Submenu Order"
561
  msgstr ""
562
 
563
+ #: includes/class-mla-core-options.php:576
564
  msgid ""
565
  "Enter the position of the Media/Assistant submenu entry.<br>&nbsp;&nbsp;0 = "
566
  "natural order (at bottom),&nbsp;&nbsp;&nbsp;&nbsp;1 - 4 = at top<br>&nbsp;"
568
  "\""
569
  msgstr ""
570
 
571
+ #: includes/class-mla-core-options.php:580
572
  msgid "Display Media/Library"
573
  msgstr ""
574
 
575
+ #: includes/class-mla-core-options.php:584
576
  msgid ""
577
  "Check/uncheck this option to display/remove the WordPress Media/Library "
578
  "submenu entry."
579
  msgstr ""
580
 
581
+ #: includes/class-mla-core-options.php:588
582
  msgid "Display Media/Assistant list/grid view switcher"
583
  msgstr ""
584
 
585
+ #: includes/class-mla-core-options.php:592
586
  msgid ""
587
  "Check/uncheck this option to display/remove the \"list/grid\" view switcher "
588
  "on the Media/Assistant submenu."
589
  msgstr ""
590
 
591
+ #: includes/class-mla-core-options.php:596
592
  msgid "Table Defaults"
593
  msgstr ""
594
 
595
+ #: includes/class-mla-core-options.php:601
596
  msgid "Order By"
597
  msgstr ""
598
 
599
+ #: includes/class-mla-core-options.php:606
600
  msgid "ID/Parent"
601
  msgstr ""
602
 
603
+ #: includes/class-mla-core-options.php:607
604
  msgid "Select the column for the sort order of the Assistant table listing."
605
  msgstr ""
606
 
607
+ #: includes/class-mla-core-options.php:611
608
  msgid "Order"
609
  msgstr ""
610
 
611
+ #: includes/class-mla-core-options.php:616
612
  msgid "Ascending"
613
  msgstr ""
614
 
615
+ #: includes/class-mla-core-options.php:616
616
  msgid "Descending"
617
  msgstr ""
618
 
619
+ #: includes/class-mla-core-options.php:617
620
+ #: includes/class-mla-core-options.php:873
621
  msgid "Choose the sort order."
622
  msgstr ""
623
 
624
+ #: includes/class-mla-core-options.php:621 includes/class-mla-main.php:628
625
  msgid "Entries per page"
626
  msgstr ""
627
 
628
+ #: includes/class-mla-core-options.php:625
629
  msgid "Enter the number of Media/Assistant submenu table items per page."
630
  msgstr ""
631
 
632
+ #: includes/class-mla-core-options.php:634
633
  msgid "Views Width"
634
  msgstr ""
635
 
636
+ #: includes/class-mla-core-options.php:639
637
  msgid "Enter the width for the views list, in pixels (px) or percent (%)"
638
  msgstr ""
639
 
640
+ #: includes/class-mla-core-options.php:643
641
  msgid "Icon Size"
642
  msgstr ""
643
 
644
+ #: includes/class-mla-core-options.php:648
645
  msgid "Enter the size of the thumbnail/icon images, in pixels"
646
  msgstr ""
647
 
648
+ #: includes/class-mla-core-options.php:652
649
  msgid "Show Primary Column File Name"
650
  msgstr ""
651
 
652
+ #: includes/class-mla-core-options.php:656
653
  msgid ""
654
  "Check/uncheck this option to show/omit the file name from the primary column."
655
  msgstr ""
656
 
657
+ #: includes/class-mla-core-options.php:660
658
  msgid "QuickTags editor for bulk description"
659
  msgstr ""
660
 
661
+ #: includes/class-mla-core-options.php:664
662
  msgid ""
663
  "Check this option to use the QuickTags editor for the Description field in "
664
  "the Bulk Edit area."
665
  msgstr ""
666
 
667
+ #: includes/class-mla-core-options.php:668
668
  msgid "Bulk Chunk Size"
669
  msgstr ""
670
 
671
+ #: includes/class-mla-core-options.php:673
672
  msgid "Enter the size of the Bulk Edit and Map All processing chunks"
673
  msgstr ""
674
 
675
+ #: includes/class-mla-core-options.php:677
676
  msgid "Taxonomy Filter parameters"
677
  msgstr ""
678
 
679
+ #: includes/class-mla-core-options.php:682
680
  msgid "Maximum Depth"
681
  msgstr ""
682
 
683
+ #: includes/class-mla-core-options.php:687
684
  msgid ""
685
  "Enter the number of levels displayed for hierarchial taxonomies; enter zero "
686
  "for no limit."
687
  msgstr ""
688
 
689
+ #: includes/class-mla-core-options.php:691
690
  msgid "Include Children"
691
  msgstr ""
692
 
693
+ #: includes/class-mla-core-options.php:695
694
  msgid ""
695
  "Check/uncheck this option to include/exclude children for hierarchical "
696
  "taxonomies."
697
  msgstr ""
698
 
699
+ #: includes/class-mla-core-options.php:699
700
  msgid "Search Media Defaults"
701
  msgstr ""
702
 
703
+ #: includes/class-mla-core-options.php:704
704
  msgid "Display Search Controls"
705
  msgstr ""
706
 
707
+ #: includes/class-mla-core-options.php:708
708
+ #: includes/class-mla-core-options.php:834
709
  msgid ""
710
  "Check/uncheck this option to display/hide the and/or connector and search "
711
  "fields controls."
712
  msgstr ""
713
 
714
+ #: includes/class-mla-core-options.php:712
715
  msgid ""
716
  "Use these controls to set defaults for the and/or connector and search "
717
  "fields controls.<br>These defaults will be used for the Search Media boxes "
718
  "on both the Media/Assistant submenu<br>and the Media Manager Modal Window."
719
  msgstr ""
720
 
721
+ #: includes/class-mla-core-options.php:726
722
  msgid "Media/Edit Media Enhancements"
723
  msgstr ""
724
 
725
+ #: includes/class-mla-core-options.php:731
726
  msgid "Enable &quot;enhanced checklist&quot; taxonomies"
727
  msgstr ""
728
 
729
+ #: includes/class-mla-core-options.php:735
730
  msgid ""
731
  "Check this option to enable the \"? Search\" feature for hierarchical "
732
  "taxonomies, e.g., Att. Categories.<br>&nbsp;&nbsp;This option also enables "
733
  "the \"checklist-style\" support for flat taxonomies, e.g., Att. Tags."
734
  msgstr ""
735
 
736
+ #: includes/class-mla-core-options.php:739
737
  msgid "Enable Edit Media additional meta boxes"
738
  msgstr ""
739
 
740
+ #: includes/class-mla-core-options.php:743
741
  msgid ""
742
  "Check this option to add \"Parent Info\", \"Menu Order\", \"Attachment "
743
  "Metadata\" and four \"where-used\" meta boxes to the Edit Media screen."
744
  msgstr ""
745
 
746
+ #: includes/class-mla-core-options.php:744
747
  msgid "You can also use Filters to customize the meta boxes."
748
  msgstr ""
749
 
750
+ #: includes/class-mla-core-options.php:749
751
  msgid "Media/Add New Enhancements"
752
  msgstr ""
753
 
754
+ #: includes/class-mla-core-options.php:754
755
  msgid "Enable &quot;bulk edit&quot; area"
756
  msgstr ""
757
 
758
+ #: includes/class-mla-core-options.php:758
759
  msgid ""
760
  "Check this option to enable the \"Bulk Edit area\" feature on the Media/Add "
761
  "New screen."
762
  msgstr ""
763
 
764
+ #: includes/class-mla-core-options.php:762
765
  msgid "&quot;bulk edit&quot; area on top"
766
  msgstr ""
767
 
768
+ #: includes/class-mla-core-options.php:766
769
  msgid ""
770
  "Check this option to move the \"Bulk Edit area\" to the top of the Media/Add "
771
  "New screen."
772
  msgstr ""
773
 
774
+ #: includes/class-mla-core-options.php:770
775
  msgid "&quot;bulk edit&quot; area initially open"
776
  msgstr ""
777
 
778
+ #: includes/class-mla-core-options.php:773
779
  msgid ""
780
  "Check this option to automatically open the \"Bulk Edit area\" when the "
781
  "Media/Add New screen is displayed."
782
  msgstr ""
783
 
784
+ #: includes/class-mla-core-options.php:777
785
  msgid "Media Manager/Media Grid Enhancements"
786
  msgstr ""
787
 
788
+ #: includes/class-mla-core-options.php:782
789
  msgid "Enable Media Grid Enhancements"
790
  msgstr ""
791
 
792
+ #: includes/class-mla-core-options.php:785
793
  msgid ""
794
  "Check/uncheck this option to enable/disable Media Library Grid View "
795
  "Enhancements."
796
  msgstr ""
797
 
798
+ #: includes/class-mla-core-options.php:789
799
  msgid "Enable Media Manager Enhancements"
800
  msgstr ""
801
 
802
+ #: includes/class-mla-core-options.php:792
803
  msgid ""
804
  "Check/uncheck this option to enable/disable Media Manager Modal Window "
805
  "Enhancements."
806
  msgstr ""
807
 
808
+ #: includes/class-mla-core-options.php:796
809
  msgid "Media Manager Enhanced MIME Type filter"
810
  msgstr ""
811
 
812
+ #: includes/class-mla-core-options.php:799
813
  msgid ""
814
  "Check this option to filter by more MIME Types, e.g., text, applications."
815
  msgstr ""
816
 
817
+ #: includes/class-mla-core-options.php:803
818
  msgid "Media Manager Month and Year filter"
819
  msgstr ""
820
 
821
+ #: includes/class-mla-core-options.php:806
822
  msgid "Check this option to filter by month and year uploaded."
823
  msgstr ""
824
 
825
+ #: includes/class-mla-core-options.php:810
826
  msgid "Media Manager Category/Tag filter"
827
  msgstr ""
828
 
829
+ #: includes/class-mla-core-options.php:813
830
  msgid "Check this option to filter by taxonomy terms."
831
  msgstr ""
832
 
833
+ #: includes/class-mla-core-options.php:817
834
  msgid "Media Manager Terms Search popup"
835
  msgstr ""
836
 
837
+ #: includes/class-mla-core-options.php:820
838
  msgid "Check this option to enable the \"Terms Search\" popup window."
839
  msgstr ""
840
 
841
+ #: includes/class-mla-core-options.php:824
842
  msgid "Media Manager Enhanced Search Media box"
843
  msgstr ""
844
 
845
+ #: includes/class-mla-core-options.php:827
846
  msgid "Check this option to enable search box enhancements."
847
  msgstr ""
848
 
849
+ #: includes/class-mla-core-options.php:831
850
  msgid "Media Manager Enhanced Search Media Controls"
851
  msgstr ""
852
 
853
+ #: includes/class-mla-core-options.php:838
854
  msgid "Media Manager Checklist meta boxes"
855
  msgstr ""
856
 
857
+ #: includes/class-mla-core-options.php:841
858
  msgid ""
859
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
860
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for any taxonomy that uses a "
861
  "<strong>\"checklist-style\"</strong> meta box."
862
  msgstr ""
863
 
864
+ #: includes/class-mla-core-options.php:845
865
  msgid "Media Manager Flat meta boxes"
866
  msgstr ""
867
 
868
+ #: includes/class-mla-core-options.php:848
869
  msgid ""
870
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
871
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies</"
873
  "style\" meta box."
874
  msgstr ""
875
 
876
+ #: includes/class-mla-core-options.php:852
877
  msgid "Media Manager auto-fill meta boxes"
878
  msgstr ""
879
 
880
+ #: includes/class-mla-core-options.php:855
881
  msgid ""
882
  "Check this option to automatically fill MLA-enhanced meta boxes in the "
883
  "\"ATTACHMENT DETAILS\" pane<br>&nbsp;&nbsp;when the item is selected."
884
  msgstr ""
885
 
886
+ #: includes/class-mla-core-options.php:859
887
  msgid "Media Manager Order By"
888
  msgstr ""
889
 
890
+ #: includes/class-mla-core-options.php:863
891
+ #: includes/class-mla-core-options.php:872
892
+ #: includes/class-mla-core-options.php:894
893
+ #: includes/class-mla-core-options.php:908
894
+ #: includes/class-mla-core-options.php:922 includes/class-mla-settings.php:1139
895
  msgid "Media Manager Default"
896
  msgstr ""
897
 
898
+ #: includes/class-mla-core-options.php:863
899
  msgid "Title/Name"
900
  msgstr ""
901
 
902
+ #: includes/class-mla-core-options.php:864
903
  msgid ""
904
  "If you want to override the Media Manager default,<br>&nbsp;&nbsp;select a "
905
  "column for the sort order of the Media Library listing."
906
  msgstr ""
907
 
908
+ #: includes/class-mla-core-options.php:868
909
  msgid "Media Manager Order"
910
  msgstr ""
911
 
912
+ #: includes/class-mla-core-options.php:877
913
  msgid "Attachment Display Settings"
914
  msgstr ""
915
 
916
+ #: includes/class-mla-core-options.php:882
917
  msgid "Media Manager Apply Display Settings"
918
  msgstr ""
919
 
920
+ #: includes/class-mla-core-options.php:885
921
  msgid ""
922
  "Check this option to always start with the Attachment Display Settings set "
923
  "here,<br>&nbsp;&nbsp;overriding browser-/cookie-based defaults."
924
  msgstr ""
925
 
926
+ #: includes/class-mla-core-options.php:889
927
+ #: includes/class-mla-core-options.php:891
928
  msgid "Alignment"
929
  msgstr ""
930
 
931
+ #: includes/class-mla-core-options.php:891
932
+ #: includes/class-mla-core-options.php:905
933
+ #: includes/class-mla-core-options.php:919
934
  #, php-format
935
  msgid ""
936
  "Select a value for the default %1$s option in the Attachment Display "
937
  "Settings."
938
  msgstr ""
939
 
940
+ #: includes/class-mla-core-options.php:894
941
  msgid "Left"
942
  msgstr ""
943
 
944
+ #: includes/class-mla-core-options.php:894
945
  msgid "Center"
946
  msgstr ""
947
 
948
+ #: includes/class-mla-core-options.php:894
949
  msgid "Right"
950
  msgstr ""
951
 
952
+ #: includes/class-mla-core-options.php:903
953
+ #: includes/class-mla-core-options.php:905
954
  msgid "Link To"
955
  msgstr ""
956
 
957
+ #: includes/class-mla-core-options.php:908
958
  msgid "Media File"
959
  msgstr ""
960
 
961
+ #: includes/class-mla-core-options.php:908
962
  msgid "Attachment Page"
963
  msgstr ""
964
 
965
+ #: includes/class-mla-core-options.php:908
966
  msgid "Custom URL"
967
  msgstr ""
968
 
969
+ #: includes/class-mla-core-options.php:917
970
+ #: includes/class-mla-core-options.php:919
971
  msgid "Size"
972
  msgstr ""
973
 
974
+ #: includes/class-mla-core-options.php:922
975
  #: includes/class-mla-thumbnail-generation.php:582
976
  #: includes/class-mla-thumbnail-generation.php:648
977
  msgid "Thumbnail"
978
  msgstr ""
979
 
980
+ #: includes/class-mla-core-options.php:922
981
  msgid "Medium"
982
  msgstr ""
983
 
984
+ #: includes/class-mla-core-options.php:922
985
  msgid "Large"
986
  msgstr ""
987
 
988
+ #: includes/class-mla-core-options.php:922
989
  msgid "Full Size"
990
  msgstr ""
991
 
992
+ #: includes/class-mla-core-options.php:931
993
  msgid "Uninstall (Delete) Plugin Settings"
994
  msgstr ""
995
 
996
+ #: includes/class-mla-core-options.php:936
997
  msgid "Delete Option Settings"
998
  msgstr ""
999
 
1000
+ #: includes/class-mla-core-options.php:939
1001
  msgid ""
1002
  "Check this option to remove all MLA option settings from the database when "
1003
  "the plugin is deleted.<br>&nbsp;&nbsp;<strong>You can make a backup copy</"
1004
  "strong> of your settings below by clicking \""
1005
  msgstr ""
1006
 
1007
+ #: includes/class-mla-core-options.php:939 includes/class-mla-settings.php:1064
1008
  msgid "Export ALL Settings"
1009
  msgstr ""
1010
 
1011
+ #: includes/class-mla-core-options.php:943
1012
  msgid "Delete Option Settings Backups"
1013
  msgstr ""
1014
 
1015
+ #: includes/class-mla-core-options.php:946
1016
  msgid ""
1017
  "Check this option to remove the <code>/wp-content/mla-backup</code> "
1018
  "directory and its contents when the plugin is deleted."
1019
  msgstr ""
1020
 
1021
+ #: includes/class-mla-core-options.php:950
1022
  msgid "Default [mla_gallery] Templates and Settings"
1023
  msgstr ""
1024
 
1025
+ #: includes/class-mla-core-options.php:955
1026
+ #: includes/class-mla-core-options.php:961
1027
+ #: includes/class-mla-core-options.php:999
1028
+ #: includes/class-mla-core-options.php:1005
1029
  msgid "Style Template"
1030
  msgstr ""
1031
 
1032
+ #: includes/class-mla-core-options.php:961
1033
+ #: includes/class-mla-core-options.php:971
1034
+ #: includes/class-mla-core-options.php:1005
1035
+ #: includes/class-mla-core-options.php:1015
1036
  #, php-format
1037
  msgid "Select the default %1$s for your %2$s shortcodes."
1038
  msgstr ""
1039
 
1040
+ #: includes/class-mla-core-options.php:965
1041
+ #: includes/class-mla-core-options.php:1009
1042
  msgid "Markup Template"
1043
  msgstr ""
1044
 
1045
+ #: includes/class-mla-core-options.php:971
1046
+ #: includes/class-mla-core-options.php:1015
1047
  #: includes/class-mla-settings-shortcodes-tab.php:85
1048
  msgid "markup template"
1049
  msgstr ""
1050
 
1051
+ #: includes/class-mla-core-options.php:975
1052
+ #: includes/class-mla-core-options.php:1019
1053
  msgid "Default columns"
1054
  msgstr ""
1055
 
1056
+ #: includes/class-mla-core-options.php:979
1057
  msgid ""
1058
  "Enter the number of [mla_tag_cloud] columns; must be a positive integer."
1059
  msgstr ""
1060
 
1061
+ #: includes/class-mla-core-options.php:983
1062
+ #: includes/class-mla-core-options.php:1027
1063
  msgid "Default mla_margin"
1064
  msgstr ""
1065
 
1066
+ #: includes/class-mla-core-options.php:987
1067
+ #: includes/class-mla-core-options.php:1031
1068
  msgid ""
1069
  "Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
1070
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"none\" to "
1071
  "remove the property entirely."
1072
  msgstr ""
1073
 
1074
+ #: includes/class-mla-core-options.php:991
1075
+ #: includes/class-mla-core-options.php:1035
1076
  msgid "Default mla_itemwidth"
1077
  msgstr ""
1078
 
1079
+ #: includes/class-mla-core-options.php:995
1080
+ #: includes/class-mla-core-options.php:1039
1081
  msgid ""
1082
  "Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
1083
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"calculate"
1087
  "the property entirely."
1088
  msgstr ""
1089
 
1090
+ #: includes/class-mla-core-options.php:1023
1091
  msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
1092
  msgstr ""
1093
 
1094
+ #: includes/class-mla-core-options.php:1043
1095
  msgid "Thumbnail Substitution Support, mla_viewer"
1096
  msgstr ""
1097
 
1098
+ #: includes/class-mla-core-options.php:1048
1099
  msgid "Enable thumbnail substitution"
1100
  msgstr ""
1101
 
1102
+ #: includes/class-mla-core-options.php:1051
1103
  msgid ""
1104
  "Check this option to allow the \"mla_viewer\" to generate thumbnail images "
1105
  "for PDF documents. Thumbnails are generated dynamically, each time the item "
1108
  "strong>"
1109
  msgstr ""
1110
 
1111
+ #: includes/class-mla-core-options.php:1055
1112
  msgid "Enable Featured Images"
1113
  msgstr ""
1114
 
1115
+ #: includes/class-mla-core-options.php:1058
1116
  msgid ""
1117
  "Check this option to extend Featured Image support to all Media Library "
1118
  "items. The Featured Image can be used as a thumbnail image for the item in "
1119
  "an [mla_gallery] display."
1120
  msgstr ""
1121
 
1122
+ #: includes/class-mla-core-options.php:1062
1123
  msgid "Enable Featured Image Generation"
1124
  msgstr ""
1125
 
1126
+ #: includes/class-mla-core-options.php:1065
1127
  msgid ""
1128
  "Check this option to enable the \"Thumbnail\" generation action in the Media/"
1129
  "Assistant submenu Bulk Actions dropdown."
1130
  msgstr ""
1131
 
1132
+ #: includes/class-mla-core-options.php:1069
1133
  msgid "Enable explicit Ghostscript check"
1134
  msgstr ""
1135
 
1136
+ #: includes/class-mla-core-options.php:1072
1137
  msgid ""
1138
  "Check this option to enable the explicit check for Ghostscript support "
1139
  "required for thumbnail generation. If your Ghostscript software is in a non-"
1142
  "leave this option checked unless you know it is safe to turn it off."
1143
  msgstr ""
1144
 
1145
+ #: includes/class-mla-core-options.php:1076
1146
  msgid "Ghostscript path"
1147
  msgstr ""
1148
 
1149
+ #: includes/class-mla-core-options.php:1080
1150
  msgid ""
1151
  "If your &ldquo;gs&rdquo; executable is in a non-standard location, enter the "
1152
  "full path and filename here, e.g., &ldquo;/usr/bin/gs&rdquo;. It will "
1153
  "override the search for Ghostscript in other places."
1154
  msgstr ""
1155
 
1156
+ #: includes/class-mla-core-options.php:1100
1157
  msgid "Enable custom field mapping"
1158
  msgstr ""
1159
 
1160
+ #: includes/class-mla-core-options.php:1103
1161
+ #: includes/class-mla-core-options.php:1110
1162
+ #: includes/class-mla-core-options.php:1117
1163
+ #: includes/class-mla-core-options.php:1134
1164
  msgid "See Help menu."
1165
  msgstr ""
1166
 
1167
+ #: includes/class-mla-core-options.php:1107
1168
  msgid "Enable custom field mapping when adding new media"
1169
  msgstr ""
1170
 
1171
+ #: includes/class-mla-core-options.php:1114
1172
  msgid "Enable custom field mapping when updating media metadata"
1173
  msgstr ""
1174
 
1175
+ #: includes/class-mla-core-options.php:1121
1176
  msgid ""
1177
  "Update the custom field mapping values above, then click Save Changes to "
1178
  "make the updates permanent.<br>You can also make temporary updates and click "
1180
  "saving any rule changes."
1181
  msgstr ""
1182
 
1183
+ #: includes/class-mla-core-options.php:1131
1184
  msgid "Enable IPTC/EXIF Mapping"
1185
  msgstr ""
1186
 
1187
+ #: includes/class-mla-core-options.php:1138
1188
  msgid "Enable IPTC/EXIF Mapping when adding new media"
1189
  msgstr ""
1190
 
1191
+ #: includes/class-mla-core-options.php:1141
1192
  msgid ""
1193
  "Check this option to enable mapping when uploading new media (attachments)."
1194
  "<br>&nbsp;&nbsp;Does NOT affect the operation of the \"Map\" buttons on the "
1195
  "bulk edit, single edit and settings screens."
1196
  msgstr ""
1197
 
1198
+ #: includes/class-mla-core-options.php:1145
1199
  msgid "Enable IPTC/EXIF Mapping when updating media metadata"
1200
  msgstr ""
1201
 
1202
+ #: includes/class-mla-core-options.php:1148
1203
  msgid ""
1204
  "Check this option to enable mapping when media (attachments) metadata is "
1205
  "regenerated,<br>&nbsp;&nbsp;e.g., when the Media/Edit Media \"Edit Image\" "
1206
  "functions are used."
1207
  msgstr ""
1208
 
1209
+ #: includes/class-mla-core-options.php:1152
1210
  msgid ""
1211
  "Update the standard field mapping values above, then click <strong>Save "
1212
  "Changes</strong> to make the updates permanent.<br>You can also make "
1215
  "changes."
1216
  msgstr ""
1217
 
1218
+ #: includes/class-mla-core-options.php:1162
1219
  msgid ""
1220
  "Update the taxonomy term mapping values above, then click <strong>Save "
1221
  "Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
1222
  msgstr ""
1223
 
1224
+ #: includes/class-mla-core-options.php:1172
1225
  msgid ""
1226
  "<strong>Update</strong> individual custom field mapping values above, or "
1227
  "make several updates and click <strong>Save Changes</strong> below to apply "
1232
  "changes."
1233
  msgstr ""
1234
 
1235
+ #: includes/class-mla-core-options.php:1182
1236
  msgid "IPTC/EXIF Mapping help"
1237
  msgstr ""
1238
 
1239
+ #: includes/class-mla-core-options.php:1193 includes/class-mla-data.php:4009
1240
+ #: includes/class-mla-edit-media.php:479 includes/class-mla-main.php:2339
1241
  msgid "Name/Slug"
1242
  msgstr ""
1243
 
1244
+ #: includes/class-mla-core-options.php:1200 includes/class-mla-data.php:4052
1245
+ #: includes/class-mla-edit-media.php:482 includes/class-mla-list-table.php:1345
1246
+ #: includes/class-mla-main.php:2343 includes/class-mla-options.php:471
1247
  #: includes/mla-main-search-box-template.php:51
1248
  #: includes/mla-media-modal-js-template.php:48
1249
  msgid "ALT Text"
1250
  msgstr ""
1251
 
1252
+ #: includes/class-mla-core-options.php:1207 includes/class-mla-data.php:4065
1253
+ #: includes/class-mla-edit-media.php:480 includes/class-mla-main.php:2340
1254
  #: includes/class-mla-options.php:474
1255
  #: includes/mla-main-search-box-template.php:53
1256
  #: includes/mla-media-modal-js-template.php:53
1257
  msgid "Caption"
1258
  msgstr ""
1259
 
1260
+ #: includes/class-mla-core-options.php:1214 includes/class-mla-data.php:4074
1261
+ #: includes/class-mla-edit-media.php:481 includes/class-mla-main.php:2341
1262
  #: includes/class-mla-options.php:477
1263
  #: includes/class-mla-settings-upload-tab.php:174
1264
  #: includes/class-mla-settings-upload-tab.php:538
1275
  msgid "Description"
1276
  msgstr ""
1277
 
1278
+ #: includes/class-mla-core-options.php:1221 includes/class-mla-data.php:4136
1279
+ #: includes/class-mla-data.php:4145 includes/class-mla-edit-media.php:483
1280
+ #: includes/class-mla-edit-media.php:677 includes/class-mla-main.php:2345
1281
  msgid "Uploaded on"
1282
  msgstr ""
1283
 
1284
+ #: includes/class-mla-core-options.php:1241
1285
  msgid "Enable View and Post MIME Type Support"
1286
  msgstr ""
1287
 
1288
+ #: includes/class-mla-core-options.php:1244
1289
  msgid ""
1290
  "Check/uncheck this option to enable/disable Post MIME Type Support, then "
1291
  "click <strong>Save Changes</strong> to record the new setting."
1292
  msgstr ""
1293
 
1294
+ #: includes/class-mla-core-options.php:1253
1295
  msgid "Post MIME Types help."
1296
  msgstr ""
1297
 
1298
+ #: includes/class-mla-core-options.php:1256
1299
  #: includes/class-mla-mime-types.php:1682
1300
  #: includes/class-mla-settings-custom-fields-tab.php:2460
1301
  #: includes/class-mla-settings-documentation-tab.php:1566
1305
  msgid "All"
1306
  msgstr ""
1307
 
1308
+ #: includes/class-mla-core-options.php:1257
1309
  #: includes/class-mla-mime-types.php:1683
1310
  #: includes/class-mla-settings-custom-fields-tab.php:2461
1311
  #: includes/class-mla-settings-documentation-tab.php:1567
1315
  msgid "All"
1316
  msgstr ""
1317
 
1318
+ #: includes/class-mla-core-options.php:1262
1319
+ #: includes/class-mla-core-options.php:1316
1320
+ #: includes/class-mla-core-options.php:1325
1321
+ #: includes/class-mla-core-options.php:1334
1322
  msgctxt "post_mime_types_description"
1323
  msgid "Built-in view"
1324
  msgstr ""
1325
 
1326
+ #: includes/class-mla-core-options.php:1265
1327
  msgctxt "table_view_singular"
1328
  msgid "Image"
1329
  msgstr ""
1330
 
1331
+ #: includes/class-mla-core-options.php:1266
1332
  msgctxt "table_view_plural"
1333
  msgid "Images"
1334
  msgstr ""
1335
 
1336
+ #: includes/class-mla-core-options.php:1271
1337
  msgctxt "post_mime_types_description"
1338
  msgid "All image subtypes"
1339
  msgstr ""
1340
 
1341
+ #: includes/class-mla-core-options.php:1274
1342
  msgctxt "table_view_singular"
1343
  msgid "Audio"
1344
  msgstr ""
1345
 
1346
+ #: includes/class-mla-core-options.php:1275
1347
  msgctxt "table_view_plural"
1348
  msgid "Audio"
1349
  msgstr ""
1350
 
1351
+ #: includes/class-mla-core-options.php:1280
1352
  msgctxt "post_mime_types_description"
1353
  msgid "All audio subtypes"
1354
  msgstr ""
1355
 
1356
+ #: includes/class-mla-core-options.php:1283
1357
  msgctxt "table_view_singular"
1358
  msgid "Video"
1359
  msgstr ""
1360
 
1361
+ #: includes/class-mla-core-options.php:1284
1362
  msgctxt "table_view_plural"
1363
  msgid "Video"
1364
  msgstr ""
1365
 
1366
+ #: includes/class-mla-core-options.php:1289
1367
  msgctxt "post_mime_types_description"
1368
  msgid "All video subtypes"
1369
  msgstr ""
1370
 
1371
+ #: includes/class-mla-core-options.php:1292
1372
  msgctxt "table_view_singular"
1373
  msgid "Text"
1374
  msgstr ""
1375
 
1376
+ #: includes/class-mla-core-options.php:1293
1377
  msgctxt "table_view_plural"
1378
  msgid "Text"
1379
  msgstr ""
1380
 
1381
+ #: includes/class-mla-core-options.php:1298
1382
  msgctxt "post_mime_types_description"
1383
  msgid "All text subtypes"
1384
  msgstr ""
1385
 
1386
+ #: includes/class-mla-core-options.php:1301
1387
  msgctxt "table_view_singular"
1388
  msgid "Application"
1389
  msgstr ""
1390
 
1391
+ #: includes/class-mla-core-options.php:1302
1392
  msgctxt "table_view_plural"
1393
  msgid "Applications"
1394
  msgstr ""
1395
 
1396
+ #: includes/class-mla-core-options.php:1307
1397
  msgctxt "post_mime_types_description"
1398
  msgid "All application subtypes"
1399
  msgstr ""
1400
 
1401
+ #: includes/class-mla-core-options.php:1311
1402
  msgctxt "table_view_plural"
1403
  msgid "Unattached"
1404
  msgstr ""
1405
 
1406
+ #: includes/class-mla-core-options.php:1319
1407
  msgctxt "table_view_singular"
1408
  msgid "Attached"
1409
  msgstr ""
1410
 
1411
+ #: includes/class-mla-core-options.php:1320
1412
  msgctxt "table_view_plural"
1413
  msgid "Attached"
1414
  msgstr ""
1415
 
1416
+ #: includes/class-mla-core-options.php:1328
1417
  msgctxt "table_view_singular"
1418
  msgid "Trash"
1419
  msgstr ""
1420
 
1421
+ #: includes/class-mla-core-options.php:1329
1422
  msgctxt "table_view_plural"
1423
  msgid "Trash"
1424
  msgstr ""
1425
 
1426
+ #: includes/class-mla-core-options.php:1340
1427
  msgid "Enable Upload MIME Type Support"
1428
  msgstr ""
1429
 
1430
+ #: includes/class-mla-core-options.php:1343
1431
  msgid ""
1432
  "Check/uncheck this option to enable/disable Upload MIME Type Support, then "
1433
  "click <strong>Save Changes</strong> to record the new setting."
1434
  msgstr ""
1435
 
1436
+ #: includes/class-mla-core-options.php:1352
1437
  msgid "Upload MIME Types help."
1438
  msgstr ""
1439
 
1440
+ #: includes/class-mla-core-options.php:1357
1441
  msgid "Enable MLA File Type Icons Support"
1442
  msgstr ""
1443
 
1444
+ #: includes/class-mla-core-options.php:1360
1445
  msgid ""
1446
  "Check/uncheck this option to enable/disable MLA File Type Icons Support, "
1447
  "then click <strong>Save Changes</strong> to record the new setting."
1448
  msgstr ""
1449
 
1450
+ #: includes/class-mla-core-options.php:1364
1451
  msgid "Display Limit"
1452
  msgstr ""
1453
 
1454
+ #: includes/class-mla-core-options.php:1368
1455
  msgid ""
1456
  "Enter the maximum number of debug log characters to display; enter zero or "
1457
  "leave blank for no limit."
1458
  msgstr ""
1459
 
1460
+ #: includes/class-mla-core-options.php:1372
1461
  msgid "Debug File"
1462
  msgstr ""
1463
 
1464
+ #: includes/class-mla-core-options.php:1376
1465
  msgid ""
1466
  "Enter the name of an alternate, MLA-specific debug log file; leave blank to "
1467
  "use the PHP error_log.<br>&nbsp;&nbsp;The WP_CONTENT_DIR value (below) will "
1469
  "\"."
1470
  msgstr ""
1471
 
1472
+ #: includes/class-mla-core-options.php:1380
1473
  msgid "Replace PHP error_log file"
1474
  msgstr ""
1475
 
1476
+ #: includes/class-mla-core-options.php:1383
1477
  msgid ""
1478
  "Check this option to replace the PHP error_log file with the MLA Debug File."
1479
  "<br>&nbsp;&nbsp;allows capture of PHP messages in the MLA Debug File."
1480
  msgstr ""
1481
 
1482
+ #: includes/class-mla-core-options.php:1387
1483
  msgid "PHP Reporting"
1484
  msgstr ""
1485
 
1486
+ #: includes/class-mla-core-options.php:1391
1487
  msgid ""
1488
  "Enter a numeric error_reporting value, e.g., 0x7FFF or 32767; leave blank to "
1489
  "use the existing PHP error_reporting value."
1490
  msgstr ""
1491
 
1492
+ #: includes/class-mla-core-options.php:1395
1493
  msgid "MLA Reporting"
1494
  msgstr ""
1495
 
1496
+ #: includes/class-mla-core-options.php:1399
1497
  msgid ""
1498
  "Enter a numeric MLA_DEBUG_LEVEL value, e.g., 0x0003 or 3; leave blank to use "
1499
  "the existing MLA_DEBUG_LEVEL value."
1535
  msgid "+ %s"
1536
  msgstr ""
1537
 
1538
+ #: includes/class-mla-core.php:1433 includes/class-mla-edit-media.php:360
1539
+ #: includes/class-mla-edit-media.php:416 includes/class-mla-main.php:2025
1540
+ #: includes/class-mla-main.php:2206 includes/class-mla-main.php:2270
1541
+ #: includes/class-mla-media-modal.php:647
1542
  #: includes/mla-media-modal-js-template.php:28
1543
  #: includes/mla-media-modal-js-template.php:75
1544
  msgid "Search"
1682
  msgid "Attached to"
1683
  msgstr ""
1684
 
1685
+ #: includes/class-mla-data-query.php:841 includes/class-mla-edit-media.php:319
1686
+ #: includes/class-mla-main.php:2019 includes/class-mla-main.php:2145
1687
+ #: includes/class-mla-media-modal.php:617 includes/class-mla-mime-types.php:801
1688
  #: includes/class-mla-mime-types.php:1450
1689
  #: includes/class-mla-mime-types.php:2640
1690
  #: includes/class-mla-settings-custom-fields-tab.php:552
1704
  msgid "%1$s: %2$s non-array \"%3$s\""
1705
  msgstr ""
1706
 
1707
+ #: includes/class-mla-data-query.php:1326
1708
  #, php-format
1709
  msgctxt "error_log"
1710
  msgid "%1$s: _execute_list_table_query $wp_filter = \"%2$s\"."
1711
  msgstr ""
1712
 
1713
+ #: includes/class-mla-data-query.php:1326
1714
+ #: includes/class-mla-data-query.php:1341
1715
+ #: includes/class-mla-data-query.php:1343
1716
+ #: includes/class-mla-data-query.php:1844
1717
+ #: includes/class-mla-data-query.php:1923
1718
+ #: includes/class-mla-data-query.php:1995
1719
+ #: includes/class-mla-data-query.php:2092
1720
+ #: includes/class-mla-data-query.php:2184
1721
+ #: includes/class-mla-data-query.php:2203
1722
  msgid "DEBUG"
1723
  msgstr ""
1724
 
1725
+ #: includes/class-mla-data-query.php:1341
1726
  #, php-format
1727
  msgctxt "error_log"
1728
  msgid "%1$s: _execute_list_table_query WP_Query = \"%2$s\"."
1729
  msgstr ""
1730
 
1731
+ #: includes/class-mla-data-query.php:1343
1732
  #, php-format
1733
  msgctxt "error_log"
1734
  msgid "%1$s: _execute_list_table_query SQL_request = \"%2$s\"."
1735
  msgstr ""
1736
 
1737
+ #: includes/class-mla-data-query.php:1844
1738
  #, php-format
1739
  msgctxt "error_log"
1740
  msgid "%1$s: mla_query_posts_search_filter = \"%2$s\"."
1741
  msgstr ""
1742
 
1743
+ #: includes/class-mla-data-query.php:1923
1744
  #, php-format
1745
  msgctxt "error_log"
1746
  msgid "%1$s: mla_query_posts_where_filter = \"%2$s\"."
1747
  msgstr ""
1748
 
1749
+ #: includes/class-mla-data-query.php:1995
1750
  #, php-format
1751
  msgctxt "error_log"
1752
  msgid "%1$s: mla_query_posts_join_filter = \"%2$s\"."
1753
  msgstr ""
1754
 
1755
+ #: includes/class-mla-data-query.php:2092
1756
  #, php-format
1757
  msgctxt "error_log"
1758
  msgid "%1$s: mla_query_posts_orderby_filter = \"%2$s\"."
1759
  msgstr ""
1760
 
1761
+ #: includes/class-mla-data-query.php:2184
1762
  #, php-format
1763
  msgctxt "error_log"
1764
  msgid "%1$s: mla_query_posts_clauses_filter = \"%2$s\"."
1765
  msgstr ""
1766
 
1767
+ #: includes/class-mla-data-query.php:2203
1768
  #, php-format
1769
  msgctxt "error_log"
1770
  msgid "%1$s: mla_query_posts_clauses_request_filter = \"%2$s\"."
1839
  msgid "%1$s: _evaluate_template_node unknown type \"%2$s\"."
1840
  msgstr ""
1841
 
1842
+ #: includes/class-mla-data.php:1497
1843
  #, php-format
1844
  msgctxt "error_log"
1845
  msgid ""
1847
  "\"."
1848
  msgstr ""
1849
 
1850
+ #: includes/class-mla-data.php:1695
1851
  #, php-format
1852
  msgctxt "error_log"
1853
  msgid "%1$s: mla_get_attachment_by_id(%2$d) not found."
1854
  msgstr ""
1855
 
1856
+ #: includes/class-mla-data.php:1701
1857
  #, php-format
1858
  msgctxt "error_log"
1859
  msgid "%1$s: mla_get_attachment_by_id(%2$d) wrong post_type \"%3$s\"."
1860
  msgstr ""
1861
 
1862
+ #: includes/class-mla-data.php:2098
1863
  msgctxt "error_log"
1864
  msgid "mla_parse_xmp_metadata xml_parse_into_struct failed."
1865
  msgstr ""
1866
 
1867
+ #: includes/class-mla-data.php:2102
1868
  msgctxt "error_log"
1869
  msgid "mla_parse_xmp_metadata set option failed."
1870
  msgstr ""
1871
 
1872
+ #: includes/class-mla-data.php:3458
1873
  #: includes/class-mla-settings-custom-fields-tab.php:810
1874
  #: includes/class-mla-settings-custom-fields-tab.php:1520
1875
  #: includes/class-mla-settings-iptc-exif-tab.php:893
1882
  msgid "Yes"
1883
  msgstr ""
1884
 
1885
+ #: includes/class-mla-data.php:3460
1886
  #: includes/class-mla-settings-custom-fields-tab.php:811
1887
  #: includes/class-mla-settings-custom-fields-tab.php:1522
1888
  #: includes/class-mla-settings-iptc-exif-tab.php:894
1895
  msgid "No"
1896
  msgstr ""
1897
 
1898
+ #: includes/class-mla-data.php:3708 includes/class-mla-data.php:3825
1899
  #, php-format
1900
  msgid "Deleting %1$s"
1901
  msgstr ""
1902
 
1903
+ #: includes/class-mla-data.php:3711
1904
  #, php-format
1905
  msgid "%1$s: meta:%2$s not found"
1906
  msgstr ""
1907
 
1908
+ #: includes/class-mla-data.php:3720 includes/class-mla-data.php:3836
1909
+ #: includes/class-mla-data.php:3848
1910
  #, php-format
1911
  msgid "Adding %1$s = %2$s"
1912
  msgstr ""
1913
 
1914
+ #: includes/class-mla-data.php:3724
1915
  #, php-format
1916
  msgid "%1$s: Adding meta:%2$s; not found"
1917
  msgstr ""
1918
 
1919
+ #: includes/class-mla-data.php:3731
1920
  #, php-format
1921
  msgid "Deleting Null meta:%1$s"
1922
  msgstr ""
1923
 
1924
+ #: includes/class-mla-data.php:3741 includes/class-mla-data.php:3917
1925
+ #: includes/class-mla-data.php:3983 includes/class-mla-data.php:4009
1926
+ #: includes/class-mla-data.php:4052 includes/class-mla-data.php:4065
1927
+ #: includes/class-mla-data.php:4074 includes/class-mla-data.php:4085
1928
+ #: includes/class-mla-data.php:4096 includes/class-mla-data.php:4109
1929
+ #: includes/class-mla-data.php:4118 includes/class-mla-data.php:4127
1930
+ #: includes/class-mla-data.php:4136 includes/class-mla-data.php:4145
1931
  #: includes/class-mla-mime-types.php:1284
1932
  #: includes/class-mla-mime-types.php:2404
1933
  #, php-format
1934
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
1935
  msgstr ""
1936
 
1937
+ #: includes/class-mla-data.php:3746
1938
  #, php-format
1939
  msgid "%1$s: Changing meta:%2$s; not found"
1940
  msgstr ""
1941
 
1942
+ #: includes/class-mla-data.php:3872
1943
  #, php-format
1944
  msgid "Deleting old %1$s values"
1945
  msgstr ""
1946
 
1947
+ #: includes/class-mla-data.php:3902
1948
  #, php-format
1949
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
1950
  msgstr ""
1951
 
1952
+ #: includes/class-mla-data.php:3960
1953
  msgid "Could not retrieve Attachment."
1954
  msgstr ""
1955
 
1956
+ #: includes/class-mla-data.php:4006
1957
  #, php-format
1958
  msgid "%1$s: Could not change Name/Slug \"%2$s\"; name already exists"
1959
  msgstr ""
1960
 
1961
+ #: includes/class-mla-data.php:4036
1962
  #, php-format
1963
  msgid "Deleting ALT Text, was \"%1$s\""
1964
  msgstr ""
1965
 
1966
+ #: includes/class-mla-data.php:4039
1967
  #, php-format
1968
  msgid "%1$s: Could not delete ALT Text, remains \"%2$s\""
1969
  msgstr ""
1970
 
1971
+ #: includes/class-mla-data.php:4055
1972
  #, php-format
1973
  msgid "%1$s: Could not change ALT Text from \"%2$s\" to \"%3$s\""
1974
  msgstr ""
1975
 
1976
+ #: includes/class-mla-data.php:4085 includes/class-mla-list-table.php:1047
1977
  #: includes/class-mla-list-table.php:1050
1978
  #: includes/class-mla-list-table.php:1053
1979
  #: includes/class-mla-list-table.php:1121 includes/class-mla-options.php:2099
1982
  msgid "Parent"
1983
  msgstr ""
1984
 
1985
+ #: includes/class-mla-data.php:4096 includes/class-mla-edit-media.php:816
1986
+ #: includes/class-mla-edit-media.php:1021 includes/class-mla-main.php:2348
1987
  #: includes/class-mla-settings-view-tab.php:130
1988
  #: includes/class-mla-settings-view-tab.php:386
1989
  msgid "Menu Order"
1990
  msgstr ""
1991
 
1992
+ #: includes/class-mla-data.php:4109 includes/class-mla-edit-media.php:447
1993
  #: includes/class-mla-list-table.php:1501
1994
+ #: includes/class-mla-list-table.php:1504 includes/class-mla-main.php:2151
1995
+ #: includes/class-mla-main.php:2307
1996
  msgid "Author"
1997
  msgstr ""
1998
 
1999
+ #: includes/class-mla-data.php:4118 includes/class-mla-edit-media.php:472
2000
+ #: includes/class-mla-main.php:2360
2001
  msgid "Comments"
2002
  msgstr ""
2003
 
2004
+ #: includes/class-mla-data.php:4127 includes/class-mla-edit-media.php:473
2005
+ #: includes/class-mla-main.php:2361
2006
  msgid "Pings"
2007
  msgstr ""
2008
 
2009
+ #: includes/class-mla-data.php:4172
2010
  #, php-format
2011
  msgid "You cannot assign \"%1$s\" terms"
2012
  msgstr ""
2013
 
2014
+ #: includes/class-mla-data.php:4184
2015
  msgctxt "tag delimiter"
2016
  msgid ","
2017
  msgstr ""
2018
 
2019
+ #: includes/class-mla-data.php:4217
2020
  msgid "Adding"
2021
  msgstr ""
2022
 
2023
+ #: includes/class-mla-data.php:4222
2024
  msgid "Removing"
2025
  msgstr ""
2026
 
2027
+ #: includes/class-mla-data.php:4231
2028
  msgid "Replacing"
2029
  msgstr ""
2030
 
2031
+ #: includes/class-mla-data.php:4239
2032
  msgid "Ignoring"
2033
  msgstr ""
2034
 
2035
+ #: includes/class-mla-data.php:4252
2036
  #, php-format
2037
  msgid "%1$s \"%2$s\" terms"
2038
  msgstr ""
2039
 
2040
+ #: includes/class-mla-data.php:4264 includes/class-mla-main.php:1384
2041
  #, php-format
2042
  msgid "Item %1$d, no changes detected."
2043
  msgstr ""
2044
 
2045
+ #: includes/class-mla-data.php:4294
2046
  #, php-format
2047
  msgid "Item %1$d updated."
2048
  msgstr ""
2049
 
2050
+ #: includes/class-mla-data.php:4308
2051
  #, php-format
2052
  msgid "%1$s: Item %2$d update failed."
2053
  msgstr ""
2054
 
2055
+ #: includes/class-mla-edit-media.php:129 includes/class-mla-edit-media.php:183
2056
+ #: includes/class-mla-edit-media.php:236 includes/class-mla-main.php:468
2057
+ #: includes/class-mla-main.php:1139 includes/class-mla-main.php:1903
2058
+ #: includes/class-mla-media-modal.php:268 includes/class-mla-options.php:1602
2059
  #: includes/class-mla-polylang-support.php:367
2060
  #: includes/class-mla-settings-custom-fields-tab.php:59
2061
  #: includes/class-mla-settings-custom-fields-tab.php:94
2068
  msgid ","
2069
  msgstr ""
2070
 
2071
+ #: includes/class-mla-edit-media.php:178
2072
  msgid "Upload New Media items"
2073
  msgstr ""
2074
 
2075
+ #: includes/class-mla-edit-media.php:179 includes/class-mla-edit-media.php:467
2076
  msgid "Open Bulk Edit area"
2077
  msgstr ""
2078
 
2079
+ #: includes/class-mla-edit-media.php:180
2080
  msgid "Close Bulk Edit area"
2081
  msgstr ""
2082
 
2083
+ #: includes/class-mla-edit-media.php:184 includes/class-mla-edit-media.php:238
2084
+ #: includes/class-mla-main.php:455
2085
  msgid "An ajax.fail error has occurred. Please reload the page and try again."
2086
  msgstr ""
2087
 
2088
+ #: includes/class-mla-edit-media.php:185 includes/class-mla-edit-media.php:239
2089
+ #: includes/class-mla-main.php:456
2090
  msgid "An ajax.done error has occurred. Please reload the page and try again."
2091
  msgstr ""
2092
 
2093
+ #: includes/class-mla-edit-media.php:240 includes/class-mla-main.php:2105
2094
  #, php-format
2095
  msgid "Uploaded on: %s"
2096
  msgstr ""
2097
 
2098
+ #: includes/class-mla-edit-media.php:241 includes/class-mla-edit-media.php:689
2099
  msgid "Last modified"
2100
  msgstr ""
2101
 
2102
+ #: includes/class-mla-edit-media.php:339 includes/class-mla-edit-media.php:395
2103
+ #: includes/class-mla-main.php:2185 includes/class-mla-main.php:2249
2104
  msgid "+&nbsp;Add&nbsp;New&nbsp;Term"
2105
  msgstr ""
2106
 
2107
+ #: includes/class-mla-edit-media.php:340 includes/class-mla-edit-media.php:396
2108
+ #: includes/class-mla-main.php:2186 includes/class-mla-main.php:2250
2109
  msgid "Add New"
2110
  msgstr ""
2111
 
2112
+ #: includes/class-mla-edit-media.php:358 includes/class-mla-edit-media.php:414
2113
+ #: includes/class-mla-main.php:2204 includes/class-mla-main.php:2268
2114
  msgid "?&nbsp;Search"
2115
  msgstr ""
2116
 
2117
+ #: includes/class-mla-edit-media.php:361 includes/class-mla-edit-media.php:417
2118
+ #: includes/class-mla-edit-media.php:426 includes/class-mla-main.php:2207
2119
+ #: includes/class-mla-main.php:2271 includes/class-mla-main.php:2280
2120
  msgid "Add"
2121
  msgstr ""
2122
 
2123
+ #: includes/class-mla-edit-media.php:362 includes/class-mla-edit-media.php:418
2124
+ #: includes/class-mla-edit-media.php:427 includes/class-mla-main.php:2208
2125
+ #: includes/class-mla-main.php:2272 includes/class-mla-main.php:2281
2126
  msgid "Remove"
2127
  msgstr ""
2128
 
2129
+ #: includes/class-mla-edit-media.php:363 includes/class-mla-edit-media.php:419
2130
+ #: includes/class-mla-edit-media.php:428 includes/class-mla-main.php:2209
2131
+ #: includes/class-mla-main.php:2273 includes/class-mla-main.php:2282
2132
  #: includes/class-mla-settings-custom-fields-tab.php:481
2133
  #: includes/class-mla-settings-custom-fields-tab.php:781
2134
  #: includes/class-mla-settings-custom-fields-tab.php:1506
2139
  msgid "Replace"
2140
  msgstr ""
2141
 
2142
+ #: includes/class-mla-edit-media.php:466
2143
  msgid ""
2144
  "IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help "
2145
  "menu for more information."
2146
  msgstr ""
2147
 
2148
+ #: includes/class-mla-edit-media.php:468 includes/class-mla-main.php:2354
2149
  #: includes/class-mla-settings.php:1397
2150
  msgid "Reset"
2151
  msgstr ""
2152
 
2153
+ #: includes/class-mla-edit-media.php:474 includes/class-mla-main.php:2362
2154
+ #: includes/class-mla-main.php:2418
2155
  #: includes/class-mla-settings-custom-fields-tab.php:809
2156
  #: includes/class-mla-settings-iptc-exif-tab.php:892
2157
  #: includes/class-mla-settings-upload-tab.php:122
2160
  msgid "No Change"
2161
  msgstr ""
2162
 
2163
+ #: includes/class-mla-edit-media.php:475 includes/class-mla-main.php:2363
2164
  msgid "Allow"
2165
  msgstr ""
2166
 
2167
+ #: includes/class-mla-edit-media.php:476 includes/class-mla-main.php:2364
2168
  msgid "Do not allow"
2169
  msgstr ""
2170
 
2171
+ #: includes/class-mla-edit-media.php:484 includes/class-mla-list-table.php:1047
2172
+ #: includes/class-mla-list-table.php:1118 includes/class-mla-main.php:2346
2173
  msgid "Parent ID"
2174
  msgstr ""
2175
 
2176
+ #: includes/class-mla-edit-media.php:485 includes/class-mla-edit-media.php:1001
2177
+ #: includes/class-mla-main.php:2347
2178
  #: includes/class-mla-settings-upload-tab.php:1463
2179
  msgid "Select"
2180
  msgstr ""
2181
 
2182
+ #: includes/class-mla-edit-media.php:578
2183
  msgid "Custom field mapping updated."
2184
  msgstr ""
2185
 
2186
+ #: includes/class-mla-edit-media.php:579
2187
  msgid "IPTC/EXIF mapping updated."
2188
  msgstr ""
2189
 
2190
+ #: includes/class-mla-edit-media.php:580
2191
  msgid "Custom field mapping is disabled."
2192
  msgstr ""
2193
 
2194
+ #: includes/class-mla-edit-media.php:581
2195
  msgid "IPTC/EXIF mapping is disabled."
2196
  msgstr ""
2197
 
2198
+ #: includes/class-mla-edit-media.php:616 includes/class-mla-main.php:2089
2199
  msgid "Month"
2200
  msgstr ""
2201
 
2202
+ #: includes/class-mla-edit-media.php:622 includes/class-mla-main.php:2095
2203
  #, php-format
2204
  msgid "%1$s-%2$s"
2205
  msgstr ""
2206
 
2207
+ #: includes/class-mla-edit-media.php:626 includes/class-mla-main.php:2099
2208
  msgid "Day"
2209
  msgstr ""
2210
 
2211
+ #: includes/class-mla-edit-media.php:627 includes/class-mla-main.php:2100
2212
  msgid "Year"
2213
  msgstr ""
2214
 
2215
+ #: includes/class-mla-edit-media.php:628 includes/class-mla-main.php:2101
2216
  msgid "Hour"
2217
  msgstr ""
2218
 
2219
+ #: includes/class-mla-edit-media.php:629 includes/class-mla-main.php:2102
2220
  msgid "Minute"
2221
  msgstr ""
2222
 
2223
+ #: includes/class-mla-edit-media.php:633 includes/class-mla-main.php:2107
2224
  #, php-format
2225
  msgid "%1$s %2$s, %3$s @ %4$s:%5$s"
2226
  msgstr ""
2227
 
2228
+ #: includes/class-mla-edit-media.php:656
2229
  msgid "OK"
2230
  msgstr ""
2231
 
2232
+ #: includes/class-mla-edit-media.php:657 includes/class-mla-main.php:2042
2233
+ #: includes/class-mla-main.php:2353
2234
  #: includes/class-mla-polylang-support.php:2054
2235
  #: includes/class-mla-settings-custom-fields-tab.php:509
2236
  #: includes/class-mla-settings-custom-fields-tab.php:730
2250
  msgid "Cancel"
2251
  msgstr ""
2252
 
2253
+ #: includes/class-mla-edit-media.php:673
2254
  msgid "M j, Y @ H:i"
2255
  msgstr ""
2256
 
2257
+ #: includes/class-mla-edit-media.php:679 includes/class-mla-list-table.php:619
2258
  #: includes/class-mla-list-table.php:747 includes/class-mla-list-table.php:1002
2259
  #: includes/class-mla-list-table.php:1173
2260
  #: includes/class-mla-list-table.php:1222
2275
  msgid "Edit"
2276
  msgstr ""
2277
 
2278
+ #: includes/class-mla-edit-media.php:680
2279
  msgid "Edit upload date and time"
2280
  msgstr ""
2281
 
2282
+ #: includes/class-mla-edit-media.php:682
2283
  msgid "Upload Date and time"
2284
  msgstr ""
2285
 
2286
+ #: includes/class-mla-edit-media.php:712
2287
  msgid "Map Custom Field metadata for this item"
2288
  msgstr ""
2289
 
2290
+ #: includes/class-mla-edit-media.php:712 includes/class-mla-main.php:1817
2291
+ #: includes/class-mla-main.php:2369
2292
  msgid "Map Custom Field metadata"
2293
  msgstr ""
2294
 
2295
+ #: includes/class-mla-edit-media.php:716
2296
  msgid "Map IPTC/EXIF metadata for this item"
2297
  msgstr ""
2298
 
2299
+ #: includes/class-mla-edit-media.php:716 includes/class-mla-main.php:1820
2300
+ #: includes/class-mla-main.php:2367
2301
  msgid "Map IPTC/EXIF metadata"
2302
  msgstr ""
2303
 
2304
+ #: includes/class-mla-edit-media.php:812 includes/class-mla-edit-media.php:1002
2305
  msgid "Parent Info"
2306
  msgstr ""
2307
 
2308
+ #: includes/class-mla-edit-media.php:822 includes/class-mla-edit-media.php:1045
2309
  msgid "Attachment Metadata"
2310
  msgstr ""
2311
 
2312
+ #: includes/class-mla-edit-media.php:892 includes/class-mla-edit-media.php:934
2313
+ #: includes/class-mla-main.php:707 includes/class-mla-settings.php:589
2314
  #, php-format
2315
  msgctxt "error_log"
2316
  msgid "%1$s: %2$s discarding \"%3$s\"; no title/order"
2317
  msgstr ""
2318
 
2319
+ #: includes/class-mla-edit-media.php:1000
2320
  msgid "Post Parent"
2321
  msgstr ""
2322
 
2323
+ #: includes/class-mla-edit-media.php:1001 includes/class-mla-main.php:2024
2324
  msgid "Select Parent"
2325
  msgstr ""
2326
 
2352
  msgstr ""
2353
 
2354
  #: includes/class-mla-list-table.php:509
2355
+ #: includes/class-mla-media-modal-ajax.php:511
2356
  msgid "Not Supported"
2357
  msgstr ""
2358
 
2393
  msgid "Edit this item inline"
2394
  msgstr ""
2395
 
2396
+ #: includes/class-mla-list-table.php:748 includes/class-mla-main.php:2337
2397
  #: includes/class-mla-options.php:1195
2398
  #: includes/class-mla-settings-custom-fields-tab.php:472
2399
  #: includes/class-mla-settings-custom-fields-tab.php:772
2436
  msgid "Delete Permanently"
2437
  msgstr ""
2438
 
2439
+ #: includes/class-mla-list-table.php:767 includes/class-mla-list-table.php:1871
2440
  #: includes/class-mla-settings-documentation-tab.php:688
2441
  #: includes/class-mla-settings.php:1387
2442
  msgid "Download"
2495
  msgstr[0] ""
2496
  msgstr[1] ""
2497
 
2498
+ #: includes/class-mla-list-table.php:1962
2499
  #: includes/class-mla-settings-custom-fields-tab.php:1754
2500
  #: includes/class-mla-settings-iptc-exif-tab.php:1860
2501
  #: includes/class-mla-settings-shortcodes-tab.php:1348
2502
  msgid "Filter"
2503
  msgstr ""
2504
 
2505
+ #: includes/class-mla-list-table.php:1965
2506
  #: includes/mla-media-modal-js-template.php:72
2507
  msgid "Terms Search"
2508
  msgstr ""
2509
 
2510
+ #: includes/class-mla-list-table.php:1970
2511
  #: includes/class-mla-polylang-support.php:2061
2512
  #: includes/class-mla-thumbnail-generation.php:650
2513
  msgid "Clear Filter-by"
2514
  msgstr ""
2515
 
2516
+ #: includes/class-mla-list-table.php:1973
2517
  msgid "Empty Trash"
2518
  msgstr ""
2519
 
2520
+ #: includes/class-mla-main.php:457
2521
  msgid "Error while saving the changes."
2522
  msgstr ""
2523
 
2524
+ #: includes/class-mla-main.php:458
2525
  #: includes/class-mla-settings-custom-fields-tab.php:57
2526
  #: includes/class-mla-settings-custom-fields-tab.php:92
2527
  #: includes/class-mla-settings-iptc-exif-tab.php:57
2531
  msgid "Remove From Bulk Edit"
2532
  msgstr ""
2533
 
2534
+ #: includes/class-mla-main.php:460
2535
  msgid "Bulk Edit items"
2536
  msgstr ""
2537
 
2538
+ #: includes/class-mla-main.php:461 includes/class-mla-main.php:2370
2539
  #: includes/class-mla-settings-custom-fields-tab.php:63
2540
  #: includes/class-mla-settings-iptc-exif-tab.php:63
2541
  msgid "Waiting"
2542
  msgstr ""
2543
 
2544
+ #: includes/class-mla-main.php:462 includes/class-mla-main.php:2372
2545
  #: includes/class-mla-settings-custom-fields-tab.php:65
2546
  #: includes/class-mla-settings-iptc-exif-tab.php:65
2547
  msgid "Complete"
2548
  msgstr ""
2549
 
2550
+ #: includes/class-mla-main.php:463
2551
  #: includes/class-mla-settings-custom-fields-tab.php:66
2552
  #: includes/class-mla-settings-iptc-exif-tab.php:66
2553
  msgid "Unchanged"
2554
  msgstr ""
2555
 
2556
+ #: includes/class-mla-main.php:464
2557
  #: includes/class-mla-settings-custom-fields-tab.php:67
2558
  #: includes/class-mla-settings-iptc-exif-tab.php:67
2559
  msgid "Succeeded"
2560
  msgstr ""
2561
 
2562
+ #: includes/class-mla-main.php:465
2563
  #: includes/class-mla-settings-custom-fields-tab.php:68
2564
  #: includes/class-mla-settings-iptc-exif-tab.php:68
2565
  msgid "Failed"
2566
  msgstr ""
2567
 
2568
+ #: includes/class-mla-main.php:466
2569
  msgid "CANCELED"
2570
  msgstr ""
2571
 
2572
+ #: includes/class-mla-main.php:604
2573
  #, php-format
2574
  msgid "Item permanently deleted."
2575
  msgid_plural "%d items permanently deleted."
2576
  msgstr[0] ""
2577
  msgstr[1] ""
2578
 
2579
+ #: includes/class-mla-main.php:609 includes/class-mla-main.php:2557
2580
  #, php-format
2581
  msgid "Item %1$d moved to Trash."
2582
  msgstr ""
2583
 
2584
+ #: includes/class-mla-main.php:830
2585
  msgid "download path out of bounds."
2586
  msgstr ""
2587
 
2588
+ #: includes/class-mla-main.php:832
2589
  msgid "download path invalid."
2590
  msgstr ""
2591
 
2592
+ #: includes/class-mla-main.php:835
2593
  msgid "download argument(s) not set."
2594
  msgstr ""
2595
 
2596
+ #: includes/class-mla-main.php:884
2597
+ msgid "no ZipArchive support."
2598
+ msgstr ""
2599
+
2600
+ #: includes/class-mla-main.php:916
2601
+ #, php-format
2602
+ msgid "The ZIP archive ( %1$s ) could not be created."
2603
+ msgstr ""
2604
+
2605
+ #: includes/class-mla-main.php:926
2606
+ #, php-format
2607
+ msgid "The file ( %1$s ) could not be added to the ZIP archive."
2608
+ msgstr ""
2609
+
2610
+ #: includes/class-mla-main.php:933
2611
+ #, php-format
2612
+ msgid "The ZIP archive ( %1$s ) could not be closed."
2613
+ msgstr ""
2614
+
2615
+ #: includes/class-mla-main.php:1318
2616
  msgid "You are not allowed to edit Attachment: "
2617
  msgstr ""
2618
 
2619
+ #: includes/class-mla-main.php:1374
2620
  #, php-format
2621
  msgid "%1$s: Unknown bulk action %2$s"
2622
  msgstr ""
2623
 
2624
+ #: includes/class-mla-main.php:1396
2625
  msgid "no changes detected"
2626
  msgstr ""
2627
 
2628
+ #: includes/class-mla-main.php:1443
2629
  #: includes/class-mla-settings-custom-fields-tab.php:607
2630
  #: includes/class-mla-settings-documentation-tab.php:275
2631
  #: includes/class-mla-settings-iptc-exif-tab.php:686
2636
  msgid "Bulk Action %1$s - no items selected."
2637
  msgstr ""
2638
 
2639
+ #: includes/class-mla-main.php:1537
2640
  msgid "You do not have permission to manage attachments."
2641
  msgstr ""
2642
 
2643
+ #: includes/class-mla-main.php:1595
2644
  #, php-format
2645
  msgctxt "deleted items"
2646
  msgid "%s item deleted."
2648
  msgstr[0] ""
2649
  msgstr[1] ""
2650
 
2651
+ #: includes/class-mla-main.php:1597
2652
  msgid "No items deleted."
2653
  msgstr ""
2654
 
2655
+ #: includes/class-mla-main.php:1649
2656
  msgid "Empty Terms Search; ignored"
2657
  msgstr ""
2658
 
2659
+ #: includes/class-mla-main.php:1661
2660
  #: includes/class-mla-settings-custom-fields-tab.php:634
2661
  #: includes/class-mla-settings-documentation-tab.php:307
2662
  #: includes/class-mla-settings-iptc-exif-tab.php:715
2667
  msgid "Unknown mla_admin_action - \"%1$s\""
2668
  msgstr ""
2669
 
2670
+ #: includes/class-mla-main.php:1699
2671
  msgid "term search results for"
2672
  msgstr ""
2673
 
2674
+ #: includes/class-mla-main.php:1702
2675
  msgid "post/parent results for"
2676
  msgstr ""
2677
 
2678
+ #: includes/class-mla-main.php:1704
2679
  msgid "search results for"
2680
  msgstr ""
2681
 
2682
+ #: includes/class-mla-main.php:1823 includes/class-mla-main.php:2046
2683
+ #: includes/class-mla-main.php:2355
2684
  #: includes/class-mla-settings-custom-fields-tab.php:511
2685
  #: includes/class-mla-settings-custom-fields-tab.php:813
2686
  #: includes/class-mla-settings-documentation-tab.php:679
2695
  msgid "Update"
2696
  msgstr ""
2697
 
2698
+ #: includes/class-mla-main.php:1981
2699
  msgid "All Post Types"
2700
  msgstr ""
2701
 
2702
+ #: includes/class-mla-main.php:2027
2703
  msgid "For"
2704
  msgstr ""
2705
 
2706
+ #: includes/class-mla-main.php:2037
2707
+ #: includes/class-mla-shortcode-support.php:1129
2708
  msgid "Unattached"
2709
  msgstr ""
2710
 
2711
+ #: includes/class-mla-main.php:2356 includes/class-mla-options.php:1209
2712
  #: includes/class-mla-settings-custom-fields-tab.php:475
2713
  #: includes/class-mla-settings-custom-fields-tab.php:775
2714
  #: includes/class-mla-settings-custom-fields-tab.php:1466
2718
  msgid "Bulk Edit"
2719
  msgstr ""
2720
 
2721
+ #: includes/class-mla-main.php:2371
2722
  msgid "In-process"
2723
  msgstr ""
2724
 
2725
+ #: includes/class-mla-main.php:2470
2726
  msgid "You are not allowed to delete this item."
2727
  msgstr ""
2728
 
2729
+ #: includes/class-mla-main.php:2478
2730
  #, php-format
2731
  msgid "%1$s: Item %2$d could NOT be deleted."
2732
  msgstr ""
2733
 
2734
+ #: includes/class-mla-main.php:2485
2735
  #, php-format
2736
  msgid "Item %1$d permanently deleted."
2737
  msgstr ""
2738
 
2739
+ #: includes/class-mla-main.php:2502
2740
  msgid "You are not allowed to move this item out of the Trash."
2741
  msgstr ""
2742
 
2743
+ #: includes/class-mla-main.php:2510
2744
  #, php-format
2745
  msgid "%1$s: Item %2$d could NOT be restored from Trash."
2746
  msgstr ""
2747
 
2748
+ #: includes/class-mla-main.php:2525
2749
  #, php-format
2750
  msgid "Item %1$d restored from Trash."
2751
  msgstr ""
2752
 
2753
+ #: includes/class-mla-main.php:2542
2754
  msgid "You are not allowed to move this item to the Trash."
2755
  msgstr ""
2756
 
2757
+ #: includes/class-mla-main.php:2550
2758
  #, php-format
2759
  msgid "%1$s: Item %2$d could NOT be moved to Trash."
2760
  msgstr ""
2761
 
2762
+ #: includes/class-mla-media-modal-ajax.php:291
2763
+ #: includes/class-mla-media-modal-ajax.php:297
2764
+ #: includes/class-mla-media-modal-ajax.php:397
2765
+ #: includes/class-mla-media-modal-ajax.php:432
2766
+ #: includes/class-mla-media-modal-ajax.php:505
2767
  msgid "Click to toggle"
2768
  msgstr ""
2769
 
2770
+ #: includes/class-mla-media-modal-ajax.php:443
2771
  msgid "Tags"
2772
  msgstr ""
2773
 
2774
+ #: includes/class-mla-media-modal-ajax.php:445
2775
  #: includes/class-mla-objects.php:50 includes/class-mla-objects.php:83
2776
  #: includes/class-mla-settings-upload-tab.php:528
2777
  #: includes/class-mla-settings-view-tab.php:374
2779
  msgid "Add New %1$s"
2780
  msgstr ""
2781
 
2782
+ #: includes/class-mla-media-modal-ajax.php:469
2783
+ #: includes/class-mla-media-modal.php:295
2784
+ msgid "Remove term"
2785
+ msgstr ""
2786
+
2787
+ #: includes/class-mla-media-modal-ajax.php:489
2788
  msgid "Choose from the most used tags"
2789
  msgstr ""
2790
 
2791
+ #: includes/class-mla-media-modal.php:140
2792
  msgid "Show all dates"
2793
  msgstr ""
2794
 
2795
+ #: includes/class-mla-media-modal.php:155
2796
  #, php-format
2797
  msgid "%1$s %2$d"
2798
  msgstr ""
2799
 
2800
+ #: includes/class-mla-media-modal.php:397
2801
  msgid "Search Box"
2802
  msgstr ""
2803
 
2804
+ #: includes/class-mla-media-modal.php:398
2805
  msgid "Loading..."
2806
  msgstr ""
2807
 
2808
+ #: includes/class-mla-media-modal.php:630
2809
+ #: includes/class-mla-media-modal.php:646
2810
  msgid "Search Terms"
2811
  msgstr ""
2812
 
2813
+ #: includes/class-mla-media-modal.php:631
2814
  msgid "There are no taxonomies to search"
2815
  msgstr ""
2816
 
2817
+ #: includes/class-mla-media-modal.php:649
2818
  msgid "All phrases"
2819
  msgstr ""
2820
 
2821
+ #: includes/class-mla-media-modal.php:651
2822
  msgid "Any phrase"
2823
  msgstr ""
2824
 
2825
+ #: includes/class-mla-media-modal.php:653
2826
  msgid "All terms"
2827
  msgstr ""
2828
 
2829
+ #: includes/class-mla-media-modal.php:655
2830
  msgid "Any term"
2831
  msgstr ""
2832
 
2833
+ #: includes/class-mla-media-modal.php:657
2834
  msgid "Exact"
2835
  msgstr ""
2836
 
5506
  msgid "Settings imported; %1$s updated, %2$s unchanged."
5507
  msgstr ""
5508
 
5509
+ #: includes/class-mla-shortcode-support.php:476
5510
+ #: includes/class-mla-shortcode-support.php:1873
5511
+ #: includes/class-mla-shortcode-support.php:3906
5512
  #: includes/class-mla-shortcode-support.php:4188
5513
  msgid "Previous"
5514
  msgstr ""
5515
 
5516
+ #: includes/class-mla-shortcode-support.php:477
5517
+ #: includes/class-mla-shortcode-support.php:1874
5518
+ #: includes/class-mla-shortcode-support.php:3955
5519
  #: includes/class-mla-shortcode-support.php:4194
5520
  msgid "Next"
5521
  msgstr ""
5522
 
5523
+ #: includes/class-mla-shortcode-support.php:548
5524
+ #: includes/class-mla-shortcode-support.php:554
5525
+ #: includes/class-mla-shortcode-support.php:2012
5526
+ #: includes/class-mla-shortcode-support.php:2019
5527
+ #: includes/class-mla-shortcode-support.php:3332
5528
+ #: includes/class-mla-shortcode-support.php:3339
5529
  #: includes/class-mla-template-support.php:598
5530
  msgid "not found"
5531
  msgstr ""
5532
 
5533
+ #: includes/class-mla-shortcode-support.php:578
5534
+ #: includes/class-mla-shortcode-support.php:2004
5535
+ #: includes/class-mla-shortcode-support.php:3324
5536
  msgid "mla_debug REQUEST"
5537
  msgstr ""
5538
 
5539
+ #: includes/class-mla-shortcode-support.php:579
5540
+ #: includes/class-mla-shortcode-support.php:2005
5541
+ #: includes/class-mla-shortcode-support.php:3325
5542
  msgid "mla_debug attributes"
5543
  msgstr ""
5544
 
5545
+ #: includes/class-mla-shortcode-support.php:580
5546
+ #: includes/class-mla-shortcode-support.php:2006
5547
+ #: includes/class-mla-shortcode-support.php:3326
5548
  msgid "mla_debug arguments"
5549
  msgstr ""
5550
 
5551
+ #: includes/class-mla-shortcode-support.php:672
5552
  msgid "mla_debug empty gallery"
5553
  msgstr ""
5554
 
5555
+ #: includes/class-mla-shortcode-support.php:693
5556
  msgid ""
5557
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
5558
  "<strong>default</strong>, query = "
5559
  msgstr ""
5560
 
5561
+ #: includes/class-mla-shortcode-support.php:1153
5562
  msgid "unknown"
5563
  msgstr ""
5564
 
5565
+ #: includes/class-mla-shortcode-support.php:2137
5566
  msgid "mla_debug empty cloud"
5567
  msgstr ""
5568
 
5569
+ #: includes/class-mla-shortcode-support.php:3460
5570
  msgid "mla_debug empty list"
5571
  msgstr ""
5572
 
5573
+ #: includes/class-mla-shortcode-support.php:3483
5574
  msgid "no-terms"
5575
  msgstr ""
5576
 
5580
  msgid "Invalid mla_gallery"
5581
  msgstr ""
5582
 
5583
+ #: includes/class-mla-shortcode-support.php:5329
5584
  msgid "mla_debug query"
5585
  msgstr ""
5586
 
5587
+ #: includes/class-mla-shortcode-support.php:5330
5588
  msgid "mla_debug request"
5589
  msgstr ""
5590
 
5591
+ #: includes/class-mla-shortcode-support.php:5331
5592
  msgid "mla_debug query_vars"
5593
  msgstr ""
5594
 
5595
+ #: includes/class-mla-shortcode-support.php:5332
5596
  msgid "mla_debug post_count"
5597
  msgstr ""
5598
 
5599
+ #: includes/class-mla-shortcode-support.php:5356
5600
  msgid "mla_debug JOIN filter"
5601
  msgstr ""
5602
 
5603
+ #: includes/class-mla-shortcode-support.php:5396
5604
  msgid "mla_debug modified JOIN filter"
5605
  msgstr ""
5606
 
5607
+ #: includes/class-mla-shortcode-support.php:5421
5608
  msgid "mla_debug WHERE filter"
5609
  msgstr ""
5610
 
5611
+ #: includes/class-mla-shortcode-support.php:5445
5612
  msgid "mla_debug modified WHERE filter"
5613
  msgstr ""
5614
 
5615
+ #: includes/class-mla-shortcode-support.php:5468
5616
  msgid "mla_debug ORDER BY filter, incoming"
5617
  msgstr ""
5618
 
5619
+ #: includes/class-mla-shortcode-support.php:5468
5620
  msgid "Replacement ORDER BY clause"
5621
  msgstr ""
5622
 
5623
+ #: includes/class-mla-shortcode-support.php:5491
5624
  msgid "mla_debug posts_clauses filter"
5625
  msgstr ""
5626
 
5627
+ #: includes/class-mla-shortcode-support.php:5509
5628
  msgid "mla_debug posts_clauses_request filter"
5629
  msgstr ""
5630
 
5631
+ #: includes/class-mla-shortcode-support.php:5723
5632
  msgid "Invalid taxonomy"
5633
  msgstr ""
5634
 
5635
+ #: includes/class-mla-shortcode-support.php:5903
5636
  msgid "mla_debug query arguments"
5637
  msgstr ""
5638
 
5639
+ #: includes/class-mla-shortcode-support.php:5904
5640
  msgid "mla_debug last_query"
5641
  msgstr ""
5642
 
5643
+ #: includes/class-mla-shortcode-support.php:5905
5644
  msgid "mla_debug last_error"
5645
  msgstr ""
5646
 
5647
+ #: includes/class-mla-shortcode-support.php:5906
5648
  msgid "mla_debug num_rows"
5649
  msgstr ""
5650
 
5651
+ #: includes/class-mla-shortcode-support.php:5907
5652
  msgid "mla_debug found_rows"
5653
  msgstr ""
5654
 
5958
  msgid "You must resolve these conflicts before this plugin can safely load."
5959
  msgstr ""
5960
 
5961
+ #: index.php:44
5962
  msgid ""
5963
  "Enhances the Media Library; powerful [mla_gallery] [mla_tag_cloud] "
5964
  "[mla_term_list], taxonomy support, IPTC/EXIF/XMP/PDF processing, bulk/quick "
languages/media-library-assistant-en_US.po CHANGED
@@ -1,11 +1,9 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Media Library Assistant\n"
4
- "POT-Creation-Date: 2019-01-01 17:31-0800\n"
5
- "PO-Revision-Date: 2019-01-01 17:32-0800\n"
6
- "Last-Translator: David Lingren <dlingren@comcast.net>\n"
7
  "Language-Team: David Lingren <david@fairtradejudaica.org>\n"
8
- "Language: en_US\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
@@ -15,6 +13,8 @@ msgstr ""
15
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
16
  "_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
 
 
18
  "X-Poedit-SearchPath-0: includes\n"
19
  "X-Poedit-SearchPath-1: tests\n"
20
  "X-Poedit-SearchPath-2: index.php\n"
@@ -177,9 +177,7 @@ msgstr ""
177
  msgid "Show Count Column"
178
  msgstr ""
179
 
180
- msgid ""
181
- "Check this option to display the Count column on Categories and Tags "
182
- "taxonomy edit screens."
183
  msgstr ""
184
 
185
  msgid ""
@@ -1615,6 +1613,21 @@ msgstr ""
1615
  msgid "download argument(s) not set."
1616
  msgstr ""
1617
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1618
  msgid "You are not allowed to edit Attachment: "
1619
  msgstr ""
1620
 
@@ -1715,6 +1728,9 @@ msgstr ""
1715
  msgid "Add New %1$s"
1716
  msgstr ""
1717
 
 
 
 
1718
  msgid "Choose from the most used tags"
1719
  msgstr ""
1720
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Media Library Assistant\n"
4
+ "POT-Creation-Date: 2019-04-07 22:24-0700\n"
5
+ "PO-Revision-Date: 2019-04-07 22:25-0700\n"
 
6
  "Language-Team: David Lingren <david@fairtradejudaica.org>\n"
 
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
13
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
14
  "_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
+ "Last-Translator: David Lingren <dlingren@comcast.net>\n"
17
+ "Language: en_US\n"
18
  "X-Poedit-SearchPath-0: includes\n"
19
  "X-Poedit-SearchPath-1: tests\n"
20
  "X-Poedit-SearchPath-2: index.php\n"
177
  msgid "Show Count Column"
178
  msgstr ""
179
 
180
+ msgid "Check this option to display the Count column on taxonomy edit screens."
 
 
181
  msgstr ""
182
 
183
  msgid ""
1613
  msgid "download argument(s) not set."
1614
  msgstr ""
1615
 
1616
+ msgid "no ZipArchive support."
1617
+ msgstr ""
1618
+
1619
+ #, php-format
1620
+ msgid "The ZIP archive ( %1$s ) could not be created."
1621
+ msgstr ""
1622
+
1623
+ #, php-format
1624
+ msgid "The file ( %1$s ) could not be added to the ZIP archive."
1625
+ msgstr ""
1626
+
1627
+ #, php-format
1628
+ msgid "The ZIP archive ( %1$s ) could not be closed."
1629
+ msgstr ""
1630
+
1631
  msgid "You are not allowed to edit Attachment: "
1632
  msgstr ""
1633
 
1728
  msgid "Add New %1$s"
1729
  msgstr ""
1730
 
1731
+ msgid "Remove term"
1732
+ msgstr ""
1733
+
1734
  msgid "Choose from the most used tags"
1735
  msgstr ""
1736
 
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: 2018-03-25 15:56-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@fairtradejudaica.org>\n"
@@ -178,9 +178,7 @@ msgstr ""
178
  msgid "Show Count Column"
179
  msgstr ""
180
 
181
- msgid ""
182
- "Check this option to display the Count column on Categories and Tags "
183
- "taxonomy edit screens."
184
  msgstr ""
185
 
186
  msgid ""
@@ -215,10 +213,15 @@ msgid ""
215
  msgstr ""
216
 
217
  msgid ""
218
- "Check the \"<strong>Checked On Top</strong>\" box to moved checked terms to "
219
  "the top of the checklist-style meta box."
220
  msgstr ""
221
 
 
 
 
 
 
222
  msgid ""
223
  "Use the \"<strong>List Filter</strong>\" option to select the taxonomy (or "
224
  "custom field) on which to filter the Assistant table listing."
@@ -1345,10 +1348,13 @@ msgstr ""
1345
  msgid "Last modified"
1346
  msgstr ""
1347
 
1348
- msgid "more"
 
 
 
1349
  msgstr ""
1350
 
1351
- msgid "less"
1352
  msgstr ""
1353
 
1354
  msgid "Add"
@@ -1608,6 +1614,21 @@ msgstr ""
1608
  msgid "download argument(s) not set."
1609
  msgstr ""
1610
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1611
  msgid "You are not allowed to edit Attachment: "
1612
  msgstr ""
1613
 
@@ -1708,6 +1729,9 @@ msgstr ""
1708
  msgid "Add New %1$s"
1709
  msgstr ""
1710
 
 
 
 
1711
  msgid "Choose from the most used tags"
1712
  msgstr ""
1713
 
@@ -2059,6 +2083,9 @@ msgstr ""
2059
  msgid "Checked On Top"
2060
  msgstr ""
2061
 
 
 
 
2062
  msgid "List Filter"
2063
  msgstr ""
2064
 
@@ -2085,6 +2112,10 @@ msgstr ""
2085
  msgid "Checked On Top ignored; %1$s not supported."
2086
  msgstr ""
2087
 
 
 
 
 
2088
  #, php-format
2089
  msgid "Update custom %1$s"
2090
  msgstr ""
@@ -3378,26 +3409,6 @@ msgstr ""
3378
  msgid "Delete General options and restore default settings"
3379
  msgstr ""
3380
 
3381
- msgid "Support Our Work"
3382
- msgstr ""
3383
-
3384
- msgid "Donate to FTJ"
3385
- msgstr ""
3386
-
3387
- msgid "Donate"
3388
- msgstr ""
3389
-
3390
- #, php-format
3391
- msgid ""
3392
- "This plugin was inspired by my work on the WordPress web site for our "
3393
- "nonprofit, Fair Trade Judaica. If you find the Media Library Assistant "
3394
- "plugin useful and would like to support a great cause, consider a %1$s to "
3395
- "our work. Thank you!"
3396
- msgstr ""
3397
-
3398
- msgid "tax-deductible donation"
3399
- msgstr ""
3400
-
3401
  msgid "enhanced version of the WordPress [gallery] shortcode."
3402
  msgstr ""
3403
 
@@ -3609,6 +3620,12 @@ msgstr ""
3609
  msgid "mla_debug post_count"
3610
  msgstr ""
3611
 
 
 
 
 
 
 
3612
  msgid "mla_debug WHERE filter"
3613
  msgstr ""
3614
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Media Library Assistant\n"
5
+ "POT-Creation-Date: 2019-04-07 22:24-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@fairtradejudaica.org>\n"
178
  msgid "Show Count Column"
179
  msgstr ""
180
 
181
+ msgid "Check this option to display the Count column on taxonomy edit screens."
 
 
182
  msgstr ""
183
 
184
  msgid ""
213
  msgstr ""
214
 
215
  msgid ""
216
+ "Check the \"<strong>Checked On Top</strong>\" box to move checked terms to "
217
  "the top of the checklist-style meta box."
218
  msgstr ""
219
 
220
+ msgid ""
221
+ "Check the \"<strong>Inline Add Term</strong>\" box to support adding terms "
222
+ "in the Quick Edit and Bulk Edit areas."
223
+ msgstr ""
224
+
225
  msgid ""
226
  "Use the \"<strong>List Filter</strong>\" option to select the taxonomy (or "
227
  "custom field) on which to filter the Assistant table listing."
1348
  msgid "Last modified"
1349
  msgstr ""
1350
 
1351
+ msgid "+&nbsp;Add&nbsp;New&nbsp;Term"
1352
+ msgstr ""
1353
+
1354
+ msgid "Add New"
1355
  msgstr ""
1356
 
1357
+ msgid "?&nbsp;Search"
1358
  msgstr ""
1359
 
1360
  msgid "Add"
1614
  msgid "download argument(s) not set."
1615
  msgstr ""
1616
 
1617
+ msgid "no ZipArchive support."
1618
+ msgstr ""
1619
+
1620
+ #, php-format
1621
+ msgid "The ZIP archive ( %1$s ) could not be created."
1622
+ msgstr ""
1623
+
1624
+ #, php-format
1625
+ msgid "The file ( %1$s ) could not be added to the ZIP archive."
1626
+ msgstr ""
1627
+
1628
+ #, php-format
1629
+ msgid "The ZIP archive ( %1$s ) could not be closed."
1630
+ msgstr ""
1631
+
1632
  msgid "You are not allowed to edit Attachment: "
1633
  msgstr ""
1634
 
1729
  msgid "Add New %1$s"
1730
  msgstr ""
1731
 
1732
+ msgid "Remove term"
1733
+ msgstr ""
1734
+
1735
  msgid "Choose from the most used tags"
1736
  msgstr ""
1737
 
2083
  msgid "Checked On Top"
2084
  msgstr ""
2085
 
2086
+ msgid "Inline Add Term"
2087
+ msgstr ""
2088
+
2089
  msgid "List Filter"
2090
  msgstr ""
2091
 
2112
  msgid "Checked On Top ignored; %1$s not supported."
2113
  msgstr ""
2114
 
2115
+ #, php-format
2116
+ msgid "Inline Add Term ignored; %1$s not supported."
2117
+ msgstr ""
2118
+
2119
  #, php-format
2120
  msgid "Update custom %1$s"
2121
  msgstr ""
3409
  msgid "Delete General options and restore default settings"
3410
  msgstr ""
3411
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3412
  msgid "enhanced version of the WordPress [gallery] shortcode."
3413
  msgstr ""
3414
 
3620
  msgid "mla_debug post_count"
3621
  msgstr ""
3622
 
3623
+ msgid "mla_debug JOIN filter"
3624
+ msgstr ""
3625
+
3626
+ msgid "mla_debug modified JOIN filter"
3627
+ msgstr ""
3628
+
3629
  msgid "mla_debug WHERE filter"
3630
  msgstr ""
3631
 
readme.txt CHANGED
@@ -1,11 +1,11 @@
1
- === Media Library Assistant ===
2
  Contributors: dglingren
3
  Donate link: http://davidlingren.com/#two
4
  Tags: attachments, gallery, images, media, media library, tags, categories, 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.0.3
7
  Requires PHP: 5.3
8
- Stable tag: 2.78
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -181,32 +181,27 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
181
 
182
  == Changelog ==
183
 
184
- = 2.78 =
185
- * New: For the Media/Assistant "Search Media" and "Terms Search" functions, keywords and terms can be excluded from the results by enclosing them in "/" delimiters, e.g., "/not/ happy" will return items containing "happy" after excluding items containing "not". This new feature also works in the Media/Library "grid" view and in the "Add media" popup window.
186
- * Fix: Eliminate fatal errors supporting Admin Columns Pro version 4.5.x
187
- * Fix: When Polylang is active, eliminate PHP error messages from MLA_Polylang_Shortcodes::mla_get_terms_clauses.
188
- * Fix: For `[mla_gallery]` eliminate PHP warning messages for some invalid parameter situations.
189
- * Fix: Simplify MLA_Ajax logging and remove PHP Notice regarding missing "action" value.
190
- * Fix: For "MLA USP Novo-Map Example" plugin, rewrite the "Introduction" section in the Documentation tab.
191
-
192
- = 2.77 =
193
- * Fix: Preserve current term assignments for checklist-style taxonomies when opening the Media/Assistant Quick Edit area. This defect was introduced in v2.76.
194
-
195
- = 2.76 =
196
- * New: For the Media/Assistant Quick Edit and Bulk Edit areas, "checklist-style" taxonomies such as Att. Categories now have an <strong>"+ Add New Term"</strong> feature that lets you add a new term to the taxonomy without leaving the area. <strong>You must enable the new feature</strong> by checking the "Inline Add Term" box for each taxonomy in the Settings/Media Library Assistant General tab, "Taxonomy Support" section.
197
- * New: For the Media/Assistant Quick Edit and Bulk Edit areas, "checklist-style" taxonomies such as Att. Categories now have a <strong>"? Search"</strong> feature that lets you filter the checklist by entering part or all of the term name.
198
- * New: For the "WooCommerce Fixit" example plugin, a new "Replace Name/Slug" tool has been added.
199
- * New: A new example plugin, "MLA USP Novo-Map Example", has been added. The plugin fills posts created by the "User Submitted Posts" plugin with information for the "Novo Map" plugin.
200
- * New: For `[mla_gallery mla_viewer=true]`, the `size` parameter can be used to set viewer width and height from one of the intermediate sizes your site supports.
201
- * New: For the "Photonic Gallery" Plugin, non-image items can now be included in Photonic galleries, with optional thumbnail support from the item's Featured Image.
202
- * New: Removed plugin donation prompts and references.
203
- * New: Updated plugin and author URLs.
204
- * Fix: For the Media/Assistant submenu table, the "orderby" argument is now added to pagination links for columns such as "Date" (post_date).
205
- * Fix: A JavaScript defect that disabled Media/Assistant Bulk Edit operations has been corrected.
206
- * Fix: Calling `MLAData_Source::mla_get_data_source()` from the WordPress front end now loads the other MLA classes on which it depends, avoiding PHP fatal errors.
207
- * Fix: For the "MLA Path Mapping Example" plugin, a defect in assigning child terms to their parent term has been corrected.
208
-
209
- = 2.70 - 2.75 =
210
  * 2.75 - Admin Columns (and Pro) fixes to eliminate PHP messages. Five fixes in all.
211
  * 2.74 - Cross-Site Scripting vulnerabilities have been removed from the Media/Assistant and Settings/Media Library assistant admin submenu screens. One enhancement, seven fixes.
212
  * 2.73 - Checklist-style flat taxonomy improvements, Admin Columns Pro fix, new and improved example plugins, e.g., "parent search". Five enhancements, four fixes.
@@ -305,8 +300,8 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
305
 
306
  == Upgrade Notice ==
307
 
308
- = 2.78 =
309
- Support Admin Columns Pro v4.5.x, add "Search Media" and "Terms Search" exclude logic, Eliminate PHP messages for Polylang and some AJAX actions. One enhancements five fixes.
310
 
311
  == Other Notes ==
312
 
1
+ === Media Library Assistant ===
2
  Contributors: dglingren
3
  Donate link: http://davidlingren.com/#two
4
  Tags: attachments, gallery, images, media, media library, tags, categories, 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.1.1
7
  Requires PHP: 5.3
8
+ Stable tag: 2.79
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
181
 
182
  == Changelog ==
183
 
184
+ = 2.79 =
185
+ * New: For the `[mla_tag_cloud]` shortcode, a new `no_count=internal` parameter setting substitutes the WordPress-maintained "count" value for the explicitly-computed "attachments per term" value. This can significantly improve shortcode performance.
186
+ * New: For the `[mla_gallery]` "date" and "timestamp" option/format codes, a second argument containing "i18n" will localize the returned value based on the site locale. A second argument containing "age" will return the difference between the source value and the current date/time. See the Documentation tab.
187
+ * New: For all of the keyword search functions, You can also exclude items/terms by prepending a word or quoted phrase with a hyphen, e.g., "pillow -sofa" will select items/terms containing "pillow" but not "sofa".
188
+ * New: For the `[mla_gallery]` "Keyword(s) Search" and "Taxonomy term keyword(s) search" functions, keywords and terms can be excluded from the results by enclosing them in "/" delimiters, e.g., "/not/ happy" will return items containing "happy" after excluding items containing "not".
189
+ * New: For `[mla_gallery]`, when `mla_alt_shortcode=mla_term_list`, parameters such as `mla_link_href` are passed through to be used by `[mla_term_list]`.
190
+ * New: For the `[mla_gallery]` "Support for Other Gallery-generating Shortcodes", a new <code>mla_alt_ids_template</code> parameter lets you specify a Content Template for the entire parameter value passed to the alternate shortcode.
191
+ * New: For the Media/Assistant admin submenu, a new "Download" Bulk Action has been added. You can select one or more items and use the new action to download a ZIP archive containing the items through your browser. This new feature replaces the "MLA Download ZIP Example" plugin, which is disabled if present.
192
+ * New: The Settings/Media Library Assistant General tab "Show Count Column" option now applies to all taxonomy edit screens, not just Categories and Tags.
193
+ * New: For the "MLA UI Elements Example" plugin, simple taxonomy queries can now be combined with the `add_filters_to` queries.
194
+ * Fix: For the "Media/Edit Media" screen, IPTC/EXIF metadata mapping now works when the "Enable custom field mapping" option is disabled.
195
+ * Fix: For the Media Manager Modal (Popup) Window, formatting and handling of the "Remove term" elements for flat taxonomies has been corrected.
196
+ * Fix: For `[mla_gallery]`, the `link_url` item-level substitution parameter now reflects the `mla_link_href` parameter value.
197
+ * Fix: For the new Gutenberg/Block Editor, load Media Modal scripts in footer section to avoid wp-lists.js conflicts such as failure to update custom fields in Posts/Edit Post and Page/Edit Page.
198
+ * Fix: For the Media/Assistant admin submenu, suppresses the Admin Columns Pro version 4.5.x Bulk Edit feature.
199
+ * Fix: Eliminate "Uncaught ReferenceError: ajaxurl is not defined" error for page builders such as Elementor.
200
+
201
+ = 2.70 - 2.78 =
202
+ * 2.78 - Support Admin Columns Pro v4.5.x, add "Search Media" and "Terms Search" exclude logic, Eliminate PHP messages for Polylang and some AJAX actions. One enhancement, five fixes.
203
+ * 2.77 - Preserve current term assignments for checklist-style taxonomies when opening the Media/Assistant Quick Edit area. This defect was introduced in v2.76.
204
+ * 2.76 - "Checklist-style" term search and additions in the Bulk and Quick Edit areas. New and improved example plugins. Seven enhancements, four fixes.
 
 
 
 
 
205
  * 2.75 - Admin Columns (and Pro) fixes to eliminate PHP messages. Five fixes in all.
206
  * 2.74 - Cross-Site Scripting vulnerabilities have been removed from the Media/Assistant and Settings/Media Library assistant admin submenu screens. One enhancement, seven fixes.
207
  * 2.73 - Checklist-style flat taxonomy improvements, Admin Columns Pro fix, new and improved example plugins, e.g., "parent search". Five enhancements, four fixes.
300
 
301
  == Upgrade Notice ==
302
 
303
+ = 2.79 =
304
+ [mla_gallery] keyword/term search "exclude" logic, [mla_tag_cloud] performance improvements, Media/Assistant Download bulk action. Nine enhancements in all, six fixes.
305
 
306
  == Other Notes ==
307
 
tpls/documentation-settings-tab.tpl CHANGED
@@ -943,11 +943,15 @@ Searching for keywords within the names of taxonomy terms is a completely differ
943
  </tr>
944
  <tr>
945
  <td class="mla-doc-table-label">mla_terms_phrases</td>
946
- <td>The word(s) or phrase(s) you are searching for.</td>
947
  </tr>
948
  <tr>
949
  <td class="mla-doc-table-label">mla_phrase_delimiter</td>
950
- <td>A single character that separates the phrasesd within a term in <code>mla_terms_phrases</code>. The <strong>default delimiter</strong> is a space (' ').</td>
 
 
 
 
951
  </tr>
952
  <tr>
953
  <td class="mla-doc-table-label">mla_phrase_connector</td>
@@ -1131,13 +1135,17 @@ You can use the <code>mla_search_connector</code> and <code>mla_search_fields</c
1131
  <table>
1132
  <tr>
1133
  <td class="mla-doc-table-label">s</td>
1134
- <td>The word(s) or phrase(s) you are searching for.</td>
1135
  </tr>
1136
  <tr>
1137
  <td class="mla-doc-table-label">mla_search_fields</td>
1138
  <td>The fields in which to search. Choose from title, name, excerpt, content, alt-text, file, terms.</td>
1139
  </tr>
1140
  <tr>
 
 
 
 
1141
  <td class="mla-doc-table-label">mla_terms_taxonomies</td>
1142
  <td>If you include 'terms' in <code>mla_search_fields</code>, you can add a comma-separated list of the taxonomy or taxonomies in which to search. Enter the slug(s) for one or more of the taxonomies registered for Media Library items, e.g., attachment_category or attachment_tag. If this parameter is omitted or empty, <strong>default taxonomies</strong> are specified in the Taxonomy Support section of the General tab.</td>
1143
  </tr>
@@ -1574,6 +1582,8 @@ The data selection parameters specify which taxonomy (or taxonomies) the terms a
1574
  <td>The default, "false", computes a term-specific count of the number of attachments assigned to that term. If you have a large number of terms and/or attachments, this can take a long time.<br />
1575
  &nbsp;<br />
1576
  You can code "true" to omit the attachment-counting process. If you do that, the "post_mime_type", "post_type", "post_status", "minimum", "number" and "orderby=count" parameters are also ignored, since they require counting the attachments.<br />
 
 
1577
  &nbsp;</td>
1578
  </tr>
1579
  <tr>
@@ -2630,6 +2640,8 @@ The data selection parameters specify which taxonomy (or taxonomies) the terms a
2630
  <td>The default, "false", computes a term-specific count of the number of attachments assigned to that term. If you have a large number of terms and/or attachments, this can take a long time.<br />
2631
  &nbsp;<br />
2632
  You can code "true" to omit the attachment-counting process. If you do that, the "post_mime_type", "post_type", "post_status", "minimum", "number" and "orderby=count" parameters are also ignored, since they require counting the attachments.<br />
 
 
2633
  &nbsp;</td>
2634
  </tr>
2635
  <tr>
@@ -3074,7 +3086,7 @@ Here is a simple example of a dropdown control for the Att. Categories taxonomy:
3074
  [mla_gallery]<br />
3075
  attachment_category="{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}"<br />
3076
  posts_per_page=3 mla_output="paginate_links,prev_next"<br />
3077
- mla_link_href='{+new_url+}?mla_paginate_current={+new_page+}&amp;tax_input[attachment_category]="{+query:attachment_category,text+}"'<br />
3078
  [/mla_gallery]<br />
3079
  &nbsp;<br />
3080
  [mla_gallery attachment_category="{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}" posts_per_page=3 mla_caption="{+title+} : {+description+}" mla_nolink_text="&lt;br&gt;Select a term to display the gallery.&lt;br&gt;"]
@@ -3085,7 +3097,7 @@ As you can see, the key is passing the selected term from the form to the galler
3085
  </p>
3086
  <p>
3087
  You can experiment with a category checklist format by simply changing <code>mla_output=dropdown</code> to <code>mla_output=checklist</code> in the <code>[mla_term_list]</code> shortcode.
3088
- You will also see that the term you select doesn&rsquo;t &ldquo;stick&rdquo; in the dropdown control when the page is refreshed with the gallery display. That is one motivation or the &ldquo;MLA UI Elements Example&rdquo; plugin. You can use that example plugin to improve the user experience after you have got the basic application going.
3089
  </p>
3090
  <p>
3091
  &nbsp;
@@ -3593,8 +3605,12 @@ The <code>[mla_gallery]</code> shortcode can be used in combination with other g
3593
  <td>(optional, default "ids") the name of the parameter used to pass a list of attachment ID values to the alternate shortcode</td>
3594
  </tr>
3595
  <tr>
 
 
 
 
3596
  <td class="mla-doc-table-label">mla_alt_ids_value</td>
3597
- <td>(optional) an item-specific substitution parameter, Content Template or other alternative for the attachment ID value(s) passed to the alternate shortcode</td>
3598
  </tr>
3599
  </table>
3600
  <p>
@@ -3634,6 +3650,12 @@ The next example selects one PDF document at random and uses the <a href="https:
3634
  [mla_gallery post_mime_type="application/pdf" orderby=rand numberposts=1 mla_alt_shortcode=pdf-embedder mla_alt_ids_name=url mla_alt_ids_value="{+filelink_url+}"]
3635
  </code>
3636
  <p>
 
 
 
 
 
 
3637
  You can also use the "enclosing shortcode" form if the alternate shortcode, such as Fullscreen Galleria's "fsg_link", requires it. You would code this form as:
3638
  </p>
3639
  <code>
@@ -4365,12 +4387,12 @@ Eight "format" values help you reformat fields or encode them for use in HTML at
4365
  <td>Many of the EXIF metadata fields are expressed as "rational" quantities, i.e., separate numerator and denominator values separated by a slash. For example, <code>[+exif:ExposureTime+]</code> can be expressed as "1/200" seconds. The "fraction" format converts these to a more useful format.<br />&nbsp;<br />There two optional arguments; "f" (format_string)and "s" (show_fractions). The "format_string" (default "2") can either be the number of decimal places desired or a sprintf()-style format specification. For example, <code>[+exif:ExposureTime,fraction(4)+]</code> will display 7/6 as "+1.1667". A format specification such as '%1$.2f' will display 7/6 as "1.17". Numbers between -1 and +1, i.e. true fractions, will display in their original form, e.g., "1/6". If the optional "show_fractions" (default true) argument is "false" fractional values will convert to a decimal equivalent. For example, fraction(4,false) will display 1/6 as "+0.1667", and <code>[+exif:ExposureTime,fraction( '%1$.2f', false )+]</code> will display 1/6 as "0.17".</td>
4366
  </tr>
4367
  <tr>
4368
- <td class="mla-doc-table-label" style="white-space:nowrap">,timestamp(f)</td>
4369
- <td>Many date and time values such as <code>[+meta:image_meta.created_timestamp+]</code> are stored as a UNIX timestamp. The ",timestamp" format converts a timestamp into a variety of date and/or time string formats, using the PHP date() function. Details on the format_string argument can be found at: <a href="http://php.net/manual/en/function.date.php" title="PHP Date format parameters" target="_blank">http://php.net/manual/en/function.date.php</a>.<br />&nbsp;<br />The default format string is "d/m/Y H:i:s", e.g., "31/12/2014 23:59:00" (just before midnight on new year's eve). You could code <code>[+meta:image_meta.created_timestamp,timestamp('j F, Y')+]</code> to display "31 December, 2014".</td>
4370
  </tr>
4371
  <tr>
4372
- <td class="mla-doc-table-label" style="white-space:nowrap">,date(f)</td>
4373
- <td>Many EXIF date and time values such as DateTimeOriginal and DateTimeDigitized are stored as strings with a format of "YYYY:MM:DD HH:MM:SS". You can parse this format and just about any English textual datetime description into a Unix timestamp, then format the result by using the ",date" format. This format first uses the PHP strtotime() function, then the date() function. The "Supported Date and Time Formats" can be found at: <a href="http://php.net/manual/en/datetime.formats.php" title="PHP Supported Date and Time Formats" target="_blank">http://php.net/manual/en/datetime.formats.php</a>.<br />&nbsp;<br />The default format string is "d/m/Y H:i:s", e.g., "31/12/2014 23:59:00" (just before midnight on new year's eve). You could code <code>[+exif:DateTimeOriginal,date('j F, Y')+]</code> to display "31 December, 2014".</td>
4374
  </tr>
4375
  </table>
4376
  <p>
@@ -5446,7 +5468,10 @@ The Search Terms popup window has an additional capability, "Exact match" and a
5446
  </p>
5447
  <h4>Excluding phrases</h4>
5448
  <p>
5449
- If you want to exclude items that match a phrase, enclose the phrase in slash ("/") delimiters. For example, enter "/dog/" to exclude terms containing the word dog. To exclude a multi word phrase, enter something like "/bites dog/" to exclude both words or ' /"bites dog"/ ' to exclude the exact phrase. You can combine include and exclude phrases, e.g., something like "man /that/ dog" to select terms containing "man" and "dog" but not containing "that".
 
 
 
5450
  </p>
5451
  <p>
5452
  When you add exclude phrases to your search, the phrases you enter are divided into two sub-values, "positive" and "negative", with everything enclosed by the exclude delmiters going to the negative sub-value and everything else to the positive. Two queries are performed. First, the negative sub-value is used and a list of the item IDs that pass the query is compiled. Second, the positive sub-value is used and items with the "negative" IDs are excluded.
943
  </tr>
944
  <tr>
945
  <td class="mla-doc-table-label">mla_terms_phrases</td>
946
+ <td>The word(s) or phrase(s) you are searching for. Prepending a word or quoted phrase with a hyphen will exclude items matching that value, e.g., 'pillow -sofa' will return items containing 'pillow' but not 'sofa'.</td>
947
  </tr>
948
  <tr>
949
  <td class="mla-doc-table-label">mla_phrase_delimiter</td>
950
+ <td>A single character that separates the phrases within a term in <code>mla_terms_phrases</code>. The <strong>default delimiter</strong> is a space (' ').</td>
951
+ </tr>
952
+ <tr>
953
+ <td class="mla-doc-table-label">mla_negative_delimiter</td>
954
+ <td>A single character that encloses the negative (excluded) phrases within a term in <code>mla_terms_phrases</code>. The <strong>default delimiter</strong> is a slash ('/').</td>
955
  </tr>
956
  <tr>
957
  <td class="mla-doc-table-label">mla_phrase_connector</td>
1135
  <table>
1136
  <tr>
1137
  <td class="mla-doc-table-label">s</td>
1138
+ <td>The word(s) or phrase(s) you are searching for. Prepending a word or quoted phrase with a hyphen will exclude items matching that value, e.g., 'pillow -sofa' will return items containing 'pillow' but not 'sofa'.</td>
1139
  </tr>
1140
  <tr>
1141
  <td class="mla-doc-table-label">mla_search_fields</td>
1142
  <td>The fields in which to search. Choose from title, name, excerpt, content, alt-text, file, terms.</td>
1143
  </tr>
1144
  <tr>
1145
+ <td class="mla-doc-table-label">mla_negative_delimiter</td>
1146
+ <td>A single character that encloses the negative (excluded) phrases in the search string. The <strong>default delimiter</strong> is a slash ('/').</td>
1147
+ </tr>
1148
+ <tr>
1149
  <td class="mla-doc-table-label">mla_terms_taxonomies</td>
1150
  <td>If you include 'terms' in <code>mla_search_fields</code>, you can add a comma-separated list of the taxonomy or taxonomies in which to search. Enter the slug(s) for one or more of the taxonomies registered for Media Library items, e.g., attachment_category or attachment_tag. If this parameter is omitted or empty, <strong>default taxonomies</strong> are specified in the Taxonomy Support section of the General tab.</td>
1151
  </tr>
1582
  <td>The default, "false", computes a term-specific count of the number of attachments assigned to that term. If you have a large number of terms and/or attachments, this can take a long time.<br />
1583
  &nbsp;<br />
1584
  You can code "true" to omit the attachment-counting process. If you do that, the "post_mime_type", "post_type", "post_status", "minimum", "number" and "orderby=count" parameters are also ignored, since they require counting the attachments.<br />
1585
+ &nbsp;<br />
1586
+ You can code "internal" to skip the explicit attachment-counting process and use the WordPress-maintained "count" database values. If you code <code>no_count=internal</code>, the "post_mime_type", "post_type" and "post_status" paramerters are ignored, since they require a separate subquery to filter the cloud by post-specific values.<br />
1587
  &nbsp;</td>
1588
  </tr>
1589
  <tr>
2640
  <td>The default, "false", computes a term-specific count of the number of attachments assigned to that term. If you have a large number of terms and/or attachments, this can take a long time.<br />
2641
  &nbsp;<br />
2642
  You can code "true" to omit the attachment-counting process. If you do that, the "post_mime_type", "post_type", "post_status", "minimum", "number" and "orderby=count" parameters are also ignored, since they require counting the attachments.<br />
2643
+ &nbsp;<br />
2644
+ You can code "internal" to skip the explicit attachment-counting process and use the WordPress-maintained "count" database values. If you code <code>no_count=internal</code>, the "post_mime_type", "post_type" and "post_status" paramerters are ignored, since they require a separate subquery to filter the list by post-specific values.<br />
2645
  &nbsp;</td>
2646
  </tr>
2647
  <tr>
3086
  [mla_gallery]<br />
3087
  attachment_category="{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}"<br />
3088
  posts_per_page=3 mla_output="paginate_links,prev_next"<br />
3089
+ mla_link_href='{+new_url+}?mla_paginate_current={+new_page+}&amp;tax_input[attachment_category]={+query:attachment_category,url+}'<br />
3090
  [/mla_gallery]<br />
3091
  &nbsp;<br />
3092
  [mla_gallery attachment_category="{+template:({+request:tax_input.attachment_category+}|no-term-selected)+}" posts_per_page=3 mla_caption="{+title+} : {+description+}" mla_nolink_text="&lt;br&gt;Select a term to display the gallery.&lt;br&gt;"]
3097
  </p>
3098
  <p>
3099
  You can experiment with a category checklist format by simply changing <code>mla_output=dropdown</code> to <code>mla_output=checklist</code> in the <code>[mla_term_list]</code> shortcode.
3100
+ You will also see that the term you select doesn&rsquo;t &ldquo;stick&rdquo; in the dropdown control when the page is refreshed with the gallery display. That is one motivation for the <a title="Find the UI Elements Example" href="[+example_url+]&amp;mla-example-search=Search+Plugins&amp;s=%22MLA+UI+Elements+Example%22" class="mla-doc-bold-link">MLA UI Elements Example</a> plugin. You can use that example plugin to improve the user experience after you have got the basic application going.
3101
  </p>
3102
  <p>
3103
  &nbsp;
3605
  <td>(optional, default "ids") the name of the parameter used to pass a list of attachment ID values to the alternate shortcode</td>
3606
  </tr>
3607
  <tr>
3608
+ <td class="mla-doc-table-label">mla_alt_ids_template</td>
3609
+ <td>(optional) a Content Template for the entire parameter value passed to the alternate shortcode. When processing the template, the list of ID values is available as the <code>{+alt_ids+}</code> substitution parameter. See the example below.</td>
3610
+ </tr>
3611
+ <tr>
3612
  <td class="mla-doc-table-label">mla_alt_ids_value</td>
3613
+ <td>(optional) an item-specific substitution parameter, Content Template or other alternative for the attachment ID value(s) passed to the alternate shortcode. It is applied once for each item selected for the gallery, and all the item-specific substitution parameters are available to be used.</td>
3614
  </tr>
3615
  </table>
3616
  <p>
3650
  [mla_gallery post_mime_type="application/pdf" orderby=rand numberposts=1 mla_alt_shortcode=pdf-embedder mla_alt_ids_name=url mla_alt_ids_value="{+filelink_url+}"]
3651
  </code>
3652
  <p>
3653
+ The next example selects items assigned to a taxonomy term and uses the <a href="https://wordpress.org/plugins/shortcodes-ultimate/" title="Shortcodes Ultimate plugin" target="_blank">Shortcodes Ultimate</a> plugin's <a href="https://getshortcodes.com/shortcodes/custom_gallery/" title="Custom Gallery shortcode" target="_blank">Custom gallery</a> shortcode to display the gallery with a lightbox enhancement. The <code>mla_alt_ids_name</code> and <code>mla_alt_ids_template</code> parameters change the "ids" and attachment ID defaults to the "source" and "media:" values expected by the <code>[su_custom_gallery]</code> shortcode.
3654
+ </p>
3655
+ <code>
3656
+ [mla_gallery attachment_category=accipitridae link="lightbox" mla_alt_shortcode="su_custom_gallery" mla_alt_ids_name="source" mla_alt_ids_template="media: {+alt_ids+}"]
3657
+ </code>
3658
+ <p>
3659
  You can also use the "enclosing shortcode" form if the alternate shortcode, such as Fullscreen Galleria's "fsg_link", requires it. You would code this form as:
3660
  </p>
3661
  <code>
4387
  <td>Many of the EXIF metadata fields are expressed as "rational" quantities, i.e., separate numerator and denominator values separated by a slash. For example, <code>[+exif:ExposureTime+]</code> can be expressed as "1/200" seconds. The "fraction" format converts these to a more useful format.<br />&nbsp;<br />There two optional arguments; "f" (format_string)and "s" (show_fractions). The "format_string" (default "2") can either be the number of decimal places desired or a sprintf()-style format specification. For example, <code>[+exif:ExposureTime,fraction(4)+]</code> will display 7/6 as "+1.1667". A format specification such as '%1$.2f' will display 7/6 as "1.17". Numbers between -1 and +1, i.e. true fractions, will display in their original form, e.g., "1/6". If the optional "show_fractions" (default true) argument is "false" fractional values will convert to a decimal equivalent. For example, fraction(4,false) will display 1/6 as "+0.1667", and <code>[+exif:ExposureTime,fraction( '%1$.2f', false )+]</code> will display 1/6 as "0.17".</td>
4388
  </tr>
4389
  <tr>
4390
+ <td class="mla-doc-table-label" style="white-space:nowrap">,timestamp(f,m)</td>
4391
+ <td>Many date and time values such as <code>[+meta:image_meta.created_timestamp+]</code> are stored as a UNIX timestamp. The ",timestamp" format converts a timestamp into a variety of date and/or time string formats, using the PHP date() function. Details on the "f" (format string) argument can be found at: <a href="http://php.net/manual/en/function.date.php" title="PHP Date format parameters" target="_blank">http://php.net/manual/en/function.date.php</a>.<br />&nbsp;<br />The default format string is "d/m/Y H:i:s", e.g., "31/12/2014 23:59:00" (just before midnight on new year's eve). You could code <code>[+meta:image_meta.created_timestamp,timestamp('j F, Y')+]</code> to display "31 December, 2014".<br />&nbsp;<br />The "m" (modifier) argument is optional. If present and set to "i18n" the displayed value will be localized using the site's locale value.<br />&nbsp;<br />If the "m" (modifier) argument is set to "age" it will return a human-readable difference between the source value and the current date/time. In this case you must also code "%s" in the format string, e.g., <code>[+meta:image_meta.created_timestamp,timestamp('%s ago')+]</code> to display something like "2 months ago".</td>
4392
  </tr>
4393
  <tr>
4394
+ <td class="mla-doc-table-label" style="white-space:nowrap">,date(f,m)</td>
4395
+ <td>Many EXIF date and time values such as DateTimeOriginal and DateTimeDigitized are stored as strings with a format of "YYYY:MM:DD HH:MM:SS". You can parse this format and just about any English textual datetime description into a Unix timestamp, then format the result by using the ",date" format. This format first uses the PHP strtotime() function, then the date() function. The "Supported Date and Time Formats" can be found at: <a href="http://php.net/manual/en/datetime.formats.php" title="PHP Supported Date and Time Formats" target="_blank">http://php.net/manual/en/datetime.formats.php</a>.<br />&nbsp;<br />The default "f" (format string) argument is "d/m/Y H:i:s", e.g., "31/12/2014 23:59:00" (just before midnight on new year's eve). You could code <code>[+exif:DateTimeOriginal,date('j F, Y')+]</code> to display "31 December, 2014".<br />&nbsp;<br />The "m" (modifier) argument is optional. If present and set to "i18n" the displayed value will be localized using the site's locale value.<br />&nbsp;<br />If the "m" (modifier) argument is set to "age" it will return a human-readable difference between the source value and the current date/time. In this case you must also code "%s" in the format string, e.g., <code>[+exif:DateTimeOriginal,date('%s ago')+]</code> to display something like "2 months ago".</td>
4396
  </tr>
4397
  </table>
4398
  <p>
5468
  </p>
5469
  <h4>Excluding phrases</h4>
5470
  <p>
5471
+ If you want to exclude terms that match a phrase, enclose the phrase in slash ("/") delimiters. For example, enter "/dog/" to exclude terms containing the word dog. To exclude a multi word phrase, enter something like "/bites dog/" to exclude both words or ' /"bites dog"/ ' to exclude the exact phrase. You can combine include and exclude phrases, e.g., something like "man /that/ dog" to select terms containing "man" and "dog" but not containing "that".
5472
+ </p>
5473
+ <p>
5474
+ You can also exclude terms by prepending a word or quoted phrase with a hyphen, e.g., 'pillow -sofa' will select terms containing 'pillow' but not 'sofa'.
5475
  </p>
5476
  <p>
5477
  When you add exclude phrases to your search, the phrases you enter are divided into two sub-values, "positive" and "negative", with everything enclosed by the exclude delmiters going to the negative sub-value and everything else to the positive. Two queries are performed. First, the negative sub-value is used and a list of the item IDs that pass the query is compiled. Second, the positive sub-value is used and items with the "negative" IDs are excluded.
tpls/help-for-media_page_mla-menu.tpl CHANGED
@@ -47,6 +47,7 @@ There are four where-used reporting categories and you can turn them on or off w
47
  <p>The &#8220;Search Media&#8221; box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive &#8220;SQL LIKE&#8221; search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on &#8220;friend&#8221; and &#8220;best&#8221; will match &#8220;Best Friend&#8221;. If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can match on partial words, e.g., &#8220;rien&#8221; will match &#8220;friend&#8221;.</p>
48
  <p>You can also do wildcard searches using an asterisk (&#8220;*&#8221;) as the wildcard placeholder. For example, &#8220;friend*&#8221; will match fields beginning with &#8220;friend&#8221;, and &#8220;best*friend*&#8221; will match &#8220;Best Friend&#8221; and &#8220;Best of frends&#8221; but not &#8220;The best of friends&#8221;. The pattern &#8220;*best*friend*&#8221; will match all three of the previous examples. If you want to match an asterisk explicitly, put it in quotes. Note that wildcard searches are not supported in the Terms field.</p>
49
  <p>If you want to <strong><em>exclude</em></strong> items that match a search phrase, enclose the phrase in slash (&#8220;/&#8221;) delimiters. For example, to exclude your friends, enter &#8220;/friend/&#8221;. To exclude only your best friends, enter &#8220;/best/ friend&#8221;.</p>
 
50
  <p>If you enter one or more (comma-separated) numeric values (only) in the search box, they are interpreted as a search by attachment ID or parent ID (post_parent). This is in addition to the normal search in the text fields, e.g., title.</p>
51
  <p>Once you&#8217;ve entered the search phrases you want, use the options below the box to tailor your search. You can pick the connector used between search phrases; &#8220;or&#8221; means any of the phrases will match, &#8220;and&#8221; means all of the phrases must match. Use the checkboxes to extend your search to more fields in the database. The &#8220;Terms&#8221; checkbox will extend the search to the name field of the taxonomies you set on the Settings/Media Library Assistant General tab. See the &#8220;Terms Search&#8221; section in the Settings/Media Library Assistant <a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#terms_search" target="_blank">Documentation tab</a> for details.</p>
52
  <!-- template="mla-terms-search" -->
@@ -63,6 +64,7 @@ There are four where-used reporting categories and you can turn them on or off w
63
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
64
  <p>Once you&#8217;ve selected the items you want, pick an action from the dropdown list and click Apply to perform the action on the selected items. The available actions will vary depending on the file type/status view you have picked.</p>
65
  <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>
 
66
  <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>
67
  <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>
68
  <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>
47
  <p>The &#8220;Search Media&#8221; box supports a keyword search of several attachment fields; enter words and/or phrases in the box, separated by spaces. Click the Search Media button for a case-insensitive &#8220;SQL LIKE&#8221; search. Each keyword in the search phrase is matched independently, so the order of search words does not have to match the order in the text. For example, searching on &#8220;friend&#8221; and &#8220;best&#8221; will match &#8220;Best Friend&#8221;. If you put quotes around a search phrase then word order is required for a match (and spaces between words must match as well). You can match on partial words, e.g., &#8220;rien&#8221; will match &#8220;friend&#8221;.</p>
48
  <p>You can also do wildcard searches using an asterisk (&#8220;*&#8221;) as the wildcard placeholder. For example, &#8220;friend*&#8221; will match fields beginning with &#8220;friend&#8221;, and &#8220;best*friend*&#8221; will match &#8220;Best Friend&#8221; and &#8220;Best of frends&#8221; but not &#8220;The best of friends&#8221;. The pattern &#8220;*best*friend*&#8221; will match all three of the previous examples. If you want to match an asterisk explicitly, put it in quotes. Note that wildcard searches are not supported in the Terms field.</p>
49
  <p>If you want to <strong><em>exclude</em></strong> items that match a search phrase, enclose the phrase in slash (&#8220;/&#8221;) delimiters. For example, to exclude your friends, enter &#8220;/friend/&#8221;. To exclude only your best friends, enter &#8220;/best/ friend&#8221;.</p>
50
+ <p>You can also exclude items by prepending a word or quoted phrase with a hyphen, e.g., &#8220;pillow -sofa&#8221; will select terms containing &#8220;pillow&#8221; but not &#8220;sofa&#8221;.</p>
51
  <p>If you enter one or more (comma-separated) numeric values (only) in the search box, they are interpreted as a search by attachment ID or parent ID (post_parent). This is in addition to the normal search in the text fields, e.g., title.</p>
52
  <p>Once you&#8217;ve entered the search phrases you want, use the options below the box to tailor your search. You can pick the connector used between search phrases; &#8220;or&#8221; means any of the phrases will match, &#8220;and&#8221; means all of the phrases must match. Use the checkboxes to extend your search to more fields in the database. The &#8220;Terms&#8221; checkbox will extend the search to the name field of the taxonomies you set on the Settings/Media Library Assistant General tab. See the &#8220;Terms Search&#8221; section in the Settings/Media Library Assistant <a href="[+settingsURL+]?page=mla-settings-menu-documentation&mla_tab=documentation#terms_search" target="_blank">Documentation tab</a> for details.</p>
53
  <!-- template="mla-terms-search" -->
64
  <p>The &#8220;Bulk Actions&#8221; dropdown list works with the check box column to let you make changes to many items at once. Click the check box in the column title row to select all items on the page, or click the check box in a row to select items individually.</p>
65
  <p>Once you&#8217;ve selected the items you want, pick an action from the dropdown list and click Apply to perform the action on the selected items. The available actions will vary depending on the file type/status view you have picked.</p>
66
  <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>
67
+ <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>
68
  <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>
69
  <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>
70
  <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>