Media Library Assistant - Version 2.97

Version Description

  • New: A "Description" element has been added to the "Custom Fields" and "IPTC/EXIF" mapping rule definitions.
  • New: For [mla_tag_cloud], the current_item and current_item_class are managed more or less automatically.
  • New: For [mla_gallery], a special mla_alt_shortcode=yes parameter lets you use [mla_gallery] as both the primary and alternate shortcodes. You can use the new mla_alt_parameters parameter to pass parameters directly on to the alternate shortcode.
  • New: For the "MLA UI Elements Example" plugin, most sticky shortcodes now support the enclosing shortcode syntax, and the Documentation tab has been completed.
  • Fix: For [mla_gallery], PHP "Warning: array_key_exists()..." messages have been eliminated.
  • Fix: For the Media Manager Modal (popup) Window in WP 5.8, cropping of top row image thubmnails has been corrected.
  • Fix: For the "MLA Insert Fixit" example plugin, placement and description of the "Post Type(s)" text box has been updated to clarify its use by all plugin tools.
  • Fix: For [mla_term_list] and [mla_tag_cloud], special values such as no.terms.assigned () are retained after page refresh.
Download this release

Release Info

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

Code changes from version 2.96 to 2.97

examples/plugins/mla-insert-fixit.php CHANGED
@@ -53,7 +53,7 @@
53
  * https://wordpress.org/support/topic/post-parent-link-images/
54
  *
55
  * @package Insert Fixit
56
- * @version 1.20
57
  */
58
 
59
  /*
@@ -61,10 +61,10 @@ Plugin Name: MLA Insert Fixit
61
  Plugin URI: http://davidlingren.com/
62
  Description: Synchronizes Media Library values to and from post/page inserted/featured/attached images
63
  Author: David Lingren
64
- Version: 1.20
65
  Author URI: http://davidlingren.com/
66
 
67
- Copyright 2015-2020 David Lingren
68
 
69
  This program is free software; you can redistribute it and/or modify
70
  it under the terms of the GNU General Public License as published by
@@ -94,7 +94,7 @@ class Insert_Fixit {
94
  *
95
  * @var string
96
  */
97
- const CURRENT_VERSION = '1.20';
98
 
99
  /**
100
  * Constant to log this plugin's debug activity
@@ -258,10 +258,7 @@ class Insert_Fixit {
258
 
259
  $setting_actions = array(
260
  'help' => array( 'handler' => '', 'comment' => '<strong>Enter first and (optional) last ID values above to restrict tool application range</strong>. To operate on one ID, enter just the "First ID". The default is to perform the operation on <strong>all posts/pages</strong> and <strong>all Media Library items (attachments)</strong>.<br />&nbsp;<br />You can find post/page ID values by hovering over the post/page title in the "Title" column of the All Posts/All Pages submenu tables; look for the number following <code>post=</code>.<br />' ),
261
- 'warning' => array( 'handler' => '', 'comment' => '<strong>These tools make permanent updates to your database.</strong> Make a backup before you use the tools so you can restore your old values if you don&rsquo;t like the results.' ),
262
-
263
- 'c00' => array( 'handler' => '', 'comment' => '<h3>Copy ALT Text between Media Library items and Post/Page inserts</h3>' ),
264
- 'c01' => array( 'handler' => '', 'comment' => '<strong>NOTE:</strong> Tools in this section use the post type values below. Single quotes and commas are required.' ),
265
  't1501' => array( 'open' => '<table><tr>' ),
266
  't1502' => array( 'continue' => ' <td style="text-align: right; padding-right: 5px" valign="middle">Post Type(s)</td>' ),
267
  't1503' => array( 'continue' => ' <td style="text-align: left">' ),
@@ -269,6 +266,9 @@ class Insert_Fixit {
269
  't1505' => array( 'continue' => ' <input name="' . self::SLUG_PREFIX . 'post_types" type="text" size="30" value="' . $post_types . '">' ),
270
  't1506' => array( 'continue' => ' </td>' ),
271
  't1507' => array( 'close' => '</tr></table>' ),
 
 
 
272
  'ALT from Item' => array( 'handler' => '_copy_alt_from_media_library',
273
  'comment' => 'Copy ALT Text from Media Library item to Post/Page inserts.' ),
274
  'ALT to Item' => array( 'handler' => '_copy_alt_to_media_library',
53
  * https://wordpress.org/support/topic/post-parent-link-images/
54
  *
55
  * @package Insert Fixit
56
+ * @version 1.21
57
  */
58
 
59
  /*
61
  Plugin URI: http://davidlingren.com/
62
  Description: Synchronizes Media Library values to and from post/page inserted/featured/attached images
63
  Author: David Lingren
64
+ Version: 1.21
65
  Author URI: http://davidlingren.com/
66
 
67
+ Copyright 2015-2021 David Lingren
68
 
69
  This program is free software; you can redistribute it and/or modify
70
  it under the terms of the GNU General Public License as published by
94
  *
95
  * @var string
96
  */
97
+ const CURRENT_VERSION = '1.21';
98
 
99
  /**
100
  * Constant to log this plugin's debug activity
258
 
259
  $setting_actions = array(
260
  'help' => array( 'handler' => '', 'comment' => '<strong>Enter first and (optional) last ID values above to restrict tool application range</strong>. To operate on one ID, enter just the "First ID". The default is to perform the operation on <strong>all posts/pages</strong> and <strong>all Media Library items (attachments)</strong>.<br />&nbsp;<br />You can find post/page ID values by hovering over the post/page title in the "Title" column of the All Posts/All Pages submenu tables; look for the number following <code>post=</code>.<br />' ),
261
+ 'c01' => array( 'handler' => '', 'comment' => '<strong>NOTE:</strong> The tools in this plugin use the post type values in the text box below. Single quotes and commas are required.' ),
 
 
 
262
  't1501' => array( 'open' => '<table><tr>' ),
263
  't1502' => array( 'continue' => ' <td style="text-align: right; padding-right: 5px" valign="middle">Post Type(s)</td>' ),
264
  't1503' => array( 'continue' => ' <td style="text-align: left">' ),
266
  't1505' => array( 'continue' => ' <input name="' . self::SLUG_PREFIX . 'post_types" type="text" size="30" value="' . $post_types . '">' ),
267
  't1506' => array( 'continue' => ' </td>' ),
268
  't1507' => array( 'close' => '</tr></table>' ),
269
+ 'warning' => array( 'handler' => '', 'comment' => '<strong>These tools make permanent updates to your database.</strong> Make a backup before you use the tools so you can restore your old values if you don&rsquo;t like the results.' ),
270
+
271
+ 'c00' => array( 'handler' => '', 'comment' => '<h3>Copy ALT Text between Media Library items and Post/Page inserts</h3>' ),
272
  'ALT from Item' => array( 'handler' => '_copy_alt_from_media_library',
273
  'comment' => 'Copy ALT Text from Media Library item to Post/Page inserts.' ),
274
  'ALT to Item' => array( 'handler' => '_copy_alt_to_media_library',
examples/plugins/mla-ui-elements-example/admin-settings-page.tpl CHANGED
@@ -189,9 +189,9 @@ p.submit.mla-settings-submit {
189
  <li><a href="#archive_list_data_selection">Archive List Data Selection Parameters</a></li>
190
  <li><a href="#archive_list_substitution">Archive List Substitution Parameters</a></li>
191
  </ul></li>
192
- <li><a href="#filters_examples"><strong>use_filters/add_filters_to Examples</strong></a></li>
193
- <li><a href="#sticky_examples"><strong>Sticky shortcodes Examples</strong></a></li>
194
- <li><a href="#muie_archive_list_examples"><strong>Archive List shortcode Examples</strong></a></li>
195
  <li><a href="#debugging"><strong>Debugging and Troubleshooting</strong></a></li>
196
  </ul>
197
  <p>
@@ -280,10 +280,10 @@ If you are not getting the results you expect carefully inspecting the results o
280
  </p>
281
  <h3>add_filters_to, for [mla_gallery]</h3>
282
  <p>
283
- If you add "add_filters_to=any" to an [mla_gallery] shortcode this plugin will retain settings for terms search, keyword search, taxonomy queries and posts_per_page when the page is refreshed or pagination moves to a new page.
284
  </p>
285
  <p>
286
- If you add "add_filters_to=<taxonomy_slug>" to an [mla_gallery] shortcode this plugin will do the actions in 2. and will also match the taxonomy_slug to a simple taxonomy query (if present) and add that query to the taxonomy queries. If the simple query is "muie-no-terms", it will be ignored.
287
  </p>
288
  <p>
289
  &nbsp;
@@ -321,7 +321,7 @@ The shortcode is meant to be placed in an HTML form that lets the user enter cri
321
  </p>
322
  <h3>The [muie_keyword_search] shortcode</h3>
323
  <p>
324
- The <code>[muie_terms_search]</code> shortcode generates a text box for passing the "s" parameter to an <code>[mla_gallery]</code> shortcode. You can add parameters to this shortcode to pass the other keyword search parameters as well:
325
  </p>
326
  <ul class="mla-doc-toc-list">
327
  <li>mla_search_fields</li>
@@ -348,6 +348,9 @@ The <code>[muie_orderby]</code> shortcode generates a dropdown control for passi
348
  <li>meta_value</li>
349
  </ul>
350
  <p>
 
 
 
351
  The <code>[muie_order]</code> shortcode generates a radio button control for passing the "order" parameter to an <code>[mla_gallery]</code>, <code>[mla_tag_cloud]</code>, or <code>[mla_term_list]</code> shortcode. You can add parameters to this shortcode to change the default value:
352
  </p>
353
  <ul class="mla-doc-toc-list">
@@ -356,6 +359,9 @@ The <code>[muie_order]</code> shortcode generates a radio button control for pas
356
  <li>desc_label</li>
357
  </ul>
358
  <p>
 
 
 
359
  The shortcodes are meant to be placed in an HTML form that lets the user enter criteria to filter a gallery display.
360
  <a name="muie_per_page"></a>
361
  </p>
@@ -388,7 +394,7 @@ The <code>[muie_assigned_items_count]</code> shortcode returns the number of ite
388
  <li>post_mime_type</li>
389
  </ul>
390
  <p>
391
- &nbsp;
392
  <a name="muie_text_box"></a>
393
  </p>
394
  <p>
@@ -1095,23 +1101,90 @@ To use a substitution parameter in your shortcode, simply add "{+" before the su
1095
  <p>
1096
  <a href="#backtotop">Go to Top</a>
1097
  </p>
1098
- <h3>use_filters/add_filters_to Examples</h3>
1099
  <p>
1100
- &nbsp;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1101
  <a name="sticky_examples"></a>
1102
  </p>
1103
  <p>
1104
  <a href="#backtotop">Go to Top</a>
1105
  </p>
1106
- <h3>Sticky shortcodes Examples</h3>
1107
  <p>
1108
- &nbsp;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1109
  <a name="muie_archive_list_examples"></a>
1110
  </p>
1111
  <p>
1112
  <a href="#backtotop">Go to Top</a>
1113
  </p>
1114
- <h3>Archive List shortcode Examples</h3>
1115
  <p>
1116
  The MUIE Archive List shortcode is very flexible and has many parameters and features. However, you can accomplish many application goals with simple shortcodes and just a few parameters. For example, here is a shortcode that will generate a dropdown control with an option to select Media Library items uploaded in a given year:
1117
  <br />&nbsp;<br />
189
  <li><a href="#archive_list_data_selection">Archive List Data Selection Parameters</a></li>
190
  <li><a href="#archive_list_substitution">Archive List Substitution Parameters</a></li>
191
  </ul></li>
192
+ <li><a href="#filters_examples"><strong>use_filters/add_filters_to Example</strong></a></li>
193
+ <li><a href="#sticky_examples"><strong>Sticky Shortcodes Example</strong></a></li>
194
+ <li><a href="#muie_archive_list_examples"><strong>Archive List Shortcode Examples</strong></a></li>
195
  <li><a href="#debugging"><strong>Debugging and Troubleshooting</strong></a></li>
196
  </ul>
197
  <p>
280
  </p>
281
  <h3>add_filters_to, for [mla_gallery]</h3>
282
  <p>
283
+ If you add "add_filters_to=any" to an [mla_gallery] shortcode this plugin will retain settings for all of the <code>[muie_...]</code> shortcodes, simple taxonomy queries and tax_input when the page is refreshed or pagination moves to a new page. All simple taxonomy queries and tax_input are combined into a single <code>tax_query</code> parameter for this purpose. You can add <code>tax_relation</code> (default AND), <code>tax_operator</code> (default IN) and <code>tax_include_children</code> (default true) parameters to tailor the query to your needs. You can specify taxonomy-specific settings by appending '_operator" or "_children" to the taxonomy slug, e.g., <code>attachment_tag_operator=AND</code> or <code>attachment_tag_children=false</code>.
284
  </p>
285
  <p>
286
+ If you add "add_filters_to={taxonomy_slug}" to an [mla_gallery] shortcode this plugin will do the actions described above and will also match the taxonomy_slug to a simple taxonomy query (if present) and look for a special "muie-no-terms" value. If the simple taxonomy value is "muie-no-terms", the taxonomy will be ignored, i.e., not added to the <code>tax_query</code> parameter.
287
  </p>
288
  <p>
289
  &nbsp;
321
  </p>
322
  <h3>The [muie_keyword_search] shortcode</h3>
323
  <p>
324
+ The <code>[muie_keyword_search]</code> shortcode generates a text box for passing the "s" parameter to an <code>[mla_gallery]</code> shortcode. You can add parameters to this shortcode to pass the other keyword search parameters as well:
325
  </p>
326
  <ul class="mla-doc-toc-list">
327
  <li>mla_search_fields</li>
348
  <li>meta_value</li>
349
  </ul>
350
  <p>
351
+ The <code>shortcode</code> parameter simply validates the list of sort fields allowed for each shortcode. For <code>[mla_gallery]</code>, the <code>[muie_orderby]</code> value is automatically translated to the <code>orderby</code> parameter. For <code>[mla_tag_cloud]</code>, or <code>[mla_term_list]</code> you must add something like <code>orderby="{+template:{+request:muie_orderby+}|name+}+}"</code> to the shortcode parameters.
352
+ </p>
353
+ <p>
354
  The <code>[muie_order]</code> shortcode generates a radio button control for passing the "order" parameter to an <code>[mla_gallery]</code>, <code>[mla_tag_cloud]</code>, or <code>[mla_term_list]</code> shortcode. You can add parameters to this shortcode to change the default value:
355
  </p>
356
  <ul class="mla-doc-toc-list">
359
  <li>desc_label</li>
360
  </ul>
361
  <p>
362
+ For <code>[mla_gallery]</code>, the <code>[muie_order]</code> value is automatically translated to the <code>order</code> parameter. For <code>[mla_tag_cloud]</code>, or <code>[mla_term_list]</code> you must add something like <code>order="{+template:{+request:muie_order+}|ASC+}+}"</code> to the shortcode parameters.
363
+ </p>
364
+ <p>
365
  The shortcodes are meant to be placed in an HTML form that lets the user enter criteria to filter a gallery display.
366
  <a name="muie_per_page"></a>
367
  </p>
394
  <li>post_mime_type</li>
395
  </ul>
396
  <p>
397
+ The shortcode is meant to be used anywhere you want to display the calculated number of items.
398
  <a name="muie_text_box"></a>
399
  </p>
400
  <p>
1101
  <p>
1102
  <a href="#backtotop">Go to Top</a>
1103
  </p>
1104
+ <h3>use_filters/add_filters_to Example</h3>
1105
  <p>
1106
+ Here is a simple example with a term selection search form and a paginated gallery display:
1107
+ </p>
1108
+ <code>
1109
+ &lt;form id="mla-search-form" action="." method="post"&gt;
1110
+ <br />&lt;h3&gt;Att. Categories&lt;/h3&gt;
1111
+ <br />[mla_term_list mla_output=dropdown taxonomy=attachment_category minimum=1 post_mime_type=image mla_option_value="{+slug+}" <strong>use_filters=true</strong>]
1112
+ <br />&lt;input id="search-form-submit" name="search_form_submit" type="submit" value="Filter"&gt;
1113
+ <br />&lt;/form&gt;
1114
+ <br />&nbsp;
1115
+ <br />&lt;h3&gt;Gallery&lt;/h3&gt;
1116
+ <br />[mla_gallery attachment_category="{+template:({+request:tax_input.attachment_category+}|muie-no-terms)+}" <strong>add_filters_to=attachment_category</strong> posts_per_page=4 mla_output="paginate_links,prev_next"]
1117
+ <br />&nbsp;
1118
+ <br />[mla_gallery attachment_category="{+template:({+request:tax_input.attachment_category+}|muie-no-terms)+}" <strong>add_filters_to=attachment_category</strong> posts_per_page=4 mla_nolink_text="Select a term to display the gallery."]
1119
+ </code>
1120
+ <p>
1121
+ The <code>[mla_term_list]</code> shortcode generates a dropdown control containing all terms in the Att. Categories taxonomy that have at least one Media Library "image" item assigned to them. The first <code>[mla_gallery]</code> shortcode generates pagination controls when there are more than four items assigned to the selected term. The second <code>[mla_gallery]</code> shortcode generates the gallery display, up to four items at a time.
1122
+ </p>
1123
+ <p>
1124
+ The <code>use_filters=true</code> parameter in the <code>[mla_term_list]</code> shortcode activates the logic to preserve term selections across page refreshes and pagination operations. The <code>add_filters_to=attachment_category</code> parameter in both <code>[mla_gallery]</code> shortcodes does two things. First, it activates the logic to add term selections to the pagination links. Second, it looks for the special <code>attachment_category=muie-no-terms</code> value and drops the taxonomy query from the shortcode when it is found. This causes the initial gallery display, i.e., before a term is selected, to include all images in the Media Library.
1125
+ </p>
1126
+ <p>
1127
+ The <code>attachment_category="{+template:({+request:tax_input.attachment_category+}|muie-no-terms)+}"</code> parameter matches the term selection value in the search form when the "Filter" button is clicked. Before the "Filter" button is clicked there is no <code>tax_input</code> array value in the request parameters so the template selects the <code>muie-no-terms</code> value instead.
1128
+ </p>
1129
+ <p>
1130
+ If you change <code>add_filters_to=attachment_category</code> to <code>add_filters_to=any</code>, the <code>muie-no-terms</code> match logic is disabled. The <code>muie-no-terms</code> value is treated like a term slug and, since it does not match any term in the taxonomy the initial gallery display will be empty.
1131
+ </p>
1132
+ <p>
1133
+ As always, the data selection parameters (including <code>add_filters_to</code>) in both of the <code>[mla_gallery]</code> shortcodes <strong>must be identical</strong>. This is necessary for the pagination controls to select the same items as the gallery display.
1134
  <a name="sticky_examples"></a>
1135
  </p>
1136
  <p>
1137
  <a href="#backtotop">Go to Top</a>
1138
  </p>
1139
+ <h3>Sticky Shortcodes Example</h3>
1140
  <p>
1141
+ Here is a simple example with a search form containing some sticky shortcodes and a paginated gallery display:
1142
+ </p>
1143
+ <code>
1144
+ &lt;form id="mla-search-form" action="." method="post"&gt;<br />
1145
+ Att. Tags: [muie_terms_search]<br />
1146
+ mla_terms_taxonomies=attachment_tag<br />
1147
+ mla_term_delimiter=' '<br />
1148
+ mla_phrase_connector='OR'<br />
1149
+ [/muie_terms_search]<br />
1150
+ <br />
1151
+ Keyword(s): [muie_keyword_search]<br />
1152
+ mla_search_fields='title,excerpt,content'<br />
1153
+ mla_search_connector='OR'<br />
1154
+ [/muie_keyword_search]<br />
1155
+ <br />
1156
+ Items per page: [muie_per_page numberposts=4]<br />
1157
+ <br />
1158
+ &lt;input id="search-form-submit" name="search_form_submit" type="submit" value="Filter"&gt;<br />
1159
+ &lt;/form&gt;<br />
1160
+ &lt;h3&gt;Gallery&lt;/h3&gt;<br />
1161
+ [mla_gallery add_filters_to=any default_empty_gallery=true post_parent=all posts_per_page=4 mla_output="paginate_links,prev_next"]<br />
1162
+ <br />
1163
+ [mla_gallery add_filters_to=any default_empty_gallery=true post_parent=all posts_per_page=4 mla_caption="{+title+} : {+description+}" mla_nolink_text="Enter tag(s) and/or keyword(s) to display the gallery."]
1164
+ </code>
1165
+ <p>
1166
+ The first two shortcodes in the example use the alternative "enclosing shortcode" syntax so parameters can be entered on multiple lines for readability.
1167
+ </p>
1168
+ <p>
1169
+ The <code>[muie_terms_search]</code> shortcode generates a text box that accepts one or more phrases to be matched to part or all of a term name in the Att. Tags taxonomy. Phrases are separated by spaces and if two or more phrases are entered any one of them will yield a match. The value entered in the text box is passed to <code>[mla_gallery]</code> as <code>mla_terms_phrases</code>. The <code>mla_terms_taxonomies</code>, <code>mla_term_delimiter</code> and <code>mla_phrase_connector</code> parameters are passed to <code>[mla_gallery]</code> as well.
1170
+ </p>
1171
+ <p>
1172
+ The <code>[muie_keyword_search]</code> shortcode generates a text box that accepts one or more keywords to be matched to part or all of the Title, Caption (excerpt) or Description (content) fields. If two or more keywords are entered any one of them will yield a match. The value entered in the text box is passed to <code>[mla_gallery]</code> as <code>s</code>. The <code>mla_search_fields</code> and <code>mla_search_connector</code> parameters are passed to <code>[mla_gallery]</code> as well.
1173
+ </p>
1174
+ <p>
1175
+ The <code>[muie_per_page]</code> shortcode generates a text box that accepts the number of posts per page to be displayed in the gallery. The value entered in the text box is passed to <code>[mla_gallery]</code> as <code>muie_per_page</code> and it will be converted to <code>posts_per_page</code>. The initial gallery display will not be limited unless you also add an explicit <code>posts_per_page</code> parameter to <code>[mla_gallery]</code>; as the above example shows, its value should match the default value entered in <code>[muie_per_page]</code>.
1176
+ </p>
1177
+ <p>
1178
+ The two <code>[mla_gallery]</code> shortcodes include <code>add_filters_to=any</code> to activate the sticky shortcode processing. The <code>default_empty_gallery=true</code> parameter ensures that no items are displayed until a term or keyword search is performed. If you omit this parameter, the <code>post_parent=all</code> parameter displays all Media Library image items; without it only the items attached to the post/page are displayed by default. The <code>posts_per_page=4</code> parameter limits the initial gallery display to four items.
1179
+ </p>
1180
+ <p>
1181
+ As always, the data selection parameters (including <code>add_filters_to</code>) in both of the <code>[mla_gallery]</code> shortcodes <strong>must be identical</strong>. This is necessary for the pagination controls to select the same items as the gallery display.
1182
  <a name="muie_archive_list_examples"></a>
1183
  </p>
1184
  <p>
1185
  <a href="#backtotop">Go to Top</a>
1186
  </p>
1187
+ <h3>Archive List Shortcode Examples</h3>
1188
  <p>
1189
  The MUIE Archive List shortcode is very flexible and has many parameters and features. However, you can accomplish many application goals with simple shortcodes and just a few parameters. For example, here is a shortcode that will generate a dropdown control with an option to select Media Library items uploaded in a given year:
1190
  <br />&nbsp;<br />
examples/plugins/mla-ui-elements-example/mla-ui-elements-example.php CHANGED
@@ -93,15 +93,15 @@
93
  * https://wordpress.org/support/topic/checklist-behaviour-my_custom_sql-muie_terms_search/
94
  *
95
  * @package MLA UI Elements Example
96
- * @version 1.16
97
  */
98
 
99
  /*
100
  Plugin Name: MLA UI Elements Example
101
  Plugin URI: http://davidlingren.com/
102
- Description: Provides shortcodes to improve user experience for [mla_term_list], [mla_tag_cloud] and [mla_gallery] shortcodes
103
  Author: David Lingren
104
- Version: 1.16
105
  Author URI: http://davidlingren.com/
106
 
107
  Copyright 2016-2021 David Lingren
@@ -135,7 +135,7 @@ class MLAUIElementsExample {
135
  *
136
  * @var integer
137
  */
138
- const PLUGIN_VERSION = '1.16';
139
 
140
  /**
141
  * Constant to log this plugin's debug activity
@@ -440,7 +440,8 @@ class MLAUIElementsExample {
440
  }
441
 
442
  if ( $muie_debug ) {
443
- MLACore::mla_debug_add( __LINE__ . ' MLAUIElementsExample::mla_gallery_attributes raw input = ' . var_export( $shortcode_attributes, true ) );
 
444
  }
445
 
446
  // Unpack filter values encoded for pagination links
@@ -459,7 +460,8 @@ class MLAUIElementsExample {
459
  }
460
 
461
  if ( $muie_debug ) {
462
- MLACore::mla_debug_add( __LINE__ . ' MLAUIElementsExample::mla_gallery_attributes filtered input = ' . var_export( $shortcode_attributes, true ) );
 
463
  }
464
 
465
  // Fill these in from $_REQUEST parameters
@@ -564,6 +566,13 @@ class MLAUIElementsExample {
564
  $tax_input[ $key ] = explode( ',', $value );
565
  }
566
  }
 
 
 
 
 
 
 
567
  }
568
 
569
  // Add the [mla_term_list mla_control_name=] parameter(s)
@@ -624,7 +633,7 @@ class MLAUIElementsExample {
624
  }
625
 
626
  foreach ( $tax_input as $taxonomy => $terms ) {
627
- // simple taxonomy query overrides tax_input
628
  if ( $taxonomy === $filter_taxonomy ) {
629
  continue;
630
  }
@@ -724,7 +733,7 @@ class MLAUIElementsExample {
724
  *
725
  * @return string HTML markup for the generated form
726
  */
727
- public static function muie_terms_search( $attr ) {
728
  $default_arguments = array(
729
  'mla_terms_phrases' => '',
730
  'mla_terms_taxonomies' => '',
@@ -736,14 +745,8 @@ class MLAUIElementsExample {
736
  );
737
 
738
  // Make sure $attr is an array, even if it's empty
739
- if ( is_string( $attr ) ) {
740
- $attr = shortcode_parse_atts( $attr );
741
- }
742
-
743
- if ( empty( $attr ) ) {
744
- $attr = array();
745
- }
746
-
747
  // Accept only the attributes we need and supply defaults
748
  $arguments = shortcode_atts( $default_arguments, $attr );
749
 
@@ -798,7 +801,7 @@ class MLAUIElementsExample {
798
  *
799
  * @return string HTML markup for the generated form
800
  */
801
- public static function muie_keyword_search( $attr ) {
802
  $default_arguments = array(
803
  's' => '',
804
  'mla_search_fields' => '',
@@ -808,13 +811,7 @@ class MLAUIElementsExample {
808
  );
809
 
810
  // Make sure $attr is an array, even if it's empty
811
- if ( is_string( $attr ) ) {
812
- $attr = shortcode_parse_atts( $attr );
813
- }
814
-
815
- if ( empty( $attr ) ) {
816
- $attr = array();
817
- }
818
 
819
  // Accept only the attributes we need and supply defaults
820
  $arguments = shortcode_atts( $default_arguments, $attr );
@@ -905,20 +902,7 @@ class MLAUIElementsExample {
905
  );
906
 
907
  // Make sure $attr is an array, even if it's empty
908
- if ( is_string( $attr ) ) {
909
- $attr = shortcode_parse_atts( $attr );
910
- }
911
-
912
- if ( empty( $attr ) ) {
913
- $attr = array();
914
- }
915
-
916
- // Look for parameters in an enclosing shortcode
917
- if ( !empty( $content ) ) {
918
- $content = str_replace( array( '&#8216;', '&#8217;', '&#8221;', '&#8243;', '<br />', '<p>', '</p>', "\r", "\n" ), array( '\'', '\'', '"', '"', ' ', ' ', ' ', ' ', ' ' ), $content );
919
- $new_attr = shortcode_parse_atts( $content );
920
- $attr = array_merge( $attr, $new_attr );
921
- }
922
 
923
  // Accept only the attributes we need and supply defaults
924
  $arguments = shortcode_atts( $default_arguments, $attr );
@@ -1073,20 +1057,7 @@ class MLAUIElementsExample {
1073
  );
1074
 
1075
  // Make sure $attr is an array, even if it's empty
1076
- if ( is_string( $attr ) ) {
1077
- $attr = shortcode_parse_atts( $attr );
1078
- }
1079
-
1080
- if ( empty( $attr ) ) {
1081
- $attr = array();
1082
- }
1083
-
1084
- // Look for parameters in an enclosing shortcode
1085
- if ( !empty( $content ) ) {
1086
- $content = str_replace( array( '&#8216;', '&#8217;', '&#8221;', '&#8243;', '<br />', '<p>', '</p>', "\r", "\n" ), array( '\'', '\'', '"', '"', ' ', ' ', ' ', ' ', ' ' ), $content );
1087
- $new_attr = shortcode_parse_atts( $content );
1088
- $attr = array_merge( $attr, $new_attr );
1089
- }
1090
 
1091
  // Accept only the attributes we need and supply defaults
1092
  $arguments = shortcode_atts( $default_arguments, $attr );
@@ -1131,7 +1102,7 @@ class MLAUIElementsExample {
1131
  *
1132
  * @return string HTML markup for the generated form
1133
  */
1134
- public static function muie_assigned_items_count( $attr ) {
1135
  global $wpdb;
1136
 
1137
  $default_arguments = array(
@@ -1142,13 +1113,7 @@ class MLAUIElementsExample {
1142
  );
1143
 
1144
  // Make sure $attr is an array, even if it's empty
1145
- if ( is_string( $attr ) ) {
1146
- $attr = shortcode_parse_atts( $attr );
1147
- }
1148
-
1149
- if ( empty( $attr ) ) {
1150
- $attr = array();
1151
- }
1152
 
1153
  // Accept only the attributes we need and supply defaults
1154
  $arguments = shortcode_atts( $default_arguments, $attr );
@@ -1248,7 +1213,7 @@ class MLAUIElementsExample {
1248
  *
1249
  * @return string HTML markup for the generated input control
1250
  */
1251
- public static function muie_text_box( $attr ) {
1252
  $default_arguments = array(
1253
  'name' => 'muie_text_box',
1254
  'id' => '',
@@ -1257,13 +1222,7 @@ class MLAUIElementsExample {
1257
  );
1258
 
1259
  // Make sure $attr is an array, even if it's empty
1260
- if ( is_string( $attr ) ) {
1261
- $attr = shortcode_parse_atts( $attr );
1262
- }
1263
-
1264
- if ( empty( $attr ) ) {
1265
- $attr = array();
1266
- }
1267
 
1268
  // Accept only the attributes we need and supply defaults
1269
  $arguments = shortcode_atts( $default_arguments, $attr );
93
  * https://wordpress.org/support/topic/checklist-behaviour-my_custom_sql-muie_terms_search/
94
  *
95
  * @package MLA UI Elements Example
96
+ * @version 2.00
97
  */
98
 
99
  /*
100
  Plugin Name: MLA UI Elements Example
101
  Plugin URI: http://davidlingren.com/
102
+ Description: Provides shortcodes to improve user experience for [mla_term_list], [mla_tag_cloud] and [mla_gallery] shortcodes. Adds [muie_archive_list] for date-based archive lists.
103
  Author: David Lingren
104
+ Version: 2.00
105
  Author URI: http://davidlingren.com/
106
 
107
  Copyright 2016-2021 David Lingren
135
  *
136
  * @var integer
137
  */
138
+ const PLUGIN_VERSION = '2.00';
139
 
140
  /**
141
  * Constant to log this plugin's debug activity
440
  }
441
 
442
  if ( $muie_debug ) {
443
+ MLACore::mla_debug_add( __LINE__ . ' MLAUIElementsExample::mla_gallery_attributes raw _REQUEST = ' . var_export( $_REQUEST, true ) );
444
+ MLACore::mla_debug_add( __LINE__ . ' MLAUIElementsExample::mla_gallery_attributes raw shortcode_attributes = ' . var_export( $shortcode_attributes, true ) );
445
  }
446
 
447
  // Unpack filter values encoded for pagination links
460
  }
461
 
462
  if ( $muie_debug ) {
463
+ MLACore::mla_debug_add( __LINE__ . ' MLAUIElementsExample::mla_gallery_attributes filtered _REQUEST = ' . var_export( $_REQUEST, true ) );
464
+ MLACore::mla_debug_add( __LINE__ . ' MLAUIElementsExample::mla_gallery_attributes filtered shortcode_attributes = ' . var_export( $shortcode_attributes, true ) );
465
  }
466
 
467
  // Fill these in from $_REQUEST parameters
566
  $tax_input[ $key ] = explode( ',', $value );
567
  }
568
  }
569
+ if ( $muie_debug ) {
570
+ MLACore::mla_debug_add( __LINE__ . ' MLAUIElementsExample::mla_gallery_attributes simple_tax_queries = ' . var_export( $simple_tax_queries, true ) );
571
+ }
572
+ }
573
+
574
+ if ( $muie_debug ) {
575
+ MLACore::mla_debug_add( __LINE__ . ' MLAUIElementsExample::mla_gallery_attributes filtered tax_input = ' . var_export( $tax_input, true ) );
576
  }
577
 
578
  // Add the [mla_term_list mla_control_name=] parameter(s)
633
  }
634
 
635
  foreach ( $tax_input as $taxonomy => $terms ) {
636
+ // simple filter_taxonomy query already processed; overrides tax_input
637
  if ( $taxonomy === $filter_taxonomy ) {
638
  continue;
639
  }
733
  *
734
  * @return string HTML markup for the generated form
735
  */
736
+ public static function muie_terms_search( $attr, $content = NULL ) {
737
  $default_arguments = array(
738
  'mla_terms_phrases' => '',
739
  'mla_terms_taxonomies' => '',
745
  );
746
 
747
  // Make sure $attr is an array, even if it's empty
748
+ $attr = MLAShortcodes::mla_validate_attributes( $attr, $content );
749
+
 
 
 
 
 
 
750
  // Accept only the attributes we need and supply defaults
751
  $arguments = shortcode_atts( $default_arguments, $attr );
752
 
801
  *
802
  * @return string HTML markup for the generated form
803
  */
804
+ public static function muie_keyword_search( $attr, $content = NULL ) {
805
  $default_arguments = array(
806
  's' => '',
807
  'mla_search_fields' => '',
811
  );
812
 
813
  // Make sure $attr is an array, even if it's empty
814
+ $attr = MLAShortcodes::mla_validate_attributes( $attr, $content );
 
 
 
 
 
 
815
 
816
  // Accept only the attributes we need and supply defaults
817
  $arguments = shortcode_atts( $default_arguments, $attr );
902
  );
903
 
904
  // Make sure $attr is an array, even if it's empty
905
+ $attr = MLAShortcodes::mla_validate_attributes( $attr, $content );
 
 
 
 
 
 
 
 
 
 
 
 
 
906
 
907
  // Accept only the attributes we need and supply defaults
908
  $arguments = shortcode_atts( $default_arguments, $attr );
1057
  );
1058
 
1059
  // Make sure $attr is an array, even if it's empty
1060
+ $attr = MLAShortcodes::mla_validate_attributes( $attr, $content );
 
 
 
 
 
 
 
 
 
 
 
 
 
1061
 
1062
  // Accept only the attributes we need and supply defaults
1063
  $arguments = shortcode_atts( $default_arguments, $attr );
1102
  *
1103
  * @return string HTML markup for the generated form
1104
  */
1105
+ public static function muie_assigned_items_count( $attr, $content = NULL ) {
1106
  global $wpdb;
1107
 
1108
  $default_arguments = array(
1113
  );
1114
 
1115
  // Make sure $attr is an array, even if it's empty
1116
+ $attr = MLAShortcodes::mla_validate_attributes( $attr, $content );
 
 
 
 
 
 
1117
 
1118
  // Accept only the attributes we need and supply defaults
1119
  $arguments = shortcode_atts( $default_arguments, $attr );
1213
  *
1214
  * @return string HTML markup for the generated input control
1215
  */
1216
+ public static function muie_text_box( $attr, $content = NULL ) {
1217
  $default_arguments = array(
1218
  'name' => 'muie_text_box',
1219
  'id' => '',
1222
  );
1223
 
1224
  // Make sure $attr is an array, even if it's empty
1225
+ $attr = MLAShortcodes::mla_validate_attributes( $attr, $content );
 
 
 
 
 
 
1226
 
1227
  // Accept only the attributes we need and supply defaults
1228
  $arguments = shortcode_atts( $default_arguments, $attr );
includes/class-mla-core.php CHANGED
@@ -21,7 +21,7 @@ class MLACore {
21
  *
22
  * @var string
23
  */
24
- const CURRENT_MLA_VERSION = '2.96';
25
 
26
  /**
27
  * Slug for registering and enqueueing plugin style sheets (moved from class-mla-main.php)
21
  *
22
  * @var string
23
  */
24
+ const CURRENT_MLA_VERSION = '2.97';
25
 
26
  /**
27
  * Slug for registering and enqueueing plugin style sheets (moved from class-mla-main.php)
includes/class-mla-settings-custom-fields-tab.php CHANGED
@@ -227,6 +227,7 @@ class MLASettings_CustomFields {
227
  'post_ID' => 0,
228
  'rule_name' => '',
229
  'name' => '',
 
230
  'data_source' => '',
231
  'meta_name' => '',
232
  'format' => '',
@@ -257,6 +258,7 @@ class MLASettings_CustomFields {
257
 
258
  $new_rule['rule_name'] = $new_name;
259
  $new_rule['name'] = $new_name;
 
260
  $new_rule['data_source'] = sanitize_text_field( isset( $_REQUEST['mla_custom_field']['data_source'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['data_source'] ) : 'none' );
261
  $new_rule['meta_name'] = wp_kses( isset( $_REQUEST['mla_custom_field']['meta_name'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['meta_name'] ) : '', 'post' );
262
  $new_rule['format'] = sanitize_text_field( isset( $_REQUEST['mla_custom_field']['format'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['format'] ) : 'native' );
@@ -291,6 +293,7 @@ class MLASettings_CustomFields {
291
  'post_ID' => 0,
292
  'rule_name' => '',
293
  'name' => '',
 
294
  'data_source' => '',
295
  'meta_name' => '',
296
  'format' => '',
@@ -328,6 +331,7 @@ class MLASettings_CustomFields {
328
  $new_rule['post_ID'] = isset( $_REQUEST['mla_custom_field']['post_ID'] ) ? absint( $_REQUEST['mla_custom_field']['post_ID'] ) : 0;
329
  $new_rule['rule_name'] = $new_name ? $new_name : sanitize_text_field( isset( $_REQUEST['mla_custom_field']['rule_name'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['rule_name'] ) : '' );
330
  $new_rule['name'] = $new_name ? $new_name : sanitize_text_field( isset( $_REQUEST['mla_custom_field']['name'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['name'] ) : '' );
 
331
  $new_rule['data_source'] = sanitize_text_field( isset( $_REQUEST['mla_custom_field']['data_source'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['data_source'] ) : 'none' );
332
  $new_rule['meta_name'] = wp_kses( isset( $_REQUEST['mla_custom_field']['meta_name'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['meta_name'] ) : '', 'post' );
333
  $new_rule['format'] = sanitize_text_field( isset( $_REQUEST['mla_custom_field']['format'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['format'] ) : 'native' );
@@ -473,6 +477,10 @@ class MLASettings_CustomFields {
473
  'Cancel Name Change' => __( 'Cancel Name Change', 'media-library-assistant' ),
474
  'Enter new field' => __( 'Enter new field', 'media-library-assistant' ),
475
  'Cancel new field' => __( 'Cancel new field', 'media-library-assistant' ),
 
 
 
 
476
  'Data Source' => __( 'Data Source', 'media-library-assistant' ),
477
  'data_sources' => MLAOptions::mla_compose_data_source_option_list( $item['data_source'] ),
478
  'Meta/Template' => __( 'Meta/Template', 'media-library-assistant' ),
@@ -1077,7 +1085,8 @@ class MLA_Custom_Fields_List_Table extends WP_List_Table {
1077
  'existing_text',
1078
  'delete_null',
1079
  'format',
1080
- 'option'
 
1081
  );
1082
 
1083
  /**
@@ -1111,6 +1120,7 @@ class MLA_Custom_Fields_List_Table extends WP_List_Table {
1111
  'delete_null' => array('delete_null',false),
1112
  'format' => array('format',false),
1113
  'option' => array('option',false),
 
1114
  );
1115
 
1116
  /**
@@ -1247,6 +1257,7 @@ class MLA_Custom_Fields_List_Table extends WP_List_Table {
1247
  'delete_null' => _x( 'Delete NULL', 'list_table_column', 'media-library-assistant' ),
1248
  'format' => _x( 'Format', 'list_table_column', 'media-library-assistant' ),
1249
  'option' => _x( 'Option', 'list_table_column', 'media-library-assistant' ),
 
1250
  );
1251
  }
1252
  }
@@ -1579,6 +1590,18 @@ class MLA_Custom_Fields_List_Table extends WP_List_Table {
1579
  return $item->option;
1580
  }
1581
 
 
 
 
 
 
 
 
 
 
 
 
 
1582
  /**
1583
  * Display the pagination, adding view, search and filter arguments
1584
  *
@@ -1892,6 +1915,7 @@ class MLA_Custom_Field_Query {
1892
  * @type integer $post_ID Rule ID; equal to $$ID.
1893
  * @type string $rule_name Rule name, to accomodate an old bug.
1894
  * @type string $name Custom field name the rule applies to.
 
1895
  * @type string $data_source Data source name, 'none', 'meta' or 'template'.
1896
  * @type string $meta_name if ( $data_source = 'meta' ) attachment metadata element name,
1897
  * if ( $data_source = 'template ) template value w/o "template:"
@@ -1965,6 +1989,8 @@ class MLA_Custom_Field_Query {
1965
  'post_ID' => self::$_custom_field_rule_highest_ID,
1966
  'rule_name' => $rule_name,
1967
  'name' => $current_value['name'],
 
 
1968
  'data_source' => $current_value['data_source'],
1969
  'meta_name' => $current_value['meta_name'],
1970
  'format' => $current_value['format'],
@@ -2010,6 +2036,7 @@ class MLA_Custom_Field_Query {
2010
 
2011
  $custom_field_rules[ $current_value['rule_name'] ] = array(
2012
  'name' => $current_value['name'],
 
2013
  'data_source' => $current_value['data_source'],
2014
  'meta_name' => $current_value['meta_name'],
2015
  'format' => $current_value['format'],
@@ -2133,6 +2160,7 @@ class MLA_Custom_Field_Query {
2133
  foreach ( $keywords as $keyword ) {
2134
  $found |= false !== stripos( $value['rule_name'], $keyword );
2135
  $found |= false !== stripos( $value['name'], $keyword );
 
2136
  $found |= false !== stripos( $value['data_source'], $keyword );
2137
  $found |= false !== stripos( $value['meta_name'], $keyword );
2138
  }
@@ -2203,6 +2231,9 @@ class MLA_Custom_Field_Query {
2203
  case 'option':
2204
  $sortable_items[ ( empty( $value['option'] ) ? chr(1) : $value['option'] ) . $ID ] = (object) $value;
2205
  break;
 
 
 
2206
  default:
2207
  $sortable_items[ absint( $ID ) ] = (object) $value;
2208
  break;
227
  'post_ID' => 0,
228
  'rule_name' => '',
229
  'name' => '',
230
+ 'description' => '',
231
  'data_source' => '',
232
  'meta_name' => '',
233
  'format' => '',
258
 
259
  $new_rule['rule_name'] = $new_name;
260
  $new_rule['name'] = $new_name;
261
+ $new_rule['description'] = sanitize_text_field( isset( $_REQUEST['mla_custom_field']['description'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['description'] ) : '' );
262
  $new_rule['data_source'] = sanitize_text_field( isset( $_REQUEST['mla_custom_field']['data_source'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['data_source'] ) : 'none' );
263
  $new_rule['meta_name'] = wp_kses( isset( $_REQUEST['mla_custom_field']['meta_name'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['meta_name'] ) : '', 'post' );
264
  $new_rule['format'] = sanitize_text_field( isset( $_REQUEST['mla_custom_field']['format'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['format'] ) : 'native' );
293
  'post_ID' => 0,
294
  'rule_name' => '',
295
  'name' => '',
296
+ 'description' => '',
297
  'data_source' => '',
298
  'meta_name' => '',
299
  'format' => '',
331
  $new_rule['post_ID'] = isset( $_REQUEST['mla_custom_field']['post_ID'] ) ? absint( $_REQUEST['mla_custom_field']['post_ID'] ) : 0;
332
  $new_rule['rule_name'] = $new_name ? $new_name : sanitize_text_field( isset( $_REQUEST['mla_custom_field']['rule_name'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['rule_name'] ) : '' );
333
  $new_rule['name'] = $new_name ? $new_name : sanitize_text_field( isset( $_REQUEST['mla_custom_field']['name'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['name'] ) : '' );
334
+ $new_rule['description'] = sanitize_text_field( isset( $_REQUEST['mla_custom_field']['description'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['description'] ) : '' );
335
  $new_rule['data_source'] = sanitize_text_field( isset( $_REQUEST['mla_custom_field']['data_source'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['data_source'] ) : 'none' );
336
  $new_rule['meta_name'] = wp_kses( isset( $_REQUEST['mla_custom_field']['meta_name'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['meta_name'] ) : '', 'post' );
337
  $new_rule['format'] = sanitize_text_field( isset( $_REQUEST['mla_custom_field']['format'] ) ? wp_unslash( $_REQUEST['mla_custom_field']['format'] ) : 'native' );
477
  'Cancel Name Change' => __( 'Cancel Name Change', 'media-library-assistant' ),
478
  'Enter new field' => __( 'Enter new field', 'media-library-assistant' ),
479
  'Cancel new field' => __( 'Cancel new field', 'media-library-assistant' ),
480
+ 'Description' => __( 'Description', 'media-library-assistant' ),
481
+ 'description' => $item['description'],
482
+ 'description_rows' => 3,
483
+ 'description_help' => __( 'Notes for the Custom Fields tab submenu table.', 'media-library-assistant' ),
484
  'Data Source' => __( 'Data Source', 'media-library-assistant' ),
485
  'data_sources' => MLAOptions::mla_compose_data_source_option_list( $item['data_source'] ),
486
  'Meta/Template' => __( 'Meta/Template', 'media-library-assistant' ),
1085
  'existing_text',
1086
  'delete_null',
1087
  'format',
1088
+ 'option',
1089
+ 'description',
1090
  );
1091
 
1092
  /**
1120
  'delete_null' => array('delete_null',false),
1121
  'format' => array('format',false),
1122
  'option' => array('option',false),
1123
+ 'description' => array('description',false),
1124
  );
1125
 
1126
  /**
1257
  'delete_null' => _x( 'Delete NULL', 'list_table_column', 'media-library-assistant' ),
1258
  'format' => _x( 'Format', 'list_table_column', 'media-library-assistant' ),
1259
  'option' => _x( 'Option', 'list_table_column', 'media-library-assistant' ),
1260
+ 'description' => _x( 'Description', 'list_table_column', 'media-library-assistant' ),
1261
  );
1262
  }
1263
  }
1590
  return $item->option;
1591
  }
1592
 
1593
+ /**
1594
+ * Populate the Description column
1595
+ *
1596
+ * @since 2.97
1597
+ *
1598
+ * @param object An MLA custom_field_rule object
1599
+ * @return string HTML markup to be placed inside the column
1600
+ */
1601
+ function column_description( $item ) {
1602
+ return esc_html( $item->description );
1603
+ }
1604
+
1605
  /**
1606
  * Display the pagination, adding view, search and filter arguments
1607
  *
1915
  * @type integer $post_ID Rule ID; equal to $$ID.
1916
  * @type string $rule_name Rule name, to accomodate an old bug.
1917
  * @type string $name Custom field name the rule applies to.
1918
+ * @type string $description Notes for the Custom Fields tab submenu table.
1919
  * @type string $data_source Data source name, 'none', 'meta' or 'template'.
1920
  * @type string $meta_name if ( $data_source = 'meta' ) attachment metadata element name,
1921
  * if ( $data_source = 'template ) template value w/o "template:"
1989
  'post_ID' => self::$_custom_field_rule_highest_ID,
1990
  'rule_name' => $rule_name,
1991
  'name' => $current_value['name'],
1992
+ // description added in v2.97
1993
+ 'description' => isset( $current_value['description'] ) ? $current_value['description'] : '',
1994
  'data_source' => $current_value['data_source'],
1995
  'meta_name' => $current_value['meta_name'],
1996
  'format' => $current_value['format'],
2036
 
2037
  $custom_field_rules[ $current_value['rule_name'] ] = array(
2038
  'name' => $current_value['name'],
2039
+ 'description' => $current_value['description'],
2040
  'data_source' => $current_value['data_source'],
2041
  'meta_name' => $current_value['meta_name'],
2042
  'format' => $current_value['format'],
2160
  foreach ( $keywords as $keyword ) {
2161
  $found |= false !== stripos( $value['rule_name'], $keyword );
2162
  $found |= false !== stripos( $value['name'], $keyword );
2163
+ $found |= false !== stripos( $value['description'], $keyword );
2164
  $found |= false !== stripos( $value['data_source'], $keyword );
2165
  $found |= false !== stripos( $value['meta_name'], $keyword );
2166
  }
2231
  case 'option':
2232
  $sortable_items[ ( empty( $value['option'] ) ? chr(1) : $value['option'] ) . $ID ] = (object) $value;
2233
  break;
2234
+ case 'description':
2235
+ $sortable_items[ ( empty( $value['description'] ) ? chr(1) : $value['description'] ) . $ID ] = (object) $value;
2236
+ break;
2237
  default:
2238
  $sortable_items[ absint( $ID ) ] = (object) $value;
2239
  break;
includes/class-mla-settings-iptc-exif-tab.php CHANGED
@@ -232,6 +232,7 @@ class MLASettings_IPTCEXIF {
232
  'key' => '',
233
  'rule_name' => '',
234
  'name' => '',
 
235
  'hierarchical' => false,
236
  'iptc_value' => '',
237
  'exif_value' => '',
@@ -264,6 +265,7 @@ class MLASettings_IPTCEXIF {
264
  $new_rule['key'] = $new_name;
265
  $new_rule['rule_name'] = $new_name;
266
  $new_rule['name'] = $new_name;
 
267
  $new_rule['iptc_value'] = sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['iptc_value'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['iptc_value'] ) : 'none' );
268
  $new_rule['exif_value'] = wp_kses( isset( $_REQUEST['mla_iptc_exif_rule']['exif_value'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['exif_value'] ) : '', 'post' );
269
  $new_rule['iptc_first'] = isset( $_REQUEST['mla_iptc_exif_rule']['iptc_first'] ) && '1' === $_REQUEST['mla_iptc_exif_rule']['iptc_first'];
@@ -298,6 +300,7 @@ class MLASettings_IPTCEXIF {
298
  'key' => '',
299
  'rule_name' => '',
300
  'name' => '',
 
301
  'hierarchical' => false,
302
  'iptc_value' => '',
303
  'exif_value' => '',
@@ -338,6 +341,7 @@ class MLASettings_IPTCEXIF {
338
  $new_rule['key'] = $new_name ? $new_name : sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['key'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['key'] ) : '' );
339
  $new_rule['rule_name'] = $new_name ? $new_name : sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['rule_name'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['rule_name'] ) : '' );
340
  $new_rule['name'] = $new_name ? $new_name : sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['name'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['name'] ) : '' );
 
341
  $new_rule['hierarchical'] = isset( $_REQUEST['mla_iptc_exif_rule']['hierarchical'] ) && '1' === $_REQUEST['mla_iptc_exif_rule']['hierarchical'];
342
  $new_rule['iptc_value'] = sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['iptc_value'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['iptc_value'] ) : 'none' );
343
  $new_rule['exif_value'] = wp_kses( isset( $_REQUEST['mla_iptc_exif_rule']['exif_value'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['exif_value'] ) : '', 'post' );
@@ -494,6 +498,10 @@ class MLASettings_IPTCEXIF {
494
  'Cancel Name Change' => __( 'Cancel Name Change', 'media-library-assistant' ),
495
  'Enter new field' => __( 'Enter new field', 'media-library-assistant' ),
496
  'Cancel new field' => __( 'Cancel new field', 'media-library-assistant' ),
 
 
 
 
497
  'IPTC Value' => __( 'IPTC Value', 'media-library-assistant' ),
498
  'iptc_field_options' => MLAOptions::mla_compose_iptc_option_list( $item['iptc_value'] ),
499
  'EXIF/Template Value' => __( 'EXIF/Template Value', 'media-library-assistant' ),
@@ -1178,7 +1186,8 @@ class MLA_IPTC_EXIF_List_Table extends WP_List_Table {
1178
  'parent',
1179
  'delete_null',
1180
  'format',
1181
- 'option'
 
1182
  );
1183
 
1184
  /**
@@ -1214,6 +1223,7 @@ class MLA_IPTC_EXIF_List_Table extends WP_List_Table {
1214
  'delete_null' => array('delete_null',false),
1215
  'format' => array('format',false),
1216
  'option' => array('option',false),
 
1217
  );
1218
 
1219
  /**
@@ -1352,6 +1362,7 @@ class MLA_IPTC_EXIF_List_Table extends WP_List_Table {
1352
  'delete_null' => _x( 'Delete NULL', 'list_table_column', 'media-library-assistant' ),
1353
  'format' => _x( 'Format', 'list_table_column', 'media-library-assistant' ),
1354
  'option' => _x( 'Option', 'list_table_column', 'media-library-assistant' ),
 
1355
  );
1356
  }
1357
  }
@@ -1713,6 +1724,18 @@ class MLA_IPTC_EXIF_List_Table extends WP_List_Table {
1713
  return $item->option;
1714
  }
1715
 
 
 
 
 
 
 
 
 
 
 
 
 
1716
  /**
1717
  * Display the pagination, adding view, search and filter arguments
1718
  *
@@ -2028,6 +2051,7 @@ class MLA_IPTC_EXIF_Query {
2028
  * @type string $key Field or taxonomy slug, custom field name the rule applies to.
2029
  * @type string $rule_name Rule name, to accomodate an old custom fields bug.
2030
  * @type string $name Field or taxonomy name the rule applies to.
 
2031
  * @type boolean $hierarchical True if taxonomy is hierarchical.
2032
  * @type string $iptc_value IPTC tag, e.g., ‘2#025’ or 'none'.
2033
  * @type string $exif_value EXIF field name or Content Template begining "template:".
@@ -2091,6 +2115,8 @@ class MLA_IPTC_EXIF_Query {
2091
  'key' => $key,
2092
  'rule_name' => $current_value['name'],
2093
  'name' => $current_value['name'],
 
 
2094
  'hierarchical' => false,
2095
  'iptc_value' => $current_value['iptc_value'],
2096
  'exif_value' => $current_value['exif_value'],
@@ -2135,6 +2161,8 @@ class MLA_IPTC_EXIF_Query {
2135
  unset( $current_values['taxonomy'][ $key ] );
2136
 
2137
  $current_value = array_merge( $current_value, array(
 
 
2138
  'iptc_value' => $existing_values['iptc_value'],
2139
  'exif_value' => $existing_values['exif_value'],
2140
  'iptc_first' => $existing_values['iptc_first'],
@@ -2146,6 +2174,7 @@ class MLA_IPTC_EXIF_Query {
2146
  ) );
2147
  } else {
2148
  $current_value = array_merge( $current_value, array(
 
2149
  'iptc_value' => 'none',
2150
  'exif_value' => '',
2151
  'iptc_first' => true,
@@ -2173,6 +2202,11 @@ class MLA_IPTC_EXIF_Query {
2173
  $value['changed'] = false;
2174
  $value['deleted'] = false;
2175
 
 
 
 
 
 
2176
  if ( isset( $value['active'] ) && $value['active'] ) {
2177
  $value['active'] = false;
2178
  $value['changed'] = true;
@@ -2211,6 +2245,8 @@ class MLA_IPTC_EXIF_Query {
2211
  'key' => $rule_name,
2212
  'rule_name' => $rule_name,
2213
  'name' => $current_value['name'],
 
 
2214
  'hierarchical' => false,
2215
  'iptc_value' => $current_value['iptc_value'],
2216
  'exif_value' => $current_value['exif_value'],
@@ -2263,6 +2299,7 @@ class MLA_IPTC_EXIF_Query {
2263
 
2264
  $new_value = array(
2265
  'name' => $current_value['name'],
 
2266
  'iptc_value' => $current_value['iptc_value'],
2267
  'exif_value' => $current_value['exif_value'],
2268
  'iptc_first' => $current_value['iptc_first'],
@@ -2400,6 +2437,7 @@ class MLA_IPTC_EXIF_Query {
2400
  foreach ( $keywords as $keyword ) {
2401
  $found |= false !== stripos( $value['rule_name'], $keyword );
2402
  $found |= false !== stripos( $value['name'], $keyword );
 
2403
  $found |= false !== stripos( $iptc_text, $keyword );
2404
  $found |= false !== stripos( $value['iptc_value'], $keyword );
2405
  $found |= false !== stripos( $value['exif_value'], $keyword );
@@ -2490,6 +2528,9 @@ class MLA_IPTC_EXIF_Query {
2490
  case 'option':
2491
  $sortable_items[ ( empty( $value['option'] ) ? chr(1) : $value['option'] ) . $ID ] = (object) $value;
2492
  break;
 
 
 
2493
  default:
2494
  $sortable_items[ absint( $ID ) ] = (object) $value;
2495
  break;
232
  'key' => '',
233
  'rule_name' => '',
234
  'name' => '',
235
+ 'description' => '',
236
  'hierarchical' => false,
237
  'iptc_value' => '',
238
  'exif_value' => '',
265
  $new_rule['key'] = $new_name;
266
  $new_rule['rule_name'] = $new_name;
267
  $new_rule['name'] = $new_name;
268
+ $new_rule['description'] = sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['description'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['description'] ) : '' );
269
  $new_rule['iptc_value'] = sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['iptc_value'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['iptc_value'] ) : 'none' );
270
  $new_rule['exif_value'] = wp_kses( isset( $_REQUEST['mla_iptc_exif_rule']['exif_value'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['exif_value'] ) : '', 'post' );
271
  $new_rule['iptc_first'] = isset( $_REQUEST['mla_iptc_exif_rule']['iptc_first'] ) && '1' === $_REQUEST['mla_iptc_exif_rule']['iptc_first'];
300
  'key' => '',
301
  'rule_name' => '',
302
  'name' => '',
303
+ 'description' => '',
304
  'hierarchical' => false,
305
  'iptc_value' => '',
306
  'exif_value' => '',
341
  $new_rule['key'] = $new_name ? $new_name : sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['key'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['key'] ) : '' );
342
  $new_rule['rule_name'] = $new_name ? $new_name : sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['rule_name'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['rule_name'] ) : '' );
343
  $new_rule['name'] = $new_name ? $new_name : sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['name'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['name'] ) : '' );
344
+ $new_rule['description'] = sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['description'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['description'] ) : '' );
345
  $new_rule['hierarchical'] = isset( $_REQUEST['mla_iptc_exif_rule']['hierarchical'] ) && '1' === $_REQUEST['mla_iptc_exif_rule']['hierarchical'];
346
  $new_rule['iptc_value'] = sanitize_text_field( isset( $_REQUEST['mla_iptc_exif_rule']['iptc_value'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['iptc_value'] ) : 'none' );
347
  $new_rule['exif_value'] = wp_kses( isset( $_REQUEST['mla_iptc_exif_rule']['exif_value'] ) ? wp_unslash( $_REQUEST['mla_iptc_exif_rule']['exif_value'] ) : '', 'post' );
498
  'Cancel Name Change' => __( 'Cancel Name Change', 'media-library-assistant' ),
499
  'Enter new field' => __( 'Enter new field', 'media-library-assistant' ),
500
  'Cancel new field' => __( 'Cancel new field', 'media-library-assistant' ),
501
+ 'Description' => __( 'Description', 'media-library-assistant' ),
502
+ 'description' => $item['description'],
503
+ 'description_rows' => 3,
504
+ 'description_help' => __( 'Notes for the IPTC/EXIF tab submenu table.', 'media-library-assistant' ),
505
  'IPTC Value' => __( 'IPTC Value', 'media-library-assistant' ),
506
  'iptc_field_options' => MLAOptions::mla_compose_iptc_option_list( $item['iptc_value'] ),
507
  'EXIF/Template Value' => __( 'EXIF/Template Value', 'media-library-assistant' ),
1186
  'parent',
1187
  'delete_null',
1188
  'format',
1189
+ 'option',
1190
+ 'description',
1191
  );
1192
 
1193
  /**
1223
  'delete_null' => array('delete_null',false),
1224
  'format' => array('format',false),
1225
  'option' => array('option',false),
1226
+ 'description' => array('description',false),
1227
  );
1228
 
1229
  /**
1362
  'delete_null' => _x( 'Delete NULL', 'list_table_column', 'media-library-assistant' ),
1363
  'format' => _x( 'Format', 'list_table_column', 'media-library-assistant' ),
1364
  'option' => _x( 'Option', 'list_table_column', 'media-library-assistant' ),
1365
+ 'description' => _x( 'Description', 'list_table_column', 'media-library-assistant' ),
1366
  );
1367
  }
1368
  }
1724
  return $item->option;
1725
  }
1726
 
1727
+ /**
1728
+ * Populate the Description column
1729
+ *
1730
+ * @since 2.97
1731
+ *
1732
+ * @param object An MLA custom_field_rule object
1733
+ * @return string HTML markup to be placed inside the column
1734
+ */
1735
+ function column_description( $item ) {
1736
+ return esc_html( $item->description );
1737
+ }
1738
+
1739
  /**
1740
  * Display the pagination, adding view, search and filter arguments
1741
  *
2051
  * @type string $key Field or taxonomy slug, custom field name the rule applies to.
2052
  * @type string $rule_name Rule name, to accomodate an old custom fields bug.
2053
  * @type string $name Field or taxonomy name the rule applies to.
2054
+ * @type string $description Notes for the IPTC/EXIF tab submenu table.
2055
  * @type boolean $hierarchical True if taxonomy is hierarchical.
2056
  * @type string $iptc_value IPTC tag, e.g., ‘2#025’ or 'none'.
2057
  * @type string $exif_value EXIF field name or Content Template begining "template:".
2115
  'key' => $key,
2116
  'rule_name' => $current_value['name'],
2117
  'name' => $current_value['name'],
2118
+ // description added in v2.97
2119
+ 'description' => isset( $current_value['description'] ) ? $current_value['description'] : '',
2120
  'hierarchical' => false,
2121
  'iptc_value' => $current_value['iptc_value'],
2122
  'exif_value' => $current_value['exif_value'],
2161
  unset( $current_values['taxonomy'][ $key ] );
2162
 
2163
  $current_value = array_merge( $current_value, array(
2164
+ // description added in v2.97
2165
+ 'description' => isset( $existing_values['description'] ) ? $existing_values['description'] : '',
2166
  'iptc_value' => $existing_values['iptc_value'],
2167
  'exif_value' => $existing_values['exif_value'],
2168
  'iptc_first' => $existing_values['iptc_first'],
2174
  ) );
2175
  } else {
2176
  $current_value = array_merge( $current_value, array(
2177
+ 'description' => '',
2178
  'iptc_value' => 'none',
2179
  'exif_value' => '',
2180
  'iptc_first' => true,
2202
  $value['changed'] = false;
2203
  $value['deleted'] = false;
2204
 
2205
+ // description added in v2.97
2206
+ if ( !isset( $value['description'] ) ) {
2207
+ $value['description']= '';
2208
+ }
2209
+
2210
  if ( isset( $value['active'] ) && $value['active'] ) {
2211
  $value['active'] = false;
2212
  $value['changed'] = true;
2245
  'key' => $rule_name,
2246
  'rule_name' => $rule_name,
2247
  'name' => $current_value['name'],
2248
+ // description added in v2.97
2249
+ 'description' => isset( $current_value['description'] ) ? $current_value['description'] : '',
2250
  'hierarchical' => false,
2251
  'iptc_value' => $current_value['iptc_value'],
2252
  'exif_value' => $current_value['exif_value'],
2299
 
2300
  $new_value = array(
2301
  'name' => $current_value['name'],
2302
+ 'description' => $current_value['description'],
2303
  'iptc_value' => $current_value['iptc_value'],
2304
  'exif_value' => $current_value['exif_value'],
2305
  'iptc_first' => $current_value['iptc_first'],
2437
  foreach ( $keywords as $keyword ) {
2438
  $found |= false !== stripos( $value['rule_name'], $keyword );
2439
  $found |= false !== stripos( $value['name'], $keyword );
2440
+ $found |= false !== stripos( $value['description'], $keyword );
2441
  $found |= false !== stripos( $iptc_text, $keyword );
2442
  $found |= false !== stripos( $value['iptc_value'], $keyword );
2443
  $found |= false !== stripos( $value['exif_value'], $keyword );
2528
  case 'option':
2529
  $sortable_items[ ( empty( $value['option'] ) ? chr(1) : $value['option'] ) . $ID ] = (object) $value;
2530
  break;
2531
+ case 'description':
2532
+ $sortable_items[ ( empty( $value['description'] ) ? chr(1) : $value['description'] ) . $ID ] = (object) $value;
2533
+ break;
2534
  default:
2535
  $sortable_items[ absint( $ID ) ] = (object) $value;
2536
  break;
includes/class-mla-shortcode-support.php CHANGED
@@ -577,6 +577,11 @@ class MLAShortcode_Support {
577
  continue;
578
  }
579
 
 
 
 
 
 
580
  $attr_value = str_replace( '{+', '[+', str_replace( '+}', '+]', $attr_value ) );
581
  $replacement_values = MLAData::mla_expand_field_level_parameters( $attr_value, $attr, $page_values );
582
  $attr[ $attr_key ] = MLAData::mla_parse_template( $attr_value, $replacement_values );
@@ -601,13 +606,19 @@ class MLAShortcode_Support {
601
  $arguments['mla_markup'] = $default_arguments['mla_markup'];
602
  }
603
 
604
- // Look for "no effect" alternate gallery shortcode to support plugins such as Justified Image Grid
605
- if ( is_string( $arguments['mla_alt_shortcode'] ) && ( in_array( $arguments['mla_alt_shortcode'], array( 'mla_gallery', 'no' ) ) ) ) {
606
- $arguments['mla_alt_shortcode'] = NULL;
607
- $arguments['mla_alt_ids_name'] = 'ids';
608
- $arguments['mla_alt_ids_value'] = NULL;
609
- $arguments['mla_alt_ids_template'] = NULL;
610
- $arguments['mla_alt_parameters'] = NULL;
 
 
 
 
 
 
611
  }
612
 
613
  self::$mla_debug = ( ! empty( $arguments['mla_debug'] ) ) ? trim( strtolower( $arguments['mla_debug'] ) ) : false;
@@ -780,11 +791,24 @@ class MLAShortcode_Support {
780
  $blacklist = array_merge( $mla_arguments, $blacklist );
781
  }
782
 
 
 
 
 
 
 
 
 
 
 
 
 
783
  $blacklist = apply_filters( 'mla_gallery_alt_shortcode_blacklist', $blacklist );
784
  $alt_attr = apply_filters( 'mla_gallery_alt_shortcode_attributes', $attr );
785
  //error_log( __LINE__ . " alt_attr = " . var_export( $alt_attr, true ), 0 );
786
 
787
  // Allow for overide of blacklist values, e.g., post_mime_type
 
788
  if ( !empty( $alt_attr['mla_alt_parameters'] ) ) {
789
  $alt_parameters = self::mla_validate_attributes( $alt_attr['mla_alt_parameters'] );
790
  //error_log( __LINE__ . " alt_parameters = " . var_export( $alt_parameters, true ), 0 );
@@ -2020,6 +2044,13 @@ class MLAShortcode_Support {
2020
  }
2021
  }
2022
 
 
 
 
 
 
 
 
2023
  // Determine markup template to get default arguments
2024
  $arguments = shortcode_atts( $defaults, $attr );
2025
  if ( $arguments['mla_markup'] ) {
@@ -2099,8 +2130,8 @@ class MLAShortcode_Support {
2099
  }
2100
 
2101
  // Clean up the current_item to separate term_id from slug
2102
- if ( ! empty( $arguments['current_item'] ) && ctype_digit( $arguments['current_item'] ) ) {
2103
- $arguments['current_item'] = absint( $arguments['current_item'] );
2104
  }
2105
 
2106
  $arguments = apply_filters( 'mla_tag_cloud_arguments', $arguments );
@@ -2752,11 +2783,11 @@ class MLAShortcode_Support {
2752
 
2753
  if ( ! empty( $arguments['current_item'] ) ) {
2754
  if ( is_integer( $arguments['current_item'] ) ) {
2755
- if ( $arguments['current_item'] == $tag->term_id ) {
2756
  $item_values['current_item_class'] = $arguments['current_item_class'];
2757
  }
2758
  } else {
2759
- if ( $tag->slug == sanitize_title_for_query( $arguments['current_item'] ) ) {
2760
  $item_values['current_item_class'] = $arguments['current_item_class'];
2761
  }
2762
  }
@@ -2790,11 +2821,18 @@ class MLAShortcode_Support {
2790
  $link_attributes .= self::_process_shortcode_parameter( $arguments['mla_link_attributes'], $item_values ) . ' ';
2791
  }
2792
 
 
 
 
 
 
 
2793
  if ( ! empty( $arguments['mla_link_class'] ) ) {
2794
- $class_attributes = self::_process_shortcode_parameter( $arguments['mla_link_class'], $item_values );
2795
- if ( ! empty( $class_attributes ) ) {
2796
- $link_attributes .= 'class="' . $class_attributes . '" ';
2797
- }
 
2798
  }
2799
 
2800
  $item_values['link_attributes'] = $link_attributes;
@@ -2934,7 +2972,7 @@ class MLAShortcode_Support {
2934
  public static function mla_tag_cloud_shortcode( $attr, $content = NULL ) {
2935
  /*
2936
  * Make sure $attr is an array, even if it's empty,
2937
- * and repair damage caused by link-breaks in the source text
2938
  */
2939
  $attr = self::mla_validate_attributes( $attr, $content );
2940
 
@@ -3129,14 +3167,15 @@ class MLAShortcode_Support {
3129
  $current_item = $value[1];
3130
  }
3131
 
3132
- if ( $current_is_slug || !( ctype_digit( $current_item ) || is_int( $current_item ) ) ) {
3133
- if ( $term->slug === sanitize_title_for_query( $current_item ) ) {
 
3134
  $is_active = true;
3135
  $item_values['current_item_class'] = $arguments['current_item_class'];
3136
  break;
3137
  }
3138
  } else {
3139
- if ( $current_item === $term->term_id ) {
3140
  $is_active = true;
3141
  $item_values['current_item_class'] = $arguments['current_item_class'];
3142
  break;
@@ -3557,7 +3596,6 @@ class MLAShortcode_Support {
3557
  if ( is_string( $arguments[ $mla_item_parameter ] ) ) {
3558
  $arguments[ $mla_item_parameter ] = explode( ',', $arguments[ $mla_item_parameter ] );
3559
  }
3560
-
3561
  foreach( $arguments[ $mla_item_parameter ] as $index => $value ) {
3562
  if ( ctype_digit( $value ) ) {
3563
  $arguments[ $mla_item_parameter ][ $index ] = absint( $value );
@@ -5400,8 +5438,9 @@ class MLAShortcode_Support {
5400
  $arguments['category_name'] = $simple_tax_queries['category'];
5401
  } else {
5402
  $query_arguments = $simple_tax_queries;
5403
- self::$mla_get_shortcode_dynamic_attachments_parameters = $simple_tax_queries;
5404
  }
 
 
5405
  }
5406
  } // ! empty
5407
 
577
  continue;
578
  }
579
 
580
+ // Don't expand anything passed along to the alternate shortcode
581
+ if ( 'mla_alt_parameters' === $attr_key ) {
582
+ continue;
583
+ }
584
+
585
  $attr_value = str_replace( '{+', '[+', str_replace( '+}', '+]', $attr_value ) );
586
  $replacement_values = MLAData::mla_expand_field_level_parameters( $attr_value, $attr, $page_values );
587
  $attr[ $attr_key ] = MLAData::mla_parse_template( $attr_value, $replacement_values );
606
  $arguments['mla_markup'] = $default_arguments['mla_markup'];
607
  }
608
 
609
+ // Look for alternate gallery shortcode special cases
610
+ if ( is_string( $arguments['mla_alt_shortcode'] ) ) {
611
+ // Special value to avoid Justified Image Grid conflict
612
+ if ( 'yes' === $arguments['mla_alt_shortcode'] ) {
613
+ $arguments['mla_alt_shortcode'] = 'mla_gallery';
614
+ } elseif ( in_array( $arguments['mla_alt_shortcode'], array( 'mla_gallery', 'no' ) ) ) {
615
+ // Handle "no effect" alternate gallery shortcode to support plugins such as Justified Image Grid
616
+ $arguments['mla_alt_shortcode'] = NULL;
617
+ $arguments['mla_alt_ids_name'] = 'ids';
618
+ $arguments['mla_alt_ids_value'] = NULL;
619
+ $arguments['mla_alt_ids_template'] = NULL;
620
+ $arguments['mla_alt_parameters'] = NULL;
621
+ }
622
  }
623
 
624
  self::$mla_debug = ( ! empty( $arguments['mla_debug'] ) ) ? trim( strtolower( $arguments['mla_debug'] ) ) : false;
791
  $blacklist = array_merge( $mla_arguments, $blacklist );
792
  }
793
 
794
+ // Suppress mla_alt... shortcode arguments in second mla_gallery
795
+ if ( 'mla_gallery' === $arguments['mla_alt_shortcode'] ) {
796
+ $blacklist = array_merge( $blacklist, array(
797
+ 'mla_alt_shortcode' => NULL,
798
+ 'mla_alt_ids_name' => 'ids',
799
+ 'mla_alt_ids_value' => NULL,
800
+ 'mla_alt_ids_template' => NULL,
801
+ 'mla_alt_parameters' => NULL,
802
+ )
803
+ );
804
+ }
805
+
806
  $blacklist = apply_filters( 'mla_gallery_alt_shortcode_blacklist', $blacklist );
807
  $alt_attr = apply_filters( 'mla_gallery_alt_shortcode_attributes', $attr );
808
  //error_log( __LINE__ . " alt_attr = " . var_export( $alt_attr, true ), 0 );
809
 
810
  // Allow for overide of blacklist values, e.g., post_mime_type
811
+ $alt_parameters = array();
812
  if ( !empty( $alt_attr['mla_alt_parameters'] ) ) {
813
  $alt_parameters = self::mla_validate_attributes( $alt_attr['mla_alt_parameters'] );
814
  //error_log( __LINE__ . " alt_parameters = " . var_export( $alt_parameters, true ), 0 );
2044
  }
2045
  }
2046
 
2047
+ // Special handling of current_item; look for this parameter in $_REQUEST if it's not present in the shortcode itself.
2048
+ if ( ! isset( $attr['current_item'] ) ) {
2049
+ if ( isset( $_REQUEST['current_item'] ) ) {
2050
+ $attr['current_item'] = sanitize_text_field( wp_unslash( $_REQUEST['current_item'] ) );
2051
+ }
2052
+ }
2053
+
2054
  // Determine markup template to get default arguments
2055
  $arguments = shortcode_atts( $defaults, $attr );
2056
  if ( $arguments['mla_markup'] ) {
2130
  }
2131
 
2132
  // Clean up the current_item to separate term_id from slug
2133
+ if ( ! empty( $arguments['current_item'] ) && is_numeric( $arguments['current_item'] ) ) {
2134
+ $arguments['current_item'] = (integer) $arguments['current_item'];
2135
  }
2136
 
2137
  $arguments = apply_filters( 'mla_tag_cloud_arguments', $arguments );
2783
 
2784
  if ( ! empty( $arguments['current_item'] ) ) {
2785
  if ( is_integer( $arguments['current_item'] ) ) {
2786
+ if ( intval( $tag->term_id ) === $arguments['current_item'] ) {
2787
  $item_values['current_item_class'] = $arguments['current_item_class'];
2788
  }
2789
  } else {
2790
+ if ( sanitize_title_for_query( $tag->slug ) === sanitize_title_for_query( $arguments['current_item'] ) ) {
2791
  $item_values['current_item_class'] = $arguments['current_item_class'];
2792
  }
2793
  }
2821
  $link_attributes .= self::_process_shortcode_parameter( $arguments['mla_link_attributes'], $item_values ) . ' ';
2822
  }
2823
 
2824
+ if ( ! empty( $item_values['current_item_class'] ) ) {
2825
+ $class_attributes = $item_values['current_item_class'];
2826
+ } else {
2827
+ $class_attributes = '';
2828
+ }
2829
+
2830
  if ( ! empty( $arguments['mla_link_class'] ) ) {
2831
+ $class_attributes .= ' ' . self::_process_shortcode_parameter( $arguments['mla_link_class'], $item_values );
2832
+ }
2833
+
2834
+ if ( ! empty( $class_attributes ) ) {
2835
+ $link_attributes .= ' class="' . trim( $class_attributes ) . '" ';
2836
  }
2837
 
2838
  $item_values['link_attributes'] = $link_attributes;
2972
  public static function mla_tag_cloud_shortcode( $attr, $content = NULL ) {
2973
  /*
2974
  * Make sure $attr is an array, even if it's empty,
2975
+ * and repair damage caused by line breaks in the source text
2976
  */
2977
  $attr = self::mla_validate_attributes( $attr, $content );
2978
 
3167
  $current_item = $value[1];
3168
  }
3169
 
3170
+ // Must work for special values, e.g., any.terms.assigned or -2
3171
+ if ( $current_is_slug || !is_numeric( $current_item ) ) {
3172
+ if ( sanitize_title_for_query( $term->slug ) === sanitize_title_for_query( $current_item ) ) {
3173
  $is_active = true;
3174
  $item_values['current_item_class'] = $arguments['current_item_class'];
3175
  break;
3176
  }
3177
  } else {
3178
+ if ( $term->term_id === (integer) $current_item ) {
3179
  $is_active = true;
3180
  $item_values['current_item_class'] = $arguments['current_item_class'];
3181
  break;
3596
  if ( is_string( $arguments[ $mla_item_parameter ] ) ) {
3597
  $arguments[ $mla_item_parameter ] = explode( ',', $arguments[ $mla_item_parameter ] );
3598
  }
 
3599
  foreach( $arguments[ $mla_item_parameter ] as $index => $value ) {
3600
  if ( ctype_digit( $value ) ) {
3601
  $arguments[ $mla_item_parameter ][ $index ] = absint( $value );
5438
  $arguments['category_name'] = $simple_tax_queries['category'];
5439
  } else {
5440
  $query_arguments = $simple_tax_queries;
 
5441
  }
5442
+
5443
+ self::$mla_get_shortcode_dynamic_attachments_parameters = $simple_tax_queries;
5444
  }
5445
  } // ! empty
5446
 
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.96
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.96
20
  Author URI: http://davidlingren.com/
21
 
22
  Copyright 2011-2021 David Lingren
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
+ * @version 2.97
10
  */
11
 
12
  /*
16
  Author: David Lingren
17
  Text Domain: media-library-assistant
18
  Domain Path: /languages
19
+ Version: 2.97
20
  Author URI: http://davidlingren.com/
21
 
22
  Copyright 2011-2021 David Lingren
js/mla-media-modal-scripts.js CHANGED
@@ -819,6 +819,35 @@ var wp, wpAjax, ajaxurl, jQuery, _,
819
  console.log('toolbarEvent( ) Event: ', eventName);
820
  }, // */
821
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
822
  createToolbar: function() {
823
  var filters, state = this.controller._state;
824
 
819
  console.log('toolbarEvent( ) Event: ', eventName);
820
  }, // */
821
 
822
+ initialize: function() {
823
+ mlaAttachmentsBrowser.prototype.initialize.apply( this, arguments );
824
+
825
+ if ( ( 'object' === typeof this.attachmentsWrapper ) && ( 'undefined' === typeof window.eml ) ) {
826
+ mlaModal.settings.oldHeight = 0;
827
+ this.on( 'ready', this.adjustBrowser, this );
828
+ this.$window = $( window );
829
+ this.$window.on( 'resize', _.debounce( _.bind( this.adjustBrowser, this ), 15 ) );
830
+ }
831
+ },
832
+
833
+ adjustBrowser: function() {
834
+ var wrapper = this.attachmentsWrapper, toolbar = this.toolbar, toolbarHeight, primaryHeight, secondaryHeight;
835
+
836
+ primaryHeight = toolbar.primary.$el.height();
837
+ secondaryHeight = toolbar.secondary.$el.height();
838
+
839
+ if ( primaryHeight > secondaryHeight ) {
840
+ toolbarHeight = primaryHeight;
841
+ } else {
842
+ toolbarHeight = secondaryHeight;
843
+ }
844
+
845
+ if ( ( 0 < toolbarHeight ) && ( toolbarHeight !== mlaModal.settings.oldHeight ) ) {
846
+ wrapper.$el.css( 'top', toolbarHeight + 10 + 'px' );
847
+ mlaModal.settings.oldHeight = toolbarHeight;
848
+ }
849
+ },
850
+
851
  createToolbar: function() {
852
  var filters, state = this.controller._state;
853
 
js/mla-media-modal-scripts.min.js CHANGED
@@ -1 +1 @@
1
- var wp,wpAjax,ajaxurl,jQuery,_,getUserSetting,setUserSetting,deleteUserSetting,mlaTaxonomy,mlaModal={strings:{},settings:{},initialHTML:{},uploading:false,cid:null,utility:{originalMediaAjax:null,mlaAttachmentsBrowser:null,parseTermsOptions:null,arrayCleanup:null,parseTaxonomyId:null,hookCompatTaxonomies:null,fillCompatTaxonomies:null,supportCompatTaxonomies:null},tagBox:null};(function(d){var c=wp.media.view.AttachmentsBrowser,b=wp.media.view.AttachmentCompat,a=wp.media.model.Selection;mlaModal.strings=typeof wp.media.view.l10n.mla_strings==="undefined"?{}:wp.media.view.l10n.mla_strings;delete wp.media.view.l10n.mla_strings;mlaModal.settings=typeof wp.media.view.settings.mla_settings==="undefined"?{screen:"unknown",enableMediaGrid:false,enableMediaModal:false}:wp.media.view.settings.mla_settings;delete wp.media.view.settings.mla_settings;if(!(mlaModal.settings.enableMediaGrid||mlaModal.settings.enableMediaModal)){return}if("grid"===mlaModal.settings.screen){if(false===mlaModal.settings.enableMediaGrid){return}d("body").addClass("mla-media-grid")}if("modal"===mlaModal.settings.screen){if(false===mlaModal.settings.enableMediaModal){return}d("body").addClass("mla-media-modal")}mlaModal.settings.pagenow=typeof pagenow==="undefined"?"unknown":pagenow;if(mlaModal.settings.pagenow==="toolset_page_views-editor"){return}mlaModal.utility.originalMediaAjax=wp.media.ajax;wp.media.ajax=function(k,g){var j=mlaModal.settings.state,i,f,h,e,l;if(_.isObject(k)){g=k}else{g=g||{};g.data=_.extend(g.data||{},{action:k})}if("query-attachments"==g.data.action){i=g.data.query;f=typeof i.s;if("object"==f){h=i.s}else{if("string"==f){h={mla_search_value:i.s}}else{h={mla_search_value:""}}}if("undefined"!=typeof i.post_mime_type){mlaModal.settings.query[j].filterMime=i.post_mime_type}else{mlaModal.settings.query[j].filterMime="all"}if("undefined"!=typeof h.mla_filter_month){mlaModal.settings.query[j].filterMonth=h.mla_filter_month}else{if("undefined"!=typeof i.year){mlaModal.settings.query[j].filterMonth=(100*i.year)+(1*i.monthnum)}else{}}if("undefined"!=typeof h.mla_filter_term){mlaModal.settings.query[j].filterTerm=h.mla_filter_term}if("undefined"!=typeof h.mla_search_value){mlaModal.settings.query[j].searchValue=h.mla_search_value}e={mla_filter_month:mlaModal.settings.query[j].filterMonth,mla_filter_term:mlaModal.settings.query[j].filterTerm,mla_terms_search:mlaModal.settings.query[j].termsSearch,mla_search_clicks:mlaModal.settings.query[j].searchClicks,mla_search_value:mlaModal.settings.query[j].searchValue,mla_search_fields:mlaModal.settings.query[j].searchFields,mla_search_connector:mlaModal.settings.query[j].searchConnector};mlaModal.settings.query[j].termsSearch="";d("#mla-terms-search-input").html("").val("");g.data.query.s=e;if(d(document.activeElement).hasClass("acf-button")){l=d(document.activeElement).parentsUntil("div.acf-fields");if(l.length){g.data.query._acfuploader=d(l[l.length-1]).attr("data-key")}}}return mlaModal.utility.originalMediaAjax.call(this,g)};if(mlaModal.settings.enableMimeTypes){wp.media.view.AttachmentFilters.Mla=wp.media.view.AttachmentFilters.extend({createFilters:function(){var f=this.controller._state,e={};_.each(mlaModal.settings.allMimeTypes||{},function(h,g){if(("grid"===mlaModal.settings.screen)||("trash"!==g)){e[g]={text:h,props:{type:g,uploadedTo:null,orderby:"date",order:"DESC"}}}});e.all={text:wp.media.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};if(wp.media.view.settings.post.id){e.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20}}this.filters=e;if("undefined"===typeof e[mlaModal.settings.query[f].filterMime]){mlaModal.settings.query[f].filterMime="all"}if(mlaModal.settings.query[f].filterMime!="all"){this.model.set(e[mlaModal.settings.query[f].filterMime].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMime,f=e.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m===(_.isUndefined(f[l])?null:f[l])});if(i){return g=k}});this.$el.val(g)},change:function(){var f=d(this.el).closest("div.media-toolbar"),e=this.filters[this.el.value];if(e){this.model.set(e.props,{silent:true});d("#mla-search-submit",f).trigger("click")}}});wp.media.view.AttachmentFilters.MlaUploaded=wp.media.view.AttachmentFilters.extend({createFilters:function(){var f=this.model.get("type"),e=wp.media.view.settings.mimeTypes,i,h=this.controller._state,g={};if(e&&f){i=e[f]}_.each(mlaModal.settings.uploadMimeTypes||{},function(k,j){if(("grid"===mlaModal.settings.screen)||("trash"!==j)){g[j]={text:k,props:{type:j,uploadedTo:null,orderby:"date",order:"DESC"}}}});g.all={text:i||wp.media.view.l10n.allMediaItems,props:{uploadedTo:null,orderby:"date",order:"DESC"},priority:10};g.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};g.unattached={text:wp.media.view.l10n.unattached,props:{uploadedTo:0,orderby:"menuOrder",order:"ASC"},priority:50};this.filters=g;if("undefined"===typeof g[mlaModal.settings.query[h].filterUploaded]){mlaModal.settings.query[h].filterUploaded="all"}if(mlaModal.settings.query[h].filterUploaded!="all"){this.model.set(g[mlaModal.settings.query[h].filterUploaded].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMime,f=e.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m===(_.isUndefined(f[l])?null:f[l])});if(i){return g=k}});this.$el.val(g)},change:function(){var f=d(this.el).closest("div.media-toolbar"),e=this.filters[this.el.value];if(e){this.model.set(e.props,{silent:true});d("#mla-search-submit",f).trigger("click")}}})}if(mlaModal.settings.enableMonthsDropdown){wp.media.view.AttachmentFilters.MlaMonths=wp.media.view.AttachmentFilters.extend({className:"attachment-filters",id:"media-attachment-date-filters",createFilters:function(){var f=this.controller._state,e={};_.each(mlaModal.settings.months||{},function(h,g){e[g]={text:h,props:{s:{mla_filter_month:g}}}});this.filters=e;if("undefined"===typeof e[mlaModal.settings.query[f].filterMonth]){mlaModal.settings.query[f].filterMonth=0}if(mlaModal.settings.query[f].filterMonth>0){this.model.set(e[mlaModal.settings.query[f].filterMonth].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMonth,f=e.toJSON();if(_.isUndefined(f.s)){f.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}if(_.isUndefined(f.s.mla_filter_month)){f.s.mla_filter_month=mlaModal.settings.query[h].filterMonth}else{mlaModal.settings.query[h].filterMonth=f.s.mla_filter_month}_.find(this.filters,function(j,k){var i=_.all(j.props,function(l){return l.mla_filter_month==mlaModal.settings.query[h].filterMonth});if(i){return g=k}});this.$el.val(g)},change:function(){var e=this.filters[this.el.value],f;if(e){f={s:{mla_filter_month:e.props.s.mla_filter_month}};this.model.set(f)}}})}if(mlaModal.settings.enableTermsDropdown){wp.media.view.AttachmentFilters.MlaTerms=wp.media.view.AttachmentFilters.extend({className:"attachment-filters",id:"media-attachment-term-filters",createFilters:function(){var h=this.controller._state,e,f,g={};_.each(mlaModal.settings.termsText||{},function(j,i){if(mlaModal.settings.termsCustom){f=mlaModal.settings.termsValue[i]}else{f=parseInt(mlaModal.settings.termsValue[i])}g[i]={text:j,props:{s:{mla_filter_term:f}}}});this.filters=g;e=_.indexOf(mlaModal.settings.termsValue,mlaModal.settings.query[h].filterTerm);if(e>0){this.model.set(g[e].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterTerm,f=e.toJSON();if(_.isUndefined(f.s)){f.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}if(_.isUndefined(f.s.mla_filter_term)){f.s.mla_filter_term=mlaModal.settings.query[h].filterTerm}else{mlaModal.settings.query[h].filterTerm=f.s.mla_filter_term}_.find(this.filters,function(j,k){var i=_.all(j.props,function(l){return l.mla_filter_term==mlaModal.settings.query[h].filterTerm});if(i){return g=k}});this.$el.val(g)},change:function(){var e=this.filters[this.el.value],f;if(e){f={s:{mla_filter_term:e.props.s.mla_filter_term}};this.model.set(f)}}})}if(mlaModal.settings.enableTermsSearch){wp.media.view.MlaTermsSearch=wp.media.View.extend({tagName:"span",className:"mla-terms-search",template:wp.media.template("mla-terms-search-button"),attributes:{type:"mla-terms-search-button"},events:{change:"termsSearchOpen",click:"termsSearchOpen"},render:function(){this.$el.html(this.template(mlaModal.strings));return this},termsSearchOpen:function(f){var e=d(this.el).closest("div.media-toolbar");if(("click"==f.type)&&("mla_terms_search"===f.target.name)){mlaTaxonomy.termsSearch.open();d("#mla-terms-search-form").off("submit");d("#mla-terms-search-form").submit(function(j){var g,i,h={phrases:"",taxonomies:[]};j.preventDefault();g=d("#mla-terms-search-form").serializeArray();for(i=0;i<g.length;i++){switch(g[i].name){case"mla_terms_search[phrases]":h.phrases=g[i].value;break;case"mla_terms_search[radio_phrases]":h.radio_phrases=g[i].value;break;case"mla_terms_search[radio_terms]":h.radio_terms=g[i].value;break;case"mla_terms_search[taxonomies][]":h.taxonomies[h.taxonomies.length]=g[i].value;break}}mlaModal.settings.query[mlaModal.settings.state].termsSearch=h;d("#mla-search-submit",e).trigger("click");return false});d("#mla-terms-search-input").on("keypress",function(g){if(13==g.which){g.preventDefault();d("#mla-terms-search-submit").trigger("click")}})}}})}if(mlaModal.settings.enableSearchBox){wp.media.view.MlaSearch=wp.media.View.extend({tagName:"div",className:"mla-search-box",template:wp.media.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{input:"search",change:"search",click:"search",search:"search",MlaSearch:"search"},initialize:function(){var e=this.controller._state;if("undefined"===typeof mlaModal.settings.query[e]){mlaModal.settings.query[e]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[e].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}},render:function(){var f=this.controller._state,e=_.extend(mlaModal.strings,mlaModal.settings.query[f]);searchValues={mla_filter_month:mlaModal.settings.query[f].filterMonth,mla_filter_term:mlaModal.settings.query[f].filterTerm,mla_terms_search:mlaModal.settings.query[f].termsSearch,mla_search_clicks:mlaModal.settings.query[f].searchClicks++,mla_search_value:mlaModal.settings.query[f].searchValue,mla_search_fields:mlaModal.settings.query[f].searchFields,mla_search_connector:mlaModal.settings.query[f].searchConnector};this.model.set({s:searchValues});this.$el.html(this.template(e));return this},search:function(g){var h=this.controller._state,e,f;if(("input"==g.type)&&("s[mla_search_value]"==g.target.name)){mlaModal.settings.query[h].searchValue=g.target.value;return}if(("click"==g.type)&&("mla_search_submit"!=g.target.name)){return}switch(g.target.name){case"s[mla_search_value]":mlaModal.settings.query[h].searchValue=g.target.value;break;case"mla_search_submit":e={mla_filter_month:mlaModal.settings.query[h].filterMonth,mla_filter_term:mlaModal.settings.query[h].filterTerm,mla_terms_search:mlaModal.settings.query[h].termsSearch,mla_search_clicks:mlaModal.settings.query[h].searchClicks++,mla_search_value:mlaModal.settings.query[h].searchValue,mla_search_fields:mlaModal.settings.query[h].searchFields,mla_search_connector:mlaModal.settings.query[h].searchConnector};this.model.set({s:e});break;case"s[mla_search_connector]":mlaModal.settings.query[h].searchConnector=g.target.value;break;case"s[mla_search_title]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("title");if(-1==f){mlaModal.settings.query[h].searchFields.push("title")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_name]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("name");if(-1==f){mlaModal.settings.query[h].searchFields.push("name")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_alt_text]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("alt-text");if(-1==f){mlaModal.settings.query[h].searchFields.push("alt-text")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_excerpt]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("excerpt");if(-1==f){mlaModal.settings.query[h].searchFields.push("excerpt")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_content]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("content");if(-1==f){mlaModal.settings.query[h].searchFields.push("content")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_file]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("file");if(-1==f){mlaModal.settings.query[h].searchFields.push("file")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_terms]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("terms");if(-1==f){mlaModal.settings.query[h].searchFields.push("terms")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break}}})}else{wp.media.view.MlaSearch=wp.media.View.extend({tagName:"span",className:"mla-simulate-search-button",template:wp.media.template("mla-simulate-search-button"),attributes:{type:"mla-simulate-search-button"},events:{click:"simulateSearch"},render:function(){this.$el.html(this.template(mlaModal.strings));return this},simulateSearch:function(){var f=this.controller._state,e={mla_filter_month:mlaModal.settings.query[f].filterMonth,mla_filter_term:mlaModal.settings.query[f].filterTerm,mla_terms_search:mlaModal.settings.query[f].termsSearch,mla_search_clicks:mlaModal.settings.query[f].searchClicks++,mla_search_value:mlaModal.settings.query[f].searchValue,mla_search_fields:mlaModal.settings.query[f].searchFields,mla_search_connector:mlaModal.settings.query[f].searchConnector};this.model.set({s:e})}})}if(mlaModal.settings.enableMimeTypes||mlaModal.settings.enableMonthsDropdown||mlaModal.settings.enableTermsDropdown||mlaModal.settings.enableTermsSearch||mlaModal.settings.enableSearchBox){wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){var e,f=this.controller._state;mlaModal.settings.state=f;mlaModal.settings.$el=this.controller.$el;if("undefined"===typeof mlaModal.settings.query[f]){mlaModal.settings.query[f]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[f].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}c.prototype.createToolbar.apply(this,arguments);mlaModal.utility.mlaAttachmentsBrowser=this;e=this.options.filters;d(".media-attachments-filter-heading",this.$el).css("display","none");if(("all"===e)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.Mla({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(("uploaded"===e)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.MlaUploaded({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search&&mlaModal.settings.enableMonthsDropdown){this.toolbar.unset("dateFilter",{silent:true});this.toolbar.set("dateFilter",new wp.media.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-75}).render())}if(this.options.search&&mlaModal.settings.enableTermsDropdown){this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-50}).render())}if(this.options.search&&mlaModal.settings.enableTermsSearch){this.toolbar.set("termsSearch",new wp.media.view.MlaTermsSearch({controller:this.controller,model:this.collection.props,priority:-50}).render())}if(this.options.search){if(mlaModal.settings.enableSearchBox){this.controller.on("content:activate",this.hideDefaultSearch);this.controller.on("edit:activate",this.hideDefaultSearch);this.controller.on("router:render",this.hideDefaultSearch);this.controller.on("uploader:ready",this.hideDefaultSearch);this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:-40}).render())}else{this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:70}).render())}}},hideDefaultSearch:function(){var e=d("#media-search-input",mlaModal.settings.$el),f=d(".media-search-input-label",mlaModal.settings.$el);if(0===e.length){e=d("div.media-toolbar-primary > input.search",mlaModal.settings.$el)}e.hide();f.hide()},updateFilters:function(e,f){var g={};if(this.options.search&&mlaModal.settings.enableTermsDropdown&&mlaModal.settings.termsTaxonomy==e){g=mlaModal.utility.parseTermsOptions(f);mlaModal.settings.termsClass=g.termsClass;mlaModal.settings.termsText=g.termsText;mlaModal.settings.termsValue=g.termsValue;this.toolbar.unset("terms",{silent:true});this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}}})}mlaModal.utility.parseTermsOptions=function(k){var j={termsClass:[mlaModal.settings.termsClass[0],mlaModal.settings.termsClass[1]],termsText:[mlaModal.settings.termsText[0],mlaModal.settings.termsText[1]],termsValue:[mlaModal.settings.termsValue[0],mlaModal.settings.termsValue[1]]},g=2,e,f,i=/\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,h=[];if("object"===typeof k){g=mlaModal.settings.termsValue.length;for(e=2;e<g;e++){h[e]={termsClass:mlaModal.settings.termsClass[e],termsText:mlaModal.settings.termsText[e],termsValue:mlaModal.settings.termsValue[e]};if("undefined"!==typeof k[mlaModal.settings.termsValue[e]]){delete k[mlaModal.settings.termsValue[e]]}}for(f in k){h[e++]={termsClass:"level-0",termsText:k[f],termsValue:f.toString()}}if(g===e){return{termsClass:mlaModal.settings.termsClass,termsText:mlaModal.settings.termsText,termsValue:mlaModal.settings.termsValue}}h.sort(function(m,l){if(m.termsText>l.termsText){return 1}else{if(m.termsText<l.termsText){return -1}else{return 0}}});e=2;for(f in h){j.termsClass[e]=h[f].termsClass;j.termsText[e]=h[f].termsText;j.termsValue[e++]=h[f].termsValue}return j}h=i.exec(k);while(null!==(h=i.exec(k))){j.termsClass[g]=h[3];j.termsValue[g]=("undefined"===typeof h[6])?h[9]:h[7];j.termsText[g++]=h[11].replace("&nbsp;",mlaModal.settings.termsIndent)}return j};mlaModal.utility.arrayCleanup=function(g){var f=[],e=("string"===typeof g);if(e){g=g.split(mlaModal.settings.comma)}jQuery.each(g,function(h,i){i=jQuery.trim(i);if(i&&jQuery.inArray(i,f)==-1){f.push(i)}});f.sort();if(e){f=f.join(mlaModal.settings.comma)}return f};mlaModal.utility.parseTaxonomyId=function(f){var e=f.split("-");e.shift();e.shift();return e.join("-")};mlaModal.tagBox={cleanTags:function(f){var e=mlaModal.settings.comma;if(","!==e){f=f.replace(new RegExp(e,"g"),",")}f=f.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==e){f=f.replace(/,/g,e)}return f},parseTags:function(h){var l=h.id,f=l.split("-check-num-")[1],i=d(h).closest(".tagsdiv"),k=i.find(".the-tags"),e=mlaModal.settings.comma,g=k.val().split(e),j=[];delete g[f];d.each(g,function(m,n){n=d.trim(n);if(n){j.push(n)}});k.val(this.cleanTags(j.join(e)));this.quickClicks(i);return false},quickClicks:function(g){var j=d(".the-tags",g),h=d(".tagchecklist",g),i=d(g).attr("id"),e,f;if(!j.length){return}f=j.prop("disabled");e=j.val().split(mlaModal.settings.comma);h.empty();d.each(e,function(m,n){var l,k;n=d.trim(n);if(!n){return}if(mlaModal.settings.generateTagUl){l=d("<li />").text(n)}else{l=d("<span />").text(n)}if(!f){if(mlaModal.settings.generateTagButtons){k=d('<button class="ntdelbutton" id="'+i+"-check-num-"+m+'" type="button"><span class="remove-tag-icon" aria-hidden="true"></span><span class="screen-reader-text">'+mlaModal.settings.removeTerm+": "+n+"</span></button>")}else{k=d('<a id="'+i+"-check-num-"+m+'" class="ntdelbutton">X</a>')}k.on("click",function(){mlaModal.tagBox.parseTags(this)});l.prepend("&nbsp;").prepend(k)}h.append(l)})},flushTags:function(k,h,g){var m,e,i,n=d(".the-tags",k),j=d("input.newtag",k),l=mlaModal.settings.comma;h=h||false;i=h?d(h).text():j.val();m=n.val();e=m?m+l+i:i;e=mlaModal.utility.arrayCleanup(this.cleanTags(e));n.val(e);this.quickClicks(k);if(!h){j.val("")}if("undefined"==typeof(g)){j.focus()}return false},getCloud:function(f,e){d.post(ajaxurl,{action:"get-tagcloud",tax:e},function(h,g){if(0===h||"success"!=g){h=wpAjax.broken}h=d('<p id="tagcloud-'+e+'" class="the-tagcloud">'+h+"</p>");d("a",h).on("click",function(){mlaModal.tagBox.flushTags(d(this).closest(".mla-taxonomy-field").children(".tagsdiv"),this);return false});d("#"+f).after(h)})},init:function(i,e,g){var h,f;h=d("#mla-taxonomy-"+e,g);f=d("div.ajaxtag",h);mlaModal.tagBox.quickClicks(h);d("input.tagadd",f).on("click",function(){mlaModal.tagBox.flushTags(d(this).closest(".tagsdiv"))});d("input.newtag",f).on("keyup",function(j){if(13==j.which){mlaModal.tagBox.flushTags(h);return false}}).on("keypress",function(j){if(13==j.which){j.preventDefault();return false}}).each(function(){d(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+e,{delay:500,resultsClass:"mla_ac_results",selectClass:"mla_ac_over",matchClass:"mla_ac_match",minchars:2,multiple:true,multipleSep:mlaModal.settings.comma+" "})});h.siblings(":first").on("click",function(){mlaModal.tagBox.getCloud(d("a",this).attr("id"),e);d("a",this).unbind().on("click",function(){d(this).siblings(".the-tagcloud").toggle();return false});return false});d(".compat-field-"+e+" td",g).on("mouseleave",function(){var m,k=this,j=mlaModal.utility.arrayCleanup(d(".server-tags",k).val()),l=mlaModal.utility.arrayCleanup(d(".the-tags",k).val());if(j===l){return}d(k).css("opacity","0.5");m={id:i};m[e]=l;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,m).done(function(o){var p,n,q;for(n in o){if("object"===typeof(o[n]["object-terms"])){if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(n,o[n]["object-terms"])}delete o[n]["object-terms"]}for(q in o[n]){d("#"+q,k).replaceWith(o[n][q])}p=d("#mla-taxonomy-"+n,k);mlaModal.tagBox.quickClicks(p)}d(k).css("opacity","1.0")})});h.on("change",function(j){j.stopPropagation();return false});d(".the-tags, .server-tags .newtag",h).on("change",function(j){j.stopPropagation();return false})}};if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({initialize:function(){b.prototype.initialize.apply(this,arguments);this.on("ready",function(){mlaModal.utility.hookCompatTaxonomies(this.model.get("id"),this.el)})}})}if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.model.Selection=wp.media.model.Selection.extend({initialize:function(){a.prototype.initialize.apply(this,arguments);this.on("selection:reset",function(){mlaModal.cid=null});this.on("selection:unsingle",function(){mlaModal.cid=null});this.on("selection:single",function(e){mlaModal.cid=e.cid});this.on("change:uploading",function(){mlaModal.uploading=true});this.on("change",function(e){var f=false,g;if(mlaModal.uploading&&mlaModal.cid===e.cid){mlaModal.uploading=false;f=true}else{if(false===e.attributes.uploading){g=_.clone(e.changed);delete g.title;delete g.caption;delete g.alt;delete g.description;if(!_.isEmpty(g)){f=true}}}if(true===f){mlaModal.utility.hookCompatTaxonomies(e.get("id"),mlaModal.settings.$el)}})}})}mlaModal.utility.hookCompatTaxonomies=function(h,f){var e,g=null;d(".mla-taxonomy-field .categorydiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(e)){d(".compat-field-"+e+" th",f).on("click",{id:h,currentTaxonomy:e,el:f},function(i){mlaModal.utility.fillCompatTaxonomies(i.data)});d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).show()}else{d(this).remove()}});if(null===g){g=e}}else{d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).remove()}})}});d(".mla-taxonomy-field .tagsdiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(e)){d(".compat-field-"+e+" th",f).on("click",{id:h,currentTaxonomy:e,el:f},function(i){mlaModal.utility.fillCompatTaxonomies(i.data)});d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).show()}else{d(this).remove()}});if(null===g){g=e}}else{d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).remove()}})}});if(mlaModal.settings.enableTermsAutofill&&null!==g){d(".compat-field-"+g+" th",f).trigger("click")}};mlaModal.utility.fillCompatTaxonomies=function(i){var f=i.el,h=[],e,g;d(".mla-taxonomy-field .categorydiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));h[h.length]=e;g=".compat-field-"+e;if("undefined"===typeof(mlaModal.initialHTML[e])){mlaModal.initialHTML[e]=d(g,f).html()}else{d(g,f).html(mlaModal.initialHTML[e])}d(g+" .categorydiv",f).html(mlaModal.strings.loadingText)});d(".mla-taxonomy-field .tagsdiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));h[h.length]=e;g=".compat-field-"+e;if("undefined"===typeof(mlaModal.initialHTML[e])){mlaModal.initialHTML[e]=d(g,f).html()}else{d(g,f).html(mlaModal.initialHTML[e])}d(g+" .tagsdiv",f).html(mlaModal.strings.loadingText)});if(h.length){wp.media.post(mlaModal.settings.ajaxFillCompatAction,{id:i.id,query:h}).done(function(k){var j,l;for(j in k){l=".compat-field-"+j;d(l,f).html(k[j])}mlaModal.utility.supportCompatTaxonomies(i);d(".compat-field-"+i.currentTaxonomy+" td",f).show()})}};mlaModal.utility.supportCompatTaxonomies=function(g){var f=g.id,e=g.el;if(mlaModal.settings.enableDetailsCategory){d(".mla-taxonomy-field .categorydiv",e).each(function(){var j=d(this),h,k,i,n,l,p,o,m;i=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));n=i+"_tab";l="#mla-"+i;p="#mla-new-"+i;o="#mla-search-"+i;m="#mla-attachments-"+f+"-"+i;if(i=="category"){n="cats"}j.find(".category-tabs").show();d(".compat-field-"+i+" th",e).on("click",function(){d(this).siblings("td").slideToggle()});j.on("mouseleave",function(){var t,q,s=[],r=j.find(l+"-checklist input:checked");r.each(function(){s[s.length]=d(this).val()});s.sort(function(v,u){return v-u});s=s.join(",");q=j.siblings(m).val();if(q===s){return}j.siblings(m).val(s);j.prop("disabled",true);t={id:f};t[i]=s;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,t).done(function(v){var u,w;for(u in v){for(w in v[u]){j.find("#"+w).html(v[u][w])}}j.find(o).val("");j.find(l+"-searcher").addClass("mla-hidden-children");j.prop("disabled",false)})});j.on('change input[type="checkbox"]',function(q){q.stopPropagation();return false});j.find(l+"-tabs a").on("click",function(){var q=d(this).attr("href");d(this).parent().addClass("tabs").siblings("li").removeClass("tabs");j.find(l+"-tabs").siblings(".tabs-panel").hide();j.find(q).show();d(this).focus();if("#mla-"+i+"-all"==q){deleteUserSetting(n)}else{setUserSetting(n,"pop")}return false});if(getUserSetting(n)){j.find(l+'-tabs a[href="#mla-'+i+'-pop"]').trigger("click")}j.find(l+"-add-toggle").on("click",function(){j.find(l+"-searcher").addClass("mla-hidden-children");j.find(l+"-adder").toggleClass("mla-hidden-children");j.find(l+'-tabs a[href="#mla-'+i+'-all"]').trigger("click");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();if(false===j.find(l+"-adder").hasClass("mla-hidden-children")){j.find(p).val("").removeClass("form-input-tip");j.find(p).focus()}return false});j.find(p).on("keypress",function(q){if(13===q.keyCode){q.preventDefault();j.find(l+"-add-submit").trigger("click")}});j.find(l+"-add-submit").on("click",function(){j.find(p).focus()});h=function(q){if(!j.find(p).val()){return false}q.data+="&"+j.find(l+"-checklist :checked").serialize();j.prop("disabled",true);return q};k=function(v,u){var t,q=j.find("#new"+i+"_parent");j.prop("disabled",false);if("undefined"!=u.parsed.responses[0]&&(t=u.parsed.responses[0].supplemental.newcat_parent)){q.before(t);q.remove();if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(i,t)}}};j.find(l+"-checklist").wpList({alt:"",response:"mla-"+i+"-ajax-response",addBefore:h,addAfter:k});j.find(l+"-checklist, "+l+"-checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var q=d(this),s=q.is(":checked"),r=q.val();if(r&&q.parents("#mla-taxonomy-"+i).length){d("#in-"+i+"-"+r+", #in-popular-"+i+"-"+r,"#mla-taxonomy-"+i).prop("checked",s)}});d.extend(d.expr.pseudos||d.expr[":"],{matchTerms:function(s,r,q,t){return(s.textContent||s.innerText||"").toLowerCase().indexOf((q[3]||"").toLowerCase())>=0}});j.find(o).on("keypress",function(q){if(13===q.keyCode){q.preventDefault();j.find(o).val("");j.find(l+"-searcher").addClass("mla-hidden-children");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();return}});j.find(o).on("keyup",function(s){var u,t,v,r,q;if(13===s.keyCode){s.preventDefault();j.find(l+"-search-toggle").focus();return}u=j.find(o).val();t=j.find(l+"-checklist li");v=j.find(l+"-checklist-pop li");if(0<u.length){t.hide();v.hide()}else{t.show();v.show()}r=j.find(l+"-checklist label:matchTerms('"+u+"')");r.closest("li").find("li").andSelf().show();r.parents(l+"-checklist li").show();q=j.find(l+"-checklist-pop label:matchTerms('"+u+"')");q.closest("li").find("li").andSelf().show();q.parents(l+"-checklist li").show()});j.find(l+"-search-toggle").on("click",function(){j.find(l+"-adder ").addClass("mla-hidden-children");j.find(l+"-searcher").toggleClass("mla-hidden-children");j.find(l+'-tabs a[href="#mla-'+i+'-all"]').trigger("click");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();if(false===j.find(l+"-searcher").hasClass("mla-hidden-children")){j.find(o).val("").removeClass("form-input-tip");j.find(o).focus()}return false})})}if(mlaModal.settings.enableDetailsTag){d(".mla-taxonomy-field .tagsdiv",e).each(function(){var h=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));d(".compat-field-"+h+" th",e).on("click",function(){d(this).siblings("td").slideToggle()});mlaModal.tagBox.init(f,h,e)})}}}(jQuery));
1
+ var wp,wpAjax,ajaxurl,jQuery,_,getUserSetting,setUserSetting,deleteUserSetting,mlaTaxonomy,mlaModal={strings:{},settings:{},initialHTML:{},uploading:false,cid:null,utility:{originalMediaAjax:null,mlaAttachmentsBrowser:null,parseTermsOptions:null,arrayCleanup:null,parseTaxonomyId:null,hookCompatTaxonomies:null,fillCompatTaxonomies:null,supportCompatTaxonomies:null},tagBox:null};(function(d){var c=wp.media.view.AttachmentsBrowser,b=wp.media.view.AttachmentCompat,a=wp.media.model.Selection;mlaModal.strings=typeof wp.media.view.l10n.mla_strings==="undefined"?{}:wp.media.view.l10n.mla_strings;delete wp.media.view.l10n.mla_strings;mlaModal.settings=typeof wp.media.view.settings.mla_settings==="undefined"?{screen:"unknown",enableMediaGrid:false,enableMediaModal:false}:wp.media.view.settings.mla_settings;delete wp.media.view.settings.mla_settings;if(!(mlaModal.settings.enableMediaGrid||mlaModal.settings.enableMediaModal)){return}if("grid"===mlaModal.settings.screen){if(false===mlaModal.settings.enableMediaGrid){return}d("body").addClass("mla-media-grid")}if("modal"===mlaModal.settings.screen){if(false===mlaModal.settings.enableMediaModal){return}d("body").addClass("mla-media-modal")}mlaModal.settings.pagenow=typeof pagenow==="undefined"?"unknown":pagenow;if(mlaModal.settings.pagenow==="toolset_page_views-editor"){return}mlaModal.utility.originalMediaAjax=wp.media.ajax;wp.media.ajax=function(k,g){var j=mlaModal.settings.state,i,f,h,e,l;if(_.isObject(k)){g=k}else{g=g||{};g.data=_.extend(g.data||{},{action:k})}if("query-attachments"==g.data.action){i=g.data.query;f=typeof i.s;if("object"==f){h=i.s}else{if("string"==f){h={mla_search_value:i.s}}else{h={mla_search_value:""}}}if("undefined"!=typeof i.post_mime_type){mlaModal.settings.query[j].filterMime=i.post_mime_type}else{mlaModal.settings.query[j].filterMime="all"}if("undefined"!=typeof h.mla_filter_month){mlaModal.settings.query[j].filterMonth=h.mla_filter_month}else{if("undefined"!=typeof i.year){mlaModal.settings.query[j].filterMonth=(100*i.year)+(1*i.monthnum)}else{}}if("undefined"!=typeof h.mla_filter_term){mlaModal.settings.query[j].filterTerm=h.mla_filter_term}if("undefined"!=typeof h.mla_search_value){mlaModal.settings.query[j].searchValue=h.mla_search_value}e={mla_filter_month:mlaModal.settings.query[j].filterMonth,mla_filter_term:mlaModal.settings.query[j].filterTerm,mla_terms_search:mlaModal.settings.query[j].termsSearch,mla_search_clicks:mlaModal.settings.query[j].searchClicks,mla_search_value:mlaModal.settings.query[j].searchValue,mla_search_fields:mlaModal.settings.query[j].searchFields,mla_search_connector:mlaModal.settings.query[j].searchConnector};mlaModal.settings.query[j].termsSearch="";d("#mla-terms-search-input").html("").val("");g.data.query.s=e;if(d(document.activeElement).hasClass("acf-button")){l=d(document.activeElement).parentsUntil("div.acf-fields");if(l.length){g.data.query._acfuploader=d(l[l.length-1]).attr("data-key")}}}return mlaModal.utility.originalMediaAjax.call(this,g)};if(mlaModal.settings.enableMimeTypes){wp.media.view.AttachmentFilters.Mla=wp.media.view.AttachmentFilters.extend({createFilters:function(){var f=this.controller._state,e={};_.each(mlaModal.settings.allMimeTypes||{},function(h,g){if(("grid"===mlaModal.settings.screen)||("trash"!==g)){e[g]={text:h,props:{type:g,uploadedTo:null,orderby:"date",order:"DESC"}}}});e.all={text:wp.media.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};if(wp.media.view.settings.post.id){e.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20}}this.filters=e;if("undefined"===typeof e[mlaModal.settings.query[f].filterMime]){mlaModal.settings.query[f].filterMime="all"}if(mlaModal.settings.query[f].filterMime!="all"){this.model.set(e[mlaModal.settings.query[f].filterMime].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMime,f=e.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m===(_.isUndefined(f[l])?null:f[l])});if(i){return g=k}});this.$el.val(g)},change:function(){var f=d(this.el).closest("div.media-toolbar"),e=this.filters[this.el.value];if(e){this.model.set(e.props,{silent:true});d("#mla-search-submit",f).trigger("click")}}});wp.media.view.AttachmentFilters.MlaUploaded=wp.media.view.AttachmentFilters.extend({createFilters:function(){var f=this.model.get("type"),e=wp.media.view.settings.mimeTypes,i,h=this.controller._state,g={};if(e&&f){i=e[f]}_.each(mlaModal.settings.uploadMimeTypes||{},function(k,j){if(("grid"===mlaModal.settings.screen)||("trash"!==j)){g[j]={text:k,props:{type:j,uploadedTo:null,orderby:"date",order:"DESC"}}}});g.all={text:i||wp.media.view.l10n.allMediaItems,props:{uploadedTo:null,orderby:"date",order:"DESC"},priority:10};g.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};g.unattached={text:wp.media.view.l10n.unattached,props:{uploadedTo:0,orderby:"menuOrder",order:"ASC"},priority:50};this.filters=g;if("undefined"===typeof g[mlaModal.settings.query[h].filterUploaded]){mlaModal.settings.query[h].filterUploaded="all"}if(mlaModal.settings.query[h].filterUploaded!="all"){this.model.set(g[mlaModal.settings.query[h].filterUploaded].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMime,f=e.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m===(_.isUndefined(f[l])?null:f[l])});if(i){return g=k}});this.$el.val(g)},change:function(){var f=d(this.el).closest("div.media-toolbar"),e=this.filters[this.el.value];if(e){this.model.set(e.props,{silent:true});d("#mla-search-submit",f).trigger("click")}}})}if(mlaModal.settings.enableMonthsDropdown){wp.media.view.AttachmentFilters.MlaMonths=wp.media.view.AttachmentFilters.extend({className:"attachment-filters",id:"media-attachment-date-filters",createFilters:function(){var f=this.controller._state,e={};_.each(mlaModal.settings.months||{},function(h,g){e[g]={text:h,props:{s:{mla_filter_month:g}}}});this.filters=e;if("undefined"===typeof e[mlaModal.settings.query[f].filterMonth]){mlaModal.settings.query[f].filterMonth=0}if(mlaModal.settings.query[f].filterMonth>0){this.model.set(e[mlaModal.settings.query[f].filterMonth].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMonth,f=e.toJSON();if(_.isUndefined(f.s)){f.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}if(_.isUndefined(f.s.mla_filter_month)){f.s.mla_filter_month=mlaModal.settings.query[h].filterMonth}else{mlaModal.settings.query[h].filterMonth=f.s.mla_filter_month}_.find(this.filters,function(j,k){var i=_.all(j.props,function(l){return l.mla_filter_month==mlaModal.settings.query[h].filterMonth});if(i){return g=k}});this.$el.val(g)},change:function(){var e=this.filters[this.el.value],f;if(e){f={s:{mla_filter_month:e.props.s.mla_filter_month}};this.model.set(f)}}})}if(mlaModal.settings.enableTermsDropdown){wp.media.view.AttachmentFilters.MlaTerms=wp.media.view.AttachmentFilters.extend({className:"attachment-filters",id:"media-attachment-term-filters",createFilters:function(){var h=this.controller._state,e,f,g={};_.each(mlaModal.settings.termsText||{},function(j,i){if(mlaModal.settings.termsCustom){f=mlaModal.settings.termsValue[i]}else{f=parseInt(mlaModal.settings.termsValue[i])}g[i]={text:j,props:{s:{mla_filter_term:f}}}});this.filters=g;e=_.indexOf(mlaModal.settings.termsValue,mlaModal.settings.query[h].filterTerm);if(e>0){this.model.set(g[e].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterTerm,f=e.toJSON();if(_.isUndefined(f.s)){f.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}if(_.isUndefined(f.s.mla_filter_term)){f.s.mla_filter_term=mlaModal.settings.query[h].filterTerm}else{mlaModal.settings.query[h].filterTerm=f.s.mla_filter_term}_.find(this.filters,function(j,k){var i=_.all(j.props,function(l){return l.mla_filter_term==mlaModal.settings.query[h].filterTerm});if(i){return g=k}});this.$el.val(g)},change:function(){var e=this.filters[this.el.value],f;if(e){f={s:{mla_filter_term:e.props.s.mla_filter_term}};this.model.set(f)}}})}if(mlaModal.settings.enableTermsSearch){wp.media.view.MlaTermsSearch=wp.media.View.extend({tagName:"span",className:"mla-terms-search",template:wp.media.template("mla-terms-search-button"),attributes:{type:"mla-terms-search-button"},events:{change:"termsSearchOpen",click:"termsSearchOpen"},render:function(){this.$el.html(this.template(mlaModal.strings));return this},termsSearchOpen:function(f){var e=d(this.el).closest("div.media-toolbar");if(("click"==f.type)&&("mla_terms_search"===f.target.name)){mlaTaxonomy.termsSearch.open();d("#mla-terms-search-form").off("submit");d("#mla-terms-search-form").submit(function(j){var g,i,h={phrases:"",taxonomies:[]};j.preventDefault();g=d("#mla-terms-search-form").serializeArray();for(i=0;i<g.length;i++){switch(g[i].name){case"mla_terms_search[phrases]":h.phrases=g[i].value;break;case"mla_terms_search[radio_phrases]":h.radio_phrases=g[i].value;break;case"mla_terms_search[radio_terms]":h.radio_terms=g[i].value;break;case"mla_terms_search[taxonomies][]":h.taxonomies[h.taxonomies.length]=g[i].value;break}}mlaModal.settings.query[mlaModal.settings.state].termsSearch=h;d("#mla-search-submit",e).trigger("click");return false});d("#mla-terms-search-input").on("keypress",function(g){if(13==g.which){g.preventDefault();d("#mla-terms-search-submit").trigger("click")}})}}})}if(mlaModal.settings.enableSearchBox){wp.media.view.MlaSearch=wp.media.View.extend({tagName:"div",className:"mla-search-box",template:wp.media.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{input:"search",change:"search",click:"search",search:"search",MlaSearch:"search"},initialize:function(){var e=this.controller._state;if("undefined"===typeof mlaModal.settings.query[e]){mlaModal.settings.query[e]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[e].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}},render:function(){var f=this.controller._state,e=_.extend(mlaModal.strings,mlaModal.settings.query[f]);searchValues={mla_filter_month:mlaModal.settings.query[f].filterMonth,mla_filter_term:mlaModal.settings.query[f].filterTerm,mla_terms_search:mlaModal.settings.query[f].termsSearch,mla_search_clicks:mlaModal.settings.query[f].searchClicks++,mla_search_value:mlaModal.settings.query[f].searchValue,mla_search_fields:mlaModal.settings.query[f].searchFields,mla_search_connector:mlaModal.settings.query[f].searchConnector};this.model.set({s:searchValues});this.$el.html(this.template(e));return this},search:function(g){var h=this.controller._state,e,f;if(("input"==g.type)&&("s[mla_search_value]"==g.target.name)){mlaModal.settings.query[h].searchValue=g.target.value;return}if(("click"==g.type)&&("mla_search_submit"!=g.target.name)){return}switch(g.target.name){case"s[mla_search_value]":mlaModal.settings.query[h].searchValue=g.target.value;break;case"mla_search_submit":e={mla_filter_month:mlaModal.settings.query[h].filterMonth,mla_filter_term:mlaModal.settings.query[h].filterTerm,mla_terms_search:mlaModal.settings.query[h].termsSearch,mla_search_clicks:mlaModal.settings.query[h].searchClicks++,mla_search_value:mlaModal.settings.query[h].searchValue,mla_search_fields:mlaModal.settings.query[h].searchFields,mla_search_connector:mlaModal.settings.query[h].searchConnector};this.model.set({s:e});break;case"s[mla_search_connector]":mlaModal.settings.query[h].searchConnector=g.target.value;break;case"s[mla_search_title]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("title");if(-1==f){mlaModal.settings.query[h].searchFields.push("title")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_name]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("name");if(-1==f){mlaModal.settings.query[h].searchFields.push("name")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_alt_text]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("alt-text");if(-1==f){mlaModal.settings.query[h].searchFields.push("alt-text")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_excerpt]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("excerpt");if(-1==f){mlaModal.settings.query[h].searchFields.push("excerpt")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_content]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("content");if(-1==f){mlaModal.settings.query[h].searchFields.push("content")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_file]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("file");if(-1==f){mlaModal.settings.query[h].searchFields.push("file")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_terms]":if("change"!=g.type){break}f=mlaModal.settings.query[h].searchFields.indexOf("terms");if(-1==f){mlaModal.settings.query[h].searchFields.push("terms")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break}}})}else{wp.media.view.MlaSearch=wp.media.View.extend({tagName:"span",className:"mla-simulate-search-button",template:wp.media.template("mla-simulate-search-button"),attributes:{type:"mla-simulate-search-button"},events:{click:"simulateSearch"},render:function(){this.$el.html(this.template(mlaModal.strings));return this},simulateSearch:function(){var f=this.controller._state,e={mla_filter_month:mlaModal.settings.query[f].filterMonth,mla_filter_term:mlaModal.settings.query[f].filterTerm,mla_terms_search:mlaModal.settings.query[f].termsSearch,mla_search_clicks:mlaModal.settings.query[f].searchClicks++,mla_search_value:mlaModal.settings.query[f].searchValue,mla_search_fields:mlaModal.settings.query[f].searchFields,mla_search_connector:mlaModal.settings.query[f].searchConnector};this.model.set({s:e})}})}if(mlaModal.settings.enableMimeTypes||mlaModal.settings.enableMonthsDropdown||mlaModal.settings.enableTermsDropdown||mlaModal.settings.enableTermsSearch||mlaModal.settings.enableSearchBox){wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({initialize:function(){c.prototype.initialize.apply(this,arguments);if(("object"===typeof this.attachmentsWrapper)&&("undefined"===typeof window.eml)){mlaModal.settings.oldHeight=0;this.on("ready",this.adjustBrowser,this);this.$window=d(window);this.$window.on("resize",_.debounce(_.bind(this.adjustBrowser,this),15))}},adjustBrowser:function(){var i=this.attachmentsWrapper,f=this.toolbar,h,e,g;e=f.primary.$el.height();g=f.secondary.$el.height();if(e>g){h=e}else{h=g}if((0<h)&&(h!==mlaModal.settings.oldHeight)){i.$el.css("top",h+10+"px");mlaModal.settings.oldHeight=h}},createToolbar:function(){var e,f=this.controller._state;mlaModal.settings.state=f;mlaModal.settings.$el=this.controller.$el;if("undefined"===typeof mlaModal.settings.query[f]){mlaModal.settings.query[f]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[f].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}c.prototype.createToolbar.apply(this,arguments);mlaModal.utility.mlaAttachmentsBrowser=this;e=this.options.filters;d(".media-attachments-filter-heading",this.$el).css("display","none");if(("all"===e)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.Mla({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(("uploaded"===e)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.MlaUploaded({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search&&mlaModal.settings.enableMonthsDropdown){this.toolbar.unset("dateFilter",{silent:true});this.toolbar.set("dateFilter",new wp.media.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-75}).render())}if(this.options.search&&mlaModal.settings.enableTermsDropdown){this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-50}).render())}if(this.options.search&&mlaModal.settings.enableTermsSearch){this.toolbar.set("termsSearch",new wp.media.view.MlaTermsSearch({controller:this.controller,model:this.collection.props,priority:-50}).render())}if(this.options.search){if(mlaModal.settings.enableSearchBox){this.controller.on("content:activate",this.hideDefaultSearch);this.controller.on("edit:activate",this.hideDefaultSearch);this.controller.on("router:render",this.hideDefaultSearch);this.controller.on("uploader:ready",this.hideDefaultSearch);this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:-40}).render())}else{this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:70}).render())}}},hideDefaultSearch:function(){var e=d("#media-search-input",mlaModal.settings.$el),f=d(".media-search-input-label",mlaModal.settings.$el);if(0===e.length){e=d("div.media-toolbar-primary > input.search",mlaModal.settings.$el)}e.hide();f.hide()},updateFilters:function(e,f){var g={};if(this.options.search&&mlaModal.settings.enableTermsDropdown&&mlaModal.settings.termsTaxonomy==e){g=mlaModal.utility.parseTermsOptions(f);mlaModal.settings.termsClass=g.termsClass;mlaModal.settings.termsText=g.termsText;mlaModal.settings.termsValue=g.termsValue;this.toolbar.unset("terms",{silent:true});this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}}})}mlaModal.utility.parseTermsOptions=function(k){var j={termsClass:[mlaModal.settings.termsClass[0],mlaModal.settings.termsClass[1]],termsText:[mlaModal.settings.termsText[0],mlaModal.settings.termsText[1]],termsValue:[mlaModal.settings.termsValue[0],mlaModal.settings.termsValue[1]]},g=2,e,f,i=/\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,h=[];if("object"===typeof k){g=mlaModal.settings.termsValue.length;for(e=2;e<g;e++){h[e]={termsClass:mlaModal.settings.termsClass[e],termsText:mlaModal.settings.termsText[e],termsValue:mlaModal.settings.termsValue[e]};if("undefined"!==typeof k[mlaModal.settings.termsValue[e]]){delete k[mlaModal.settings.termsValue[e]]}}for(f in k){h[e++]={termsClass:"level-0",termsText:k[f],termsValue:f.toString()}}if(g===e){return{termsClass:mlaModal.settings.termsClass,termsText:mlaModal.settings.termsText,termsValue:mlaModal.settings.termsValue}}h.sort(function(m,l){if(m.termsText>l.termsText){return 1}else{if(m.termsText<l.termsText){return -1}else{return 0}}});e=2;for(f in h){j.termsClass[e]=h[f].termsClass;j.termsText[e]=h[f].termsText;j.termsValue[e++]=h[f].termsValue}return j}h=i.exec(k);while(null!==(h=i.exec(k))){j.termsClass[g]=h[3];j.termsValue[g]=("undefined"===typeof h[6])?h[9]:h[7];j.termsText[g++]=h[11].replace("&nbsp;",mlaModal.settings.termsIndent)}return j};mlaModal.utility.arrayCleanup=function(g){var f=[],e=("string"===typeof g);if(e){g=g.split(mlaModal.settings.comma)}jQuery.each(g,function(h,i){i=jQuery.trim(i);if(i&&jQuery.inArray(i,f)==-1){f.push(i)}});f.sort();if(e){f=f.join(mlaModal.settings.comma)}return f};mlaModal.utility.parseTaxonomyId=function(f){var e=f.split("-");e.shift();e.shift();return e.join("-")};mlaModal.tagBox={cleanTags:function(f){var e=mlaModal.settings.comma;if(","!==e){f=f.replace(new RegExp(e,"g"),",")}f=f.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==e){f=f.replace(/,/g,e)}return f},parseTags:function(h){var l=h.id,f=l.split("-check-num-")[1],i=d(h).closest(".tagsdiv"),k=i.find(".the-tags"),e=mlaModal.settings.comma,g=k.val().split(e),j=[];delete g[f];d.each(g,function(m,n){n=d.trim(n);if(n){j.push(n)}});k.val(this.cleanTags(j.join(e)));this.quickClicks(i);return false},quickClicks:function(g){var j=d(".the-tags",g),h=d(".tagchecklist",g),i=d(g).attr("id"),e,f;if(!j.length){return}f=j.prop("disabled");e=j.val().split(mlaModal.settings.comma);h.empty();d.each(e,function(m,n){var l,k;n=d.trim(n);if(!n){return}if(mlaModal.settings.generateTagUl){l=d("<li />").text(n)}else{l=d("<span />").text(n)}if(!f){if(mlaModal.settings.generateTagButtons){k=d('<button class="ntdelbutton" id="'+i+"-check-num-"+m+'" type="button"><span class="remove-tag-icon" aria-hidden="true"></span><span class="screen-reader-text">'+mlaModal.settings.removeTerm+": "+n+"</span></button>")}else{k=d('<a id="'+i+"-check-num-"+m+'" class="ntdelbutton">X</a>')}k.on("click",function(){mlaModal.tagBox.parseTags(this)});l.prepend("&nbsp;").prepend(k)}h.append(l)})},flushTags:function(k,h,g){var m,e,i,n=d(".the-tags",k),j=d("input.newtag",k),l=mlaModal.settings.comma;h=h||false;i=h?d(h).text():j.val();m=n.val();e=m?m+l+i:i;e=mlaModal.utility.arrayCleanup(this.cleanTags(e));n.val(e);this.quickClicks(k);if(!h){j.val("")}if("undefined"==typeof(g)){j.focus()}return false},getCloud:function(f,e){d.post(ajaxurl,{action:"get-tagcloud",tax:e},function(h,g){if(0===h||"success"!=g){h=wpAjax.broken}h=d('<p id="tagcloud-'+e+'" class="the-tagcloud">'+h+"</p>");d("a",h).on("click",function(){mlaModal.tagBox.flushTags(d(this).closest(".mla-taxonomy-field").children(".tagsdiv"),this);return false});d("#"+f).after(h)})},init:function(i,e,g){var h,f;h=d("#mla-taxonomy-"+e,g);f=d("div.ajaxtag",h);mlaModal.tagBox.quickClicks(h);d("input.tagadd",f).on("click",function(){mlaModal.tagBox.flushTags(d(this).closest(".tagsdiv"))});d("input.newtag",f).on("keyup",function(j){if(13==j.which){mlaModal.tagBox.flushTags(h);return false}}).on("keypress",function(j){if(13==j.which){j.preventDefault();return false}}).each(function(){d(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+e,{delay:500,resultsClass:"mla_ac_results",selectClass:"mla_ac_over",matchClass:"mla_ac_match",minchars:2,multiple:true,multipleSep:mlaModal.settings.comma+" "})});h.siblings(":first").on("click",function(){mlaModal.tagBox.getCloud(d("a",this).attr("id"),e);d("a",this).unbind().on("click",function(){d(this).siblings(".the-tagcloud").toggle();return false});return false});d(".compat-field-"+e+" td",g).on("mouseleave",function(){var m,k=this,j=mlaModal.utility.arrayCleanup(d(".server-tags",k).val()),l=mlaModal.utility.arrayCleanup(d(".the-tags",k).val());if(j===l){return}d(k).css("opacity","0.5");m={id:i};m[e]=l;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,m).done(function(o){var p,n,q;for(n in o){if("object"===typeof(o[n]["object-terms"])){if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(n,o[n]["object-terms"])}delete o[n]["object-terms"]}for(q in o[n]){d("#"+q,k).replaceWith(o[n][q])}p=d("#mla-taxonomy-"+n,k);mlaModal.tagBox.quickClicks(p)}d(k).css("opacity","1.0")})});h.on("change",function(j){j.stopPropagation();return false});d(".the-tags, .server-tags .newtag",h).on("change",function(j){j.stopPropagation();return false})}};if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({initialize:function(){b.prototype.initialize.apply(this,arguments);this.on("ready",function(){mlaModal.utility.hookCompatTaxonomies(this.model.get("id"),this.el)})}})}if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.model.Selection=wp.media.model.Selection.extend({initialize:function(){a.prototype.initialize.apply(this,arguments);this.on("selection:reset",function(){mlaModal.cid=null});this.on("selection:unsingle",function(){mlaModal.cid=null});this.on("selection:single",function(e){mlaModal.cid=e.cid});this.on("change:uploading",function(){mlaModal.uploading=true});this.on("change",function(e){var f=false,g;if(mlaModal.uploading&&mlaModal.cid===e.cid){mlaModal.uploading=false;f=true}else{if(false===e.attributes.uploading){g=_.clone(e.changed);delete g.title;delete g.caption;delete g.alt;delete g.description;if(!_.isEmpty(g)){f=true}}}if(true===f){mlaModal.utility.hookCompatTaxonomies(e.get("id"),mlaModal.settings.$el)}})}})}mlaModal.utility.hookCompatTaxonomies=function(h,f){var e,g=null;d(".mla-taxonomy-field .categorydiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(e)){d(".compat-field-"+e+" th",f).on("click",{id:h,currentTaxonomy:e,el:f},function(i){mlaModal.utility.fillCompatTaxonomies(i.data)});d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).show()}else{d(this).remove()}});if(null===g){g=e}}else{d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).remove()}})}});d(".mla-taxonomy-field .tagsdiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(e)){d(".compat-field-"+e+" th",f).on("click",{id:h,currentTaxonomy:e,el:f},function(i){mlaModal.utility.fillCompatTaxonomies(i.data)});d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).show()}else{d(this).remove()}});if(null===g){g=e}}else{d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).remove()}})}});if(mlaModal.settings.enableTermsAutofill&&null!==g){d(".compat-field-"+g+" th",f).trigger("click")}};mlaModal.utility.fillCompatTaxonomies=function(i){var f=i.el,h=[],e,g;d(".mla-taxonomy-field .categorydiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));h[h.length]=e;g=".compat-field-"+e;if("undefined"===typeof(mlaModal.initialHTML[e])){mlaModal.initialHTML[e]=d(g,f).html()}else{d(g,f).html(mlaModal.initialHTML[e])}d(g+" .categorydiv",f).html(mlaModal.strings.loadingText)});d(".mla-taxonomy-field .tagsdiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));h[h.length]=e;g=".compat-field-"+e;if("undefined"===typeof(mlaModal.initialHTML[e])){mlaModal.initialHTML[e]=d(g,f).html()}else{d(g,f).html(mlaModal.initialHTML[e])}d(g+" .tagsdiv",f).html(mlaModal.strings.loadingText)});if(h.length){wp.media.post(mlaModal.settings.ajaxFillCompatAction,{id:i.id,query:h}).done(function(k){var j,l;for(j in k){l=".compat-field-"+j;d(l,f).html(k[j])}mlaModal.utility.supportCompatTaxonomies(i);d(".compat-field-"+i.currentTaxonomy+" td",f).show()})}};mlaModal.utility.supportCompatTaxonomies=function(g){var f=g.id,e=g.el;if(mlaModal.settings.enableDetailsCategory){d(".mla-taxonomy-field .categorydiv",e).each(function(){var j=d(this),h,k,i,n,l,p,o,m;i=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));n=i+"_tab";l="#mla-"+i;p="#mla-new-"+i;o="#mla-search-"+i;m="#mla-attachments-"+f+"-"+i;if(i=="category"){n="cats"}j.find(".category-tabs").show();d(".compat-field-"+i+" th",e).on("click",function(){d(this).siblings("td").slideToggle()});j.on("mouseleave",function(){var t,q,s=[],r=j.find(l+"-checklist input:checked");r.each(function(){s[s.length]=d(this).val()});s.sort(function(v,u){return v-u});s=s.join(",");q=j.siblings(m).val();if(q===s){return}j.siblings(m).val(s);j.prop("disabled",true);t={id:f};t[i]=s;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,t).done(function(v){var u,w;for(u in v){for(w in v[u]){j.find("#"+w).html(v[u][w])}}j.find(o).val("");j.find(l+"-searcher").addClass("mla-hidden-children");j.prop("disabled",false)})});j.on('change input[type="checkbox"]',function(q){q.stopPropagation();return false});j.find(l+"-tabs a").on("click",function(){var q=d(this).attr("href");d(this).parent().addClass("tabs").siblings("li").removeClass("tabs");j.find(l+"-tabs").siblings(".tabs-panel").hide();j.find(q).show();d(this).focus();if("#mla-"+i+"-all"==q){deleteUserSetting(n)}else{setUserSetting(n,"pop")}return false});if(getUserSetting(n)){j.find(l+'-tabs a[href="#mla-'+i+'-pop"]').trigger("click")}j.find(l+"-add-toggle").on("click",function(){j.find(l+"-searcher").addClass("mla-hidden-children");j.find(l+"-adder").toggleClass("mla-hidden-children");j.find(l+'-tabs a[href="#mla-'+i+'-all"]').trigger("click");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();if(false===j.find(l+"-adder").hasClass("mla-hidden-children")){j.find(p).val("").removeClass("form-input-tip");j.find(p).focus()}return false});j.find(p).on("keypress",function(q){if(13===q.keyCode){q.preventDefault();j.find(l+"-add-submit").trigger("click")}});j.find(l+"-add-submit").on("click",function(){j.find(p).focus()});h=function(q){if(!j.find(p).val()){return false}q.data+="&"+j.find(l+"-checklist :checked").serialize();j.prop("disabled",true);return q};k=function(v,u){var t,q=j.find("#new"+i+"_parent");j.prop("disabled",false);if("undefined"!=u.parsed.responses[0]&&(t=u.parsed.responses[0].supplemental.newcat_parent)){q.before(t);q.remove();if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(i,t)}}};j.find(l+"-checklist").wpList({alt:"",response:"mla-"+i+"-ajax-response",addBefore:h,addAfter:k});j.find(l+"-checklist, "+l+"-checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var q=d(this),s=q.is(":checked"),r=q.val();if(r&&q.parents("#mla-taxonomy-"+i).length){d("#in-"+i+"-"+r+", #in-popular-"+i+"-"+r,"#mla-taxonomy-"+i).prop("checked",s)}});d.extend(d.expr.pseudos||d.expr[":"],{matchTerms:function(s,r,q,t){return(s.textContent||s.innerText||"").toLowerCase().indexOf((q[3]||"").toLowerCase())>=0}});j.find(o).on("keypress",function(q){if(13===q.keyCode){q.preventDefault();j.find(o).val("");j.find(l+"-searcher").addClass("mla-hidden-children");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();return}});j.find(o).on("keyup",function(s){var u,t,v,r,q;if(13===s.keyCode){s.preventDefault();j.find(l+"-search-toggle").focus();return}u=j.find(o).val();t=j.find(l+"-checklist li");v=j.find(l+"-checklist-pop li");if(0<u.length){t.hide();v.hide()}else{t.show();v.show()}r=j.find(l+"-checklist label:matchTerms('"+u+"')");r.closest("li").find("li").andSelf().show();r.parents(l+"-checklist li").show();q=j.find(l+"-checklist-pop label:matchTerms('"+u+"')");q.closest("li").find("li").andSelf().show();q.parents(l+"-checklist li").show()});j.find(l+"-search-toggle").on("click",function(){j.find(l+"-adder ").addClass("mla-hidden-children");j.find(l+"-searcher").toggleClass("mla-hidden-children");j.find(l+'-tabs a[href="#mla-'+i+'-all"]').trigger("click");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();if(false===j.find(l+"-searcher").hasClass("mla-hidden-children")){j.find(o).val("").removeClass("form-input-tip");j.find(o).focus()}return false})})}if(mlaModal.settings.enableDetailsTag){d(".mla-taxonomy-field .tagsdiv",e).each(function(){var h=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));d(".compat-field-"+h+" th",e).on("click",function(){d(this).siblings("td").slideToggle()});mlaModal.tagBox.init(f,h,e)})}}}(jQuery));
languages/media-library-assistant-en_US - References.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Media Library Assistant\n"
5
- "POT-Creation-Date: 2021-07-22 11:52-0700\n"
6
  "PO-Revision-Date: 2015-08-21 21:38-0800\n"
7
  "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
8
  "Language-Team: David Lingren <david@davidlingren.com>\n"
@@ -226,10 +226,10 @@ msgid "Date"
226
  msgstr ""
227
 
228
  #: includes/class-mla-ajax.php:337 includes/class-mla-main.php:2084
229
- #: includes/class-mla-settings-custom-fields-tab.php:516
230
- #: includes/class-mla-settings-custom-fields-tab.php:826
231
- #: includes/class-mla-settings-iptc-exif-tab.php:545
232
- #: includes/class-mla-settings-iptc-exif-tab.php:933
233
  #: includes/class-mla-settings-upload-tab.php:553
234
  msgid "Status"
235
  msgstr ""
@@ -308,37 +308,37 @@ msgstr ""
308
  #: includes/class-mla-options.php:1133 includes/class-mla-options.php:1973
309
  #: includes/class-mla-options.php:2199
310
  #: includes/class-mla-settings-custom-fields-tab.php:169
311
- #: includes/class-mla-settings-custom-fields-tab.php:251
312
- #: includes/class-mla-settings-custom-fields-tab.php:255
313
- #: includes/class-mla-settings-custom-fields-tab.php:275
314
- #: includes/class-mla-settings-custom-fields-tab.php:320
315
- #: includes/class-mla-settings-custom-fields-tab.php:324
316
- #: includes/class-mla-settings-custom-fields-tab.php:346
317
- #: includes/class-mla-settings-custom-fields-tab.php:438
318
- #: includes/class-mla-settings-custom-fields-tab.php:570
319
- #: includes/class-mla-settings-custom-fields-tab.php:741
320
- #: includes/class-mla-settings-custom-fields-tab.php:964
321
- #: includes/class-mla-settings-custom-fields-tab.php:967
322
- #: includes/class-mla-settings-custom-fields-tab.php:990
323
- #: includes/class-mla-settings-custom-fields-tab.php:2052
324
  #: includes/class-mla-settings-documentation-tab.php:142
325
  #: includes/class-mla-settings-documentation-tab.php:337
326
  #: includes/class-mla-settings-documentation-tab.php:1278
327
  #: includes/class-mla-settings-iptc-exif-tab.php:171
328
- #: includes/class-mla-settings-iptc-exif-tab.php:257
329
- #: includes/class-mla-settings-iptc-exif-tab.php:261
330
- #: includes/class-mla-settings-iptc-exif-tab.php:280
331
- #: includes/class-mla-settings-iptc-exif-tab.php:328
332
- #: includes/class-mla-settings-iptc-exif-tab.php:332
333
- #: includes/class-mla-settings-iptc-exif-tab.php:361
334
- #: includes/class-mla-settings-iptc-exif-tab.php:366
335
- #: includes/class-mla-settings-iptc-exif-tab.php:456
336
- #: includes/class-mla-settings-iptc-exif-tab.php:678
337
- #: includes/class-mla-settings-iptc-exif-tab.php:847
338
- #: includes/class-mla-settings-iptc-exif-tab.php:1055
339
- #: includes/class-mla-settings-iptc-exif-tab.php:1059
340
- #: includes/class-mla-settings-iptc-exif-tab.php:1089
341
- #: includes/class-mla-settings-iptc-exif-tab.php:2317
342
  #: includes/class-mla-settings-shortcodes-tab.php:102
343
  #: includes/class-mla-settings-shortcodes-tab.php:113
344
  #: includes/class-mla-settings-shortcodes-tab.php:117
@@ -368,17 +368,17 @@ msgstr ""
368
  #: includes/class-mla-settings.php:1792 includes/class-mla-settings.php:1799
369
  #: includes/class-mla-settings.php:1808 includes/class-mla-settings.php:1845
370
  #: includes/class-mla-settings.php:1853 includes/class-mla-settings.php:1862
371
- #: includes/class-mla-shortcode-support.php:2229
372
- #: includes/class-mla-shortcode-support.php:2324
373
- #: includes/class-mla-shortcode-support.php:3701
374
- #: includes/class-mla-shortcode-support.php:3865
375
- #: includes/class-mla-shortcode-support.php:3897
376
- #: includes/class-mla-shortcode-support.php:5215
377
- #: includes/class-mla-shortcode-support.php:5285
378
- #: includes/class-mla-shortcode-support.php:5749
379
- #: includes/class-mla-shortcode-support.php:5765
380
  #: includes/class-mla-shortcode-support.php:5788
381
  #: includes/class-mla-shortcode-support.php:5804
 
 
382
  #: includes/class-mla-thumbnail-generation.php:437
383
  #: includes/class-mla-thumbnail-generation.php:449
384
  #: includes/class-mla-thumbnail-generation.php:461
@@ -470,8 +470,8 @@ msgstr ""
470
 
471
  #: includes/class-mla-core-options.php:477
472
  #: includes/class-mla-core-options.php:487 includes/class-mla-main.php:2438
473
- #: includes/class-mla-settings-custom-fields-tab.php:756
474
- #: includes/class-mla-settings-iptc-exif-tab.php:862
475
  msgid "Refresh"
476
  msgstr ""
477
 
@@ -1317,6 +1317,8 @@ msgstr ""
1317
  #: includes/class-mla-core-options.php:1224 includes/class-mla-data.php:4410
1318
  #: includes/class-mla-edit-media.php:483 includes/class-mla-main.php:2406
1319
  #: includes/class-mla-options.php:478
 
 
1320
  #: includes/class-mla-settings-upload-tab.php:199
1321
  #: includes/class-mla-settings-upload-tab.php:543
1322
  #: includes/class-mla-settings-view-tab.php:128
@@ -1354,9 +1356,9 @@ msgstr ""
1354
 
1355
  #: includes/class-mla-core-options.php:1266
1356
  #: includes/class-mla-mime-types.php:1696
1357
- #: includes/class-mla-settings-custom-fields-tab.php:2470
1358
  #: includes/class-mla-settings-documentation-tab.php:1545
1359
- #: includes/class-mla-settings-iptc-exif-tab.php:2772
1360
  #: includes/class-mla-settings-shortcodes-tab.php:1984
1361
  msgctxt "table_view_singular"
1362
  msgid "All"
@@ -1364,9 +1366,9 @@ msgstr ""
1364
 
1365
  #: includes/class-mla-core-options.php:1267
1366
  #: includes/class-mla-mime-types.php:1697
1367
- #: includes/class-mla-settings-custom-fields-tab.php:2471
1368
  #: includes/class-mla-settings-documentation-tab.php:1546
1369
- #: includes/class-mla-settings-iptc-exif-tab.php:2773
1370
  #: includes/class-mla-settings-shortcodes-tab.php:1985
1371
  msgctxt "table_view_plural"
1372
  msgid "All"
@@ -1710,9 +1712,9 @@ msgid "Title"
1710
  msgstr ""
1711
 
1712
  #: includes/class-mla-data-query.php:294
1713
- #: includes/class-mla-settings-custom-fields-tab.php:1240
1714
  #: includes/class-mla-settings-documentation-tab.php:536
1715
- #: includes/class-mla-settings-iptc-exif-tab.php:1343
1716
  #: includes/class-mla-settings-shortcodes-tab.php:978
1717
  msgctxt "list_table_column"
1718
  msgid "Name"
@@ -1760,7 +1762,9 @@ msgstr ""
1760
 
1761
  #: includes/class-mla-data-query.php:303 includes/class-mla-mime-types.php:635
1762
  #: includes/class-mla-mime-types.php:708 includes/class-mla-mime-types.php:787
 
1763
  #: includes/class-mla-settings-documentation-tab.php:539
 
1764
  #: includes/class-mla-settings-shortcodes-tab.php:981
1765
  msgctxt "list_table_column"
1766
  msgid "Description"
@@ -1985,11 +1989,11 @@ msgid "Other"
1985
  msgstr ""
1986
 
1987
  #: includes/class-mla-data.php:3770
1988
- #: includes/class-mla-settings-custom-fields-tab.php:833
1989
- #: includes/class-mla-settings-custom-fields-tab.php:1552
1990
- #: includes/class-mla-settings-iptc-exif-tab.php:941
1991
- #: includes/class-mla-settings-iptc-exif-tab.php:1686
1992
- #: includes/class-mla-settings-iptc-exif-tab.php:2485
1993
  #: includes/class-mla-settings-view-tab.php:401
1994
  #: includes/class-mla-settings-view-tab.php:802
1995
  #: includes/class-mla-settings-view-tab.php:818
@@ -1998,11 +2002,11 @@ msgid "Yes"
1998
  msgstr ""
1999
 
2000
  #: includes/class-mla-data.php:3772
2001
- #: includes/class-mla-settings-custom-fields-tab.php:834
2002
- #: includes/class-mla-settings-custom-fields-tab.php:1554
2003
- #: includes/class-mla-settings-iptc-exif-tab.php:942
2004
- #: includes/class-mla-settings-iptc-exif-tab.php:1688
2005
- #: includes/class-mla-settings-iptc-exif-tab.php:2485
2006
  #: includes/class-mla-settings-view-tab.php:400
2007
  #: includes/class-mla-settings-view-tab.php:804
2008
  #: includes/class-mla-settings-view-tab.php:820
@@ -2092,8 +2096,8 @@ msgstr ""
2092
  #: includes/class-mla-list-table.php:1134
2093
  #: includes/class-mla-list-table.php:1137
2094
  #: includes/class-mla-list-table.php:1205 includes/class-mla-options.php:2143
2095
- #: includes/class-mla-settings-iptc-exif-tab.php:518
2096
- #: includes/class-mla-settings-iptc-exif-tab.php:911
2097
  msgid "Parent"
2098
  msgstr ""
2099
 
@@ -2218,14 +2222,14 @@ msgstr ""
2218
  #: includes/class-mla-main.php:2206 includes/class-mla-media-modal.php:618
2219
  #: includes/class-mla-mime-types.php:825 includes/class-mla-mime-types.php:1466
2220
  #: includes/class-mla-mime-types.php:2645
2221
- #: includes/class-mla-settings-custom-fields-tab.php:570
2222
- #: includes/class-mla-settings-custom-fields-tab.php:741
2223
- #: includes/class-mla-settings-custom-fields-tab.php:2052
2224
  #: includes/class-mla-settings-documentation-tab.php:337
2225
  #: includes/class-mla-settings-documentation-tab.php:1278
2226
- #: includes/class-mla-settings-iptc-exif-tab.php:678
2227
- #: includes/class-mla-settings-iptc-exif-tab.php:847
2228
- #: includes/class-mla-settings-iptc-exif-tab.php:2317
2229
  #: includes/class-mla-settings-shortcodes-tab.php:524
2230
  #: includes/class-mla-settings-shortcodes-tab.php:1643
2231
  #: includes/class-mla-settings-upload-tab.php:322
@@ -2265,13 +2269,13 @@ msgstr ""
2265
  #: includes/class-mla-edit-media.php:365 includes/class-mla-edit-media.php:421
2266
  #: includes/class-mla-edit-media.php:430 includes/class-mla-main.php:2272
2267
  #: includes/class-mla-main.php:2338 includes/class-mla-main.php:2347
2268
- #: includes/class-mla-settings-custom-fields-tab.php:494
2269
- #: includes/class-mla-settings-custom-fields-tab.php:804
2270
- #: includes/class-mla-settings-custom-fields-tab.php:1538
2271
- #: includes/class-mla-settings-iptc-exif-tab.php:512
2272
- #: includes/class-mla-settings-iptc-exif-tab.php:908
2273
- #: includes/class-mla-settings-iptc-exif-tab.php:1627
2274
- #: includes/class-mla-settings-iptc-exif-tab.php:2466
2275
  msgid "Replace"
2276
  msgstr ""
2277
 
@@ -2288,8 +2292,8 @@ msgstr ""
2288
 
2289
  #: includes/class-mla-edit-media.php:476 includes/class-mla-main.php:2427
2290
  #: includes/class-mla-main.php:2483
2291
- #: includes/class-mla-settings-custom-fields-tab.php:832
2292
- #: includes/class-mla-settings-iptc-exif-tab.php:940
2293
  #: includes/class-mla-settings-upload-tab.php:120
2294
  #: includes/class-mla-settings-upload-tab.php:554
2295
  #: includes/class-mla-settings-view-tab.php:399
@@ -2368,13 +2372,13 @@ msgstr ""
2368
  #: includes/class-mla-edit-media.php:729 includes/class-mla-main.php:2090
2369
  #: includes/class-mla-main.php:2418
2370
  #: includes/class-mla-polylang-support.php:2083
2371
- #: includes/class-mla-settings-custom-fields-tab.php:522
2372
- #: includes/class-mla-settings-custom-fields-tab.php:753
2373
- #: includes/class-mla-settings-custom-fields-tab.php:835
2374
  #: includes/class-mla-settings-documentation-tab.php:210
2375
- #: includes/class-mla-settings-iptc-exif-tab.php:551
2376
- #: includes/class-mla-settings-iptc-exif-tab.php:859
2377
- #: includes/class-mla-settings-iptc-exif-tab.php:943
2378
  #: includes/class-mla-settings-shortcodes-tab.php:426
2379
  #: includes/class-mla-settings-shortcodes-tab.php:497
2380
  #: includes/class-mla-settings-upload-tab.php:202
@@ -2399,10 +2403,10 @@ msgstr ""
2399
  #: includes/class-mla-list-table.php:1619
2400
  #: includes/class-mla-list-table.php:1972
2401
  #: includes/class-mla-polylang-support.php:378
2402
- #: includes/class-mla-settings-custom-fields-tab.php:1381
2403
- #: includes/class-mla-settings-custom-fields-tab.php:1716
2404
- #: includes/class-mla-settings-iptc-exif-tab.php:1486
2405
- #: includes/class-mla-settings-iptc-exif-tab.php:1850
2406
  #: includes/class-mla-settings-shortcodes-tab.php:1096
2407
  #: includes/class-mla-settings-upload-tab.php:928
2408
  #: includes/class-mla-settings-upload-tab.php:1213
@@ -2470,8 +2474,8 @@ msgid "No"
2470
  msgstr ""
2471
 
2472
  #: includes/class-mla-list-table.php:500
2473
- #: includes/class-mla-settings-custom-fields-tab.php:1029
2474
- #: includes/class-mla-settings-iptc-exif-tab.php:1128
2475
  #: includes/class-mla-settings-upload-tab.php:653
2476
  #: includes/class-mla-settings-view-tab.php:496
2477
  msgid "List View"
@@ -2493,9 +2497,9 @@ msgid "Not Supported"
2493
  msgstr ""
2494
 
2495
  #: includes/class-mla-list-table.php:648
2496
- #: includes/class-mla-settings-custom-fields-tab.php:1329
2497
  #: includes/class-mla-settings-documentation-tab.php:620
2498
- #: includes/class-mla-settings-iptc-exif-tab.php:1434
2499
  #: includes/class-mla-settings-shortcodes-tab.php:1051
2500
  #: includes/class-mla-settings-upload-tab.php:864
2501
  #: includes/class-mla-settings-upload-tab.php:1417
@@ -2513,8 +2517,8 @@ msgid "Restore"
2513
  msgstr ""
2514
 
2515
  #: includes/class-mla-list-table.php:820
2516
- #: includes/class-mla-settings-custom-fields-tab.php:1381
2517
- #: includes/class-mla-settings-iptc-exif-tab.php:1486
2518
  #: includes/class-mla-settings-shortcodes-tab.php:1096
2519
  #: includes/class-mla-settings-upload-tab.php:928
2520
  #: includes/class-mla-settings-view-tab.php:723
@@ -2522,8 +2526,8 @@ msgid "Edit this item"
2522
  msgstr ""
2523
 
2524
  #: includes/class-mla-list-table.php:821
2525
- #: includes/class-mla-settings-custom-fields-tab.php:1384
2526
- #: includes/class-mla-settings-iptc-exif-tab.php:1489
2527
  #: includes/class-mla-settings-upload-tab.php:930
2528
  #: includes/class-mla-settings-view-tab.php:725
2529
  msgid "Edit this item inline"
@@ -2531,12 +2535,12 @@ msgstr ""
2531
 
2532
  #: includes/class-mla-list-table.php:821 includes/class-mla-main.php:2402
2533
  #: includes/class-mla-options.php:1244
2534
- #: includes/class-mla-settings-custom-fields-tab.php:485
2535
- #: includes/class-mla-settings-custom-fields-tab.php:795
2536
- #: includes/class-mla-settings-custom-fields-tab.php:1384
2537
- #: includes/class-mla-settings-custom-fields-tab.php:1494
2538
- #: includes/class-mla-settings-iptc-exif-tab.php:887
2539
- #: includes/class-mla-settings-iptc-exif-tab.php:1489
2540
  #: includes/class-mla-settings-upload-tab.php:930
2541
  #: includes/class-mla-settings-view-tab.php:725
2542
  msgid "Quick Edit"
@@ -2551,8 +2555,8 @@ msgid "Move to Trash"
2551
  msgstr ""
2552
 
2553
  #: includes/class-mla-list-table.php:832
2554
- #: includes/class-mla-settings-custom-fields-tab.php:1392
2555
- #: includes/class-mla-settings-iptc-exif-tab.php:1499
2556
  #: includes/class-mla-settings-shortcodes-tab.php:1102
2557
  #: includes/class-mla-settings-upload-tab.php:934
2558
  #: includes/class-mla-settings-view-tab.php:731
@@ -2561,10 +2565,10 @@ msgstr ""
2561
 
2562
  #: includes/class-mla-list-table.php:832 includes/class-mla-list-table.php:1970
2563
  #: includes/class-mla-list-table.php:1977
2564
- #: includes/class-mla-settings-custom-fields-tab.php:1392
2565
- #: includes/class-mla-settings-custom-fields-tab.php:1717
2566
- #: includes/class-mla-settings-iptc-exif-tab.php:1499
2567
- #: includes/class-mla-settings-iptc-exif-tab.php:1851
2568
  #: includes/class-mla-settings-shortcodes-tab.php:1102
2569
  #: includes/class-mla-settings-upload-tab.php:934
2570
  #: includes/class-mla-settings-view-tab.php:731
@@ -2632,8 +2636,8 @@ msgstr[0] ""
2632
  msgstr[1] ""
2633
 
2634
  #: includes/class-mla-list-table.php:2071
2635
- #: includes/class-mla-settings-custom-fields-tab.php:1780
2636
- #: includes/class-mla-settings-iptc-exif-tab.php:1914
2637
  #: includes/class-mla-settings-shortcodes-tab.php:1361
2638
  msgid "Filter"
2639
  msgstr ""
@@ -2762,9 +2766,9 @@ msgid "no changes detected"
2762
  msgstr ""
2763
 
2764
  #: includes/class-mla-main.php:1462
2765
- #: includes/class-mla-settings-custom-fields-tab.php:627
2766
  #: includes/class-mla-settings-documentation-tab.php:287
2767
- #: includes/class-mla-settings-iptc-exif-tab.php:735
2768
  #: includes/class-mla-settings-shortcodes-tab.php:586
2769
  #: includes/class-mla-settings-upload-tab.php:421
2770
  #: includes/class-mla-settings-view-tab.php:267
@@ -2798,9 +2802,9 @@ msgid "Empty Terms Search; ignored"
2798
  msgstr ""
2799
 
2800
  #: includes/class-mla-main.php:1688
2801
- #: includes/class-mla-settings-custom-fields-tab.php:655
2802
  #: includes/class-mla-settings-documentation-tab.php:321
2803
- #: includes/class-mla-settings-iptc-exif-tab.php:763
2804
  #: includes/class-mla-settings-shortcodes-tab.php:613
2805
  #: includes/class-mla-settings-upload-tab.php:459
2806
  #: includes/class-mla-settings-view-tab.php:304
@@ -2822,12 +2826,12 @@ msgstr ""
2822
 
2823
  #: includes/class-mla-main.php:1858 includes/class-mla-main.php:2094
2824
  #: includes/class-mla-main.php:2420
2825
- #: includes/class-mla-settings-custom-fields-tab.php:524
2826
- #: includes/class-mla-settings-custom-fields-tab.php:836
2827
  #: includes/class-mla-settings-documentation-tab.php:664
2828
  #: includes/class-mla-settings-documentation-tab.php:863
2829
- #: includes/class-mla-settings-iptc-exif-tab.php:553
2830
- #: includes/class-mla-settings-iptc-exif-tab.php:944
2831
  #: includes/class-mla-settings-shortcodes-tab.php:500
2832
  #: includes/class-mla-settings-upload-tab.php:201
2833
  #: includes/class-mla-settings-upload-tab.php:551
@@ -2845,15 +2849,15 @@ msgid "For"
2845
  msgstr ""
2846
 
2847
  #: includes/class-mla-main.php:2085
2848
- #: includes/class-mla-shortcode-support.php:1208
2849
  msgid "Unattached"
2850
  msgstr ""
2851
 
2852
  #: includes/class-mla-main.php:2421 includes/class-mla-options.php:1258
2853
- #: includes/class-mla-settings-custom-fields-tab.php:488
2854
- #: includes/class-mla-settings-custom-fields-tab.php:798
2855
- #: includes/class-mla-settings-custom-fields-tab.php:1498
2856
- #: includes/class-mla-settings-iptc-exif-tab.php:888
2857
  #: includes/class-mla-settings-upload-tab.php:552
2858
  #: includes/class-mla-settings-view-tab.php:398
2859
  msgid "Bulk Edit"
@@ -2995,14 +2999,14 @@ msgid "Icon Type"
2995
  msgstr ""
2996
 
2997
  #: includes/class-mla-mime-types.php:629
2998
- #: includes/class-mla-settings-custom-fields-tab.php:1242
2999
  msgctxt "list_table_column"
3000
  msgid "Source"
3001
  msgstr ""
3002
 
3003
  #: includes/class-mla-mime-types.php:630
3004
- #: includes/class-mla-settings-custom-fields-tab.php:1245
3005
- #: includes/class-mla-settings-iptc-exif-tab.php:1349
3006
  msgctxt "list_table_column"
3007
  msgid "Status"
3008
  msgstr ""
@@ -3173,13 +3177,13 @@ msgid "MLA"
3173
  msgstr ""
3174
 
3175
  #: includes/class-mla-mime-types.php:1716
3176
- #: includes/class-mla-settings-iptc-exif-tab.php:2784
3177
  msgctxt "table_view_singular"
3178
  msgid "Custom"
3179
  msgstr ""
3180
 
3181
  #: includes/class-mla-mime-types.php:1717
3182
- #: includes/class-mla-settings-iptc-exif-tab.php:2785
3183
  msgctxt "table_view_plural"
3184
  msgid "Custom"
3185
  msgstr ""
@@ -3481,10 +3485,10 @@ msgid "or"
3481
  msgstr ""
3482
 
3483
  #: includes/class-mla-options.php:469
3484
- #: includes/class-mla-settings-custom-fields-tab.php:468
3485
- #: includes/class-mla-settings-custom-fields-tab.php:782
3486
- #: includes/class-mla-settings-iptc-exif-tab.php:489
3487
- #: includes/class-mla-settings-iptc-exif-tab.php:889
3488
  #: includes/class-mla-settings-shortcodes-tab.php:422
3489
  #: includes/class-mla-settings-shortcodes-tab.php:493
3490
  #: includes/mla-main-search-box-template.php:49
@@ -3553,8 +3557,8 @@ msgid "%1$s changing %2$s from %3$s to %4$s."
3553
  msgstr ""
3554
 
3555
  #: includes/class-mla-options.php:1195
3556
- #: includes/class-mla-settings-custom-fields-tab.php:476
3557
- #: includes/class-mla-settings-custom-fields-tab.php:786
3558
  msgid "Data Source"
3559
  msgstr ""
3560
 
@@ -3580,18 +3584,18 @@ msgstr ""
3580
 
3581
  #: includes/class-mla-options.php:1209 includes/class-mla-options.php:2027
3582
  #: includes/class-mla-options.php:2129 includes/class-mla-options.php:2283
3583
- #: includes/class-mla-settings-custom-fields-tab.php:490
3584
- #: includes/class-mla-settings-custom-fields-tab.php:800
3585
- #: includes/class-mla-settings-iptc-exif-tab.php:508
3586
- #: includes/class-mla-settings-iptc-exif-tab.php:904
3587
  msgid "Existing Text"
3588
  msgstr ""
3589
 
3590
  #: includes/class-mla-options.php:1216 includes/class-mla-options.php:2290
3591
- #: includes/class-mla-settings-custom-fields-tab.php:495
3592
- #: includes/class-mla-settings-custom-fields-tab.php:805
3593
- #: includes/class-mla-settings-iptc-exif-tab.php:523
3594
- #: includes/class-mla-settings-iptc-exif-tab.php:912
3595
  msgid "Format"
3596
  msgstr ""
3597
 
@@ -3608,9 +3612,9 @@ msgid "checked to unchecked"
3608
  msgstr ""
3609
 
3610
  #: includes/class-mla-options.php:1230
3611
- #: includes/class-mla-settings-custom-fields-tab.php:482
3612
- #: includes/class-mla-settings-custom-fields-tab.php:792
3613
- #: includes/class-mla-settings-custom-fields-tab.php:1490
3614
  msgid "MLA Column"
3615
  msgstr ""
3616
 
@@ -3619,15 +3623,15 @@ msgid "Metavalue name"
3619
  msgstr ""
3620
 
3621
  #: includes/class-mla-options.php:1273 includes/class-mla-options.php:2297
3622
- #: includes/class-mla-settings-custom-fields-tab.php:502
3623
- #: includes/class-mla-settings-custom-fields-tab.php:812
3624
- #: includes/class-mla-settings-iptc-exif-tab.php:530
3625
- #: includes/class-mla-settings-iptc-exif-tab.php:919
3626
  msgid "Option"
3627
  msgstr ""
3628
 
3629
  #: includes/class-mla-options.php:1287 includes/class-mla-options.php:2311
3630
- #: includes/class-mla-settings-iptc-exif-tab.php:542
3631
  msgid "Delete NULL values"
3632
  msgstr ""
3633
 
@@ -3642,8 +3646,8 @@ msgstr ""
3642
 
3643
  #: includes/class-mla-options.php:1992 includes/class-mla-options.php:2094
3644
  #: includes/class-mla-options.php:2248
3645
- #: includes/class-mla-settings-iptc-exif-tab.php:497
3646
- #: includes/class-mla-settings-iptc-exif-tab.php:893
3647
  msgid "IPTC Value"
3648
  msgstr ""
3649
 
@@ -3664,8 +3668,8 @@ msgstr ""
3664
 
3665
  #: includes/class-mla-options.php:2013 includes/class-mla-options.php:2115
3666
  #: includes/class-mla-options.php:2269
3667
- #: includes/class-mla-settings-iptc-exif-tab.php:503
3668
- #: includes/class-mla-settings-iptc-exif-tab.php:899
3669
  msgid "Priority"
3670
  msgstr ""
3671
 
@@ -3861,10 +3865,10 @@ msgid "WPML &amp; Polylang Multilingual Support; the MLA Language Tab"
3861
  msgstr ""
3862
 
3863
  #: includes/class-mla-polylang-support.php:2602
3864
- #: includes/class-mla-settings-custom-fields-tab.php:678
3865
- #: includes/class-mla-settings-custom-fields-tab.php:779
3866
- #: includes/class-mla-settings-iptc-exif-tab.php:786
3867
- #: includes/class-mla-settings-iptc-exif-tab.php:884
3868
  #: includes/class-mla-settings-shortcodes-tab.php:733
3869
  #: includes/class-mla-settings-upload-tab.php:485
3870
  #: includes/class-mla-settings-upload-tab.php:531
@@ -3976,243 +3980,247 @@ msgid ""
3976
  "%1$s mapping completed; %2$d attachment(s) examined, no changes detected."
3977
  msgstr ""
3978
 
3979
- #: includes/class-mla-settings-custom-fields-tab.php:251
3980
- #: includes/class-mla-settings-iptc-exif-tab.php:257
3981
  msgid ": No custom field name selected/entered"
3982
  msgstr ""
3983
 
3984
- #: includes/class-mla-settings-custom-fields-tab.php:255
3985
- #: includes/class-mla-settings-custom-fields-tab.php:320
3986
- #: includes/class-mla-settings-iptc-exif-tab.php:261
3987
- #: includes/class-mla-settings-iptc-exif-tab.php:328
3988
  msgid ": Rule already exists for the new name"
3989
  msgstr ""
3990
 
3991
- #: includes/class-mla-settings-custom-fields-tab.php:272
3992
- #: includes/class-mla-settings-iptc-exif-tab.php:277
3993
  msgid "Rule added"
3994
  msgstr ""
3995
 
3996
- #: includes/class-mla-settings-custom-fields-tab.php:275
3997
- #: includes/class-mla-settings-iptc-exif-tab.php:280
3998
  msgid ": Rule addition failed"
3999
  msgstr ""
4000
 
4001
- #: includes/class-mla-settings-custom-fields-tab.php:324
4002
- #: includes/class-mla-settings-iptc-exif-tab.php:332
4003
  msgid ": Invalid rule name must be changed"
4004
  msgstr ""
4005
 
4006
- #: includes/class-mla-settings-custom-fields-tab.php:346
4007
- #: includes/class-mla-settings-custom-fields-tab.php:438
4008
- #: includes/class-mla-settings-custom-fields-tab.php:990
4009
- #: includes/class-mla-settings-iptc-exif-tab.php:361
4010
- #: includes/class-mla-settings-iptc-exif-tab.php:366
4011
- #: includes/class-mla-settings-iptc-exif-tab.php:456
4012
- #: includes/class-mla-settings-iptc-exif-tab.php:1089
4013
  msgid ": Rule update failed"
4014
  msgstr ""
4015
 
4016
- #: includes/class-mla-settings-custom-fields-tab.php:351
4017
- #: includes/class-mla-settings-custom-fields-tab.php:441
4018
- #: includes/class-mla-settings-iptc-exif-tab.php:371
4019
- #: includes/class-mla-settings-iptc-exif-tab.php:459
4020
  msgid "Rule updated"
4021
  msgstr ""
4022
 
4023
- #: includes/class-mla-settings-custom-fields-tab.php:375
4024
- #: includes/class-mla-settings-iptc-exif-tab.php:395
4025
  #, php-format
4026
  msgid "Custom Field Rule \"%1$s\" deleted."
4027
  msgstr ""
4028
 
4029
- #: includes/class-mla-settings-custom-fields-tab.php:462
4030
- #: includes/class-mla-settings-iptc-exif-tab.php:480
4031
  msgid "Edit Rule"
4032
  msgstr ""
4033
 
4034
- #: includes/class-mla-settings-custom-fields-tab.php:471
4035
- #: includes/class-mla-settings-iptc-exif-tab.php:492
4036
  msgid ""
4037
  "This is the name of the custom field to which the rule applies.<br>Only one "
4038
  "rule is allowed for each custom field."
4039
  msgstr ""
4040
 
4041
- #: includes/class-mla-settings-custom-fields-tab.php:472
4042
- #: includes/class-mla-settings-iptc-exif-tab.php:493
4043
  msgid "Change Name"
4044
  msgstr ""
4045
 
4046
- #: includes/class-mla-settings-custom-fields-tab.php:473
4047
- #: includes/class-mla-settings-iptc-exif-tab.php:494
4048
  msgid "Cancel Name Change"
4049
  msgstr ""
4050
 
4051
- #: includes/class-mla-settings-custom-fields-tab.php:474
4052
- #: includes/class-mla-settings-custom-fields-tab.php:784
4053
- #: includes/class-mla-settings-iptc-exif-tab.php:495
4054
- #: includes/class-mla-settings-iptc-exif-tab.php:891
4055
  msgid "Enter new field"
4056
  msgstr ""
4057
 
4058
- #: includes/class-mla-settings-custom-fields-tab.php:475
4059
- #: includes/class-mla-settings-custom-fields-tab.php:785
4060
- #: includes/class-mla-settings-iptc-exif-tab.php:496
4061
- #: includes/class-mla-settings-iptc-exif-tab.php:892
4062
  msgid "Cancel new field"
4063
  msgstr ""
4064
 
4065
- #: includes/class-mla-settings-custom-fields-tab.php:478
4066
- #: includes/class-mla-settings-custom-fields-tab.php:788
 
 
 
 
4067
  msgid "Meta/Template"
4068
  msgstr ""
4069
 
4070
- #: includes/class-mla-settings-custom-fields-tab.php:480
4071
- #: includes/class-mla-settings-custom-fields-tab.php:790
4072
  msgid "WordPress attachment metadata element or Content Template"
4073
  msgstr ""
4074
 
4075
- #: includes/class-mla-settings-custom-fields-tab.php:483
4076
- #: includes/class-mla-settings-custom-fields-tab.php:793
4077
  msgid "Display as Media/Assistant column"
4078
  msgstr ""
4079
 
4080
- #: includes/class-mla-settings-custom-fields-tab.php:486
4081
- #: includes/class-mla-settings-custom-fields-tab.php:796
4082
  msgid "Add to Media/Assistant Quick Edit area"
4083
  msgstr ""
4084
 
4085
- #: includes/class-mla-settings-custom-fields-tab.php:489
4086
- #: includes/class-mla-settings-custom-fields-tab.php:799
4087
  msgid "Add to Media/Assistant Bulk Edit area"
4088
  msgstr ""
4089
 
4090
- #: includes/class-mla-settings-custom-fields-tab.php:492
4091
- #: includes/class-mla-settings-custom-fields-tab.php:802
4092
- #: includes/class-mla-settings-custom-fields-tab.php:1536
4093
- #: includes/class-mla-settings-iptc-exif-tab.php:510
4094
- #: includes/class-mla-settings-iptc-exif-tab.php:906
4095
- #: includes/class-mla-settings-iptc-exif-tab.php:1625
4096
- #: includes/class-mla-settings-iptc-exif-tab.php:2466
4097
  #: includes/class-mla-thumbnail-generation.php:650
4098
  msgid "Keep"
4099
  msgstr ""
4100
 
4101
- #: includes/class-mla-settings-custom-fields-tab.php:497
4102
- #: includes/class-mla-settings-custom-fields-tab.php:807
4103
- #: includes/class-mla-settings-iptc-exif-tab.php:525
4104
- #: includes/class-mla-settings-iptc-exif-tab.php:914
4105
  msgid "Native"
4106
  msgstr ""
4107
 
4108
- #: includes/class-mla-settings-custom-fields-tab.php:499
4109
- #: includes/class-mla-settings-custom-fields-tab.php:809
4110
- #: includes/class-mla-settings-iptc-exif-tab.php:527
4111
- #: includes/class-mla-settings-iptc-exif-tab.php:916
4112
  msgid "Commas"
4113
  msgstr ""
4114
 
4115
- #: includes/class-mla-settings-custom-fields-tab.php:501
4116
- #: includes/class-mla-settings-custom-fields-tab.php:811
4117
- #: includes/class-mla-settings-iptc-exif-tab.php:529
4118
- #: includes/class-mla-settings-iptc-exif-tab.php:918
4119
  msgid "Raw"
4120
  msgstr ""
4121
 
4122
- #: includes/class-mla-settings-custom-fields-tab.php:504
4123
- #: includes/class-mla-settings-custom-fields-tab.php:814
4124
- #: includes/class-mla-settings-iptc-exif-tab.php:532
4125
- #: includes/class-mla-settings-iptc-exif-tab.php:921
4126
  msgid "Text"
4127
  msgstr ""
4128
 
4129
- #: includes/class-mla-settings-custom-fields-tab.php:506
4130
- #: includes/class-mla-settings-custom-fields-tab.php:816
4131
- #: includes/class-mla-settings-iptc-exif-tab.php:534
4132
- #: includes/class-mla-settings-iptc-exif-tab.php:923
4133
  msgid "Single"
4134
  msgstr ""
4135
 
4136
- #: includes/class-mla-settings-custom-fields-tab.php:508
4137
- #: includes/class-mla-settings-custom-fields-tab.php:818
4138
- #: includes/class-mla-settings-iptc-exif-tab.php:536
4139
- #: includes/class-mla-settings-iptc-exif-tab.php:925
4140
  msgid "Export"
4141
  msgstr ""
4142
 
4143
- #: includes/class-mla-settings-custom-fields-tab.php:510
4144
- #: includes/class-mla-settings-custom-fields-tab.php:820
4145
- #: includes/class-mla-settings-iptc-exif-tab.php:538
4146
- #: includes/class-mla-settings-iptc-exif-tab.php:927
4147
  msgid "Array"
4148
  msgstr ""
4149
 
4150
- #: includes/class-mla-settings-custom-fields-tab.php:512
4151
- #: includes/class-mla-settings-custom-fields-tab.php:822
4152
- #: includes/class-mla-settings-iptc-exif-tab.php:540
4153
- #: includes/class-mla-settings-iptc-exif-tab.php:929
4154
  msgid "Multi"
4155
  msgstr ""
4156
 
4157
- #: includes/class-mla-settings-custom-fields-tab.php:514
4158
- #: includes/class-mla-settings-custom-fields-tab.php:824
4159
- #: includes/class-mla-settings-iptc-exif-tab.php:931
4160
  msgid "Delete NULL Values"
4161
  msgstr ""
4162
 
4163
- #: includes/class-mla-settings-custom-fields-tab.php:515
4164
- #: includes/class-mla-settings-custom-fields-tab.php:825
4165
- #: includes/class-mla-settings-iptc-exif-tab.php:543
4166
- #: includes/class-mla-settings-iptc-exif-tab.php:932
4167
  msgid "Do not store empty custom field values"
4168
  msgstr ""
4169
 
4170
- #: includes/class-mla-settings-custom-fields-tab.php:518
4171
- #: includes/class-mla-settings-custom-fields-tab.php:828
4172
- #: includes/class-mla-settings-custom-fields-tab.php:1520
4173
- #: includes/class-mla-settings-custom-fields-tab.php:1739
4174
  #: includes/class-mla-settings-documentation-tab.php:1226
4175
- #: includes/class-mla-settings-iptc-exif-tab.php:547
4176
- #: includes/class-mla-settings-iptc-exif-tab.php:935
4177
- #: includes/class-mla-settings-iptc-exif-tab.php:1641
4178
- #: includes/class-mla-settings-iptc-exif-tab.php:1873
4179
- #: includes/class-mla-settings-iptc-exif-tab.php:2469
4180
  #: includes/class-mla-settings-upload-tab.php:555
4181
  #: includes/class-mla-settings-upload-tab.php:1041
4182
  msgid "Active"
4183
  msgstr ""
4184
 
4185
- #: includes/class-mla-settings-custom-fields-tab.php:520
4186
- #: includes/class-mla-settings-custom-fields-tab.php:830
4187
- #: includes/class-mla-settings-custom-fields-tab.php:1522
4188
- #: includes/class-mla-settings-custom-fields-tab.php:1742
4189
  #: includes/class-mla-settings-documentation-tab.php:1228
4190
- #: includes/class-mla-settings-iptc-exif-tab.php:549
4191
- #: includes/class-mla-settings-iptc-exif-tab.php:937
4192
- #: includes/class-mla-settings-iptc-exif-tab.php:1643
4193
- #: includes/class-mla-settings-iptc-exif-tab.php:1876
4194
- #: includes/class-mla-settings-iptc-exif-tab.php:2469
4195
  #: includes/class-mla-settings-upload-tab.php:197
4196
  #: includes/class-mla-settings-upload-tab.php:541
4197
  #: includes/class-mla-settings-upload-tab.php:1039
4198
  msgid "Inactive"
4199
  msgstr ""
4200
 
4201
- #: includes/class-mla-settings-custom-fields-tab.php:552
4202
- #: includes/class-mla-settings-iptc-exif-tab.php:660
4203
  #, php-format
4204
  msgid "Custom Field Rule \"%1$s\": %2$s"
4205
  msgstr ""
4206
 
4207
- #: includes/class-mla-settings-custom-fields-tab.php:589
4208
  msgid "Edit Custom Field Rule cancelled."
4209
  msgstr ""
4210
 
4211
- #: includes/class-mla-settings-custom-fields-tab.php:603
4212
- #: includes/class-mla-settings-custom-fields-tab.php:631
4213
  #: includes/class-mla-settings-documentation-tab.php:277
4214
- #: includes/class-mla-settings-iptc-exif-tab.php:711
4215
- #: includes/class-mla-settings-iptc-exif-tab.php:739
4216
  #: includes/class-mla-settings-shortcodes-tab.php:574
4217
  #: includes/class-mla-settings-upload-tab.php:410
4218
  #: includes/class-mla-settings-view-tab.php:257
@@ -4220,52 +4228,52 @@ msgstr ""
4220
  msgid "Unknown bulk action %1$s"
4221
  msgstr ""
4222
 
4223
- #: includes/class-mla-settings-custom-fields-tab.php:675
4224
  msgid "Custom Field Mapping Support is disabled"
4225
  msgstr ""
4226
 
4227
- #: includes/class-mla-settings-custom-fields-tab.php:746
4228
  msgid "Custom Field Mapping Progress"
4229
  msgstr ""
4230
 
4231
- #: includes/class-mla-settings-custom-fields-tab.php:747
4232
- #: includes/class-mla-settings-iptc-exif-tab.php:853
4233
  msgid "DO NOT DO THE FOLLOWING (they will cause mapping to fail)"
4234
  msgstr ""
4235
 
4236
- #: includes/class-mla-settings-custom-fields-tab.php:748
4237
- #: includes/class-mla-settings-iptc-exif-tab.php:854
4238
  msgid "Close the window"
4239
  msgstr ""
4240
 
4241
- #: includes/class-mla-settings-custom-fields-tab.php:749
4242
- #: includes/class-mla-settings-iptc-exif-tab.php:855
4243
  msgid "Reload the page"
4244
  msgstr ""
4245
 
4246
- #: includes/class-mla-settings-custom-fields-tab.php:750
4247
- #: includes/class-mla-settings-iptc-exif-tab.php:856
4248
  msgid "Click the browser&rsquo;s Stop, Back or forward buttons"
4249
  msgstr ""
4250
 
4251
- #: includes/class-mla-settings-custom-fields-tab.php:751
4252
- #: includes/class-mla-settings-iptc-exif-tab.php:857
4253
  msgid "Progress"
4254
  msgstr ""
4255
 
4256
- #: includes/class-mla-settings-custom-fields-tab.php:752
4257
- #: includes/class-mla-settings-iptc-exif-tab.php:858
4258
  msgid "Pause"
4259
  msgstr ""
4260
 
4261
- #: includes/class-mla-settings-custom-fields-tab.php:754
4262
- #: includes/class-mla-settings-iptc-exif-tab.php:860
4263
  msgid "Resume"
4264
  msgstr ""
4265
 
4266
- #: includes/class-mla-settings-custom-fields-tab.php:755
4267
  #: includes/class-mla-settings-documentation-tab.php:152
4268
- #: includes/class-mla-settings-iptc-exif-tab.php:861
4269
  #: includes/class-mla-settings-shortcodes-tab.php:497
4270
  #: includes/class-mla-template-support.php:160
4271
  #: includes/class-mla-template-support.php:166
@@ -4276,11 +4284,11 @@ msgstr ""
4276
  msgid "Close"
4277
  msgstr ""
4278
 
4279
- #: includes/class-mla-settings-custom-fields-tab.php:764
4280
  msgid "Custom Field and Attachment Metadata Processing Options"
4281
  msgstr ""
4282
 
4283
- #: includes/class-mla-settings-custom-fields-tab.php:766
4284
  msgid ""
4285
  "In this tab you can define the rules for mapping several types of image "
4286
  "metadata to WordPress custom fields. You can also use this screen to define "
@@ -4289,168 +4297,168 @@ msgid ""
4289
  "field."
4290
  msgstr ""
4291
 
4292
- #: includes/class-mla-settings-custom-fields-tab.php:768
4293
- #: includes/class-mla-settings-iptc-exif-tab.php:874
4294
  msgid ""
4295
  "You can find more information about using the controls in this tab to define "
4296
  "mapping rules and apply them by clicking the \"Help\" control in the upper-"
4297
  "right corner of the screen."
4298
  msgstr ""
4299
 
4300
- #: includes/class-mla-settings-custom-fields-tab.php:773
4301
- #: includes/class-mla-settings-iptc-exif-tab.php:879
4302
  #: includes/class-mla-settings-shortcodes-tab.php:731
4303
  msgid "Search results for"
4304
  msgstr ""
4305
 
4306
- #: includes/class-mla-settings-custom-fields-tab.php:775
4307
- #: includes/class-mla-settings-iptc-exif-tab.php:880
4308
  msgid "Search Rules Text"
4309
  msgstr ""
4310
 
4311
- #: includes/class-mla-settings-custom-fields-tab.php:777
4312
- #: includes/class-mla-settings-iptc-exif-tab.php:882
4313
  msgid "Search Rules"
4314
  msgstr ""
4315
 
4316
- #: includes/class-mla-settings-custom-fields-tab.php:780
4317
- #: includes/class-mla-settings-iptc-exif-tab.php:885
4318
  msgid "Execute All Rules"
4319
  msgstr ""
4320
 
4321
- #: includes/class-mla-settings-custom-fields-tab.php:781
4322
- #: includes/class-mla-settings-iptc-exif-tab.php:886
4323
  msgid "Add New Custom Field Rule"
4324
  msgstr ""
4325
 
4326
- #: includes/class-mla-settings-custom-fields-tab.php:831
4327
- #: includes/class-mla-settings-iptc-exif-tab.php:938
4328
  msgid "Add Rule"
4329
  msgstr ""
4330
 
4331
- #: includes/class-mla-settings-custom-fields-tab.php:902
4332
- #: includes/class-mla-settings-custom-fields-tab.php:924
4333
- #: includes/class-mla-settings-iptc-exif-tab.php:1018
4334
  msgid "Nothing to execute"
4335
  msgstr ""
4336
 
4337
- #: includes/class-mla-settings-custom-fields-tab.php:964
4338
- #: includes/class-mla-settings-iptc-exif-tab.php:1059
4339
  msgid "Rule not found"
4340
  msgstr ""
4341
 
4342
- #: includes/class-mla-settings-custom-fields-tab.php:967
4343
- #: includes/class-mla-settings-iptc-exif-tab.php:1055
4344
  msgid "Rule ID not found"
4345
  msgstr ""
4346
 
4347
- #: includes/class-mla-settings-custom-fields-tab.php:1241
4348
- #: includes/class-mla-settings-iptc-exif-tab.php:1344
4349
  msgctxt "list_table_column"
4350
  msgid "Bad Name"
4351
  msgstr ""
4352
 
4353
- #: includes/class-mla-settings-custom-fields-tab.php:1243
4354
  msgctxt "list_table_column"
4355
  msgid "Meta/Template"
4356
  msgstr ""
4357
 
4358
- #: includes/class-mla-settings-custom-fields-tab.php:1244
4359
  msgctxt "list_table_column"
4360
  msgid "Visibility"
4361
  msgstr ""
4362
 
4363
- #: includes/class-mla-settings-custom-fields-tab.php:1246
4364
- #: includes/class-mla-settings-iptc-exif-tab.php:1348
4365
  msgctxt "list_table_column"
4366
  msgid "Existing Text"
4367
  msgstr ""
4368
 
4369
- #: includes/class-mla-settings-custom-fields-tab.php:1247
4370
- #: includes/class-mla-settings-iptc-exif-tab.php:1352
4371
  msgctxt "list_table_column"
4372
  msgid "Delete NULL"
4373
  msgstr ""
4374
 
4375
- #: includes/class-mla-settings-custom-fields-tab.php:1248
4376
- #: includes/class-mla-settings-iptc-exif-tab.php:1353
4377
  msgctxt "list_table_column"
4378
  msgid "Format"
4379
  msgstr ""
4380
 
4381
- #: includes/class-mla-settings-custom-fields-tab.php:1249
4382
- #: includes/class-mla-settings-iptc-exif-tab.php:1354
4383
  msgctxt "list_table_column"
4384
  msgid "Option"
4385
  msgstr ""
4386
 
4387
- #: includes/class-mla-settings-custom-fields-tab.php:1387
4388
- #: includes/class-mla-settings-iptc-exif-tab.php:1492
4389
  msgid "Map All Attachments"
4390
  msgstr ""
4391
 
4392
- #: includes/class-mla-settings-custom-fields-tab.php:1387
4393
- #: includes/class-mla-settings-custom-fields-tab.php:1718
4394
- #: includes/class-mla-settings-iptc-exif-tab.php:1492
4395
- #: includes/class-mla-settings-iptc-exif-tab.php:1852
4396
  msgid "Execute"
4397
  msgstr ""
4398
 
4399
- #: includes/class-mla-settings-custom-fields-tab.php:1389
4400
  msgid "Purge custom field values"
4401
  msgstr ""
4402
 
4403
- #: includes/class-mla-settings-custom-fields-tab.php:1389
4404
- #: includes/class-mla-settings-custom-fields-tab.php:1719
4405
- #: includes/class-mla-settings-iptc-exif-tab.php:1495
4406
- #: includes/class-mla-settings-iptc-exif-tab.php:1853
4407
  msgid "Purge Values"
4408
  msgstr ""
4409
 
4410
- #: includes/class-mla-settings-custom-fields-tab.php:1736
4411
- #: includes/class-mla-settings-iptc-exif-tab.php:1870
4412
  #: includes/class-mla-settings-shortcodes-tab.php:1317
4413
  msgid "Any Status"
4414
  msgstr ""
4415
 
4416
- #: includes/class-mla-settings-custom-fields-tab.php:2474
4417
  msgctxt "table_view_singular"
4418
  msgid "MLA Column"
4419
  msgstr ""
4420
 
4421
- #: includes/class-mla-settings-custom-fields-tab.php:2475
4422
  msgctxt "table_view_plural"
4423
  msgid "MLA Column"
4424
  msgstr ""
4425
 
4426
- #: includes/class-mla-settings-custom-fields-tab.php:2478
4427
  msgctxt "table_view_singular"
4428
  msgid "Quick Edit"
4429
  msgstr ""
4430
 
4431
- #: includes/class-mla-settings-custom-fields-tab.php:2479
4432
  msgctxt "table_view_plural"
4433
  msgid "Quick Edit"
4434
  msgstr ""
4435
 
4436
- #: includes/class-mla-settings-custom-fields-tab.php:2482
4437
  msgctxt "table_view_singular"
4438
  msgid "Bulk Edit"
4439
  msgstr ""
4440
 
4441
- #: includes/class-mla-settings-custom-fields-tab.php:2483
4442
  msgctxt "table_view_plural"
4443
  msgid "Bulk Edit"
4444
  msgstr ""
4445
 
4446
- #: includes/class-mla-settings-custom-fields-tab.php:2486
4447
- #: includes/class-mla-settings-iptc-exif-tab.php:2788
4448
  msgctxt "table_view_singular"
4449
  msgid "Read Only"
4450
  msgstr ""
4451
 
4452
- #: includes/class-mla-settings-custom-fields-tab.php:2487
4453
- #: includes/class-mla-settings-iptc-exif-tab.php:2789
4454
  msgctxt "table_view_plural"
4455
  msgid "Read Only"
4456
  msgstr ""
@@ -4654,117 +4662,121 @@ msgstr ""
4654
  msgid "updated."
4655
  msgstr ""
4656
 
4657
- #: includes/class-mla-settings-iptc-exif-tab.php:499
4658
- #: includes/class-mla-settings-iptc-exif-tab.php:895
 
 
 
 
4659
  msgid "EXIF/Template Value"
4660
  msgstr ""
4661
 
4662
- #: includes/class-mla-settings-iptc-exif-tab.php:502
4663
- #: includes/class-mla-settings-iptc-exif-tab.php:898
4664
  msgid "EXIF element name or Content Template"
4665
  msgstr ""
4666
 
4667
- #: includes/class-mla-settings-iptc-exif-tab.php:502
4668
  msgid " (starting with \"template:\")"
4669
  msgstr ""
4670
 
4671
- #: includes/class-mla-settings-iptc-exif-tab.php:505
4672
- #: includes/class-mla-settings-iptc-exif-tab.php:901
4673
- #: includes/class-mla-settings-iptc-exif-tab.php:1609
4674
  msgid "IPTC"
4675
  msgstr ""
4676
 
4677
- #: includes/class-mla-settings-iptc-exif-tab.php:507
4678
- #: includes/class-mla-settings-iptc-exif-tab.php:903
4679
- #: includes/class-mla-settings-iptc-exif-tab.php:1612
4680
  msgid "EXIF"
4681
  msgstr ""
4682
 
4683
- #: includes/class-mla-settings-iptc-exif-tab.php:515
4684
- #: includes/class-mla-settings-iptc-exif-tab.php:909
4685
  msgid "Delimiters"
4686
  msgstr ""
4687
 
4688
- #: includes/class-mla-settings-iptc-exif-tab.php:570
4689
  msgid "Standard field mapping"
4690
  msgstr ""
4691
 
4692
- #: includes/class-mla-settings-iptc-exif-tab.php:573
4693
  msgid "Taxonomy term mapping"
4694
  msgstr ""
4695
 
4696
- #: includes/class-mla-settings-iptc-exif-tab.php:596
4697
  msgid "Custom field mapping"
4698
  msgstr ""
4699
 
4700
- #: includes/class-mla-settings-iptc-exif-tab.php:697
4701
  msgid "Edit IPTC EXIF Rule cancelled."
4702
  msgstr ""
4703
 
4704
- #: includes/class-mla-settings-iptc-exif-tab.php:783
4705
  msgid "IPTC/EXIF Mapping Support is disabled"
4706
  msgstr ""
4707
 
4708
- #: includes/class-mla-settings-iptc-exif-tab.php:852
4709
  msgid "IPTC &amp; EXIF Mapping Progress"
4710
  msgstr ""
4711
 
4712
- #: includes/class-mla-settings-iptc-exif-tab.php:870
4713
  msgid "IPTC &amp; EXIF Processing Options"
4714
  msgstr ""
4715
 
4716
- #: includes/class-mla-settings-iptc-exif-tab.php:872
4717
  msgid ""
4718
  "In this tab you can define the rules for mapping IPTC (International Press "
4719
  "Telecommunications Council) and EXIF (EXchangeable Image File) metadata to "
4720
  "WordPress standard attachment fields, taxonomy terms and custom fields."
4721
  msgstr ""
4722
 
4723
- #: includes/class-mla-settings-iptc-exif-tab.php:1345
4724
  msgctxt "list_table_column"
4725
  msgid "IPTC Value"
4726
  msgstr ""
4727
 
4728
- #: includes/class-mla-settings-iptc-exif-tab.php:1346
4729
  msgctxt "list_table_column"
4730
  msgid "EXIF/Template Value"
4731
  msgstr ""
4732
 
4733
- #: includes/class-mla-settings-iptc-exif-tab.php:1347
4734
  msgctxt "list_table_column"
4735
  msgid "Priority "
4736
  msgstr ""
4737
 
4738
- #: includes/class-mla-settings-iptc-exif-tab.php:1350
4739
  msgctxt "list_table_column"
4740
  msgid "Delimiter(s)"
4741
  msgstr ""
4742
 
4743
- #: includes/class-mla-settings-iptc-exif-tab.php:1351
4744
  msgctxt "list_table_column"
4745
  msgid "Parent"
4746
  msgstr ""
4747
 
4748
- #: includes/class-mla-settings-iptc-exif-tab.php:1495
4749
  msgid "Purge IPTC EXIF values"
4750
  msgstr ""
4751
 
4752
- #: includes/class-mla-settings-iptc-exif-tab.php:2776
4753
  msgctxt "table_view_singular"
4754
  msgid "Standard"
4755
  msgstr ""
4756
 
4757
- #: includes/class-mla-settings-iptc-exif-tab.php:2777
4758
  msgctxt "table_view_plural"
4759
  msgid "Standard"
4760
  msgstr ""
4761
 
4762
- #: includes/class-mla-settings-iptc-exif-tab.php:2780
4763
  msgctxt "table_view_singular"
4764
  msgid "Taxonomy"
4765
  msgstr ""
4766
 
4767
- #: includes/class-mla-settings-iptc-exif-tab.php:2781
4768
  msgctxt "table_view_plural"
4769
  msgid "Taxonomy"
4770
  msgstr ""
@@ -5693,179 +5705,179 @@ msgid "Settings imported; %1$s updated, %2$s unchanged."
5693
  msgstr ""
5694
 
5695
  #: includes/class-mla-shortcode-support.php:522
5696
- #: includes/class-mla-shortcode-support.php:1988
5697
- #: includes/class-mla-shortcode-support.php:4362
5698
- #: includes/class-mla-shortcode-support.php:4668
5699
  msgid "Previous"
5700
  msgstr ""
5701
 
5702
  #: includes/class-mla-shortcode-support.php:523
5703
- #: includes/class-mla-shortcode-support.php:1989
5704
- #: includes/class-mla-shortcode-support.php:4409
5705
- #: includes/class-mla-shortcode-support.php:4674
5706
  msgid "Next"
5707
  msgstr ""
5708
 
5709
- #: includes/class-mla-shortcode-support.php:594
5710
- #: includes/class-mla-shortcode-support.php:600
5711
- #: includes/class-mla-shortcode-support.php:2128
5712
- #: includes/class-mla-shortcode-support.php:2135
5713
- #: includes/class-mla-shortcode-support.php:3596
5714
- #: includes/class-mla-shortcode-support.php:3603
5715
  #: includes/class-mla-template-support.php:598
5716
  msgid "not found"
5717
  msgstr ""
5718
 
5719
- #: includes/class-mla-shortcode-support.php:625
5720
- #: includes/class-mla-shortcode-support.php:2120
5721
- #: includes/class-mla-shortcode-support.php:3588
5722
  msgid "mla_debug REQUEST"
5723
  msgstr ""
5724
 
5725
- #: includes/class-mla-shortcode-support.php:629
5726
- #: includes/class-mla-shortcode-support.php:631
5727
  msgid "mla_debug attributes_errors"
5728
  msgstr ""
5729
 
5730
- #: includes/class-mla-shortcode-support.php:637
5731
- #: includes/class-mla-shortcode-support.php:2121
5732
- #: includes/class-mla-shortcode-support.php:3589
5733
- #: includes/class-mla-shortcode-support.php:6391
5734
  msgid "mla_debug attributes"
5735
  msgstr ""
5736
 
5737
- #: includes/class-mla-shortcode-support.php:638
5738
- #: includes/class-mla-shortcode-support.php:2122
5739
- #: includes/class-mla-shortcode-support.php:3590
5740
- #: includes/class-mla-shortcode-support.php:6392
5741
  msgid "mla_debug arguments"
5742
  msgstr ""
5743
 
5744
- #: includes/class-mla-shortcode-support.php:730
5745
  msgid "mla_debug empty gallery"
5746
  msgstr ""
5747
 
5748
- #: includes/class-mla-shortcode-support.php:761
5749
  msgid ""
5750
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
5751
  "<strong>default</strong>, query = "
5752
  msgstr ""
5753
 
5754
- #: includes/class-mla-shortcode-support.php:1232
5755
  msgid "unknown"
5756
  msgstr ""
5757
 
5758
- #: includes/class-mla-shortcode-support.php:2259
5759
  msgid "mla_debug empty cloud"
5760
  msgstr ""
5761
 
5762
- #: includes/class-mla-shortcode-support.php:2378
5763
  msgid "mla_debug adding ANY terms"
5764
  msgstr ""
5765
 
5766
- #: includes/class-mla-shortcode-support.php:2416
5767
  msgid "mla_debug adding NO terms"
5768
  msgstr ""
5769
 
5770
- #: includes/class-mla-shortcode-support.php:2454
5771
  msgid "mla_debug adding IGNORE terms"
5772
  msgstr ""
5773
 
5774
- #: includes/class-mla-shortcode-support.php:3726
5775
  msgid "mla_debug empty list"
5776
  msgstr ""
5777
 
5778
- #: includes/class-mla-shortcode-support.php:3749
5779
  msgid "no-terms"
5780
  msgstr ""
5781
 
5782
- #: includes/class-mla-shortcode-support.php:5215
5783
- #: includes/class-mla-shortcode-support.php:5285
5784
- #: includes/class-mla-shortcode-support.php:5749
5785
- #: includes/class-mla-shortcode-support.php:5765
5786
  #: includes/class-mla-shortcode-support.php:5788
5787
  #: includes/class-mla-shortcode-support.php:5804
 
 
5788
  msgid "Invalid mla_gallery"
5789
  msgstr ""
5790
 
5791
- #: includes/class-mla-shortcode-support.php:6121
5792
- #: includes/class-mla-shortcode-support.php:6474
5793
  msgid "mla_debug query"
5794
  msgstr ""
5795
 
5796
- #: includes/class-mla-shortcode-support.php:6122
5797
  msgid "mla_debug request"
5798
  msgstr ""
5799
 
5800
- #: includes/class-mla-shortcode-support.php:6123
5801
  msgid "mla_debug query_vars"
5802
  msgstr ""
5803
 
5804
- #: includes/class-mla-shortcode-support.php:6124
5805
  msgid "mla_debug post_count"
5806
  msgstr ""
5807
 
5808
- #: includes/class-mla-shortcode-support.php:6125
5809
  msgid "mla_debug found_posts"
5810
  msgstr ""
5811
 
5812
- #: includes/class-mla-shortcode-support.php:6151
5813
  msgid "mla_debug JOIN filter"
5814
  msgstr ""
5815
 
5816
- #: includes/class-mla-shortcode-support.php:6192
5817
  msgid "mla_debug modified JOIN filter"
5818
  msgstr ""
5819
 
5820
- #: includes/class-mla-shortcode-support.php:6217
5821
  msgid "mla_debug WHERE filter"
5822
  msgstr ""
5823
 
5824
- #: includes/class-mla-shortcode-support.php:6254
5825
  msgid "mla_debug modified WHERE filter"
5826
  msgstr ""
5827
 
5828
- #: includes/class-mla-shortcode-support.php:6277
5829
  msgid "mla_debug ORDER BY filter, incoming"
5830
  msgstr ""
5831
 
5832
- #: includes/class-mla-shortcode-support.php:6277
5833
  msgid "Replacement ORDER BY clause"
5834
  msgstr ""
5835
 
5836
- #: includes/class-mla-shortcode-support.php:6318
5837
  msgid "mla_debug posts_clauses filter"
5838
  msgstr ""
5839
 
5840
- #: includes/class-mla-shortcode-support.php:6336
5841
  msgid "mla_debug posts_clauses_request filter"
5842
  msgstr ""
5843
 
5844
- #: includes/class-mla-shortcode-support.php:6475
5845
  msgid "mla_debug results"
5846
  msgstr ""
5847
 
5848
- #: includes/class-mla-shortcode-support.php:6707
5849
  msgid "Invalid taxonomy"
5850
  msgstr ""
5851
 
5852
- #: includes/class-mla-shortcode-support.php:6899
5853
  msgid "mla_debug query arguments"
5854
  msgstr ""
5855
 
5856
- #: includes/class-mla-shortcode-support.php:6900
5857
  msgid "mla_debug last_query"
5858
  msgstr ""
5859
 
5860
- #: includes/class-mla-shortcode-support.php:6901
5861
  msgid "mla_debug last_error"
5862
  msgstr ""
5863
 
5864
- #: includes/class-mla-shortcode-support.php:6902
5865
  msgid "mla_debug num_rows"
5866
  msgstr ""
5867
 
5868
- #: includes/class-mla-shortcode-support.php:6903
5869
  msgid "mla_debug found_rows"
5870
  msgstr ""
5871
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Media Library Assistant\n"
5
+ "POT-Creation-Date: 2021-08-10 17:47-0700\n"
6
  "PO-Revision-Date: 2015-08-21 21:38-0800\n"
7
  "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
8
  "Language-Team: David Lingren <david@davidlingren.com>\n"
226
  msgstr ""
227
 
228
  #: includes/class-mla-ajax.php:337 includes/class-mla-main.php:2084
229
+ #: includes/class-mla-settings-custom-fields-tab.php:524
230
+ #: includes/class-mla-settings-custom-fields-tab.php:834
231
+ #: includes/class-mla-settings-iptc-exif-tab.php:553
232
+ #: includes/class-mla-settings-iptc-exif-tab.php:941
233
  #: includes/class-mla-settings-upload-tab.php:553
234
  msgid "Status"
235
  msgstr ""
308
  #: includes/class-mla-options.php:1133 includes/class-mla-options.php:1973
309
  #: includes/class-mla-options.php:2199
310
  #: includes/class-mla-settings-custom-fields-tab.php:169
311
+ #: includes/class-mla-settings-custom-fields-tab.php:252
312
+ #: includes/class-mla-settings-custom-fields-tab.php:256
313
+ #: includes/class-mla-settings-custom-fields-tab.php:277
314
+ #: includes/class-mla-settings-custom-fields-tab.php:323
315
+ #: includes/class-mla-settings-custom-fields-tab.php:327
316
+ #: includes/class-mla-settings-custom-fields-tab.php:350
317
+ #: includes/class-mla-settings-custom-fields-tab.php:442
318
+ #: includes/class-mla-settings-custom-fields-tab.php:578
319
+ #: includes/class-mla-settings-custom-fields-tab.php:749
320
+ #: includes/class-mla-settings-custom-fields-tab.php:972
321
+ #: includes/class-mla-settings-custom-fields-tab.php:975
322
+ #: includes/class-mla-settings-custom-fields-tab.php:998
323
+ #: includes/class-mla-settings-custom-fields-tab.php:2079
324
  #: includes/class-mla-settings-documentation-tab.php:142
325
  #: includes/class-mla-settings-documentation-tab.php:337
326
  #: includes/class-mla-settings-documentation-tab.php:1278
327
  #: includes/class-mla-settings-iptc-exif-tab.php:171
328
+ #: includes/class-mla-settings-iptc-exif-tab.php:258
329
+ #: includes/class-mla-settings-iptc-exif-tab.php:262
330
+ #: includes/class-mla-settings-iptc-exif-tab.php:282
331
+ #: includes/class-mla-settings-iptc-exif-tab.php:331
332
+ #: includes/class-mla-settings-iptc-exif-tab.php:335
333
+ #: includes/class-mla-settings-iptc-exif-tab.php:365
334
+ #: includes/class-mla-settings-iptc-exif-tab.php:370
335
+ #: includes/class-mla-settings-iptc-exif-tab.php:460
336
+ #: includes/class-mla-settings-iptc-exif-tab.php:686
337
+ #: includes/class-mla-settings-iptc-exif-tab.php:855
338
+ #: includes/class-mla-settings-iptc-exif-tab.php:1063
339
+ #: includes/class-mla-settings-iptc-exif-tab.php:1067
340
+ #: includes/class-mla-settings-iptc-exif-tab.php:1097
341
+ #: includes/class-mla-settings-iptc-exif-tab.php:2354
342
  #: includes/class-mla-settings-shortcodes-tab.php:102
343
  #: includes/class-mla-settings-shortcodes-tab.php:113
344
  #: includes/class-mla-settings-shortcodes-tab.php:117
368
  #: includes/class-mla-settings.php:1792 includes/class-mla-settings.php:1799
369
  #: includes/class-mla-settings.php:1808 includes/class-mla-settings.php:1845
370
  #: includes/class-mla-settings.php:1853 includes/class-mla-settings.php:1862
371
+ #: includes/class-mla-shortcode-support.php:2260
372
+ #: includes/class-mla-shortcode-support.php:2355
373
+ #: includes/class-mla-shortcode-support.php:3739
374
+ #: includes/class-mla-shortcode-support.php:3903
375
+ #: includes/class-mla-shortcode-support.php:3935
376
+ #: includes/class-mla-shortcode-support.php:5253
377
+ #: includes/class-mla-shortcode-support.php:5323
 
 
378
  #: includes/class-mla-shortcode-support.php:5788
379
  #: includes/class-mla-shortcode-support.php:5804
380
+ #: includes/class-mla-shortcode-support.php:5827
381
+ #: includes/class-mla-shortcode-support.php:5843
382
  #: includes/class-mla-thumbnail-generation.php:437
383
  #: includes/class-mla-thumbnail-generation.php:449
384
  #: includes/class-mla-thumbnail-generation.php:461
470
 
471
  #: includes/class-mla-core-options.php:477
472
  #: includes/class-mla-core-options.php:487 includes/class-mla-main.php:2438
473
+ #: includes/class-mla-settings-custom-fields-tab.php:764
474
+ #: includes/class-mla-settings-iptc-exif-tab.php:870
475
  msgid "Refresh"
476
  msgstr ""
477
 
1317
  #: includes/class-mla-core-options.php:1224 includes/class-mla-data.php:4410
1318
  #: includes/class-mla-edit-media.php:483 includes/class-mla-main.php:2406
1319
  #: includes/class-mla-options.php:478
1320
+ #: includes/class-mla-settings-custom-fields-tab.php:480
1321
+ #: includes/class-mla-settings-iptc-exif-tab.php:501
1322
  #: includes/class-mla-settings-upload-tab.php:199
1323
  #: includes/class-mla-settings-upload-tab.php:543
1324
  #: includes/class-mla-settings-view-tab.php:128
1356
 
1357
  #: includes/class-mla-core-options.php:1266
1358
  #: includes/class-mla-mime-types.php:1696
1359
+ #: includes/class-mla-settings-custom-fields-tab.php:2501
1360
  #: includes/class-mla-settings-documentation-tab.php:1545
1361
+ #: includes/class-mla-settings-iptc-exif-tab.php:2813
1362
  #: includes/class-mla-settings-shortcodes-tab.php:1984
1363
  msgctxt "table_view_singular"
1364
  msgid "All"
1366
 
1367
  #: includes/class-mla-core-options.php:1267
1368
  #: includes/class-mla-mime-types.php:1697
1369
+ #: includes/class-mla-settings-custom-fields-tab.php:2502
1370
  #: includes/class-mla-settings-documentation-tab.php:1546
1371
+ #: includes/class-mla-settings-iptc-exif-tab.php:2814
1372
  #: includes/class-mla-settings-shortcodes-tab.php:1985
1373
  msgctxt "table_view_plural"
1374
  msgid "All"
1712
  msgstr ""
1713
 
1714
  #: includes/class-mla-data-query.php:294
1715
+ #: includes/class-mla-settings-custom-fields-tab.php:1250
1716
  #: includes/class-mla-settings-documentation-tab.php:536
1717
+ #: includes/class-mla-settings-iptc-exif-tab.php:1353
1718
  #: includes/class-mla-settings-shortcodes-tab.php:978
1719
  msgctxt "list_table_column"
1720
  msgid "Name"
1762
 
1763
  #: includes/class-mla-data-query.php:303 includes/class-mla-mime-types.php:635
1764
  #: includes/class-mla-mime-types.php:708 includes/class-mla-mime-types.php:787
1765
+ #: includes/class-mla-settings-custom-fields-tab.php:1260
1766
  #: includes/class-mla-settings-documentation-tab.php:539
1767
+ #: includes/class-mla-settings-iptc-exif-tab.php:1365
1768
  #: includes/class-mla-settings-shortcodes-tab.php:981
1769
  msgctxt "list_table_column"
1770
  msgid "Description"
1989
  msgstr ""
1990
 
1991
  #: includes/class-mla-data.php:3770
1992
+ #: includes/class-mla-settings-custom-fields-tab.php:841
1993
+ #: includes/class-mla-settings-custom-fields-tab.php:1563
1994
+ #: includes/class-mla-settings-iptc-exif-tab.php:949
1995
+ #: includes/class-mla-settings-iptc-exif-tab.php:1697
1996
+ #: includes/class-mla-settings-iptc-exif-tab.php:2523
1997
  #: includes/class-mla-settings-view-tab.php:401
1998
  #: includes/class-mla-settings-view-tab.php:802
1999
  #: includes/class-mla-settings-view-tab.php:818
2002
  msgstr ""
2003
 
2004
  #: includes/class-mla-data.php:3772
2005
+ #: includes/class-mla-settings-custom-fields-tab.php:842
2006
+ #: includes/class-mla-settings-custom-fields-tab.php:1565
2007
+ #: includes/class-mla-settings-iptc-exif-tab.php:950
2008
+ #: includes/class-mla-settings-iptc-exif-tab.php:1699
2009
+ #: includes/class-mla-settings-iptc-exif-tab.php:2523
2010
  #: includes/class-mla-settings-view-tab.php:400
2011
  #: includes/class-mla-settings-view-tab.php:804
2012
  #: includes/class-mla-settings-view-tab.php:820
2096
  #: includes/class-mla-list-table.php:1134
2097
  #: includes/class-mla-list-table.php:1137
2098
  #: includes/class-mla-list-table.php:1205 includes/class-mla-options.php:2143
2099
+ #: includes/class-mla-settings-iptc-exif-tab.php:526
2100
+ #: includes/class-mla-settings-iptc-exif-tab.php:919
2101
  msgid "Parent"
2102
  msgstr ""
2103
 
2222
  #: includes/class-mla-main.php:2206 includes/class-mla-media-modal.php:618
2223
  #: includes/class-mla-mime-types.php:825 includes/class-mla-mime-types.php:1466
2224
  #: includes/class-mla-mime-types.php:2645
2225
+ #: includes/class-mla-settings-custom-fields-tab.php:578
2226
+ #: includes/class-mla-settings-custom-fields-tab.php:749
2227
+ #: includes/class-mla-settings-custom-fields-tab.php:2079
2228
  #: includes/class-mla-settings-documentation-tab.php:337
2229
  #: includes/class-mla-settings-documentation-tab.php:1278
2230
+ #: includes/class-mla-settings-iptc-exif-tab.php:686
2231
+ #: includes/class-mla-settings-iptc-exif-tab.php:855
2232
+ #: includes/class-mla-settings-iptc-exif-tab.php:2354
2233
  #: includes/class-mla-settings-shortcodes-tab.php:524
2234
  #: includes/class-mla-settings-shortcodes-tab.php:1643
2235
  #: includes/class-mla-settings-upload-tab.php:322
2269
  #: includes/class-mla-edit-media.php:365 includes/class-mla-edit-media.php:421
2270
  #: includes/class-mla-edit-media.php:430 includes/class-mla-main.php:2272
2271
  #: includes/class-mla-main.php:2338 includes/class-mla-main.php:2347
2272
+ #: includes/class-mla-settings-custom-fields-tab.php:502
2273
+ #: includes/class-mla-settings-custom-fields-tab.php:812
2274
+ #: includes/class-mla-settings-custom-fields-tab.php:1549
2275
+ #: includes/class-mla-settings-iptc-exif-tab.php:520
2276
+ #: includes/class-mla-settings-iptc-exif-tab.php:916
2277
+ #: includes/class-mla-settings-iptc-exif-tab.php:1638
2278
+ #: includes/class-mla-settings-iptc-exif-tab.php:2504
2279
  msgid "Replace"
2280
  msgstr ""
2281
 
2292
 
2293
  #: includes/class-mla-edit-media.php:476 includes/class-mla-main.php:2427
2294
  #: includes/class-mla-main.php:2483
2295
+ #: includes/class-mla-settings-custom-fields-tab.php:840
2296
+ #: includes/class-mla-settings-iptc-exif-tab.php:948
2297
  #: includes/class-mla-settings-upload-tab.php:120
2298
  #: includes/class-mla-settings-upload-tab.php:554
2299
  #: includes/class-mla-settings-view-tab.php:399
2372
  #: includes/class-mla-edit-media.php:729 includes/class-mla-main.php:2090
2373
  #: includes/class-mla-main.php:2418
2374
  #: includes/class-mla-polylang-support.php:2083
2375
+ #: includes/class-mla-settings-custom-fields-tab.php:530
2376
+ #: includes/class-mla-settings-custom-fields-tab.php:761
2377
+ #: includes/class-mla-settings-custom-fields-tab.php:843
2378
  #: includes/class-mla-settings-documentation-tab.php:210
2379
+ #: includes/class-mla-settings-iptc-exif-tab.php:559
2380
+ #: includes/class-mla-settings-iptc-exif-tab.php:867
2381
+ #: includes/class-mla-settings-iptc-exif-tab.php:951
2382
  #: includes/class-mla-settings-shortcodes-tab.php:426
2383
  #: includes/class-mla-settings-shortcodes-tab.php:497
2384
  #: includes/class-mla-settings-upload-tab.php:202
2403
  #: includes/class-mla-list-table.php:1619
2404
  #: includes/class-mla-list-table.php:1972
2405
  #: includes/class-mla-polylang-support.php:378
2406
+ #: includes/class-mla-settings-custom-fields-tab.php:1392
2407
+ #: includes/class-mla-settings-custom-fields-tab.php:1739
2408
+ #: includes/class-mla-settings-iptc-exif-tab.php:1497
2409
+ #: includes/class-mla-settings-iptc-exif-tab.php:1873
2410
  #: includes/class-mla-settings-shortcodes-tab.php:1096
2411
  #: includes/class-mla-settings-upload-tab.php:928
2412
  #: includes/class-mla-settings-upload-tab.php:1213
2474
  msgstr ""
2475
 
2476
  #: includes/class-mla-list-table.php:500
2477
+ #: includes/class-mla-settings-custom-fields-tab.php:1037
2478
+ #: includes/class-mla-settings-iptc-exif-tab.php:1136
2479
  #: includes/class-mla-settings-upload-tab.php:653
2480
  #: includes/class-mla-settings-view-tab.php:496
2481
  msgid "List View"
2497
  msgstr ""
2498
 
2499
  #: includes/class-mla-list-table.php:648
2500
+ #: includes/class-mla-settings-custom-fields-tab.php:1340
2501
  #: includes/class-mla-settings-documentation-tab.php:620
2502
+ #: includes/class-mla-settings-iptc-exif-tab.php:1445
2503
  #: includes/class-mla-settings-shortcodes-tab.php:1051
2504
  #: includes/class-mla-settings-upload-tab.php:864
2505
  #: includes/class-mla-settings-upload-tab.php:1417
2517
  msgstr ""
2518
 
2519
  #: includes/class-mla-list-table.php:820
2520
+ #: includes/class-mla-settings-custom-fields-tab.php:1392
2521
+ #: includes/class-mla-settings-iptc-exif-tab.php:1497
2522
  #: includes/class-mla-settings-shortcodes-tab.php:1096
2523
  #: includes/class-mla-settings-upload-tab.php:928
2524
  #: includes/class-mla-settings-view-tab.php:723
2526
  msgstr ""
2527
 
2528
  #: includes/class-mla-list-table.php:821
2529
+ #: includes/class-mla-settings-custom-fields-tab.php:1395
2530
+ #: includes/class-mla-settings-iptc-exif-tab.php:1500
2531
  #: includes/class-mla-settings-upload-tab.php:930
2532
  #: includes/class-mla-settings-view-tab.php:725
2533
  msgid "Edit this item inline"
2535
 
2536
  #: includes/class-mla-list-table.php:821 includes/class-mla-main.php:2402
2537
  #: includes/class-mla-options.php:1244
2538
+ #: includes/class-mla-settings-custom-fields-tab.php:493
2539
+ #: includes/class-mla-settings-custom-fields-tab.php:803
2540
+ #: includes/class-mla-settings-custom-fields-tab.php:1395
2541
+ #: includes/class-mla-settings-custom-fields-tab.php:1505
2542
+ #: includes/class-mla-settings-iptc-exif-tab.php:895
2543
+ #: includes/class-mla-settings-iptc-exif-tab.php:1500
2544
  #: includes/class-mla-settings-upload-tab.php:930
2545
  #: includes/class-mla-settings-view-tab.php:725
2546
  msgid "Quick Edit"
2555
  msgstr ""
2556
 
2557
  #: includes/class-mla-list-table.php:832
2558
+ #: includes/class-mla-settings-custom-fields-tab.php:1403
2559
+ #: includes/class-mla-settings-iptc-exif-tab.php:1510
2560
  #: includes/class-mla-settings-shortcodes-tab.php:1102
2561
  #: includes/class-mla-settings-upload-tab.php:934
2562
  #: includes/class-mla-settings-view-tab.php:731
2565
 
2566
  #: includes/class-mla-list-table.php:832 includes/class-mla-list-table.php:1970
2567
  #: includes/class-mla-list-table.php:1977
2568
+ #: includes/class-mla-settings-custom-fields-tab.php:1403
2569
+ #: includes/class-mla-settings-custom-fields-tab.php:1740
2570
+ #: includes/class-mla-settings-iptc-exif-tab.php:1510
2571
+ #: includes/class-mla-settings-iptc-exif-tab.php:1874
2572
  #: includes/class-mla-settings-shortcodes-tab.php:1102
2573
  #: includes/class-mla-settings-upload-tab.php:934
2574
  #: includes/class-mla-settings-view-tab.php:731
2636
  msgstr[1] ""
2637
 
2638
  #: includes/class-mla-list-table.php:2071
2639
+ #: includes/class-mla-settings-custom-fields-tab.php:1803
2640
+ #: includes/class-mla-settings-iptc-exif-tab.php:1937
2641
  #: includes/class-mla-settings-shortcodes-tab.php:1361
2642
  msgid "Filter"
2643
  msgstr ""
2766
  msgstr ""
2767
 
2768
  #: includes/class-mla-main.php:1462
2769
+ #: includes/class-mla-settings-custom-fields-tab.php:635
2770
  #: includes/class-mla-settings-documentation-tab.php:287
2771
+ #: includes/class-mla-settings-iptc-exif-tab.php:743
2772
  #: includes/class-mla-settings-shortcodes-tab.php:586
2773
  #: includes/class-mla-settings-upload-tab.php:421
2774
  #: includes/class-mla-settings-view-tab.php:267
2802
  msgstr ""
2803
 
2804
  #: includes/class-mla-main.php:1688
2805
+ #: includes/class-mla-settings-custom-fields-tab.php:663
2806
  #: includes/class-mla-settings-documentation-tab.php:321
2807
+ #: includes/class-mla-settings-iptc-exif-tab.php:771
2808
  #: includes/class-mla-settings-shortcodes-tab.php:613
2809
  #: includes/class-mla-settings-upload-tab.php:459
2810
  #: includes/class-mla-settings-view-tab.php:304
2826
 
2827
  #: includes/class-mla-main.php:1858 includes/class-mla-main.php:2094
2828
  #: includes/class-mla-main.php:2420
2829
+ #: includes/class-mla-settings-custom-fields-tab.php:532
2830
+ #: includes/class-mla-settings-custom-fields-tab.php:844
2831
  #: includes/class-mla-settings-documentation-tab.php:664
2832
  #: includes/class-mla-settings-documentation-tab.php:863
2833
+ #: includes/class-mla-settings-iptc-exif-tab.php:561
2834
+ #: includes/class-mla-settings-iptc-exif-tab.php:952
2835
  #: includes/class-mla-settings-shortcodes-tab.php:500
2836
  #: includes/class-mla-settings-upload-tab.php:201
2837
  #: includes/class-mla-settings-upload-tab.php:551
2849
  msgstr ""
2850
 
2851
  #: includes/class-mla-main.php:2085
2852
+ #: includes/class-mla-shortcode-support.php:1232
2853
  msgid "Unattached"
2854
  msgstr ""
2855
 
2856
  #: includes/class-mla-main.php:2421 includes/class-mla-options.php:1258
2857
+ #: includes/class-mla-settings-custom-fields-tab.php:496
2858
+ #: includes/class-mla-settings-custom-fields-tab.php:806
2859
+ #: includes/class-mla-settings-custom-fields-tab.php:1509
2860
+ #: includes/class-mla-settings-iptc-exif-tab.php:896
2861
  #: includes/class-mla-settings-upload-tab.php:552
2862
  #: includes/class-mla-settings-view-tab.php:398
2863
  msgid "Bulk Edit"
2999
  msgstr ""
3000
 
3001
  #: includes/class-mla-mime-types.php:629
3002
+ #: includes/class-mla-settings-custom-fields-tab.php:1252
3003
  msgctxt "list_table_column"
3004
  msgid "Source"
3005
  msgstr ""
3006
 
3007
  #: includes/class-mla-mime-types.php:630
3008
+ #: includes/class-mla-settings-custom-fields-tab.php:1255
3009
+ #: includes/class-mla-settings-iptc-exif-tab.php:1359
3010
  msgctxt "list_table_column"
3011
  msgid "Status"
3012
  msgstr ""
3177
  msgstr ""
3178
 
3179
  #: includes/class-mla-mime-types.php:1716
3180
+ #: includes/class-mla-settings-iptc-exif-tab.php:2825
3181
  msgctxt "table_view_singular"
3182
  msgid "Custom"
3183
  msgstr ""
3184
 
3185
  #: includes/class-mla-mime-types.php:1717
3186
+ #: includes/class-mla-settings-iptc-exif-tab.php:2826
3187
  msgctxt "table_view_plural"
3188
  msgid "Custom"
3189
  msgstr ""
3485
  msgstr ""
3486
 
3487
  #: includes/class-mla-options.php:469
3488
+ #: includes/class-mla-settings-custom-fields-tab.php:472
3489
+ #: includes/class-mla-settings-custom-fields-tab.php:790
3490
+ #: includes/class-mla-settings-iptc-exif-tab.php:493
3491
+ #: includes/class-mla-settings-iptc-exif-tab.php:897
3492
  #: includes/class-mla-settings-shortcodes-tab.php:422
3493
  #: includes/class-mla-settings-shortcodes-tab.php:493
3494
  #: includes/mla-main-search-box-template.php:49
3557
  msgstr ""
3558
 
3559
  #: includes/class-mla-options.php:1195
3560
+ #: includes/class-mla-settings-custom-fields-tab.php:484
3561
+ #: includes/class-mla-settings-custom-fields-tab.php:794
3562
  msgid "Data Source"
3563
  msgstr ""
3564
 
3584
 
3585
  #: includes/class-mla-options.php:1209 includes/class-mla-options.php:2027
3586
  #: includes/class-mla-options.php:2129 includes/class-mla-options.php:2283
3587
+ #: includes/class-mla-settings-custom-fields-tab.php:498
3588
+ #: includes/class-mla-settings-custom-fields-tab.php:808
3589
+ #: includes/class-mla-settings-iptc-exif-tab.php:516
3590
+ #: includes/class-mla-settings-iptc-exif-tab.php:912
3591
  msgid "Existing Text"
3592
  msgstr ""
3593
 
3594
  #: includes/class-mla-options.php:1216 includes/class-mla-options.php:2290
3595
+ #: includes/class-mla-settings-custom-fields-tab.php:503
3596
+ #: includes/class-mla-settings-custom-fields-tab.php:813
3597
+ #: includes/class-mla-settings-iptc-exif-tab.php:531
3598
+ #: includes/class-mla-settings-iptc-exif-tab.php:920
3599
  msgid "Format"
3600
  msgstr ""
3601
 
3612
  msgstr ""
3613
 
3614
  #: includes/class-mla-options.php:1230
3615
+ #: includes/class-mla-settings-custom-fields-tab.php:490
3616
+ #: includes/class-mla-settings-custom-fields-tab.php:800
3617
+ #: includes/class-mla-settings-custom-fields-tab.php:1501
3618
  msgid "MLA Column"
3619
  msgstr ""
3620
 
3623
  msgstr ""
3624
 
3625
  #: includes/class-mla-options.php:1273 includes/class-mla-options.php:2297
3626
+ #: includes/class-mla-settings-custom-fields-tab.php:510
3627
+ #: includes/class-mla-settings-custom-fields-tab.php:820
3628
+ #: includes/class-mla-settings-iptc-exif-tab.php:538
3629
+ #: includes/class-mla-settings-iptc-exif-tab.php:927
3630
  msgid "Option"
3631
  msgstr ""
3632
 
3633
  #: includes/class-mla-options.php:1287 includes/class-mla-options.php:2311
3634
+ #: includes/class-mla-settings-iptc-exif-tab.php:550
3635
  msgid "Delete NULL values"
3636
  msgstr ""
3637
 
3646
 
3647
  #: includes/class-mla-options.php:1992 includes/class-mla-options.php:2094
3648
  #: includes/class-mla-options.php:2248
3649
+ #: includes/class-mla-settings-iptc-exif-tab.php:505
3650
+ #: includes/class-mla-settings-iptc-exif-tab.php:901
3651
  msgid "IPTC Value"
3652
  msgstr ""
3653
 
3668
 
3669
  #: includes/class-mla-options.php:2013 includes/class-mla-options.php:2115
3670
  #: includes/class-mla-options.php:2269
3671
+ #: includes/class-mla-settings-iptc-exif-tab.php:511
3672
+ #: includes/class-mla-settings-iptc-exif-tab.php:907
3673
  msgid "Priority"
3674
  msgstr ""
3675
 
3865
  msgstr ""
3866
 
3867
  #: includes/class-mla-polylang-support.php:2602
3868
+ #: includes/class-mla-settings-custom-fields-tab.php:686
3869
+ #: includes/class-mla-settings-custom-fields-tab.php:787
3870
+ #: includes/class-mla-settings-iptc-exif-tab.php:794
3871
+ #: includes/class-mla-settings-iptc-exif-tab.php:892
3872
  #: includes/class-mla-settings-shortcodes-tab.php:733
3873
  #: includes/class-mla-settings-upload-tab.php:485
3874
  #: includes/class-mla-settings-upload-tab.php:531
3980
  "%1$s mapping completed; %2$d attachment(s) examined, no changes detected."
3981
  msgstr ""
3982
 
3983
+ #: includes/class-mla-settings-custom-fields-tab.php:252
3984
+ #: includes/class-mla-settings-iptc-exif-tab.php:258
3985
  msgid ": No custom field name selected/entered"
3986
  msgstr ""
3987
 
3988
+ #: includes/class-mla-settings-custom-fields-tab.php:256
3989
+ #: includes/class-mla-settings-custom-fields-tab.php:323
3990
+ #: includes/class-mla-settings-iptc-exif-tab.php:262
3991
+ #: includes/class-mla-settings-iptc-exif-tab.php:331
3992
  msgid ": Rule already exists for the new name"
3993
  msgstr ""
3994
 
3995
+ #: includes/class-mla-settings-custom-fields-tab.php:274
3996
+ #: includes/class-mla-settings-iptc-exif-tab.php:279
3997
  msgid "Rule added"
3998
  msgstr ""
3999
 
4000
+ #: includes/class-mla-settings-custom-fields-tab.php:277
4001
+ #: includes/class-mla-settings-iptc-exif-tab.php:282
4002
  msgid ": Rule addition failed"
4003
  msgstr ""
4004
 
4005
+ #: includes/class-mla-settings-custom-fields-tab.php:327
4006
+ #: includes/class-mla-settings-iptc-exif-tab.php:335
4007
  msgid ": Invalid rule name must be changed"
4008
  msgstr ""
4009
 
4010
+ #: includes/class-mla-settings-custom-fields-tab.php:350
4011
+ #: includes/class-mla-settings-custom-fields-tab.php:442
4012
+ #: includes/class-mla-settings-custom-fields-tab.php:998
4013
+ #: includes/class-mla-settings-iptc-exif-tab.php:365
4014
+ #: includes/class-mla-settings-iptc-exif-tab.php:370
4015
+ #: includes/class-mla-settings-iptc-exif-tab.php:460
4016
+ #: includes/class-mla-settings-iptc-exif-tab.php:1097
4017
  msgid ": Rule update failed"
4018
  msgstr ""
4019
 
4020
+ #: includes/class-mla-settings-custom-fields-tab.php:355
4021
+ #: includes/class-mla-settings-custom-fields-tab.php:445
4022
+ #: includes/class-mla-settings-iptc-exif-tab.php:375
4023
+ #: includes/class-mla-settings-iptc-exif-tab.php:463
4024
  msgid "Rule updated"
4025
  msgstr ""
4026
 
4027
+ #: includes/class-mla-settings-custom-fields-tab.php:379
4028
+ #: includes/class-mla-settings-iptc-exif-tab.php:399
4029
  #, php-format
4030
  msgid "Custom Field Rule \"%1$s\" deleted."
4031
  msgstr ""
4032
 
4033
+ #: includes/class-mla-settings-custom-fields-tab.php:466
4034
+ #: includes/class-mla-settings-iptc-exif-tab.php:484
4035
  msgid "Edit Rule"
4036
  msgstr ""
4037
 
4038
+ #: includes/class-mla-settings-custom-fields-tab.php:475
4039
+ #: includes/class-mla-settings-iptc-exif-tab.php:496
4040
  msgid ""
4041
  "This is the name of the custom field to which the rule applies.<br>Only one "
4042
  "rule is allowed for each custom field."
4043
  msgstr ""
4044
 
4045
+ #: includes/class-mla-settings-custom-fields-tab.php:476
4046
+ #: includes/class-mla-settings-iptc-exif-tab.php:497
4047
  msgid "Change Name"
4048
  msgstr ""
4049
 
4050
+ #: includes/class-mla-settings-custom-fields-tab.php:477
4051
+ #: includes/class-mla-settings-iptc-exif-tab.php:498
4052
  msgid "Cancel Name Change"
4053
  msgstr ""
4054
 
4055
+ #: includes/class-mla-settings-custom-fields-tab.php:478
4056
+ #: includes/class-mla-settings-custom-fields-tab.php:792
4057
+ #: includes/class-mla-settings-iptc-exif-tab.php:499
4058
+ #: includes/class-mla-settings-iptc-exif-tab.php:899
4059
  msgid "Enter new field"
4060
  msgstr ""
4061
 
4062
+ #: includes/class-mla-settings-custom-fields-tab.php:479
4063
+ #: includes/class-mla-settings-custom-fields-tab.php:793
4064
+ #: includes/class-mla-settings-iptc-exif-tab.php:500
4065
+ #: includes/class-mla-settings-iptc-exif-tab.php:900
4066
  msgid "Cancel new field"
4067
  msgstr ""
4068
 
4069
+ #: includes/class-mla-settings-custom-fields-tab.php:483
4070
+ msgid "Notes for the Custom Fields tab submenu table."
4071
+ msgstr ""
4072
+
4073
+ #: includes/class-mla-settings-custom-fields-tab.php:486
4074
+ #: includes/class-mla-settings-custom-fields-tab.php:796
4075
  msgid "Meta/Template"
4076
  msgstr ""
4077
 
4078
+ #: includes/class-mla-settings-custom-fields-tab.php:488
4079
+ #: includes/class-mla-settings-custom-fields-tab.php:798
4080
  msgid "WordPress attachment metadata element or Content Template"
4081
  msgstr ""
4082
 
4083
+ #: includes/class-mla-settings-custom-fields-tab.php:491
4084
+ #: includes/class-mla-settings-custom-fields-tab.php:801
4085
  msgid "Display as Media/Assistant column"
4086
  msgstr ""
4087
 
4088
+ #: includes/class-mla-settings-custom-fields-tab.php:494
4089
+ #: includes/class-mla-settings-custom-fields-tab.php:804
4090
  msgid "Add to Media/Assistant Quick Edit area"
4091
  msgstr ""
4092
 
4093
+ #: includes/class-mla-settings-custom-fields-tab.php:497
4094
+ #: includes/class-mla-settings-custom-fields-tab.php:807
4095
  msgid "Add to Media/Assistant Bulk Edit area"
4096
  msgstr ""
4097
 
4098
+ #: includes/class-mla-settings-custom-fields-tab.php:500
4099
+ #: includes/class-mla-settings-custom-fields-tab.php:810
4100
+ #: includes/class-mla-settings-custom-fields-tab.php:1547
4101
+ #: includes/class-mla-settings-iptc-exif-tab.php:518
4102
+ #: includes/class-mla-settings-iptc-exif-tab.php:914
4103
+ #: includes/class-mla-settings-iptc-exif-tab.php:1636
4104
+ #: includes/class-mla-settings-iptc-exif-tab.php:2504
4105
  #: includes/class-mla-thumbnail-generation.php:650
4106
  msgid "Keep"
4107
  msgstr ""
4108
 
4109
+ #: includes/class-mla-settings-custom-fields-tab.php:505
4110
+ #: includes/class-mla-settings-custom-fields-tab.php:815
4111
+ #: includes/class-mla-settings-iptc-exif-tab.php:533
4112
+ #: includes/class-mla-settings-iptc-exif-tab.php:922
4113
  msgid "Native"
4114
  msgstr ""
4115
 
4116
+ #: includes/class-mla-settings-custom-fields-tab.php:507
4117
+ #: includes/class-mla-settings-custom-fields-tab.php:817
4118
+ #: includes/class-mla-settings-iptc-exif-tab.php:535
4119
+ #: includes/class-mla-settings-iptc-exif-tab.php:924
4120
  msgid "Commas"
4121
  msgstr ""
4122
 
4123
+ #: includes/class-mla-settings-custom-fields-tab.php:509
4124
+ #: includes/class-mla-settings-custom-fields-tab.php:819
4125
+ #: includes/class-mla-settings-iptc-exif-tab.php:537
4126
+ #: includes/class-mla-settings-iptc-exif-tab.php:926
4127
  msgid "Raw"
4128
  msgstr ""
4129
 
4130
+ #: includes/class-mla-settings-custom-fields-tab.php:512
4131
+ #: includes/class-mla-settings-custom-fields-tab.php:822
4132
+ #: includes/class-mla-settings-iptc-exif-tab.php:540
4133
+ #: includes/class-mla-settings-iptc-exif-tab.php:929
4134
  msgid "Text"
4135
  msgstr ""
4136
 
4137
+ #: includes/class-mla-settings-custom-fields-tab.php:514
4138
+ #: includes/class-mla-settings-custom-fields-tab.php:824
4139
+ #: includes/class-mla-settings-iptc-exif-tab.php:542
4140
+ #: includes/class-mla-settings-iptc-exif-tab.php:931
4141
  msgid "Single"
4142
  msgstr ""
4143
 
4144
+ #: includes/class-mla-settings-custom-fields-tab.php:516
4145
+ #: includes/class-mla-settings-custom-fields-tab.php:826
4146
+ #: includes/class-mla-settings-iptc-exif-tab.php:544
4147
+ #: includes/class-mla-settings-iptc-exif-tab.php:933
4148
  msgid "Export"
4149
  msgstr ""
4150
 
4151
+ #: includes/class-mla-settings-custom-fields-tab.php:518
4152
+ #: includes/class-mla-settings-custom-fields-tab.php:828
4153
+ #: includes/class-mla-settings-iptc-exif-tab.php:546
4154
+ #: includes/class-mla-settings-iptc-exif-tab.php:935
4155
  msgid "Array"
4156
  msgstr ""
4157
 
4158
+ #: includes/class-mla-settings-custom-fields-tab.php:520
4159
+ #: includes/class-mla-settings-custom-fields-tab.php:830
4160
+ #: includes/class-mla-settings-iptc-exif-tab.php:548
4161
+ #: includes/class-mla-settings-iptc-exif-tab.php:937
4162
  msgid "Multi"
4163
  msgstr ""
4164
 
4165
+ #: includes/class-mla-settings-custom-fields-tab.php:522
4166
+ #: includes/class-mla-settings-custom-fields-tab.php:832
4167
+ #: includes/class-mla-settings-iptc-exif-tab.php:939
4168
  msgid "Delete NULL Values"
4169
  msgstr ""
4170
 
4171
+ #: includes/class-mla-settings-custom-fields-tab.php:523
4172
+ #: includes/class-mla-settings-custom-fields-tab.php:833
4173
+ #: includes/class-mla-settings-iptc-exif-tab.php:551
4174
+ #: includes/class-mla-settings-iptc-exif-tab.php:940
4175
  msgid "Do not store empty custom field values"
4176
  msgstr ""
4177
 
4178
+ #: includes/class-mla-settings-custom-fields-tab.php:526
4179
+ #: includes/class-mla-settings-custom-fields-tab.php:836
4180
+ #: includes/class-mla-settings-custom-fields-tab.php:1531
4181
+ #: includes/class-mla-settings-custom-fields-tab.php:1762
4182
  #: includes/class-mla-settings-documentation-tab.php:1226
4183
+ #: includes/class-mla-settings-iptc-exif-tab.php:555
4184
+ #: includes/class-mla-settings-iptc-exif-tab.php:943
4185
+ #: includes/class-mla-settings-iptc-exif-tab.php:1652
4186
+ #: includes/class-mla-settings-iptc-exif-tab.php:1896
4187
+ #: includes/class-mla-settings-iptc-exif-tab.php:2507
4188
  #: includes/class-mla-settings-upload-tab.php:555
4189
  #: includes/class-mla-settings-upload-tab.php:1041
4190
  msgid "Active"
4191
  msgstr ""
4192
 
4193
+ #: includes/class-mla-settings-custom-fields-tab.php:528
4194
+ #: includes/class-mla-settings-custom-fields-tab.php:838
4195
+ #: includes/class-mla-settings-custom-fields-tab.php:1533
4196
+ #: includes/class-mla-settings-custom-fields-tab.php:1765
4197
  #: includes/class-mla-settings-documentation-tab.php:1228
4198
+ #: includes/class-mla-settings-iptc-exif-tab.php:557
4199
+ #: includes/class-mla-settings-iptc-exif-tab.php:945
4200
+ #: includes/class-mla-settings-iptc-exif-tab.php:1654
4201
+ #: includes/class-mla-settings-iptc-exif-tab.php:1899
4202
+ #: includes/class-mla-settings-iptc-exif-tab.php:2507
4203
  #: includes/class-mla-settings-upload-tab.php:197
4204
  #: includes/class-mla-settings-upload-tab.php:541
4205
  #: includes/class-mla-settings-upload-tab.php:1039
4206
  msgid "Inactive"
4207
  msgstr ""
4208
 
4209
+ #: includes/class-mla-settings-custom-fields-tab.php:560
4210
+ #: includes/class-mla-settings-iptc-exif-tab.php:668
4211
  #, php-format
4212
  msgid "Custom Field Rule \"%1$s\": %2$s"
4213
  msgstr ""
4214
 
4215
+ #: includes/class-mla-settings-custom-fields-tab.php:597
4216
  msgid "Edit Custom Field Rule cancelled."
4217
  msgstr ""
4218
 
4219
+ #: includes/class-mla-settings-custom-fields-tab.php:611
4220
+ #: includes/class-mla-settings-custom-fields-tab.php:639
4221
  #: includes/class-mla-settings-documentation-tab.php:277
4222
+ #: includes/class-mla-settings-iptc-exif-tab.php:719
4223
+ #: includes/class-mla-settings-iptc-exif-tab.php:747
4224
  #: includes/class-mla-settings-shortcodes-tab.php:574
4225
  #: includes/class-mla-settings-upload-tab.php:410
4226
  #: includes/class-mla-settings-view-tab.php:257
4228
  msgid "Unknown bulk action %1$s"
4229
  msgstr ""
4230
 
4231
+ #: includes/class-mla-settings-custom-fields-tab.php:683
4232
  msgid "Custom Field Mapping Support is disabled"
4233
  msgstr ""
4234
 
4235
+ #: includes/class-mla-settings-custom-fields-tab.php:754
4236
  msgid "Custom Field Mapping Progress"
4237
  msgstr ""
4238
 
4239
+ #: includes/class-mla-settings-custom-fields-tab.php:755
4240
+ #: includes/class-mla-settings-iptc-exif-tab.php:861
4241
  msgid "DO NOT DO THE FOLLOWING (they will cause mapping to fail)"
4242
  msgstr ""
4243
 
4244
+ #: includes/class-mla-settings-custom-fields-tab.php:756
4245
+ #: includes/class-mla-settings-iptc-exif-tab.php:862
4246
  msgid "Close the window"
4247
  msgstr ""
4248
 
4249
+ #: includes/class-mla-settings-custom-fields-tab.php:757
4250
+ #: includes/class-mla-settings-iptc-exif-tab.php:863
4251
  msgid "Reload the page"
4252
  msgstr ""
4253
 
4254
+ #: includes/class-mla-settings-custom-fields-tab.php:758
4255
+ #: includes/class-mla-settings-iptc-exif-tab.php:864
4256
  msgid "Click the browser&rsquo;s Stop, Back or forward buttons"
4257
  msgstr ""
4258
 
4259
+ #: includes/class-mla-settings-custom-fields-tab.php:759
4260
+ #: includes/class-mla-settings-iptc-exif-tab.php:865
4261
  msgid "Progress"
4262
  msgstr ""
4263
 
4264
+ #: includes/class-mla-settings-custom-fields-tab.php:760
4265
+ #: includes/class-mla-settings-iptc-exif-tab.php:866
4266
  msgid "Pause"
4267
  msgstr ""
4268
 
4269
+ #: includes/class-mla-settings-custom-fields-tab.php:762
4270
+ #: includes/class-mla-settings-iptc-exif-tab.php:868
4271
  msgid "Resume"
4272
  msgstr ""
4273
 
4274
+ #: includes/class-mla-settings-custom-fields-tab.php:763
4275
  #: includes/class-mla-settings-documentation-tab.php:152
4276
+ #: includes/class-mla-settings-iptc-exif-tab.php:869
4277
  #: includes/class-mla-settings-shortcodes-tab.php:497
4278
  #: includes/class-mla-template-support.php:160
4279
  #: includes/class-mla-template-support.php:166
4284
  msgid "Close"
4285
  msgstr ""
4286
 
4287
+ #: includes/class-mla-settings-custom-fields-tab.php:772
4288
  msgid "Custom Field and Attachment Metadata Processing Options"
4289
  msgstr ""
4290
 
4291
+ #: includes/class-mla-settings-custom-fields-tab.php:774
4292
  msgid ""
4293
  "In this tab you can define the rules for mapping several types of image "
4294
  "metadata to WordPress custom fields. You can also use this screen to define "
4297
  "field."
4298
  msgstr ""
4299
 
4300
+ #: includes/class-mla-settings-custom-fields-tab.php:776
4301
+ #: includes/class-mla-settings-iptc-exif-tab.php:882
4302
  msgid ""
4303
  "You can find more information about using the controls in this tab to define "
4304
  "mapping rules and apply them by clicking the \"Help\" control in the upper-"
4305
  "right corner of the screen."
4306
  msgstr ""
4307
 
4308
+ #: includes/class-mla-settings-custom-fields-tab.php:781
4309
+ #: includes/class-mla-settings-iptc-exif-tab.php:887
4310
  #: includes/class-mla-settings-shortcodes-tab.php:731
4311
  msgid "Search results for"
4312
  msgstr ""
4313
 
4314
+ #: includes/class-mla-settings-custom-fields-tab.php:783
4315
+ #: includes/class-mla-settings-iptc-exif-tab.php:888
4316
  msgid "Search Rules Text"
4317
  msgstr ""
4318
 
4319
+ #: includes/class-mla-settings-custom-fields-tab.php:785
4320
+ #: includes/class-mla-settings-iptc-exif-tab.php:890
4321
  msgid "Search Rules"
4322
  msgstr ""
4323
 
4324
+ #: includes/class-mla-settings-custom-fields-tab.php:788
4325
+ #: includes/class-mla-settings-iptc-exif-tab.php:893
4326
  msgid "Execute All Rules"
4327
  msgstr ""
4328
 
4329
+ #: includes/class-mla-settings-custom-fields-tab.php:789
4330
+ #: includes/class-mla-settings-iptc-exif-tab.php:894
4331
  msgid "Add New Custom Field Rule"
4332
  msgstr ""
4333
 
4334
+ #: includes/class-mla-settings-custom-fields-tab.php:839
4335
+ #: includes/class-mla-settings-iptc-exif-tab.php:946
4336
  msgid "Add Rule"
4337
  msgstr ""
4338
 
4339
+ #: includes/class-mla-settings-custom-fields-tab.php:910
4340
+ #: includes/class-mla-settings-custom-fields-tab.php:932
4341
+ #: includes/class-mla-settings-iptc-exif-tab.php:1026
4342
  msgid "Nothing to execute"
4343
  msgstr ""
4344
 
4345
+ #: includes/class-mla-settings-custom-fields-tab.php:972
4346
+ #: includes/class-mla-settings-iptc-exif-tab.php:1067
4347
  msgid "Rule not found"
4348
  msgstr ""
4349
 
4350
+ #: includes/class-mla-settings-custom-fields-tab.php:975
4351
+ #: includes/class-mla-settings-iptc-exif-tab.php:1063
4352
  msgid "Rule ID not found"
4353
  msgstr ""
4354
 
4355
+ #: includes/class-mla-settings-custom-fields-tab.php:1251
4356
+ #: includes/class-mla-settings-iptc-exif-tab.php:1354
4357
  msgctxt "list_table_column"
4358
  msgid "Bad Name"
4359
  msgstr ""
4360
 
4361
+ #: includes/class-mla-settings-custom-fields-tab.php:1253
4362
  msgctxt "list_table_column"
4363
  msgid "Meta/Template"
4364
  msgstr ""
4365
 
4366
+ #: includes/class-mla-settings-custom-fields-tab.php:1254
4367
  msgctxt "list_table_column"
4368
  msgid "Visibility"
4369
  msgstr ""
4370
 
4371
+ #: includes/class-mla-settings-custom-fields-tab.php:1256
4372
+ #: includes/class-mla-settings-iptc-exif-tab.php:1358
4373
  msgctxt "list_table_column"
4374
  msgid "Existing Text"
4375
  msgstr ""
4376
 
4377
+ #: includes/class-mla-settings-custom-fields-tab.php:1257
4378
+ #: includes/class-mla-settings-iptc-exif-tab.php:1362
4379
  msgctxt "list_table_column"
4380
  msgid "Delete NULL"
4381
  msgstr ""
4382
 
4383
+ #: includes/class-mla-settings-custom-fields-tab.php:1258
4384
+ #: includes/class-mla-settings-iptc-exif-tab.php:1363
4385
  msgctxt "list_table_column"
4386
  msgid "Format"
4387
  msgstr ""
4388
 
4389
+ #: includes/class-mla-settings-custom-fields-tab.php:1259
4390
+ #: includes/class-mla-settings-iptc-exif-tab.php:1364
4391
  msgctxt "list_table_column"
4392
  msgid "Option"
4393
  msgstr ""
4394
 
4395
+ #: includes/class-mla-settings-custom-fields-tab.php:1398
4396
+ #: includes/class-mla-settings-iptc-exif-tab.php:1503
4397
  msgid "Map All Attachments"
4398
  msgstr ""
4399
 
4400
+ #: includes/class-mla-settings-custom-fields-tab.php:1398
4401
+ #: includes/class-mla-settings-custom-fields-tab.php:1741
4402
+ #: includes/class-mla-settings-iptc-exif-tab.php:1503
4403
+ #: includes/class-mla-settings-iptc-exif-tab.php:1875
4404
  msgid "Execute"
4405
  msgstr ""
4406
 
4407
+ #: includes/class-mla-settings-custom-fields-tab.php:1400
4408
  msgid "Purge custom field values"
4409
  msgstr ""
4410
 
4411
+ #: includes/class-mla-settings-custom-fields-tab.php:1400
4412
+ #: includes/class-mla-settings-custom-fields-tab.php:1742
4413
+ #: includes/class-mla-settings-iptc-exif-tab.php:1506
4414
+ #: includes/class-mla-settings-iptc-exif-tab.php:1876
4415
  msgid "Purge Values"
4416
  msgstr ""
4417
 
4418
+ #: includes/class-mla-settings-custom-fields-tab.php:1759
4419
+ #: includes/class-mla-settings-iptc-exif-tab.php:1893
4420
  #: includes/class-mla-settings-shortcodes-tab.php:1317
4421
  msgid "Any Status"
4422
  msgstr ""
4423
 
4424
+ #: includes/class-mla-settings-custom-fields-tab.php:2505
4425
  msgctxt "table_view_singular"
4426
  msgid "MLA Column"
4427
  msgstr ""
4428
 
4429
+ #: includes/class-mla-settings-custom-fields-tab.php:2506
4430
  msgctxt "table_view_plural"
4431
  msgid "MLA Column"
4432
  msgstr ""
4433
 
4434
+ #: includes/class-mla-settings-custom-fields-tab.php:2509
4435
  msgctxt "table_view_singular"
4436
  msgid "Quick Edit"
4437
  msgstr ""
4438
 
4439
+ #: includes/class-mla-settings-custom-fields-tab.php:2510
4440
  msgctxt "table_view_plural"
4441
  msgid "Quick Edit"
4442
  msgstr ""
4443
 
4444
+ #: includes/class-mla-settings-custom-fields-tab.php:2513
4445
  msgctxt "table_view_singular"
4446
  msgid "Bulk Edit"
4447
  msgstr ""
4448
 
4449
+ #: includes/class-mla-settings-custom-fields-tab.php:2514
4450
  msgctxt "table_view_plural"
4451
  msgid "Bulk Edit"
4452
  msgstr ""
4453
 
4454
+ #: includes/class-mla-settings-custom-fields-tab.php:2517
4455
+ #: includes/class-mla-settings-iptc-exif-tab.php:2829
4456
  msgctxt "table_view_singular"
4457
  msgid "Read Only"
4458
  msgstr ""
4459
 
4460
+ #: includes/class-mla-settings-custom-fields-tab.php:2518
4461
+ #: includes/class-mla-settings-iptc-exif-tab.php:2830
4462
  msgctxt "table_view_plural"
4463
  msgid "Read Only"
4464
  msgstr ""
4662
  msgid "updated."
4663
  msgstr ""
4664
 
4665
+ #: includes/class-mla-settings-iptc-exif-tab.php:504
4666
+ msgid "Notes for the IPTC/EXIF tab submenu table."
4667
+ msgstr ""
4668
+
4669
+ #: includes/class-mla-settings-iptc-exif-tab.php:507
4670
+ #: includes/class-mla-settings-iptc-exif-tab.php:903
4671
  msgid "EXIF/Template Value"
4672
  msgstr ""
4673
 
4674
+ #: includes/class-mla-settings-iptc-exif-tab.php:510
4675
+ #: includes/class-mla-settings-iptc-exif-tab.php:906
4676
  msgid "EXIF element name or Content Template"
4677
  msgstr ""
4678
 
4679
+ #: includes/class-mla-settings-iptc-exif-tab.php:510
4680
  msgid " (starting with \"template:\")"
4681
  msgstr ""
4682
 
4683
+ #: includes/class-mla-settings-iptc-exif-tab.php:513
4684
+ #: includes/class-mla-settings-iptc-exif-tab.php:909
4685
+ #: includes/class-mla-settings-iptc-exif-tab.php:1620
4686
  msgid "IPTC"
4687
  msgstr ""
4688
 
4689
+ #: includes/class-mla-settings-iptc-exif-tab.php:515
4690
+ #: includes/class-mla-settings-iptc-exif-tab.php:911
4691
+ #: includes/class-mla-settings-iptc-exif-tab.php:1623
4692
  msgid "EXIF"
4693
  msgstr ""
4694
 
4695
+ #: includes/class-mla-settings-iptc-exif-tab.php:523
4696
+ #: includes/class-mla-settings-iptc-exif-tab.php:917
4697
  msgid "Delimiters"
4698
  msgstr ""
4699
 
4700
+ #: includes/class-mla-settings-iptc-exif-tab.php:578
4701
  msgid "Standard field mapping"
4702
  msgstr ""
4703
 
4704
+ #: includes/class-mla-settings-iptc-exif-tab.php:581
4705
  msgid "Taxonomy term mapping"
4706
  msgstr ""
4707
 
4708
+ #: includes/class-mla-settings-iptc-exif-tab.php:604
4709
  msgid "Custom field mapping"
4710
  msgstr ""
4711
 
4712
+ #: includes/class-mla-settings-iptc-exif-tab.php:705
4713
  msgid "Edit IPTC EXIF Rule cancelled."
4714
  msgstr ""
4715
 
4716
+ #: includes/class-mla-settings-iptc-exif-tab.php:791
4717
  msgid "IPTC/EXIF Mapping Support is disabled"
4718
  msgstr ""
4719
 
4720
+ #: includes/class-mla-settings-iptc-exif-tab.php:860
4721
  msgid "IPTC &amp; EXIF Mapping Progress"
4722
  msgstr ""
4723
 
4724
+ #: includes/class-mla-settings-iptc-exif-tab.php:878
4725
  msgid "IPTC &amp; EXIF Processing Options"
4726
  msgstr ""
4727
 
4728
+ #: includes/class-mla-settings-iptc-exif-tab.php:880
4729
  msgid ""
4730
  "In this tab you can define the rules for mapping IPTC (International Press "
4731
  "Telecommunications Council) and EXIF (EXchangeable Image File) metadata to "
4732
  "WordPress standard attachment fields, taxonomy terms and custom fields."
4733
  msgstr ""
4734
 
4735
+ #: includes/class-mla-settings-iptc-exif-tab.php:1355
4736
  msgctxt "list_table_column"
4737
  msgid "IPTC Value"
4738
  msgstr ""
4739
 
4740
+ #: includes/class-mla-settings-iptc-exif-tab.php:1356
4741
  msgctxt "list_table_column"
4742
  msgid "EXIF/Template Value"
4743
  msgstr ""
4744
 
4745
+ #: includes/class-mla-settings-iptc-exif-tab.php:1357
4746
  msgctxt "list_table_column"
4747
  msgid "Priority "
4748
  msgstr ""
4749
 
4750
+ #: includes/class-mla-settings-iptc-exif-tab.php:1360
4751
  msgctxt "list_table_column"
4752
  msgid "Delimiter(s)"
4753
  msgstr ""
4754
 
4755
+ #: includes/class-mla-settings-iptc-exif-tab.php:1361
4756
  msgctxt "list_table_column"
4757
  msgid "Parent"
4758
  msgstr ""
4759
 
4760
+ #: includes/class-mla-settings-iptc-exif-tab.php:1506
4761
  msgid "Purge IPTC EXIF values"
4762
  msgstr ""
4763
 
4764
+ #: includes/class-mla-settings-iptc-exif-tab.php:2817
4765
  msgctxt "table_view_singular"
4766
  msgid "Standard"
4767
  msgstr ""
4768
 
4769
+ #: includes/class-mla-settings-iptc-exif-tab.php:2818
4770
  msgctxt "table_view_plural"
4771
  msgid "Standard"
4772
  msgstr ""
4773
 
4774
+ #: includes/class-mla-settings-iptc-exif-tab.php:2821
4775
  msgctxt "table_view_singular"
4776
  msgid "Taxonomy"
4777
  msgstr ""
4778
 
4779
+ #: includes/class-mla-settings-iptc-exif-tab.php:2822
4780
  msgctxt "table_view_plural"
4781
  msgid "Taxonomy"
4782
  msgstr ""
5705
  msgstr ""
5706
 
5707
  #: includes/class-mla-shortcode-support.php:522
5708
+ #: includes/class-mla-shortcode-support.php:2012
5709
+ #: includes/class-mla-shortcode-support.php:4400
5710
+ #: includes/class-mla-shortcode-support.php:4706
5711
  msgid "Previous"
5712
  msgstr ""
5713
 
5714
  #: includes/class-mla-shortcode-support.php:523
5715
+ #: includes/class-mla-shortcode-support.php:2013
5716
+ #: includes/class-mla-shortcode-support.php:4447
5717
+ #: includes/class-mla-shortcode-support.php:4712
5718
  msgid "Next"
5719
  msgstr ""
5720
 
5721
+ #: includes/class-mla-shortcode-support.php:599
5722
+ #: includes/class-mla-shortcode-support.php:605
5723
+ #: includes/class-mla-shortcode-support.php:2159
5724
+ #: includes/class-mla-shortcode-support.php:2166
5725
+ #: includes/class-mla-shortcode-support.php:3634
5726
+ #: includes/class-mla-shortcode-support.php:3641
5727
  #: includes/class-mla-template-support.php:598
5728
  msgid "not found"
5729
  msgstr ""
5730
 
5731
+ #: includes/class-mla-shortcode-support.php:636
5732
+ #: includes/class-mla-shortcode-support.php:2151
5733
+ #: includes/class-mla-shortcode-support.php:3626
5734
  msgid "mla_debug REQUEST"
5735
  msgstr ""
5736
 
5737
+ #: includes/class-mla-shortcode-support.php:640
5738
+ #: includes/class-mla-shortcode-support.php:642
5739
  msgid "mla_debug attributes_errors"
5740
  msgstr ""
5741
 
5742
+ #: includes/class-mla-shortcode-support.php:648
5743
+ #: includes/class-mla-shortcode-support.php:2152
5744
+ #: includes/class-mla-shortcode-support.php:3627
5745
+ #: includes/class-mla-shortcode-support.php:6430
5746
  msgid "mla_debug attributes"
5747
  msgstr ""
5748
 
5749
+ #: includes/class-mla-shortcode-support.php:649
5750
+ #: includes/class-mla-shortcode-support.php:2153
5751
+ #: includes/class-mla-shortcode-support.php:3628
5752
+ #: includes/class-mla-shortcode-support.php:6431
5753
  msgid "mla_debug arguments"
5754
  msgstr ""
5755
 
5756
+ #: includes/class-mla-shortcode-support.php:741
5757
  msgid "mla_debug empty gallery"
5758
  msgstr ""
5759
 
5760
+ #: includes/class-mla-shortcode-support.php:772
5761
  msgid ""
5762
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
5763
  "<strong>default</strong>, query = "
5764
  msgstr ""
5765
 
5766
+ #: includes/class-mla-shortcode-support.php:1256
5767
  msgid "unknown"
5768
  msgstr ""
5769
 
5770
+ #: includes/class-mla-shortcode-support.php:2290
5771
  msgid "mla_debug empty cloud"
5772
  msgstr ""
5773
 
5774
+ #: includes/class-mla-shortcode-support.php:2409
5775
  msgid "mla_debug adding ANY terms"
5776
  msgstr ""
5777
 
5778
+ #: includes/class-mla-shortcode-support.php:2447
5779
  msgid "mla_debug adding NO terms"
5780
  msgstr ""
5781
 
5782
+ #: includes/class-mla-shortcode-support.php:2485
5783
  msgid "mla_debug adding IGNORE terms"
5784
  msgstr ""
5785
 
5786
+ #: includes/class-mla-shortcode-support.php:3764
5787
  msgid "mla_debug empty list"
5788
  msgstr ""
5789
 
5790
+ #: includes/class-mla-shortcode-support.php:3787
5791
  msgid "no-terms"
5792
  msgstr ""
5793
 
5794
+ #: includes/class-mla-shortcode-support.php:5253
5795
+ #: includes/class-mla-shortcode-support.php:5323
 
 
5796
  #: includes/class-mla-shortcode-support.php:5788
5797
  #: includes/class-mla-shortcode-support.php:5804
5798
+ #: includes/class-mla-shortcode-support.php:5827
5799
+ #: includes/class-mla-shortcode-support.php:5843
5800
  msgid "Invalid mla_gallery"
5801
  msgstr ""
5802
 
5803
+ #: includes/class-mla-shortcode-support.php:6160
5804
+ #: includes/class-mla-shortcode-support.php:6513
5805
  msgid "mla_debug query"
5806
  msgstr ""
5807
 
5808
+ #: includes/class-mla-shortcode-support.php:6161
5809
  msgid "mla_debug request"
5810
  msgstr ""
5811
 
5812
+ #: includes/class-mla-shortcode-support.php:6162
5813
  msgid "mla_debug query_vars"
5814
  msgstr ""
5815
 
5816
+ #: includes/class-mla-shortcode-support.php:6163
5817
  msgid "mla_debug post_count"
5818
  msgstr ""
5819
 
5820
+ #: includes/class-mla-shortcode-support.php:6164
5821
  msgid "mla_debug found_posts"
5822
  msgstr ""
5823
 
5824
+ #: includes/class-mla-shortcode-support.php:6190
5825
  msgid "mla_debug JOIN filter"
5826
  msgstr ""
5827
 
5828
+ #: includes/class-mla-shortcode-support.php:6231
5829
  msgid "mla_debug modified JOIN filter"
5830
  msgstr ""
5831
 
5832
+ #: includes/class-mla-shortcode-support.php:6256
5833
  msgid "mla_debug WHERE filter"
5834
  msgstr ""
5835
 
5836
+ #: includes/class-mla-shortcode-support.php:6293
5837
  msgid "mla_debug modified WHERE filter"
5838
  msgstr ""
5839
 
5840
+ #: includes/class-mla-shortcode-support.php:6316
5841
  msgid "mla_debug ORDER BY filter, incoming"
5842
  msgstr ""
5843
 
5844
+ #: includes/class-mla-shortcode-support.php:6316
5845
  msgid "Replacement ORDER BY clause"
5846
  msgstr ""
5847
 
5848
+ #: includes/class-mla-shortcode-support.php:6357
5849
  msgid "mla_debug posts_clauses filter"
5850
  msgstr ""
5851
 
5852
+ #: includes/class-mla-shortcode-support.php:6375
5853
  msgid "mla_debug posts_clauses_request filter"
5854
  msgstr ""
5855
 
5856
+ #: includes/class-mla-shortcode-support.php:6514
5857
  msgid "mla_debug results"
5858
  msgstr ""
5859
 
5860
+ #: includes/class-mla-shortcode-support.php:6746
5861
  msgid "Invalid taxonomy"
5862
  msgstr ""
5863
 
5864
+ #: includes/class-mla-shortcode-support.php:6938
5865
  msgid "mla_debug query arguments"
5866
  msgstr ""
5867
 
5868
+ #: includes/class-mla-shortcode-support.php:6939
5869
  msgid "mla_debug last_query"
5870
  msgstr ""
5871
 
5872
+ #: includes/class-mla-shortcode-support.php:6940
5873
  msgid "mla_debug last_error"
5874
  msgstr ""
5875
 
5876
+ #: includes/class-mla-shortcode-support.php:6941
5877
  msgid "mla_debug num_rows"
5878
  msgstr ""
5879
 
5880
+ #: includes/class-mla-shortcode-support.php:6942
5881
  msgid "mla_debug found_rows"
5882
  msgstr ""
5883
 
languages/media-library-assistant-en_US.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Media Library Assistant\n"
4
- "POT-Creation-Date: 2021-07-22 11:54-0700\n"
5
- "PO-Revision-Date: 2021-07-22 11:54-0700\n"
6
  "Language-Team: David Lingren <david@davidlingren.com>\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
@@ -2570,6 +2570,9 @@ msgstr ""
2570
  msgid "Cancel new field"
2571
  msgstr ""
2572
 
 
 
 
2573
  msgid "Meta/Template"
2574
  msgstr ""
2575
 
@@ -2934,6 +2937,9 @@ msgstr ""
2934
  msgid "updated."
2935
  msgstr ""
2936
 
 
 
 
2937
  msgid "EXIF/Template Value"
2938
  msgstr ""
2939
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Media Library Assistant\n"
4
+ "POT-Creation-Date: 2021-08-10 17:48-0700\n"
5
+ "PO-Revision-Date: 2021-08-10 17:49-0700\n"
6
  "Language-Team: David Lingren <david@davidlingren.com>\n"
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
2570
  msgid "Cancel new field"
2571
  msgstr ""
2572
 
2573
+ msgid "Notes for the Custom Fields tab submenu table."
2574
+ msgstr ""
2575
+
2576
  msgid "Meta/Template"
2577
  msgstr ""
2578
 
2937
  msgid "updated."
2938
  msgstr ""
2939
 
2940
+ msgid "Notes for the IPTC/EXIF tab submenu table."
2941
+ msgstr ""
2942
+
2943
  msgid "EXIF/Template Value"
2944
  msgstr ""
2945
 
languages/media-library-assistant-en_US.pot CHANGED
@@ -2,7 +2,7 @@
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Media Library Assistant\n"
5
- "POT-Creation-Date: 2021-07-22 11:54-0700\n"
6
  "PO-Revision-Date: 2015-08-21 21:38-0800\n"
7
  "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
8
  "Language-Team: David Lingren <david@davidlingren.com>\n"
@@ -2571,6 +2571,9 @@ msgstr ""
2571
  msgid "Cancel new field"
2572
  msgstr ""
2573
 
 
 
 
2574
  msgid "Meta/Template"
2575
  msgstr ""
2576
 
@@ -2935,6 +2938,9 @@ msgstr ""
2935
  msgid "updated."
2936
  msgstr ""
2937
 
 
 
 
2938
  msgid "EXIF/Template Value"
2939
  msgstr ""
2940
 
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Media Library Assistant\n"
5
+ "POT-Creation-Date: 2021-08-10 17:48-0700\n"
6
  "PO-Revision-Date: 2015-08-21 21:38-0800\n"
7
  "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
8
  "Language-Team: David Lingren <david@davidlingren.com>\n"
2571
  msgid "Cancel new field"
2572
  msgstr ""
2573
 
2574
+ msgid "Notes for the Custom Fields tab submenu table."
2575
+ msgstr ""
2576
+
2577
  msgid "Meta/Template"
2578
  msgstr ""
2579
 
2938
  msgid "updated."
2939
  msgstr ""
2940
 
2941
+ msgid "Notes for the IPTC/EXIF tab submenu table."
2942
+ msgstr ""
2943
+
2944
  msgid "EXIF/Template Value"
2945
  msgstr ""
2946
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: media, media library, gallery, images, categories, tags, attachments, IPTC
5
  Requires at least: 3.5.0
6
  Tested up to: 5.8
7
  Requires PHP: 5.3
8
- Stable tag: 2.96
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -187,6 +187,16 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
187
 
188
  == Changelog ==
189
 
 
 
 
 
 
 
 
 
 
 
190
  = 2.96 =
191
  * New: For the "MLA CSV Data Source Example" plugin, the new "Export Item Values" tool lets you export anything you need from Media Library items, e.g., standard values, taxonomy terms, custom fields and embedded image IPTC/EXIF/XMP metadata.
192
  * New: For the "MLA UI Elements Example" plugin, the `[muie_archive_list]' shortcode adds date-based archive controls and lists.
@@ -334,8 +344,8 @@ All of the MLA source code has been annotated with "DocBlocks", a special type o
334
 
335
  == Upgrade Notice ==
336
 
337
- = 2.96 =
338
- WordPress 5.8 support! New [muie_archive_list] shortcode. CSV export item values. Support for Enhanced Media Library plugin. Donation links are back. Thirteen enhancements in all, fourteen fixes.
339
 
340
  == Other Notes ==
341
 
5
  Requires at least: 3.5.0
6
  Tested up to: 5.8
7
  Requires PHP: 5.3
8
+ Stable tag: 2.97
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
187
 
188
  == Changelog ==
189
 
190
+ = 2.97 =
191
+ * New: A "Description" element has been added to the "Custom Fields" and "IPTC/EXIF" mapping rule definitions.
192
+ * New: For `[mla_tag_cloud]`, the `current_item` and `current_item_class` are managed more or less automatically.
193
+ * New: For `[mla_gallery]`, a special `mla_alt_shortcode=yes` parameter lets you use `[mla_gallery]` as both the primary and alternate shortcodes. You can use the new `mla_alt_parameters` parameter to pass parameters directly on to the alternate shortcode.
194
+ * New: For the "MLA UI Elements Example" plugin, most sticky shortcodes now support the enclosing shortcode syntax, and the Documentation tab has been completed.
195
+ * Fix: **For `[mla_gallery]`, PHP "Warning: array_key_exists()..." messages have been eliminated.**
196
+ * Fix: For the Media Manager Modal (popup) Window in WP 5.8, cropping of top row image thubmnails has been corrected.
197
+ * Fix: For the "MLA Insert Fixit" example plugin, placement and description of the "Post Type(s)" text box has been updated to clarify its use by all plugin tools.
198
+ * Fix: For `[mla_term_list]` and `[mla_tag_cloud]`, special values such as `no.terms.assigned` () are retained after page refresh.
199
+
200
  = 2.96 =
201
  * New: For the "MLA CSV Data Source Example" plugin, the new "Export Item Values" tool lets you export anything you need from Media Library items, e.g., standard values, taxonomy terms, custom fields and embedded image IPTC/EXIF/XMP metadata.
202
  * New: For the "MLA UI Elements Example" plugin, the `[muie_archive_list]' shortcode adds date-based archive controls and lists.
344
 
345
  == Upgrade Notice ==
346
 
347
+ = 2.97 =
348
+ IMPORTANT: [mla_gallery] PHP "Warning: array_key_exists()..." messages have been eliminated. WP 5.8, cropping of MMMW top row image thubmnails fixed. Description element added to mapping rules. Four enhancements in all, four fixes.
349
 
350
  == Other Notes ==
351
 
tpls/admin-display-settings-custom-fields-tab.tpl CHANGED
@@ -58,8 +58,14 @@ return false;"
58
  href="#mla-new-custom-field">
59
  [+Cancel Name Change+]
60
  </a>
61
-
62
- <p class="description">[+Enter Name+]</p></td>
 
 
 
 
 
 
63
  </tr>
64
  <tr class="form-field custom-field-data-source-wrap">
65
  <th scope="row"> <label for="mla-custom-field-data-source">[+Data Source+]</label>
58
  href="#mla-new-custom-field">
59
  [+Cancel Name Change+]
60
  </a>
61
+ <p class="description">[+Enter Name+]</p></td>
62
+ </tr>
63
+ <tr class="form-field custom-field-description-wrap">
64
+ <th scope="row"> <label for="mla-custom-field-description">[+Description+]</label>
65
+ </th>
66
+ <td><textarea name="mla_custom_field[description]" id="mla-custom-field-description" rows="[+description_rows+]">[+description+]</textarea>
67
+ <p class="description">[+description_help+]</p>
68
+ </td>
69
  </tr>
70
  <tr class="form-field custom-field-data-source-wrap">
71
  <th scope="row"> <label for="mla-custom-field-data-source">[+Data Source+]</label>
tpls/admin-display-settings-iptc-exif-tab.tpl CHANGED
@@ -52,9 +52,18 @@ jQuery( '#mla-new-iptc-exif-name' ).val('none');
52
  jQuery( '#mla-new-iptc-exif' ).val('');
53
  jQuery( '#mla-iptc-exif-display-name, #mla-change-name-link' ).show();
54
  return false;"
55
- href="#mla-new-iptc-exif"> [+Cancel Name Change+] </a>
 
 
56
  <p class="description [+custom_class+]">[+Enter Name+]</p></td>
57
  </tr>
 
 
 
 
 
 
 
58
  <tr class="form-field iptc-exif-iptc-value-wrap">
59
  <th scope="row"> <label for="mla-iptc-exif-iptc-value">[+IPTC Value+]</label>
60
  </th>
52
  jQuery( '#mla-new-iptc-exif' ).val('');
53
  jQuery( '#mla-iptc-exif-display-name, #mla-change-name-link' ).show();
54
  return false;"
55
+ href="#mla-new-iptc-exif">
56
+ [+Cancel Name Change+]
57
+ </a>
58
  <p class="description [+custom_class+]">[+Enter Name+]</p></td>
59
  </tr>
60
+ <tr class="form-field iptc-exif-description-wrap">
61
+ <th scope="row"> <label for="mla-iptc-exif-description">[+Description+]</label>
62
+ </th>
63
+ <td><textarea name="mla_iptc_exif_rule[description]" id="mla-iptc-exif-description" rows="[+description_rows+]">[+description+]</textarea>
64
+ <p class="description">[+description_help+]</p>
65
+ </td>
66
+ </tr>
67
  <tr class="form-field iptc-exif-iptc-value-wrap">
68
  <th scope="row"> <label for="mla-iptc-exif-iptc-value">[+IPTC Value+]</label>
69
  </th>
tpls/documentation-settings-tab.tpl CHANGED
@@ -822,7 +822,7 @@ Note that the "tag_id" parameter requires exactly one tag ID; multiple IDs are n
822
  </p>
823
  <h4>Simple Taxonomy Parameters</h4>
824
  <p>
825
- The <code>[mla_gallery]</code> shortcode supports the simple "{tax} (string)" values (deprecated as of WordPress version 3.1) as well as the more powerful "<a href="https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters" title="WordPress Codex Documentation for tax_query" target="_blank">tax_query</a>" value. Use these queries for your custom taxonomies (and for the MLA attachment_category and attachment_tag taxonomies); use the above Category and Tag parameters for the WordPress-provided taxonomies. If you do use a tax_query for Categories and Tags, the slug values are "category" and "post_tag".
826
  </p>
827
  <p>
828
  For simple queries, enter the custom taxonomy name and the term(s) that must be matched, e.g.:
@@ -890,7 +890,7 @@ Note that the default tax_include_children value is true, matching the default W
890
  </p>
891
  <h4>Compound Taxonomy Queries, "tax_input"</h4>
892
  <p>
893
- You can combine taxonomies and terms into a single parameter; <code>tax_input</code>. This is most often used to process selections made in the <a href="#term_list_display_content"><strong>MLA Term List Display Content (Dropdown and Checklist)</strong></a> for controls that contain multiple taxonomies. The parameter value can be one or more items consisting of the taxonomy slug and a term_id or slug, separated by a period. For example, "animal.34" or "vegetable.carrot".
894
  </p>
895
  <p>
896
  This example has a simple form to pick a term from two taxonomies and display a gallery with the items assigned to the selected term:
@@ -910,7 +910,7 @@ In the example, <code>animal.invalid-slug</code> is a taxonomy.term combination
910
  </p>
911
  <h4>Taxonomy Queries, the "tax_query"</h4>
912
  <p>
913
- More complex queries can be specified by using <a href="https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters" title="WordPress Codex Documentation for tax_query" target="_blank">WP_Query's "tax_query"</a>, e.g.:
914
  </p>
915
  <p><code>[mla_gallery]<br />
916
  tax_query="array(<br />
@@ -955,7 +955,7 @@ tax_query="array(<br />
955
  You can also use three numeric synonyms, '-3' for "ignore.terms.assigned", '-1' for "no.terms.assigned" and '-2' for "any.terms.assigned" in applications using numeric term id values in place of slugs.
956
  </p>
957
  <p>
958
- When you code <code>'terms' =&gt; 'ignore.terms.assigned'</code> the entire tax_query will be ignored. When you code <code>'terms' =&gt; 'no.terms.assigned'</code> or <code>'terms' =&gt; 'any.terms.assigned'</code> the only other element you need is <code>taxonomy =&gt;</code>. There is no need for parameters like <code>'field' =&gt;</code> or <code>'operator' =&gt;</code> to get the proper results. The example uses use the <strong>"enclosing shortcode"</strong> format to avoid problems WordPress has in parsing parameters with special characters such as <code>=&gt;</code>.
959
  </p>
960
  <p>
961
  Remember to use <code>post_parent=current</code> if you want to restrict your query to items attached to the current post.
@@ -1485,6 +1485,9 @@ Each item in the tag cloud comprises a term name of varying size, a hyperlink su
1485
  </table>
1486
  <p>
1487
  The Item parameters are an easy way to customize the content and markup for each cloud item. For the list and grid formats you can also use the <a href="#tag_cloud_display_content">Tag Cloud Display Content parameters</a> and/or Style and Markup Templates for even greater flexibility.
 
 
 
1488
  <a name="tag_cloud_link"></a>
1489
  </p>
1490
  <h4>Tag Cloud Item Link</h4>
@@ -3775,11 +3778,11 @@ The <code>[mla_gallery]</code> shortcode can be used in combination with other g
3775
  <table>
3776
  <tr>
3777
  <td class="mla-doc-table-label">mla_alt_shortcode</td>
3778
- <td>the name of the shortcode to be called for gallery format and display. You can code "mla_gallery" (recommended) or "no" to disable the alternate shortcode processing.</td>
3779
  </tr>
3780
  <tr>
3781
  <td class="mla-doc-table-label">mla_alt_parameters</td>
3782
- <td>(optional, default empty) parameters that would normally be processed by <code>[mla_gallery]</code> and not passed through to the alternate shortcode. For example, if the alternate shortcode is "mla_tag_cloud" or "mla_term_list" you might use this parameter to pass <code>post_mime_type=</code> or <code>mla_debug=</code> on to the alternate shortcode.</td>
3783
  </tr>
3784
  <tr>
3785
  <td class="mla-doc-table-label">mla_alt_ids_name</td>
822
  </p>
823
  <h4>Simple Taxonomy Parameters</h4>
824
  <p>
825
+ The <code>[mla_gallery]</code> shortcode supports the simple "{taxonomy}=(term(s))" values (deprecated as of WordPress version 3.1) as well as the more powerful "<a href="https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters" title="WordPress Codex Documentation for tax_query" target="_blank">tax_query</a>" value. <strong>If your shortcode includes an explicit <code>tax_query</code> parameter any simple taxonomy parameters will be ignored.</strong> Use these queries for your custom taxonomies (and for the MLA attachment_category and attachment_tag taxonomies); use the above Category and Tag parameters for the WordPress-provided taxonomies. If you do use a simple taxonomy parameter for Categories and Tags, the slug values are "category" and "post_tag".
826
  </p>
827
  <p>
828
  For simple queries, enter the custom taxonomy name and the term(s) that must be matched, e.g.:
890
  </p>
891
  <h4>Compound Taxonomy Queries, "tax_input"</h4>
892
  <p>
893
+ You can combine taxonomies and terms into a single parameter; <code>tax_input</code>. This is most often used to process selections made in the <a href="#term_list_display_content"><strong>MLA Term List Display Content (Dropdown and Checklist)</strong></a> for controls that contain multiple taxonomies. The parameter value can be one or more items consisting of the taxonomy slug and a term_id or slug, separated by a period. For example, <code>tax_input="animal.34,vegetable.carrot,vegetable.radish"</code>. <strong>If your shortcode includes an explicit <code>tax_query</code> parameter the <code>tax_input</code> parameter will be ignored.</strong>
894
  </p>
895
  <p>
896
  This example has a simple form to pick a term from two taxonomies and display a gallery with the items assigned to the selected term:
910
  </p>
911
  <h4>Taxonomy Queries, the "tax_query"</h4>
912
  <p>
913
+ More complex queries can be specified by using <a href="https://developer.wordpress.org/reference/classes/wp_query/#taxonomy-parameters" title="WordPress Codex Documentation for tax_query" target="_blank">WP_Query's "tax_query"</a>. <strong>If you add an explicit <code>tax_query</code> parameter to your shortcode any simple taxonomy parameters and the <code>tax_input</code> parameter will be ignored.</strong> Here are two tax_query examples:
914
  </p>
915
  <p><code>[mla_gallery]<br />
916
  tax_query="array(<br />
955
  You can also use three numeric synonyms, '-3' for "ignore.terms.assigned", '-1' for "no.terms.assigned" and '-2' for "any.terms.assigned" in applications using numeric term id values in place of slugs.
956
  </p>
957
  <p>
958
+ When you code <code>'terms' =&gt; 'ignore.terms.assigned'</code> the tax_query element for that taxonomy will be ignored. When you code <code>'terms' =&gt; 'no.terms.assigned'</code> or <code>'terms' =&gt; 'any.terms.assigned'</code> the only other element you need is <code>taxonomy =&gt;</code>. There is no need for parameters like <code>'field' =&gt;</code> or <code>'operator' =&gt;</code> to get the proper results. The example uses use the <strong>"enclosing shortcode"</strong> format to avoid problems WordPress has in parsing parameters with special characters such as <code>=&gt;</code>.
959
  </p>
960
  <p>
961
  Remember to use <code>post_parent=current</code> if you want to restrict your query to items attached to the current post.
1485
  </table>
1486
  <p>
1487
  The Item parameters are an easy way to customize the content and markup for each cloud item. For the list and grid formats you can also use the <a href="#tag_cloud_display_content">Tag Cloud Display Content parameters</a> and/or Style and Markup Templates for even greater flexibility.
1488
+ </p>
1489
+ <p>
1490
+ The <code>current_item</code> parameter is managed for you in most ways. It is automatically added to the links behind each cloud element, and copied back into the shortcode parameters if it is not explicitly coded as a parameter. For the cloud element that matches the current item the <code>current_item_class</code> value is automatically added to the hyperlink class attribute for that item.
1491
  <a name="tag_cloud_link"></a>
1492
  </p>
1493
  <h4>Tag Cloud Item Link</h4>
3778
  <table>
3779
  <tr>
3780
  <td class="mla-doc-table-label">mla_alt_shortcode</td>
3781
+ <td>the name of the shortcode to be called for gallery format and display. You can code "no" (recommended) or "mla_gallery" (used by the Justified Image Grid plugin) to disable the alternate shortcode processing. To use <code>[mla_gallery]</code> as the alternate shortcode code "yes".</td>
3782
  </tr>
3783
  <tr>
3784
  <td class="mla-doc-table-label">mla_alt_parameters</td>
3785
+ <td>(optional, default empty) parameters that would normally be processed by <code>[mla_gallery]</code> and not passed through to the alternate shortcode. For example, if the alternate shortcode is "mla_tag_cloud", "mla_term_list" or "mla_gallery" you might use this parameter to, for example, pass <code>post_mime_type=</code> or <code>mla_debug=</code> on to the alternate shortcode.</td>
3786
  </tr>
3787
  <tr>
3788
  <td class="mla-doc-table-label">mla_alt_ids_name</td>