Media Library Assistant - Version 2.31

Version Description

  • Fix: Remove call to xdebug_get_function_stack() causing fatal PHP error.
Download this release

Release Info

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

Code changes from version 2.25 to 2.31

Files changed (87) hide show
  1. css/mla-beaver-builder-style-rtl.css +183 -0
  2. css/mla-beaver-builder-style.css +183 -0
  3. css/mla-media-modal-style.css +1 -0
  4. css/mla-style-rtl.css +5 -0
  5. css/mla-style.css +5 -0
  6. examples/mla-bulk-edit-remap-example.php.txt +142 -0
  7. examples/mla-cloud-hooks-example.php.txt +4 -28
  8. examples/mla-current-user-example.php.txt +189 -0
  9. examples/mla-custom-taxonomy-example.php.txt +397 -0
  10. examples/mla-hooks-example.php.txt +10 -1
  11. examples/mla-insert-fixit.php.txt +214 -37
  12. examples/mla-list-table-hooks-example.php.txt +8 -13
  13. examples/mla-mapping-hooks-example.php.txt +83 -101
  14. examples/mla-project-slug-example.php.txt +17 -6
  15. examples/mla-substitution-parameter-hooks-example.php.txt +180 -0
  16. examples/mla-term-list-hooks-example.php.txt +584 -0
  17. examples/mla-unattached-fixit.php.txt +4 -0
  18. includes/class-mla-core.php +73 -0
  19. includes/class-mla-data-query.php +1 -1
  20. includes/class-mla-data-source.php +11 -0
  21. includes/class-mla-data.php +240 -170
  22. includes/class-mla-edit-media.php +10 -10
  23. includes/class-mla-main.php +20 -22
  24. includes/class-mla-media-modal.php +7 -7
  25. includes/class-mla-objects.php +0 -1
  26. includes/class-mla-options.php +3 -138
  27. includes/class-mla-polylang-support.php +114 -44
  28. includes/class-mla-settings.php +428 -432
  29. includes/class-mla-shortcode-support.php +548 -366
  30. includes/class-mla-shortcodes.php +1 -1
  31. includes/class-mla-template-support.php +603 -0
  32. includes/class-mla-thumbnail-generation.php +3 -3
  33. includes/mla-media-modal-js-template.php +1 -1
  34. includes/mla-plugin-loader.php +2 -0
  35. index.php +2 -2
  36. js/mla-media-modal-scripts.js +9 -5
  37. js/mla-media-modal-scripts.min.js +1 -1743
  38. languages/media-library-assistant-en_US.po +127 -103
  39. languages/media-library-assistant-en_US.pot +1597 -100
  40. phpDocs/classes.svg +128 -121
  41. phpDocs/classes/CPAC_Storage_Model_MLA.html +1 -1
  42. phpDocs/classes/MLA.html +1 -27
  43. phpDocs/classes/MLACore.html +61 -1
  44. phpDocs/classes/MLACoreOptions.html +568 -0
  45. phpDocs/classes/MLAData.html +1 -1
  46. phpDocs/classes/MLAData_source.html +1 -1
  47. phpDocs/classes/MLAEdit.html +1 -1
  48. phpDocs/classes/MLAImageProcessor.html +1 -1
  49. phpDocs/classes/MLAMime.html +1 -1
  50. phpDocs/classes/MLAModal.html +1 -1
  51. phpDocs/classes/MLAModal_Ajax.html +1 -1
  52. phpDocs/classes/MLAMutex.html +1 -1
  53. phpDocs/classes/MLAObjects.html +1 -1
  54. phpDocs/classes/MLAOptions.html +5 -79
  55. phpDocs/classes/MLAPDF.html +1 -1
  56. phpDocs/classes/MLAQuery.html +1 -1
  57. phpDocs/classes/MLAReferences.html +1 -1
  58. phpDocs/classes/MLASettings.html +1 -1
  59. phpDocs/classes/MLAShortcode_Support.html +14 -51
  60. phpDocs/classes/MLAShortcodes.html +1 -1
  61. phpDocs/classes/MLATemplate_Support.html +284 -0
  62. phpDocs/classes/MLATest.html +1 -1
  63. phpDocs/classes/MLATextWidget.html +1 -1
  64. phpDocs/classes/MLAUninstall.html +111 -0
  65. phpDocs/classes/MLA_Ajax.html +1 -1
  66. phpDocs/classes/MLA_Checklist_Walker.html +1 -1
  67. phpDocs/classes/MLA_List_Table.html +1 -1
  68. phpDocs/classes/MLA_Polylang.html +14 -1
  69. phpDocs/classes/MLA_Thumbnail.html +1 -1
  70. phpDocs/classes/MLA_Upload_List_Table.html +1 -1
  71. phpDocs/classes/MLA_Upload_Optional_List_Table.html +1 -1
  72. phpDocs/classes/MLA_View_List_Table.html +1 -1
  73. phpDocs/classes/MLA_WPML.html +1 -1
  74. phpDocs/classes/MLA_WPML_List_Table.html +1 -1
  75. phpDocs/classes/MLA_WPML_Table.html +1 -1
  76. phpDocs/classes/MNA_Pad_Counts_Walker.html +1 -1
  77. phpDocs/deprecated.html +1 -1
  78. phpDocs/errors.html +2 -1
  79. phpDocs/graph_class.html +1 -1
  80. phpDocs/index.html +1 -1
  81. phpDocs/markers.html +4 -4
  82. phpDocs/namespaces/global.html +9 -1
  83. phpDocs/packages/Media Library Assistant.MLA.Child.Theme.html +1 -1
  84. phpDocs/packages/Media Library Assistant.MLA.Child.html +1 -1
  85. phpDocs/packages/Media Library Assistant.MLA.html +1 -1
  86. phpDocs/packages/Media Library Assistant.html +11 -1
  87. phpDocs/structure.xml +965 -988
css/mla-beaver-builder-style-rtl.css ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "utf-8";
2
+
3
+ /**
4
+ * CSS Document
5
+ *
6
+ * This file contains styling attributes for the Media Manager Modal Window,
7
+ * when used in the "front end", e.g., the Beaver Builder plugin.
8
+ * Adapted from /wp-admin/css/edit.css and common.css.
9
+ */
10
+
11
+ .tagchecklist span a:before {
12
+ background: none;
13
+ color: #b4b9be;
14
+ content: "\f153";
15
+ display: block;
16
+ font: normal 16px/20px dashicons;
17
+ speak: none;
18
+ height: 20px;
19
+ text-align: center;
20
+ width: 20px;
21
+ -webkit-font-smoothing: antialiased;
22
+ -moz-osx-font-smoothing: grayscale;
23
+ }
24
+
25
+ .tagchecklist span a:before {
26
+ margin: 1px 0;
27
+ }
28
+
29
+ .tagchecklist span a:hover:before {
30
+ color: #c00;
31
+ }
32
+
33
+ .tagchecklist {
34
+ margin-right: 14px;
35
+ font-size: 12px;
36
+ overflow: auto;
37
+ }
38
+
39
+ .tagchecklist br {
40
+ display: none;
41
+ }
42
+
43
+ .tagchecklist strong {
44
+ margin-right: -8px;
45
+ position: absolute;
46
+ }
47
+
48
+ .tagchecklist span {
49
+ margin-left: 25px;
50
+ display: block;
51
+ float: right;
52
+ font-size: 13px;
53
+ line-height: 1.8em;
54
+ cursor: default;
55
+ max-width: 100%;
56
+ overflow: hidden;
57
+ text-overflow: ellipsis;
58
+ }
59
+
60
+ .tagchecklist span a {
61
+ margin: 1px 0 0 -17px;
62
+ cursor: pointer;
63
+ width: 20px;
64
+ height: 20px;
65
+ display: block;
66
+ float: right;
67
+ text-indent: 0;
68
+ overflow: hidden;
69
+ position: absolute;
70
+ }
71
+
72
+ .mla-taxonomy-field h4 {
73
+ font-size: 1em;
74
+ margin: 1.33em 0;
75
+ }
76
+
77
+ .mla-taxonomy-field p {
78
+ font-size: 13px;
79
+ line-height: 1.5;
80
+ margin: 1em 0;
81
+ }
82
+
83
+ .category-add input[type="text"],
84
+ .category-add select {
85
+ width: 100%;
86
+ max-width: 260px;
87
+ vertical-align: baseline;
88
+ }
89
+
90
+ #side-sortables .category-add input[type="text"],
91
+ #side-sortables .category-add select {
92
+ margin: 0 0 1em;
93
+ }
94
+
95
+ ul.category-tabs li,
96
+ #side-sortables .add-menu-item-tabs li,
97
+ .wp-tab-bar li {
98
+ display: inline;
99
+ line-height: 1.35em;
100
+ }
101
+
102
+ .no-js .category-tabs li.hide-if-no-js {
103
+ display: none;
104
+ }
105
+
106
+ .category-tabs a,
107
+ #side-sortables .add-menu-item-tabs a,
108
+ .wp-tab-bar a {
109
+ text-decoration: none;
110
+ }
111
+
112
+ ul.category-tabs,
113
+ ul.add-menu-item-tabs,
114
+ ul.wp-tab-bar {
115
+ margin-top: 12px;
116
+ }
117
+
118
+ ul.category-tabs li,
119
+ ul.add-menu-item-tabs li {
120
+ border: solid 1px transparent;
121
+ position: relative;
122
+ }
123
+
124
+ ul.category-tabs li.tabs,
125
+ ul.add-menu-item-tabs li.tabs,
126
+ .wp-tab-active {
127
+ border: 1px solid #ddd;
128
+ border-bottom-color: #fdfdfd;
129
+ background-color: #fdfdfd;
130
+ }
131
+
132
+ ul.category-tabs li,
133
+ ul.add-menu-item-tabs li,
134
+ ul.wp-tab-bar li {
135
+ padding: 3px 5px 5px;
136
+ }
137
+
138
+ .wp-tab-panel,
139
+ .categorydiv div.tabs-panel,
140
+ .customlinkdiv div.tabs-panel,
141
+ .posttypediv div.tabs-panel,
142
+ .taxonomydiv div.tabs-panel {
143
+ min-height: 42px;
144
+ max-height: 200px;
145
+ overflow: auto;
146
+ padding: 0 0.9em;
147
+ border: solid 1px #ddd;
148
+ background-color: #fdfdfd;
149
+ }
150
+
151
+ div.tabs-panel-active {
152
+ display:block;
153
+ }
154
+
155
+ div.tabs-panel-inactive {
156
+ display:none;
157
+ }
158
+
159
+ #front-page-warning,
160
+ #front-static-pages ul,
161
+ ul.export-filters,
162
+ .inline-editor ul.cat-checklist ul,
163
+ .categorydiv ul.categorychecklist ul,
164
+ .customlinkdiv ul.categorychecklist ul,
165
+ .posttypediv ul.categorychecklist ul,
166
+ .taxonomydiv ul.categorychecklist ul {
167
+ margin-right: 18px;
168
+ }
169
+
170
+ ul.categorychecklist li {
171
+ margin: 0;
172
+ padding: 0;
173
+ line-height: 22px;
174
+ word-wrap: break-word;
175
+ }
176
+
177
+ .categorydiv .tabs-panel,
178
+ .customlinkdiv .tabs-panel,
179
+ .posttypediv .tabs-panel,
180
+ .taxonomydiv .tabs-panel {
181
+ border-width: 3px;
182
+ border-style: solid;
183
+ }
css/mla-beaver-builder-style.css ADDED
@@ -0,0 +1,183 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ @charset "utf-8";
2
+
3
+ /**
4
+ * CSS Document
5
+ *
6
+ * This file contains styling attributes for the Media Manager Modal Window,
7
+ * when used in the "front end", e.g., the Beaver Builder plugin.
8
+ * Adapted from /wp-admin/css/edit.css and common.css.
9
+ */
10
+
11
+ .tagchecklist span a:before {
12
+ background: none;
13
+ color: #b4b9be;
14
+ content: "\f153";
15
+ display: block;
16
+ font: normal 16px/20px dashicons;
17
+ speak: none;
18
+ height: 20px;
19
+ text-align: center;
20
+ width: 20px;
21
+ -webkit-font-smoothing: antialiased;
22
+ -moz-osx-font-smoothing: grayscale;
23
+ }
24
+
25
+ .tagchecklist span a:before {
26
+ margin: 1px 0;
27
+ }
28
+
29
+ .tagchecklist span a:hover:before {
30
+ color: #c00;
31
+ }
32
+
33
+ .tagchecklist {
34
+ margin-left: 14px;
35
+ font-size: 12px;
36
+ overflow: auto;
37
+ }
38
+
39
+ .tagchecklist br {
40
+ display: none;
41
+ }
42
+
43
+ .tagchecklist strong {
44
+ margin-left: -8px;
45
+ position: absolute;
46
+ }
47
+
48
+ .tagchecklist span {
49
+ margin-right: 25px;
50
+ display: block;
51
+ float: left;
52
+ font-size: 13px;
53
+ line-height: 1.8em;
54
+ cursor: default;
55
+ max-width: 100%;
56
+ overflow: hidden;
57
+ text-overflow: ellipsis;
58
+ }
59
+
60
+ .tagchecklist span a {
61
+ margin: 1px 0 0 -17px;
62
+ cursor: pointer;
63
+ width: 20px;
64
+ height: 20px;
65
+ display: block;
66
+ float: left;
67
+ text-indent: 0;
68
+ overflow: hidden;
69
+ position: absolute;
70
+ }
71
+
72
+ .mla-taxonomy-field h4 {
73
+ font-size: 1em;
74
+ margin: 1.33em 0;
75
+ }
76
+
77
+ .mla-taxonomy-field p {
78
+ font-size: 13px;
79
+ line-height: 1.5;
80
+ margin: 1em 0;
81
+ }
82
+
83
+ .category-add input[type="text"],
84
+ .category-add select {
85
+ width: 100%;
86
+ max-width: 260px;
87
+ vertical-align: baseline;
88
+ }
89
+
90
+ #side-sortables .category-add input[type="text"],
91
+ #side-sortables .category-add select {
92
+ margin: 0 0 1em;
93
+ }
94
+
95
+ ul.category-tabs li,
96
+ #side-sortables .add-menu-item-tabs li,
97
+ .wp-tab-bar li {
98
+ display: inline;
99
+ line-height: 1.35em;
100
+ }
101
+
102
+ .no-js .category-tabs li.hide-if-no-js {
103
+ display: none;
104
+ }
105
+
106
+ .category-tabs a,
107
+ #side-sortables .add-menu-item-tabs a,
108
+ .wp-tab-bar a {
109
+ text-decoration: none;
110
+ }
111
+
112
+ ul.category-tabs,
113
+ ul.add-menu-item-tabs,
114
+ ul.wp-tab-bar {
115
+ margin-top: 12px;
116
+ }
117
+
118
+ ul.category-tabs li,
119
+ ul.add-menu-item-tabs li {
120
+ border: solid 1px transparent;
121
+ position: relative;
122
+ }
123
+
124
+ ul.category-tabs li.tabs,
125
+ ul.add-menu-item-tabs li.tabs,
126
+ .wp-tab-active {
127
+ border: 1px solid #ddd;
128
+ border-bottom-color: #fdfdfd;
129
+ background-color: #fdfdfd;
130
+ }
131
+
132
+ ul.category-tabs li,
133
+ ul.add-menu-item-tabs li,
134
+ ul.wp-tab-bar li {
135
+ padding: 3px 5px 5px;
136
+ }
137
+
138
+ .wp-tab-panel,
139
+ .categorydiv div.tabs-panel,
140
+ .customlinkdiv div.tabs-panel,
141
+ .posttypediv div.tabs-panel,
142
+ .taxonomydiv div.tabs-panel {
143
+ min-height: 42px;
144
+ max-height: 200px;
145
+ overflow: auto;
146
+ padding: 0 0.9em;
147
+ border: solid 1px #ddd;
148
+ background-color: #fdfdfd;
149
+ }
150
+
151
+ div.tabs-panel-active {
152
+ display:block;
153
+ }
154
+
155
+ div.tabs-panel-inactive {
156
+ display:none;
157
+ }
158
+
159
+ #front-page-warning,
160
+ #front-static-pages ul,
161
+ ul.export-filters,
162
+ .inline-editor ul.cat-checklist ul,
163
+ .categorydiv ul.categorychecklist ul,
164
+ .customlinkdiv ul.categorychecklist ul,
165
+ .posttypediv ul.categorychecklist ul,
166
+ .taxonomydiv ul.categorychecklist ul {
167
+ margin-left: 18px;
168
+ }
169
+
170
+ ul.categorychecklist li {
171
+ margin: 0;
172
+ padding: 0;
173
+ line-height: 22px;
174
+ word-wrap: break-word;
175
+ }
176
+
177
+ .categorydiv .tabs-panel,
178
+ .customlinkdiv .tabs-panel,
179
+ .posttypediv .tabs-panel,
180
+ .taxonomydiv .tabs-panel {
181
+ border-width: 3px;
182
+ border-style: solid;
183
+ }
css/mla-media-modal-style.css CHANGED
@@ -1,4 +1,5 @@
1
  @charset "utf-8";
 
2
  /**
3
  * CSS Document
4
  *
1
  @charset "utf-8";
2
+
3
  /**
4
  * CSS Document
5
  *
css/mla-style-rtl.css CHANGED
@@ -440,4 +440,9 @@ ul.mla_settings li {
440
  #mla-doc-cloud-shortcode {
441
  float:right;
442
  margin-right: 15px
 
 
 
 
 
443
  }
440
  #mla-doc-cloud-shortcode {
441
  float:right;
442
  margin-right: 15px
443
+ }
444
+
445
+ #mla-doc-list-shortcode {
446
+ float:right;
447
+ margin-right: 15px
448
  }
css/mla-style.css CHANGED
@@ -440,4 +440,9 @@ ul.mla_settings li {
440
  #mla-doc-cloud-shortcode {
441
  float:left;
442
  margin-left: 15px
 
 
 
 
 
443
  }
440
  #mla-doc-cloud-shortcode {
441
  float:left;
442
  margin-left: 15px
443
+ }
444
+
445
+ #mla-doc-list-shortcode {
446
+ float:left;
447
+ margin-left: 15px
448
  }
examples/mla-bulk-edit-remap-example.php.txt ADDED
@@ -0,0 +1,142 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Performs IPTC/EXIF and Custom Field mapping at the conclusion of a Bulk Edit action,
4
+ * so data sources like "terms:" are properly applied.
5
+ *
6
+ * @package MLA Bulk Edit Remap Example
7
+ * @version 1.00
8
+ */
9
+
10
+ /*
11
+ Plugin Name: MLA Bulk Edit Remap Example
12
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
13
+ Description: Performs IPTC/EXIF and Custom Field mapping at the conclusion of a Bulk Edit action, so data sources like "terms:" are properly applied.
14
+ Author: David Lingren
15
+ Version: 1.00
16
+ Author URI: http://fairtradejudaica.org/our-story/staff/
17
+
18
+ Copyright 2016 David Lingren
19
+
20
+ This program is free software; you can redistribute it and/or modify
21
+ it under the terms of the GNU General Public License as published by
22
+ the Free Software Foundation; either version 2 of the License, or
23
+ (at your option) any later version.
24
+
25
+ This program is distributed in the hope that it will be useful,
26
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
27
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28
+ GNU General Public License for more details.
29
+
30
+ You can get a copy of the GNU General Public License by writing to the
31
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
32
+ */
33
+
34
+ /**
35
+ * Class MLA Bulk Edit Remap Example performs IPTC/EXIF and Custom Field mapping at the conclusion
36
+ * of a Bulk Edit action, so data sources like "terms:" are properly applied.
37
+ *
38
+ * Call it anything you want, but give it an unlikely and hopefully unique name. Hiding everything
39
+ * else inside a class means this is the only name you have to worry about.
40
+ *
41
+ * @package MLA Bulk Edit Remap Example
42
+ * @since 1.00
43
+ */
44
+ class MLABulkEditRemapExample {
45
+ /**
46
+ * Initialization function, similar to __construct()
47
+ *
48
+ * @since 1.00
49
+ *
50
+ * @return void
51
+ */
52
+ public static function initialize() {
53
+ /*
54
+ * The filters are only useful for the admin section; exit in the front-end posts/pages
55
+ */
56
+ if ( ! is_admin() )
57
+ return;
58
+
59
+ /*
60
+ * Defined in /media-library-assistant/includes/class-mla-main.php
61
+ */
62
+ add_filter( 'mla_list_table_bulk_action_initial_request', 'MLABulkEditRemapExample::mla_list_table_bulk_action_initial_request', 10, 3 );
63
+ add_filter( 'mla_list_table_end_bulk_action', 'MLABulkEditRemapExample::mla_list_table_end_bulk_action', 10, 2 );
64
+ }
65
+
66
+ /**
67
+ * Pre-filter MLA_List_Table bulk action request parameters
68
+ *
69
+ * This filter triggers the (re)mapping when new items are added to the Media Library,
70
+ * saving the array of items to be processed at the end of the Bulk Edit action.
71
+ *
72
+ * @since 1.00
73
+ *
74
+ * @param array $request Bulk action request parameters, including ['mla_bulk_action_do_cleanup'].
75
+ * @param string $bulk_action The requested action.
76
+ * @param array $custom_field_map [ slug => field_name ]
77
+ */
78
+ public static function mla_list_table_bulk_action_initial_request( $request, $bulk_action, $custom_field_map ) {
79
+ //error_log( "MLABulkEditRemapExample::mla_list_table_bulk_action_initial_request( {$bulk_action} ) request = " . var_export( $request, true ), 0 );
80
+ //error_log( "MLABulkEditRemapExample::mla_list_table_bulk_action_initial_request( {$bulk_action} ) custom_field_map = " . var_export( $custom_field_map, true ), 0 );
81
+
82
+ if ( isset( $request['screen'] ) && 'async-upload' == $request['screen'] ) {
83
+ self::$remap_array = $request['cb_attachment'];
84
+ }
85
+
86
+ return $request;
87
+ } // mla_list_table_bulk_action_initial_request
88
+
89
+ /**
90
+ * Logic in mla_list_table_bulk_action_initial_request() determines when mla_list_table_end_bulk_action
91
+ * will (re)execute the mappping rules.
92
+ *
93
+ * @since 1.00
94
+ *
95
+ * @var array
96
+ */
97
+ private static $remap_array = array();
98
+
99
+ /**
100
+ * End an MLA_List_Table bulk action
101
+ *
102
+ * This filter executes the (re)mapping when new items are added to the Media Library.
103
+ *
104
+ * @since 1.01
105
+ *
106
+ * @param NULL $item_content NULL, indicating no handler.
107
+ * @param string $bulk_action The requested action.
108
+ */
109
+ public static function mla_list_table_end_bulk_action( $item_content, $bulk_action ) {
110
+ //error_log( "MLABulkEditRemapExample::mla_list_table_end_bulk_action( $bulk_action ) remap_array = " . var_export( self::$remap_array, true ), 0 );
111
+
112
+ /*
113
+ * This example reruns the Standard and Custom IPTC/EXIF rules, but not the Taxonomy rules because
114
+ * they might overwrite changes made in the Bulk Edit process.
115
+ */
116
+ foreach( self::$remap_array as $post_id ) {
117
+ $item = get_post( $post_id );
118
+ $updates = MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_standard_mapping' );
119
+ $updates = array_merge( $updates, MLAOptions::mla_evaluate_iptc_exif_mapping( $item, 'iptc_exif_custom_mapping' ) );
120
+
121
+ $custom_updates = MLAOptions::mla_evaluate_custom_field_mapping( $post_id, 'single_attachment_mapping' );
122
+ if ( !empty( $custom_updates ) && !empty( $custom_updates['custom_updates'] ) ) {
123
+ if ( isset( $updates['custom_updates'] ) ) {
124
+ $updates['custom_updates'] = array_merge( $updates['custom_updates'], $custom_updates['custom_updates'] );
125
+ } else {
126
+ $updates['custom_updates'] = $custom_updates['custom_updates'];
127
+ }
128
+ }
129
+
130
+ //error_log( "MLABulkEditRemapExample::mla_list_table_end_bulk_action( $post_id ) updates = " . var_export( $updates, true ), 0 );
131
+ $item_content = MLAData::mla_update_single_item( $post_id, $updates );
132
+ }
133
+
134
+ return $item_content;
135
+ } // mla_list_table_end_bulk_action
136
+ } // Class MLABulkEditRemapExample
137
+
138
+ /*
139
+ * Install the filters at an early opportunity
140
+ */
141
+ add_action('init', 'MLABulkEditRemapExample::initialize');
142
+ ?>
examples/mla-cloud-hooks-example.php.txt CHANGED
@@ -488,32 +488,6 @@ class MLATagCloudHooksExample {
488
  return $html_markup;
489
  } // mla_tag_cloud_open_parse_filter
490
 
491
- /**
492
- * MLA Tag Cloud Style
493
- *
494
- * This is an old filter retained for compatibility with earlier MLA versions.
495
- * You will probably find the "Values" and "Parse" filters more useful.
496
- *
497
- * @since 1.00
498
- *
499
- * @param string HTML markup for "gallery style" and "gallery open", combined
500
- * @param array parameter_name => parameter_value pairs for gallery style
501
- * @param array parameter_name => parameter_value pairs for gallery open
502
- * @param string template used to generate the HTML markup for gallery style
503
- * @param string template used to generate the HTML markup for gallery open
504
- *
505
- * @return array updated HTML markup for "gallery style" and "gallery open" output
506
- */
507
- public static function mla_tag_cloud_style_filter( $html_markup, $style_values, $open_values, $style_template, $open_template ) {
508
- //error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
509
- //error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_filter $style_values = ' . var_export( $style_values, true ), 0 );
510
- //error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_filter $open_values = ' . var_export( $open_values, true ), 0 );
511
- //error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_filter $style_template = ' . var_export( $style_template, true ), 0 );
512
- //error_log( 'MLATagCloudHooksExample::mla_tag_cloud_style_filter $open_template = ' . var_export( $open_template, true ), 0 );
513
-
514
- return $html_markup;
515
- } // mla_tag_cloud_style_filter
516
-
517
  /**
518
  * MLA Tag Cloud Row Open Values
519
  *
@@ -600,13 +574,15 @@ class MLATagCloudHooksExample {
600
  }
601
 
602
  /*
603
- * 'editlink', 'viewlink' and 'thelink' are already composed at this point, so we must update all of them
 
604
  */
605
  $old_style = $item_values['link_style'];
606
  $new_style = $old_style . sprintf( '; color: #%02x%02x%02x', $red, $green, $blue );
607
  $item_values['link_style'] = $new_style;
 
608
  $item_values['editlink'] = str_replace( $old_style, $new_style, $item_values['editlink'] );
609
- $item_values['viewlink'] = str_replace( $old_style, $new_style, $item_values['viewlink'] );
610
  $item_values['thelink'] = str_replace( $old_style, $new_style, $item_values['thelink'] );
611
  }
612
 
488
  return $html_markup;
489
  } // mla_tag_cloud_open_parse_filter
490
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
491
  /**
492
  * MLA Tag Cloud Row Open Values
493
  *
574
  }
575
 
576
  /*
577
+ * 'currentlink', 'editlink', 'termlink' and 'thelink' are already composed at this point,
578
+ * so we must update all of them
579
  */
580
  $old_style = $item_values['link_style'];
581
  $new_style = $old_style . sprintf( '; color: #%02x%02x%02x', $red, $green, $blue );
582
  $item_values['link_style'] = $new_style;
583
+ $item_values['currentlink'] = str_replace( $old_style, $new_style, $item_values['currentlink'] );
584
  $item_values['editlink'] = str_replace( $old_style, $new_style, $item_values['editlink'] );
585
+ $item_values['termlink'] = str_replace( $old_style, $new_style, $item_values['termlink'] );
586
  $item_values['thelink'] = str_replace( $old_style, $new_style, $item_values['thelink'] );
587
  }
588
 
examples/mla-current-user-example.php.txt ADDED
@@ -0,0 +1,189 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: MLA Current User Example
4
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
5
+ Description: Uses the current logged in user to supply an "Author" parameter for the query
6
+ Author: David Lingren
7
+ Version: 1.01
8
+ Author URI: http://fairtradejudaica.org/our-story/staff/
9
+
10
+ Copyright 2016 David Lingren
11
+
12
+ This program is free software; you can redistribute it and/or modify
13
+ it under the terms of the GNU General Public License as published by
14
+ the Free Software Foundation; either version 2 of the License, or
15
+ (at your option) any later version.
16
+
17
+ This program is distributed in the hope that it will be useful,
18
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ GNU General Public License for more details.
21
+
22
+ You can get a copy of the GNU General Public License by writing to the
23
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
24
+ */
25
+
26
+ /**
27
+ * Class MLA Current User Example uses the current logged in user to supply an "Author" parameter for the query
28
+ *
29
+ * @package MLA Current User Example
30
+ * @since 1.00
31
+ */
32
+ class MLACurrentUserExample {
33
+ /**
34
+ * Initialization function, similar to __construct()
35
+ *
36
+ * @since 1.00
37
+ */
38
+ public static function initialize() {
39
+ // The filters are only useful for front-end posts/pages; exit if in the admin section
40
+ if ( is_admin() )
41
+ return;
42
+
43
+ add_filter( 'mla_gallery_raw_attributes', 'MLACurrentUserExample::mla_gallery_raw_attributes_filter', 10, 1 );
44
+ add_filter( 'mla_gallery_attributes', 'MLACurrentUserExample::mla_gallery_attributes_filter', 10, 1 );
45
+ add_filter( 'mla_gallery_open_template', 'MLACurrentUserExample::mla_gallery_open_template_filter', 10, 1 );
46
+ add_filter( 'mla_gallery_item_values', 'MLACurrentUserExample::mla_gallery_item_values_filter', 10, 1 );
47
+ }
48
+
49
+ /**
50
+ * Save the shortcode attributes
51
+ *
52
+ * @since 1.01
53
+ *
54
+ * @var array
55
+ */
56
+ private static $shortcode_attributes = array();
57
+
58
+ /**
59
+ * MLA Gallery Raw (Display) Attributes
60
+ *
61
+ * @since 1.01
62
+ *
63
+ * @param array the raw shortcode parameters passed in to the shortcode
64
+ */
65
+ public static function mla_gallery_raw_attributes_filter( $shortcode_attributes ) {
66
+ // Delete the selected file.
67
+ if ( isset( $shortcode_attributes['my_filter'] ) && 'allow file deletion' == $shortcode_attributes['my_filter'] ) {
68
+ if ( isset( $_REQUEST['attachment_ID'] ) ) {
69
+ $id = (integer) $_REQUEST['attachment_ID'];
70
+ if ( current_user_can( 'delete_post', $id ) ) {
71
+ $result = wp_delete_attachment( $id );
72
+ } else {
73
+ $result = false;
74
+ }
75
+
76
+ if ( ( false === $result ) || ( NULL === $result ) ) {
77
+ $shortcode_attributes['gallery_open_message'] = "Could not delete attachment_ID '{$id}'.";
78
+ } else {
79
+ $result = (array) $result; // Some wp_delete_attachment calls return an object
80
+ $shortcode_attributes['gallery_open_message'] = "Attachment '{$result['post_title']}' (ID {$id}) has been deleted.";
81
+ }
82
+
83
+ unset( $_REQUEST['attachment_ID'] );
84
+ }
85
+ }
86
+
87
+ return $shortcode_attributes;
88
+ } // mla_gallery_raw_attributes_filter
89
+
90
+ /**
91
+ * MLA Gallery (Display) Attributes
92
+ *
93
+ * @since 1.00
94
+ *
95
+ * @param array the shortcode parameters passed in to the shortcode
96
+ */
97
+ public static function mla_gallery_attributes_filter( $shortcode_attributes ) {
98
+ global $wpdb;
99
+
100
+ // ignore shortcodes without the author parameter set to "current"
101
+ if ( empty( $shortcode_attributes['author'] ) || ( 'current' !== $shortcode_attributes['author'] ) ) {
102
+ return $shortcode_attributes;
103
+ }
104
+
105
+ // ignore shortcodes with no logged in user
106
+ $current_user = wp_get_current_user();
107
+ if ( !( $current_user instanceof WP_User ) || ( 0 == $current_user->ID ) ) {
108
+ unset ( $shortcode_attributes['author'] );
109
+ } else {
110
+ $shortcode_attributes['author'] = $current_user->ID;
111
+ }
112
+
113
+ // Save the attributes for use in the later filters
114
+ self::$shortcode_attributes = $shortcode_attributes;
115
+
116
+ return $shortcode_attributes;
117
+ } // mla_gallery_attributes_filter
118
+
119
+ /**
120
+ * Replace the caption value and update captiontag_content as well
121
+ *
122
+ * @since 1.01
123
+ *
124
+ * @param array parameter_name => parameter_value pairs
125
+ * @param string New value for Caption
126
+ *
127
+ * @return array item_values with updated 'caption' and 'captiontag_content'
128
+ */
129
+ private static function _update_caption( $item_values, $new_caption ) {
130
+ $old_caption = $item_values['caption'];
131
+ $item_values['caption'] = $new_caption;
132
+
133
+ if ( !empty( $item_values['captiontag_content'] ) ) {
134
+ $item_values['captiontag_content'] = str_replace( $old_caption, $new_caption, $item_values['captiontag_content'] );
135
+ } else {
136
+ if ( $item_values['captiontag'] ) {
137
+ $item_values['captiontag_content'] = '<' . $item_values['captiontag'] . " class='wp-caption-text gallery-caption' id='" . $item_values['selector'] . '-' . $item_values['attachment_ID'] . "'>\n\t\t" . $new_caption . "\n\t</" . $item_values['captiontag'] . ">\n";
138
+ } else {
139
+ $item_values['captiontag_content'] = $new_caption;
140
+ }
141
+ }
142
+
143
+ return $item_values;
144
+ } // _update_caption
145
+
146
+ /**
147
+ * MLA Gallery Open Template
148
+ *
149
+ * @since 1.01
150
+ *
151
+ * @param string template used to generate the HTML markup
152
+ */
153
+ public static function mla_gallery_open_template_filter( $open_template ) {
154
+ // Check for a display message
155
+ if ( isset( self::$shortcode_attributes['gallery_open_message'] ) ) {
156
+ $open_template = '<p><strong>' . self::$shortcode_attributes['gallery_open_message'] . '</strong></p>' . $open_template;
157
+ }
158
+
159
+ return $open_template;
160
+ } // mla_gallery_open_template_filter
161
+
162
+ /**
163
+ * MLA Gallery Item Values
164
+ *
165
+ * @since 1.01
166
+ *
167
+ * @param array parameter_name => parameter_value pairs
168
+ */
169
+ public static function mla_gallery_item_values_filter( $item_values ) {
170
+ if ( isset( self::$shortcode_attributes['my_filter'] ) && ( 'allow file deletion' == self::$shortcode_attributes['my_filter'] ) ) {
171
+ $id = (integer) $item_values['attachment_ID'];
172
+ if ( current_user_can( 'delete_post', $id ) ) {
173
+ // Compose a new caption, adding the deletion link.
174
+ $mla_link_href = "{$item_values['page_url']}?attachment_ID={$id}";
175
+ $item_values = self::_update_caption( $item_values, sprintf( '%1$s<br><a href="%2$s" title="Click to delete">Delete this file</a>', $item_values['base_file'], $mla_link_href ) );
176
+ } else {
177
+ $item_values = self::_update_caption( $item_values, sprintf( '%1$s', $item_values['base_file'] ) );
178
+ }
179
+ }
180
+
181
+ return $item_values;
182
+ } // mla_gallery_item_values_filter
183
+ } // Class MLACurrentUserExample
184
+
185
+ /*
186
+ * Install the filters at an early opportunity
187
+ */
188
+ add_action('init', 'MLACurrentUserExample::initialize');
189
+ ?>
examples/mla-custom-taxonomy-example.php.txt ADDED
@@ -0,0 +1,397 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: MLA Custom Taxonomy Example
4
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
5
+ Description: Defines custom taxonomies and uses mla_term_list to provide mla_gallery filtering.
6
+ Author: David Lingren
7
+ Version: 1.02
8
+ Author URI: http://fairtradejudaica.org/our-story/staff/
9
+
10
+ Copyright 2016 David Lingren
11
+
12
+ This program is free software; you can redistribute it and/or modify
13
+ it under the terms of the GNU General Public License as published by
14
+ the Free Software Foundation; either version 2 of the License, or
15
+ (at your option) any later version.
16
+
17
+ This program is distributed in the hope that it will be useful,
18
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ GNU General Public License for more details.
21
+
22
+ You can get a copy of the GNU General Public License by writing to the
23
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
24
+ */
25
+
26
+ /**
27
+ * Class MLA Custom Taxonomy Example Defines custom taxonomies and uses mla_term_list
28
+ * to provide mla_gallery filtering
29
+ *
30
+ * Created for support topic "How do I provide a front-end search of my media items using Custom Fields?"
31
+ * opened on 4/15/2016 by "direys":
32
+ * https://wordpress.org/support/topic/how-do-i-provide-a-front-end-search-of-my-media-items-using-custom-fields
33
+ *
34
+ * Enhanced for support topic "Dynamic search and filters"
35
+ * opened on 5/28/2016 by "ghislainsc"
36
+ * https://wordpress.org/support/topic/dynamic-search-and-filters#post-8480233
37
+ *
38
+ * @package MLA Custom Taxonomy Example
39
+ * @since 1.00
40
+ */
41
+ class MLACustomTaxonomyExample {
42
+ /**
43
+ * Initialization function, similar to __construct()
44
+ *
45
+ * @since 1.00
46
+ */
47
+ public static function initialize() {
48
+ // Comment out the next line to eliminate the custom taxonomies
49
+ self::_build_taxonomies();
50
+
51
+ // The filters are only useful for front-end posts/pages; exit if in the admin section
52
+ if ( is_admin() )
53
+ return;
54
+
55
+ add_filter( 'mla_term_list_attributes', 'MLACustomTaxonomyExample::mla_term_list_attributes', 10, 1 );
56
+ add_filter( 'mla_gallery_attributes', 'MLACustomTaxonomyExample::mla_gallery_attributes', 10, 1 );
57
+
58
+ // Add the custom shortcode for generating the items per page
59
+ add_shortcode( 'mcte_per_page', 'MLACustomTaxonomyExample::mcte_per_page' );
60
+
61
+ // Add the custom shortcode for generating "sticky" term search text boxes
62
+ add_shortcode( 'mcte_terms_search', 'MLACustomTaxonomyExample::mcte_terms_search' );
63
+ }
64
+
65
+ /**
66
+ * Registers Species, Rooms and Finishes custom taxonomies
67
+ *
68
+ * @since 1.00
69
+ *
70
+ * @return void
71
+ */
72
+ private static function _build_taxonomies( ) {
73
+ $labels = array(
74
+ 'name' => 'Species',
75
+ 'singular_name' => 'Species',
76
+ 'search_items' => 'Search Species',
77
+ 'all_items' => 'All Species',
78
+ 'parent_item' => 'Parent Species',
79
+ 'parent_item_colon' => 'Parent Species:',
80
+ 'edit_item' => 'Edit Species',
81
+ 'update_item' => 'Update Species',
82
+ 'add_new_item' => 'Add New Species',
83
+ 'new_item_name' => 'New Species',
84
+ 'menu_name' => 'Species',
85
+ );
86
+
87
+ register_taxonomy(
88
+ 'species',
89
+ array( 'attachment' ),
90
+ array(
91
+ 'hierarchical' => true,
92
+ 'labels' => $labels,
93
+ 'show_ui' => true,
94
+ 'query_var' => true,
95
+ 'rewrite' => true,
96
+ 'update_count_callback' => '_update_generic_term_count'
97
+ )
98
+ );
99
+
100
+ $labels = array(
101
+ 'name' => 'Rooms',
102
+ 'singular_name' => 'Room',
103
+ 'search_items' => 'Search Rooms',
104
+ 'all_items' => 'All Rooms',
105
+ 'parent_item' => 'Parent Room',
106
+ 'parent_item_colon' => 'Parent Room:',
107
+ 'edit_item' => 'Edit Room',
108
+ 'update_item' => 'Update Room',
109
+ 'add_new_item' => 'Add New Room',
110
+ 'new_item_name' => 'New Room',
111
+ 'menu_name' => 'Room',
112
+ );
113
+
114
+ register_taxonomy(
115
+ 'room',
116
+ array( 'attachment' ),
117
+ array(
118
+ 'hierarchical' => false,
119
+ 'labels' => $labels,
120
+ 'show_ui' => true,
121
+ 'query_var' => true,
122
+ 'rewrite' => true,
123
+ 'update_count_callback' => '_update_generic_term_count'
124
+ )
125
+ );
126
+
127
+ $labels = array(
128
+ 'name' => 'Finishes',
129
+ 'singular_name' => 'Finish',
130
+ 'search_items' => 'Search Finishes',
131
+ 'all_items' => 'All Finishes',
132
+ 'parent_item' => 'Parent Finish',
133
+ 'parent_item_colon' => 'Parent Finish:',
134
+ 'edit_item' => 'Edit Finish',
135
+ 'update_item' => 'Update Finish',
136
+ 'add_new_item' => 'Add New Finish',
137
+ 'new_item_name' => 'New Finish',
138
+ 'menu_name' => 'Finish',
139
+ );
140
+
141
+ register_taxonomy(
142
+ 'finish',
143
+ array( 'attachment' ),
144
+ array(
145
+ 'hierarchical' => false,
146
+ 'labels' => $labels,
147
+ 'show_ui' => true,
148
+ 'query_var' => true,
149
+ 'rewrite' => true,
150
+ 'update_count_callback' => '_update_generic_term_count'
151
+ )
152
+ );
153
+ } // _build_taxonomies
154
+
155
+ /**
156
+ * Look for 'mcte_filters' that pass the selected terms from page to page of a paginated gallery
157
+ *
158
+ * The $shortcode_attributes array is where you will find any of your own parameters that are coded in the
159
+ * shortcode, e.g., [mla_term_list use_filters=true].
160
+ *
161
+ * @since 1.00
162
+ *
163
+ * @param array the shortcode parameters passed in to the shortcode
164
+ */
165
+ public static function mla_term_list_attributes( $shortcode_attributes ) {
166
+
167
+ // See if this is a "filtered" term list
168
+ if ( !empty( $shortcode_attributes['use_filters'] ) && ( 'true' == strtolower( $shortcode_attributes['use_filters'] ) ) ) {
169
+ // Pagination links, e.g. Previous or Next, have mcte_filters that encode the form parameters
170
+ if ( !empty( $_REQUEST['mcte_filters'] ) ) {
171
+ $filters = json_decode( trim( stripslashes( $_REQUEST['mcte_filters'] ), '"' ), true );
172
+
173
+ if ( !empty( $filters['tax_input'] ) ) {
174
+ $_REQUEST['tax_input'] = $filters['tax_input'];
175
+ }
176
+ }
177
+
178
+ // If nothing is set for this taxonomy we're done
179
+ if ( empty( $_REQUEST['tax_input'] ) || !array_key_exists( $shortcode_attributes['taxonomy'], $_REQUEST['tax_input'] ) ) {
180
+ return $shortcode_attributes;
181
+ }
182
+
183
+ $terms = $_REQUEST['tax_input'][ $shortcode_attributes['taxonomy'] ];
184
+
185
+ // Check for a dropdown control with "All Terms" selected
186
+ $option_all = array_search( '0', $terms );
187
+ if ( false !== $option_all ) {
188
+ unset( $terms[ $option_all ] );
189
+ }
190
+
191
+ // Pass selected terms to the shortcode
192
+ if ( !empty( $terms ) ) {
193
+ $shortcode_attributes[ $shortcode_attributes['mla_item_parameter'] ] = implode( ',', $_REQUEST['tax_input'][ $shortcode_attributes['taxonomy'] ] );
194
+ }
195
+
196
+ unset( $shortcode_attributes['use_filters'] );
197
+ }
198
+
199
+ return $shortcode_attributes;
200
+ } // mla_term_list_attributes
201
+
202
+ /**
203
+ * Add the taxonomy query to the shortcode, limit posts_per_page and encode filters for pagination links
204
+ *
205
+ * The $shortcode_attributes array is where you will find any of your own parameters that are coded in the
206
+ * shortcode, e.g., [mla_gallery random_category="abc"].
207
+ *
208
+ * @since 1.00
209
+ *
210
+ * @param array the shortcode parameters passed in to the shortcode
211
+ */
212
+ public static function mla_gallery_attributes( $shortcode_attributes ) {
213
+ /*
214
+ * Only process shortcodes that allow filters
215
+ */
216
+ if ( empty( $shortcode_attributes['add_filters_to'] ) ) {
217
+ return $shortcode_attributes;
218
+ }
219
+
220
+ // Unpack filter values encoded for pagination links
221
+ if ( !empty( $_REQUEST['mcte_filters'] ) ) {
222
+ $filters = json_decode( trim( stripslashes( $_REQUEST['mcte_filters'] ), '"' ), true );
223
+
224
+ if ( isset( $filters['mcte_terms_search'] ) ) {
225
+ $_REQUEST['mcte_terms_search'] = $filters['mcte_terms_search'];
226
+ }
227
+
228
+ if ( isset( $filters['tax_input'] ) ) {
229
+ $_REQUEST['tax_input'] = $filters['tax_input'];
230
+ }
231
+ }
232
+
233
+ // Adjust posts_per_page/numberposts
234
+ if ( !empty( $_REQUEST['mcte_per_page'] ) ) {
235
+ if ( isset( $shortcode_attributes['numberposts'] ) && ! isset( $shortcode_attributes['posts_per_page'] )) {
236
+ $shortcode_attributes['posts_per_page'] = $shortcode_attributes['numberposts'];
237
+ unset( $shortcode_attributes['numberposts'] );
238
+ }
239
+
240
+ $shortcode_attributes['posts_per_page'] = $_REQUEST['mcte_per_page'];
241
+ }
242
+
243
+ // Add the terms search parameters, if present
244
+ if ( !empty( $_REQUEST['mcte_terms_search'] ) && is_array( $_REQUEST['mcte_terms_search'] ) && !empty( $_REQUEST['mcte_terms_search']['mla_terms_phrases'] ) ) {
245
+ $mcte_terms_search = $_REQUEST['mcte_terms_search'];
246
+ foreach( $mcte_terms_search as $key => $value ) {
247
+ if ( !empty( $value ) ) {
248
+ $shortcode_attributes[ $key ] = $value;
249
+ }
250
+ }
251
+ } else {
252
+ $mcte_terms_search = array();
253
+ }
254
+
255
+ // Add the taxonomy filter(s), if present
256
+ $taxonomy = $shortcode_attributes['add_filters_to'];
257
+ $tax_input = !empty( $_REQUEST['tax_input'] ) ? $_REQUEST['tax_input'] : array();
258
+
259
+ if ( ! ( empty( $shortcode_attributes[ $taxonomy ] ) && empty( $tax_input ) ) ) {
260
+ $shortcode_attributes['tax_query'] = "array( 'relation' => 'AND', ";
261
+
262
+ // Look for the optional "simple taxonomy query" as an initial filter
263
+ if ( !empty( $shortcode_attributes[ $taxonomy ] ) ) {
264
+ $values = "array( '" . implode( "', '", explode( ',', $shortcode_attributes[ $taxonomy ] ) ) . "' )";
265
+ $shortcode_attributes['tax_query'] .= "array('taxonomy' => '{$taxonomy}' ,'field' => 'slug','terms' => {$values}, 'operator' => 'IN'), ";
266
+ unset( $shortcode_attributes[ $taxonomy ] );
267
+ }
268
+
269
+ foreach ( $tax_input as $taxonomy => $terms ) {
270
+ // Check for a dropdown control with "All Terms" selected
271
+ $option_all = array_search( '0', $terms );
272
+ if ( false !== $option_all ) {
273
+ unset( $terms[ $option_all ] );
274
+ }
275
+
276
+ if ( !empty( $terms ) ) {
277
+ $values = 'array( ' . implode( ',', $terms ) . ' )';
278
+ $shortcode_attributes['tax_query'] .= "array('taxonomy' => '{$taxonomy}' ,'field' => 'term_id','terms' => {$values}, 'operator' => 'IN'), ";
279
+ }
280
+ }
281
+
282
+ $shortcode_attributes['tax_query'] .= ')';
283
+ }
284
+
285
+ /*
286
+ * Add the filter settings to pagination URLs
287
+ */
288
+ if ( !empty( $shortcode_attributes['mla_output'] ) ) {
289
+
290
+ $filters = urlencode( json_encode( array( 'tax_input' => $tax_input, 'mcte_terms_search' => $mcte_terms_search ) ) );
291
+ $shortcode_attributes['mla_link_href'] = '[+new_url+]?[+new_page_text+]&mcte_filters=' . $filters;
292
+
293
+ if ( !empty( $shortcode_attributes['posts_per_page'] ) ) {
294
+ $shortcode_attributes['mla_link_href'] .= '&mcte_per_page=' . $shortcode_attributes['posts_per_page'];
295
+ }
296
+ }
297
+
298
+ unset( $shortcode_attributes['add_filters_to'] );
299
+ return $shortcode_attributes;
300
+ } // mla_gallery_attributes
301
+
302
+ /**
303
+ * Items per page shortcode
304
+ *
305
+ * This shortcode generates an HTML text box with a default mcte_per_page value.
306
+ *
307
+ * @since 1.01
308
+ *
309
+ * @param array the shortcode parameters
310
+ *
311
+ * @return string HTML markup for the generated form
312
+ */
313
+ public static function mcte_per_page( $attr ) {
314
+ if ( isset( $attr['numberposts'] ) && ! isset( $attr['posts_per_page'] )) {
315
+ $attr['posts_per_page'] = $attr['numberposts'];
316
+ unset( $attr['numberposts'] );
317
+ }
318
+
319
+ if ( !empty( $_REQUEST['mcte_per_page'] ) ) {
320
+ $posts_per_page = $_REQUEST['mcte_per_page'];
321
+ } else {
322
+ $posts_per_page = isset( $attr['posts_per_page'] ) ? $attr['posts_per_page'] : 6;
323
+ }
324
+
325
+ return '<input name="mcte_per_page" id="mcte-per-page" type="text" size="2" value="' . $posts_per_page . '" />';
326
+ } // mcte_per_page
327
+
328
+ /**
329
+ * Terms search generator shortcode
330
+ *
331
+ * This shortcode generates an HTML text box with a default mla_terms_phrases value,
332
+ * and adds hidden parameters for the other Terms Search parameters
333
+ *
334
+ * @since 1.01
335
+ *
336
+ * @param array the shortcode parameters
337
+ *
338
+ * @return string HTML markup for the generated form
339
+ */
340
+ public static function mcte_terms_search( $attr ) {
341
+ $default_arguments = array(
342
+ 'mla_terms_phrases' => '',
343
+ 'mla_terms_taxonomies' => '',
344
+ 'mla_phrase_delimiter' => '',
345
+ 'mla_phrase_connector' => '',
346
+ 'mla_term_connector' => '',
347
+ );
348
+
349
+ // Make sure $attr is an array, even if it's empty
350
+ if ( empty( $attr ) ) {
351
+ $attr = array();
352
+ } elseif ( is_string( $attr ) ) {
353
+ $attr = shortcode_parse_atts( $attr );
354
+ }
355
+
356
+ // Accept only the attributes we need and supply defaults
357
+ $arguments = shortcode_atts( $default_arguments, $attr );
358
+
359
+ // Pagination links, e.g. Previous or Next, have mcte_filters that encode the form parameters
360
+ if ( !empty( $_REQUEST['mcte_filters'] ) ) {
361
+ $filters = json_decode( trim( stripslashes( $_REQUEST['mcte_filters'] ), '"' ), true );
362
+
363
+ if ( !empty( $filters['mcte_terms_search'] ) ) {
364
+ $_REQUEST['mcte_terms_search'] = $filters['mcte_terms_search'];
365
+ }
366
+ }
367
+
368
+ // mcte_terms_search has settings from the form or pagination link
369
+ if ( !empty( $_REQUEST['mcte_terms_search'] ) && is_array( $_REQUEST['mcte_terms_search'] ) ) {
370
+ foreach ( $arguments as $key => $value ) {
371
+ if ( !empty( $_REQUEST['mcte_terms_search'][ $key ] ) ) {
372
+ $arguments[ $key ] = $_REQUEST['mcte_terms_search'][ $key ];
373
+ }
374
+ }
375
+ }
376
+
377
+ // Always supply the terms phrases text box
378
+ $return_value = '<input name="mcte_terms_search[mla_terms_phrases]" id="mcte-terms-phrases" type="text" size="20" value="' . $arguments['mla_terms_phrases'] . "\" />\n";
379
+ unset( $arguments['mla_terms_phrases'] );
380
+
381
+ // Add optional parameters
382
+ foreach( $arguments as $key => $value ) {
383
+ if ( !empty( $value ) ) {
384
+ $id_value = str_replace( '_', '-', substr( $key, 4 ) );
385
+ $return_value .= sprintf( '<input name="mcte_terms_search[%1$s]" id="mcte-%2$s" type="hidden" value="%3$s" />%4$s', $key, $id_value, $value, "\n" );
386
+ }
387
+ }
388
+
389
+ return $return_value;
390
+ } // mcte_terms_search
391
+ } // Class MLACustomTaxonomyExample
392
+
393
+ /*
394
+ * Install the filters at an early opportunity
395
+ */
396
+ add_action('init', 'MLACustomTaxonomyExample::initialize');
397
+ ?>
examples/mla-hooks-example.php.txt CHANGED
@@ -912,7 +912,16 @@ class MLAGalleryHooksExample {
912
  private static function _update_caption( $item_values, $new_caption ) {
913
  $old_caption = $item_values['caption'];
914
  $item_values['caption'] = $new_caption;
915
- $item_values['captiontag_content'] = str_replace( $old_caption, $new_caption, $item_values['captiontag_content'] );
 
 
 
 
 
 
 
 
 
916
 
917
  return $item_values;
918
  } // _update_caption
912
  private static function _update_caption( $item_values, $new_caption ) {
913
  $old_caption = $item_values['caption'];
914
  $item_values['caption'] = $new_caption;
915
+
916
+ if ( !empty( $item_values['captiontag_content'] ) ) {
917
+ $item_values['captiontag_content'] = str_replace( $old_caption, $new_caption, $item_values['captiontag_content'] );
918
+ } else {
919
+ if ( $item_values['captiontag'] ) {
920
+ $item_values['captiontag_content'] = '<' . $item_values['captiontag'] . " class='wp-caption-text gallery-caption' id='" . $item_values['selector'] . '-' . $item_values['attachment_ID'] . "'>\n\t\t" . $new_caption . "\n\t</" . $item_values['captiontag'] . ">\n";
921
+ } else {
922
+ $item_values['captiontag_content'] = $new_caption;
923
+ }
924
+ }
925
 
926
  return $item_values;
927
  } // _update_caption
examples/mla-insert-fixit.php.txt CHANGED
@@ -5,7 +5,7 @@
5
  * Adds a Tools/Insert Fixit submenu with buttons to perform the operations.
6
  *
7
  * @package Insert Fixit
8
- * @version 1.00
9
  */
10
 
11
  /*
@@ -13,10 +13,10 @@ Plugin Name: MLA Insert Fixit
13
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
14
  Description: Synchronizes Media Library values to and from post/page inserted images
15
  Author: David Lingren
16
- Version: 1.00
17
  Author URI: http://fairtradejudaica.org/our-story/staff/
18
 
19
- Copyright 2015 David Lingren
20
 
21
  This program is free software; you can redistribute it and/or modify
22
  it under the terms of the GNU General Public License as published by
@@ -35,6 +35,18 @@ Copyright 2015 David Lingren
35
  /**
36
  * Class Insert Fixit implements a Tools submenu page with several image-fixing tools.
37
  *
 
 
 
 
 
 
 
 
 
 
 
 
38
  * @package Insert Fixit
39
  * @since 1.00
40
  */
@@ -46,7 +58,7 @@ class Insert_Fixit {
46
  *
47
  * @var string
48
  */
49
- const CURRENT_VERSION = '1.00';
50
 
51
  /**
52
  * Slug prefix for registering and enqueueing submenu pages, style sheets and scripts
@@ -76,20 +88,9 @@ class Insert_Fixit {
76
  public static function initialize() {
77
  self::$wp_4dot0_plus = version_compare( get_bloginfo('version'), '4.0', '>=' );
78
 
79
- add_action( 'admin_init', 'Insert_Fixit::admin_init_action' );
80
  add_action( 'admin_menu', 'Insert_Fixit::admin_menu_action' );
81
  }
82
 
83
- /**
84
- * Admin Init Action
85
- *
86
- * @since 1.00
87
- *
88
- * @return void
89
- */
90
- public static function admin_init_action() {
91
- }
92
-
93
  /**
94
  * Add submenu page in the "Tools" section
95
  *
@@ -136,7 +137,7 @@ error_log( 'Insert_Fixit::render_tools_page() $_REQUEST = ' . var_export( $_REQU
136
  }
137
 
138
  $setting_actions = array(
139
- '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>.<br />&nbsp;<br />You can find 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>.' ),
140
  '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.' ),
141
 
142
  'c0' => array( 'handler' => '', 'comment' => '<h3>Media Library item to Post/Page inserts</h3>' ),
@@ -146,8 +147,15 @@ error_log( 'Insert_Fixit::render_tools_page() $_REQUEST = ' . var_export( $_REQU
146
  'ALT to Library' => array( 'handler' => '_copy_to_media_library',
147
  'comment' => 'Copy ALT Text from Post/Page inserts to Media Library item' ),
148
  'c2' => array( 'handler' => '', 'comment' => '<hr>' ),
149
- 'c3' => array( 'handler' => '', 'comment' => '<h3>Refresh Caches</h3>' ),
150
- 'c4' => array( 'handler' => '', 'comment' => 'If you have a large number of posts/pages and/or Media Library items you can use the cache refresh operations to break up processing into smaller steps. Try clicking the "Image Inserts" button, then the "Image Objects" button to build these intermediate data structures and save them in the WOrdPress cache for fifteen minutes. That will make the "Copy" operations above go quicker.<br>&nbsp;' ),
 
 
 
 
 
 
 
151
  'Image Inserts' => array( 'handler' => '_build_image_inserts_cache',
152
  'comment' => 'Find all post/page inserts and save in cache for fifteen minutes' ),
153
  'Image objects' => array( 'handler' => '_build_image_objects_cache',
@@ -176,6 +184,11 @@ error_log( 'Insert_Fixit::render_tools_page() $_REQUEST = ' . var_export( $_REQU
176
  }
177
  }
178
 
 
 
 
 
 
179
  echo "\t\t" . '<div style="width:700px">' . "\n";
180
  echo "\t\t" . '<form action="' . admin_url( 'tools.php?page=' . self::SLUG_PREFIX . 'tools' ) . '" method="post" class="' . self::SLUG_PREFIX . 'tools-form-class" id="' . self::SLUG_PREFIX . 'tools-form-id">' . "\n";
181
  echo "\t\t" . ' <p class="submit" style="padding-bottom: 0;">' . "\n";
@@ -184,17 +197,17 @@ error_log( 'Insert_Fixit::render_tools_page() $_REQUEST = ' . var_export( $_REQU
184
  echo "\t\t" . ' <tr valign="top">' . "\n";
185
  echo "\t\t" . ' <td width="24%" style="text-align: right; padding-right: 5px" >First Post/Page ID</td>' . "\n";
186
  echo "\t\t" . ' <td width="24%" style="text-align: left;">' . "\n";
187
- echo "\t\t" . ' <input name="' . self::SLUG_PREFIX . 'post_lower" type="text" size="5" value="">' . "\n";
188
  echo "\t\t" . ' </td>' . "\n";
189
  echo "\t\t" . ' <td width="24%" style="text-align: right; padding-right: 5px" >First Attachment ID</td>' . "\n";
190
- echo "\t\t" . ' <td width="24%" style="text-align: left;"><input name="' . self::SLUG_PREFIX . 'attachment_lower" type="text" size="5" value=""></td>' . "\n";
191
  echo "\t\t" . ' </tr>' . "\n";
192
 
193
  echo "\t\t" . ' <tr valign="top">' . "\n";
194
  echo "\t\t" . ' <td width="24%" style="text-align: right; padding-right: 5px" >Last Post/Page ID</td>' . "\n";
195
- echo "\t\t" . ' <td style="text-align: left;"><input name="' . self::SLUG_PREFIX . 'post_upper" type="text" size="5" value=""></td>' . "\n";
196
  echo "\t\t" . ' <td width="24%" style="text-align: right; padding-right: 5px" >Last Attachment ID</td>' . "\n";
197
- echo "\t\t" . ' <td style="text-align: left;"><input name="' . self::SLUG_PREFIX . 'attachment_upper" type="text" size="5" value=""></td>' . "\n";
198
  echo "\t\t" . ' </tr>' . "\n";
199
  echo "\t\t" . ' </table>' . "\n";
200
 
@@ -221,7 +234,12 @@ error_log( 'Insert_Fixit::render_tools_page() $_REQUEST = ' . var_export( $_REQU
221
 
222
  /**
223
  * Array of post/page IDs giving inserted image URL and ALT Text:
224
- * ID => array( 'src' => image URL, 'alt' => ALT Text
 
 
 
 
 
225
  *
226
  * @since 1.00
227
  *
@@ -244,13 +262,13 @@ error_log( 'Insert_Fixit::render_tools_page() $_REQUEST = ' . var_export( $_REQU
244
  if ( $use_cache ) {
245
  self::$image_inserts = get_transient( self::SLUG_PREFIX . 'image_inserts' );
246
  if ( is_array( self::$image_inserts ) ) {
247
- //error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache using cached self::\$image_inserts " . var_export( self::$image_inserts, true ), 0 );
248
  return;
249
  }
250
  }
251
 
252
  $return = delete_transient( self::SLUG_PREFIX . 'image_inserts' );
253
- //error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache delete_transient return = " . var_export( $return, true ), 0 );
254
 
255
  if ( ! empty( $_REQUEST[ self::SLUG_PREFIX . 'post_lower' ] ) ) {
256
  $lower_bound = (integer) $_REQUEST[ self::SLUG_PREFIX . 'post_lower' ];
@@ -268,16 +286,16 @@ error_log( 'Insert_Fixit::render_tools_page() $_REQUEST = ' . var_export( $_REQU
268
 
269
  $query = sprintf( 'SELECT ID, post_content FROM %1$s WHERE ( post_type IN ( \'post\', \'page\' ) AND ( post_status = \'publish\' ) AND ( ID >= %2$d ) AND ( ID <= %3$d ) AND ( post_content LIKE \'%4$s\' ) ) ORDER BY ID', $wpdb->posts, $lower_bound, $upper_bound, '%<img%' );
270
  $results = $wpdb->get_results( $query );
271
- //error_log( __LINE__ . ' Insert_Fixit::_build_image_inserts_cache() $results = ' . var_export( $results, true ), 0 );
272
 
273
  $upload_dir = wp_upload_dir();
274
- //error_log( __LINE__ . ' Insert_Fixit::_build_image_inserts_cache() $upload_dir = ' . var_export( $upload_dir, true ), 0 );
275
  $upload_dir = $upload_dir['baseurl'] . '/';
276
 
277
  $image_inserts = array();
278
  foreach ( $results as $result ) {
279
  $match_count = preg_match_all( '/\<img.*src="([^"]*)".*alt="([^"]*)"/', $result->post_content, $matches, PREG_OFFSET_CAPTURE );
280
- //error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache( {$result->ID} ) \$matches = " . var_export( $matches, true ), 0 );
281
  if ( $match_count ) {
282
  $image_inserts[ $result->ID ]['content'] = $result->post_content;
283
 
@@ -298,14 +316,90 @@ error_log( 'Insert_Fixit::render_tools_page() $_REQUEST = ' . var_export( $_REQU
298
  error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache \$image_inserts " . var_export($image_inserts, true ), 0 );
299
 
300
  $return = set_transient( self::SLUG_PREFIX . 'image_inserts', $image_inserts, 900 ); // fifteen minutes
301
- //error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache set_transient return = " . var_export( $return, true ), 0 );
302
  self::$image_inserts = $image_inserts;
303
  return 'Image inserts cache refreshed.';
304
  } // _build_image_inserts_cache
305
 
306
  /**
307
- * Array of post/page IDs giving inserted image URL and ALT Text:
308
- * ID => array( 'src' => image URL, 'alt' => ALT Text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
309
  *
310
  * @since 1.00
311
  *
@@ -320,19 +414,19 @@ error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache \$image_inserts
320
  *
321
  * @return void
322
  */
323
- private static function _build_image_objects_cache( $use_cache = false ) {
324
  global $wpdb;
325
 
326
  if ( $use_cache ) {
327
  self::$image_objects = get_transient( self::SLUG_PREFIX . 'image_objects' );
328
  if ( is_array( self::$image_objects ) ) {
329
- //error_log( __LINE__ . " Insert_Fixit::_build_image_objects_cache using cached self::\$image_objects " . var_export( self::$image_objects, true ), 0 );
330
  return;
331
  }
332
  }
333
 
334
  $return = delete_transient( self::SLUG_PREFIX . 'image_objects' );
335
- //error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache delete_transient return = " . var_export( $return, true ), 0 );
336
 
337
  if ( ! empty( $_REQUEST[ self::SLUG_PREFIX . 'attachment_lower' ] ) ) {
338
  $lower_bound = (integer) $_REQUEST[ self::SLUG_PREFIX . 'attachment_lower' ];
@@ -349,9 +443,14 @@ error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache \$image_inserts
349
  }
350
 
351
  $where = str_replace( '%', '%%', wp_post_mime_type_where( 'image', '' ) );
 
 
 
 
 
352
  $query = sprintf( 'SELECT ID FROM %1$s WHERE ( ( post_type = \'attachment\' ) %2$s AND ( ID >= %3$d ) AND ( ID <= %4$d ) ) ORDER BY ID', $wpdb->posts, $where, $lower_bound, $upper_bound );
353
  $results = $wpdb->get_results( $query );
354
- //error_log( __LINE__ . ' Insert_Fixit::_build_image_objects_cache() $results = ' . var_export( $results, true ), 0 );
355
 
356
  /*
357
  * Load the image_inserts array
@@ -393,7 +492,7 @@ error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache \$image_inserts
393
  if ( ! empty( $base_file ) ) {
394
  $files[ $base_file ] = $base_file;
395
  }
396
- //error_log( __LINE__ . " Insert_Fixit::_array_image_inserts_references( {$attachment->ID} ) files = " . var_export( $files, true ), 0 );
397
  /*
398
  * inserts Array of specific files (i.e., sizes) found in one or more posts/pages
399
  * as an image (<img>). The array key is the path and file name.
@@ -415,7 +514,7 @@ error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache \$image_inserts
415
  } // each result
416
 
417
  $return = set_transient( self::SLUG_PREFIX . 'image_objects', $references, 900 ); // fifteen minutes
418
- //error_log( __LINE__ . " Insert_Fixit::_build_image_objects_cache set_transient return = " . var_export( $return, true ), 0 );
419
  error_log( __LINE__ . " Insert_Fixit::_build_image_objects_cache set_transient references = " . var_export( $references, true ), 0 );
420
  self::$image_objects = $references;
421
  return 'Image objects cache refreshed.';
@@ -584,6 +683,84 @@ error_log( __LINE__ . " Insert_Fixit::_copy_to_media_library( {$attachment_id} )
584
 
585
  return "<br>Copy to Library matched {$image_inserts} posts/pages to {$image_objects} attachments and updated {$updated_attachments} Media Library items. There were {$errors} error(s).\n";
586
  } // _copy_to_media_library
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
587
  } //Insert_Fixit
588
 
589
  /*
5
  * Adds a Tools/Insert Fixit submenu with buttons to perform the operations.
6
  *
7
  * @package Insert Fixit
8
+ * @version 1.01
9
  */
10
 
11
  /*
13
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
14
  Description: Synchronizes Media Library values to and from post/page inserted images
15
  Author: David Lingren
16
+ Version: 1.01
17
  Author URI: http://fairtradejudaica.org/our-story/staff/
18
 
19
+ Copyright 2015-2016 David Lingren
20
 
21
  This program is free software; you can redistribute it and/or modify
22
  it under the terms of the GNU General Public License as published by
35
  /**
36
  * Class Insert Fixit implements a Tools submenu page with several image-fixing tools.
37
  *
38
+ * Created for support topic "Changed ALT text doesn't not reflect in published posts"
39
+ * opened on 6/6/2015 by "pikaren":
40
+ * https://wordpress.org/support/topic/changed-alt-text-doesnt-not-reflect-in-published-posts
41
+ *
42
+ * Created for support topic "alt text reconciliation"
43
+ * opened on 6/19/2015 by "fredmr"
44
+ * https://wordpress.org/support/topic/alt-text-reconciliation
45
+ *
46
+ * Enhanced for support topic "How do I extract the id from inserted_in and featured_in?"
47
+ * opened on 6/4/2016 by "Levy"
48
+ * https://wordpress.org/support/topic/how-do-i-extract-the-id-from-inserted_in-and-featured_in
49
+ *
50
  * @package Insert Fixit
51
  * @since 1.00
52
  */
58
  *
59
  * @var string
60
  */
61
+ const CURRENT_VERSION = '1.01';
62
 
63
  /**
64
  * Slug prefix for registering and enqueueing submenu pages, style sheets and scripts
88
  public static function initialize() {
89
  self::$wp_4dot0_plus = version_compare( get_bloginfo('version'), '4.0', '>=' );
90
 
 
91
  add_action( 'admin_menu', 'Insert_Fixit::admin_menu_action' );
92
  }
93
 
 
 
 
 
 
 
 
 
 
 
94
  /**
95
  * Add submenu page in the "Tools" section
96
  *
137
  }
138
 
139
  $setting_actions = array(
140
+ '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>.' ),
141
  '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.' ),
142
 
143
  'c0' => array( 'handler' => '', 'comment' => '<h3>Media Library item to Post/Page inserts</h3>' ),
147
  'ALT to Library' => array( 'handler' => '_copy_to_media_library',
148
  'comment' => 'Copy ALT Text from Post/Page inserts to Media Library item' ),
149
  'c2' => array( 'handler' => '', 'comment' => '<hr>' ),
150
+ 'c3' => array( 'handler' => '', 'comment' => '<h3>Attach Media Library item(s)</h3>' ),
151
+ 'c4' => array( 'handler' => '', 'comment' => '<strong>NOTE:</strong> Tools in this section operate only on <strong>unattached</strong> Media Library items.<br />&nbsp;' ),
152
+ 'Attach Inserted In' => array( 'handler' => '_attach_inserted_in',
153
+ 'comment' => 'Attach items to the first Post/Page they are inserted in' ),
154
+ 'Attach Featured In' => array( 'handler' => '_attach_featured_in',
155
+ 'comment' => 'Attach items to the first Post/Page for which they are the Featured Image' ),
156
+ 'c5' => array( 'handler' => '', 'comment' => '<hr>' ),
157
+ 'c6' => array( 'handler' => '', 'comment' => '<h3>Refresh Caches</h3>' ),
158
+ 'c7' => array( 'handler' => '', 'comment' => 'If you have a large number of posts/pages and/or Media Library items you can use the cache refresh operations to break up processing into smaller steps. Try clicking the "Image Inserts" button, then the "Image Objects" button to build these intermediate data structures and save them in the WordPress cache for fifteen minutes. That will make the "Copy" operations above go quicker.<br>&nbsp;' ),
159
  'Image Inserts' => array( 'handler' => '_build_image_inserts_cache',
160
  'comment' => 'Find all post/page inserts and save in cache for fifteen minutes' ),
161
  'Image objects' => array( 'handler' => '_build_image_objects_cache',
184
  }
185
  }
186
 
187
+ $post_lower = isset( $_REQUEST[ self::SLUG_PREFIX . 'post_lower' ] ) ? $_REQUEST[ self::SLUG_PREFIX . 'post_lower' ] : '';
188
+ $post_upper = isset( $_REQUEST[ self::SLUG_PREFIX . 'post_upper' ] ) ? $_REQUEST[ self::SLUG_PREFIX . 'post_upper' ] : '';
189
+ $attachment_lower = isset( $_REQUEST[ self::SLUG_PREFIX . 'attachment_lower' ] ) ? $_REQUEST[ self::SLUG_PREFIX . 'attachment_lower' ] : '';
190
+ $attachment_upper = isset( $_REQUEST[ self::SLUG_PREFIX . 'attachment_upper' ] ) ? $_REQUEST[ self::SLUG_PREFIX . 'attachment_upper' ] : '';
191
+
192
  echo "\t\t" . '<div style="width:700px">' . "\n";
193
  echo "\t\t" . '<form action="' . admin_url( 'tools.php?page=' . self::SLUG_PREFIX . 'tools' ) . '" method="post" class="' . self::SLUG_PREFIX . 'tools-form-class" id="' . self::SLUG_PREFIX . 'tools-form-id">' . "\n";
194
  echo "\t\t" . ' <p class="submit" style="padding-bottom: 0;">' . "\n";
197
  echo "\t\t" . ' <tr valign="top">' . "\n";
198
  echo "\t\t" . ' <td width="24%" style="text-align: right; padding-right: 5px" >First Post/Page ID</td>' . "\n";
199
  echo "\t\t" . ' <td width="24%" style="text-align: left;">' . "\n";
200
+ echo "\t\t" . ' <input name="' . self::SLUG_PREFIX . 'post_lower" type="text" size="5" value="' . $post_lower . '">' . "\n";
201
  echo "\t\t" . ' </td>' . "\n";
202
  echo "\t\t" . ' <td width="24%" style="text-align: right; padding-right: 5px" >First Attachment ID</td>' . "\n";
203
+ echo "\t\t" . ' <td width="24%" style="text-align: left;"><input name="' . self::SLUG_PREFIX . 'attachment_lower" type="text" size="5" value="' . $attachment_lower . '"></td>' . "\n";
204
  echo "\t\t" . ' </tr>' . "\n";
205
 
206
  echo "\t\t" . ' <tr valign="top">' . "\n";
207
  echo "\t\t" . ' <td width="24%" style="text-align: right; padding-right: 5px" >Last Post/Page ID</td>' . "\n";
208
+ echo "\t\t" . ' <td style="text-align: left;"><input name="' . self::SLUG_PREFIX . 'post_upper" type="text" size="5" value="' . $post_upper . '"></td>' . "\n";
209
  echo "\t\t" . ' <td width="24%" style="text-align: right; padding-right: 5px" >Last Attachment ID</td>' . "\n";
210
+ echo "\t\t" . ' <td style="text-align: left;"><input name="' . self::SLUG_PREFIX . 'attachment_upper" type="text" size="5" value="' . $attachment_upper . '"></td>' . "\n";
211
  echo "\t\t" . ' </tr>' . "\n";
212
  echo "\t\t" . ' </table>' . "\n";
213
 
234
 
235
  /**
236
  * Array of post/page IDs giving inserted image URL and ALT Text:
237
+ * post/page ID => array(
238
+ * 'content' => post_content,
239
+ * 'files' => URL to img src,
240
+ * 'inserts' => array( 'src', src_offset', 'alt', 'alt_offset' )
241
+ * 'replacements' => array()
242
+ * )
243
  *
244
  * @since 1.00
245
  *
262
  if ( $use_cache ) {
263
  self::$image_inserts = get_transient( self::SLUG_PREFIX . 'image_inserts' );
264
  if ( is_array( self::$image_inserts ) ) {
265
+ error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache using cached self::\$image_inserts " . var_export( self::$image_inserts, true ), 0 );
266
  return;
267
  }
268
  }
269
 
270
  $return = delete_transient( self::SLUG_PREFIX . 'image_inserts' );
271
+ error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache delete_transient return = " . var_export( $return, true ), 0 );
272
 
273
  if ( ! empty( $_REQUEST[ self::SLUG_PREFIX . 'post_lower' ] ) ) {
274
  $lower_bound = (integer) $_REQUEST[ self::SLUG_PREFIX . 'post_lower' ];
286
 
287
  $query = sprintf( 'SELECT ID, post_content FROM %1$s WHERE ( post_type IN ( \'post\', \'page\' ) AND ( post_status = \'publish\' ) AND ( ID >= %2$d ) AND ( ID <= %3$d ) AND ( post_content LIKE \'%4$s\' ) ) ORDER BY ID', $wpdb->posts, $lower_bound, $upper_bound, '%<img%' );
288
  $results = $wpdb->get_results( $query );
289
+ error_log( __LINE__ . ' Insert_Fixit::_build_image_inserts_cache() $results = ' . var_export( $results, true ), 0 );
290
 
291
  $upload_dir = wp_upload_dir();
292
+ error_log( __LINE__ . ' Insert_Fixit::_build_image_inserts_cache() $upload_dir = ' . var_export( $upload_dir, true ), 0 );
293
  $upload_dir = $upload_dir['baseurl'] . '/';
294
 
295
  $image_inserts = array();
296
  foreach ( $results as $result ) {
297
  $match_count = preg_match_all( '/\<img.*src="([^"]*)".*alt="([^"]*)"/', $result->post_content, $matches, PREG_OFFSET_CAPTURE );
298
+ error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache( {$result->ID} ) \$matches = " . var_export( $matches, true ), 0 );
299
  if ( $match_count ) {
300
  $image_inserts[ $result->ID ]['content'] = $result->post_content;
301
 
316
  error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache \$image_inserts " . var_export($image_inserts, true ), 0 );
317
 
318
  $return = set_transient( self::SLUG_PREFIX . 'image_inserts', $image_inserts, 900 ); // fifteen minutes
319
+ error_log( __LINE__ . " Insert_Fixit::_build_image_inserts_cache set_transient return = " . var_export( $return, true ), 0 );
320
  self::$image_inserts = $image_inserts;
321
  return 'Image inserts cache refreshed.';
322
  } // _build_image_inserts_cache
323
 
324
  /**
325
+ * Array of attachment IDs giving Features Image post/page IDs:
326
+ * attachment ID => array( post/page ID )
327
+ *
328
+ * @since 1.01
329
+ *
330
+ * @var array
331
+ */
332
+ private static $featured_objects = array();
333
+
334
+ /**
335
+ * Compile array of attachment IDs used as post/page Featured Image
336
+ *
337
+ * @since 1.01
338
+ *
339
+ * @return void
340
+ */
341
+ private static function _build_featured_objects_cache( $use_cache = false, $unattached_only = false ) {
342
+ global $wpdb;
343
+
344
+ if ( $use_cache ) {
345
+ self::$featured_objects = get_transient( self::SLUG_PREFIX . 'featured_objects' );
346
+ if ( is_array( self::$featured_objects ) ) {
347
+ //error_log( __LINE__ . " Insert_Fixit::_build_featured_objects_cache using cached self::\$featured_objects " . var_export( self::$featured_objects, true ), 0 );
348
+ return;
349
+ }
350
+ }
351
+
352
+ $return = delete_transient( self::SLUG_PREFIX . 'featured_objects' );
353
+ //error_log( __LINE__ . " Insert_Fixit::_build_featured_objects_cache delete_transient return = " . var_export( $return, true ), 0 );
354
+
355
+ if ( ! empty( $_REQUEST[ self::SLUG_PREFIX . 'attachment_lower' ] ) ) {
356
+ $lower_bound = (integer) $_REQUEST[ self::SLUG_PREFIX . 'attachment_lower' ];
357
+ } else {
358
+ $lower_bound = 0;
359
+ }
360
+
361
+ if ( ! empty( $_REQUEST[ self::SLUG_PREFIX . 'attachment_upper' ] ) ) {
362
+ $upper_bound = (integer) $_REQUEST[ self::SLUG_PREFIX . 'attachment_upper' ];
363
+ } elseif ( $lower_bound ) {
364
+ $upper_bound = $lower_bound;
365
+ } else {
366
+ $upper_bound = 0x7FFFFFFF;
367
+ }
368
+
369
+ $query = array();
370
+ $query[] = "SELECT p.ID, m.post_id FROM {$wpdb->postmeta} AS m INNER JOIN";
371
+
372
+ $where = str_replace( '%', '%%', wp_post_mime_type_where( 'image', '' ) );
373
+
374
+ if ( $unattached_only ) {
375
+ $where .= ' AND post_parent = 0';
376
+ }
377
+
378
+ $query[] = "( SELECT ID FROM {$wpdb->posts} WHERE ( ( post_type = 'attachment' ) {$where}";
379
+ $query[] = "AND ( ID >= {$lower_bound} ) AND ( ID <= {$upper_bound} ) ) ORDER BY ID ) AS p ON m.meta_value = p.ID";
380
+ $query[] = "WHERE m.meta_key = '_thumbnail_id'";
381
+ $query = implode( ' ', $query );
382
+ //error_log( __LINE__ . ' Insert_Fixit::_build_featured_objects_cache() $query = ' . var_export( $query, true ), 0 );
383
+ $results = $wpdb->get_results( $query );
384
+ //error_log( __LINE__ . ' Insert_Fixit::_build_featured_objects_cache() $results = ' . var_export( $results, true ), 0 );
385
+
386
+ $references = array();
387
+ if ( is_array( $results ) ) {
388
+ foreach ( $results as $result ) {
389
+ $references[ $result->ID ][] = $result->post_id;
390
+ }
391
+ }
392
+
393
+ $return = set_transient( self::SLUG_PREFIX . 'featured_objects', $references, 900 ); // fifteen minutes
394
+ //error_log( __LINE__ . " Insert_Fixit::_build_featured_objects_cache set_transient return = " . var_export( $return, true ), 0 );
395
+ error_log( __LINE__ . " Insert_Fixit::_build_featured_objects_cache set_transient references = " . var_export( $references, true ), 0 );
396
+ self::$featured_objects = $references;
397
+ return 'Featured objects cache refreshed.';
398
+ } // _build_featured_objects_cache
399
+
400
+ /**
401
+ * Array of attachment IDs giving inserted image files:
402
+ * attachment ID => array( post/page ID => array( URLs to inserted file ) )
403
  *
404
  * @since 1.00
405
  *
414
  *
415
  * @return void
416
  */
417
+ private static function _build_image_objects_cache( $use_cache = false, $unattached_only = false ) {
418
  global $wpdb;
419
 
420
  if ( $use_cache ) {
421
  self::$image_objects = get_transient( self::SLUG_PREFIX . 'image_objects' );
422
  if ( is_array( self::$image_objects ) ) {
423
+ error_log( __LINE__ . " Insert_Fixit::_build_image_objects_cache using cached self::\$image_objects " . var_export( self::$image_objects, true ), 0 );
424
  return;
425
  }
426
  }
427
 
428
  $return = delete_transient( self::SLUG_PREFIX . 'image_objects' );
429
+ error_log( __LINE__ . " Insert_Fixit::_build_image_objects_cache delete_transient return = " . var_export( $return, true ), 0 );
430
 
431
  if ( ! empty( $_REQUEST[ self::SLUG_PREFIX . 'attachment_lower' ] ) ) {
432
  $lower_bound = (integer) $_REQUEST[ self::SLUG_PREFIX . 'attachment_lower' ];
443
  }
444
 
445
  $where = str_replace( '%', '%%', wp_post_mime_type_where( 'image', '' ) );
446
+
447
+ if ( $unattached_only ) {
448
+ $where .= ' AND post_parent = 0';
449
+ }
450
+
451
  $query = sprintf( 'SELECT ID FROM %1$s WHERE ( ( post_type = \'attachment\' ) %2$s AND ( ID >= %3$d ) AND ( ID <= %4$d ) ) ORDER BY ID', $wpdb->posts, $where, $lower_bound, $upper_bound );
452
  $results = $wpdb->get_results( $query );
453
+ error_log( __LINE__ . ' Insert_Fixit::_build_image_objects_cache() $results = ' . var_export( $results, true ), 0 );
454
 
455
  /*
456
  * Load the image_inserts array
492
  if ( ! empty( $base_file ) ) {
493
  $files[ $base_file ] = $base_file;
494
  }
495
+ //error_log( __LINE__ . " Insert_Fixit::_array_image_inserts_references( {$result->ID} ) files = " . var_export( $files, true ), 0 );
496
  /*
497
  * inserts Array of specific files (i.e., sizes) found in one or more posts/pages
498
  * as an image (<img>). The array key is the path and file name.
514
  } // each result
515
 
516
  $return = set_transient( self::SLUG_PREFIX . 'image_objects', $references, 900 ); // fifteen minutes
517
+ error_log( __LINE__ . " Insert_Fixit::_build_image_objects_cache set_transient return = " . var_export( $return, true ), 0 );
518
  error_log( __LINE__ . " Insert_Fixit::_build_image_objects_cache set_transient references = " . var_export( $references, true ), 0 );
519
  self::$image_objects = $references;
520
  return 'Image objects cache refreshed.';
683
 
684
  return "<br>Copy to Library matched {$image_inserts} posts/pages to {$image_objects} attachments and updated {$updated_attachments} Media Library items. There were {$errors} error(s).\n";
685
  } // _copy_to_media_library
686
+
687
+ /**
688
+ * Copy ALT Text from Post/Page inserts to Media Library item
689
+ *
690
+ * @since 1.00
691
+ *
692
+ * @return string HTML markup for results/messages
693
+ */
694
+ private static function _attach_inserted_in() {
695
+ global $wpdb;
696
+
697
+ /*
698
+ * Load the image_inserts array
699
+ */
700
+ self::_build_image_inserts_cache( true );
701
+
702
+ /*
703
+ * Load the image_objects array
704
+ */
705
+ self::_build_image_objects_cache( false, true );
706
+
707
+ // Initialize statistics
708
+ $image_inserts = count( self::$image_inserts );
709
+ $image_objects = count( self::$image_objects );
710
+ $inserted_in = 0;
711
+ $updated_attachments = 0;
712
+ $errors = 0;
713
+
714
+ foreach ( self::$image_objects as $attachment => $posts ) {
715
+ $inserted_in += count( $posts );
716
+ error_log( __LINE__ . " _attach_inserted_in( {$attachment} ) posts = " . var_export( $posts, true ), 0 );
717
+ $keys = array_keys( $posts );
718
+ $args = array( 'ID' => $attachment, 'post_parent' => $keys[0] );
719
+ error_log( __LINE__ . " _attach_inserted_in( {$attachment} ) args = " . var_export( $args, true ), 0 );
720
+ if ( wp_update_post( $args ) ) {
721
+ $updated_attachments++;
722
+ } else {
723
+ $errors++;
724
+ }
725
+ }
726
+
727
+ return "<br>Attach Inserted In matched {$image_inserts} posts/pages with {$inserted_in} inserts to {$image_objects} unattached items and updated {$updated_attachments} Media Library items. There were {$errors} error(s).\n";
728
+ } // _attach_inserted_in
729
+
730
+ /**
731
+ * Copy ALT Text from Post/Page inserts to Media Library item
732
+ *
733
+ * @since 1.00
734
+ *
735
+ * @return string HTML markup for results/messages
736
+ */
737
+ private static function _attach_featured_in() {
738
+ global $wpdb;
739
+
740
+ /*
741
+ * Load the featured_objects array
742
+ */
743
+ self::_build_featured_objects_cache( false, true );
744
+
745
+ // Initialize statistics
746
+ $featured_objects = count( self::$featured_objects );
747
+ $featured_in = 0;
748
+ $updates = 0;
749
+ $errors = 0;
750
+
751
+ foreach ( self::$featured_objects as $attachment => $posts ) {
752
+ $featured_in += count( $posts );
753
+
754
+ $args = array( 'ID' => $attachment, 'post_parent' => reset( $posts ) );
755
+ if ( wp_update_post( $args ) ) {
756
+ $updates++;
757
+ } else {
758
+ $errors++;
759
+ }
760
+ }
761
+
762
+ return "<br>Attach Featured In found {$featured_objects} unattached items featured in {$featured_in} posts/pages and made {$updates} attachments. There were {$errors} error(s).\n";
763
+ } // _attach_featured_in
764
  } //Insert_Fixit
765
 
766
  /*
examples/mla-list-table-hooks-example.php.txt CHANGED
@@ -500,9 +500,8 @@ class MLAListTableHooksExample {
500
  * @param array $custom_field_map [ slug => field_name ]
501
  */
502
  public static function mla_list_table_bulk_action_initial_request( $request, $bulk_action, $custom_field_map ) {
503
- //error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action_initial_request $request = ' . var_export( $request, true ), 0 );
504
- //error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action_initial_request $bulk_action = ' . var_export( $bulk_action, true ), 0 );
505
- //error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action_initial_request $custom_field_map = ' . var_export( $custom_field_map, true ), 0 );
506
  /*
507
  * $request['mla_bulk_action_do_cleanup'] is true on input if the parameters come from $_REQUEST.
508
  * If it is true on output the bulk action request parameters will be removed from $_REQUEST.
@@ -523,7 +522,7 @@ class MLAListTableHooksExample {
523
  * @param string $bulk_action The requested action.
524
  */
525
  public static function mla_list_table_begin_bulk_action( $item_content, $bulk_action ) {
526
- //error_log( 'MLAListTableHooksExample::mla_list_table_begin_bulk_action $bulk_action = ' . var_export( $bulk_action, true ), 0 );
527
 
528
  /*
529
  * Return NULL if not handled here, otherwise
@@ -547,10 +546,8 @@ class MLAListTableHooksExample {
547
  * @param array $custom_field_map [ slug => field_name ]
548
  */
549
  public static function mla_list_table_bulk_action_item_request( $request, $bulk_action, $post_id, $custom_field_map ) {
550
- //error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action_item_request $request = ' . var_export( $request, true ), 0 );
551
- //error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action_item_request $bulk_action = ' . var_export( $bulk_action, true ), 0 );
552
- //error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action_item_request $post_id = ' . var_export( $post_id, true ), 0 );
553
- //error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action_item_request $custom_field_map = ' . var_export( $custom_field_map, true ), 0 );
554
  return $request;
555
  } // mla_list_table_bulk_action_item_request
556
 
@@ -568,8 +565,7 @@ class MLAListTableHooksExample {
568
  * @param integer $post_id The affected attachment.
569
  */
570
  public static function mla_list_table_bulk_action( $item_content, $bulk_action, $post_id ) {
571
- //error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action $bulk_action = ' . var_export( $bulk_action, true ), 0 );
572
- //error_log( 'MLAListTableHooksExample::mla_list_table_bulk_action $post_id = ' . var_export( $post_id, true ), 0 );
573
 
574
  /*
575
  * Return NULL if not handled here, otherwise
@@ -593,8 +589,7 @@ class MLAListTableHooksExample {
593
  * @param integer $post_id The affected attachment.
594
  */
595
  public static function mla_list_table_custom_bulk_action( $item_content, $bulk_action, $post_id ) {
596
- //error_log( 'MLAListTableHooksExample::mla_list_table_custom_bulk_action $bulk_action = ' . var_export( $bulk_action, true ), 0 );
597
- //error_log( 'MLAListTableHooksExample::mla_list_table_custom_bulk_action $post_id = ' . var_export( $post_id, true ), 0 );
598
 
599
  /*
600
  * Return NULL if not handled here, otherwise
@@ -617,7 +612,7 @@ class MLAListTableHooksExample {
617
  * @param string $bulk_action The requested action.
618
  */
619
  public static function mla_list_table_end_bulk_action( $item_content, $bulk_action ) {
620
- //error_log( 'MLAListTableHooksExample::mla_list_table_end_bulk_action $bulk_action = ' . var_export( $bulk_action, true ), 0 );
621
 
622
  /*
623
  * Return NULL if not handled here, otherwise
500
  * @param array $custom_field_map [ slug => field_name ]
501
  */
502
  public static function mla_list_table_bulk_action_initial_request( $request, $bulk_action, $custom_field_map ) {
503
+ //error_log( "MLAListTableHooksExample::mla_list_table_bulk_action_initial_request( {$bulk_action} ) request = " . var_export( $request, true ), 0 );
504
+ //error_log( "MLAListTableHooksExample::mla_list_table_bulk_action_initial_request( {$bulk_action} ) custom_field_map = " . var_export( $custom_field_map, true ), 0 );
 
505
  /*
506
  * $request['mla_bulk_action_do_cleanup'] is true on input if the parameters come from $_REQUEST.
507
  * If it is true on output the bulk action request parameters will be removed from $_REQUEST.
522
  * @param string $bulk_action The requested action.
523
  */
524
  public static function mla_list_table_begin_bulk_action( $item_content, $bulk_action ) {
525
+ //error_log( "MLAListTableHooksExample::mla_list_table_begin_bulk_action( {$bulk_action} )", 0 );
526
 
527
  /*
528
  * Return NULL if not handled here, otherwise
546
  * @param array $custom_field_map [ slug => field_name ]
547
  */
548
  public static function mla_list_table_bulk_action_item_request( $request, $bulk_action, $post_id, $custom_field_map ) {
549
+ //error_log( "MLAListTableHooksExample::mla_list_table_bulk_action_item_request( {$bulk_action}, {$post_id} ) request = " . var_export( $request, true ), 0 );
550
+ //error_log( "MLAListTableHooksExample::mla_list_table_bulk_action_item_request( {$bulk_action}, {$post_id} ) custom_field_map = " . var_export( $custom_field_map, true ), 0 );
 
 
551
  return $request;
552
  } // mla_list_table_bulk_action_item_request
553
 
565
  * @param integer $post_id The affected attachment.
566
  */
567
  public static function mla_list_table_bulk_action( $item_content, $bulk_action, $post_id ) {
568
+ //error_log( "MLAListTableHooksExample::mla_list_table_bulk_action( {$bulk_action}, {$post_id} )", 0 );
 
569
 
570
  /*
571
  * Return NULL if not handled here, otherwise
589
  * @param integer $post_id The affected attachment.
590
  */
591
  public static function mla_list_table_custom_bulk_action( $item_content, $bulk_action, $post_id ) {
592
+ //error_log( "MLAListTableHooksExample::mla_list_table_custom_bulk_action( {$bulk_action}, {$post_id} )", 0 );
 
593
 
594
  /*
595
  * Return NULL if not handled here, otherwise
612
  * @param string $bulk_action The requested action.
613
  */
614
  public static function mla_list_table_end_bulk_action( $item_content, $bulk_action ) {
615
+ //error_log( "MLAListTableHooksExample::mla_list_table_end_bulk_action( $bulk_action )", 0 );
616
 
617
  /*
618
  * Return NULL if not handled here, otherwise
examples/mla-mapping-hooks-example.php.txt CHANGED
@@ -9,7 +9,7 @@
9
  * a supporting function "_export_this_item" and the "mla_end_mapping" action.
10
  *
11
  * @package MLA Mapping Hooks Example
12
- * @version 1.02
13
  */
14
 
15
  /*
@@ -17,7 +17,7 @@ Plugin Name: MLA Mapping Hooks Example
17
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
18
  Description: Provides an example of the filters provided by the IPTC/EXIF and Custom Field mapping features
19
  Author: David Lingren
20
- Version: 1.01
21
  Author URI: http://fairtradejudaica.org/our-story/staff/
22
 
23
  Copyright 2014 David Lingren
@@ -71,26 +71,26 @@ class MLAMappingHooksExample {
71
  *
72
  * Comment out the filters you don't need; save them for future use
73
  */
74
- add_filter( 'mla_upload_prefilter', 'MLAMappingHooksExample::mla_upload_prefilter_filter', 10, 2 );
75
- add_filter( 'mla_upload_filter', 'MLAMappingHooksExample::mla_upload_filter_filter', 10, 2 );
76
-
77
- add_action( 'mla_add_attachment', 'MLAMappingHooksExample::mla_add_attachment_action', 10, 1 );
78
-
79
- add_filter( 'mla_update_attachment_metadata_options', 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter', 10, 3 );
80
- add_filter( 'mla_update_attachment_metadata_prefilter', 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter', 10, 3 );
81
- add_filter( 'mla_update_attachment_metadata_postfilter', 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter', 10, 3 );
82
-
83
- add_action( 'mla_begin_mapping', 'MLAMappingHooksExample::mla_begin_mapping_action', 10, 2 );
84
- add_filter( 'mla_mapping_settings', 'MLAMappingHooksExample::mla_mapping_settings_filter', 10, 4 );
85
- add_filter( 'mla_mapping_rule', 'MLAMappingHooksExample::mla_mapping_rule_filter', 10, 4 );
86
- add_filter( 'mla_mapping_custom_value', 'MLAMappingHooksExample::mla_mapping_custom_value_filter', 10, 5 );
87
- add_filter( 'mla_mapping_iptc_value', 'MLAMappingHooksExample::mla_mapping_iptc_value_filter', 10, 5 );
88
- add_filter( 'mla_mapping_exif_value', 'MLAMappingHooksExample::mla_mapping_exif_value_filter', 10, 5 );
89
- add_filter( 'mla_mapping_new_text', 'MLAMappingHooksExample::mla_mapping_new_text_filter', 10, 5 );
90
- add_filter( 'mla_mapping_updates', 'MLAMappingHooksExample::mla_mapping_updates_filter', 10, 5 );
91
- add_action( 'mla_end_mapping', 'MLAMappingHooksExample::mla_end_mapping_action', 10, 0 );
92
-
93
- add_filter( 'mla_get_options_tablist', 'MLAMappingHooksExample::mla_get_options_tablist_filter', 10, 3 );
94
  }
95
 
96
  /**
@@ -125,12 +125,12 @@ class MLAMappingHooksExample {
125
  *
126
  * @return array updated file name and other information
127
  */
128
- public static function mla_upload_prefilter_filter( $file, $image_metadata ) {
129
  /*
130
  * Uncomment the error_log statements in any of the filters to see what's passed in
131
  */
132
- //error_log( 'MLAMappingHooksExample::mla_upload_prefilter_filter $file = ' . var_export( $file, true ), 0 );
133
- //error_log( 'MLAMappingHooksExample::mla_upload_prefilter_filter $image_metadata = ' . var_export( $image_metadata, true ), 0 );
134
 
135
  /*
136
  * Save the information for use in the later filters
@@ -157,9 +157,9 @@ class MLAMappingHooksExample {
157
  *
158
  * @return array updated file name, type and location
159
  */
160
- public static function mla_upload_filter_filter( $file, $id3_data ) {
161
- //error_log( 'MLAMappingHooksExample::mla_upload_filter_filter $file = ' . var_export( $file, true ), 0 );
162
- //error_log( 'MLAMappingHooksExample::mla_upload_filter_filter $id3_data = ' . var_export( $id3_data, true ), 0 );
163
 
164
  /*
165
  * Save the information for use in the later filters
@@ -185,8 +185,8 @@ class MLAMappingHooksExample {
185
  *
186
  * @return void
187
  */
188
- public static function mla_add_attachment_action( $post_id ) {
189
- //error_log( 'MLAMappingHooksExample::mla_add_attachment_action $post_id = ' . var_export( $post_id, true ), 0 );
190
 
191
  /*
192
  * Save the information for use in the later filters
@@ -215,10 +215,9 @@ class MLAMappingHooksExample {
215
  *
216
  * @return array updated processing options
217
  */
218
- public static function mla_update_attachment_metadata_options_filter( $options, $data, $post_id ) {
219
- //error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $options = ' . var_export( $options, true ), 0 );
220
- //error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $data = ' . var_export( $data, true ), 0 );
221
- //error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_options_filter $post_id = ' . var_export( $post_id, true ), 0 );
222
 
223
  return $options;
224
  } // mla_update_attachment_metadata_options_filter
@@ -242,10 +241,9 @@ class MLAMappingHooksExample {
242
  *
243
  * @return array updated attachment metadata
244
  */
245
- public static function mla_update_attachment_metadata_prefilter_filter( $data, $post_id, $options ) {
246
- //error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $data = ' . var_export( $data, true ), 0 );
247
- //error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $post_id = ' . var_export( $post_id, true ), 0 );
248
- //error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter $options = ' . var_export( $options, true ), 0 );
249
 
250
  return $data;
251
  } // mla_update_attachment_metadata_prefilter_filter
@@ -265,10 +263,9 @@ class MLAMappingHooksExample {
265
  *
266
  * @return array updated attachment metadata
267
  */
268
- public static function mla_update_attachment_metadata_postfilter_filter( $data, $post_id, $options ) {
269
- //error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter $data = ' . var_export( $data, true ), 0 );
270
- //error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter $post_id = ' . var_export( $post_id, true ), 0 );
271
- //error_log( 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter $options = ' . var_export( $options, true ), 0 );
272
 
273
  return $data;
274
  } // mla_update_attachment_metadata_postfilter_filter
@@ -289,9 +286,8 @@ class MLAMappingHooksExample {
289
  *
290
  * @return void updated mapping rules
291
  */
292
- public static function mla_begin_mapping_action( $source, $post_id = NULL ) {
293
- //error_log( 'MLAMappingHooksExample::mla_begin_mapping_action $source = ' . var_export( $source, true ), 0 );
294
- //error_log( 'MLAMappingHooksExample::mla_begin_mapping_action $post_id = ' . var_export( $post_id, true ), 0 );
295
  } // mla_begin_mapping_action
296
 
297
  /**
@@ -309,11 +305,9 @@ class MLAMappingHooksExample {
309
  *
310
  * @return array updated mapping rules
311
  */
312
- public static function mla_mapping_settings_filter( $settings, $post_id, $category, $attachment_metadata ) {
313
- //error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $settings = ' . var_export( $settings, true ), 0 );
314
- //error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $post_id = ' . var_export( $post_id, true ), 0 );
315
- //error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $category = ' . var_export( $category, true ), 0 );
316
- //error_log( 'MLAMappingHooksExample::mla_mapping_settings_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
317
 
318
  /*
319
  * $category gives the context in which the rule is applied:
@@ -391,11 +385,9 @@ class MLAMappingHooksExample {
391
  *
392
  * @return array updated custom_field_mapping rule
393
  */
394
- public static function mla_mapping_rule_filter( $setting_value, $post_id, $category, $attachment_metadata ) {
395
- //error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
396
- //error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $post_id = ' . var_export( $post_id, true ), 0 );
397
- //error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $category = ' . var_export( $category, true ), 0 );
398
- //error_log( 'MLAMappingHooksExample::mla_mapping_rule_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
399
 
400
  /*
401
  * $setting_value is an array containing a mapping rule; see above
@@ -420,23 +412,21 @@ class MLAMappingHooksExample {
420
  *
421
  * @return array updated rule value
422
  */
423
- public static function mla_mapping_custom_value_filter( $new_text, $setting_value, $post_id, $category, $attachment_metadata ) {
424
- //error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $new_text = ' . var_export( $new_text, true ), 0 );
425
- //error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
426
- //error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $post_id = ' . var_export( $post_id, true ), 0 );
427
- //error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $category = ' . var_export( $category, true ), 0 );
428
- //error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
429
 
430
  /*
431
  * You can use MLAOptions::mla_get_data_source() to get anything available;
432
  * for example:
433
- */
434
  $my_setting = array(
435
  'data_source' => 'size_names',
436
  'option' => 'array'
437
- );
438
  //$size_names = MLAOptions::mla_get_data_source($post_id, $category, $my_setting, $attachment_metadata);
439
- //error_log( 'MLAMappingHooksExample::mla_mapping_custom_value_filter $size_names = ' . var_export( $size_names, true ), 0 );
440
 
441
  /*
442
  * For "empty" values, return ' '.
@@ -461,24 +451,22 @@ class MLAMappingHooksExample {
461
  *
462
  * @return array updated rule IPTC value
463
  */
464
- public static function mla_mapping_iptc_value_filter( $iptc_value, $setting_value, $post_id, $category, $attachment_metadata ) {
465
- //error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $iptc_value = ' . var_export( $iptc_value, true ), 0 );
466
- //error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
467
- //error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $post_id = ' . var_export( $post_id, true ), 0 );
468
- //error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $category = ' . var_export( $category, true ), 0 );
469
- //error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
470
 
471
  /*
472
  * You can use MLAOptions::mla_get_data_source() to get anything available;
473
  * for example:
474
- */
475
  $my_setting = array(
476
  'data_source' => 'template',
477
  'meta_name' => '([+iptc:keywords+])',
478
  'option' => 'array'
479
- );
480
  //$keywords = MLAOptions::mla_get_data_source($post_id, $category, $my_setting, $attachment_metadata);
481
- //error_log( 'MLAMappingHooksExample::mla_mapping_iptc_value_filter $keywords = ' . var_export( $keywords, true ), 0 );
482
 
483
  /*
484
  * For "empty" values, return ''.
@@ -503,24 +491,22 @@ class MLAMappingHooksExample {
503
  *
504
  * @return array updated rule EXIF/Template value
505
  */
506
- public static function mla_mapping_exif_value_filter( $exif_value, $setting_value, $post_id, $category, $attachment_metadata ) {
507
- //error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $exif_value = ' . var_export( $exif_value, true ), 0 );
508
- //error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
509
- //error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $post_id = ' . var_export( $post_id, true ), 0 );
510
- //error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $category = ' . var_export( $category, true ), 0 );
511
- //error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
512
 
513
  /*
514
  * You can use MLAOptions::mla_get_data_source() to get anything available;
515
  * for example:
516
- */
517
  $my_setting = array(
518
  'data_source' => 'template',
519
  'meta_name' => '([+exif:Copyright+])',
520
  'option' => 'array'
521
- );
522
  //$copyright = MLAOptions::mla_get_data_source($post_id, $category, $my_setting, $attachment_metadata);
523
- //error_log( 'MLAMappingHooksExample::mla_mapping_exif_value_filter $copyright = ' . var_export( $copyright, true ), 0 );
524
 
525
  /*
526
  * For "empty" 'text' values, return ''.
@@ -546,12 +532,10 @@ class MLAMappingHooksExample {
546
  *
547
  * @return array updated rule EXIF/Template value
548
  */
549
- public static function mla_mapping_new_text_filter( $new_text, $setting_value, $post_id, $category, $attachment_metadata ) {
550
- //error_log( 'MLAMappingHooksExample::mla_mapping_new_text_filter $exif_value = ' . var_export( $exif_value, true ), 0 );
551
- //error_log( 'MLAMappingHooksExample::mla_mapping_new_text_filter $setting_value = ' . var_export( $setting_value, true ), 0 );
552
- //error_log( 'MLAMappingHooksExample::mla_mapping_new_text_filter $post_id = ' . var_export( $post_id, true ), 0 );
553
- //error_log( 'MLAMappingHooksExample::mla_mapping_new_text_filter $category = ' . var_export( $category, true ), 0 );
554
- //error_log( 'MLAMappingHooksExample::mla_mapping_new_text_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
555
 
556
  return $new_text;
557
  } // mla_mapping_new_text_filter
@@ -573,12 +557,10 @@ class MLAMappingHooksExample {
573
  *
574
  * @return array updated attachment's updates
575
  */
576
- public static function mla_mapping_updates_filter( $updates, $post_id, $category, $settings, $attachment_metadata ) {
577
- //error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $updates = ' . var_export( $updates, true ), 0 );
578
- //error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $post_id = ' . var_export( $post_id, true ), 0 );
579
- //error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $category = ' . var_export( $category, true ), 0 );
580
- //error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $settings = ' . var_export( $settings, true ), 0 );
581
- //error_log( 'MLAMappingHooksExample::mla_mapping_updates_filter $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
582
 
583
  /*
584
  * Look for the "file export" rule; call the export function if there's a match.
@@ -745,15 +727,15 @@ class MLAMappingHooksExample {
745
  *
746
  * @return void
747
  */
748
- public static function mla_end_mapping_action() {
749
- //error_log( 'MLAMappingHooksExample::mla_end_mapping_action', 0 );
750
 
751
  // If the Export file is open, write the trailer and close it
752
  if ( NULL !== self::$file_handle ) {
753
  @fwrite( self::$file_handle, "</items>\n" );
754
  @fclose( self::$file_handle );
755
  self::$file_handle = NULL;
756
- //error_log( 'MLAMappingHooksExample::mla_end_mapping_action Export file closed', 0 );
757
  }
758
  } // mla_end_mapping_action
759
 
@@ -771,10 +753,10 @@ class MLAMappingHooksExample {
771
  *
772
  * @return array updated tablist
773
  */
774
- public static function mla_get_options_tablist_filter( $results, $mla_tablist, $tab ) {
775
- //error_log( 'MLAMappingHooksExample::mla_get_options_tablist_filter $results = ' . var_export( $results, true ), 0 );
776
- //error_log( 'MLAMappingHooksExample::mla_get_options_tablist_filter $mla_tablist = ' . var_export( $mla_tablist, true ), 0 );
777
- //error_log( 'MLAMappingHooksExample::mla_get_options_tablist_filter $tab = ' . var_export( $tab, true ), 0 );
778
 
779
  /*
780
  * Return an updated $mla_tablist ( $tab = NULL ), an updated single element or false
9
  * a supporting function "_export_this_item" and the "mla_end_mapping" action.
10
  *
11
  * @package MLA Mapping Hooks Example
12
+ * @version 1.03
13
  */
14
 
15
  /*
17
  Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
18
  Description: Provides an example of the filters provided by the IPTC/EXIF and Custom Field mapping features
19
  Author: David Lingren
20
+ Version: 1.03
21
  Author URI: http://fairtradejudaica.org/our-story/staff/
22
 
23
  Copyright 2014 David Lingren
71
  *
72
  * Comment out the filters you don't need; save them for future use
73
  */
74
+ add_filter( 'mla_upload_prefilter', 'MLAMappingHooksExample::mla_upload_prefilter', 10, 2 );
75
+ add_filter( 'mla_upload_filter', 'MLAMappingHooksExample::mla_upload_filter', 10, 2 );
76
+
77
+ add_action( 'mla_add_attachment', 'MLAMappingHooksExample::mla_add_attachment', 10, 1 );
78
+
79
+ add_filter( 'mla_update_attachment_metadata_options', 'MLAMappingHooksExample::mla_update_attachment_metadata_options', 10, 3 );
80
+ add_filter( 'mla_update_attachment_metadata_prefilter', 'MLAMappingHooksExample::mla_update_attachment_metadata_prefilter', 10, 3 );
81
+ add_filter( 'mla_update_attachment_metadata_postfilter', 'MLAMappingHooksExample::mla_update_attachment_metadata_postfilter', 10, 3 );
82
+
83
+ add_action( 'mla_begin_mapping', 'MLAMappingHooksExample::mla_begin_mapping', 10, 2 );
84
+ add_filter( 'mla_mapping_settings', 'MLAMappingHooksExample::mla_mapping_settings', 10, 4 );
85
+ add_filter( 'mla_mapping_rule', 'MLAMappingHooksExample::mla_mapping_rule', 10, 4 );
86
+ add_filter( 'mla_mapping_custom_value', 'MLAMappingHooksExample::mla_mapping_custom_value', 10, 5 );
87
+ add_filter( 'mla_mapping_iptc_value', 'MLAMappingHooksExample::mla_mapping_iptc_value', 10, 5 );
88
+ add_filter( 'mla_mapping_exif_value', 'MLAMappingHooksExample::mla_mapping_exif_value', 10, 5 );
89
+ add_filter( 'mla_mapping_new_text', 'MLAMappingHooksExample::mla_mapping_new_text', 10, 5 );
90
+ add_filter( 'mla_mapping_updates', 'MLAMappingHooksExample::mla_mapping_updates', 10, 5 );
91
+ add_action( 'mla_end_mapping', 'MLAMappingHooksExample::mla_end_mapping', 10, 0 );
92
+
93
+ add_filter( 'mla_get_options_tablist', 'MLAMappingHooksExample::mla_get_options_tablist', 10, 3 );
94
  }
95
 
96
  /**
125
  *
126
  * @return array updated file name and other information
127
  */
128
+ public static function mla_upload_prefilter( $file, $image_metadata ) {
129
  /*
130
  * Uncomment the error_log statements in any of the filters to see what's passed in
131
  */
132
+ //error_log( __LINE__ . ' MLAMappingHooksExample::mla_upload_prefilter_filter $file = ' . var_export( $file, true ), 0 );
133
+ //error_log( __LINE__ . ' MLAMappingHooksExample::mla_upload_prefilter_filter $image_metadata = ' . var_export( $image_metadata, true ), 0 );
134
 
135
  /*
136
  * Save the information for use in the later filters
157
  *
158
  * @return array updated file name, type and location
159
  */
160
+ public static function mla_upload_filter( $file, $id3_data ) {
161
+ //error_log( __LINE__ . ' MLAMappingHooksExample::mla_upload_filter_filter $file = ' . var_export( $file, true ), 0 );
162
+ //error_log( __LINE__ . ' MLAMappingHooksExample::mla_upload_filter_filter $id3_data = ' . var_export( $id3_data, true ), 0 );
163
 
164
  /*
165
  * Save the information for use in the later filters
185
  *
186
  * @return void
187
  */
188
+ public static function mla_add_attachment( $post_id ) {
189
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_add_attachment_action( {$post_id} )", 0 );
190
 
191
  /*
192
  * Save the information for use in the later filters
215
  *
216
  * @return array updated processing options
217
  */
218
+ public static function mla_update_attachment_metadata_options( $options, $data, $post_id ) {
219
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_update_attachment_metadata_options_filter( {$post_id} ) options = " . var_export( $options, true ), 0 );
220
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_update_attachment_metadata_options_filter( {$post_id} ) data = " . var_export( $data, true ), 0 );
 
221
 
222
  return $options;
223
  } // mla_update_attachment_metadata_options_filter
241
  *
242
  * @return array updated attachment metadata
243
  */
244
+ public static function mla_update_attachment_metadata_prefilter( $data, $post_id, $options ) {
245
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter( {$post_id} ) data = " . var_export( $data, true ), 0 );
246
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_update_attachment_metadata_prefilter_filter( {$post_id} ) options = " . var_export( $options, true ), 0 );
 
247
 
248
  return $data;
249
  } // mla_update_attachment_metadata_prefilter_filter
263
  *
264
  * @return array updated attachment metadata
265
  */
266
+ public static function mla_update_attachment_metadata_postfilter( $data, $post_id, $options ) {
267
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter( {$post_id} ) data = " . var_export( $data, true ), 0 );
268
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_update_attachment_metadata_postfilter_filter( {$post_id} ) options = " . var_export( $options, true ), 0 );
 
269
 
270
  return $data;
271
  } // mla_update_attachment_metadata_postfilter_filter
286
  *
287
  * @return void updated mapping rules
288
  */
289
+ public static function mla_begin_mapping( $source, $post_id = NULL ) {
290
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_begin_mapping_action( {$source}, {$post_id} )\n", 0 );
 
291
  } // mla_begin_mapping_action
292
 
293
  /**
305
  *
306
  * @return array updated mapping rules
307
  */
308
+ public static function mla_mapping_settings( $settings, $post_id, $category, $attachment_metadata ) {
309
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_settings_filter( {$post_id}, {$category} ) settings = " . var_export( $settings, true ), 0 );
310
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_settings_filter( {$post_id}, {$category} ) attachment_metadata = " . var_export( $attachment_metadata, true ), 0 );
 
 
311
 
312
  /*
313
  * $category gives the context in which the rule is applied:
385
  *
386
  * @return array updated custom_field_mapping rule
387
  */
388
+ public static function mla_mapping_rule( $setting_value, $post_id, $category, $attachment_metadata ) {
389
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_rule_filter( {$post_id}, {$category} ) setting_value = " . var_export( $setting_value, true ), 0 );
390
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_rule_filter( {$post_id}, {$category} ) attachment_metadata = " . var_export( $attachment_metadata, true ), 0 );
 
 
391
 
392
  /*
393
  * $setting_value is an array containing a mapping rule; see above
412
  *
413
  * @return array updated rule value
414
  */
415
+ public static function mla_mapping_custom_value( $new_text, $setting_value, $post_id, $category, $attachment_metadata ) {
416
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_custom_value_filter( {$post_id}, {$category} ) new_text = " . var_export( $new_text, true ), 0 );
417
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_custom_value_filter( {$post_id}, {$category} ) setting_value = " . var_export( $setting_value, true ), 0 );
418
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_custom_value_filter( {$post_id}, {$category} ) attachment_metadata = " . var_export( $attachment_metadata, true ), 0 );
 
 
419
 
420
  /*
421
  * You can use MLAOptions::mla_get_data_source() to get anything available;
422
  * for example:
423
+ * /
424
  $my_setting = array(
425
  'data_source' => 'size_names',
426
  'option' => 'array'
427
+ ); // */
428
  //$size_names = MLAOptions::mla_get_data_source($post_id, $category, $my_setting, $attachment_metadata);
429
+ //error_log( __LINE__ . ' MLAMappingHooksExample::mla_mapping_custom_value_filter $size_names = ' . var_export( $size_names, true ), 0 );
430
 
431
  /*
432
  * For "empty" values, return ' '.
451
  *
452
  * @return array updated rule IPTC value
453
  */
454
+ public static function mla_mapping_iptc_value( $iptc_value, $setting_value, $post_id, $category, $attachment_metadata ) {
455
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_iptc_value_filter( {$post_id}, {$category} ) iptc_value = " . var_export( $iptc_value, true ), 0 );
456
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_iptc_value_filter( {$post_id}, {$category} ) setting_value = " . var_export( $setting_value, true ), 0 );
457
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_iptc_value_filter( {$post_id}, {$category} ) attachment_metadata = " . var_export( $attachment_metadata, true ), 0 );
 
 
458
 
459
  /*
460
  * You can use MLAOptions::mla_get_data_source() to get anything available;
461
  * for example:
462
+ * /
463
  $my_setting = array(
464
  'data_source' => 'template',
465
  'meta_name' => '([+iptc:keywords+])',
466
  'option' => 'array'
467
+ ); // */
468
  //$keywords = MLAOptions::mla_get_data_source($post_id, $category, $my_setting, $attachment_metadata);
469
+ //error_log( __LINE__ . ' MLAMappingHooksExample::mla_mapping_iptc_value_filter $keywords = ' . var_export( $keywords, true ), 0 );
470
 
471
  /*
472
  * For "empty" values, return ''.
491
  *
492
  * @return array updated rule EXIF/Template value
493
  */
494
+ public static function mla_mapping_exif_value( $exif_value, $setting_value, $post_id, $category, $attachment_metadata ) {
495
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_exif_value_filter( {$post_id}, {$category} ) exif_value = " . var_export( $exif_value, true ), 0 );
496
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_exif_value_filter( {$post_id}, {$category} ) setting_value = " . var_export( $setting_value, true ), 0 );
497
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_exif_value_filter( {$post_id}, {$category} ) attachment_metadata = " . var_export( $attachment_metadata, true ), 0 );
 
 
498
 
499
  /*
500
  * You can use MLAOptions::mla_get_data_source() to get anything available;
501
  * for example:
502
+ * /
503
  $my_setting = array(
504
  'data_source' => 'template',
505
  'meta_name' => '([+exif:Copyright+])',
506
  'option' => 'array'
507
+ ); // */
508
  //$copyright = MLAOptions::mla_get_data_source($post_id, $category, $my_setting, $attachment_metadata);
509
+ //error_log( __LINE__ . ' MLAMappingHooksExample::mla_mapping_exif_value_filter $copyright = ' . var_export( $copyright, true ), 0 );
510
 
511
  /*
512
  * For "empty" 'text' values, return ''.
532
  *
533
  * @return array updated rule EXIF/Template value
534
  */
535
+ public static function mla_mapping_new_text( $new_text, $setting_value, $post_id, $category, $attachment_metadata ) {
536
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_new_text_filter( {$post_id}, {$category} ) new_text = " . var_export( $new_text, true ), 0 );
537
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_new_text_filter( {$post_id}, {$category} ) setting_value = " . var_export( $setting_value, true ), 0 );
538
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_new_text_filter( {$post_id}, {$category} ) attachment_metadata = " . var_export( $attachment_metadata, true ), 0 );
 
 
539
 
540
  return $new_text;
541
  } // mla_mapping_new_text_filter
557
  *
558
  * @return array updated attachment's updates
559
  */
560
+ public static function mla_mapping_updates( $updates, $post_id, $category, $settings, $attachment_metadata ) {
561
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_updates_filter( {$post_id}, {$category} ) updates = " . var_export( $updates, true ), 0 );
562
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_updates_filter( {$post_id}, {$category} ) settings = " . var_export( $settings, true ), 0 );
563
+ //error_log( __LINE__ . " MLAMappingHooksExample::mla_mapping_updates_filter( {$post_id}, {$category} ) attachment_metadata = " . var_export( $attachment_metadata, true ), 0 );
 
 
564
 
565
  /*
566
  * Look for the "file export" rule; call the export function if there's a match.
727
  *
728
  * @return void
729
  */
730
+ public static function mla_end_mapping() {
731
+ //error_log( __LINE__ . ' MLAMappingHooksExample::mla_end_mapping_action', 0 );
732
 
733
  // If the Export file is open, write the trailer and close it
734
  if ( NULL !== self::$file_handle ) {
735
  @fwrite( self::$file_handle, "</items>\n" );
736
  @fclose( self::$file_handle );
737
  self::$file_handle = NULL;
738
+ error_log( __LINE__ . ' MLAMappingHooksExample::mla_end_mapping_action Export file closed', 0 );
739
  }
740
  } // mla_end_mapping_action
741
 
753
  *
754
  * @return array updated tablist
755
  */
756
+ public static function mla_get_options_tablist( $results, $mla_tablist, $tab ) {
757
+ //error_log( __LINE__ . ' MLAMappingHooksExample::mla_get_options_tablist_filter $results = ' . var_export( $results, true ), 0 );
758
+ //error_log( __LINE__ . ' MLAMappingHooksExample::mla_get_options_tablist_filter $mla_tablist = ' . var_export( $mla_tablist, true ), 0 );
759
+ //error_log( __LINE__ . ' MLAMappingHooksExample::mla_get_options_tablist_filter $tab = ' . var_export( $tab, true ), 0 );
760
 
761
  /*
762
  * Return an updated $mla_tablist ( $tab = NULL ), an updated single element or false
examples/mla-project-slug-example.php.txt CHANGED
@@ -3,7 +3,7 @@
3
  * Creates a taxonomy=slug parameter from a parent's custom field value
4
  *
5
  * @package MLA Project Slug Example
6
- * @version 1.00
7
  */
8
 
9
  /*
@@ -14,7 +14,7 @@ Author: David Lingren
14
  Version: 1.00
15
  Author URI: http://fairtradejudaica.org/our-story/staff/
16
 
17
- Copyright 2014 David Lingren
18
 
19
  This program is free software; you can redistribute it and/or modify
20
  it under the terms of the GNU General Public License as published by
@@ -88,13 +88,24 @@ class MLAProjectSlugExample {
88
  $taxonomy = ( isset( $values[1] ) ) ? $values[1] : 'attachment_category';
89
  $values = get_post_meta( $post->ID, $meta_key );
90
 
91
- if ( is_array( $values ) ) {
92
- $shortcode_attributes[ $taxonomy ] = implode( ',', $values );
93
- unset( $shortcode_attributes['parent_meta'] );
 
 
 
 
 
 
 
 
 
 
94
  }
 
 
95
  }
96
 
97
- //error_log( 'MLAProjectSlugExample::mla_gallery_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
98
  return $shortcode_attributes;
99
  } // mla_gallery_attributes_filter
100
  } // Class MLAProjectSlugExample
3
  * Creates a taxonomy=slug parameter from a parent's custom field value
4
  *
5
  * @package MLA Project Slug Example
6
+ * @version 1.01
7
  */
8
 
9
  /*
14
  Version: 1.00
15
  Author URI: http://fairtradejudaica.org/our-story/staff/
16
 
17
+ Copyright 2014-2016 David Lingren
18
 
19
  This program is free software; you can redistribute it and/or modify
20
  it under the terms of the GNU General Public License as published by
88
  $taxonomy = ( isset( $values[1] ) ) ? $values[1] : 'attachment_category';
89
  $values = get_post_meta( $post->ID, $meta_key );
90
 
91
+ if ( isset( $shortcode_attributes['exclude_tags'] ) ) {
92
+ $values = implode( $values );
93
+ $exclude_tags = 'array( "' . implode( '", "', explode( ',', $shortcode_attributes['exclude_tags'] ) ) . '" )';
94
+ $shortcode_attributes['tax_query'] = "array( 'relation' => 'AND',
95
+ array('taxonomy' => '{$taxonomy}' ,'field' => 'slug','terms' => '{$values}', 'operator' => 'IN'),
96
+ array('taxonomy' => 'attachment_tag','field' => 'slug','terms' => {$exclude_tags}, 'operator' => 'NOT IN')
97
+ )";
98
+
99
+ unset( $shortcode_attributes['exclude_tags'] );
100
+ } else {
101
+ if ( is_array( $values ) ) {
102
+ $shortcode_attributes[ $taxonomy ] = implode( ',', $values );
103
+ }
104
  }
105
+
106
+ unset( $shortcode_attributes['parent_meta'] );
107
  }
108
 
 
109
  return $shortcode_attributes;
110
  } // mla_gallery_attributes_filter
111
  } // Class MLAProjectSlugExample
examples/mla-substitution-parameter-hooks-example.php.txt ADDED
@@ -0,0 +1,180 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Provides examples of the filters provided for Field-level Substitution Parameters
4
+ *
5
+ * In this example:
6
+ * - a new "parent-terms:" prefix accesses taxonomy terms assigned to an item's parent post/page
7
+ *
8
+ * Created for support topic "Parent category tag"
9
+ * opened on 5/20/2016 by "Levy":
10
+ * https://wordpress.org/support/topic/parent-category-tag
11
+ *
12
+ * @package MLA Substitution Parameter Hooks Example
13
+ * @version 1.00
14
+ */
15
+
16
+ /*
17
+ Plugin Name: MLA Substitution Parameter Hooks Example
18
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
19
+ Description: Provides examples of the filters provided for Field-level Substitution Parameters
20
+ Author: David Lingren
21
+ Version: 1.00
22
+ Author URI: http://fairtradejudaica.org/our-story/staff/
23
+
24
+ Copyright 2016 David Lingren
25
+
26
+ This program is free software; you can redistribute it and/or modify
27
+ it under the terms of the GNU General Public License as published by
28
+ the Free Software Foundation; either version 2 of the License, or
29
+ (at your option) any later version.
30
+
31
+ This program is distributed in the hope that it will be useful,
32
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
33
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34
+ GNU General Public License for more details.
35
+
36
+ You can get a copy of the GNU General Public License by writing to the
37
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
38
+ */
39
+
40
+ /**
41
+ * Class MLA Substitution Parameter Hooks Example hooks all of the filters provided by the "Media Manager Enhancements" feature
42
+ *
43
+ * Call it anything you want, but give it an unlikely and hopefully unique name. Hiding everything
44
+ * else inside a class means this is the only name you have to worry about.
45
+ *
46
+ * @package MLA Substitution Parameter Hooks Example
47
+ * @since 1.00
48
+ */
49
+ class MLASubstitutionParameterExample {
50
+ /**
51
+ * Initialization function, similar to __construct()
52
+ *
53
+ * Installs filters and actions that handle the MLA hooks for the "Media Manager Enhancements"
54
+ *
55
+ * @since 1.00
56
+ *
57
+ * @return void
58
+ */
59
+ public static function initialize() {
60
+ /*
61
+ * add_filter parameters:
62
+ * $tag - name of the hook you're filtering; defined by [mla_gallery]
63
+ * $function_to_add - function to be called when [mla_gallery] applies the filter
64
+ * $priority - default 10; lower runs earlier, higher runs later
65
+ * $accepted_args - number of arguments your function accepts
66
+ *
67
+ * Comment out the filters you don't need; save them for future use
68
+ */
69
+
70
+
71
+ /*
72
+ * Defined in /media-library-assistant/includes/class-mla-data.php
73
+ */
74
+ add_filter( 'mla_expand_custom_data_source', 'MLASubstitutionParameterExample::mla_expand_custom_data_source', 10, 9 );
75
+ add_filter( 'mla_expand_custom_prefix', 'MLASubstitutionParameterExample::mla_expand_custom_prefix', 10, 8 );
76
+ add_filter( 'mla_apply_custom_format', 'MLASubstitutionParameterExample::mla_apply_custom_format', 10, 2 );
77
+
78
+ /*
79
+ * Defined in /media-library-assistant/includes/class-mla-data-source.php
80
+ */
81
+ add_filter( 'mla_evaluate_custom_data_source', 'MLASubstitutionParameterExample::mla_evaluate_custom_data_source', 10, 5 );
82
+ } // initialize
83
+
84
+ /**
85
+ * MLA Expand Custom Data Source Filter
86
+ *
87
+ * For shortcode and Content Template processing, gives you an opportunity to generate a custom data value.
88
+ *
89
+ * @since 1.00
90
+ *
91
+ * @param string NULL, indicating that by default, no custom value is available
92
+ * @param string the entire data-source text including option/format and any arguments
93
+ * @param string the data-source name
94
+ * @param array data-source components; prefix (empty), value, option, format and args (if present)
95
+ * @param array values from the query, if any, e.g. shortcode parameters
96
+ * @param array item-level markup template values, if any
97
+ * @param integer attachment ID for attachment-specific values
98
+ * @param boolean for option 'multi', retain existing values
99
+ * @param string default option value
100
+ */
101
+ public static function mla_expand_custom_data_source( $custom_value, $key, $candidate, $value, $query, $markup_values, $post_id, $keep_existing, $default_option ) {
102
+ /*
103
+ * Uncomment the error_log statements in any of the filters to see what's passed in
104
+ */
105
+ //error_log( __LINE__ . " MLASubstitutionParameterExample::mla_expand_custom_data_source( {$key}, {$candidate}, {$post_id}, {$keep_existing}, {$default_option} ) value = " . var_export( $value, true ), 0 );
106
+ //error_log( __LINE__ . " MLASubstitutionParameterExample::mla_expand_custom_data_source( {$candidate}, {$post_id} ) query = " . var_export( $query, true ), 0 );
107
+ //error_log( __LINE__ . " MLASubstitutionParameterExample::mla_expand_custom_data_source( {$candidate}, {$post_id} ) markup_values = " . var_export( $markup_values, true ), 0 );
108
+
109
+ return $custom_value;
110
+ } // mla_expand_custom_data_source
111
+
112
+ /**
113
+ * MLA Expand Custom Prefix Filter
114
+ *
115
+ * Gives you an opportunity to generate your custom data value when a parameter's prefix value is not recognized.
116
+ *
117
+ * @since 1.00
118
+ *
119
+ * @param string NULL, indicating that by default, no custom value is available
120
+ * @param string the data-source name
121
+ * @param array data-source components; prefix (empty), value, option, format and args (if present)
122
+ * @param array values from the query, if any, e.g. shortcode parameters
123
+ * @param array item-level markup template values, if any
124
+ * @param integer attachment ID for attachment-specific values
125
+ * @param boolean for option 'multi', retain existing values
126
+ * @param string default option value
127
+ */
128
+ public static function mla_expand_custom_prefix( $custom_value, $key, $value, $query, $markup_values, $post_id, $keep_existing, $default_option ) {
129
+ /*
130
+ * Uncomment the error_log statements in any of the filters to see what's passed in
131
+ */
132
+ //error_log( __LINE__ . " MLASubstitutionParameterExample::mla_expand_custom_prefix( {$key}, {$post_id}, {$keep_existing}, {$default_option} ) value = " . var_export( $value, true ), 0 );
133
+ //error_log( __LINE__ . " MLASubstitutionParameterExample::mla_expand_custom_prefix( {$key}, {$post_id} ) query = " . var_export( $query, true ), 0 );
134
+ //error_log( __LINE__ . " MLASubstitutionParameterExample::mla_expand_custom_prefix( {$key}, {$post_id} ) markup_values = " . var_export( $markup_values, true ), 0 );
135
+
136
+ return $custom_value;
137
+ } // mla_expand_custom_prefix
138
+
139
+ /**
140
+ * MLA Apply Custom Format Filter
141
+ *
142
+ * Gives you an opportunity to apply your custom option/format to the data value.
143
+ *
144
+ * @since 1.00
145
+ *
146
+ * @param string the data-source value
147
+ * @param array data-source components; prefix (empty), value, option, format and args (if present)
148
+ */
149
+ public static function mla_apply_custom_format( $value, $args ) {
150
+ //error_log( __LINE__ . " MLASubstitutionParameterExample::mla_apply_custom_format( {$value} ) args = " . var_export( $args, true ), 0 );
151
+
152
+ return $value;
153
+ } // mla_apply_custom_format
154
+
155
+ /**
156
+ * MLA Evaluate Custom Data Source Filter
157
+ *
158
+ * For metadata mapping rules, gives you an opportunity to generate a custom data value.
159
+ *
160
+ * @since 1.00
161
+ *
162
+ * @param string NULL, indicating that by default, no custom value is available
163
+ * @param integer attachment ID for attachment-specific values
164
+ * @param string category/scope to evaluate against: custom_field_mapping or single_attachment_mapping
165
+ * @param array data source specification ( name, *data_source, *keep_existing, *format, mla_column, quick_edit, bulk_edit, *meta_name, *option, no_null )
166
+ * @param array _wp_attachment_metadata, default NULL (use current postmeta database value)
167
+ */
168
+ public static function mla_evaluate_custom_data_source( $custom_value, $post_id, $category, $data_value, $attachment_metadata ) {
169
+ //error_log( __LINE__ . " MLASubstitutionParameterExample::mla_expand_custom_data_source( {$post_id}, {$category} ) data_value = " . var_export( $data_value, true ), 0 );
170
+ //error_log( __LINE__ . " MLASubstitutionParameterExample::mla_expand_custom_data_source( {$post_id}, {$category} ) attachment_metadata = " . var_export( $attachment_metadata, true ), 0 );
171
+
172
+ return $custom_value;
173
+ } // mla_evaluate_custom_data_source
174
+ } //MLASubstitutionParameterExample
175
+
176
+ /*
177
+ * Install the filters at an early opportunity
178
+ */
179
+ add_action('init', 'MLASubstitutionParameterExample::initialize');
180
+ ?>
examples/mla-term-list-hooks-example.php.txt ADDED
@@ -0,0 +1,584 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Provides an example of hooking the filters provided by the [mla_term_list] shortcode
4
+ *
5
+ * In this example, the term list items are colored by parent/child "depth" when a my_filter='color list'
6
+ * shortcode parameter is present. The example documents ALL the filters available in the shortcode.
7
+ *
8
+ * @package MLA Term List Hooks Example
9
+ * @version 1.00
10
+ */
11
+
12
+ /*
13
+ Plugin Name: MLA Term List Hooks Example
14
+ Plugin URI: http://fairtradejudaica.org/media-library-assistant-a-wordpress-plugin/
15
+ Description: Provides an example of hooking the filters provided by the [mla_term_list] shortcode
16
+ Author: David Lingren
17
+ Version: 1.00
18
+ Author URI: http://fairtradejudaica.org/our-story/staff/
19
+
20
+ Copyright 2013-2016 David Lingren
21
+
22
+ This program is free software; you can redistribute it and/or modify
23
+ it under the terms of the GNU General Public License as published by
24
+ the Free Software Foundation; either version 2 of the License, or
25
+ (at your option) any later version.
26
+
27
+ This program is distributed in the hope that it will be useful,
28
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
29
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30
+ GNU General Public License for more details.
31
+
32
+ You can get a copy of the GNU General Public License by writing to the
33
+ Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
34
+ */
35
+
36
+ /**
37
+ * Class MLA Term List Hooks Example hooks all of the filters provided by the [mla_term_list] shortcode
38
+ *
39
+ * Call it anything you want, but give it an unlikely and hopefully unique name. Hiding everything
40
+ * else inside a class means this is the only name you have to worry about.
41
+ *
42
+ * @package MLA Term List Hooks Example
43
+ * @since 1.00
44
+ */
45
+ class MLATermListHooksExample {
46
+ /**
47
+ * Initialization function, similar to __construct()
48
+ *
49
+ * @since 1.00
50
+ *
51
+ * @return void
52
+ */
53
+ public static function initialize() {
54
+ /*
55
+ * The filters are only useful for front-end posts/pages; exit if in the admin section
56
+ */
57
+ if ( is_admin() )
58
+ return;
59
+
60
+ /*
61
+ * add_filter parameters:
62
+ * $tag - name of the hook you're filtering; defined by [mla_term_list]
63
+ * $function_to_add - function to be called when [mla_term_list] applies the filter
64
+ * $priority - default 10; lower runs earlier, higher runs later
65
+ * $accepted_args - number of arguments your function accepts
66
+ *
67
+ * Comment out the filters you don't need; save them for future use
68
+ */
69
+ add_filter( 'mla_term_list_raw_attributes', 'MLATermListHooksExample::mla_term_list_raw_attributes', 10, 1 );
70
+ add_filter( 'mla_term_list_attributes', 'MLATermListHooksExample::mla_term_list_attributes', 10, 1 );
71
+ add_filter( 'mla_term_list_arguments', 'MLATermListHooksExample::mla_term_list_arguments', 10, 1 );
72
+ add_filter( 'mla_get_terms_query_attributes', 'MLATermListHooksExample::mla_get_terms_query_attributes', 10, 1 );
73
+ add_filter( 'mla_get_terms_query_arguments', 'MLATermListHooksExample::mla_get_terms_query_arguments', 10, 1 );
74
+ add_filter( 'mla_get_terms_clauses', 'MLATermListHooksExample::mla_get_terms_clauses', 10, 1 );
75
+ add_filter( 'mla_get_terms_query_results', 'MLATermListHooksExample::mla_get_terms_query_results', 10, 1 );
76
+
77
+ add_filter( 'use_mla_term_list_style', 'MLATermListHooksExample::use_mla_term_list_style', 10, 2 );
78
+
79
+ add_filter( 'mla_term_list_style_values', 'MLATermListHooksExample::mla_term_list_style_values', 10, 1 );
80
+ add_filter( 'mla_term_list_style_template', 'MLATermListHooksExample::mla_term_list_style_template', 10, 1 );
81
+ add_filter( 'mla_term_list_style_parse', 'MLATermListHooksExample::mla_term_list_style_parse', 10, 3 );
82
+
83
+ add_filter( 'mla_term_list_open_values', 'MLATermListHooksExample::mla_term_list_open_values', 10, 1 );
84
+ add_filter( 'mla_term_list_open_template', 'MLATermListHooksExample::mla_term_list_open_template', 10, 1 );
85
+ add_filter( 'mla_term_list_open_parse', 'MLATermListHooksExample::mla_term_list_open_parse', 10, 3 );
86
+
87
+ add_filter( 'mla_term_list_item_values', 'MLATermListHooksExample::mla_term_list_item_values', 10, 1 );
88
+ add_filter( 'mla_term_list_item_template', 'MLATermListHooksExample::mla_term_list_item_template', 10, 1 );
89
+ add_filter( 'mla_term_list_item_parse', 'MLATermListHooksExample::mla_term_list_item_parse', 10, 3 );
90
+
91
+ add_filter( 'mla_term_list_close_values', 'MLATermListHooksExample::mla_term_list_close_values', 10, 1 );
92
+ add_filter( 'mla_term_list_close_template', 'MLATermListHooksExample::mla_term_list_close_template', 10, 1 );
93
+ add_filter( 'mla_term_list_close_parse', 'MLATermListHooksExample::mla_term_list_close_parse', 10, 3 );
94
+ }
95
+
96
+ /**
97
+ * Save the shortcode attributes
98
+ *
99
+ * @since 1.00
100
+ *
101
+ * @var array
102
+ */
103
+ private static $shortcode_attributes = array();
104
+
105
+ /**
106
+ * MLA Term List Raw (Display) Attributes
107
+ *
108
+ * This filter gives you an opportunity to record or modify the arguments passed in to the shortcode
109
+ * before they pass through the logic to handle the 'mla_page_parameter' and "request:" prefix processing.
110
+ *
111
+ * The $shortcode_attributes array is where you will find any of your own parameters that are coded in the
112
+ * shortcode, e.g., [mla_term_list my_parameter="my value"].
113
+ *
114
+ * @since 1.00
115
+ *
116
+ * @param array the raw shortcode parameters passed in to the shortcode
117
+ *
118
+ * @return array updated shortcode attributes
119
+ */
120
+ public static function mla_term_list_raw_attributes( $shortcode_attributes ) {
121
+ /*
122
+ * Uncomment the error_log statements in any of the filters to see what's passed in
123
+ */
124
+ //error_log( 'MLATermListHooksExample::mla_term_list_raw_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
125
+
126
+ /*
127
+ * Note that the global $post; object is available here and in all later filters.
128
+ * It contains the post/page on which the [mla_term_list] appears.
129
+ * Some [mla_term_list] invocations are not associated with a post/page; these will
130
+ * have a substitute $post object with $post->ID == 0.
131
+ */
132
+ global $post;
133
+ //error_log( 'MLATermListHooksExample::mla_term_list_raw_attributes_filter $post->ID = ' . var_export( $post->ID, true ), 0 );
134
+
135
+ return $shortcode_attributes;
136
+ } // mla_term_list_raw_attributes_filter
137
+
138
+ /**
139
+ * MLA Term List (Display) Attributes
140
+ *
141
+ * This filter gives you an opportunity to record or modify the arguments passed in to the shortcode
142
+ * before they are merged with the default arguments used for the gallery display.
143
+ *
144
+ * The $shortcode_attributes array is where you will find any of your own parameters that are coded in the
145
+ * shortcode, e.g., [mla_term_list my_parameter="my value"].
146
+ *
147
+ * @since 1.00
148
+ * @uses MLATermListHooksExample::$shortcode_attributes
149
+ *
150
+ * @param array the shortcode parameters passed in to the shortcode
151
+ *
152
+ * @return array updated shortcode attributes
153
+ */
154
+ public static function mla_term_list_attributes( $shortcode_attributes ) {
155
+ /*
156
+ * Uncomment the error_log statements in any of the filters to see what's passed in
157
+ */
158
+ //error_log( 'MLATermListHooksExample::mla_term_list_attributes_filter $shortcode_attributes = ' . var_export( $shortcode_attributes, true ), 0 );
159
+
160
+ /*
161
+ * Save the attributes for use in the later filters
162
+ */
163
+ self::$shortcode_attributes = $shortcode_attributes;
164
+
165
+ /*
166
+ * Filters must return the first argument passed in, unchanged or updated
167
+ */
168
+ return $shortcode_attributes;
169
+ } // mla_term_list_attributes_filter
170
+
171
+ /**
172
+ * Save the shortcode arguments
173
+ *
174
+ * @since 1.00
175
+ *
176
+ * @var array
177
+ */
178
+ private static $all_display_parameters = array();
179
+
180
+ /**
181
+ * MLA Term List (Display) Arguments
182
+ *
183
+ * This filter gives you an opportunity to record or modify the gallery display arguments
184
+ * after the shortcode attributes are merged with the default arguments.
185
+ *
186
+ * Note that the values in this array are input or default values, not the final computed values
187
+ * used for the gallery display. The computed values are in the $style_values, $markup_values and
188
+ * $item_values arrays passed to later filters below.
189
+ *
190
+ * @since 1.00
191
+ * @uses MLATermListHooksExample::$all_display_parameters
192
+ *
193
+ * @param array shortcode arguments merged with gallery display defaults, so every possible parameter is present
194
+ *
195
+ * @return array updated gallery display arguments
196
+ */
197
+ public static function mla_term_list_arguments( $all_display_parameters ) {
198
+ //error_log( 'MLATermListHooksExample::mla_term_list_arguments_filter $all_display_parameters = ' . var_export( $all_display_parameters, true ), 0 );
199
+
200
+ self::$all_display_parameters = $all_display_parameters;
201
+ return $all_display_parameters;
202
+ } // mla_term_list_arguments_filter
203
+
204
+ /**
205
+ * Save the query attributes
206
+ *
207
+ * @since 1.00
208
+ *
209
+ * @var array
210
+ */
211
+ private static $query_attributes = array();
212
+
213
+ /**
214
+ * MLA Term List Query Attributes
215
+ *
216
+ * This filter gives you an opportunity to record or modify the arguments passed in to the shortcode
217
+ * before they are merged with the default arguments used to select the attachments for the gallery.
218
+ *
219
+ * The query attributes passed in to this filter are the same as those passed through the
220
+ * "MLA Term List (Display) Attributes" filter above. This filter is provided so you can modify
221
+ * the data selection attributes without disturbing the attributes used for gallery display.
222
+ *
223
+ * @since 1.00
224
+ * @uses MLATermListHooksExample::$query_attributes
225
+ *
226
+ * @param array the shortcode parameters passed in to the shortcode
227
+ *
228
+ * @return array updated shortcode attributes
229
+ */
230
+ public static function mla_get_terms_query_attributes( $query_attributes ) {
231
+ //error_log( 'MLATermListHooksExample::mla_get_terms_query_attributes_filter $query_attributes = ' . var_export( $query_attributes, true ), 0 );
232
+
233
+ self::$query_attributes = $query_attributes;
234
+ return $query_attributes;
235
+ } // mla_get_terms_query_attributes_filter
236
+
237
+ /**
238
+ * Save the query arguments
239
+ *
240
+ * @since 1.00
241
+ *
242
+ * @var array
243
+ */
244
+ private static $all_query_parameters = array();
245
+
246
+ /**
247
+ * MLA Term List Query Arguments
248
+ *
249
+ * This filter gives you an opportunity to record or modify the attachment query arguments
250
+ * after the shortcode attributes are merged with the default arguments.
251
+ *
252
+ * @since 1.00
253
+ * @uses MLATermListHooksExample::$all_query_parameters
254
+ *
255
+ * @param array shortcode arguments merged with attachment selection defaults, so every possible parameter is present
256
+ *
257
+ * @return array updated attachment query arguments
258
+ */
259
+ public static function mla_get_terms_query_arguments( $all_query_parameters ) {
260
+ //error_log( 'MLATermListHooksExample::mla_get_terms_query_arguments_filter $all_query_parameters = ' . var_export( $all_query_parameters, true ), 0 );
261
+
262
+ self::$all_query_parameters = $all_query_parameters;
263
+ return $all_query_parameters;
264
+ } // mla_get_terms_query_arguments_filter
265
+
266
+ /**
267
+ * MLA Term List Query Clauses
268
+ *
269
+ * This action gives you a final opportunity to inspect or modify
270
+ * the SQL clauses for the data selection process.
271
+ *
272
+ * @since 1.00
273
+ *
274
+ * @param array SQL clauses ( 'fields', 'join', 'where', 'order', 'orderby', 'limits' )
275
+ *
276
+ * @return array updated SQL clauses
277
+ */
278
+ public static function mla_get_terms_clauses( $clauses ) {
279
+ //error_log( 'MLATermListHooksExample::mla_get_terms_clauses_filter $clauses = ' . var_export( $clauses, true ), 0 );
280
+
281
+ return $clauses;
282
+ } // mla_get_terms_clauses_filter
283
+
284
+ /**
285
+ * MLA Term List Query Results
286
+ *
287
+ * This action gives you an opportunity to inspect, save, modify, reorder, etc.
288
+ * the array of tag objects returned from the data selection process.
289
+ *
290
+ * @since 1.00
291
+ *
292
+ * @param array tag objects
293
+ *
294
+ * @return array updated tag objects
295
+ */
296
+ public static function mla_get_terms_query_results( $tag_objects ) {
297
+ //error_log( 'MLATermListHooksExample::mla_get_terms_query_results_filter $tag_objects = ' . var_export( $tag_objects, true ), 0 );
298
+
299
+ return $tag_objects;
300
+ } // mla_get_terms_query_results_filter
301
+
302
+ /**
303
+ * Use MLA Term List Style
304
+ *
305
+ * You can use this filter to allow or suppress the inclusion of CSS styles in the
306
+ * gallery output. Return 'true' to allow the styles, false to suppress them. You can also
307
+ * suppress styles by returning an empty string from the mla_term_list_style_parse_filter below.
308
+ *
309
+ * @since 1.00
310
+ *
311
+ * @param boolean true unless the mla_style parameter is "none"
312
+ * @param string value of the mla_style parameter
313
+ *
314
+ * @return boolean true to fetch and parse the style template, false to leave it empty
315
+ */
316
+ public static function use_mla_term_list_style( $use_style_template, $style_template_name ) {
317
+ //error_log( 'MLATermListHooksExample::use_mla_term_list_style_filter $use_style_template = ' . var_export( $use_style_template, true ), 0 );
318
+ //error_log( 'MLATermListHooksExample::use_mla_term_list_style_filter $style_template_name = ' . var_export( $style_template_name, true ), 0 );
319
+
320
+ return $use_style_template;
321
+ } // use_mla_term_list_style_filter
322
+
323
+ /**
324
+ * MLA Term List Style Values
325
+ *
326
+ * The "Values" series of filters gives you a chance to modify the substitution parameter values
327
+ * before they are used to complete the associated template (in the corresponding "Parse" filter).
328
+ * It is called just before the values are used to parse the associated template.
329
+ * You can add, change or delete parameters as needed.
330
+ *
331
+ * @since 1.00
332
+ *
333
+ * @param array parameter_name => parameter_value pairs
334
+ *
335
+ * @return array updated substitution parameter name => value pairs
336
+ */
337
+ public static function mla_term_list_style_values( $style_values ) {
338
+ //error_log( 'MLATermListHooksExample::mla_term_list_style_values_filter $style_values = ' . var_export( $style_values, true ), 0 );
339
+
340
+ /*
341
+ * You also have access to the PHP Super Globals, e.g., $_REQUEST, $_SERVER
342
+ */
343
+ //error_log( 'MLATermListHooksExample::mla_term_list_style_values_filter $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
344
+ //error_log( 'MLATermListHooksExample::mla_term_list_style_values_filter $_SERVER[ REQUEST_URI ] = ' . var_export( $_SERVER['REQUEST_URI'], true ), 0 );
345
+
346
+ /*
347
+ * You can use the WordPress globals like $wp_query, $wpdb and $table_prefix as well.
348
+ * Note that $wp_query contains values for the post/page query, NOT the [mla_term_list] query.
349
+ */
350
+ global $wp_query;
351
+ //error_log( 'MLATermListHooksExample::mla_term_list_style_values_filter $wp_query->query = ' . var_export( $wp_query->query, true ), 0 );
352
+
353
+ return $style_values;
354
+ } // mla_term_list_style_values_filter
355
+
356
+ /**
357
+ * MLA Term List Style Template
358
+ *
359
+ * The "Template" series of filters gives you a chance to modify the template value before
360
+ * it is used to generate the HTML markup (in the corresponding "Parse" filter).
361
+ * It is called just before the template is used to generate the markup.
362
+ * You can modify the template as needed.
363
+ *
364
+ * @since 1.00
365
+ *
366
+ * @param string template used to generate the HTML markup
367
+ *
368
+ * @return string updated template
369
+ */
370
+ public static function mla_term_list_style_template( $style_template ) {
371
+ //error_log( 'MLATermListHooksExample::mla_term_list_style_template_filter $style_template = ' . var_export( $style_template, true ), 0 );
372
+
373
+ return $style_template;
374
+ } // mla_term_list_style_template_filter
375
+
376
+ /**
377
+ * MLA Term List Style Parse
378
+ *
379
+ * The "Parse" series of filters gives you a chance to modify or replace the HTML markup
380
+ * that will be added to the [mla_term_list] output. It is called just after the values array
381
+ * (updated in the corresponding "Values" filter) is combined (parsed) with the template.
382
+ * You can modify the HTML markup already prepared or start over with the template and the
383
+ * substitution values.
384
+ *
385
+ * @since 1.00
386
+ *
387
+ * @param string HTML markup returned by the template parser
388
+ * @param string template used to generate the HTML markup
389
+ * @param array parameter_name => parameter_value pairs
390
+ *
391
+ * @return array updated HTML markup for gallery output
392
+ */
393
+ public static function mla_term_list_style_parse( $html_markup, $style_template, $style_values ) {
394
+ //error_log( 'MLATermListHooksExample::mla_term_list_style_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
395
+ //error_log( 'MLATermListHooksExample::mla_term_list_style_parse_filter $style_template = ' . var_export( $style_template, true ), 0 );
396
+ //error_log( 'MLATermListHooksExample::mla_term_list_style_parse_filter $style_values = ' . var_export( $style_values, true ), 0 );
397
+
398
+ return $html_markup;
399
+ } // mla_term_list_style_parse_filter
400
+
401
+ /**
402
+ * MLA Term List Open Values
403
+ *
404
+ * Note: The $markup_values array is shared among the open, row open, row close and close functions.
405
+ * It is also used to initialize the $item_values array.
406
+ *
407
+ * @since 1.00
408
+ *
409
+ * @param array parameter_name => parameter_value pairs
410
+ *
411
+ * @return array updated substitution parameter name => value pairs
412
+ */
413
+ public static function mla_term_list_open_values( $markup_values ) {
414
+ //error_log( 'MLATermListHooksExample::mla_term_list_open_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
415
+
416
+ return $markup_values;
417
+ } // mla_term_list_open_values_filter
418
+
419
+ /**
420
+ * MLA Term List Open Template
421
+ *
422
+ * @since 1.00
423
+ *
424
+ * @param string template used to generate the HTML markup
425
+ *
426
+ * @return string updated template
427
+ */
428
+ public static function mla_term_list_open_template( $open_template ) {
429
+ //error_log( 'MLATermListHooksExample::mla_term_list_open_template_filter $open_template = ' . var_export( $open_template, true ), 0 );
430
+
431
+ return $open_template;
432
+ } // mla_term_list_open_template_filter
433
+
434
+ /**
435
+ * MLA Term List Open Parse
436
+ *
437
+ * @since 1.00
438
+ *
439
+ * @param string HTML markup returned by the template parser
440
+ * @param string template used to generate the HTML markup
441
+ * @param array parameter_name => parameter_value pairs
442
+ *
443
+ * @return array updated HTML markup for gallery output
444
+ */
445
+ public static function mla_term_list_open_parse( $html_markup, $open_template, $markup_values ) {
446
+ //error_log( 'MLATermListHooksExample::mla_term_list_open_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
447
+ //error_log( 'MLATermListHooksExample::mla_term_list_open_parse_filter $open_template = ' . var_export( $open_template, true ), 0 );
448
+ //error_log( 'MLATermListHooksExample::mla_term_list_open_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
449
+
450
+ return $html_markup;
451
+ } // mla_term_list_open_parse_filter
452
+
453
+ /**
454
+ * MLA Term List Item Values
455
+ *
456
+ * @since 1.00
457
+ *
458
+ * @param array parameter_name => parameter_value pairs
459
+ *
460
+ * @return array updated substitution parameter name => value pairs
461
+ */
462
+ public static function mla_term_list_item_values( $item_values ) {
463
+ /*
464
+ * For this example, we will color the term list by parent/child "depth". We use a shortcode parameter of our
465
+ * own to do this on a gallery-by-gallery basis, leaving other [mla_term_list] instances untouched.
466
+ */
467
+ if ( isset( self::$shortcode_attributes['my_filter'] ) && 'color list' == self::$shortcode_attributes['my_filter'] ) {
468
+ $color = $item_values['current_level'] % 3;
469
+ $red = ( 0 == $color ) ? 255 : 0;
470
+ $green = ( 1 == $color ) ? 255 : 0;
471
+ $blue = ( 2 == $color ) ? 255 : 0;
472
+ $old_attributes = $item_values['link_attributes'];
473
+ $new_attributes = sprintf( 'style="color: #%02x%02x%02x"', $red, $green, $blue );
474
+
475
+ if ( empty( $old_attributes ) ) {
476
+ $item_values['link_attributes'] = $new_attributes;
477
+ $new_attributes = ' ' . $item_values['link_attributes'] . ' href=';
478
+ $item_values['currentlink'] = str_replace( ' href=', $new_attributes, $item_values['currentlink'] );
479
+ $item_values['editlink'] = str_replace( ' href=', $new_attributes, $item_values['editlink'] );
480
+ $item_values['termlink'] = str_replace( ' href=', $new_attributes, $item_values['termlink'] );
481
+ $item_values['thelink'] = str_replace( ' href=', $new_attributes, $item_values['thelink'] );
482
+ } else {
483
+ $item_values['link_attributes'] .= ' ' . $new_attributes;
484
+ $new_attributes = $item_values['link_attributes'] . ' href=';
485
+ $item_values['currentlink'] = str_replace( $old_attributes, $new_attributes, $item_values['currentlink'] );
486
+ $item_values['editlink'] = str_replace( $old_attributes, $new_attributes, $item_values['editlink'] );
487
+ $item_values['termlink'] = str_replace( $old_attributes, $new_attributes, $item_values['termlink'] );
488
+ $item_values['thelink'] = str_replace( $old_attributes, $new_attributes, $item_values['thelink'] );
489
+ }
490
+ }
491
+
492
+ return $item_values;
493
+ } // mla_term_list_item_values_filter
494
+
495
+ /**
496
+ * MLA Term List Item Template
497
+ *
498
+ * @since 1.00
499
+ *
500
+ * @param string template used to generate the HTML markup
501
+ *
502
+ * @return string updated template
503
+ */
504
+ public static function mla_term_list_item_template( $item_template ) {
505
+ //error_log( 'MLATermListHooksExample::mla_term_list_item_template_filter $item_template = ' . var_export( $item_template, true ), 0 );
506
+
507
+ return $item_template;
508
+ } // mla_term_list_item_template_filter
509
+
510
+ /**
511
+ * MLA Term List Item Parse
512
+ *
513
+ * @since 1.00
514
+ *
515
+ * @param string HTML markup returned by the template parser
516
+ * @param string template used to generate the HTML markup
517
+ * @param array parameter_name => parameter_value pairs
518
+ *
519
+ * @return array updated HTML markup for gallery output
520
+ */
521
+ public static function mla_term_list_item_parse( $html_markup, $item_template, $item_values ) {
522
+ //error_log( 'MLATermListHooksExample::mla_term_list_item_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
523
+ //error_log( 'MLATermListHooksExample::mla_term_list_item_parse_filter $item_template = ' . var_export( $item_template, true ), 0 );
524
+ //error_log( 'MLATermListHooksExample::mla_term_list_item_parse_filter $item_values = ' . var_export( $item_values, true ), 0 );
525
+
526
+ return $html_markup;
527
+ } // mla_term_list_item_parse_filter
528
+
529
+ /**
530
+ * MLA Term List Close Values
531
+ *
532
+ * @since 1.00
533
+ *
534
+ * @param array parameter_name => parameter_value pairs
535
+ *
536
+ * @return array updated substitution parameter name => value pairs
537
+ */
538
+ public static function mla_term_list_close_values( $markup_values ) {
539
+ //error_log( 'MLATermListHooksExample::mla_term_list_close_values_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
540
+
541
+ return $markup_values;
542
+ } // mla_term_list_close_values_filter
543
+
544
+ /**
545
+ * MLA Term List Close Template
546
+ *
547
+ * @since 1.00
548
+ *
549
+ * @param string template used to generate the HTML markup
550
+ *
551
+ * @return string updated template
552
+ */
553
+ public static function mla_term_list_close_template( $close_template ) {
554
+ //error_log( 'MLATermListHooksExample::mla_term_list_close_template_filter $close_template = ' . var_export( $close_template, true ), 0 );
555
+
556
+ return $close_template;
557
+ } // mla_term_list_close_template_filter
558
+
559
+ /**
560
+ * MLA Term List Close Parse
561
+ *
562
+ * @since 1.00
563
+ *
564
+ * @param string HTML markup returned by the template parser
565
+ * @param string template used to generate the HTML markup
566
+ * @param array parameter_name => parameter_value pairs
567
+ *
568
+ * @return array updated HTML markup for gallery output
569
+ */
570
+ public static function mla_term_list_close_parse( $html_markup, $close_template, $markup_values ) {
571
+ //error_log( 'MLATermListHooksExample::mla_term_list_close_parse_filter $html_markup = ' . var_export( $html_markup, true ), 0 );
572
+ //error_log( 'MLATermListHooksExample::mla_term_list_close_parse_filter $close_template = ' . var_export( $close_template, true ), 0 );
573
+ //error_log( 'MLATermListHooksExample::mla_term_list_close_parse_filter $markup_values = ' . var_export( $markup_values, true ), 0 );
574
+
575
+ return $html_markup;
576
+ } // mla_term_list_close_parse_filter
577
+
578
+ } // Class MLATermListHooksExample
579
+
580
+ /*
581
+ * Install the filters at an early opportunity
582
+ */
583
+ add_action('init', 'MLATermListHooksExample::initialize');
584
+ ?>
examples/mla-unattached-fixit.php.txt CHANGED
@@ -35,6 +35,10 @@ Copyright 2015 David Lingren
35
  /**
36
  * Class Unattached Fixit implements a Tools submenu page with several image-fixing tools.
37
  *
 
 
 
 
38
  * @package Unattached Fixit
39
  * @since 1.00
40
  */
35
  /**
36
  * Class Unattached Fixit implements a Tools submenu page with several image-fixing tools.
37
  *
38
+ * Created for support topic "Bulk delete Unattached images/media"
39
+ * opened on 11/24/2015 by "lododicesimo":
40
+ * https://wordpress.org/support/topic/bulk-delete-unattached-imagesmedia
41
+ *
42
  * @package Unattached Fixit
43
  * @since 1.00
44
  */
includes/class-mla-core.php CHANGED
@@ -14,6 +14,24 @@ defined( 'ABSPATH' ) or die();
14
  * @since 2.20
15
  */
16
  class MLACore {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  /**
18
  * Original PHP error_log path and file
19
  *
@@ -286,9 +304,64 @@ class MLACore {
286
  }
287
  }
288
  }
 
 
 
 
 
 
 
289
  }
290
  }
291
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
292
  /**
293
  * Load a plugin text domain and alternate debug file
294
  *
14
  * @since 2.20
15
  */
16
  class MLACore {
17
+ /**
18
+ * Current version number (moved from class-mla-main.php)
19
+ *
20
+ * @since 2.30
21
+ *
22
+ * @var string
23
+ */
24
+ const CURRENT_MLA_VERSION = '2.31';
25
+
26
+ /**
27
+ * Slug for registering and enqueueing plugin style sheets (moved from class-mla-main.php)
28
+ *
29
+ * @since 2.30
30
+ *
31
+ * @var string
32
+ */
33
+ const STYLESHEET_SLUG = 'mla-style';
34
+
35
  /**
36
  * Original PHP error_log path and file
37
  *
304
  }
305
  }
306
  }
307
+ } // MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS
308
+
309
+ /*
310
+ * Hook wp_enqueue_media() so we can add MLA enhancements, if requested
311
+ */
312
+ if ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TOOLBAR ) ) {
313
+ add_filter( 'media_view_settings', 'MLACore::mla_media_view_settings_filter', 10, 2 );
314
  }
315
  }
316
 
317
+ /**
318
+ * Ensures that MLA media manager enhancements are present when required.
319
+ * Declared public because it is a filter.
320
+ *
321
+ * @since 2.30
322
+ *
323
+ * @param array associative array with setting => value pairs
324
+ * @param object || NULL current post object, if available
325
+ */
326
+ public static function mla_media_view_settings_filter( $settings, $post ) {
327
+ if ( class_exists( 'MLAModal' ) ) {
328
+ return $settings;
329
+ }
330
+
331
+ /*
332
+ * Media Manager (Modal window) additions
333
+ */
334
+ require_once( MLA_PLUGIN_PATH . 'includes/class-mla-list-table.php' );
335
+
336
+ require_once( MLA_PLUGIN_PATH . 'includes/class-mla-view-list-table.php' );
337
+ MLA_View_List_Table::mla_localize_default_columns_array();
338
+
339
+ require_once( MLA_PLUGIN_PATH . 'includes/class-mla-media-modal.php' );
340
+ MLAModal::initialize();
341
+
342
+ add_action( 'wp_enqueue_media', 'MLACore::mla_wp_enqueue_media_action', 10, 0 );
343
+
344
+ return MLAModal::mla_media_view_settings_filter( $settings, $post );
345
+ }
346
+
347
+ /**
348
+ * Registers and enqueues the mla-beaver-builder-style.css file, when needed.
349
+ * Declared public because it is an action.
350
+ *
351
+ * @since 2.30
352
+ */
353
+ public static function mla_wp_enqueue_media_action( ) {
354
+ global $wp_locale;
355
+
356
+ if ( $wp_locale->is_rtl() ) {
357
+ wp_register_style( MLAModal::JAVASCRIPT_MEDIA_MODAL_STYLES . '-bb', MLA_PLUGIN_URL . 'css/mla-beaver-builder-style-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
358
+ } else {
359
+ wp_register_style( MLAModal::JAVASCRIPT_MEDIA_MODAL_STYLES . '-bb', MLA_PLUGIN_URL . 'css/mla-beaver-builder-style.css', false, MLACore::CURRENT_MLA_VERSION );
360
+ }
361
+
362
+ wp_enqueue_style( MLAModal::JAVASCRIPT_MEDIA_MODAL_STYLES . '-bb' );
363
+ } // mla_wp_enqueue_media_action
364
+
365
  /**
366
  * Load a plugin text domain and alternate debug file
367
  *
includes/class-mla-data-query.php CHANGED
@@ -1255,7 +1255,7 @@ class MLAQuery {
1255
  */
1256
  if ( isset( self::$search_parameters['mla_terms_search']['phrases'] ) ) {
1257
  $terms_search_parameters = self::$search_parameters['mla_terms_search'];
1258
- $terms = array_map( 'trim', explode( ',', $terms_search_parameters['phrases'] ) );
1259
  if ( 1 < count( $terms ) ) {
1260
  $terms_connector = '(';
1261
  } else {
1255
  */
1256
  if ( isset( self::$search_parameters['mla_terms_search']['phrases'] ) ) {
1257
  $terms_search_parameters = self::$search_parameters['mla_terms_search'];
1258
+ $terms = array_map( 'trim', explode( $terms_search_parameters['phrase_delimiter'], $terms_search_parameters['phrases'] ) );
1259
  if ( 1 < count( $terms ) ) {
1260
  $terms_connector = '(';
1261
  } else {
includes/class-mla-data-source.php CHANGED
@@ -462,6 +462,12 @@ class MLAData_Source {
462
  $field_value['data_source'] = $placeholder['value'];
463
  $field_value['meta_name'] = '';
464
  $field_value['option'] = $placeholder['option'];
 
 
 
 
 
 
465
  $field_value = MLAData_Source::_evaluate_data_source( $post_id, $category, $field_value, $attachment_metadata );
466
  $item_values[ $key ] = MLAData::mla_apply_field_level_format( $field_value, $placeholder );
467
  } // Data Source
@@ -782,6 +788,11 @@ class MLAData_Source {
782
  }
783
  break;
784
  default:
 
 
 
 
 
785
  return '';
786
  } // switch $data_source
787
 
462
  $field_value['data_source'] = $placeholder['value'];
463
  $field_value['meta_name'] = '';
464
  $field_value['option'] = $placeholder['option'];
465
+ $field_value['format'] = $placeholder['format'];
466
+
467
+ if ( isset( $placeholder['args'] ) ) {
468
+ $field_value['args'] = $placeholder['args'];
469
+ }
470
+
471
  $field_value = MLAData_Source::_evaluate_data_source( $post_id, $category, $field_value, $attachment_metadata );
472
  $item_values[ $key ] = MLAData::mla_apply_field_level_format( $field_value, $placeholder );
473
  } // Data Source
788
  }
789
  break;
790
  default:
791
+ $custom_value = apply_filters( 'mla_evaluate_custom_data_source', NULL, $post_id, $category, $data_value, $attachment_metadata );
792
+ if ( !is_null( $custom_value ) ) {
793
+ return $custom_value;
794
+ }
795
+
796
  return '';
797
  } // switch $data_source
798
 
includes/class-mla-data.php CHANGED
@@ -757,98 +757,119 @@ class MLAData {
757
  * @return string formatted field-level content
758
  */
759
  public static function mla_apply_field_level_format( $value, $args ) {
760
- if ( 'attr' == $args['format'] ) {
761
- $value = esc_attr( $value );
762
- } elseif ( 'url' == $args['format'] ) {
763
- $value = urlencode( $value );
764
- } elseif ( ( 'commas' == $args['format'] ) && is_numeric( $value ) ) {
765
- $value = number_format( (float)$value );
766
- } elseif ( 'timestamp' == $args['format'] && is_numeric( $value ) ) {
767
- /*
768
- * date "Returns a string formatted according to the given format string using the given integer"
769
- */
770
- $format = empty( $args['args'] ) ? 'd/m/Y H:i:s' : $args['args'];
771
- if ( is_array( $format ) ) {
772
- $format = $format[0];
773
- }
774
-
775
- $value = date( $format , (integer) $value );
776
- } elseif ( 'date' == $args['format'] ) {
777
- /*
778
- * strtotime will "Parse about any English textual datetime description into a Unix timestamp"
779
- * If it succeeds we can format the timestamp for display
780
- */
781
- $format = empty( $args['args'] ) ? 'd/m/Y H:i:s' : $args['args'];
782
- $timestamp = strtotime( $value );
783
- if( false !== $timestamp ) {
784
- if ( is_array( $format ) ) {
785
- $format = $format[0];
786
  }
787
-
788
- $value = date( $format, $timestamp );
789
- }
790
- } elseif ( 'fraction' == $args['format'] ) {
791
- $show_fractions = true;
792
- if ( ! empty( $args['args'] ) ) {
793
- if ( is_array( $args['args'] ) ) {
794
- if ( is_numeric( $args['args'][0] ) ) {
795
- $format = '%1$+.' . absint( $args['args'][0] ) . 'f';
796
- } else {
797
- $format = $args['args'][0];
798
- }
799
-
800
- $show_fractions = ( 'false' !== strtolower( trim( $args['args'][1] ) ) );
801
- } else {
802
- if ( is_numeric( $args['args'] ) ) {
803
- $format = '%1$+.' . absint( $args['args'] ) . 'f';
804
- } else {
805
- $format = $args['args'];
806
  }
 
 
807
  }
808
- } else {
809
- $format = '%1$+.2f';
810
- }
811
-
812
- $fragments = array_map( 'intval', explode( '/', $value ) );
813
- if ( 1 == count( $fragments ) ) {
814
- $value = trim( $value );
815
- if ( ! empty( $value ) ) {
816
- $value = $value;
 
 
 
 
 
817
  }
818
- } else {
819
- if ( $fragments[0] ) {
820
- if ( 1 == $fragments[1] ) {
821
- $value = sprintf( '%1$+d', $fragments[0] );
822
- } elseif ( 0 != $fragments[1] ) {
823
- $value = $fragments[0] / $fragments[1];
824
- if ( $show_fractions && ( -1 <= $value ) && ( 1 >= $value ) ) {
825
- $value = sprintf( '%1$+d/%2$d', $fragments[0], $fragments[1] );
826
  } else {
827
- $value = sprintf( $format, $value );
 
 
 
 
 
 
 
 
828
  }
829
- } // fractional value
830
- } // non-zero numerator
831
- } // valid denominator
832
- } elseif ( 'substr' == $args['format'] ) {
833
- $start = 0;
834
- $length = strlen( $value );
835
-
836
- if ( ! empty( $args['args'] ) ) {
837
- if ( is_array( $args['args'] ) ) {
838
- $start = intval( $args['args'][0] );
839
-
840
- if ( 1 < count( $args['args'] ) ) {
841
- $length = intval( $args['args'][1] );
842
  }
843
  } else {
844
- $start = intval( $args['args'] );
845
  }
846
- }
847
-
848
- if ( false === $value = substr( $value, $start, $length ) ) {
849
- $value = '';
850
- }
851
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
852
 
853
  return $value;
854
  }
@@ -873,6 +894,7 @@ class MLAData {
873
  */
874
  public static function mla_expand_field_level_parameters( $tpl, $query = NULL, $markup_values = array(), $post_id = 0, $keep_existing = false, $default_option = 'text' ) {
875
  static $cached_post_id = 0, $item_metadata = NULL, $attachment_metadata = NULL, $id3_metadata = NULL;
 
876
  if ( $cached_post_id != $post_id ) {
877
  $item_metadata = NULL;
878
  $attachment_metadata = NULL;
@@ -880,8 +902,8 @@ class MLAData {
880
  $cached_post_id = $post_id;
881
  }
882
 
883
- $placeholders = self::mla_get_template_placeholders( $tpl, $default_option );
884
  $template_count = 0;
 
885
  foreach ($placeholders as $key => $value ) {
886
  if ( isset( $markup_values[ $key ] ) ) {
887
  continue;
@@ -935,11 +957,22 @@ class MLAData {
935
  $markup_values[ $key ] = $text;
936
  break;
937
  case 'terms':
 
 
 
 
 
 
 
 
 
 
 
938
  if ( 0 < $post_id ) {
939
- $terms = get_object_term_cache( $post_id, $value['value'] );
940
  if ( false === $terms ) {
941
- $terms = wp_get_object_terms( $post_id, $value['value'] );
942
- wp_cache_add( $post_id, $terms, $value['value'] . '_relationships' );
943
  }
944
  } else {
945
  break;
@@ -952,13 +985,17 @@ class MLAData {
952
  if ( 'single' == $value['option'] || 1 == count( $terms ) ) {
953
  reset( $terms );
954
  $term = current( $terms );
955
- $text = sanitize_term_field( 'name', $term->name, $term->term_id, $value['value'], 'display' );
956
- } elseif ( 'export' == $value['option'] ) {
 
 
957
  $text = sanitize_text_field( var_export( $terms, true ) );
958
  } else {
959
  foreach ( $terms as $term ) {
960
- $term_name = sanitize_term_field( 'name', $term->name, $term->term_id, $value['value'], 'display' );
961
- $text .= strlen( $text ) ? ', ' . $term_name : $term_name;
 
 
962
  }
963
  }
964
  }
@@ -1104,11 +1141,19 @@ class MLAData {
1104
  * A standard element can have a format modifier, e.g., commas, attr
1105
  */
1106
  $markup_values[ $key ] = $markup_values[ $value['value'] ];
 
 
 
 
 
1107
  }
1108
 
1109
  break;
1110
  default:
1111
- // ignore anything else
 
 
 
1112
  } // switch
1113
 
1114
  if ( isset( $markup_values[ $key ] ) ) {
@@ -1182,61 +1227,79 @@ class MLAData {
1182
  foreach ( $matches[0] as $match ) {
1183
  $key = substr( $match, 2, (strlen( $match ) - 4 ) );
1184
  $result = array( 'prefix' => '', 'value' => '', 'option' => $default_option, 'format' => 'native' );
1185
- $match_count = preg_match( '/\[\+([^:]+):(.+)/', $match, $matches );
1186
  if ( 1 == $match_count ) {
1187
  $result['prefix'] = $matches[1];
1188
  $tail = $matches[2];
1189
  } else {
1190
- $tail = substr( $match, 2);
1191
  }
1192
 
1193
- $match_count = preg_match( '/([^,]+)(,(text|single|export|unpack|array|multi|commas|raw|attr|url|timestamp|date|fraction|substr))(\(([^)]+)\))*\+\]/', $tail, $matches );
1194
- if ( 1 == $match_count ) {
1195
- $result['value'] = $matches[1];
1196
- if ( ! empty( $matches[5] ) ) {
1197
- $args = self::_parse_arguments( $matches[5] );
1198
-
1199
- if ( 1 == count( $args ) ) {
1200
- $args = $args[0];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1201
  }
1202
  } else {
1203
- $args = '';
1204
- }
1205
-
1206
- if ( 'commas' == $matches[3] ) {
1207
- $result['option'] = 'text';
1208
- $result['format'] = 'commas';
1209
- } elseif ( 'raw' == $matches[3] ) {
1210
- $result['option'] = 'text';
1211
- $result['format'] = 'raw';
1212
- } elseif ( 'attr' == $matches[3] ) {
1213
- $result['option'] = 'text';
1214
- $result['format'] = 'attr';
1215
- } elseif ( 'url' == $matches[3] ) {
1216
- $result['option'] = 'text';
1217
- $result['format'] = 'url';
1218
- } elseif ( 'timestamp' == $matches[3] ) {
1219
- $result['option'] = 'text';
1220
- $result['format'] = 'timestamp';
1221
- $result['args'] = $args;
1222
- } elseif ( 'date' == $matches[3] ) {
1223
- $result['option'] = 'text';
1224
- $result['format'] = 'date';
1225
- $result['args'] = $args;
1226
- } elseif ( 'fraction' == $matches[3] ) {
1227
- $result['option'] = 'text';
1228
- $result['format'] = 'fraction';
1229
- $result['args'] = $args;
1230
- } elseif ( 'substr' == $matches[3] ) {
1231
- $result['option'] = 'text';
1232
- $result['format'] = 'substr';
1233
- $result['args'] = $args;
1234
- } else {
1235
- $result['option'] = $matches[3];
1236
- }
1237
 
 
 
 
 
 
 
 
 
 
 
 
 
1238
  } else {
1239
- $result['value'] = substr( $tail, 0, (strlen( $tail ) - 2 ) );
1240
  }
1241
 
1242
  $results[ $key ] = $result;
@@ -1879,26 +1942,28 @@ class MLAData {
1879
  * code name for XMP; the names have been preserved for compatibility purposes.
1880
  */
1881
  $namespace_arrays = array();
1882
- foreach ( $levels[1]['values']['rdf:RDF']['rdf:Description'] as $key => $value ) {
1883
- if ( is_string( $value ) ) {
1884
- $value = self::_parse_iso8601_date( self::mla_parse_pdf_date( $value ) );
1885
- } elseif ( is_array( $value ) ) {
1886
- $value = self::_parse_xmp_array( $value );
1887
- }
1888
-
1889
- if ( false !== ($colon = strpos( $key, ':' ) ) ) {
1890
- $array_name = substr( $key, 0, $colon );
1891
- $array_index = substr( $key, $colon + 1 );
1892
- $namespace_arrays[ $array_name ][ $array_index ] = $value;
1893
-
1894
- if ( ! isset( $results[ $array_index ] ) && in_array( $array_name, array( 'xmp', 'xmpMM', 'xmpRights', 'xap', 'xapMM', 'dc', 'pdf', 'pdfx', 'mwg-rs' ) ) ) {
1895
- if ( is_array( $value ) && 1 == count( $value ) && isset( $value[0] ) ) {
1896
- $results[ $array_index ] = $value[0];
1897
- } else {
1898
- $results[ $array_index ] = $value;
1899
- }
1900
  }
1901
- } // found namespace
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1902
  }
1903
  //error_log( __LINE__ . " MLAData::mla_parse_xmp_metadata results = " . var_export( $results, true ), 0 );
1904
 
@@ -2034,7 +2099,7 @@ class MLAData {
2034
  }
2035
 
2036
  $results = array_merge( $results, $namespace_arrays );
2037
- //error_log( __LINE__ . " mla_fetch_attachment_image_metadata results = " . var_export( $results, true ), 0 );
2038
  return $results;
2039
  }
2040
 
@@ -2943,7 +3008,6 @@ class MLAData {
2943
  if ( is_callable( 'exif_read_data' ) && in_array( $size[2], array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) ) ) {
2944
  //set_error_handler( 'MLAData::mla_IPTC_EXIF_error_handler' );
2945
  $results['mla_exif_metadata'] = $exif_data = @exif_read_data( $path );
2946
- //error_log( __LINE__ . " MLAData::mla_fetch_attachment_image_metadata exif_data = " . var_export( $exif_data, true ), 0 );
2947
  //restore_error_handler();
2948
  if ( ! empty( MLAData::$mla_IPTC_EXIF_errors ) ) {
2949
  $results['mla_exif_errors'] = MLAData::$mla_IPTC_EXIF_errors;
@@ -2956,6 +3020,17 @@ class MLAData {
2956
  if ( NULL == $results['mla_xmp_metadata'] ) {
2957
  $results['mla_xmp_metadata'] = array();
2958
  }
 
 
 
 
 
 
 
 
 
 
 
2959
 
2960
  // experimental damage repair for Elsie Gilmore (earthnutvt)
2961
  if ( isset( $exif_data['Keywords'] ) && ( '????' == substr( $exif_data['Keywords'], 0, 4 ) ) ) {
@@ -3224,17 +3299,6 @@ class MLAData {
3224
  $results['mla_exif_metadata']['GPS'] = $new_data;
3225
  }
3226
 
3227
- /*
3228
- * Expand EXIF array values - replaced by mla_find_array_element MLA v2.13
3229
- * /
3230
- foreach ( $results['mla_exif_metadata'] as $exif_key => $exif_value ) {
3231
- if ( is_array( $exif_value ) ) {
3232
- foreach ( $exif_value as $key => $value ) {
3233
- $results['mla_exif_metadata'][ $exif_key . '.' . $key ] = $value;
3234
- }
3235
- } // is_array
3236
- } // */
3237
-
3238
  //error_log( __LINE__ . " mla_fetch_attachment_image_metadata( {$post_id} ) results = " . var_export( $results, true ), 0 );
3239
  return $results;
3240
  }
@@ -3391,8 +3455,14 @@ class MLAData {
3391
  }
3392
  } else {
3393
  if ( add_post_meta( $post_id, $meta_key, $meta_value ) ) {
 
 
 
 
 
 
3394
  /* translators: 1: meta_key 2: meta_value */
3395
- $message .= sprintf( __( 'Adding %1$s = %2$s', 'media-library-assistant' ) . '<br>', $meta_key, $meta_value );
3396
  }
3397
  }
3398
  }
757
  * @return string formatted field-level content
758
  */
759
  public static function mla_apply_field_level_format( $value, $args ) {
760
+ if ( empty( $value ) ) {
761
+ return $value;
762
+ }
763
+
764
+ switch ( $args['format'] ) {
765
+ case 'native':
766
+ case 'raw':
767
+ break;
768
+ case 'attr':
769
+ $value = esc_attr( $value );
770
+ break;
771
+ case 'url':
772
+ $value = urlencode( $value );
773
+ break;
774
+ case 'commas':
775
+ if ( is_numeric( $value ) ) {
776
+ $value = number_format( (float)$value );
 
 
 
 
 
 
 
 
 
777
  }
778
+ break;
779
+ case 'timestamp':
780
+ if ( is_numeric( $value ) ) {
781
+ /*
782
+ * date "Returns a string formatted according to the given format string using the given integer"
783
+ */
784
+ $format = empty( $args['args'] ) ? 'd/m/Y H:i:s' : $args['args'];
785
+ if ( is_array( $format ) ) {
786
+ $format = $format[0];
 
 
 
 
 
 
 
 
 
 
787
  }
788
+
789
+ $value = date( $format , (integer) $value );
790
  }
791
+ break;
792
+ case 'date':
793
+ /*
794
+ * strtotime will "Parse about any English textual datetime description into a Unix timestamp"
795
+ * If it succeeds we can format the timestamp for display
796
+ */
797
+ $format = empty( $args['args'] ) ? 'd/m/Y H:i:s' : $args['args'];
798
+ $timestamp = strtotime( $value );
799
+ if( false !== $timestamp ) {
800
+ if ( is_array( $format ) ) {
801
+ $format = $format[0];
802
+ }
803
+
804
+ $value = date( $format, $timestamp );
805
  }
806
+ break;
807
+ case 'fraction':
808
+ $show_fractions = true;
809
+ if ( ! empty( $args['args'] ) ) {
810
+ if ( is_array( $args['args'] ) ) {
811
+ if ( is_numeric( $args['args'][0] ) ) {
812
+ $format = '%1$+.' . absint( $args['args'][0] ) . 'f';
 
813
  } else {
814
+ $format = $args['args'][0];
815
+ }
816
+
817
+ $show_fractions = ( 'false' !== strtolower( trim( $args['args'][1] ) ) );
818
+ } else {
819
+ if ( is_numeric( $args['args'] ) ) {
820
+ $format = '%1$+.' . absint( $args['args'] ) . 'f';
821
+ } else {
822
+ $format = $args['args'];
823
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
824
  }
825
  } else {
826
+ $format = '%1$+.2f';
827
  }
828
+
829
+ $fragments = array_map( 'intval', explode( '/', $value ) );
830
+ if ( 1 == count( $fragments ) ) {
831
+ $value = trim( $value );
832
+ if ( ! empty( $value ) ) {
833
+ $value = $value;
834
+ }
835
+ } else {
836
+ if ( $fragments[0] ) {
837
+ if ( 1 == $fragments[1] ) {
838
+ $value = sprintf( '%1$+d', $fragments[0] );
839
+ } elseif ( 0 != $fragments[1] ) {
840
+ $value = $fragments[0] / $fragments[1];
841
+ if ( $show_fractions && ( -1 <= $value ) && ( 1 >= $value ) ) {
842
+ $value = sprintf( '%1$+d/%2$d', $fragments[0], $fragments[1] );
843
+ } else {
844
+ $value = sprintf( $format, $value );
845
+ }
846
+ } // fractional value
847
+ } // non-zero numerator
848
+ } // valid denominator
849
+ break;
850
+ case 'substr':
851
+ $start = 0;
852
+ $length = strlen( $value );
853
+
854
+ if ( ! empty( $args['args'] ) ) {
855
+ if ( is_array( $args['args'] ) ) {
856
+ $start = intval( $args['args'][0] );
857
+
858
+ if ( 1 < count( $args['args'] ) ) {
859
+ $length = intval( $args['args'][1] );
860
+ }
861
+ } else {
862
+ $start = intval( $args['args'] );
863
+ }
864
+ }
865
+
866
+ if ( false === $value = substr( $value, $start, $length ) ) {
867
+ $value = '';
868
+ }
869
+ break;
870
+ default:
871
+ $value = apply_filters( 'mla_apply_custom_format', $value, $args );
872
+ }
873
 
874
  return $value;
875
  }
894
  */
895
  public static function mla_expand_field_level_parameters( $tpl, $query = NULL, $markup_values = array(), $post_id = 0, $keep_existing = false, $default_option = 'text' ) {
896
  static $cached_post_id = 0, $item_metadata = NULL, $attachment_metadata = NULL, $id3_metadata = NULL;
897
+
898
  if ( $cached_post_id != $post_id ) {
899
  $item_metadata = NULL;
900
  $attachment_metadata = NULL;
902
  $cached_post_id = $post_id;
903
  }
904
 
 
905
  $template_count = 0;
906
+ $placeholders = self::mla_get_template_placeholders( $tpl, $default_option );
907
  foreach ($placeholders as $key => $value ) {
908
  if ( isset( $markup_values[ $key ] ) ) {
909
  continue;
957
  $markup_values[ $key ] = $text;
958
  break;
959
  case 'terms':
960
+
961
+ // Look for field specification
962
+ $match_count = preg_match( '/^(.+)\((.+)\)/', $value['value'], $matches );
963
+ if ( $match_count ) {
964
+ $taxonomy = $matches[1];
965
+ $field = $matches[2];
966
+ } else {
967
+ $taxonomy = $value['value'];
968
+ $field = 'name';
969
+ }
970
+
971
  if ( 0 < $post_id ) {
972
+ $terms = get_object_term_cache( $post_id, $taxonomy );
973
  if ( false === $terms ) {
974
+ $terms = wp_get_object_terms( $post_id, $taxonomy );
975
+ wp_cache_add( $post_id, $terms, $taxonomy . '_relationships' );
976
  }
977
  } else {
978
  break;
985
  if ( 'single' == $value['option'] || 1 == count( $terms ) ) {
986
  reset( $terms );
987
  $term = current( $terms );
988
+ $fields = get_object_vars( $term );
989
+ $text = isset( $fields[ $field ] ) ? $fields[ $field ] : $fields['name'];
990
+ $text = sanitize_term_field( $field, $text, $term->term_id, $taxonomy, 'display' );
991
+ } elseif ( ( 'export' == $value['option'] ) || ( 'unpack' == $value['option'] ) ) {
992
  $text = sanitize_text_field( var_export( $terms, true ) );
993
  } else {
994
  foreach ( $terms as $term ) {
995
+ $fields = get_object_vars( $term );
996
+ $field_value = isset( $fields[ $field ] ) ? $fields[ $field ] : $fields['name'];
997
+ $field_value = sanitize_term_field( $field, $field_value, $term->term_id, $taxonomy, 'display' );
998
+ $text .= strlen( $text ) ? ', ' . $field_value : $field_value;
999
  }
1000
  }
1001
  }
1141
  * A standard element can have a format modifier, e.g., commas, attr
1142
  */
1143
  $markup_values[ $key ] = $markup_values[ $value['value'] ];
1144
+ } else {
1145
+ $custom_value = apply_filters( 'mla_expand_custom_data_source', NULL, $key, $candidate, $value, $query, $markup_values, $post_id, $keep_existing, $default_option );
1146
+ if ( !is_null( $custom_value ) ) {
1147
+ $markup_values[ $key ] = $custom_value;
1148
+ }
1149
  }
1150
 
1151
  break;
1152
  default:
1153
+ $custom_value = apply_filters( 'mla_expand_custom_prefix', NULL, $key, $value, $query, $markup_values, $post_id, $keep_existing, $default_option );
1154
+ if ( !is_null( $custom_value ) ) {
1155
+ $markup_values[ $key ] = $custom_value;
1156
+ }
1157
  } // switch
1158
 
1159
  if ( isset( $markup_values[ $key ] ) ) {
1227
  foreach ( $matches[0] as $match ) {
1228
  $key = substr( $match, 2, (strlen( $match ) - 4 ) );
1229
  $result = array( 'prefix' => '', 'value' => '', 'option' => $default_option, 'format' => 'native' );
1230
+ $match_count = preg_match( '/\[\+([^:]+):(.+)\+\]/', $match, $matches );
1231
  if ( 1 == $match_count ) {
1232
  $result['prefix'] = $matches[1];
1233
  $tail = $matches[2];
1234
  } else {
1235
+ $tail = $key;
1236
  }
1237
 
1238
+ if ( false !== strpos( $tail, ',' ) ) {
1239
+ $match_count = preg_match( '/([^,]+)(,(text|single|export|unpack|array|multi|commas|raw|attr|url|timestamp|date|fraction|substr))(\(([^)]+)\))*/', $tail, $matches );
1240
+ if ( 1 == $match_count ) {
1241
+ $result['value'] = $matches[1];
1242
+ if ( ! empty( $matches[5] ) ) {
1243
+ $args = self::_parse_arguments( $matches[5] );
1244
+
1245
+ if ( 1 == count( $args ) ) {
1246
+ $args = $args[0];
1247
+ }
1248
+ } else {
1249
+ $args = '';
1250
+ }
1251
+
1252
+ if ( 'commas' == $matches[3] ) {
1253
+ $result['option'] = 'text';
1254
+ $result['format'] = 'commas';
1255
+ } elseif ( 'raw' == $matches[3] ) {
1256
+ $result['option'] = 'text';
1257
+ $result['format'] = 'raw';
1258
+ } elseif ( 'attr' == $matches[3] ) {
1259
+ $result['option'] = 'text';
1260
+ $result['format'] = 'attr';
1261
+ } elseif ( 'url' == $matches[3] ) {
1262
+ $result['option'] = 'text';
1263
+ $result['format'] = 'url';
1264
+ } elseif ( 'timestamp' == $matches[3] ) {
1265
+ $result['option'] = 'text';
1266
+ $result['format'] = 'timestamp';
1267
+ $result['args'] = $args;
1268
+ } elseif ( 'date' == $matches[3] ) {
1269
+ $result['option'] = 'text';
1270
+ $result['format'] = 'date';
1271
+ $result['args'] = $args;
1272
+ } elseif ( 'fraction' == $matches[3] ) {
1273
+ $result['option'] = 'text';
1274
+ $result['format'] = 'fraction';
1275
+ $result['args'] = $args;
1276
+ } elseif ( 'substr' == $matches[3] ) {
1277
+ $result['option'] = 'text';
1278
+ $result['format'] = 'substr';
1279
+ $result['args'] = $args;
1280
+ } else {
1281
+ $result['option'] = $matches[3];
1282
  }
1283
  } else {
1284
+ $match_count = preg_match( '/([^,]+),([^(]+)(\(([^)]+)\))*/', $tail, $matches );
1285
+ if ( 1 == $match_count ) {
1286
+ $result['value'] = $matches[1];
1287
+ $result['format'] = $matches[2];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1288
 
1289
+ if ( ! empty( $matches[4] ) ) {
1290
+ $args = self::_parse_arguments( $matches[4] );
1291
+
1292
+ if ( 1 == count( $args ) ) {
1293
+ $args = $args[0];
1294
+ }
1295
+ $result['args'] = $args;
1296
+ }
1297
+ } else {
1298
+ $result['value'] = $tail;
1299
+ }
1300
+ }
1301
  } else {
1302
+ $result['value'] = $tail;
1303
  }
1304
 
1305
  $results[ $key ] = $result;
1942
  * code name for XMP; the names have been preserved for compatibility purposes.
1943
  */
1944
  $namespace_arrays = array();
1945
+ if ( isset( $levels[1] ) && isset( $levels[1]['values'] ) && isset( $levels[1]['values']['rdf:RDF'] ) && isset( $levels[1]['values']['rdf:RDF']['rdf:Description'] ) ) {
1946
+ foreach ( $levels[1]['values']['rdf:RDF']['rdf:Description'] as $key => $value ) {
1947
+ if ( is_string( $value ) ) {
1948
+ $value = self::_parse_iso8601_date( self::mla_parse_pdf_date( $value ) );
1949
+ } elseif ( is_array( $value ) ) {
1950
+ $value = self::_parse_xmp_array( $value );
 
 
 
 
 
 
 
 
 
 
 
 
1951
  }
1952
+
1953
+ if ( false !== ($colon = strpos( $key, ':' ) ) ) {
1954
+ $array_name = substr( $key, 0, $colon );
1955
+ $array_index = substr( $key, $colon + 1 );
1956
+ $namespace_arrays[ $array_name ][ $array_index ] = $value;
1957
+
1958
+ if ( ! isset( $results[ $array_index ] ) && in_array( $array_name, array( 'xmp', 'xmpMM', 'xmpRights', 'xap', 'xapMM', 'dc', 'pdf', 'pdfx', 'mwg-rs' ) ) ) {
1959
+ if ( is_array( $value ) && 1 == count( $value ) && isset( $value[0] ) ) {
1960
+ $results[ $array_index ] = $value[0];
1961
+ } else {
1962
+ $results[ $array_index ] = $value;
1963
+ }
1964
+ }
1965
+ } // found namespace
1966
+ } // foreach Description
1967
  }
1968
  //error_log( __LINE__ . " MLAData::mla_parse_xmp_metadata results = " . var_export( $results, true ), 0 );
1969
 
2099
  }
2100
 
2101
  $results = array_merge( $results, $namespace_arrays );
2102
+ //error_log( __LINE__ . " MLAData::mla_parse_xmp_metadata results = " . var_export( $results, true ), 0 );
2103
  return $results;
2104
  }
2105
 
3008
  if ( is_callable( 'exif_read_data' ) && in_array( $size[2], array( IMAGETYPE_JPEG, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM ) ) ) {
3009
  //set_error_handler( 'MLAData::mla_IPTC_EXIF_error_handler' );
3010
  $results['mla_exif_metadata'] = $exif_data = @exif_read_data( $path );
 
3011
  //restore_error_handler();
3012
  if ( ! empty( MLAData::$mla_IPTC_EXIF_errors ) ) {
3013
  $results['mla_exif_errors'] = MLAData::$mla_IPTC_EXIF_errors;
3020
  if ( NULL == $results['mla_xmp_metadata'] ) {
3021
  $results['mla_xmp_metadata'] = array();
3022
  }
3023
+
3024
+ // experimental damage repair for Robert O'Conner (Rufus McDufus)
3025
+ if ( isset( $exif_data['DateTimeOriginal'] ) && ( 8 > strlen( $exif_data['DateTimeOriginal'] ) ) ) {
3026
+ if ( isset( $results['mla_xmp_metadata']['CreateDate'] )&& ( is_numeric( strtotime( $results['mla_xmp_metadata']['CreateDate'] ) ) ) ) {
3027
+ $exif_data['BadDateTimeOriginal'] = $exif_data['DateTimeOriginal'];
3028
+ $results['mla_exif_metadata']['BadDateTimeOriginal'] = $exif_data['DateTimeOriginal'];
3029
+
3030
+ $exif_data['DateTimeOriginal'] = $results['mla_xmp_metadata']['CreateDate'];
3031
+ $results['mla_exif_metadata']['DateTimeOriginal'] = $results['mla_xmp_metadata']['CreateDate'];
3032
+ }
3033
+ }
3034
 
3035
  // experimental damage repair for Elsie Gilmore (earthnutvt)
3036
  if ( isset( $exif_data['Keywords'] ) && ( '????' == substr( $exif_data['Keywords'], 0, 4 ) ) ) {
3299
  $results['mla_exif_metadata']['GPS'] = $new_data;
3300
  }
3301
 
 
 
 
 
 
 
 
 
 
 
 
3302
  //error_log( __LINE__ . " mla_fetch_attachment_image_metadata( {$post_id} ) results = " . var_export( $results, true ), 0 );
3303
  return $results;
3304
  }
3455
  }
3456
  } else {
3457
  if ( add_post_meta( $post_id, $meta_key, $meta_value ) ) {
3458
+ if ( is_array( $meta_value ) ) {
3459
+ $new_text = var_export( $meta_value, true );
3460
+ } else {
3461
+ $new_text = $meta_value;
3462
+ }
3463
+
3464
  /* translators: 1: meta_key 2: meta_value */
3465
+ $message .= sprintf( __( 'Adding %1$s = %2$s', 'media-library-assistant' ) . '<br>', $meta_key, $new_text );
3466
  }
3467
  }
3468
  }
includes/class-mla-edit-media.php CHANGED
@@ -158,11 +158,11 @@ class MLAEdit {
158
  */
159
  if ( 'media-new.php' == $page_hook && ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_ADD_NEW_BULK_EDIT ) ) ) {
160
  if ( $wp_locale->is_rtl() ) {
161
- wp_register_style( 'mla-add-new-bulk-edit', MLA_PLUGIN_URL . 'css/mla-add-new-bulk-edit-rtl.css', false, MLA::CURRENT_MLA_VERSION );
162
- wp_register_style( 'mla-add-new-bulk-edit' . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent-rtl.css', false, MLA::CURRENT_MLA_VERSION );
163
  } else {
164
- wp_register_style( 'mla-add-new-bulk-edit', MLA_PLUGIN_URL . 'css/mla-add-new-bulk-edit.css', false, MLA::CURRENT_MLA_VERSION );
165
- wp_register_style( 'mla-add-new-bulk-edit' . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, MLA::CURRENT_MLA_VERSION );
166
  }
167
 
168
  wp_enqueue_style( 'mla-add-new-bulk-edit' );
@@ -170,10 +170,10 @@ class MLAEdit {
170
 
171
  // 'suggest' loads the script for flat taxonomy auto-complete/suggested matches
172
  wp_enqueue_script( 'mla-add-new-bulk-edit-scripts', MLA_PLUGIN_URL . "js/mla-add-new-bulk-edit-scripts{$suffix}.js",
173
- array( 'suggest', 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
174
 
175
  wp_enqueue_script( 'mla-add-new-bulk-edit-scripts' . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
176
- array( 'mla-add-new-bulk-edit-scripts', 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
177
 
178
  $script_variables = array(
179
  'uploadTitle' => __( 'Upload New Media items', 'media-library-assistant' ),
@@ -221,17 +221,17 @@ class MLAEdit {
221
  * Media/Edit Media submenu
222
  * Register and queue the style sheet, if needed
223
  */
224
- wp_register_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES, MLA_PLUGIN_URL . 'css/mla-edit-media-style.css', false, MLA::CURRENT_MLA_VERSION );
225
  wp_enqueue_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES );
226
 
227
- wp_register_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, MLA::CURRENT_MLA_VERSION );
228
  wp_enqueue_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES . '-set-parent' );
229
 
230
  wp_enqueue_script( self::JAVASCRIPT_EDIT_MEDIA_SLUG, MLA_PLUGIN_URL . "js/mla-edit-media-scripts{$suffix}.js",
231
- array( 'post', 'wp-lists', 'suggest', 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
232
 
233
  wp_enqueue_script( self::JAVASCRIPT_EDIT_MEDIA_SLUG . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
234
- array( 'post', 'wp-lists', 'suggest', 'jquery', self::JAVASCRIPT_EDIT_MEDIA_SLUG ), MLA::CURRENT_MLA_VERSION, false );
235
 
236
  $script_variables = array(
237
  'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
158
  */
159
  if ( 'media-new.php' == $page_hook && ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_ADD_NEW_BULK_EDIT ) ) ) {
160
  if ( $wp_locale->is_rtl() ) {
161
+ wp_register_style( 'mla-add-new-bulk-edit', MLA_PLUGIN_URL . 'css/mla-add-new-bulk-edit-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
162
+ wp_register_style( 'mla-add-new-bulk-edit' . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
163
  } else {
164
+ wp_register_style( 'mla-add-new-bulk-edit', MLA_PLUGIN_URL . 'css/mla-add-new-bulk-edit.css', false, MLACore::CURRENT_MLA_VERSION );
165
+ wp_register_style( 'mla-add-new-bulk-edit' . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, MLACore::CURRENT_MLA_VERSION );
166
  }
167
 
168
  wp_enqueue_style( 'mla-add-new-bulk-edit' );
170
 
171
  // 'suggest' loads the script for flat taxonomy auto-complete/suggested matches
172
  wp_enqueue_script( 'mla-add-new-bulk-edit-scripts', MLA_PLUGIN_URL . "js/mla-add-new-bulk-edit-scripts{$suffix}.js",
173
+ array( 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
174
 
175
  wp_enqueue_script( 'mla-add-new-bulk-edit-scripts' . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
176
+ array( 'mla-add-new-bulk-edit-scripts', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
177
 
178
  $script_variables = array(
179
  'uploadTitle' => __( 'Upload New Media items', 'media-library-assistant' ),
221
  * Media/Edit Media submenu
222
  * Register and queue the style sheet, if needed
223
  */
224
+ wp_register_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES, MLA_PLUGIN_URL . 'css/mla-edit-media-style.css', false, MLACore::CURRENT_MLA_VERSION );
225
  wp_enqueue_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES );
226
 
227
+ wp_register_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, MLACore::CURRENT_MLA_VERSION );
228
  wp_enqueue_style( self::JAVASCRIPT_EDIT_MEDIA_STYLES . '-set-parent' );
229
 
230
  wp_enqueue_script( self::JAVASCRIPT_EDIT_MEDIA_SLUG, MLA_PLUGIN_URL . "js/mla-edit-media-scripts{$suffix}.js",
231
+ array( 'post', 'wp-lists', 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
232
 
233
  wp_enqueue_script( self::JAVASCRIPT_EDIT_MEDIA_SLUG . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
234
+ array( 'post', 'wp-lists', 'suggest', 'jquery', self::JAVASCRIPT_EDIT_MEDIA_SLUG ), MLACore::CURRENT_MLA_VERSION, false );
235
 
236
  $script_variables = array(
237
  'comma' => _x( ',', 'tag_delimiter', 'media-library-assistant' ),
includes/class-mla-main.php CHANGED
@@ -22,14 +22,11 @@ if ( !function_exists( 'post_categories_meta_box' ) ) {
22
  */
23
  class MLA {
24
 
25
- /**
26
- * Current version number
27
- *
28
  * @since 0.1
29
- *
30
- * @var string
31
  */
32
- const CURRENT_MLA_VERSION = '2.25';
33
 
34
  /**
35
  * Current date for Development Version, empty for production versions
@@ -41,13 +38,10 @@ class MLA {
41
  const MLA_DEVELOPMENT_VERSION = '';
42
 
43
  /**
44
- * Slug for registering and enqueueing plugin style sheet
45
- *
46
  * @since 0.1
47
- *
48
- * @var string
49
  */
50
- const STYLESHEET_SLUG = 'mla-style';
51
 
52
  /**
53
  * Object name for localizing JavaScript - MLA List Table
@@ -223,6 +217,9 @@ class MLA {
223
  * @return void
224
  */
225
  public static function mla_admin_init_action() {
 
 
 
226
  //error_log( __LINE__ . ' DEBUG: MLA::mla_admin_init_action referer = ' . var_export( wp_get_referer(), true ), 0 );
227
  //error_log( __LINE__ . ' DEBUG: MLA::mla_admin_init_action $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
228
  /*
@@ -401,13 +398,13 @@ class MLA {
401
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
402
 
403
  if ( 'checked' != MLACore::mla_get_option( MLACoreOptions::MLA_SCREEN_DISPLAY_LIBRARY ) ) {
404
- wp_register_style( self::STYLESHEET_SLUG . '-nolibrary', MLA_PLUGIN_URL . 'css/mla-nolibrary.css', false, self::CURRENT_MLA_VERSION );
405
- wp_enqueue_style( self::STYLESHEET_SLUG . '-nolibrary' );
406
  }
407
 
408
  if ( 'edit-tags.php' == $page_hook ) {
409
- wp_register_style( self::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-edit-tags-style.css', false, self::CURRENT_MLA_VERSION );
410
- wp_enqueue_style( self::STYLESHEET_SLUG );
411
  return;
412
  }
413
 
@@ -421,21 +418,21 @@ class MLA {
421
  add_action( 'admin_print_styles', 'MLA::mla_admin_print_styles_action' );
422
 
423
  if ( $wp_locale->is_rtl() ) {
424
- wp_register_style( self::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, self::CURRENT_MLA_VERSION );
425
  } else {
426
- wp_register_style( self::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, self::CURRENT_MLA_VERSION );
427
  }
428
 
429
- wp_enqueue_style( self::STYLESHEET_SLUG );
430
 
431
- wp_register_style( self::STYLESHEET_SLUG . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, self::CURRENT_MLA_VERSION );
432
- wp_enqueue_style( self::STYLESHEET_SLUG . '-set-parent' );
433
 
434
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-inline-edit-scripts{$suffix}.js",
435
- array( 'wp-lists', 'suggest', 'jquery' ), self::CURRENT_MLA_VERSION, false );
436
 
437
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
438
- array( 'wp-lists', 'suggest', 'jquery', MLACore::JAVASCRIPT_INLINE_EDIT_SLUG ), self::CURRENT_MLA_VERSION, false );
439
 
440
  MLAModal::mla_add_terms_search_scripts();
441
 
@@ -1289,6 +1286,7 @@ class MLA {
1289
  unset( $_REQUEST['action2'] );
1290
  }
1291
 
 
1292
  return $page_content;
1293
  }
1294
 
22
  */
23
  class MLA {
24
 
25
+ /*
26
+ * Current version number (moved to class-mla-core.php)
 
27
  * @since 0.1
 
 
28
  */
29
+ // const CURRENT_MLA_VERSION
30
 
31
  /**
32
  * Current date for Development Version, empty for production versions
38
  const MLA_DEVELOPMENT_VERSION = '';
39
 
40
  /**
41
+ * Slug for registering and enqueueing plugin style sheets (moved to class-mla-core.php)
 
42
  * @since 0.1
 
 
43
  */
44
+ // const STYLESHEET_SLUG
45
 
46
  /**
47
  * Object name for localizing JavaScript - MLA List Table
217
  * @return void
218
  */
219
  public static function mla_admin_init_action() {
220
+ static $count = 0;
221
+ //error_log( __LINE__ . ' DEBUG: MLA::mla_admin_init_action $count = ' . var_export( $count++, true ), 0 );
222
+
223
  //error_log( __LINE__ . ' DEBUG: MLA::mla_admin_init_action referer = ' . var_export( wp_get_referer(), true ), 0 );
224
  //error_log( __LINE__ . ' DEBUG: MLA::mla_admin_init_action $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
225
  /*
398
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
399
 
400
  if ( 'checked' != MLACore::mla_get_option( MLACoreOptions::MLA_SCREEN_DISPLAY_LIBRARY ) ) {
401
+ wp_register_style( MLACore::STYLESHEET_SLUG . '-nolibrary', MLA_PLUGIN_URL . 'css/mla-nolibrary.css', false, MLACore::CURRENT_MLA_VERSION );
402
+ wp_enqueue_style( MLACore::STYLESHEET_SLUG . '-nolibrary' );
403
  }
404
 
405
  if ( 'edit-tags.php' == $page_hook ) {
406
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-edit-tags-style.css', false, MLACore::CURRENT_MLA_VERSION );
407
+ wp_enqueue_style( MLACore::STYLESHEET_SLUG );
408
  return;
409
  }
410
 
418
  add_action( 'admin_print_styles', 'MLA::mla_admin_print_styles_action' );
419
 
420
  if ( $wp_locale->is_rtl() ) {
421
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
422
  } else {
423
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLACore::CURRENT_MLA_VERSION );
424
  }
425
 
426
+ wp_enqueue_style( MLACore::STYLESHEET_SLUG );
427
 
428
+ wp_register_style( MLACore::STYLESHEET_SLUG . '-set-parent', MLA_PLUGIN_URL . 'css/mla-style-set-parent.css', false, MLACore::CURRENT_MLA_VERSION );
429
+ wp_enqueue_style( MLACore::STYLESHEET_SLUG . '-set-parent' );
430
 
431
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG, MLA_PLUGIN_URL . "js/mla-inline-edit-scripts{$suffix}.js",
432
+ array( 'wp-lists', 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
433
 
434
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-set-parent', MLA_PLUGIN_URL . "js/mla-set-parent-scripts{$suffix}.js",
435
+ array( 'wp-lists', 'suggest', 'jquery', MLACore::JAVASCRIPT_INLINE_EDIT_SLUG ), MLACore::CURRENT_MLA_VERSION, false );
436
 
437
  MLAModal::mla_add_terms_search_scripts();
438
 
1286
  unset( $_REQUEST['action2'] );
1287
  }
1288
 
1289
+ MLACore::mla_debug_add( 'mla_process_bulk_action returning $page_content = ' . var_export( $page_content, true ), MLACore::MLA_DEBUG_CATEGORY_AJAX );
1290
  return $page_content;
1291
  }
1292
 
includes/class-mla-media-modal.php CHANGED
@@ -394,14 +394,14 @@ class MLAModal {
394
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
395
 
396
  if ( $wp_locale->is_rtl() ) {
397
- wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style-rtl.css', false, MLA::CURRENT_MLA_VERSION );
398
  } else {
399
- wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style.css', false, MLA::CURRENT_MLA_VERSION );
400
  }
401
 
402
  wp_enqueue_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES );
403
 
404
- wp_enqueue_script( self::JAVASCRIPT_MEDIA_MODAL_SLUG, MLA_PLUGIN_URL . "js/mla-media-modal-scripts{$suffix}.js", array( 'media-views', 'wp-lists', 'suggest' ), MLA::CURRENT_MLA_VERSION, false );
405
 
406
  if ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) ) {
407
  MLAModal::mla_add_terms_search_scripts();
@@ -495,15 +495,15 @@ class MLAModal {
495
 
496
  if ( $add_the_scripts ) {
497
  if ( $wp_locale->is_rtl() ) {
498
- wp_register_style( MLA::STYLESHEET_SLUG . '-terms-search', MLA_PLUGIN_URL . 'css/mla-style-terms-search-rtl.css', false, MLA::CURRENT_MLA_VERSION );
499
  } else {
500
- wp_register_style( MLA::STYLESHEET_SLUG . '-terms-search', MLA_PLUGIN_URL . 'css/mla-style-terms-search.css', false, MLA::CURRENT_MLA_VERSION );
501
  }
502
 
503
- wp_enqueue_style( MLA::STYLESHEET_SLUG . '-terms-search' );
504
 
505
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-terms-search', MLA_PLUGIN_URL . "js/mla-terms-search-scripts{$suffix}.js",
506
- array( 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
507
 
508
  $script_variables = array(
509
  'useDashicons' => false,
394
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
395
 
396
  if ( $wp_locale->is_rtl() ) {
397
+ wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
398
  } else {
399
+ wp_register_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES, MLA_PLUGIN_URL . 'css/mla-media-modal-style.css', false, MLACore::CURRENT_MLA_VERSION );
400
  }
401
 
402
  wp_enqueue_style( self::JAVASCRIPT_MEDIA_MODAL_STYLES );
403
 
404
+ wp_enqueue_script( self::JAVASCRIPT_MEDIA_MODAL_SLUG, MLA_PLUGIN_URL . "js/mla-media-modal-scripts{$suffix}.js", array( 'media-views', 'wp-lists', 'suggest' ), MLACore::CURRENT_MLA_VERSION, false );
405
 
406
  if ( 'checked' == MLACore::mla_get_option( MLACoreOptions::MLA_MEDIA_MODAL_TERMS_SEARCH ) ) {
407
  MLAModal::mla_add_terms_search_scripts();
495
 
496
  if ( $add_the_scripts ) {
497
  if ( $wp_locale->is_rtl() ) {
498
+ wp_register_style( MLACore::STYLESHEET_SLUG . '-terms-search', MLA_PLUGIN_URL . 'css/mla-style-terms-search-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
499
  } else {
500
+ wp_register_style( MLACore::STYLESHEET_SLUG . '-terms-search', MLA_PLUGIN_URL . 'css/mla-style-terms-search.css', false, MLACore::CURRENT_MLA_VERSION );
501
  }
502
 
503
+ wp_enqueue_style( MLACore::STYLESHEET_SLUG . '-terms-search' );
504
 
505
  wp_enqueue_script( MLACore::JAVASCRIPT_INLINE_EDIT_SLUG . '-terms-search', MLA_PLUGIN_URL . "js/mla-terms-search-scripts{$suffix}.js",
506
+ array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
507
 
508
  $script_variables = array(
509
  'useDashicons' => false,
includes/class-mla-objects.php CHANGED
@@ -85,7 +85,6 @@ class MLAObjects {
85
  'hierarchical' => false,
86
  'labels' => $labels,
87
  'show_ui' => true,
88
- 'update_count_callback' => '_update_post_term_count',
89
  'query_var' => true,
90
  'rewrite' => true,
91
  'update_count_callback' => '_update_generic_term_count'
85
  'hierarchical' => false,
86
  'labels' => $labels,
87
  'show_ui' => true,
 
88
  'query_var' => true,
89
  'rewrite' => true,
90
  'update_count_callback' => '_update_generic_term_count'
includes/class-mla-options.php CHANGED
@@ -304,7 +304,7 @@ class MLAOptions {
304
  }
305
 
306
  /**
307
- * Style and Markup templates
308
  *
309
  * @since 0.80
310
  *
@@ -313,7 +313,7 @@ class MLAOptions {
313
  private static $mla_option_templates = NULL;
314
 
315
  /**
316
- * Load style and markup templates to $mla_templates
317
  *
318
  * @since 0.80
319
  *
@@ -323,7 +323,7 @@ class MLAOptions {
323
  MLAOptions::$mla_option_templates = MLACore::mla_load_template( 'mla-option-templates.tpl' );
324
 
325
  /*
326
- * Load the default templates
327
  */
328
  if ( is_null( MLAOptions::$mla_option_templates ) ) {
329
  MLACore::mla_debug_add( '<strong>mla_debug _load_option_templates()</strong> ' . __( 'error loading tpls/mla-option-templates.tpl', 'media-library-assistant' ) );
@@ -335,140 +335,6 @@ class MLAOptions {
335
  }
336
  }
337
 
338
- /**
339
- * Localize $mla_option_definitions array
340
- *
341
- * Localization must be done at runtime; these calls cannot be placed in the
342
- * "public static" array definition itself. Called from MLATest::initialize.
343
- *
344
- * @since 1.70
345
- *
346
- * @return void
347
- * /
348
- public static function mla_localize_option_definitions_array() {
349
- MLACoreOptions::mla_localize_option_definitions_array();
350
- } // */
351
-
352
- /**
353
- * Get ALL style templates from $mla_templates, including 'default'
354
- *
355
- * @since 0.80
356
- *
357
- * @return array|null name => value for all style templates or null if no templates
358
- */
359
- public static function mla_get_style_templates() {
360
- if ( ! is_array( MLAShortcode_Support::$mla_custom_templates ) ) {
361
- MLACore::mla_debug_add( '<strong>mla_debug mla_get_style_templates()</strong> ' . __( 'no templates exist', 'media-library-assistant' ) );
362
- return NULL;
363
- }
364
-
365
- $templates = array();
366
- foreach ( MLAShortcode_Support::$mla_custom_templates as $key => $value ) {
367
- $tail = strrpos( $key, '-style' );
368
- if ( ! ( false === $tail ) ) {
369
- $name = substr( $key, 0, $tail );
370
- $templates[ $name ] = $value;
371
- }
372
- } // foreach
373
-
374
- return $templates;
375
- }
376
-
377
- /**
378
- * Put user-defined style templates to $mla_templates and database
379
- *
380
- * @since 0.80
381
- *
382
- * @param array name => value for all user-defined style templates
383
- * @return boolean true if success, false if failure
384
- */
385
- public static function mla_put_style_templates( $templates ) {
386
- if ( MLACore::mla_update_option( 'style_templates', $templates ) ) {
387
- MLAShortcode_Support::mla_load_custom_templates();
388
- return true;
389
- }
390
-
391
- return false;
392
- }
393
-
394
- /**
395
- * Get ALL markup templates from $mla_templates, including 'default'
396
- *
397
- * @since 0.80
398
- *
399
- * @return array|null name => value for all markup templates or null if no templates
400
- */
401
- public static function mla_get_markup_templates() {
402
- if ( ! is_array( MLAShortcode_Support::$mla_custom_templates ) ) {
403
- MLACore::mla_debug_add( '<strong>mla_debug mla_get_markup_templates()</strong> ' . __( 'no templates exist', 'media-library-assistant' ) );
404
- return NULL;
405
- }
406
-
407
- $templates = array();
408
- foreach ( MLAShortcode_Support::$mla_custom_templates as $key => $value ) {
409
- $tail = strrpos( $key, '-arguments-markup' );
410
- if ( ! ( false === $tail ) ) {
411
- $name = substr( $key, 0, $tail );
412
- $templates[ $name ]['arguments'] = $value;
413
- continue;
414
- }
415
-
416
- // Note order: -row-open must precede -open!
417
- $tail = strrpos( $key, '-row-open-markup' );
418
- if ( ! ( false === $tail ) ) {
419
- $name = substr( $key, 0, $tail );
420
- $templates[ $name ]['row-open'] = $value;
421
- continue;
422
- }
423
-
424
- $tail = strrpos( $key, '-open-markup' );
425
- if ( ! ( false === $tail ) ) {
426
- $name = substr( $key, 0, $tail );
427
- $templates[ $name ]['open'] = $value;
428
- continue;
429
- }
430
-
431
- $tail = strrpos( $key, '-item-markup' );
432
- if ( ! ( false === $tail ) ) {
433
- $name = substr( $key, 0, $tail );
434
- $templates[ $name ]['item'] = $value;
435
- continue;
436
- }
437
-
438
- $tail = strrpos( $key, '-row-close-markup' );
439
- if ( ! ( false === $tail ) ) {
440
- $name = substr( $key, 0, $tail );
441
- $templates[ $name ]['row-close'] = $value;
442
- continue;
443
- }
444
-
445
- $tail = strrpos( $key, '-close-markup' );
446
- if ( ! ( false === $tail ) ) {
447
- $name = substr( $key, 0, $tail );
448
- $templates[ $name ]['close'] = $value;
449
- }
450
- } // foreach
451
-
452
- return $templates;
453
- }
454
-
455
- /**
456
- * Put user-defined markup templates to $mla_templates and database
457
- *
458
- * @since 0.80
459
- *
460
- * @param array name => value for all user-defined markup templates
461
- * @return boolean true if success, false if failure
462
- */
463
- public static function mla_put_markup_templates( $templates ) {
464
- if ( MLACore::mla_update_option( 'markup_templates', $templates ) ) {
465
- MLAShortcode_Support::mla_load_custom_templates();
466
- return true;
467
- }
468
-
469
- return false;
470
- }
471
-
472
  /**
473
  * Return the stored value or default value of a defined MLA option
474
  *
@@ -1018,7 +884,6 @@ class MLAOptions {
1018
 
1019
  $options = apply_filters( 'mla_update_attachment_metadata_options', $options, $data, $post_id );
1020
  $data = apply_filters( 'mla_update_attachment_metadata_prefilter', $data, $post_id, $options );
1021
- //error_log( __LINE__ . ' mla_update_attachment_metadata_filter options = ' . var_export( $options, true ), 0 );
1022
 
1023
  if ( $options['is_upload'] ) {
1024
  if ( $options['enable_iptc_exif_mapping'] || $options['enable_custom_field_mapping'] ) {
304
  }
305
 
306
  /**
307
+ * Option Setting templates
308
  *
309
  * @since 0.80
310
  *
313
  private static $mla_option_templates = NULL;
314
 
315
  /**
316
+ * Load option settings templates to $mla_option_templates
317
  *
318
  * @since 0.80
319
  *
323
  MLAOptions::$mla_option_templates = MLACore::mla_load_template( 'mla-option-templates.tpl' );
324
 
325
  /*
326
+ * Load the option settings templates
327
  */
328
  if ( is_null( MLAOptions::$mla_option_templates ) ) {
329
  MLACore::mla_debug_add( '<strong>mla_debug _load_option_templates()</strong> ' . __( 'error loading tpls/mla-option-templates.tpl', 'media-library-assistant' ) );
335
  }
336
  }
337
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
338
  /**
339
  * Return the stored value or default value of a defined MLA option
340
  *
884
 
885
  $options = apply_filters( 'mla_update_attachment_metadata_options', $options, $data, $post_id );
886
  $data = apply_filters( 'mla_update_attachment_metadata_prefilter', $data, $post_id, $options );
 
887
 
888
  if ( $options['is_upload'] ) {
889
  if ( $options['enable_iptc_exif_mapping'] || $options['enable_custom_field_mapping'] ) {
includes/class-mla-polylang-support.php CHANGED
@@ -25,6 +25,15 @@ class MLA_Polylang {
25
  */
26
  const MLA_PLL_QUICK_TRANSLATE = 'mla-polylang-quick-translate';
27
 
 
 
 
 
 
 
 
 
 
28
  /**
29
  * Initialization function, similar to __construct()
30
  *
@@ -33,6 +42,8 @@ class MLA_Polylang {
33
  * @return void
34
  */
35
  public static function initialize() {
 
 
36
  /*
37
  * The remaining filters are only useful for the admin section;
38
  * exit in the front-end posts/pages
@@ -220,8 +231,15 @@ class MLA_Polylang {
220
  /*
221
  * Get the existing translations, if any
222
  */
223
- $translations = $polylang->model->get_translations( 'post', $post_id );
224
- if ( ! $translations && $lang = $polylang->model->get_post_language( $post_id ) ) {
 
 
 
 
 
 
 
225
  $translations[ $lang->slug ] = $post_id;
226
  }
227
 
@@ -235,7 +253,13 @@ class MLA_Polylang {
235
  */
236
  $post = get_post( $post_id );
237
  $post->ID = NULL; // will force the creation
238
- $post->post_parent = ( $post->post_parent && $tr_parent = $polylang->model->get_translation( 'post', $post->post_parent, $new_language ) ) ? $tr_parent : 0;
 
 
 
 
 
 
239
  $new_id = wp_insert_attachment( $post );
240
  add_post_meta( $new_id, '_wp_attachment_metadata', get_post_meta( $post_id, '_wp_attachment_metadata', true ) );
241
  add_post_meta( $new_id, '_wp_attached_file', get_post_meta( $post_id, '_wp_attached_file', true ) );
@@ -257,12 +281,23 @@ class MLA_Polylang {
257
 
258
  $polylang->model->set_post_language($new_id, $new_language);
259
 
260
- $translations = $polylang->model->get_translations( 'post', $post_id );
261
- if ( ! $translations && $lang = $polylang->model->get_post_language( $post_id ) )
 
 
 
 
 
 
 
262
  $translations[ $lang->slug ] = $post_id;
263
 
264
  $translations[ $new_language ] = $new_id;
265
- $polylang->model->save_translations( 'post', $new_id, $translations );
 
 
 
 
266
  } // add new translation
267
 
268
  return (integer) $new_id;
@@ -304,7 +339,11 @@ class MLA_Polylang {
304
 
305
  // Language dropdown in Quick Edit area
306
  if ( isset( $_REQUEST['inline_lang_choice'] ) ) {
307
- $translations = $polylang->model->get_translations( 'post', $post_id );
 
 
 
 
308
 
309
  if ( ! array_key_exists( $_REQUEST['inline_lang_choice'], $translations ) ) {
310
  $post = get_post( $post_id );
@@ -335,7 +374,11 @@ class MLA_Polylang {
335
  }
336
 
337
  // Create an instance of our package class and echo the new HTML for all translations
338
- $translations = $polylang->model->get_translations( 'post', $post_id );
 
 
 
 
339
 
340
  $MLAListTable = new MLA_List_Table();
341
  $new_item = (object) MLAData::mla_get_attachment_by_id( $new_id );
@@ -370,11 +413,11 @@ class MLA_Polylang {
370
  return;
371
  }
372
 
373
- wp_register_style( 'mla-polylang-support', MLA_PLUGIN_URL . 'css/mla-polylang-support.css', false, MLA::CURRENT_MLA_VERSION );
374
  wp_enqueue_style( 'mla-polylang-support' );
375
 
376
  wp_enqueue_script( 'mla-polylang-support-scripts', MLA_PLUGIN_URL . "js/mla-polylang-support-scripts{$suffix}.js",
377
- array( 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
378
 
379
  // For Quick and Bulk Translate
380
  $fields = array( 'old_lang', 'inline_lang_choice', 'inline_translations' );
@@ -463,7 +506,6 @@ class MLA_Polylang {
463
  */
464
  public static function mla_get_shortcode_attachments_final_terms( $arguments, $return_found_rows ) {
465
  $arguments['lang'] = 'all';
466
- //error_log( __LINE__ . ' MLA_Polylang::mla_get_shortcode_attachments_final_terms $arguments = ' . var_export( $arguments, true ), 0 );
467
  return $arguments;
468
  }
469
 
@@ -480,7 +522,6 @@ class MLA_Polylang {
480
  * @param mixed Attachment ID or NULL, depending on scope
481
  */
482
  public static function mla_begin_mapping( $source, $post_id = NULL ) {
483
- //error_log( __LINE__ . " mla_begin_mapping( {$source} ) ", 0 );
484
  if ( in_array( $source, array( 'create_metadata', 'single_iptc_exif', 'iptc_exif_standard', 'iptc_exif_taxonomy', 'iptc_exif_custom', 'iptc_exif_custom_rule' ) ) ) {
485
  add_filter( 'mla_get_shortcode_attachments_final_terms', 'MLA_Polylang::mla_get_shortcode_attachments_final_terms', 10, 2 );
486
  add_filter( 'mla_mapping_rule', 'MLA_Polylang::mla_mapping_rule', 10, 4 );
@@ -533,22 +574,19 @@ class MLA_Polylang {
533
 
534
  if ( is_null( $replicate ) ) {
535
  $replicate = ( 'checked' == MLACore::mla_get_option( 'term_mapping_replication', false, false, MLA_Polylang::$mla_language_option_definitions ) );
536
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $replicate = ' . var_export( $replicate, true ), 0 );
537
 
538
  if ( $polylang->curlang ) {
539
  $current_language = $polylang->curlang->slug;
540
  } else {
541
  $current_language = pll_default_language();
542
  }
543
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $current_language = ' . var_export( $current_language, true ), 0 );
544
  $taxonomies = array();
545
  foreach( $polylang->model->get_translated_taxonomies() as $taxonomy ) {
546
  if ( MLACore::mla_taxonomy_support($taxonomy, 'support') ) {
547
  $taxonomies[ $taxonomy ] = $taxonomy;
548
  }
549
  }
550
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $category = ' . var_export( $category, true ), 0 );
551
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $taxonomies = ' . var_export( $taxonomies, true ), 0 );
552
 
553
  $other_languages = array();
554
  foreach( $polylang->model->get_languages_list() as $item_language ) {
@@ -556,18 +594,16 @@ class MLA_Polylang {
556
  $other_languages[ $item_language->slug ] = $item_language;
557
  }
558
  }
559
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $other_languages = ' . var_export( $other_languages, true ), 0 );
560
  }
561
 
562
  if ( ( ! empty( $new_text ) ) && in_array( $setting_key, $taxonomies ) ) {
563
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text mapping rule = ' . var_export( self::$current_mapping_rule, true ), 0 );
564
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $new_text = ' . var_export( $new_text, true ), 0 );
565
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $setting_key = ' . var_export( $setting_key, true ), 0 );
566
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $post_id = ' . var_export( $post_id, true ), 0 );
567
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $attachment_metadata = ' . var_export( $attachment_metadata, true ), 0 );
568
- $language_details = $polylang->model->get_post_language( $post_id );
569
  $item_language = $language_details->slug;
570
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $language_details = ' . var_export( $language_details, true ), 0 );
571
 
572
  /*
573
  * Find the parent term and its translations
@@ -580,12 +616,9 @@ class MLA_Polylang {
580
  $parent_term = 0;
581
  }
582
 
583
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $parent_term = ' . var_export( $parent_term, true ), 0 );
584
-
585
  $new_terms = array();
586
  foreach( $new_text as $new_name ) {
587
  $relevant_term = self::_get_relevant_term( 'name', $new_name, $setting_key );
588
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $relevant_term = ' . var_export( $relevant_term, true ), 0 );
589
 
590
  if ( $relevant_term ) {
591
  if ( isset( $relevant_term['translations'][ $item_language ] ) ) {
@@ -600,10 +633,8 @@ class MLA_Polylang {
600
  } else {
601
  $parent = 0;
602
  }
603
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $parent = ' . var_export( $parent, true ), 0 );
604
 
605
  $res = wp_insert_term( $new_name, $setting_key, array( 'parent' => $parent ) );
606
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $res = ' . var_export( $res, true ), 0 );
607
  if ( ( ! is_wp_error( $res ) ) && isset( $res['term_id'] ) ) {
608
  $polylang->model->set_term_language( $res['term_id'], $current_language );
609
  }
@@ -620,14 +651,12 @@ class MLA_Polylang {
620
  } else {
621
  $parent = 0;
622
  }
623
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $parent = ' . var_export( $parent, true ), 0 );
624
 
625
  // save_language() does a check_admin_referer() security test
626
  $_REQUEST['_pll_nonce'] = wp_create_nonce( 'pll_language' );
627
  $_POST['term_lang_choice'] = $language;
628
  $_POST['action'] = 'mla';
629
  $res = wp_insert_term( $new_name, $setting_key, array( 'parent' => $parent ) );
630
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $res = ' . var_export( $res, true ), 0 );
631
  if ( ( ! is_wp_error( $res ) ) && isset( $res['term_id'] ) ) {
632
  $polylang->model->set_term_language( $res['term_id'], $language );
633
  $translations[ $language ] = $res['term_id'];
@@ -638,7 +667,11 @@ class MLA_Polylang {
638
  unset( $_POST['action'] );
639
 
640
  if ( ! empty( $translations ) ) {
641
- $polylang->model->save_translations( 'term', $source_term, $translations);
 
 
 
 
642
  }
643
  } // replicate
644
 
@@ -646,7 +679,6 @@ class MLA_Polylang {
646
  * Reload the term with all of its new translations
647
  */
648
  $relevant_term = self::_get_relevant_term( 'name', $new_name, $setting_key );
649
- //error_log( __LINE__ . ' MLA_Polylang::mla_mapping_new_text $relevant_term = ' . var_export( $relevant_term, true ), 0 );
650
  if ( isset( $relevant_term['translations'][ $item_language ] ) ) {
651
  $new_terms[] = absint( $relevant_term['translations'][ $item_language ]->element_id );
652
  }
@@ -701,8 +733,14 @@ class MLA_Polylang {
701
 
702
  if ( ! array_key_exists( $term->term_taxonomy_id, self::$relevant_terms ) ) {
703
  if ( empty( $translations ) ) {
 
 
 
 
 
 
704
  $translations = array();
705
- foreach ( $polylang->model->get_translations( 'term', $term->term_id ) as $language_code => $translation ) {
706
  $translations[ $language_code ] = (object) array( 'element_id' => $translation );
707
  }
708
 
@@ -836,8 +874,15 @@ class MLA_Polylang {
836
  return;
837
  }
838
 
839
- $language_details = $polylang->model->get_post_language( $post_id );
840
- MLACore::mla_debug_add( __LINE__ . " MLA_Polylang::_build_existing_terms( {$post_id} ) \$polylang->model->get_post_language = " . var_export( $language_details, true ), MLACore::MLA_DEBUG_CATEGORY_AJAX );
 
 
 
 
 
 
 
841
 
842
  if ( is_object( $language_details ) ) {
843
  $language_details = (array) $language_details;
@@ -847,9 +892,9 @@ class MLA_Polylang {
847
  MLACore::mla_debug_add( __LINE__ . " MLA_Polylang::_build_existing_terms( {$post_id} ) \$polylang->model->get_language( pll_default_language() ) = " . var_export( $language_details, true ), MLACore::MLA_DEBUG_CATEGORY_AJAX );
848
  }
849
 
850
- MLACore::mla_debug_add( __LINE__ . " MLA_Polylang::_build_existing_terms( {$post_id} ) \$polylang->model->get_translations() = " . var_export( $polylang->model->get_translations( 'post', $post_id ), true ), MLACore::MLA_DEBUG_CATEGORY_AJAX );
851
  $translations = array();
852
- foreach ( $polylang->model->get_translations( 'post', $post_id ) as $language_code => $translation ) {
853
  $translations[ $language_code ] = array( 'element_id' => $translation );
854
  }
855
 
@@ -1126,7 +1171,12 @@ class MLA_Polylang {
1126
  if ( isset( self::$existing_terms['element_id'] ) && $post_id == self::$existing_terms['element_id'] ) {
1127
  $post_language = self::$existing_terms['slug'];
1128
  } else {
1129
- $post_language = $polylang->model->get_post_language( $post_id );
 
 
 
 
 
1130
  $post_language = $post_language->slug;
1131
  }
1132
  }
@@ -1550,7 +1600,11 @@ class MLA_Polylang {
1550
 
1551
  // Language dropdown in Quick Edit area
1552
  if ( isset( $_REQUEST['inline_lang_choice'] ) ) {
1553
- $translations = $polylang->model->get_translations( 'post', $post_id );
 
 
 
 
1554
 
1555
  if ( ! array_key_exists( $_REQUEST['inline_lang_choice'], $translations ) ) {
1556
  $post = get_post( $post_id );
@@ -1788,6 +1842,7 @@ class MLA_Polylang {
1788
  global $polylang;
1789
 
1790
  // Find the first "language" column slug
 
1791
  foreach ( $polylang->filters_columns->model->get_languages_list() as $language) {
1792
  if ( empty($polylang->filters_columns->curlang) || $language->slug != $polylang->filters_columns->curlang->slug) {
1793
  $language_column = 'language_'.$language->slug;
@@ -1799,7 +1854,12 @@ class MLA_Polylang {
1799
  ob_start();
1800
  do_action( 'quick_edit_custom_box', $language_column, 'attachment' );
1801
  $value = ob_get_clean();
1802
-
 
 
 
 
 
1803
  // Strip off <fieldset> and <div> tags around the <input> and <label> tags
1804
  preg_match('/\<input|\<label/', $value, $match_start, PREG_OFFSET_CAPTURE );
1805
  preg_match('/\<\/label[^\>]*\>/', $value, $match_end, PREG_OFFSET_CAPTURE );
@@ -2007,7 +2067,12 @@ class MLA_Polylang {
2007
  static $languages = NULL, $current_language;
2008
 
2009
  if ( 'language' == $column_name ) {
2010
- $item_language = $polylang->model->get_post_language( $item->ID );
 
 
 
 
 
2011
  $content = is_object( $item_language ) ? $item_language->name : 'none';
2012
  } elseif ('pll_translations' == $column_name ) {
2013
  if ( is_null( $languages ) ) {
@@ -2190,8 +2255,13 @@ class MLA_Polylang {
2190
  global $polylang;
2191
 
2192
  $item_id = $item->ID;
2193
- $old_lang = $polylang->model->get_post_language( $item_id );
2194
- $translations = $polylang->model->get_translations( 'post', $item_id );
 
 
 
 
 
2195
 
2196
  if ( isset( $old_lang->slug ) ) {
2197
  $old_lang = $old_lang->slug;
25
  */
26
  const MLA_PLL_QUICK_TRANSLATE = 'mla-polylang-quick-translate';
27
 
28
+ /**
29
+ * Polylang version conditional to avoid deprecated functions in v1.8+
30
+ *
31
+ * @since 2.30
32
+ *
33
+ * @var boolean
34
+ */
35
+ private static $polylang_1dot8_plus = false;
36
+
37
  /**
38
  * Initialization function, similar to __construct()
39
  *
42
  * @return void
43
  */
44
  public static function initialize() {
45
+ self::$polylang_1dot8_plus = version_compare( POLYLANG_VERSION, '1.7.99', '>' );
46
+
47
  /*
48
  * The remaining filters are only useful for the admin section;
49
  * exit in the front-end posts/pages
231
  /*
232
  * Get the existing translations, if any
233
  */
234
+ if ( self::$polylang_1dot8_plus ) {
235
+ $lang = PLL()->model->post->get_language( $post_id );
236
+ $translations = PLL()->model->post->get_translations( $post_id );
237
+ } else {
238
+ $lang = $polylang->model->get_post_language( $post_id );
239
+ $translations = $polylang->model->get_translations( 'post', $post_id );
240
+ }
241
+
242
+ if ( ! $translations && $lang ) {
243
  $translations[ $lang->slug ] = $post_id;
244
  }
245
 
253
  */
254
  $post = get_post( $post_id );
255
  $post->ID = NULL; // will force the creation
256
+ if ( self::$polylang_1dot8_plus ) {
257
+ $tr_parent = PLL()->model->post->get_translation( $post->post_parent, $new_language );
258
+ } else {
259
+ $tr_parent = $polylang->model->get_translation( 'post', $post->post_parent, $new_language );
260
+ }
261
+
262
+ $post->post_parent = ( $post->post_parent && $tr_parent ) ? $tr_parent : 0;
263
  $new_id = wp_insert_attachment( $post );
264
  add_post_meta( $new_id, '_wp_attachment_metadata', get_post_meta( $post_id, '_wp_attachment_metadata', true ) );
265
  add_post_meta( $new_id, '_wp_attached_file', get_post_meta( $post_id, '_wp_attached_file', true ) );
281
 
282
  $polylang->model->set_post_language($new_id, $new_language);
283
 
284
+ if ( self::$polylang_1dot8_plus ) {
285
+ $lang = PLL()->model->post->get_language( $post_id );
286
+ $translations = PLL()->model->post->get_translations( $post_id );
287
+ } else {
288
+ $lang = $polylang->model->get_post_language( $post_id );
289
+ $translations = $polylang->model->get_translations( 'post', $post_id );
290
+ }
291
+
292
+ if ( ! $translations && $lang )
293
  $translations[ $lang->slug ] = $post_id;
294
 
295
  $translations[ $new_language ] = $new_id;
296
+ if ( self::$polylang_1dot8_plus ) {
297
+ PLL()->model->post->save_translations( $new_id, $translations );
298
+ } else {
299
+ $polylang->model->save_translations( 'post', $new_id, $translations );
300
+ }
301
  } // add new translation
302
 
303
  return (integer) $new_id;
339
 
340
  // Language dropdown in Quick Edit area
341
  if ( isset( $_REQUEST['inline_lang_choice'] ) ) {
342
+ if ( self::$polylang_1dot8_plus ) {
343
+ $translations = PLL()->model->post->get_translations( $post_id );
344
+ } else {
345
+ $translations = $polylang->model->get_translations( 'post', $post_id );
346
+ }
347
 
348
  if ( ! array_key_exists( $_REQUEST['inline_lang_choice'], $translations ) ) {
349
  $post = get_post( $post_id );
374
  }
375
 
376
  // Create an instance of our package class and echo the new HTML for all translations
377
+ if ( self::$polylang_1dot8_plus ) {
378
+ $translations = PLL()->model->post->get_translations( $post_id );
379
+ } else {
380
+ $translations = $polylang->model->get_translations( 'post', $post_id );
381
+ }
382
 
383
  $MLAListTable = new MLA_List_Table();
384
  $new_item = (object) MLAData::mla_get_attachment_by_id( $new_id );
413
  return;
414
  }
415
 
416
+ wp_register_style( 'mla-polylang-support', MLA_PLUGIN_URL . 'css/mla-polylang-support.css', false, MLACore::CURRENT_MLA_VERSION );
417
  wp_enqueue_style( 'mla-polylang-support' );
418
 
419
  wp_enqueue_script( 'mla-polylang-support-scripts', MLA_PLUGIN_URL . "js/mla-polylang-support-scripts{$suffix}.js",
420
+ array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
421
 
422
  // For Quick and Bulk Translate
423
  $fields = array( 'old_lang', 'inline_lang_choice', 'inline_translations' );
506
  */
507
  public static function mla_get_shortcode_attachments_final_terms( $arguments, $return_found_rows ) {
508
  $arguments['lang'] = 'all';
 
509
  return $arguments;
510
  }
511
 
522
  * @param mixed Attachment ID or NULL, depending on scope
523
  */
524
  public static function mla_begin_mapping( $source, $post_id = NULL ) {
 
525
  if ( in_array( $source, array( 'create_metadata', 'single_iptc_exif', 'iptc_exif_standard', 'iptc_exif_taxonomy', 'iptc_exif_custom', 'iptc_exif_custom_rule' ) ) ) {
526
  add_filter( 'mla_get_shortcode_attachments_final_terms', 'MLA_Polylang::mla_get_shortcode_attachments_final_terms', 10, 2 );
527
  add_filter( 'mla_mapping_rule', 'MLA_Polylang::mla_mapping_rule', 10, 4 );
574
 
575
  if ( is_null( $replicate ) ) {
576
  $replicate = ( 'checked' == MLACore::mla_get_option( 'term_mapping_replication', false, false, MLA_Polylang::$mla_language_option_definitions ) );
 
577
 
578
  if ( $polylang->curlang ) {
579
  $current_language = $polylang->curlang->slug;
580
  } else {
581
  $current_language = pll_default_language();
582
  }
583
+
584
  $taxonomies = array();
585
  foreach( $polylang->model->get_translated_taxonomies() as $taxonomy ) {
586
  if ( MLACore::mla_taxonomy_support($taxonomy, 'support') ) {
587
  $taxonomies[ $taxonomy ] = $taxonomy;
588
  }
589
  }
 
 
590
 
591
  $other_languages = array();
592
  foreach( $polylang->model->get_languages_list() as $item_language ) {
594
  $other_languages[ $item_language->slug ] = $item_language;
595
  }
596
  }
 
597
  }
598
 
599
  if ( ( ! empty( $new_text ) ) && in_array( $setting_key, $taxonomies ) ) {
600
+ if ( self::$polylang_1dot8_plus ) {
601
+ $language_details = PLL()->model->post->get_language( $post_id );
602
+ } else {
603
+ $language_details = $polylang->model->get_post_language( $post_id );
604
+ }
605
+
606
  $item_language = $language_details->slug;
 
607
 
608
  /*
609
  * Find the parent term and its translations
616
  $parent_term = 0;
617
  }
618
 
 
 
619
  $new_terms = array();
620
  foreach( $new_text as $new_name ) {
621
  $relevant_term = self::_get_relevant_term( 'name', $new_name, $setting_key );
 
622
 
623
  if ( $relevant_term ) {
624
  if ( isset( $relevant_term['translations'][ $item_language ] ) ) {
633
  } else {
634
  $parent = 0;
635
  }
 
636
 
637
  $res = wp_insert_term( $new_name, $setting_key, array( 'parent' => $parent ) );
 
638
  if ( ( ! is_wp_error( $res ) ) && isset( $res['term_id'] ) ) {
639
  $polylang->model->set_term_language( $res['term_id'], $current_language );
640
  }
651
  } else {
652
  $parent = 0;
653
  }
 
654
 
655
  // save_language() does a check_admin_referer() security test
656
  $_REQUEST['_pll_nonce'] = wp_create_nonce( 'pll_language' );
657
  $_POST['term_lang_choice'] = $language;
658
  $_POST['action'] = 'mla';
659
  $res = wp_insert_term( $new_name, $setting_key, array( 'parent' => $parent ) );
 
660
  if ( ( ! is_wp_error( $res ) ) && isset( $res['term_id'] ) ) {
661
  $polylang->model->set_term_language( $res['term_id'], $language );
662
  $translations[ $language ] = $res['term_id'];
667
  unset( $_POST['action'] );
668
 
669
  if ( ! empty( $translations ) ) {
670
+ if ( self::$polylang_1dot8_plus ) {
671
+ PLL()->model->term->save_translations( $source_term, $translations );
672
+ } else {
673
+ $polylang->model->save_translations( 'term', $source_term, $translations );
674
+ }
675
  }
676
  } // replicate
677
 
679
  * Reload the term with all of its new translations
680
  */
681
  $relevant_term = self::_get_relevant_term( 'name', $new_name, $setting_key );
 
682
  if ( isset( $relevant_term['translations'][ $item_language ] ) ) {
683
  $new_terms[] = absint( $relevant_term['translations'][ $item_language ]->element_id );
684
  }
733
 
734
  if ( ! array_key_exists( $term->term_taxonomy_id, self::$relevant_terms ) ) {
735
  if ( empty( $translations ) ) {
736
+ if ( self::$polylang_1dot8_plus ) {
737
+ $term_translations = PLL()->model->term->get_translations( $term->term_id );
738
+ } else {
739
+ $term_translations = $polylang->model->get_translations( 'term', $term->term_id );
740
+ }
741
+
742
  $translations = array();
743
+ foreach ( $term_translations as $language_code => $translation ) {
744
  $translations[ $language_code ] = (object) array( 'element_id' => $translation );
745
  }
746
 
874
  return;
875
  }
876
 
877
+ if ( self::$polylang_1dot8_plus ) {
878
+ $language_details = PLL()->model->post->get_language( $post_id );
879
+ $post_translations = PLL()->model->post->get_translations( $post_id );
880
+ } else {
881
+ $language_details = $polylang->model->get_post_language( $post_id );
882
+ $post_translations = $polylang->model->get_translations( 'post', $post_id );
883
+ }
884
+
885
+ MLACore::mla_debug_add( __LINE__ . " MLA_Polylang::_build_existing_terms( {$post_id} ) \$language_details = " . var_export( $language_details, true ), MLACore::MLA_DEBUG_CATEGORY_AJAX );
886
 
887
  if ( is_object( $language_details ) ) {
888
  $language_details = (array) $language_details;
892
  MLACore::mla_debug_add( __LINE__ . " MLA_Polylang::_build_existing_terms( {$post_id} ) \$polylang->model->get_language( pll_default_language() ) = " . var_export( $language_details, true ), MLACore::MLA_DEBUG_CATEGORY_AJAX );
893
  }
894
 
895
+ MLACore::mla_debug_add( __LINE__ . " MLA_Polylang::_build_existing_terms( {$post_id} ) \$post_translations = " . var_export( $post_translations, true ), MLACore::MLA_DEBUG_CATEGORY_AJAX );
896
  $translations = array();
897
+ foreach ( $post_translations as $language_code => $translation ) {
898
  $translations[ $language_code ] = array( 'element_id' => $translation );
899
  }
900
 
1171
  if ( isset( self::$existing_terms['element_id'] ) && $post_id == self::$existing_terms['element_id'] ) {
1172
  $post_language = self::$existing_terms['slug'];
1173
  } else {
1174
+ if ( self::$polylang_1dot8_plus ) {
1175
+ $post_language = PLL()->model->post->get_language( $post_id );
1176
+ } else {
1177
+ $post_language = $polylang->model->get_post_language( $post_id );
1178
+ }
1179
+
1180
  $post_language = $post_language->slug;
1181
  }
1182
  }
1600
 
1601
  // Language dropdown in Quick Edit area
1602
  if ( isset( $_REQUEST['inline_lang_choice'] ) ) {
1603
+ if ( self::$polylang_1dot8_plus ) {
1604
+ $translations = PLL()->model->post->get_translations( $post_id );
1605
+ } else {
1606
+ $translations = $polylang->model->get_translations( 'post', $post_id );
1607
+ }
1608
 
1609
  if ( ! array_key_exists( $_REQUEST['inline_lang_choice'], $translations ) ) {
1610
  $post = get_post( $post_id );
1842
  global $polylang;
1843
 
1844
  // Find the first "language" column slug
1845
+ $language_column = '';
1846
  foreach ( $polylang->filters_columns->model->get_languages_list() as $language) {
1847
  if ( empty($polylang->filters_columns->curlang) || $language->slug != $polylang->filters_columns->curlang->slug) {
1848
  $language_column = 'language_'.$language->slug;
1854
  ob_start();
1855
  do_action( 'quick_edit_custom_box', $language_column, 'attachment' );
1856
  $value = ob_get_clean();
1857
+ if ( empty( $value ) ) {
1858
+ MLACore::mla_debug_add( __LINE__ . ' MLA_Polylang::mla_list_table_inline_values language_column = ' . var_export( $language_column, true ), MLACore::MLA_DEBUG_CATEGORY_ANY );
1859
+ MLACore::mla_debug_add( __LINE__ . ' MLA_Polylang::mla_list_table_inline_values $polylang->filters_columns->curlang = ' . var_export( $polylang->filters_columns->curlang, true ), MLACore::MLA_DEBUG_CATEGORY_ANY );
1860
+ MLACore::mla_debug_add( __LINE__ . ' MLA_Polylang::mla_list_table_inline_values $polylang->filters_columns->model->get_languages_list() = ' . var_export( $polylang->filters_columns->model->get_languages_list(), true ), MLACore::MLA_DEBUG_CATEGORY_ANY );
1861
+ }
1862
+
1863
  // Strip off <fieldset> and <div> tags around the <input> and <label> tags
1864
  preg_match('/\<input|\<label/', $value, $match_start, PREG_OFFSET_CAPTURE );
1865
  preg_match('/\<\/label[^\>]*\>/', $value, $match_end, PREG_OFFSET_CAPTURE );
2067
  static $languages = NULL, $current_language;
2068
 
2069
  if ( 'language' == $column_name ) {
2070
+ if ( self::$polylang_1dot8_plus ) {
2071
+ $item_language = PLL()->model->post->get_language( $item->ID );
2072
+ } else {
2073
+ $item_language = $polylang->model->get_post_language( $item->ID );
2074
+ }
2075
+
2076
  $content = is_object( $item_language ) ? $item_language->name : 'none';
2077
  } elseif ('pll_translations' == $column_name ) {
2078
  if ( is_null( $languages ) ) {
2255
  global $polylang;
2256
 
2257
  $item_id = $item->ID;
2258
+ if ( self::$polylang_1dot8_plus ) {
2259
+ $old_lang = PLL()->model->post->get_language( $item_id );
2260
+ $translations = PLL()->model->post->get_translations( $item_id );
2261
+ } else {
2262
+ $old_lang = $polylang->model->get_post_language( $item_id );
2263
+ $translations = $polylang->model->get_translations( 'post', $item_id );
2264
+ }
2265
 
2266
  if ( isset( $old_lang->slug ) ) {
2267
  $old_lang = $old_lang->slug;
includes/class-mla-settings.php CHANGED
@@ -238,7 +238,7 @@ class MLASettings {
238
  MLACore::mla_update_option( 'iptc_exif_mapping', $option_value );
239
  } // version is less than 2.13
240
 
241
- MLACore::mla_update_option( MLACoreOptions::MLA_VERSION_OPTION, MLA::CURRENT_MLA_VERSION );
242
  }
243
 
244
  /**
@@ -347,12 +347,12 @@ class MLASettings {
347
  }
348
 
349
  if ( $wp_locale->is_rtl() ) {
350
- wp_register_style( MLA::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, MLA::CURRENT_MLA_VERSION );
351
  } else {
352
- wp_register_style( MLA::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLA::CURRENT_MLA_VERSION );
353
  }
354
 
355
- wp_enqueue_style( MLA::STYLESHEET_SLUG );
356
 
357
  /*
358
  * Initialize common script variables
@@ -393,7 +393,7 @@ class MLASettings {
393
  case 'view':
394
  wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG,
395
  MLA_PLUGIN_URL . "js/mla-inline-edit-view-scripts{$suffix}.js",
396
- array( 'wp-lists', 'suggest', 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
397
 
398
  $script_variables['fields'] = array( 'original_slug', 'slug', 'singular', 'plural', 'specification', 'menu_order' );
399
  $script_variables['checkboxes'] = array( 'post_mime_type', 'table_view' );
@@ -405,7 +405,7 @@ class MLASettings {
405
  case 'upload':
406
  wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG,
407
  MLA_PLUGIN_URL . "js/mla-inline-edit-upload-scripts{$suffix}.js",
408
- array( 'wp-lists', 'suggest', 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
409
 
410
  $script_variables['fields'] = array( 'original_slug', 'slug', 'mime_type', 'icon_type', 'core_type', 'mla_type', 'source', 'standard_source' );
411
  $script_variables['checkboxes'] = array( 'disabled' );
@@ -417,7 +417,7 @@ class MLASettings {
417
  case 'custom_field':
418
  wp_enqueue_script( self::JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG,
419
  MLA_PLUGIN_URL . "js/mla-inline-mapping-scripts{$suffix}.js",
420
- array( 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
421
 
422
  $tab_variables = array(
423
  'page' => 'mla-settings-menu-custom_field',
@@ -436,7 +436,7 @@ class MLASettings {
436
  case 'iptc_exif':
437
  wp_enqueue_script( self::JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG,
438
  MLA_PLUGIN_URL . "js/mla-inline-mapping-scripts{$suffix}.js",
439
- array( 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
440
 
441
  $tab_variables = array(
442
  'page' => 'mla-settings-menu-iptc_exif',
@@ -729,6 +729,7 @@ class MLASettings {
729
  * @return void echo json response object, then die()
730
  */
731
  public static function mla_inline_mapping_custom_action() {
 
732
  set_current_screen( $_REQUEST['screen'] );
733
  check_ajax_referer( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME );
734
 
@@ -841,6 +842,7 @@ class MLASettings {
841
  'refresh' => isset( $page_content['refresh'] ) && true == $page_content['refresh'],
842
  );
843
 
 
844
  wp_send_json_success( $chunk_results );
845
  }
846
 
@@ -852,6 +854,7 @@ class MLASettings {
852
  * @return void echo json response object, then die()
853
  */
854
  public static function mla_inline_mapping_iptc_exif_action() {
 
855
  set_current_screen( $_REQUEST['screen'] );
856
  check_ajax_referer( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME );
857
 
@@ -975,6 +978,7 @@ class MLASettings {
975
  'refresh' => isset( $page_content['refresh'] ) && true == $page_content['refresh'],
976
  );
977
 
 
978
  wp_send_json_success( $chunk_results );
979
  }
980
 
@@ -1137,6 +1141,7 @@ class MLASettings {
1137
  case 'subheader':
1138
  $option_values = array(
1139
  'Go to Top' => __( 'Go to Top', 'media-library-assistant' ),
 
1140
  'key' => MLA_OPTION_PREFIX . $key,
1141
  'value' => $value['name']
1142
  );
@@ -1290,7 +1295,7 @@ class MLASettings {
1290
  'general' => array( 'title' => __ ( 'General', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_general_tab' ) ),
1291
  'view' => array( 'title' => __ ( 'Views', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_view_tab' ) ),
1292
  'upload' => array( 'title' => __ ( 'Uploads', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_upload_tab' ) ),
1293
- 'mla_gallery' => array( 'title' => __ ( 'MLA Gallery', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_mla_gallery_tab' ) ),
1294
  'custom_field' => array( 'title' => __ ( 'Custom Fields', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_custom_field_tab' ) ),
1295
  'iptc_exif' => array( 'title' => 'IPTC/EXIF', 'render' => array( 'MLASettings', '_compose_iptc_exif_tab' ) ),
1296
  'documentation' => array( 'title' => __ ( 'Documentation', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_documentation_tab' ) ),
@@ -1403,6 +1408,7 @@ class MLASettings {
1403
  '_wpnonce' => wp_nonce_field( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME, true, false ),
1404
  '_wp_http_referer' => wp_referer_field( false ),
1405
  'Go to Top' => __( 'Go to Top', 'media-library-assistant' ),
 
1406
  'Support Our Work' => __( 'Support Our Work', 'media-library-assistant' ),
1407
  'Donate to FTJ' => __( 'Donate to FTJ', 'media-library-assistant' ),
1408
  'Donate' => __( 'Donate', 'media-library-assistant' ),
@@ -1426,9 +1432,9 @@ class MLASettings {
1426
  */
1427
  $shortcodes = array(
1428
  // array("name" => "shortcode", "description" => "This shortcode...")
1429
- // array( 'name' => 'mla_attachment_list', 'description' => __( 'renders a complete list of all attachments and references to them.', 'media-library-assistant' ) ),
1430
  array( 'name' => 'mla_gallery', 'description' => __( 'enhanced version of the WordPress [gallery] shortcode.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . MLACoreOptions::MLA_SETTINGS_SLUG . '-documentation&amp;mla_tab=documentation#mla_gallery' ), __( 'click here', 'media-library-assistant' ) ) ),
1431
- array( 'name' => 'mla_tag_cloud', 'description' => __( 'enhanced version of the WordPress Tag Cloud.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . MLACoreOptions::MLA_SETTINGS_SLUG . '-documentation&amp;mla_tab=documentation#mla_tag_cloud' ), __( 'click here', 'media-library-assistant' ) ) )
 
1432
  );
1433
 
1434
  $shortcode_list = '';
@@ -2349,49 +2355,53 @@ class MLASettings {
2349
  return $page_content;
2350
  }
2351
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2352
  $page_values = array(
2353
- 'MLA Gallery Options' => __( 'MLA Gallery Options', 'media-library-assistant' ),
2354
- 'Go to Style Templates' => __( 'Go to Style Templates', 'media-library-assistant' ),
2355
- 'Go to Markup Templates' => __( 'Go to Markup Templates', 'media-library-assistant' ),
2356
  'In this tab' => __( 'In this tab you can view the default style and markup templates. You can also define additional templates and use the <code>mla_style</code> and <code>mla_markup</code> parameters to apply them in your <code>[mla_gallery]</code> shortcodes. <strong>NOTE:</strong> template additions and changes will not be made permanent until you click "Save Changes" at the bottom of this page.', 'media-library-assistant' ),
2357
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-mla_gallery&mla_tab=mla_gallery',
2358
  'options_list' => '',
2359
  'Go to Top' => __( 'Go to Top', 'media-library-assistant' ),
2360
- 'Style Templates' => __( 'Style Templates', 'media-library-assistant' ),
2361
- 'style_options_list' => '',
2362
- 'Markup Templates' => __( 'Markup Templates', 'media-library-assistant' ),
2363
- 'markup_options_list' => '',
2364
  'Save Changes' => __( 'Save Changes', 'media-library-assistant' ),
2365
  '_wpnonce' => wp_nonce_field( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME, true, false ),
2366
  '_wp_http_referer' => wp_referer_field( false )
2367
  );
2368
 
2369
  /*
2370
- * Build default template selection lists; leave out the [mla_tag_cloud] templates
2371
  */
2372
  MLACoreOptions::$mla_option_definitions['default_style']['options'][] = 'none';
2373
  MLACoreOptions::$mla_option_definitions['default_style']['texts'][] = '&mdash; ' . __( 'None', 'media-library-assistant' ) . ' &mdash;';
2374
  MLACoreOptions::$mla_option_definitions['default_style']['options'][] = 'theme';
2375
  MLACoreOptions::$mla_option_definitions['default_style']['texts'][] = '&mdash; ' . __( 'Theme', 'media-library-assistant' ) . ' &mdash;';
2376
 
2377
- $templates = MLAOptions::mla_get_style_templates();
2378
  ksort($templates);
2379
  foreach ($templates as $key => $value ) {
2380
- if ( 'tag-cloud' == $key ) {
2381
- continue;
2382
- }
2383
-
2384
  MLACoreOptions::$mla_option_definitions['default_style']['options'][] = $key;
2385
  MLACoreOptions::$mla_option_definitions['default_style']['texts'][] = $key;
2386
  }
2387
 
2388
- $templates = MLAOptions::mla_get_markup_templates();
2389
  ksort($templates);
2390
  foreach ($templates as $key => $value ) {
2391
- if ( in_array( $key, array( 'tag-cloud', 'tag-cloud-dl', 'tag-cloud-ul' ) ) ) {
2392
- continue;
2393
- }
2394
-
2395
  MLACoreOptions::$mla_option_definitions['default_markup']['options'][] = $key;
2396
  MLACoreOptions::$mla_option_definitions['default_markup']['texts'][] = $key;
2397
  }
@@ -2428,283 +2438,276 @@ class MLASettings {
2428
  $page_values['options_list'] = $options_list;
2429
 
2430
  /*
2431
- * Add style templates; defaults go first
2432
  */
2433
- $default_styles = array( 'default', 'tag-cloud' );
2434
- $style_options_list = '';
2435
- $templates = MLAOptions::mla_get_style_templates();
 
 
2436
 
2437
- foreach ( $default_styles as $default ) {
2438
- $name = $default;
2439
- $value =$templates[$default];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2440
  if ( ! empty( $value ) ) {
2441
  $template_values = array (
2442
- 'help' => __( 'This default template cannot be altered or deleted, but you can copy the styles.', 'media-library-assistant' )
2443
  );
2444
  $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-default'], $template_values );
2445
-
2446
  $template_values = array (
2447
  'Name' => __( 'Name', 'media-library-assistant' ),
2448
- 'name_name' => "mla_style_templates_name[{$default}]",
2449
- 'name_id' => "mla_style_templates_name_{$default}",
2450
- 'readonly' => 'readonly="readonly"',
2451
- 'name_text' => $default,
2452
  'control_cells' => $control_cells,
2453
- 'Styles' => __( 'Styles', 'media-library-assistant' ),
2454
- 'value_name' => "mla_style_templates_value[{$default}]",
2455
- 'value_id' => "mla_style_templates_value_{$default}",
2456
- 'value_text' => esc_textarea( $value ),
2457
- 'value_help' => __( 'List of substitution parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' )
2458
  );
2459
-
2460
  $style_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-style'], $template_values );
2461
  } // $value
2462
- } // foreach default
2463
-
2464
- foreach ( $templates as $name => $value ) {
2465
- $slug = sanitize_title( $name );
2466
-
2467
- if ( in_array( $name, $default_styles ) ) {
2468
- continue; // already handled above
2469
- }
2470
-
2471
- $template_values = array (
2472
- 'name' => 'mla_style_templates_delete[' . $slug . ']',
2473
- 'id' => 'mla_style_templates_delete_' . $slug,
2474
- 'value' => __( 'Delete this template', 'media-library-assistant' ),
2475
- 'help' => __( 'Check the box to delete this template when you press Update at the bottom of the page.', 'media-library-assistant' )
2476
- );
2477
- $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-delete'], $template_values );
2478
-
2479
- $template_values = array (
2480
- 'Name' => __( 'Name', 'media-library-assistant' ),
2481
- 'name_name' => 'mla_style_templates_name[' . $slug . ']',
2482
- 'name_id' => 'mla_style_templates_name_' . $slug,
2483
- 'readonly' => '',
2484
- 'name_text' => $slug,
2485
- 'control_cells' => $control_cells,
2486
- 'Styles' => __( 'Styles', 'media-library-assistant' ),
2487
- 'value_name' => 'mla_style_templates_value[' . $slug . ']',
2488
- 'value_id' => 'mla_style_templates_value_' . $slug,
2489
- 'value_text' => esc_textarea( $value ),
2490
- 'value_help' => __( 'List of substitution parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' )
2491
- );
2492
-
2493
- $style_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-style'], $template_values );
2494
- } // foreach $templates
2495
-
2496
- /*
2497
- * Add blank style template for additions
2498
- */
2499
- if ( ! empty( $value ) ) {
2500
- $template_values = array (
2501
- 'help' => __( 'Fill in a name and styles to add a new template.', 'media-library-assistant' )
2502
- );
2503
- $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-default'], $template_values );
2504
 
 
 
 
2505
  $template_values = array (
2506
- 'Name' => __( 'Name', 'media-library-assistant' ),
2507
- 'name_name' => 'mla_style_templates_name[blank]',
2508
- 'name_id' => 'mla_style_templates_name_blank',
2509
- 'readonly' => '',
2510
- 'name_text' => '',
2511
- 'control_cells' => $control_cells,
2512
- 'Styles' => __( 'Styles', 'media-library-assistant' ),
2513
- 'value_name' => 'mla_style_templates_value[blank]',
2514
- 'value_id' => 'mla_style_templates_value_blank',
2515
- 'value_text' => '',
2516
- 'value_help' => __( 'List of substitution parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' )
2517
  );
2518
 
2519
- $style_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-style'], $template_values );
2520
- } // $value
2521
-
2522
- $page_values['style_options_list'] = $style_options_list;
2523
 
2524
  /*
2525
  * Add markup templates; defaults go first
2526
  */
2527
- $default_markups = array( 'default', 'tag-cloud', 'tag-cloud-ul', 'tag-cloud-dl' );
2528
- $markup_options_list = '';
2529
- $templates = MLAOptions::mla_get_markup_templates();
 
 
 
 
 
 
 
 
 
2530
 
2531
- foreach ( $default_markups as $default ) {
2532
- $name = $default;
2533
- $value =$templates[$default];
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2534
  if ( ! empty( $value ) ) {
2535
  $template_values = array (
2536
- 'help' => __( 'This default template cannot be altered or deleted, but you can copy the markup.', 'media-library-assistant' )
2537
  );
2538
  $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-default'], $template_values );
2539
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2540
  $template_values = array (
2541
  'Name' => __( 'Name', 'media-library-assistant' ),
2542
- 'name_name' => "mla_markup_templates_name[{$default}]",
2543
- 'name_id' => "mla_markup_templates_name_{$default}",
2544
- 'readonly' => 'readonly="readonly"',
2545
- 'name_text' => $default,
2546
  'control_cells' => $control_cells,
2547
-
2548
- 'Arguments' => __( 'Arguments', 'media-library-assistant' ),
2549
- 'arguments_name' => "mla_markup_templates_arguments[{$default}]",
2550
- 'arguments_id' => "mla_markup_templates_arguments_{$default}",
2551
- 'arguments_text' => isset( $value['arguments'] ) ? esc_textarea( $value['arguments'] ) : '',
2552
- 'arguments_help' => __( 'Default shortcode parameter values.', 'media-library-assistant' ),
2553
-
2554
- 'Open' => __( 'Open', 'media-library-assistant' ),
2555
- 'open_name' => "mla_markup_templates_open[{$default}]",
2556
- 'open_id' => "mla_markup_templates_open_{$default}",
2557
- 'open_text' => isset( $value['open'] ) ? esc_textarea( $value['open'] ) : '',
2558
- 'open_help' => __( 'Markup for the beginning of the gallery. List of parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' ),
2559
-
2560
- 'Row' => __( 'Row', 'media-library-assistant' ),
2561
- 'row_open_name' => "mla_markup_templates_row_open[{$default}]",
2562
- 'row_open_id' => "mla_markup_templates_row_open_{$default}",
2563
- 'row_open_text' => isset( $value['row-open'] ) ? esc_textarea( $value['row-open'] ) : '',
2564
- 'row_open_help' => __( 'Markup for the beginning of each row in the gallery.', 'media-library-assistant' ),
2565
-
2566
- 'Item' => __( 'Item', 'media-library-assistant' ),
2567
- 'item_name' => "mla_markup_templates_item[{$default}]",
2568
- 'item_id' => "mla_markup_templates_item_{$default}",
2569
- 'item_text' => isset( $value['item'] ) ? esc_textarea( $value['item'] ) : '',
2570
- 'item_help' => __( 'Markup for each item/cell of the gallery.', 'media-library-assistant' ),
2571
-
2572
- 'Close' => __( 'Close', 'media-library-assistant' ),
2573
- 'row_close_name' => "mla_markup_templates_row_close[{$default}]",
2574
- 'row_close_id' => "mla_markup_templates_row_close_{$default}",
2575
- 'row_close_text' => isset( $value['row-close'] ) ? esc_textarea( $value['row-close'] ) : '',
2576
- 'row_close_help' => __( 'Markup for the end of each row in the gallery.', 'media-library-assistant' ),
2577
-
2578
- 'close_name' => "mla_markup_templates_close[{$default}]",
2579
- 'close_id' => "mla_markup_templates_close_{$default}",
2580
- 'close_text' => isset( $value['close'] ) ? esc_textarea( $value['close'] ) : '',
2581
- 'close_help' => __( 'Markup for the end of the gallery.', 'media-library-assistant' )
2582
  );
2583
-
2584
  $markup_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-markup'], $template_values );
2585
  } // $value
2586
- } // foreach default
2587
-
2588
- foreach ( $templates as $name => $value ) {
2589
- $slug = sanitize_title( $name );
2590
-
2591
- if ( in_array( $name, $default_markups ) ) {
2592
- continue; // already handled above
2593
- }
2594
-
2595
- $template_values = array (
2596
- 'name' => 'mla_markup_templates_delete[' . $slug . ']',
2597
- 'id' => 'mla_markup_templates_delete_' . $slug,
2598
- 'value' => __( 'Delete this template', 'media-library-assistant' ),
2599
- 'help' => __( 'Check the box to delete this template when you press Update at the bottom of the page.', 'media-library-assistant' )
2600
- );
2601
- $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-delete'], $template_values );
2602
-
2603
- $template_values = array (
2604
- 'Name' => __( 'Name', 'media-library-assistant' ),
2605
- 'name_name' => "mla_markup_templates_name[{$slug}]",
2606
- 'name_id' => "mla_markup_templates_name_{$slug}",
2607
- 'readonly' => '',
2608
- 'name_text' => $slug,
2609
- 'control_cells' => $control_cells,
2610
-
2611
- 'Arguments' => __( 'Arguments', 'media-library-assistant' ),
2612
- 'arguments_name' => "mla_markup_templates_arguments[{$slug}]",
2613
- 'arguments_id' => "mla_markup_templates_arguments_{$slug}",
2614
- 'arguments_text' => isset( $value['arguments'] ) ? esc_textarea( $value['arguments'] ) : '',
2615
- 'arguments_help' => __( 'Default shortcode parameter values.', 'media-library-assistant' ),
2616
-
2617
- 'Open' => __( 'Open', 'media-library-assistant' ),
2618
- 'open_name' => "mla_markup_templates_open[{$slug}]",
2619
- 'open_id' => "mla_markup_templates_open_{$slug}",
2620
- 'open_text' => isset( $value['open'] ) ? esc_textarea( $value['open'] ) : '',
2621
- 'open_help' => __( 'Markup for the beginning of the gallery. List of parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' ),
2622
-
2623
- 'Row' => __( 'Row', 'media-library-assistant' ),
2624
- 'row_open_name' => "mla_markup_templates_row_open[{$slug}]",
2625
- 'row_open_id' => "mla_markup_templates_row_open_{$slug}",
2626
- 'row_open_text' => isset( $value['row-open'] ) ? esc_textarea( $value['row-open'] ) : '',
2627
- 'row_open_help' => __( 'Markup for the beginning of each row.', 'media-library-assistant' ),
2628
-
2629
- 'Item' => __( 'Item', 'media-library-assistant' ),
2630
- 'item_name' => "mla_markup_templates_item[{$slug}]",
2631
- 'item_id' => "mla_markup_templates_item_{$slug}",
2632
- 'item_text' => isset( $value['item'] ) ? esc_textarea( $value['item'] ) : '',
2633
- 'item_help' => __( 'Markup for each item/cell.', 'media-library-assistant' ),
2634
-
2635
- 'Close' => __( 'Close', 'media-library-assistant' ),
2636
- 'row_close_name' => "mla_markup_templates_row_close[{$slug}]",
2637
- 'row_close_id' => "mla_markup_templates_row_close_{$slug}",
2638
- 'row_close_text' => isset( $value['row-close'] ) ? esc_textarea( $value['row-close'] ) : '',
2639
- 'row_close_help' => __( 'Markup for the end of each row.', 'media-library-assistant' ),
2640
-
2641
- 'close_name' => "mla_markup_templates_close[{$slug}]",
2642
- 'close_id' => "mla_markup_templates_close_{$slug}",
2643
- 'close_text' => isset( $value['close'] ) ? esc_textarea( $value['close'] ) : '',
2644
- 'close_help' => __( 'Markup for the end of the gallery.', 'media-library-assistant' )
2645
- );
2646
-
2647
- $markup_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-markup'], $template_values );
2648
- } // foreach $templates
2649
-
2650
- /*
2651
- * Add blank markup template for additions
2652
- */
2653
- if ( ! empty( $value ) ) {
2654
- $template_values = array (
2655
- 'help' => __( 'Fill in a name and markup to add a new template.', 'media-library-assistant' )
2656
- );
2657
- $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-default'], $template_values );
2658
 
 
 
 
2659
  $template_values = array (
2660
- 'Name' => __( 'Name', 'media-library-assistant' ),
2661
- 'name_name' => 'mla_markup_templates_name[blank]',
2662
- 'name_id' => 'mla_markup_templates_name_blank',
2663
- 'readonly' => '',
2664
- 'name_text' => '',
2665
- 'control_cells' => $control_cells,
2666
-
2667
- 'Arguments' => __( 'Arguments', 'media-library-assistant' ),
2668
- 'arguments_name' => 'mla_markup_templates_arguments[blank]',
2669
- 'arguments_id' => 'mla_markup_templates_arguments_blank',
2670
- 'arguments_text' => '',
2671
- 'arguments_help' => __( 'Default shortcode parameter values.', 'media-library-assistant' ),
2672
-
2673
- 'Open' => __( 'Open', 'media-library-assistant' ),
2674
- 'open_name' => 'mla_markup_templates_open[blank]',
2675
- 'open_id' => 'mla_markup_templates_open_blank',
2676
- 'open_text' => '',
2677
- 'open_help' => __( 'Markup for the beginning of the gallery. List of parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' ),
2678
-
2679
- 'Row' => __( 'Row', 'media-library-assistant' ),
2680
- 'row_open_name' => 'mla_markup_templates_row_open[blank]',
2681
- 'row_open_id' => 'mla_markup_templates_row_open_blank',
2682
- 'row_open_text' => '',
2683
- 'row_open_help' => __( 'Markup for the beginning of each row in the gallery.', 'media-library-assistant' ),
2684
-
2685
- 'Item' => __( 'Item', 'media-library-assistant' ),
2686
- 'item_name' => 'mla_markup_templates_item[blank]',
2687
- 'item_id' => 'mla_markup_templates_item_blank',
2688
- 'item_text' => '',
2689
- 'item_help' => __( 'Markup for each item/cell of the gallery.', 'media-library-assistant' ),
2690
-
2691
- 'Close' => __( 'Close', 'media-library-assistant' ),
2692
- 'row_close_name' => 'mla_markup_templates_row_close[blank]',
2693
- 'row_close_id' => 'mla_markup_templates_row_close_blank',
2694
- 'row_close_text' => '',
2695
- 'row_close_help' => __( 'Markup for the end of each row in the gallery.', 'media-library-assistant' ),
2696
-
2697
- 'close_name' => 'mla_markup_templates_close[blank]',
2698
- 'close_id' => 'mla_markup_templates_close_blank',
2699
- 'close_text' => '',
2700
- 'close_help' => __( 'Markup for the end of the gallery.', 'media-library-assistant' )
2701
-
2702
  );
2703
 
2704
- $markup_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-markup'], $template_values );
2705
- } // $value
2706
-
2707
- $page_values['markup_options_list'] = $markup_options_list;
2708
 
2709
  $page_content['body'] = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-tab'], $page_values );
2710
  return $page_content;
@@ -3284,7 +3287,7 @@ class MLASettings {
3284
  $page_values = array(
3285
  'Support Our Work' => __( 'Support Our Work', 'media-library-assistant' ),
3286
  'Donate' => __( 'Donate', 'media-library-assistant' ),
3287
- 'version' => 'v' . MLA::CURRENT_MLA_VERSION,
3288
  'development' => $development_version,
3289
  'messages' => '',
3290
  'tablist' => self::_compose_settings_tabs( $current_tab_slug ),
@@ -3379,8 +3382,10 @@ class MLASettings {
3379
 
3380
  /*
3381
  * Get the current style contents for comparison
 
 
3382
  */
3383
- $old_templates = MLAOptions::mla_get_style_templates();
3384
  $new_templates = array();
3385
  $new_names = $_REQUEST['mla_style_templates_name'];
3386
  $new_values = stripslashes_deep( $_REQUEST['mla_style_templates_value'] );
@@ -3389,74 +3394,84 @@ class MLASettings {
3389
  /*
3390
  * Build new style template array, noting changes
3391
  */
3392
- $default_styles = array( 'default', 'tag-cloud' );
3393
  $templates_changed = false;
3394
- foreach ( $new_names as $name => $new_name ) {
3395
- if ( in_array( $name, $default_styles ) ) {
3396
- continue;
3397
- }
3398
-
3399
- if ( array_key_exists( $name, $new_deletes ) ) {
3400
- /* translators: 1: template type 2: template name */
3401
- $message_list .= '<br>' . sprintf( _x( 'Deleting %1$s "%2$s".', 'message_list', 'media-library-assistant' ), __( 'Style Template', 'media-library-assistant' ), $name );
3402
- $templates_changed = true;
3403
- continue;
3404
- }
3405
-
3406
- $new_slug = sanitize_title( $new_name );
3407
- if ( 'blank' == $name ) {
3408
- if ( '' == $new_slug ) {
3409
- continue;
3410
- } elseif ( 'blank' == $new_slug ) {
3411
- /* translators: 1: ERROR tag 2: template name 3: template type */
3412
- $error_list .= '<br>' . sprintf( __( '%1$s: Reserved name "%2$s", new %3$s discarded.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $new_slug, __( 'Style Template', 'media-library-assistant' ) );
3413
  continue;
3414
  }
3415
 
3416
- if ( array_key_exists( $new_slug, $old_templates ) ) {
3417
- /* translators: 1: ERROR tag 2: template name 3: template type */
3418
- $error_list .= '<br>' . sprintf( __( '%1$s: Duplicate name "%2$s", new %3$s discarded.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $new_slug, __( 'Style Template', 'media-library-assistant' ) );
3419
- continue;
3420
- } else {
3421
  /* translators: 1: template type 2: template name */
3422
- $message_list .= '<br>' . sprintf( _x( 'Adding new %1$s "%2$s".', 'message_list', 'media-library-assistant' ), __( 'Style Template', 'media-library-assistant' ), $new_slug );
3423
  $templates_changed = true;
 
3424
  }
3425
- } // 'blank' - reserved name
3426
-
3427
- /*
3428
- * Handle name changes, check for duplicates
3429
- */
3430
- if ( '' == $new_slug ) {
3431
- /* translators: 1: ERROR tag 2: element name 3: old value */
3432
- $error_list .= '<br>' . sprintf( __( '%1$s: Blank %2$s, reverting to "%3$s".', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'style template name', 'media-library-assistant' ), $name );
3433
- $new_slug = $name;
3434
- }
3435
-
3436
- if ( $new_slug != $name ) {
3437
- if ( array_key_exists( $new_slug, $old_templates ) ) {
3438
- /* translators: 1: ERROR tag 2: element name 3: new value 4: old value */
3439
- $error_list .= '<br>' . sprintf( __( '%1$s: Duplicate new %2$s "%3$s", reverting to "%4$s".', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'style template name', 'media-library-assistant' ), $new_slug, $name );
 
 
 
 
 
 
 
 
 
 
 
 
 
3440
  $new_slug = $name;
3441
- } elseif ( 'blank' != $name ) {
3442
- /* translators: 1: element name 2: old_value 3: new_value */
3443
- $message_list .= '<br>' . sprintf( _x( 'Changing %1$s from "%2$s" to "%3$s"', 'message_list', 'media-library-assistant' ), __( 'style template name', 'media-library-assistant' ), $name, $new_slug );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3444
  $templates_changed = true;
3445
  }
3446
- } // name changed
3447
-
3448
- if ( ( 'blank' != $name ) && ( $new_values[ $name ] != $old_templates[ $name ] ) ) {
3449
- /* translators: 1: template type 2: template name */
3450
- $message_list .= '<br>' . sprintf( _x( 'Updating contents of %1$s "%2$s".', 'message_list', 'media-library-assistant' ), __( 'Style Template', 'media-library-assistant' ), $new_slug );
3451
- $templates_changed = true;
3452
- }
3453
-
3454
- $new_templates[ $new_slug ] = $new_values[ $name ];
3455
- } // foreach $name
3456
 
3457
  if ( $templates_changed ) {
3458
  $settings_changed = true;
3459
- if ( false == MLAOptions::mla_put_style_templates( $new_templates ) ) {
3460
  /* translators: 1: ERROR tag 2: template type */
3461
  $error_list .= '<br>' . sprintf( __( '%1$s: Update of %2$s failed.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'Style Template', 'media-library-assistant' ) );
3462
  }
@@ -3465,129 +3480,110 @@ class MLASettings {
3465
  /*
3466
  * Get the current markup contents for comparison
3467
  */
3468
- $old_templates = MLAOptions::mla_get_markup_templates();
3469
- //error_log( __LINE__ . ' _save_gallery_settings $old_templates = ' . var_export( $old_templates, true ), 0 );
3470
  $new_templates = array();
3471
  $new_names = $_REQUEST['mla_markup_templates_name'];
3472
- $new_values['arguments'] = stripslashes_deep( $_REQUEST['mla_markup_templates_arguments'] );
3473
- $new_values['open'] = stripslashes_deep( $_REQUEST['mla_markup_templates_open'] );
3474
- $new_values['row-open'] = stripslashes_deep( $_REQUEST['mla_markup_templates_row_open'] );
3475
- $new_values['item'] = stripslashes_deep( $_REQUEST['mla_markup_templates_item'] );
3476
- $new_values['row-close'] = stripslashes_deep( $_REQUEST['mla_markup_templates_row_close'] );
3477
- $new_values['close'] = stripslashes_deep( $_REQUEST['mla_markup_templates_close'] );
3478
  $new_deletes = isset( $_REQUEST['mla_markup_templates_delete'] ) ? $_REQUEST['mla_markup_templates_delete']: array();
3479
- //error_log( __LINE__ . ' _save_gallery_settings $new_values = ' . var_export( $new_values, true ), 0 );
3480
-
3481
  /*
3482
  * Build new markup template array, noting changes
3483
  */
3484
- $default_markups = array( 'default', 'tag-cloud', 'tag-cloud-ul', 'tag-cloud-dl' );
3485
  $templates_changed = false;
3486
- foreach ( $new_names as $name => $new_name ) {
3487
- if ( in_array( $name, $default_markups ) ) {
3488
- continue;
3489
- }
3490
-
3491
- if ( array_key_exists( $name, $new_deletes ) ) {
3492
- /* translators: 1: template type 2: template name */
3493
- $message_list .= '<br>' . sprintf( _x( 'Deleting %1$s "%2$s".', 'message_list', 'media-library-assistant' ), __( 'markup template', 'media-library-assistant' ), $name );
3494
- $templates_changed = true;
3495
- continue;
3496
- }
3497
-
3498
- $new_slug = sanitize_title( $new_name );
3499
- if ( 'blank' == $name ) {
3500
- if ( '' == $new_slug ) {
3501
  continue;
3502
  }
3503
 
3504
- if ( 'blank' == $new_slug ) {
3505
- /* translators: 1: ERROR tag 2: template name 3: template type */
3506
- $error_list .= '<br>' . sprintf( __( '%1$s: Reserved name "%2$s", new %3$s discarded.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $new_slug, __( 'markup template', 'media-library-assistant' ) );
3507
- continue;
3508
- }
3509
-
3510
- if ( array_key_exists( $new_slug, $old_templates ) ) {
3511
- /* translators: 1: ERROR tag 2: template name 3: template type */
3512
- $error_list .= '<br>' . sprintf( __( '%1$s: Duplicate name "%2$s", new %3$s discarded.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $new_slug, __( 'markup template', 'media-library-assistant' ) );
3513
- continue;
3514
- } else {
3515
  /* translators: 1: template type 2: template name */
3516
- $message_list .= '<br>' . sprintf( _x( 'Adding new %1$s "%2$s".', 'message_list', 'media-library-assistant' ), __( 'markup template', 'media-library-assistant' ), $new_slug );
3517
  $templates_changed = true;
 
3518
  }
3519
- } // 'blank' - reserved name
3520
-
3521
- /*
3522
- * Handle name changes, check for duplicates
3523
- */
3524
- if ( '' == $new_slug ) {
3525
- /* translators: 1: ERROR tag 2: element name 3: old value */
3526
- $error_list .= '<br>' . sprintf( __( '%1$s: Blank %2$s, reverting to "%3$s".', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'markup template name', 'media-library-assistant' ), $name );
3527
- $new_slug = $name;
3528
- }
3529
-
3530
- if ( $new_slug != $name ) {
3531
- if ( array_key_exists( $new_slug, $old_templates ) ) {
3532
- /* translators: 1: ERROR tag 2: element name 3: new value 4: old value */
3533
- $error_list .= '<br>' . sprintf( __( '%1$s: Duplicate new %2$s "%3$s", reverting to "%4$s".', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'markup template name', 'media-library-assistant' ), $new_slug, $name );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3534
  $new_slug = $name;
3535
- } elseif ( 'blank' != $name ) {
3536
- /* translators: 1: element name 2: old_value 3: new_value */
3537
- $message_list .= '<br>' . sprintf( _x( 'Changing %1$s from "%2$s" to "%3$s"', 'message_list', 'media-library-assistant' ), __( 'markup template name', 'media-library-assistant' ), $name, $new_slug );
3538
- $templates_changed = true;
3539
- }
3540
- } // name changed
3541
-
3542
- if ( 'blank' != $name ) {
3543
- if ( $new_values['arguments'][ $name ] != $old_templates[ $name ]['arguments'] ) {
3544
- /* translators: 1: template name */
3545
- $message_list .= '<br>' . sprintf( _x( 'Updating arguments markup for "%1$s".', 'message_list', 'media-library-assistant' ), $new_slug );
3546
- $templates_changed = true;
3547
- }
3548
-
3549
- if ( $new_values['open'][ $name ] != $old_templates[ $name ]['open'] ) {
3550
- /* translators: 1: template name */
3551
- $message_list .= '<br>' . sprintf( _x( 'Updating open markup for "%1$s".', 'message_list', 'media-library-assistant' ), $new_slug );
3552
- $templates_changed = true;
3553
  }
3554
-
3555
- if ( $new_values['row-open'][ $name ] != $old_templates[ $name ]['row-open'] ) {
3556
- /* translators: 1: template name */
3557
- $message_list .= '<br>' . sprintf( _x( 'Updating row open markup for "%1$s".', 'message_list', 'media-library-assistant' ), $new_slug );
3558
- $templates_changed = true;
3559
- }
3560
-
3561
- if ( $new_values['item'][ $name ] != $old_templates[ $name ]['item'] ) {
3562
- /* translators: 1: template name */
3563
- $message_list .= '<br>' . sprintf( _x( 'Updating item markup for "%1$s".', 'message_list', 'media-library-assistant' ), $new_slug );
3564
- $templates_changed = true;
3565
- }
3566
-
3567
- if ( $new_values['row-close'][ $name ] != $old_templates[ $name ]['row-close'] ) {
3568
- /* translators: 1: template name */
3569
- $message_list .= '<br>' . sprintf( _x( 'Updating row close markup for "%1$s".', 'message_list', 'media-library-assistant' ), $new_slug );
3570
- $templates_changed = true;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3571
  }
3572
 
3573
- if ( $new_values['close'][ $name ] != $old_templates[ $name ]['close'] ) {
3574
- /* translators: 1: template name */
3575
- $message_list .= '<br>' . sprintf( _x( 'Updating close markup for "%1$s".', 'message_list', 'media-library-assistant' ), $new_slug );
3576
- $templates_changed = true;
3577
  }
3578
- } // ! 'blank'
3579
-
3580
- $new_templates[ $new_slug ]['arguments'] = $new_values['arguments'][ $name ];
3581
- $new_templates[ $new_slug ]['open'] = $new_values['open'][ $name ];
3582
- $new_templates[ $new_slug ]['row-open'] = $new_values['row-open'][ $name ];
3583
- $new_templates[ $new_slug ]['item'] = $new_values['item'][ $name ];
3584
- $new_templates[ $new_slug ]['row-close'] = $new_values['row-close'][ $name ];
3585
- $new_templates[ $new_slug ]['close'] = $new_values['close'][ $name ];
3586
- } // foreach $name
3587
 
3588
  if ( $templates_changed ) {
3589
  $settings_changed = true;
3590
- if ( false == MLAOptions::mla_put_markup_templates( $new_templates ) ) {
3591
  /* translators: 1: ERROR tag 2: template type */
3592
  $error_list .= '<br>' . sprintf( __( '%1$s: Update of %2$s failed.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'markup template', 'media-library-assistant' ) );
3593
  }
@@ -3595,10 +3591,10 @@ class MLASettings {
3595
 
3596
  if ( $settings_changed ) {
3597
  /* translators: 1: field type */
3598
- $message = sprintf( __( '%1$s settings saved.', 'media-library-assistant' ), __( 'MLA Gallery', 'media-library-assistant' ) ) . "\r\n";
3599
  } else {
3600
  /* translators: 1: field type */
3601
- $message = sprintf( __( '%1$s no changes detected.', 'media-library-assistant' ), __( 'MLA Gallery', 'media-library-assistant' ) ) . "\r\n";
3602
  }
3603
 
3604
  $page_content = array(
238
  MLACore::mla_update_option( 'iptc_exif_mapping', $option_value );
239
  } // version is less than 2.13
240
 
241
+ MLACore::mla_update_option( MLACoreOptions::MLA_VERSION_OPTION, MLACore::CURRENT_MLA_VERSION );
242
  }
243
 
244
  /**
347
  }
348
 
349
  if ( $wp_locale->is_rtl() ) {
350
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
351
  } else {
352
+ wp_register_style( MLACore::STYLESHEET_SLUG, MLA_PLUGIN_URL . 'css/mla-style.css', false, MLACore::CURRENT_MLA_VERSION );
353
  }
354
 
355
+ wp_enqueue_style( MLACore::STYLESHEET_SLUG );
356
 
357
  /*
358
  * Initialize common script variables
393
  case 'view':
394
  wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_VIEW_SLUG,
395
  MLA_PLUGIN_URL . "js/mla-inline-edit-view-scripts{$suffix}.js",
396
+ array( 'wp-lists', 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
397
 
398
  $script_variables['fields'] = array( 'original_slug', 'slug', 'singular', 'plural', 'specification', 'menu_order' );
399
  $script_variables['checkboxes'] = array( 'post_mime_type', 'table_view' );
405
  case 'upload':
406
  wp_enqueue_script( self::JAVASCRIPT_INLINE_EDIT_UPLOAD_SLUG,
407
  MLA_PLUGIN_URL . "js/mla-inline-edit-upload-scripts{$suffix}.js",
408
+ array( 'wp-lists', 'suggest', 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
409
 
410
  $script_variables['fields'] = array( 'original_slug', 'slug', 'mime_type', 'icon_type', 'core_type', 'mla_type', 'source', 'standard_source' );
411
  $script_variables['checkboxes'] = array( 'disabled' );
417
  case 'custom_field':
418
  wp_enqueue_script( self::JAVASCRIPT_INLINE_MAPPING_CUSTOM_SLUG,
419
  MLA_PLUGIN_URL . "js/mla-inline-mapping-scripts{$suffix}.js",
420
+ array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
421
 
422
  $tab_variables = array(
423
  'page' => 'mla-settings-menu-custom_field',
436
  case 'iptc_exif':
437
  wp_enqueue_script( self::JAVASCRIPT_INLINE_MAPPING_IPTC_EXIF_SLUG,
438
  MLA_PLUGIN_URL . "js/mla-inline-mapping-scripts{$suffix}.js",
439
+ array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
440
 
441
  $tab_variables = array(
442
  'page' => 'mla-settings-menu-iptc_exif',
729
  * @return void echo json response object, then die()
730
  */
731
  public static function mla_inline_mapping_custom_action() {
732
+ MLACore::mla_debug_add( 'MLASettings::mla_inline_mapping_custom_action $_REQUEST = ' . var_export( $_REQUEST, true ), MLACore::MLA_DEBUG_CATEGORY_AJAX );
733
  set_current_screen( $_REQUEST['screen'] );
734
  check_ajax_referer( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME );
735
 
842
  'refresh' => isset( $page_content['refresh'] ) && true == $page_content['refresh'],
843
  );
844
 
845
+ MLACore::mla_debug_add( 'MLASettings::mla_inline_mapping_custom_action $chunk_results = ' . var_export( $chunk_results, true ), MLACore::MLA_DEBUG_CATEGORY_AJAX );
846
  wp_send_json_success( $chunk_results );
847
  }
848
 
854
  * @return void echo json response object, then die()
855
  */
856
  public static function mla_inline_mapping_iptc_exif_action() {
857
+ MLACore::mla_debug_add( 'MLASettings::mla_inline_mapping_iptc_exif_action $_REQUEST = ' . var_export( $_REQUEST, true ), MLACore::MLA_DEBUG_CATEGORY_AJAX );
858
  set_current_screen( $_REQUEST['screen'] );
859
  check_ajax_referer( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME );
860
 
978
  'refresh' => isset( $page_content['refresh'] ) && true == $page_content['refresh'],
979
  );
980
 
981
+ MLACore::mla_debug_add( 'MLASettings::mla_inline_mapping_iptc_exif_action $chunk_results = ' . var_export( $chunk_results, true ), MLACore::MLA_DEBUG_CATEGORY_AJAX );
982
  wp_send_json_success( $chunk_results );
983
  }
984
 
1141
  case 'subheader':
1142
  $option_values = array(
1143
  'Go to Top' => __( 'Go to Top', 'media-library-assistant' ),
1144
+ 'Go to Bottom' => __( 'Go to Bottom', 'media-library-assistant' ),
1145
  'key' => MLA_OPTION_PREFIX . $key,
1146
  'value' => $value['name']
1147
  );
1295
  'general' => array( 'title' => __ ( 'General', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_general_tab' ) ),
1296
  'view' => array( 'title' => __ ( 'Views', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_view_tab' ) ),
1297
  'upload' => array( 'title' => __ ( 'Uploads', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_upload_tab' ) ),
1298
+ 'mla_gallery' => array( 'title' => __ ( 'Shortcodes', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_mla_gallery_tab' ) ),
1299
  'custom_field' => array( 'title' => __ ( 'Custom Fields', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_custom_field_tab' ) ),
1300
  'iptc_exif' => array( 'title' => 'IPTC/EXIF', 'render' => array( 'MLASettings', '_compose_iptc_exif_tab' ) ),
1301
  'documentation' => array( 'title' => __ ( 'Documentation', 'media-library-assistant' ), 'render' => array( 'MLASettings', '_compose_documentation_tab' ) ),
1408
  '_wpnonce' => wp_nonce_field( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME, true, false ),
1409
  '_wp_http_referer' => wp_referer_field( false ),
1410
  'Go to Top' => __( 'Go to Top', 'media-library-assistant' ),
1411
+ 'Go to Bottom' => __( 'Go to Bottom', 'media-library-assistant' ),
1412
  'Support Our Work' => __( 'Support Our Work', 'media-library-assistant' ),
1413
  'Donate to FTJ' => __( 'Donate to FTJ', 'media-library-assistant' ),
1414
  'Donate' => __( 'Donate', 'media-library-assistant' ),
1432
  */
1433
  $shortcodes = array(
1434
  // array("name" => "shortcode", "description" => "This shortcode...")
 
1435
  array( 'name' => 'mla_gallery', 'description' => __( 'enhanced version of the WordPress [gallery] shortcode.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . MLACoreOptions::MLA_SETTINGS_SLUG . '-documentation&amp;mla_tab=documentation#mla_gallery' ), __( 'click here', 'media-library-assistant' ) ) ),
1436
+ array( 'name' => 'mla_tag_cloud', 'description' => __( 'enhanced version of the WordPress Tag Cloud.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . MLACoreOptions::MLA_SETTINGS_SLUG . '-documentation&amp;mla_tab=documentation#mla_tag_cloud' ), __( 'click here', 'media-library-assistant' ) ) ),
1437
+ array( 'name' => 'mla_term_list', 'description' => __( 'provides flat or hierarchical lists, dropdown controls and checkbox lists of taxonomy terms.', 'media-library-assistant' ) . sprintf( ' %1$s <a href="%2$s">%3$s</a>.', __( 'For complete documentation', 'media-library-assistant' ), admin_url( 'options-general.php?page=' . MLACoreOptions::MLA_SETTINGS_SLUG . '-documentation&amp;mla_tab=documentation#mla_tag_cloud' ), __( 'wait a bit longer', 'media-library-assistant' ) ) ),
1438
  );
1439
 
1440
  $shortcode_list = '';
2355
  return $page_content;
2356
  }
2357
 
2358
+ /*
2359
+ * Compose shortcode jump table
2360
+ */
2361
+ $shortcode_jump_rows = '';
2362
+ foreach( MLATemplate_Support::$mla_template_definitions['style'] as $shortcode => $definition ) {
2363
+ $template_values = array(
2364
+ 'shortcode' => $shortcode,
2365
+ 'Go to Style Templates' => sprintf( '%1$s [mla_%2$s] %3$s', __( 'Go to', 'media-library-assistant' ), $shortcode, __( 'Style Templates', 'media-library-assistant' ) ),
2366
+ 'Go to Markup Templates' => sprintf( '%1$s [mla_%2$s] %3$s', __( 'Go to', 'media-library-assistant' ), $shortcode, __( 'Markup Templates', 'media-library-assistant' ) ),
2367
+ );
2368
+
2369
+ $shortcode_jump_rows .= MLAData::mla_parse_template( self::$page_template_array['shortcode-jump-row'], $template_values );
2370
+ }
2371
+
2372
  $page_values = array(
2373
+ 'MLA Shortcode Options' => __( 'MLA Shortcode Options', 'media-library-assistant' ),
2374
+ 'Shortcode Jump Rows' => $shortcode_jump_rows,
 
2375
  'In this tab' => __( 'In this tab you can view the default style and markup templates. You can also define additional templates and use the <code>mla_style</code> and <code>mla_markup</code> parameters to apply them in your <code>[mla_gallery]</code> shortcodes. <strong>NOTE:</strong> template additions and changes will not be made permanent until you click "Save Changes" at the bottom of this page.', 'media-library-assistant' ),
2376
  'form_url' => admin_url( 'options-general.php' ) . '?page=mla-settings-menu-mla_gallery&mla_tab=mla_gallery',
2377
  'options_list' => '',
2378
  'Go to Top' => __( 'Go to Top', 'media-library-assistant' ),
2379
+ 'Go to Bottom' => __( 'Go to Bottom', 'media-library-assistant' ),
2380
+ 'style_sections_list' => '',
2381
+ 'markup_sections_list' => '',
 
2382
  'Save Changes' => __( 'Save Changes', 'media-library-assistant' ),
2383
  '_wpnonce' => wp_nonce_field( MLACore::MLA_ADMIN_NONCE_ACTION, MLACore::MLA_ADMIN_NONCE_NAME, true, false ),
2384
  '_wp_http_referer' => wp_referer_field( false )
2385
  );
2386
 
2387
  /*
2388
+ * Build default template selection lists
2389
  */
2390
  MLACoreOptions::$mla_option_definitions['default_style']['options'][] = 'none';
2391
  MLACoreOptions::$mla_option_definitions['default_style']['texts'][] = '&mdash; ' . __( 'None', 'media-library-assistant' ) . ' &mdash;';
2392
  MLACoreOptions::$mla_option_definitions['default_style']['options'][] = 'theme';
2393
  MLACoreOptions::$mla_option_definitions['default_style']['texts'][] = '&mdash; ' . __( 'Theme', 'media-library-assistant' ) . ' &mdash;';
2394
 
2395
+ $templates = MLATemplate_Support::mla_get_style_templates( 'gallery' );
2396
  ksort($templates);
2397
  foreach ($templates as $key => $value ) {
 
 
 
 
2398
  MLACoreOptions::$mla_option_definitions['default_style']['options'][] = $key;
2399
  MLACoreOptions::$mla_option_definitions['default_style']['texts'][] = $key;
2400
  }
2401
 
2402
+ $templates = MLATemplate_Support::mla_get_markup_templates( 'gallery' );
2403
  ksort($templates);
2404
  foreach ($templates as $key => $value ) {
 
 
 
 
2405
  MLACoreOptions::$mla_option_definitions['default_markup']['options'][] = $key;
2406
  MLACoreOptions::$mla_option_definitions['default_markup']['texts'][] = $key;
2407
  }
2438
  $page_values['options_list'] = $options_list;
2439
 
2440
  /*
2441
+ * Add style templates by shortcode; defaults go first
2442
  */
2443
+ $style_sections_list = '';
2444
+
2445
+ foreach( MLATemplate_Support::$mla_template_definitions['style'] as $shortcode => $definition ) {
2446
+ $templates = MLATemplate_Support::mla_get_style_templates( $definition['slug'] );
2447
+ $style_options_list = '';
2448
 
2449
+ foreach ( $definition['default_names'] as $default ) {
2450
+ if ( !array_key_exists( $default, $templates ) ) {
2451
+ continue;
2452
+ }
2453
+
2454
+ $value =$templates[ $default ];
2455
+ if ( ! empty( $value ) ) {
2456
+ $template_values = array (
2457
+ 'help' => __( 'This default template cannot be altered or deleted, but you can copy the styles.', 'media-library-assistant' )
2458
+ );
2459
+ $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-default'], $template_values );
2460
+
2461
+ $template_values = array (
2462
+ 'Name' => __( 'Name', 'media-library-assistant' ),
2463
+ 'name_name' => "mla_style_templates_name[{$shortcode}][{$default}]",
2464
+ 'name_id' => "mla_style_templates_name_{$shortcode}_{$default}",
2465
+ 'readonly' => 'readonly="readonly"',
2466
+ 'name_text' => $default,
2467
+ 'control_cells' => $control_cells,
2468
+ 'Styles' => $definition['label'],
2469
+ 'value_name' => "mla_style_templates_value[{$shortcode}][{$default}]",
2470
+ 'value_id' => "mla_style_templates_value_{$shortcode}_{$default}",
2471
+ 'value_text' => esc_textarea( $value ),
2472
+ 'value_help' => $definition['help'],
2473
+ );
2474
+
2475
+ $style_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-style'], $template_values );
2476
+ } // $value
2477
+ } // foreach default
2478
+
2479
+ foreach ( $templates as $name => $value ) {
2480
+ $slug = sanitize_title( $name );
2481
+
2482
+ if ( in_array( $name, $definition['default_names'] ) ) {
2483
+ continue; // already handled above
2484
+ }
2485
+
2486
+ $template_values = array (
2487
+ 'name' => "mla_style_templates_delete[{$shortcode}][{$slug}]",
2488
+ 'id' => "mla_style_templates_delete_{$shortcode}_{$slug}",
2489
+ 'value' => __( 'Delete this template', 'media-library-assistant' ),
2490
+ 'help' => __( 'Check the box to delete this template when you press Update at the bottom of the page.', 'media-library-assistant' )
2491
+ );
2492
+ $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-delete'], $template_values );
2493
+
2494
+ $template_values = array (
2495
+ 'Name' => __( 'Name', 'media-library-assistant' ),
2496
+ 'name_name' => "mla_style_templates_name[{$shortcode}][{$slug}]",
2497
+ 'name_id' => "mla_style_templates_name_{$shortcode}_{$slug}",
2498
+ 'readonly' => '',
2499
+ 'name_text' => $slug,
2500
+ 'control_cells' => $control_cells,
2501
+ 'Styles' => $definition['label'],
2502
+ 'value_name' => "mla_style_templates_value[{$shortcode}][{$slug}]",
2503
+ 'value_id' => "mla_style_templates_value_{$shortcode}_{$slug}",
2504
+ 'value_text' => esc_textarea( $value ),
2505
+ 'value_help' => $definition['help'],
2506
+ );
2507
+
2508
+ $style_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-style'], $template_values );
2509
+ } // foreach $templates
2510
+
2511
+ /*
2512
+ * Add blank style template for additions
2513
+ */
2514
  if ( ! empty( $value ) ) {
2515
  $template_values = array (
2516
+ 'help' => __( 'Fill in a name and styles to add a new template.', 'media-library-assistant' )
2517
  );
2518
  $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-default'], $template_values );
2519
+
2520
  $template_values = array (
2521
  'Name' => __( 'Name', 'media-library-assistant' ),
2522
+ 'name_name' => "mla_style_templates_name[{$shortcode}][blank]",
2523
+ 'name_id' => "mla_style_templates_name_{$shortcode}_blank",
2524
+ 'readonly' => '',
2525
+ 'name_text' => '',
2526
  'control_cells' => $control_cells,
2527
+ 'Styles' => $definition['label'],
2528
+ 'value_name' => "mla_style_templates_value[{$shortcode}][blank]",
2529
+ 'value_id' => "mla_style_templates_value_{$shortcode}_blank",
2530
+ 'value_text' => '',
2531
+ 'value_help' => $definition['help'],
2532
  );
2533
+
2534
  $style_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-style'], $template_values );
2535
  } // $value
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2536
 
2537
+ /*
2538
+ * Compose the Styles section for this shortcode
2539
+ */
2540
  $template_values = array (
2541
+ 'shortcode' => $shortcode,
2542
+ 'template_type' => 'style',
2543
+ 'Go to Top' => __( 'Go to Top', 'media-library-assistant' ),
2544
+ 'Go to Bottom' => __( 'Go to Bottom', 'media-library-assistant' ),
2545
+ 'Templates' => "[mla_{$shortcode}] " . __( 'Style Templates', 'media-library-assistant' ),
2546
+ 'templates_list' => $style_options_list,
 
 
 
 
 
2547
  );
2548
 
2549
+ $style_sections_list .= MLAData::mla_parse_template( self::$page_template_array['templates-list'], $template_values );
2550
+ } // $shortcode
2551
+
2552
+ $page_values['style_sections_list'] = $style_sections_list;
2553
 
2554
  /*
2555
  * Add markup templates; defaults go first
2556
  */
2557
+ $markup_sections_list = '';
2558
+
2559
+ foreach( MLATemplate_Support::$mla_template_definitions['markup'] as $shortcode => $definition ) {
2560
+ $templates = MLATemplate_Support::mla_get_markup_templates( $definition['slug'] );
2561
+ $markup_options_list = '';
2562
+
2563
+ $sorted_sections = array();
2564
+ foreach( MLATemplate_Support::$mla_template_definitions['markup'][ $shortcode ]['sections'] as $section_slug => $section_definition ) {
2565
+ $sorted_sections[ $section_definition['order'] ] = $section_definition;
2566
+ $sorted_sections[ $section_definition['order'] ]['slug'] = $section_slug;
2567
+ }
2568
+ ksort( $sorted_sections, SORT_NUMERIC );
2569
 
2570
+ foreach ( $definition['default_names'] as $default ) {
2571
+ if ( !array_key_exists( $default, $templates ) ) {
2572
+ continue;
2573
+ }
2574
+
2575
+ $value =$templates[ $default ];
2576
+ if ( ! empty( $value ) ) {
2577
+ $sections_list = '';
2578
+ foreach( $sorted_sections as $section_definition ) {
2579
+ $section_slug = $section_definition['slug'];
2580
+ $template_values = array (
2581
+ 'Label' => $section_definition['label'],
2582
+ 'name' => "mla_markup_templates_sections[{$shortcode}][{$default}][{$section_slug}]",
2583
+ 'id' => "mla_markup_templates_name_{$shortcode}_{$default}_{$section_slug}",
2584
+ 'rows' => $section_definition['rows'],
2585
+ 'readonly' => 'readonly="readonly"',
2586
+ 'text' => isset( $value[ $section_slug ] ) ? esc_textarea( $value[ $section_slug ] ) : '',
2587
+ 'help' => $section_definition['help'],
2588
+ );
2589
+
2590
+ $sections_list .= MLAData::mla_parse_template( self::$page_template_array['template-section'], $template_values );
2591
+ } // $section
2592
+
2593
+ $template_values = array (
2594
+ 'help' => __( 'This default template cannot be altered or deleted, but you can copy the markup.', 'media-library-assistant' )
2595
+ );
2596
+ $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-default'], $template_values );
2597
+
2598
+ $template_values = array (
2599
+ 'Name' => __( 'Name', 'media-library-assistant' ),
2600
+ 'name_name' => "mla_markup_templates_name[{$shortcode}][{$default}]",
2601
+ 'name_id' => "mla_markup_templates_name_{$shortcode}_{$default}",
2602
+ 'readonly' => 'readonly="readonly"',
2603
+ 'name_text' => $default,
2604
+ 'control_cells' => $control_cells,
2605
+ 'sections_list' => $sections_list,
2606
+ );
2607
+
2608
+ $markup_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-markup'], $template_values );
2609
+ } // $value
2610
+ } // foreach default
2611
+
2612
+ foreach ( $templates as $name => $value ) {
2613
+ $slug = sanitize_title( $name );
2614
+
2615
+ if ( in_array( $name, $definition['default_names'] ) ) {
2616
+ continue; // already handled above
2617
+ }
2618
+
2619
+ if ( ! empty( $value ) ) {
2620
+ $sections_list = '';
2621
+ foreach( $sorted_sections as $section_definition ) {
2622
+ $section_slug = $section_definition['slug'];
2623
+ $template_values = array (
2624
+ 'Label' => $section_definition['label'],
2625
+ 'name' => "mla_markup_templates_sections[{$shortcode}][{$name}][{$section_slug}]",
2626
+ 'id' => "mla_markup_templates_name_{$shortcode}_{$name}_{$section_slug}",
2627
+ 'rows' => $section_definition['rows'],
2628
+ 'readonly' => '',
2629
+ 'text' => isset( $value[ $section_slug ] ) ? esc_textarea( $value[ $section_slug ] ) : '',
2630
+ 'help' => $section_definition['help'],
2631
+ );
2632
+
2633
+ $sections_list .= MLAData::mla_parse_template( self::$page_template_array['template-section'], $template_values );
2634
+ } // $section
2635
+
2636
+ $template_values = array (
2637
+ 'name' => "mla_markup_templates_delete[{$shortcode}][{$slug}]",
2638
+ 'id' => "mla_markup_templates_delete_{$shortcode}_{$slug}",
2639
+ 'value' => __( 'Delete this template', 'media-library-assistant' ),
2640
+ 'help' => __( 'Check the box to delete this template when you press Update at the bottom of the page.', 'media-library-assistant' )
2641
+ );
2642
+ $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-delete'], $template_values );
2643
+
2644
+ $template_values = array (
2645
+ 'Name' => __( 'Name', 'media-library-assistant' ),
2646
+ 'name_name' => "mla_markup_templates_name[{$shortcode}][{$slug}]",
2647
+ 'name_id' => "mla_markup_templates_name_{$shortcode}_{$slug}",
2648
+ 'readonly' => '',
2649
+ 'name_text' => $slug,
2650
+ 'control_cells' => $control_cells,
2651
+ 'sections_list' => $sections_list,
2652
+ );
2653
+
2654
+ $markup_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-markup'], $template_values );
2655
+ } // $value
2656
+ } // foreach $templates
2657
+
2658
+ /*
2659
+ * Add blank markup template for additions
2660
+ */
2661
  if ( ! empty( $value ) ) {
2662
  $template_values = array (
2663
+ 'help' => __( 'Fill in a name and markup to add a new template.', 'media-library-assistant' )
2664
  );
2665
  $control_cells = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-default'], $template_values );
2666
+
2667
+ $sections_list = '';
2668
+ foreach( $sorted_sections as $section_definition ) {
2669
+ $section_slug = $section_definition['slug'];
2670
+ $template_values = array (
2671
+ 'Label' => $section_definition['label'],
2672
+ 'name' => "mla_markup_templates_sections[{$shortcode}][blank][{$section_slug}]",
2673
+ 'id' => "mla_markup_templates_name_{$shortcode}_blank_{$section_slug}",
2674
+ 'rows' => $section_definition['rows'],
2675
+ 'readonly' => '',
2676
+ 'text' => '',
2677
+ 'help' => $section_definition['help'],
2678
+ );
2679
+
2680
+ $sections_list .= MLAData::mla_parse_template( self::$page_template_array['template-section'], $template_values );
2681
+ } // $section
2682
+
2683
  $template_values = array (
2684
  'Name' => __( 'Name', 'media-library-assistant' ),
2685
+ 'name_name' => "mla_markup_templates_name[{$shortcode}][blank]",
2686
+ 'name_id' => "mla_markup_templates_name_{$shortcode}_blank",
2687
+ 'name_text' => '',
 
2688
  'control_cells' => $control_cells,
2689
+ 'sections_list' => $sections_list,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2690
  );
2691
+
2692
  $markup_options_list .= MLAData::mla_parse_template( self::$page_template_array['mla-gallery-markup'], $template_values );
2693
  } // $value
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2694
 
2695
+ /*
2696
+ * Compose the Markup section for this shortcode
2697
+ */
2698
  $template_values = array (
2699
+ 'shortcode' => $shortcode,
2700
+ 'template_type' => 'markup',
2701
+ 'Go to Top' => __( 'Go to Top', 'media-library-assistant' ),
2702
+ 'Go to Bottom' => __( 'Go to Bottom', 'media-library-assistant' ),
2703
+ 'Templates' => "[mla_{$shortcode}] " . __( 'Markup Templates', 'media-library-assistant' ),
2704
+ 'templates_list' => $markup_options_list,
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2705
  );
2706
 
2707
+ $markup_sections_list .= MLAData::mla_parse_template( self::$page_template_array['templates-list'], $template_values );
2708
+ } // $shortcode
2709
+
2710
+ $page_values['markup_sections_list'] = $markup_sections_list;
2711
 
2712
  $page_content['body'] = MLAData::mla_parse_template( self::$page_template_array['mla-gallery-tab'], $page_values );
2713
  return $page_content;
3287
  $page_values = array(
3288
  'Support Our Work' => __( 'Support Our Work', 'media-library-assistant' ),
3289
  'Donate' => __( 'Donate', 'media-library-assistant' ),
3290
+ 'version' => 'v' . MLACore::CURRENT_MLA_VERSION,
3291
  'development' => $development_version,
3292
  'messages' => '',
3293
  'tablist' => self::_compose_settings_tabs( $current_tab_slug ),
3382
 
3383
  /*
3384
  * Get the current style contents for comparison
3385
+ * $new_names[ shortcode ][ template_name ]
3386
+ * $old_templates, $new_templates [ template_name ] - omit shortcode for backwards compatibility
3387
  */
3388
+ $old_templates = MLATemplate_Support::mla_get_style_templates();
3389
  $new_templates = array();
3390
  $new_names = $_REQUEST['mla_style_templates_name'];
3391
  $new_values = stripslashes_deep( $_REQUEST['mla_style_templates_value'] );
3394
  /*
3395
  * Build new style template array, noting changes
3396
  */
 
3397
  $templates_changed = false;
3398
+ foreach ( $new_names as $shortcode => $template_names ) {
3399
+ $definition = MLATemplate_Support::$mla_template_definitions['style'][ $shortcode ];
3400
+
3401
+ foreach ( $template_names as $name => $new_name ) {
3402
+ if ( in_array( $name, $definition['default_names'] ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3403
  continue;
3404
  }
3405
 
3406
+ if ( array_key_exists( $shortcode, $new_deletes ) && array_key_exists( $name, $new_deletes[ $shortcode ] ) ) {
 
 
 
 
3407
  /* translators: 1: template type 2: template name */
3408
+ $message_list .= '<br>' . sprintf( _x( 'Deleting %1$s "%2$s".', 'message_list', 'media-library-assistant' ), __( 'Style Template', 'media-library-assistant' ), $name );
3409
  $templates_changed = true;
3410
+ continue;
3411
  }
3412
+
3413
+ $new_slug = sanitize_title( $new_name );
3414
+ if ( 'blank' == $name ) {
3415
+ if ( '' == $new_slug ) {
3416
+ continue;
3417
+ } elseif ( 'blank' == $new_slug ) {
3418
+ /* translators: 1: ERROR tag 2: template name 3: template type */
3419
+ $error_list .= '<br>' . sprintf( __( '%1$s: Reserved name "%2$s", new %3$s discarded.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $new_slug, __( 'Style Template', 'media-library-assistant' ) );
3420
+ continue;
3421
+ }
3422
+
3423
+ if ( array_key_exists( $new_slug, $old_templates ) ) {
3424
+ /* translators: 1: ERROR tag 2: template name 3: template type */
3425
+ $error_list .= '<br>' . sprintf( __( '%1$s: Duplicate name "%2$s", new %3$s discarded.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $new_slug, __( 'Style Template', 'media-library-assistant' ) );
3426
+ continue;
3427
+ } else {
3428
+ /* translators: 1: template type 2: template name */
3429
+ $message_list .= '<br>' . sprintf( _x( 'Adding new %1$s "%2$s".', 'message_list', 'media-library-assistant' ), __( 'Style Template', 'media-library-assistant' ), $new_slug );
3430
+ $templates_changed = true;
3431
+ }
3432
+ } // 'blank' - reserved name
3433
+
3434
+ /*
3435
+ * Handle name changes, check for duplicates
3436
+ */
3437
+ if ( '' == $new_slug ) {
3438
+ /* translators: 1: ERROR tag 2: element name 3: old value */
3439
+ $error_list .= '<br>' . sprintf( __( '%1$s: Blank %2$s, reverting to "%3$s".', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'style template name', 'media-library-assistant' ), $name );
3440
  $new_slug = $name;
3441
+ }
3442
+
3443
+ if ( $new_slug != $name ) {
3444
+ if ( array_key_exists( $new_slug, $old_templates ) ) {
3445
+ /* translators: 1: ERROR tag 2: element name 3: new value 4: old value */
3446
+ $error_list .= '<br>' . sprintf( __( '%1$s: Duplicate new %2$s "%3$s", reverting to "%4$s".', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'style template name', 'media-library-assistant' ), $new_slug, $name );
3447
+ $new_slug = $name;
3448
+ } elseif ( 'blank' == $new_slug ) {
3449
+ /* translators: 1: ERROR tag 2: element name 3: new value 4: old value */
3450
+ $error_list .= '<br>' . sprintf( __( '%1$s: Reserved %2$s "%3$s", reverting to "%4$s".', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'style template name', 'media-library-assistant' ), $new_slug, $name );
3451
+ $new_slug = $name;
3452
+ } elseif ( 'blank' != $name ) {
3453
+ /* translators: 1: element name 2: old_value 3: new_value */
3454
+ $message_list .= '<br>' . sprintf( _x( 'Changing %1$s from "%2$s" to "%3$s"', 'message_list', 'media-library-assistant' ), __( 'style template name', 'media-library-assistant' ), $name, $new_slug );
3455
+ $templates_changed = true;
3456
+ }
3457
+ } // name changed
3458
+
3459
+ if ( ( 'blank' != $name ) && ( $new_values[ $shortcode ][ $name ] != $old_templates[ $name ] ) ) {
3460
+ /* translators: 1: template type 2: template name */
3461
+ $message_list .= '<br>' . sprintf( _x( 'Updating contents of %1$s "%2$s".', 'message_list', 'media-library-assistant' ), __( 'Style Template', 'media-library-assistant' ), $new_slug );
3462
  $templates_changed = true;
3463
  }
3464
+
3465
+ /*
3466
+ * Encode shortcode assignment in template content
3467
+ */
3468
+ $new_templates[ $new_slug ] = sprintf( "<!-- mla_shortcode_slug=\"%1\$s\" -->\r\n%2\$s", $definition['slug'], $new_values[ $shortcode ][ $name ] );
3469
+ } // foreach $name
3470
+ } // each shortcode
 
 
 
3471
 
3472
  if ( $templates_changed ) {
3473
  $settings_changed = true;
3474
+ if ( false == MLATemplate_Support::mla_put_style_templates( $new_templates ) ) {
3475
  /* translators: 1: ERROR tag 2: template type */
3476
  $error_list .= '<br>' . sprintf( __( '%1$s: Update of %2$s failed.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'Style Template', 'media-library-assistant' ) );
3477
  }
3480
  /*
3481
  * Get the current markup contents for comparison
3482
  */
3483
+ $old_templates = MLATemplate_Support::mla_get_markup_templates();
 
3484
  $new_templates = array();
3485
  $new_names = $_REQUEST['mla_markup_templates_name'];
 
 
 
 
 
 
3486
  $new_deletes = isset( $_REQUEST['mla_markup_templates_delete'] ) ? $_REQUEST['mla_markup_templates_delete']: array();
3487
+ $new_values = stripslashes_deep( $_REQUEST['mla_markup_templates_sections'] );
3488
+
3489
  /*
3490
  * Build new markup template array, noting changes
3491
  */
 
3492
  $templates_changed = false;
3493
+ foreach ( $new_names as $shortcode => $template_names ) {
3494
+ $definition = MLATemplate_Support::$mla_template_definitions['markup'][ $shortcode ];
3495
+
3496
+ foreach ( $template_names as $name => $new_name ) {
3497
+ if ( in_array( $name, $definition['default_names'] ) ) {
 
 
 
 
 
 
 
 
 
 
3498
  continue;
3499
  }
3500
 
3501
+ if ( array_key_exists( $shortcode, $new_deletes ) && array_key_exists( $name, $new_deletes[ $shortcode ] ) ) {
 
 
 
 
 
 
 
 
 
 
3502
  /* translators: 1: template type 2: template name */
3503
+ $message_list .= '<br>' . sprintf( _x( 'Deleting %1$s "%2$s".', 'message_list', 'media-library-assistant' ), __( 'markup template', 'media-library-assistant' ), $name );
3504
  $templates_changed = true;
3505
+ continue;
3506
  }
3507
+
3508
+ $new_slug = sanitize_title( $new_name );
3509
+ if ( 'blank' == $name ) {
3510
+ if ( '' == $new_slug ) {
3511
+ continue;
3512
+ }
3513
+
3514
+ if ( 'blank' == $new_slug ) {
3515
+ /* translators: 1: ERROR tag 2: template name 3: template type */
3516
+ $error_list .= '<br>' . sprintf( __( '%1$s: Reserved name "%2$s", new %3$s discarded.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $new_slug, __( 'markup template', 'media-library-assistant' ) );
3517
+ continue;
3518
+ }
3519
+
3520
+ if ( array_key_exists( $new_slug, $old_templates ) ) {
3521
+ /* translators: 1: ERROR tag 2: template name 3: template type */
3522
+ $error_list .= '<br>' . sprintf( __( '%1$s: Duplicate name "%2$s", new %3$s discarded.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), $new_slug, __( 'markup template', 'media-library-assistant' ) );
3523
+ continue;
3524
+ } else {
3525
+ /* translators: 1: template type 2: template name */
3526
+ $message_list .= '<br>' . sprintf( _x( 'Adding new %1$s "%2$s".', 'message_list', 'media-library-assistant' ), __( 'markup template', 'media-library-assistant' ), $new_slug );
3527
+ $templates_changed = true;
3528
+ }
3529
+ } // 'blank' - reserved name
3530
+
3531
+ /*
3532
+ * Handle name changes, check for duplicates
3533
+ */
3534
+ if ( '' == $new_slug ) {
3535
+ /* translators: 1: ERROR tag 2: element name 3: old value */
3536
+ $error_list .= '<br>' . sprintf( __( '%1$s: Blank %2$s, reverting to "%3$s".', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'markup template name', 'media-library-assistant' ), $name );
3537
  $new_slug = $name;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3538
  }
3539
+
3540
+ if ( $new_slug != $name ) {
3541
+ if ( array_key_exists( $new_slug, $old_templates ) ) {
3542
+ /* translators: 1: ERROR tag 2: element name 3: new value 4: old value */
3543
+ $error_list .= '<br>' . sprintf( __( '%1$s: Duplicate new %2$s "%3$s", reverting to "%4$s".', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'markup template name', 'media-library-assistant' ), $new_slug, $name );
3544
+ $new_slug = $name;
3545
+ } elseif ( 'blank' == $new_slug ) {
3546
+ /* translators: 1: ERROR tag 2: element name 3: new value 4: old value */
3547
+ $error_list .= '<br>' . sprintf( __( '%1$s: Reserved %2$s "%3$s", reverting to "%4$s".', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'markup template name', 'media-library-assistant' ), $new_slug, $name );
3548
+ $new_slug = $name;
3549
+ } elseif ( 'blank' != $name ) {
3550
+ /* translators: 1: element name 2: old_value 3: new_value */
3551
+ $message_list .= '<br>' . sprintf( _x( 'Changing %1$s from "%2$s" to "%3$s"', 'message_list', 'media-library-assistant' ), __( 'markup template name', 'media-library-assistant' ), $name, $new_slug );
3552
+ $templates_changed = true;
3553
+ }
3554
+ } // name changed
3555
+
3556
+ if ( 'blank' != $name ) {
3557
+ foreach ( $new_values[ $shortcode ][ $name ] as $section_name => $section_value ) {
3558
+ $old_value = isset( $old_templates[ $name ][ $section_name ] ) ? $old_templates[ $name ][ $section_name ] : '';
3559
+ if ( $section_value != $old_value ) {
3560
+ /* translators: 1: section name, 2: template name */
3561
+ $message_list .= '<br>' . sprintf( _x( 'Updating %1$s markup for "%2$s".', 'message_list', 'media-library-assistant' ), $section_name, $new_slug );
3562
+ $templates_changed = true;
3563
+ }
3564
+ }
3565
+ } // ! 'blank'
3566
+
3567
+ /*
3568
+ * Encode shortcode assignment in template content
3569
+ */
3570
+ if ( isset( $new_values[ $shortcode ][ $name ]['arguments'] ) ) {
3571
+ $new_values[ $shortcode ][ $name ]['arguments'] = sprintf( "mla_shortcode_slug=\"%1\$s\"\r\n%2\$s", $definition['slug'], $new_values[ $shortcode ][ $name ]['arguments'] );
3572
+ } else {
3573
+ $new_values[ $shortcode ][ $name ]['arguments'] = sprintf( "mla_shortcode_slug=\"%1\$s\"\r\n", $definition['slug'] );
3574
  }
3575
 
3576
+ foreach ( $new_values[ $shortcode ][ $name ] as $section_name => $section_value ) {
3577
+ if ( !empty( $section_value ) ) {
3578
+ $new_templates[ $new_slug ][ $section_name ] = $section_value;
3579
+ }
3580
  }
3581
+ } // foreach $name
3582
+ } // foreach $shortcode
 
 
 
 
 
 
 
3583
 
3584
  if ( $templates_changed ) {
3585
  $settings_changed = true;
3586
+ if ( false == MLATemplate_Support::mla_put_markup_templates( $new_templates ) ) {
3587
  /* translators: 1: ERROR tag 2: template type */
3588
  $error_list .= '<br>' . sprintf( __( '%1$s: Update of %2$s failed.', 'media-library-assistant' ), __( 'ERROR', 'media-library-assistant' ), __( 'markup template', 'media-library-assistant' ) );
3589
  }
3591
 
3592
  if ( $settings_changed ) {
3593
  /* translators: 1: field type */
3594
+ $message = sprintf( __( '%1$s settings saved.', 'media-library-assistant' ), __( 'Shortcodes', 'media-library-assistant' ) ) . "\r\n";
3595
  } else {
3596
  /* translators: 1: field type */
3597
+ $message = sprintf( __( '%1$s no changes detected.', 'media-library-assistant' ), __( 'Shortcodes', 'media-library-assistant' ) ) . "\r\n";
3598
  }
3599
 
3600
  $page_content = array(
includes/class-mla-shortcode-support.php CHANGED
@@ -19,6 +19,11 @@ if ( !class_exists( 'MLAData' ) ) {
19
  MLAData::initialize();
20
  }
21
 
 
 
 
 
 
22
  /**
23
  * Class MLA (Media Library Assistant) Shortcode Support provides the functions that
24
  * implement the [mla_gallery] and [mla_tag_cloud] shortcodes. It also implements the
@@ -28,114 +33,6 @@ if ( !class_exists( 'MLAData' ) ) {
28
  * @since 2.20
29
  */
30
  class MLAShortcode_Support {
31
- /**
32
- * Style and Markup templates
33
- *
34
- * @since 2.20
35
- *
36
- * @var array
37
- */
38
- public static $mla_custom_templates = NULL;
39
-
40
- /**
41
- * Load style and markup templates to $mla_custom_templates
42
- *
43
- * @since 2.20
44
- *
45
- * @return void
46
- */
47
- public static function mla_load_custom_templates() {
48
- MLAShortcode_Support::$mla_custom_templates = MLACore::mla_load_template( 'mla-custom-templates.tpl' );
49
-
50
- /*
51
- * Load the default templates
52
- */
53
- if ( is_null( MLAShortcode_Support::$mla_custom_templates ) ) {
54
- MLACore::mla_debug_add( '<strong>mla_debug _load_option_templates()</strong> ' . __( 'error loading tpls/mla-option-templates.tpl', 'media-library-assistant' ), MLACore::MLA_DEBUG_CATEGORY_ANY );
55
- return;
56
- } elseif ( !MLAShortcode_Support::$mla_custom_templates ) {
57
- MLACore::mla_debug_add( '<strong>mla_debug _load_option_templates()</strong> ' . __( 'tpls/mla-option-templates.tpl not found', 'media-library-assistant' ), MLACore::MLA_DEBUG_CATEGORY_ANY );
58
- MLAShortcode_Support::$mla_custom_templates = NULL;
59
- return;
60
- }
61
-
62
- /*
63
- * Add user-defined Style and Markup templates
64
- */
65
- $templates = MLACore::mla_get_option( 'style_templates' );
66
- if ( is_array( $templates ) ) {
67
- foreach ( $templates as $name => $value ) {
68
- MLAShortcode_Support::$mla_custom_templates[ $name . '-style' ] = $value;
69
- } // foreach $templates
70
- } // is_array
71
-
72
- $templates = MLACore::mla_get_option( 'markup_templates' );
73
- if ( is_array( $templates ) ) {
74
- foreach ( $templates as $name => $value ) {
75
- if ( isset( $value['arguments'] ) ) {
76
- MLAShortcode_Support::$mla_custom_templates[ $name . '-arguments-markup' ] = $value['arguments'];
77
- } else {
78
- MLAShortcode_Support::$mla_custom_templates[ $name . '-arguments-markup' ] = false;
79
- }
80
-
81
- if ( isset( $value['open'] ) ) {
82
- MLAShortcode_Support::$mla_custom_templates[ $name . '-open-markup' ] = $value['open'];
83
- } else {
84
- MLAShortcode_Support::$mla_custom_templates[ $name . '-open-markup' ] = false;
85
- }
86
-
87
- if ( isset( $value['row-open'] ) ) {
88
- MLAShortcode_Support::$mla_custom_templates[ $name . '-row-open-markup' ] = $value['row-open'];
89
- } else {
90
- MLAShortcode_Support::$mla_custom_templates[ $name . '-row-open-markup' ] = false;
91
- }
92
-
93
- if ( isset( $value['item'] ) ) {
94
- MLAShortcode_Support::$mla_custom_templates[ $name . '-item-markup' ] = $value['item'];
95
- } else {
96
- MLAShortcode_Support::$mla_custom_templates[ $name . '-item-markup' ] = false;
97
- }
98
-
99
- if ( isset( $value['row-close'] ) ) {
100
- MLAShortcode_Support::$mla_custom_templates[ $name . '-row-close-markup' ] = $value['row-close'];
101
- } else {
102
- MLAShortcode_Support::$mla_custom_templates[ $name . '-row-close-markup' ] = false;
103
- }
104
-
105
- if ( isset( $value['close'] ) ) {
106
- MLAShortcode_Support::$mla_custom_templates[ $name . '-close-markup' ] = $value['close'];
107
- } else {
108
- MLAShortcode_Support::$mla_custom_templates[ $name . '-close-markup' ] = false;
109
- }
110
- } // foreach $templates
111
- } // is_array
112
- }
113
-
114
- /**
115
- * Fetch style or markup template from $mla_templates
116
- *
117
- * @since 2.20
118
- *
119
- * @param string Template name
120
- * @param string Template type; 'style' (default) or 'markup'
121
- *
122
- * @return string|boolean|null requested template, false if not found or null if no templates
123
- */
124
- public static function mla_fetch_gallery_template( $key, $type = 'style' ) {
125
- if ( ! is_array( MLAShortcode_Support::$mla_custom_templates ) ) {
126
- MLACore::mla_debug_add( '<strong>mla_fetch_gallery_template()</strong> ' . __( 'no templates exist', 'media-library-assistant' ), MLACore::MLA_DEBUG_CATEGORY_ANY );
127
- return NULL;
128
- }
129
-
130
- $array_key = $key . '-' . $type;
131
- if ( array_key_exists( $array_key, MLAShortcode_Support::$mla_custom_templates ) ) {
132
- return MLAShortcode_Support::$mla_custom_templates[ $array_key ];
133
- } else {
134
- MLACore::mla_debug_add( "<strong>mla_fetch_gallery_template( {$key}, {$type} )</strong> " . __( 'not found', 'media-library-assistant' ), MLACore::MLA_DEBUG_CATEGORY_ANY );
135
- return false;
136
- }
137
- }
138
-
139
  /**
140
  * Verify the presence of Ghostscript for mla_viewer
141
  *
@@ -426,6 +323,9 @@ class MLAShortcode_Support {
426
  'mla_caption' => ''
427
  );
428
 
 
 
 
429
  $mla_arguments = array_merge( array(
430
  'mla_output' => 'gallery',
431
  'mla_style' => MLACore::mla_get_option('default_style'),
@@ -524,7 +424,7 @@ class MLAShortcode_Support {
524
  * Apply default arguments set in the markup template
525
  */
526
  $template = isset( $attr['mla_markup'] ) ? $attr['mla_markup'] : $mla_arguments['mla_markup'];
527
- $arguments = self::mla_fetch_gallery_template( $template . '-arguments', 'markup' );
528
  if ( !empty( $arguments ) ) {
529
  $attr = wp_parse_args( $attr, self::_validate_attributes( array(), $arguments ) );
530
  }
@@ -543,7 +443,6 @@ class MLAShortcode_Support {
543
  }
544
 
545
  $attr_value = str_replace( '{+', '[+', str_replace( '+}', '+]', $attr_value ) );
546
- // $replacement_values = MLAData::mla_expand_field_level_parameters( $attr_value, NULL, $page_values );
547
  $replacement_values = MLAData::mla_expand_field_level_parameters( $attr_value, $attr, $page_values );
548
  $attr[ $attr_key ] = MLAData::mla_parse_template( $attr_value, $replacement_values );
549
  }
@@ -813,13 +712,13 @@ class MLAShortcode_Support {
813
  }
814
 
815
  if ( apply_filters( 'use_mla_gallery_style', $use_mla_gallery_style, $style_values['mla_style'] ) ) {
816
- $style_template = MLAShortcode_support::mla_fetch_gallery_template( $style_values['mla_style'], 'style' );
817
  if ( empty( $style_template ) ) {
818
  $style_values['mla_style'] = $default_arguments['mla_style'];
819
- $style_template = MLAShortcode_support::mla_fetch_gallery_template( $style_values['mla_style'], 'style' );
820
  if ( empty( $style_template ) ) {
821
  $style_values['mla_style'] = 'default';
822
- $style_template = MLAShortcode_support::mla_fetch_gallery_template( 'default', 'style' );
823
  }
824
  }
825
 
@@ -858,13 +757,13 @@ class MLAShortcode_Support {
858
 
859
  $markup_values = $style_values;
860
 
861
- $open_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
862
  if ( false === $open_template ) {
863
  $markup_values['mla_markup'] = $default_arguments['mla_markup'];
864
- $open_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
865
  if ( false === $open_template ) {
866
  $markup_values['mla_markup'] = 'default';
867
- $open_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
868
  }
869
  }
870
  if ( empty( $open_template ) ) {
@@ -877,14 +776,14 @@ class MLAShortcode_Support {
877
  if ( $html5 && ( 'default' == $markup_values['mla_markup'] ) ) {
878
  $row_open_template = '';
879
  } else{
880
- $row_open_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-row-open', 'markup' );
881
 
882
  if ( empty( $row_open_template ) ) {
883
  $row_open_template = '';
884
  }
885
  }
886
 
887
- $item_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-item', 'markup' );
888
  if ( empty( $item_template ) ) {
889
  $item_template = '';
890
  }
@@ -895,14 +794,14 @@ class MLAShortcode_Support {
895
  if ( $html5 && ( 'default' == $markup_values['mla_markup'] ) ) {
896
  $row_close_template = '';
897
  } else{
898
- $row_close_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-row-close', 'markup' );
899
 
900
  if ( empty( $row_close_template ) ) {
901
  $row_close_template = '';
902
  }
903
  }
904
 
905
- $close_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-close', 'markup' );
906
  if ( empty( $close_template ) ) {
907
  $close_template = '';
908
  }
@@ -919,8 +818,13 @@ class MLAShortcode_Support {
919
  $mla_alt_ids_output = $output = '';
920
  }
921
 
 
 
 
 
 
922
  if ($is_gallery ) {
923
- $markup_values = apply_filters( 'mla_gallery_open_values', $markup_values );
924
 
925
  $open_template = apply_filters( 'mla_gallery_open_template', $open_template );
926
  if ( empty( $open_template ) ) {
@@ -1011,6 +915,7 @@ class MLAShortcode_Support {
1011
  * fill in item-specific elements
1012
  */
1013
  $item_values['index'] = (string) 1 + $column_index;
 
1014
 
1015
  $item_values['excerpt'] = wptexturize( $attachment->post_excerpt );
1016
  $item_values['attachment_ID'] = $attachment->ID;
@@ -1037,9 +942,21 @@ class MLAShortcode_Support {
1037
  $item_values['description'] = wptexturize( $attachment->post_content );
1038
  $item_values['file_url'] = wptexturize( $attachment->guid );
1039
  $item_values['author_id'] = $attachment->post_author;
 
1040
  $item_values['caption'] = '';
1041
  $item_values['captiontag_content'] = '';
1042
 
 
 
 
 
 
 
 
 
 
 
 
1043
  $user = get_user_by( 'id', $attachment->post_author );
1044
  if ( isset( $user->data->display_name ) ) {
1045
  $item_values['author'] = wptexturize( $user->data->display_name );
@@ -1691,7 +1608,26 @@ class MLAShortcode_Support {
1691
  'mla_caption' => ''
1692
  );
1693
 
1694
- $mla_arguments = array_merge( array(
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1695
  'mla_output' => 'flat',
1696
  'mla_style' => NULL,
1697
  'mla_markup' => NULL,
@@ -1714,29 +1650,6 @@ class MLAShortcode_Support {
1714
  $mla_item_specific_arguments
1715
  );
1716
 
1717
- $defaults = array_merge(
1718
- self::$mla_get_terms_parameters,
1719
- array(
1720
- 'smallest' => 8,
1721
- 'largest' => 22,
1722
- 'unit' => 'pt',
1723
- 'separator' => "\n",
1724
- 'single_text' => '%d item',
1725
- 'multiple_text' => '%d items',
1726
-
1727
- 'echo' => false,
1728
- 'link' => 'view',
1729
- 'current_item' => '',
1730
- 'current_item_class' => 'mla_current_item',
1731
-
1732
- 'itemtag' => 'ul',
1733
- 'termtag' => 'li',
1734
- 'captiontag' => '',
1735
- 'columns' => MLACore::mla_get_option('mla_tag_cloud_columns')
1736
- ),
1737
- $mla_arguments
1738
- );
1739
-
1740
  /*
1741
  * Filter the attributes before $mla_page_parameter and "request:" prefix processing.
1742
  */
@@ -1793,11 +1706,30 @@ class MLAShortcode_Support {
1793
  'page_url' => get_page_link(),
1794
  );
1795
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1796
  /*
1797
  * Apply default arguments set in the markup template
1798
  */
1799
- $template = isset( $attr['mla_markup'] ) ? $attr['mla_markup'] : $mla_arguments['mla_markup'];
1800
- $arguments = self::mla_fetch_gallery_template( $template . '-arguments', 'markup' );
1801
  if ( !empty( $arguments ) ) {
1802
  $attr = wp_parse_args( $attr, self::_validate_attributes( array(), $arguments ) );
1803
  }
@@ -1816,7 +1748,6 @@ class MLAShortcode_Support {
1816
  }
1817
 
1818
  $attr_value = str_replace( '{+', '[+', str_replace( '+}', '+]', $attr_value ) );
1819
- // $replacement_values = MLAData::mla_expand_field_level_parameters( $attr_value, NULL, $page_values );
1820
  $replacement_values = MLAData::mla_expand_field_level_parameters( $attr_value, $attr, $page_values );
1821
  $attr[ $attr_key ] = MLAData::mla_parse_template( $attr_value, $replacement_values );
1822
  }
@@ -1899,16 +1830,33 @@ class MLAShortcode_Support {
1899
  }
1900
  }
1901
 
1902
- if ( $is_list = 'list' == $output_parameters[0] ) {
1903
  $default_style = 'none';
1904
- if ( empty( $arguments['captiontag'] ) ) {
1905
- $default_markup = 'tag-cloud-ul';
1906
- } else {
1907
- $default_markup = 'tag-cloud-dl';
1908
 
1909
- if ( 'dd' == $arguments['captiontag'] ) {
1910
- $arguments['itemtag'] = 'dl';
1911
- $arguments['termtag'] = 'dt';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1912
  }
1913
  }
1914
 
@@ -1982,7 +1930,11 @@ class MLAShortcode_Support {
1982
 
1983
  $cloud .= $arguments['mla_nolink_text'];
1984
  if ( 'array' == $arguments['mla_output'] ) {
1985
- return array( $cloud );
 
 
 
 
1986
  }
1987
 
1988
  if ( empty($arguments['echo']) ) {
@@ -2142,10 +2094,10 @@ class MLAShortcode_Support {
2142
  $style_template = $gallery_style = '';
2143
  $use_mla_tag_cloud_style = ( $is_grid || $is_list ) && ( 'none' != strtolower( $style_values['mla_style'] ) );
2144
  if ( apply_filters( 'use_mla_tag_cloud_style', $use_mla_tag_cloud_style, $style_values['mla_style'] ) ) {
2145
- $style_template = MLAShortcode_support::mla_fetch_gallery_template( $style_values['mla_style'], 'style' );
2146
  if ( empty( $style_template ) ) {
2147
  $style_values['mla_style'] = $default_style;
2148
- $style_template = MLAShortcode_support::mla_fetch_gallery_template( $default_style, 'style' );
2149
  }
2150
 
2151
  if ( ! empty ( $style_template ) ) {
@@ -2177,10 +2129,10 @@ class MLAShortcode_Support {
2177
  $markup_values = $style_values;
2178
 
2179
  if ( $is_grid || $is_list ) {
2180
- $open_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
2181
  if ( false === $open_template ) {
2182
  $markup_values['mla_markup'] = $default_markup;
2183
- $open_template = MLAShortcode_support::mla_fetch_gallery_template( $default_markup . '-open', 'markup' );
2184
  }
2185
 
2186
  if ( empty( $open_template ) ) {
@@ -2188,7 +2140,7 @@ class MLAShortcode_Support {
2188
  }
2189
 
2190
  if ( $is_grid ) {
2191
- $row_open_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-row-open', 'markup' );
2192
  if ( empty( $row_open_template ) ) {
2193
  $row_open_template = '';
2194
  }
@@ -2196,13 +2148,13 @@ class MLAShortcode_Support {
2196
  $row_open_template = '';
2197
  }
2198
 
2199
- $item_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-item', 'markup' );
2200
  if ( empty( $item_template ) ) {
2201
  $item_template = '';
2202
  }
2203
 
2204
  if ( $is_grid ) {
2205
- $row_close_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-row-close', 'markup' );
2206
  if ( empty( $row_close_template ) ) {
2207
  $row_close_template = '';
2208
  }
@@ -2210,7 +2162,7 @@ class MLAShortcode_Support {
2210
  $row_close_template = '';
2211
  }
2212
 
2213
- $close_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-close', 'markup' );
2214
  if ( empty( $close_template ) ) {
2215
  $close_template = '';
2216
  }
@@ -2327,17 +2279,26 @@ class MLAShortcode_Support {
2327
  $item_values['term_group'] = $tag->term_group;
2328
  $item_values['term_taxonomy_id'] = $tag->term_taxonomy_id;
2329
  $item_values['taxonomy'] = wptexturize( $tag->taxonomy );
2330
- $item_values['current_item_class'] = '';
2331
  $item_values['description'] = wptexturize( $tag->description );
2332
  $item_values['parent'] = $tag->parent;
2333
  $item_values['count'] = isset ( $tag->count ) ? $tag->count : 0;
2334
  $item_values['scaled_count'] = $tag->scaled_count;
2335
  $item_values['font_size'] = str_replace( ',', '.', ( $item_values['smallest'] + ( ( $item_values['scaled_count'] - $item_values['min_scaled_count'] ) * $item_values['font_step'] ) ) );
2336
  $item_values['link_url'] = $tag->link;
 
2337
  $item_values['editlink_url'] = $tag->edit_link;
2338
  $item_values['termlink_url'] = $tag->term_link;
2339
  // Added in the code below:
2340
- // 'caption', 'link_attributes', 'current_item_class', 'rollover_text', 'link_style', 'link_text', 'currentlink', 'editlink', 'termlink', 'thelink'
 
 
 
 
 
 
 
 
 
2341
 
2342
  if ( ! empty( $arguments['current_item'] ) ) {
2343
  if ( is_integer( $arguments['current_item'] ) ) {
@@ -2423,6 +2384,7 @@ class MLAShortcode_Support {
2423
  if ( ! empty( $link_href ) ) {
2424
  $item_values['thelink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $link_href, $item_values['rollover_text'], $item_values['link_style'], $item_values['link_text'] );
2425
  } elseif ( 'current' == $arguments['link'] ) {
 
2426
  $item_values['thelink'] = $item_values['currentlink'];
2427
  } elseif ( 'edit' == $arguments['link'] ) {
2428
  $item_values['thelink'] = $item_values['editlink'];
@@ -2559,79 +2521,108 @@ class MLAShortcode_Support {
2559
  * @return void Appends to &$list, &$links
2560
  */
2561
  public static function _compose_term_list( &$list, &$links, &$terms, &$markup_values, &$arguments, &$attr ) {
2562
- $term = current( $terms );
2563
- if ( $term->parent ) {
2564
- $markup_values['itemtag_class'] = 'class="term-list term-list-taxonomy-' . $term->taxonomy . ' children" ';
2565
- $markup_values['itemtag_id'] = 'id="' . $markup_values['selector'] . '-' . $term->parent . '" ';
 
2566
  } else {
2567
- $markup_values['itemtag_class'] = 'class="term-list term-list-taxonomy-' . $term->taxonomy . '" ';
2568
- $markup_values['itemtag_id'] = 'id="' . $markup_values['selector'] . '" ';
2569
  }
2570
 
2571
- /*
2572
- * These are the default parameters for term list display
2573
- */
2574
- $mla_item_specific_arguments = array(
2575
- 'mla_link_attributes' => '',
2576
- 'mla_link_class' => '',
2577
- // 'mla_link_style' => '',
2578
- 'mla_link_href' => '',
2579
- 'mla_link_text' => '',
2580
- 'mla_nolink_text' => '',
2581
- 'mla_rollover_text' => '',
2582
- 'mla_caption' => ''
2583
- );
2584
 
2585
  /*
2586
  * Determine output type and templates
2587
  */
2588
  $output_parameters = array_map( 'strtolower', array_map( 'trim', explode( ',', $arguments['mla_output'] ) ) );
2589
 
2590
- $is_list = 'list' == $output_parameters[0];
2591
  $is_dropdown = 'dropdown' == $output_parameters[0];
2592
  $is_checklist = 'checklist' == $output_parameters[0];
2593
  $is_hierarchical = !empty( $arguments['hierarchical'] ) && ( 'true' == strtolower( $arguments['hierarchical'] ) );
2594
 
2595
- if ( $is_list ) {
2596
- $open_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-open', 'markup' );
 
 
 
 
 
 
 
 
 
 
 
 
2597
  if ( false === $open_template ) {
2598
  $markup_values['mla_markup'] = $default_markup;
2599
- $open_template = MLAShortcode_support::mla_fetch_gallery_template( $default_markup . '-open', 'markup' );
 
 
 
 
 
 
 
 
 
2600
  }
2601
 
2602
  if ( empty( $open_template ) ) {
2603
  $open_template = '';
2604
  }
2605
 
2606
- $item_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-item', 'markup' );
 
 
 
 
 
 
 
 
 
2607
  if ( empty( $item_template ) ) {
2608
  $item_template = '';
2609
  }
2610
 
2611
- $close_template = MLAShortcode_support::mla_fetch_gallery_template( $markup_values['mla_markup'] . '-close', 'markup' );
 
 
 
 
 
 
 
 
 
2612
  if ( empty( $close_template ) ) {
2613
  $close_template = '';
2614
  }
2615
 
2616
- /*
2617
- * Look for gallery-level markup substitution parameters
2618
- */
2619
- $new_text = $open_template . $close_template;
2620
- $markup_values = MLAData::mla_expand_field_level_parameters( $new_text, $attr, $markup_values );
2621
-
2622
- $markup_values = apply_filters( 'mla_term_list_open_values', $markup_values );
2623
- $open_template = apply_filters( 'mla_term_list_open_template', $open_template );
2624
- if ( empty( $open_template ) ) {
2625
- $gallery_open = '';
2626
- } else {
2627
- $gallery_open = MLAData::mla_parse_template( $open_template, $markup_values );
 
 
 
 
2628
  }
2629
-
2630
- $list .= apply_filters( 'mla_term_list_open_parse', $gallery_open, $open_template, $markup_values );
2631
  } // is_list
2632
 
2633
  foreach ( $terms as $key => $term ) {
2634
- //error_log( __LINE__ . " _compose_term_list {$key} => " . var_export( $term, true ), 0 );
2635
  $item_values = $markup_values;
2636
 
2637
  /*
@@ -2644,39 +2635,50 @@ class MLAShortcode_Support {
2644
  $item_values['term_group'] = $term->term_group;
2645
  $item_values['term_taxonomy_id'] = $term->term_taxonomy_id;
2646
  $item_values['taxonomy'] = wptexturize( $term->taxonomy );
2647
- $item_values['current_item_class'] = '';
2648
  $item_values['description'] = wptexturize( $term->description );
2649
  $item_values['parent'] = $term->parent;
2650
- $item_values['level'] = $term->level;
2651
- $item_values['count'] = isset ( $term->count ) ? $term->count : 0;
2652
  $item_values['link_url'] = $term->link;
 
2653
  $item_values['editlink_url'] = $term->edit_link;
2654
  $item_values['termlink_url'] = $term->term_link;
2655
  $item_values['children'] = '';
2656
  $item_values['termtag_attributes'] = '';
2657
- $item_values['termtag_class'] = $term->parent ? 'class="term-list-term children" ' : 'class="term-list-term" ';
2658
- $item_values['termtag_id'] = sprintf( 'id="%1$s-%2$d" ', $item_values['taxonomy'], $item_values['term_id'] );
2659
  // Added in the code below:
2660
- // 'current_item_class', 'caption', 'link_attributes', 'rollover_text', 'link_style', 'link_text', 'currentlink', 'editlink', 'termlink', 'thelink'
2661
-
2662
- if ( ! empty( $arguments['current_item'] ) ) {
2663
- if ( is_integer( $arguments['current_item'] ) ) {
2664
- if ( $arguments['current_item'] == $term->term_id ) {
2665
- $item_values['current_item_class'] = $arguments['current_item_class'];
2666
- }
2667
- } else {
2668
- if ( $arguments['current_item'] == $term->slug ) {
2669
- $item_values['current_item_class'] = $arguments['current_item_class'];
 
 
 
 
 
 
 
 
 
 
 
 
 
2670
  }
2671
  }
2672
  }
2673
-
2674
 
2675
  /*
2676
  * Add item_specific field-level substitution parameters
2677
  */
2678
  $new_text = isset( $item_template ) ? $item_template : '';
2679
- foreach( $mla_item_specific_arguments as $index => $value ) {
2680
  $new_text .= str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments[ $index ] ) );
2681
  }
2682
 
@@ -2729,19 +2731,23 @@ class MLAShortcode_Support {
2729
  }
2730
 
2731
  if ( ! empty( $arguments['show_count'] ) && ( 'true' == strtolower( $arguments['show_count'] ) ) ) {
2732
- $item_values['link_text'] .= ' (' . $item_values['count'] . ')';
 
 
 
2733
  }
2734
 
2735
  /*
2736
  * Currentlink, editlink, termlink and thelink TODO - link style
2737
  */
2738
- $item_values['currentlink'] = sprintf( '<a %1$shref="%2$s?current_item=%3$d" title="%4$s" style="%5$s">%6$s</a>', $link_attributes, $item_values['page_url'], $item_values['term_id'], $item_values['rollover_text'], '', $item_values['link_text'] );
2739
  $item_values['editlink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $item_values['editlink_url'], $item_values['rollover_text'], '', $item_values['link_text'] );
2740
  $item_values['termlink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $item_values['termlink_url'], $item_values['rollover_text'], '', $item_values['link_text'] );
2741
 
2742
  if ( ! empty( $link_href ) ) {
2743
  $item_values['thelink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $link_href, $item_values['rollover_text'], '', $item_values['link_text'] );
2744
  } elseif ( 'current' == $arguments['link'] ) {
 
2745
  $item_values['thelink'] = $item_values['currentlink'];
2746
  } elseif ( 'edit' == $arguments['link'] ) {
2747
  $item_values['thelink'] = $item_values['editlink'];
@@ -2752,13 +2758,47 @@ class MLAShortcode_Support {
2752
  } else {
2753
  $item_values['thelink'] = $item_values['link_text'];
2754
  }
2755
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2756
  $child_links = array();
2757
  if ( $is_hierarchical && !empty( $term->children ) ) {
2758
  self::_compose_term_list( $item_values['children'], $child_links, $term->children, $markup_values, $arguments, $attr );
 
2759
  }
2760
 
2761
- if ( $is_list ) {
2762
  /*
2763
  * item markup
2764
  */
@@ -2776,13 +2816,14 @@ class MLAShortcode_Support {
2776
  }
2777
  } // foreach tag
2778
 
2779
- if ( $is_list ) {
2780
- $markup_values = apply_filters( 'mla_term_list_close_values', $markup_values );
2781
- $close_template = apply_filters( 'mla_term_list_close_template', $close_template );
2782
- $parse_value = MLAData::mla_parse_template( $close_template, $markup_values );
2783
- $list .= apply_filters( 'mla_term_list_close_parse', $parse_value, $close_template, $markup_values );
2784
- } // is_list
2785
- else {
 
2786
  switch ( $markup_values['mla_output'] ) {
2787
  case 'array' :
2788
  $list =& $links;
@@ -2793,9 +2834,27 @@ class MLAShortcode_Support {
2793
  break;
2794
  } // switch format
2795
  }
2796
- //error_log( __LINE__ . ' _compose links = ' . var_export( $links, true ), 0 );
2797
  }
2798
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2799
  /**
2800
  * The MLA Term List support function.
2801
  *
@@ -2831,72 +2890,72 @@ class MLAShortcode_Support {
2831
  );
2832
  }
2833
 
2834
- /*
2835
- * These are the default parameters for term list display
2836
- */
2837
- $mla_item_specific_arguments = array(
2838
- 'mla_link_attributes' => '',
2839
- 'mla_link_class' => '',
2840
- // 'mla_link_style' => '',
2841
- 'mla_link_href' => '',
2842
- 'mla_link_text' => '',
2843
- 'mla_nolink_text' => '',
2844
- 'mla_rollover_text' => '',
2845
- 'mla_caption' => ''
2846
- );
2847
-
2848
- $mla_arguments = array_merge( array(
2849
- 'mla_output' => 'list',
2850
- 'hierarchical' => 'true',
2851
- 'depth' => 0,
2852
- 'child_of' => 0,
2853
- 'include_tree' => NULL,
2854
- 'exclude_tree' => NULL,
2855
- 'mla_style' => NULL,
2856
- 'mla_markup' => NULL,
2857
- 'mla_target' => '',
2858
- 'mla_debug' => false,
2859
-
2860
- // Pagination parameters
2861
- //'term_id' => NULL,
2862
- //'mla_end_size'=> 1,
2863
- //'mla_mid_size' => 2,
2864
- //'mla_prev_text' => '&laquo; ' . __( 'Previous', 'media-library-assistant' ),
2865
- //'mla_next_text' => __( 'Next', 'media-library-assistant' ) . ' &raquo;',
2866
- //'mla_page_parameter' => 'mla_list_current',
2867
- //'mla_list_current' => NULL,
2868
- //'mla_paginate_total' => NULL,
2869
- //'mla_paginate_type' => 'plain'
2870
- ),
2871
- $mla_item_specific_arguments
2872
- );
2873
-
2874
  $defaults = array_merge(
2875
  self::$mla_get_terms_parameters,
2876
  array(
 
 
 
 
 
2877
  'separator' => "\n",
2878
  'single_text' => '%d item',
2879
  'multiple_text' => '%d items',
2880
-
2881
- 'echo' => false,
2882
- 'link' => 'view',
2883
  'current_item' => '',
2884
  'current_item_class' => 'mla_current_item',
 
2885
  'show_count' => false,
2886
 
 
 
2887
  'itemtag' => 'ul',
2888
  'termtag' => 'li',
2889
  'captiontag' => '',
 
 
 
 
 
 
 
 
 
 
 
 
 
2890
  ),
2891
- $mla_arguments
2892
  );
2893
 
2894
  /*
2895
- * Filter the attributes before "request:" prefix processing.
2896
  */
2897
 
2898
  $attr = apply_filters( 'mla_term_list_raw_attributes', $attr );
2899
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2900
  // $instance supports multiple lists in one page/post
2901
  static $instance = 0;
2902
  $instance++;
@@ -2926,11 +2985,46 @@ class MLAShortcode_Support {
2926
  'page_url' => get_page_link(),
2927
  );
2928
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2929
  /*
2930
  * Apply default arguments set in the markup template
2931
  */
2932
- $template = isset( $attr['mla_markup'] ) ? $attr['mla_markup'] : $mla_arguments['mla_markup'];
2933
- $arguments = self::mla_fetch_gallery_template( $template . '-arguments', 'markup' );
2934
  if ( !empty( $arguments ) ) {
2935
  $attr = wp_parse_args( $attr, self::_validate_attributes( array(), $arguments ) );
2936
  }
@@ -2950,7 +3044,7 @@ class MLAShortcode_Support {
2950
  * item-specific Display Content parameters must be evaluated
2951
  * later, when all of the information is available.
2952
  */
2953
- if ( array_key_exists( $attr_key, $mla_item_specific_arguments ) ) {
2954
  continue;
2955
  }
2956
 
@@ -2963,10 +3057,31 @@ class MLAShortcode_Support {
2963
  $arguments = shortcode_atts( $defaults, $attr );
2964
 
2965
  /*
2966
- * Clean up the current_item to separate term_id from slug
 
2967
  */
2968
- if ( ! empty( $arguments['current_item'] ) && ctype_digit( $arguments['current_item'] ) ) {
2969
- $arguments['current_item'] = absint( $arguments['current_item'] );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2970
  }
2971
 
2972
  $arguments = apply_filters( 'mla_term_list_arguments', $arguments );
@@ -2992,16 +3107,33 @@ class MLAShortcode_Support {
2992
  */
2993
  $output_parameters = array_map( 'strtolower', array_map( 'trim', explode( ',', $arguments['mla_output'] ) ) );
2994
 
2995
- if ( $is_list = 'list' == $output_parameters[0] ) {
2996
  $default_style = 'none';
2997
- if ( empty( $arguments['captiontag'] ) ) {
2998
- $default_markup = 'term-list-ul';
2999
- } else {
3000
- $default_markup = 'term-list-dl';
3001
 
3002
- if ( 'dd' == $arguments['captiontag'] ) {
3003
- $arguments['itemtag'] = 'dl';
3004
- $arguments['termtag'] = 'dt';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3005
  }
3006
  }
3007
 
@@ -3017,6 +3149,8 @@ class MLAShortcode_Support {
3017
  if ( $is_dropdown = 'dropdown' == $output_parameters[0] ) {
3018
  $default_style = 'none';
3019
  $default_markup = 'term-list-dropdown';
 
 
3020
 
3021
  if ( NULL == $arguments['mla_style'] ) {
3022
  $arguments['mla_style'] = $default_style;
@@ -3030,6 +3164,7 @@ class MLAShortcode_Support {
3030
  if ( $is_checklist = 'checklist' == $output_parameters[0] ) {
3031
  $default_style = 'none';
3032
  $default_markup = 'term-list-checklist';
 
3033
 
3034
  if ( NULL == $arguments['mla_style'] ) {
3035
  $arguments['mla_style'] = $default_style;
@@ -3066,7 +3201,6 @@ class MLAShortcode_Support {
3066
  }
3067
 
3068
  $tags = self::mla_get_terms( $arguments );
3069
-
3070
  if ( !empty( $exclude_later ) ) {
3071
  $arguments['exclude'] = $exclude_later;
3072
  }
@@ -3099,6 +3233,7 @@ class MLAShortcode_Support {
3099
  $found_rows = count( $tags );
3100
  }
3101
 
 
3102
  if ( 0 == $found_rows ) {
3103
  if ( self::$mla_debug ) {
3104
  MLACore::mla_debug_add( '<strong>' . __( 'mla_debug empty list', 'media-library-assistant' ) . '</strong>, query = ' . var_export( $arguments, true ) );
@@ -3111,17 +3246,50 @@ class MLAShortcode_Support {
3111
  $list = '';
3112
  }
3113
 
3114
- $list .= $arguments['mla_nolink_text'];
3115
  if ( 'array' == $arguments['mla_output'] ) {
3116
- return array( $list );
 
 
 
 
 
 
3117
  }
3118
 
3119
- if ( empty($arguments['echo']) ) {
3120
- return $list;
3121
- }
 
 
3122
 
3123
- echo $list;
3124
- return;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3125
  }
3126
 
3127
  if ( self::$mla_debug ) {
@@ -3155,38 +3323,64 @@ class MLAShortcode_Support {
3155
  $found_rows = count( $tags );
3156
  }
3157
  } else {
3158
- // TODO Make this conditional on $arguments['link']
3159
- foreach ( $tags as $key => $tag ) {
3160
- $link = get_edit_tag_link( $tag->term_id, $tag->taxonomy );
3161
- if ( ! is_wp_error( $link ) ) {
3162
- $tags[ $key ]->edit_link = $link;
3163
- $link = get_term_link( intval($tag->term_id), $tag->taxonomy );
3164
- $tags[ $key ]->term_link = $link;
3165
- }
3166
-
3167
- if ( is_wp_error( $link ) ) {
3168
- $list = '<strong>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . $link->get_error_message() . '</strong>, ' . $link->get_error_data( $link->get_error_code() );
3169
-
3170
- if ( 'array' == $arguments['mla_output'] ) {
3171
- return array( $list );
3172
  }
3173
 
3174
- if ( empty($arguments['echo']) ) {
3175
- return $list;
 
 
 
 
 
 
 
 
 
 
 
3176
  }
3177
 
3178
- echo $list;
3179
- return;
3180
- }
3181
-
3182
- if ( 'edit' == $arguments['link'] ) {
3183
- $tags[ $key ]->link = $tags[ $key ]->edit_link;
3184
- } else {
3185
- $tags[ $key ]->link = $tags[ $key ]->term_link;
3186
- }
3187
- } // foreach tag
3188
  }
3189
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3190
  $style_values = array_merge( $page_values, array(
3191
  'mla_output' => $arguments['mla_output'],
3192
  'mla_style' => $arguments['mla_style'],
@@ -3197,24 +3391,10 @@ class MLAShortcode_Support {
3197
  'termtag' => tag_escape( $arguments['termtag'] ),
3198
  'captiontag' => tag_escape( $arguments['captiontag'] ),
3199
  'itemtag_attributes' => '',
3200
- 'itemtag_class' => 'class="term-list term-list-taxonomy-' . implode( '-', $arguments['taxonomy'] ) . '" ',
3201
- 'itemtag_id' => 'id="' . $page_values['selector'] . '" ',
3202
- //'columns' => $columns,
3203
- //'itemwidth' => $width_string,
3204
- //'margin' => $margin_string,
3205
- //'float' => $float,
3206
  'all_found_rows' => $found_rows,
3207
  'found_rows' => $found_rows,
3208
- //'min_count' => $min_count,
3209
- //'max_count' => $max_count,
3210
- //'min_scaled_count' => $min_scaled_count,
3211
- //'max_scaled_count' => $max_scaled_count,
3212
- //'spread' => $spread,
3213
- //'smallest' => $arguments['smallest'],
3214
- //'largest' => $arguments['largest'],
3215
- //'unit' => $arguments['unit'],
3216
- //'font_spread' => $font_spread,
3217
- //'font_step' => $font_step,
3218
  'separator' => $arguments['separator'],
3219
  'single_text' => $arguments['single_text'],
3220
  'multiple_text' => $arguments['multiple_text'],
@@ -3225,10 +3405,10 @@ class MLAShortcode_Support {
3225
  $style_template = $gallery_style = '';
3226
  $use_mla_term_list_style = $is_list && ( 'none' != strtolower( $style_values['mla_style'] ) );
3227
  if ( apply_filters( 'use_mla_term_list_style', $use_mla_term_list_style, $style_values['mla_style'] ) ) {
3228
- $style_template = MLAShortcode_support::mla_fetch_gallery_template( $style_values['mla_style'], 'style' );
3229
  if ( empty( $style_template ) ) {
3230
  $style_values['mla_style'] = $default_style;
3231
- $style_template = MLAShortcode_support::mla_fetch_gallery_template( $default_style, 'style' );
3232
  }
3233
 
3234
  if ( ! empty ( $style_template ) ) {
@@ -3246,7 +3426,7 @@ class MLAShortcode_Support {
3246
 
3247
  $list .= $gallery_style;
3248
  $markup_values = $style_values;
3249
-
3250
  /*
3251
  * Accumulate links for flat and array output
3252
  */
@@ -3419,7 +3599,6 @@ class MLAShortcode_Support {
3419
 
3420
  $new_attributes = ( ! empty( $arguments['mla_link_attributes'] ) ) ? esc_attr( self::_process_shortcode_parameter( $arguments['mla_link_attributes'], $markup_values ) ) . ' ' : '';
3421
 
3422
- //$new_base = ( ! empty( $arguments['mla_link_href'] ) ) ? esc_attr( self::_process_shortcode_parameter( $arguments['mla_link_href'], $markup_values ) ) : $markup_values['new_url'];
3423
  $new_base = ( ! empty( $arguments['mla_link_href'] ) ) ? self::_process_shortcode_parameter( $arguments['mla_link_href'], $markup_values ) : $markup_values['new_url'];
3424
 
3425
  /*
@@ -3707,7 +3886,6 @@ class MLAShortcode_Support {
3707
  }
3708
 
3709
  if ( ! empty( $arguments['mla_link_href'] ) ) {
3710
- //$new_link .= 'href="' . esc_attr( self::_process_shortcode_parameter( $arguments['mla_link_href'], $markup_values ) ) . '" >';
3711
  $new_link .= 'href="' . self::_process_shortcode_parameter( $arguments['mla_link_href'], $markup_values ) . '" >';
3712
  } else {
3713
  $new_link .= 'href="' . $markup_values['new_url'] . '" >';
@@ -3948,6 +4126,7 @@ class MLAShortcode_Support {
3948
  // Terms Search
3949
  'mla_terms_phrases' => '',
3950
  'mla_terms_taxonomies' => '',
 
3951
  'mla_phrase_connector' => '',
3952
  'mla_term_connector' => '',
3953
  // Search
@@ -4333,6 +4512,13 @@ class MLAShortcode_Support {
4333
  MLAQuery::$search_parameters[ $key ] = 'AND';
4334
  }
4335
 
 
 
 
 
 
 
 
4336
  unset( $arguments[ $key ] );
4337
  break;
4338
  case 'mla_terms_phrases':
@@ -4509,7 +4695,11 @@ class MLAShortcode_Support {
4509
 
4510
  if ( ! empty($query_arguments['include']) ) {
4511
  $incposts = wp_parse_id_list( $query_arguments['include'] );
4512
- $query_arguments['posts_per_page'] = count($incposts); // only the number of posts included
 
 
 
 
4513
  $query_arguments['post__in'] = $incposts;
4514
  unset( $query_arguments['include'] );
4515
  } elseif ( ! empty($query_arguments['exclude']) ) {
@@ -4561,6 +4751,12 @@ class MLAShortcode_Support {
4561
  if ( ! empty( MLAQuery::$search_parameters['mla_terms_phrases'] ) ) {
4562
  MLAQuery::$search_parameters['mla_terms_search']['phrases'] = MLAQuery::$search_parameters['mla_terms_phrases'];
4563
 
 
 
 
 
 
 
4564
  if ( empty( MLAQuery::$search_parameters['mla_phrase_connector'] ) ) {
4565
  MLAQuery::$search_parameters['mla_terms_search']['radio_phrases'] = 'AND';
4566
  } else {
@@ -5257,7 +5453,6 @@ class MLAShortcode_Support {
5257
 
5258
  $tags['found_rows'] = $found_rows;
5259
  $tags = apply_filters( 'mla_get_terms_query_results', $tags );
5260
- //error_log( __LINE__ . ' mla_get_terms tags = ' . var_export( $tags, true ), 0 );
5261
 
5262
  return $tags;
5263
  } // mla_get_terms
@@ -5327,10 +5522,6 @@ class MLAShortcode_Support {
5327
  $child_ids[ $term->taxonomy ][ $term->term_id ] = absint( $term->parent );
5328
  }
5329
  }
5330
- //error_log( __LINE__ . ' _get_term_tree root terms = ' . var_export( $term_tree, true ), 0 );
5331
- //error_log( __LINE__ . ' _get_term_tree root ids = ' . var_export( $root_ids, true ), 0 );
5332
- //error_log( __LINE__ . ' _get_term_tree parents = ' . var_export( $parents, true ), 0 );
5333
- //error_log( __LINE__ . ' _get_term_tree child ids = ' . var_export( $child_ids, true ), 0 );
5334
 
5335
  /*
5336
  * Collapse multi-level children
@@ -5345,7 +5536,6 @@ class MLAShortcode_Support {
5345
  foreach( $tax_parents as $parent_id => $children ) {
5346
  foreach( $children as $index => $child ) {
5347
  if ( ! array_key_exists( $child->term_id, $tax_parents ) ) {
5348
- //error_log( __LINE__ . " _get_term_tree leaf = " . var_export( $child, true ), 0 );
5349
 
5350
  if ( array_key_exists( $child->parent, $root_ids[ $taxonomy ] ) ) {
5351
  // Found a root node - attach the leaf
@@ -5353,9 +5543,7 @@ class MLAShortcode_Support {
5353
  } elseif ( isset( $child_ids[ $taxonomy ][ $child->parent ] ) ) {
5354
  // Found a non-root parent node - attach the leaf
5355
  $the_parent = $child_ids[ $taxonomy ][ $child->parent ];
5356
- //error_log( __LINE__ . " _get_term_tree tax_parents[{$the_parent}] = " . var_export( $tax_parents[ $the_parent ], true ), 0 );
5357
  foreach( $tax_parents[ $the_parent ] as $candidate_index => $candidate ) {
5358
- //error_log( __LINE__ . " _get_term_tree tax_parents[{$the_parent}][ {$candidate_index} ] = " . var_export( $candidate, true ), 0 );
5359
  if ( $candidate->term_id == $child->parent ) {
5360
  $parents[ $taxonomy ][ $the_parent ][ $candidate_index ]->children[] = $child;
5361
  break;
@@ -5374,8 +5562,7 @@ class MLAShortcode_Support {
5374
  } // leaf node; no children
5375
  } // foreach child
5376
  } // foreach parent_id
5377
- //error_log( __LINE__ . ' _get_term_tree tax_parents = ' . var_export( $tax_parents, true ), 0 );
5378
- }
5379
  } // foreach taxonomy
5380
 
5381
  /*
@@ -5406,7 +5593,6 @@ class MLAShortcode_Support {
5406
  if ( $exclude_tree ) {
5407
  self::_remove_exclude_tree( $term_tree[ $taxonomy ], $exclude_tree );
5408
  } // $include_tree
5409
- error_log( __LINE__ . ' _get_term_tree root terms = ' . var_export( $term_tree, true ), 0 );
5410
 
5411
  $term_count = 0;
5412
  $root_limit = count( $term_tree[ $taxonomy ] );
@@ -5425,13 +5611,11 @@ error_log( __LINE__ . ' _get_term_tree root terms = ' . var_export( $term_tree,
5425
  }
5426
  }
5427
 
5428
- error_log( __LINE__ . " _get_term_tree( {$taxonomy} ) terms = " . var_export( $term_count, true ), 0 );
5429
  $term_tree[ $taxonomy ]['found_rows'] = $term_count;
5430
  $all_terms_count += $term_count;
5431
  }
5432
 
5433
  $term_tree['found_rows'] = $all_terms_count;
5434
- error_log( __LINE__ . ' _get_term_tree root terms = ' . var_export( $term_tree, true ), 0 );
5435
  return $term_tree;
5436
  } // _get_term_tree
5437
 
@@ -5632,6 +5816,4 @@ error_log( __LINE__ . ' _get_term_tree root terms = ' . var_export( $term_tree,
5632
  }
5633
  }
5634
  } // Class MLAShortcode_Support
5635
-
5636
- MLAShortcode_Support::mla_load_custom_templates();
5637
  ?>
19
  MLAData::initialize();
20
  }
21
 
22
+ if ( !class_exists( 'MLATemplate_Support' ) ) {
23
+ require_once( MLA_PLUGIN_PATH . 'includes/class-mla-template-support.php' );
24
+ }
25
+ //error_log( __LINE__ . ' DEBUG: MLAShortcode_Support $_REQUEST = ' . var_export( $_REQUEST, true ), 0 );
26
+
27
  /**
28
  * Class MLA (Media Library Assistant) Shortcode Support provides the functions that
29
  * implement the [mla_gallery] and [mla_tag_cloud] shortcodes. It also implements the
33
  * @since 2.20
34
  */
35
  class MLAShortcode_Support {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  /**
37
  * Verify the presence of Ghostscript for mla_viewer
38
  *
323
  'mla_caption' => ''
324
  );
325
 
326
+ /*
327
+ * These arguments must not be passed on to alternate gallery shortcodes
328
+ */
329
  $mla_arguments = array_merge( array(
330
  'mla_output' => 'gallery',
331
  'mla_style' => MLACore::mla_get_option('default_style'),
424
  * Apply default arguments set in the markup template
425
  */
426
  $template = isset( $attr['mla_markup'] ) ? $attr['mla_markup'] : $mla_arguments['mla_markup'];
427
+ $arguments = MLATemplate_Support::mla_fetch_custom_template( $template, 'gallery', 'markup', 'arguments' );
428
  if ( !empty( $arguments ) ) {
429
  $attr = wp_parse_args( $attr, self::_validate_attributes( array(), $arguments ) );
430
  }
443
  }
444
 
445
  $attr_value = str_replace( '{+', '[+', str_replace( '+}', '+]', $attr_value ) );
 
446
  $replacement_values = MLAData::mla_expand_field_level_parameters( $attr_value, $attr, $page_values );
447
  $attr[ $attr_key ] = MLAData::mla_parse_template( $attr_value, $replacement_values );
448
  }
712
  }
713
 
714
  if ( apply_filters( 'use_mla_gallery_style', $use_mla_gallery_style, $style_values['mla_style'] ) ) {
715
+ $style_template = MLATemplate_support::mla_fetch_custom_template( $style_values['mla_style'], 'gallery', 'style' );
716
  if ( empty( $style_template ) ) {
717
  $style_values['mla_style'] = $default_arguments['mla_style'];
718
+ $style_template = MLATemplate_support::mla_fetch_custom_template( $style_values['mla_style'], 'gallery', 'style' );
719
  if ( empty( $style_template ) ) {
720
  $style_values['mla_style'] = 'default';
721
+ $style_template = MLATemplate_support::mla_fetch_custom_template( 'default', 'gallery', 'style' );
722
  }
723
  }
724
 
757
 
758
  $markup_values = $style_values;
759
 
760
+ $open_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'gallery', 'markup', 'open' );
761
  if ( false === $open_template ) {
762
  $markup_values['mla_markup'] = $default_arguments['mla_markup'];
763
+ $open_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'gallery', 'markup', 'open' );
764
  if ( false === $open_template ) {
765
  $markup_values['mla_markup'] = 'default';
766
+ $open_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'gallery', 'markup', 'open' );
767
  }
768
  }
769
  if ( empty( $open_template ) ) {
776
  if ( $html5 && ( 'default' == $markup_values['mla_markup'] ) ) {
777
  $row_open_template = '';
778
  } else{
779
+ $row_open_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'gallery', 'markup', 'row-open' );
780
 
781
  if ( empty( $row_open_template ) ) {
782
  $row_open_template = '';
783
  }
784
  }
785
 
786
+ $item_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'gallery', 'markup', 'item' );
787
  if ( empty( $item_template ) ) {
788
  $item_template = '';
789
  }
794
  if ( $html5 && ( 'default' == $markup_values['mla_markup'] ) ) {
795
  $row_close_template = '';
796
  } else{
797
+ $row_close_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'gallery', 'markup', 'row-close' );
798
 
799
  if ( empty( $row_close_template ) ) {
800
  $row_close_template = '';
801
  }
802
  }
803
 
804
+ $close_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'gallery', 'markup', 'close' );
805
  if ( empty( $close_template ) ) {
806
  $close_template = '';
807
  }
818
  $mla_alt_ids_output = $output = '';
819
  }
820
 
821
+ /*
822
+ * These $markup_values are used for both pagination and gallery output
823
+ */
824
+ $markup_values = apply_filters( 'mla_gallery_open_values', $markup_values );
825
+
826
  if ($is_gallery ) {
827
+ //$markup_values = apply_filters( 'mla_gallery_open_values', $markup_values );
828
 
829
  $open_template = apply_filters( 'mla_gallery_open_template', $open_template );
830
  if ( empty( $open_template ) ) {
915
  * fill in item-specific elements
916
  */
917
  $item_values['index'] = (string) 1 + $column_index;
918
+ $item_values['last_in_row'] = '';
919
 
920
  $item_values['excerpt'] = wptexturize( $attachment->post_excerpt );
921
  $item_values['attachment_ID'] = $attachment->ID;
942
  $item_values['description'] = wptexturize( $attachment->post_content );
943
  $item_values['file_url'] = wptexturize( $attachment->guid );
944
  $item_values['author_id'] = $attachment->post_author;
945
+ $item_values['author'] = '';
946
  $item_values['caption'] = '';
947
  $item_values['captiontag_content'] = '';
948
 
949
+ $item_values['pagelink'] = '';
950
+ $item_values['filelink'] = '';
951
+ $item_values['link'] = '';
952
+ $item_values['pagelink_url'] = '';
953
+ $item_values['filelink_url'] = '';
954
+ $item_values['link_url'] = '';
955
+ $item_values['thumbnail_content'] = '';
956
+ $item_values['thumbnail_width'] = '';
957
+ $item_values['thumbnail_height'] = '';
958
+ $item_values['thumbnail_url'] = '';
959
+
960
  $user = get_user_by( 'id', $attachment->post_author );
961
  if ( isset( $user->data->display_name ) ) {
962
  $item_values['author'] = wptexturize( $user->data->display_name );
1608
  'mla_caption' => ''
1609
  );
1610
 
1611
+ $defaults = array_merge(
1612
+ self::$mla_get_terms_parameters,
1613
+ array(
1614
+ 'smallest' => 8,
1615
+ 'largest' => 22,
1616
+ 'unit' => 'pt',
1617
+ 'separator' => "\n",
1618
+ 'single_text' => '%d item',
1619
+ 'multiple_text' => '%d items',
1620
+
1621
+ 'echo' => false,
1622
+ 'link' => 'view',
1623
+ 'current_item' => '',
1624
+ 'current_item_class' => 'mla_current_item',
1625
+
1626
+ 'itemtag' => 'ul',
1627
+ 'termtag' => 'li',
1628
+ 'captiontag' => '',
1629
+ 'columns' => MLACore::mla_get_option('mla_tag_cloud_columns'),
1630
+
1631
  'mla_output' => 'flat',
1632
  'mla_style' => NULL,
1633
  'mla_markup' => NULL,
1650
  $mla_item_specific_arguments
1651
  );
1652
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1653
  /*
1654
  * Filter the attributes before $mla_page_parameter and "request:" prefix processing.
1655
  */
1706
  'page_url' => get_page_link(),
1707
  );
1708
 
1709
+ /*
1710
+ * Determine markup template to get default arguments
1711
+ */
1712
+ $arguments = shortcode_atts( $defaults, $attr );
1713
+ if ( $arguments['mla_markup'] ) {
1714
+ $template = $arguments['mla_markup'];
1715
+ } else {
1716
+ $output_parameters = array_map( 'strtolower', array_map( 'trim', explode( ',', $arguments['mla_output'] ) ) );
1717
+
1718
+ if ( 'grid' == $output_parameters[0] ) {
1719
+ $template = MLACore::mla_get_option('default_tag_cloud_markup');
1720
+ } elseif ( in_array( $output_parameters[0], array( 'list', 'ulist', 'olist', 'dlist' ) ) ) {
1721
+ if ( ( 'dlist' == $output_parameters[0] ) || ('list' == $output_parameters[0] && 'dd' == $arguments['captiontag'] ) ) {
1722
+ $template = 'tag-cloud-dl';
1723
+ } else {
1724
+ $template = 'tag-cloud-ul';
1725
+ }
1726
+ }
1727
+ }
1728
+
1729
  /*
1730
  * Apply default arguments set in the markup template
1731
  */
1732
+ $arguments = MLATemplate_Support::mla_fetch_custom_template( $template, 'tag-cloud', 'markup', 'arguments' );
 
1733
  if ( !empty( $arguments ) ) {
1734
  $attr = wp_parse_args( $attr, self::_validate_attributes( array(), $arguments ) );
1735
  }
1748
  }
1749
 
1750
  $attr_value = str_replace( '{+', '[+', str_replace( '+}', '+]', $attr_value ) );
 
1751
  $replacement_values = MLAData::mla_expand_field_level_parameters( $attr_value, $attr, $page_values );
1752
  $attr[ $attr_key ] = MLAData::mla_parse_template( $attr_value, $replacement_values );
1753
  }
1830
  }
1831
  }
1832
 
1833
+ if ( $is_list = in_array( $output_parameters[0], array( 'list', 'ulist', 'olist', 'dlist' ) ) ) {
1834
  $default_style = 'none';
 
 
 
 
1835
 
1836
+ if ( 'list' == $output_parameters[0] && 'dd' == $arguments['captiontag'] ) {
1837
+ $default_markup = 'tag-cloud-dl';
1838
+ $arguments['itemtag'] = 'dl';
1839
+ $arguments['termtag'] = 'dt';
1840
+ } else {
1841
+ $default_markup = 'tag-cloud-ul';
1842
+ $arguments['termtag'] = 'li';
1843
+ $arguments['captiontag'] = '';
1844
+
1845
+ switch ( $output_parameters[0] ) {
1846
+ case 'ulist':
1847
+ $arguments['itemtag'] = 'ul';
1848
+ break;
1849
+ case 'olist':
1850
+ $arguments['itemtag'] = 'ol';
1851
+ break;
1852
+ case 'dlist':
1853
+ $default_markup = 'tag-cloud-dl';
1854
+ $arguments['itemtag'] = 'dl';
1855
+ $arguments['termtag'] = 'dt';
1856
+ $arguments['captiontag'] = 'dd';
1857
+ break;
1858
+ default:
1859
+ $arguments['itemtag'] = 'ul';
1860
  }
1861
  }
1862
 
1930
 
1931
  $cloud .= $arguments['mla_nolink_text'];
1932
  if ( 'array' == $arguments['mla_output'] ) {
1933
+ if ( empty( $cloud ) ) {
1934
+ return array();
1935
+ } else {
1936
+ return array( $cloud );
1937
+ }
1938
  }
1939
 
1940
  if ( empty($arguments['echo']) ) {
2094
  $style_template = $gallery_style = '';
2095
  $use_mla_tag_cloud_style = ( $is_grid || $is_list ) && ( 'none' != strtolower( $style_values['mla_style'] ) );
2096
  if ( apply_filters( 'use_mla_tag_cloud_style', $use_mla_tag_cloud_style, $style_values['mla_style'] ) ) {
2097
+ $style_template = MLATemplate_support::mla_fetch_custom_template( $style_values['mla_style'], 'tag-cloud', 'style' );
2098
  if ( empty( $style_template ) ) {
2099
  $style_values['mla_style'] = $default_style;
2100
+ $style_template = MLATemplate_support::mla_fetch_custom_template( $default_style, 'tag-cloud', 'style' );
2101
  }
2102
 
2103
  if ( ! empty ( $style_template ) ) {
2129
  $markup_values = $style_values;
2130
 
2131
  if ( $is_grid || $is_list ) {
2132
+ $open_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'tag-cloud', 'markup', 'open' );
2133
  if ( false === $open_template ) {
2134
  $markup_values['mla_markup'] = $default_markup;
2135
+ $open_template = MLATemplate_support::mla_fetch_custom_template( $default_markup, 'tag-cloud', 'markup', 'open' );
2136
  }
2137
 
2138
  if ( empty( $open_template ) ) {
2140
  }
2141
 
2142
  if ( $is_grid ) {
2143
+ $row_open_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'tag-cloud', 'markup', 'row-open' );
2144
  if ( empty( $row_open_template ) ) {
2145
  $row_open_template = '';
2146
  }
2148
  $row_open_template = '';
2149
  }
2150
 
2151
+ $item_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'tag-cloud', 'markup', 'item' );
2152
  if ( empty( $item_template ) ) {
2153
  $item_template = '';
2154
  }
2155
 
2156
  if ( $is_grid ) {
2157
+ $row_close_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'tag-cloud', 'markup', 'row-close' );
2158
  if ( empty( $row_close_template ) ) {
2159
  $row_close_template = '';
2160
  }
2162
  $row_close_template = '';
2163
  }
2164
 
2165
+ $close_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'tag-cloud', 'markup', 'close' );
2166
  if ( empty( $close_template ) ) {
2167
  $close_template = '';
2168
  }
2279
  $item_values['term_group'] = $tag->term_group;
2280
  $item_values['term_taxonomy_id'] = $tag->term_taxonomy_id;
2281
  $item_values['taxonomy'] = wptexturize( $tag->taxonomy );
 
2282
  $item_values['description'] = wptexturize( $tag->description );
2283
  $item_values['parent'] = $tag->parent;
2284
  $item_values['count'] = isset ( $tag->count ) ? $tag->count : 0;
2285
  $item_values['scaled_count'] = $tag->scaled_count;
2286
  $item_values['font_size'] = str_replace( ',', '.', ( $item_values['smallest'] + ( ( $item_values['scaled_count'] - $item_values['min_scaled_count'] ) * $item_values['font_step'] ) ) );
2287
  $item_values['link_url'] = $tag->link;
2288
+ $item_values['currentlink_url'] = sprintf( '%1$s?current_item=%2$d', $item_values['page_url'], $item_values['term_id'] );
2289
  $item_values['editlink_url'] = $tag->edit_link;
2290
  $item_values['termlink_url'] = $tag->term_link;
2291
  // Added in the code below:
2292
+ $item_values['caption'] = '';
2293
+ $item_values['link_attributes'] = '';
2294
+ $item_values['current_item_class'] = '';
2295
+ $item_values['rollover_text'] = '';
2296
+ $item_values['link_style'] = '';
2297
+ $item_values['link_text'] = '';
2298
+ $item_values['currentlink'] = '';
2299
+ $item_values['editlink'] = '';
2300
+ $item_values['termlink'] = '';
2301
+ $item_values['thelink'] = '';
2302
 
2303
  if ( ! empty( $arguments['current_item'] ) ) {
2304
  if ( is_integer( $arguments['current_item'] ) ) {
2384
  if ( ! empty( $link_href ) ) {
2385
  $item_values['thelink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $link_href, $item_values['rollover_text'], $item_values['link_style'], $item_values['link_text'] );
2386
  } elseif ( 'current' == $arguments['link'] ) {
2387
+ $item_values['link_url'] = $item_values['currentlink_url'];
2388
  $item_values['thelink'] = $item_values['currentlink'];
2389
  } elseif ( 'edit' == $arguments['link'] ) {
2390
  $item_values['thelink'] = $item_values['editlink'];
2521
  * @return void Appends to &$list, &$links
2522
  */
2523
  public static function _compose_term_list( &$list, &$links, &$terms, &$markup_values, &$arguments, &$attr ) {
2524
+ $term = reset( $terms );
2525
+ $markup_values['current_level'] = $current_level = $term->level;
2526
+ if ( $current_level ) {
2527
+ $markup_values['itemtag_class'] = 'term-list term-list-taxonomy-' . $term->taxonomy . ' children';
2528
+ $markup_values['itemtag_id'] = $markup_values['selector'] . '-' . $term->parent;
2529
  } else {
2530
+ $markup_values['itemtag_class'] = 'term-list term-list-taxonomy-' . $term->taxonomy;
2531
+ $markup_values['itemtag_id'] = $markup_values['selector'];
2532
  }
2533
 
2534
+ $mla_item_parameter = $arguments['mla_item_parameter'];
 
 
 
 
 
 
 
 
 
 
 
 
2535
 
2536
  /*
2537
  * Determine output type and templates
2538
  */
2539
  $output_parameters = array_map( 'strtolower', array_map( 'trim', explode( ',', $arguments['mla_output'] ) ) );
2540
 
2541
+ $is_list = in_array( $output_parameters[0], array( 'list', 'ulist', 'olist', 'dlist' ) );
2542
  $is_dropdown = 'dropdown' == $output_parameters[0];
2543
  $is_checklist = 'checklist' == $output_parameters[0];
2544
  $is_hierarchical = !empty( $arguments['hierarchical'] ) && ( 'true' == strtolower( $arguments['hierarchical'] ) );
2545
 
2546
+ if ( $is_list || $is_dropdown || $is_checklist ) {
2547
+ if ( $term->parent ) {
2548
+ $open_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'term-list', 'markup', 'child-open' );
2549
+ } else {
2550
+ $open_template = false;
2551
+ }
2552
+
2553
+ if ( false === $open_template ) {
2554
+ $open_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'term-list', 'markup', 'open' );
2555
+ }
2556
+
2557
+ /*
2558
+ * Fall back to default template if no Open section
2559
+ */
2560
  if ( false === $open_template ) {
2561
  $markup_values['mla_markup'] = $default_markup;
2562
+
2563
+ if ( $term->parent ) {
2564
+ $open_template = MLATemplate_support::mla_fetch_custom_template( $default_markup, 'term-list', 'markup', 'child-open' );
2565
+ } else {
2566
+ $open_template = false;
2567
+ }
2568
+
2569
+ if ( false === $open_template ) {
2570
+ $open_template = MLATemplate_support::mla_fetch_custom_template( $default_markup, 'term-list', 'markup', 'open' );
2571
+ }
2572
  }
2573
 
2574
  if ( empty( $open_template ) ) {
2575
  $open_template = '';
2576
  }
2577
 
2578
+ if ( $term->parent ) {
2579
+ $item_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'term-list', 'markup', 'child-item' );
2580
+ } else {
2581
+ $item_template = false;
2582
+ }
2583
+
2584
+ if ( false === $item_template ) {
2585
+ $item_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'term-list', 'markup', 'item' );
2586
+ }
2587
+
2588
  if ( empty( $item_template ) ) {
2589
  $item_template = '';
2590
  }
2591
 
2592
+ if ( $term->parent ) {
2593
+ $close_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'term-list', 'markup', 'child-close' );
2594
+ } else {
2595
+ $close_template = false;
2596
+ }
2597
+
2598
+ if ( false === $close_template ) {
2599
+ $close_template = MLATemplate_support::mla_fetch_custom_template( $markup_values['mla_markup'], 'term-list', 'markup', 'close' );
2600
+ }
2601
+
2602
  if ( empty( $close_template ) ) {
2603
  $close_template = '';
2604
  }
2605
 
2606
+ if ( $is_list || ( ( 0 == $current_level ) && $is_dropdown ) || $is_checklist ) {
2607
+ /*
2608
+ * Look for gallery-level markup substitution parameters
2609
+ */
2610
+ $new_text = $open_template . $close_template;
2611
+ $markup_values = MLAData::mla_expand_field_level_parameters( $new_text, $attr, $markup_values );
2612
+
2613
+ $markup_values = apply_filters( 'mla_term_list_open_values', $markup_values );
2614
+ $open_template = apply_filters( 'mla_term_list_open_template', $open_template );
2615
+ if ( empty( $open_template ) ) {
2616
+ $gallery_open = '';
2617
+ } else {
2618
+ $gallery_open = MLAData::mla_parse_template( $open_template, $markup_values );
2619
+ }
2620
+
2621
+ $list .= apply_filters( 'mla_term_list_open_parse', $gallery_open, $open_template, $markup_values );
2622
  }
 
 
2623
  } // is_list
2624
 
2625
  foreach ( $terms as $key => $term ) {
 
2626
  $item_values = $markup_values;
2627
 
2628
  /*
2635
  $item_values['term_group'] = $term->term_group;
2636
  $item_values['term_taxonomy_id'] = $term->term_taxonomy_id;
2637
  $item_values['taxonomy'] = wptexturize( $term->taxonomy );
 
2638
  $item_values['description'] = wptexturize( $term->description );
2639
  $item_values['parent'] = $term->parent;
2640
+ $item_values['count'] = isset ( $term->count ) ? 0 + $term->count : 0;
 
2641
  $item_values['link_url'] = $term->link;
2642
+ $item_values['currentlink_url'] = sprintf( '%1$s?current_item=%2$d', $item_values['page_url'], $item_values['term_id'] );
2643
  $item_values['editlink_url'] = $term->edit_link;
2644
  $item_values['termlink_url'] = $term->term_link;
2645
  $item_values['children'] = '';
2646
  $item_values['termtag_attributes'] = '';
2647
+ $item_values['termtag_class'] = $term->parent ? 'term-list-term children' : 'term-list-term';
2648
+ $item_values['termtag_id'] = sprintf( '%1$s-%2$d', $item_values['taxonomy'], $item_values['term_id'] );
2649
  // Added in the code below:
2650
+ $item_values['caption'] = '';
2651
+ $item_values['link_attributes'] = '';
2652
+ $item_values['current_item_class'] = '';
2653
+ $item_values['rollover_text'] = '';
2654
+ $item_values['link_style'] = '';
2655
+ $item_values['link_text'] = '';
2656
+ $item_values['currentlink'] = '';
2657
+ $item_values['editlink'] = '';
2658
+ $item_values['termlink'] = '';
2659
+ $item_values['thelink'] = '';
2660
+
2661
+ if ( ! empty( $arguments[ $mla_item_parameter ] ) ) {
2662
+ foreach ( $arguments[ $mla_item_parameter ] as $current_item ) {
2663
+ if ( is_integer( $current_item ) ) {
2664
+ if ( $current_item == $term->term_id ) {
2665
+ $item_values['current_item_class'] = $arguments['current_item_class'];
2666
+ break;
2667
+ }
2668
+ } else {
2669
+ if ( $current_item == $term->slug ) {
2670
+ $item_values['current_item_class'] = $arguments['current_item_class'];
2671
+ break;
2672
+ }
2673
  }
2674
  }
2675
  }
 
2676
 
2677
  /*
2678
  * Add item_specific field-level substitution parameters
2679
  */
2680
  $new_text = isset( $item_template ) ? $item_template : '';
2681
+ foreach( self::$term_list_item_specific_arguments as $index => $value ) {
2682
  $new_text .= str_replace( '{+', '[+', str_replace( '+}', '+]', $arguments[ $index ] ) );
2683
  }
2684
 
2731
  }
2732
 
2733
  if ( ! empty( $arguments['show_count'] ) && ( 'true' == strtolower( $arguments['show_count'] ) ) ) {
2734
+ // Ignore option-all
2735
+ if ( -1 !== $item_values['count'] ) {
2736
+ $item_values['link_text'] .= ' (' . $item_values['count'] . ')';
2737
+ }
2738
  }
2739
 
2740
  /*
2741
  * Currentlink, editlink, termlink and thelink TODO - link style
2742
  */
2743
+ $item_values['currentlink'] = sprintf( '<a %1$shref="%2$s?%3$s=%4$d" title="%5$s" style="%6$s">%7$s</a>', $link_attributes, $item_values['page_url'], $mla_item_parameter, $item_values['term_id'], $item_values['rollover_text'], '', $item_values['link_text'] );
2744
  $item_values['editlink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $item_values['editlink_url'], $item_values['rollover_text'], '', $item_values['link_text'] );
2745
  $item_values['termlink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $item_values['termlink_url'], $item_values['rollover_text'], '', $item_values['link_text'] );
2746
 
2747
  if ( ! empty( $link_href ) ) {
2748
  $item_values['thelink'] = sprintf( '<a %1$shref="%2$s" title="%3$s" style="%4$s">%5$s</a>', $link_attributes, $link_href, $item_values['rollover_text'], '', $item_values['link_text'] );
2749
  } elseif ( 'current' == $arguments['link'] ) {
2750
+ $item_values['link_url'] = $item_values['currentlink_url'];
2751
  $item_values['thelink'] = $item_values['currentlink'];
2752
  } elseif ( 'edit' == $arguments['link'] ) {
2753
  $item_values['thelink'] = $item_values['editlink'];
2758
  } else {
2759
  $item_values['thelink'] = $item_values['link_text'];
2760
  }
2761
+
2762
+ if ( $is_dropdown || $is_checklist ) {
2763
+ // Indent the dropdown list
2764
+ if ( $is_dropdown && $current_level && $is_hierarchical ) {
2765
+ $pad = str_repeat('&nbsp;', $current_level * 3);
2766
+ } else {
2767
+ $pad = '';
2768
+ }
2769
+
2770
+ if ( empty( $arguments['mla_option_text'] ) ) {
2771
+ $item_values['thelabel'] = $pad . $item_values['link_text'];
2772
+ } else {
2773
+ $item_values['thelabel'] = $pad . self::_process_shortcode_parameter( $arguments['mla_option_text'], $item_values );
2774
+ }
2775
+
2776
+ if ( empty( $arguments['mla_option_value'] ) ) {
2777
+ $item_values['thevalue'] = $item_values['term_id'];
2778
+ } else {
2779
+ $item_values['thevalue'] = self::_process_shortcode_parameter( $arguments['mla_option_value'], $item_values );
2780
+ }
2781
+
2782
+ $item_values['popular'] = ''; // TODO Calculate 'term-list-popular'
2783
+
2784
+ if ( $item_values['current_item_class'] == $arguments['current_item_class'] ) {
2785
+ if ( $is_dropdown ) {
2786
+ $item_values['selected'] = 'selected=selected';
2787
+ } else {
2788
+ $item_values['selected'] = 'checked=checked';
2789
+ }
2790
+ } else {
2791
+ $item_values['selected'] = '';
2792
+ }
2793
+ }
2794
+
2795
  $child_links = array();
2796
  if ( $is_hierarchical && !empty( $term->children ) ) {
2797
  self::_compose_term_list( $item_values['children'], $child_links, $term->children, $markup_values, $arguments, $attr );
2798
+ $markup_values['current_level'] = $current_level; // Changed in _compose_term_list
2799
  }
2800
 
2801
+ if ( $is_list || $is_dropdown || $is_checklist ) {
2802
  /*
2803
  * item markup
2804
  */
2816
  }
2817
  } // foreach tag
2818
 
2819
+ if ( $is_list || $is_dropdown || $is_checklist ) {
2820
+ if ( $is_list || ( ( 0 == $current_level ) && $is_dropdown ) || $is_checklist ) {
2821
+ $markup_values = apply_filters( 'mla_term_list_close_values', $markup_values );
2822
+ $close_template = apply_filters( 'mla_term_list_close_template', $close_template );
2823
+ $parse_value = MLAData::mla_parse_template( $close_template, $markup_values );
2824
+ $list .= apply_filters( 'mla_term_list_close_parse', $parse_value, $close_template, $markup_values );
2825
+ }
2826
+ } else {
2827
  switch ( $markup_values['mla_output'] ) {
2828
  case 'array' :
2829
  $list =& $links;
2834
  break;
2835
  } // switch format
2836
  }
 
2837
  }
2838
 
2839
+ /**
2840
+ * These are the default parameters for term list display
2841
+ *
2842
+ * @since 2.30
2843
+ *
2844
+ * @var array
2845
+ */
2846
+ private static $term_list_item_specific_arguments = array(
2847
+ 'mla_link_attributes' => '',
2848
+ 'mla_link_class' => '',
2849
+ 'mla_link_href' => '',
2850
+ 'mla_link_text' => '',
2851
+ 'mla_rollover_text' => '',
2852
+ 'mla_caption' => '',
2853
+
2854
+ 'mla_option_text' => '',
2855
+ 'mla_option_value' => '',
2856
+ );
2857
+
2858
  /**
2859
  * The MLA Term List support function.
2860
  *
2890
  );
2891
  }
2892
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2893
  $defaults = array_merge(
2894
  self::$mla_get_terms_parameters,
2895
  array(
2896
+ 'echo' => false,
2897
+ 'mla_debug' => false,
2898
+ 'mla_output' => 'ulist',
2899
+ 'hierarchical' => 'true',
2900
+
2901
  'separator' => "\n",
2902
  'single_text' => '%d item',
2903
  'multiple_text' => '%d items',
2904
+ 'link' => 'current',
 
 
2905
  'current_item' => '',
2906
  'current_item_class' => 'mla_current_item',
2907
+ 'mla_item_parameter' => 'current_item',
2908
  'show_count' => false,
2909
 
2910
+ 'mla_style' => NULL,
2911
+ 'mla_markup' => NULL,
2912
  'itemtag' => 'ul',
2913
  'termtag' => 'li',
2914
  'captiontag' => '',
2915
+
2916
+ 'mla_nolink_text' => '',
2917
+ 'mla_target' => '',
2918
+ 'hide_if_empty' => false,
2919
+ 'option_all_text' => '',
2920
+ 'option_all_value' => '0',
2921
+ 'option_none_text' => '',
2922
+ 'option_none_value' => '-1',
2923
+
2924
+ 'depth' => 0,
2925
+ 'child_of' => 0,
2926
+ 'include_tree' => NULL,
2927
+ 'exclude_tree' => NULL,
2928
  ),
2929
+ self::$term_list_item_specific_arguments
2930
  );
2931
 
2932
  /*
2933
+ * Filter the attributes before $mla_item_parameter and "request:" prefix processing.
2934
  */
2935
 
2936
  $attr = apply_filters( 'mla_term_list_raw_attributes', $attr );
2937
 
2938
+ /*
2939
+ * The current_item parameter can be changed to support
2940
+ * multiple lists per page.
2941
+ */
2942
+ if ( ! isset( $attr['mla_item_parameter'] ) ) {
2943
+ $attr['mla_item_parameter'] = $defaults['mla_item_parameter'];
2944
+ }
2945
+
2946
+ $mla_item_parameter = $attr['mla_item_parameter'];
2947
+
2948
+ /*
2949
+ * Special handling of mla_item_parameter to make
2950
+ * multiple lists per page easier. Look for this parameter in $_REQUEST
2951
+ * if it's not present in the shortcode itself.
2952
+ */
2953
+ if ( ! isset( $attr[ $mla_item_parameter ] ) ) {
2954
+ if ( isset( $_REQUEST[ $mla_item_parameter ] ) ) {
2955
+ $attr[ $mla_item_parameter ] = $_REQUEST[ $mla_item_parameter ];
2956
+ }
2957
+ }
2958
+
2959
  // $instance supports multiple lists in one page/post
2960
  static $instance = 0;
2961
  $instance++;
2985
  'page_url' => get_page_link(),
2986
  );
2987
 
2988
+ /*
2989
+ * Determine markup template to get default arguments
2990
+ */
2991
+ $arguments = shortcode_atts( $defaults, $attr );
2992
+
2993
+ /*
2994
+ * $mla_item_parameter, if non-default, doesn't make it through the shortcode_atts
2995
+ * filter, so we handle it separately
2996
+ */
2997
+ if ( ! isset( $arguments[ $mla_item_parameter ] ) ) {
2998
+ if ( isset( $attr[ $mla_item_parameter ] ) ) {
2999
+ $arguments[ $mla_item_parameter ] = $attr[ $mla_item_parameter ];
3000
+ } else {
3001
+ $arguments[ $mla_item_parameter ] = $defaults['current_item'];
3002
+
3003
+ }
3004
+ }
3005
+
3006
+ if ( $arguments['mla_markup'] ) {
3007
+ $template = $arguments['mla_markup'];
3008
+ } else {
3009
+ $output_parameters = array_map( 'strtolower', array_map( 'trim', explode( ',', $arguments['mla_output'] ) ) );
3010
+
3011
+ if ( in_array( $output_parameters[0], array( 'list', 'ulist', 'olist', 'dlist' ) ) ) {
3012
+ if ( ( 'dlist' == $output_parameters[0] ) || ('list' == $output_parameters[0] && 'dd' == $arguments['captiontag'] ) ) {
3013
+ $template = 'term-list-dl';
3014
+ } else {
3015
+ $template = 'term-list-ul';
3016
+ }
3017
+ } elseif ( 'dropdown' == $output_parameters[0] ) {
3018
+ $template = 'term-list-dropdown';
3019
+ } elseif ( 'checklist' == $output_parameters[0] ) {
3020
+ $template = 'term-list-checklist';
3021
+ }
3022
+ }
3023
+
3024
  /*
3025
  * Apply default arguments set in the markup template
3026
  */
3027
+ $arguments = MLATemplate_Support::mla_fetch_custom_template( $template, 'term-list', 'markup', 'arguments' );
 
3028
  if ( !empty( $arguments ) ) {
3029
  $attr = wp_parse_args( $attr, self::_validate_attributes( array(), $arguments ) );
3030
  }
3044
  * item-specific Display Content parameters must be evaluated
3045
  * later, when all of the information is available.
3046
  */
3047
+ if ( array_key_exists( $attr_key, self::$term_list_item_specific_arguments ) ) {
3048
  continue;
3049
  }
3050
 
3057
  $arguments = shortcode_atts( $defaults, $attr );
3058
 
3059
  /*
3060
+ * $mla_item_parameter, if non-default, doesn't make it through the shortcode_atts
3061
+ * filter, so we handle it separately
3062
  */
3063
+ if ( ! isset( $arguments[ $mla_item_parameter ] ) ) {
3064
+ if ( isset( $attr[ $mla_item_parameter ] ) ) {
3065
+ $arguments[ $mla_item_parameter ] = $attr[ $mla_item_parameter ];
3066
+ } else {
3067
+ $arguments[ $mla_item_parameter ] = $defaults['current_item'];
3068
+
3069
+ }
3070
+ }
3071
+
3072
+ /*
3073
+ * Clean up the current_item(s) to separate term_id from slug
3074
+ */
3075
+ if ( ! empty( $arguments[ $mla_item_parameter ] ) ) {
3076
+ if ( is_string( $arguments[ $mla_item_parameter ] ) ) {
3077
+ $arguments[ $mla_item_parameter ] = explode( ',', $arguments[ $mla_item_parameter ] );
3078
+ }
3079
+
3080
+ foreach( $arguments[ $mla_item_parameter ] as $index => $value ) {
3081
+ if ( ctype_digit( $value ) ) {
3082
+ $arguments[ $mla_item_parameter ][ $index ] = absint( $value );
3083
+ }
3084
+ }
3085
  }
3086
 
3087
  $arguments = apply_filters( 'mla_term_list_arguments', $arguments );
3107
  */
3108
  $output_parameters = array_map( 'strtolower', array_map( 'trim', explode( ',', $arguments['mla_output'] ) ) );
3109
 
3110
+ if ( $is_list = in_array( $output_parameters[0], array( 'list', 'ulist', 'olist', 'dlist' ) ) ) {
3111
  $default_style = 'none';
 
 
 
 
3112
 
3113
+ if ( 'list' == $output_parameters[0] && 'dd' == $arguments['captiontag'] ) {
3114
+ $default_markup = 'term-list-dl';
3115
+ $arguments['itemtag'] = 'dl';
3116
+ $arguments['termtag'] = 'dt';
3117
+ } else {
3118
+ $default_markup = 'term-list-ul';
3119
+ $arguments['termtag'] = 'li';
3120
+ $arguments['captiontag'] = '';
3121
+
3122
+ switch ( $output_parameters[0] ) {
3123
+ case 'ulist':
3124
+ $arguments['itemtag'] = 'ul';
3125
+ break;
3126
+ case 'olist':
3127
+ $arguments['itemtag'] = 'ol';
3128
+ break;
3129
+ case 'dlist':
3130
+ $default_markup = 'term-list-dl';
3131
+ $arguments['itemtag'] = 'dl';
3132
+ $arguments['termtag'] = 'dt';
3133
+ $arguments['captiontag'] = 'dd';
3134
+ break;
3135
+ default:
3136
+ $arguments['itemtag'] = 'ul';
3137
  }
3138
  }
3139
 
3149
  if ( $is_dropdown = 'dropdown' == $output_parameters[0] ) {
3150
  $default_style = 'none';
3151
  $default_markup = 'term-list-dropdown';
3152
+ $arguments['itemtag'] = 'select';
3153
+ $arguments['termtag'] = 'option';
3154
 
3155
  if ( NULL == $arguments['mla_style'] ) {
3156
  $arguments['mla_style'] = $default_style;
3164
  if ( $is_checklist = 'checklist' == $output_parameters[0] ) {
3165
  $default_style = 'none';
3166
  $default_markup = 'term-list-checklist';
3167
+ $arguments['termtag'] = 'li';
3168
 
3169
  if ( NULL == $arguments['mla_style'] ) {
3170
  $arguments['mla_style'] = $default_style;
3201
  }
3202
 
3203
  $tags = self::mla_get_terms( $arguments );
 
3204
  if ( !empty( $exclude_later ) ) {
3205
  $arguments['exclude'] = $exclude_later;
3206
  }
3233
  $found_rows = count( $tags );
3234
  }
3235
 
3236
+ $show_empty = false;
3237
  if ( 0 == $found_rows ) {
3238
  if ( self::$mla_debug ) {
3239
  MLACore::mla_debug_add( '<strong>' . __( 'mla_debug empty list', 'media-library-assistant' ) . '</strong>, query = ' . var_export( $arguments, true ) );
3246
  $list = '';
3247
  }
3248
 
 
3249
  if ( 'array' == $arguments['mla_output'] ) {
3250
+ $list .= $arguments['mla_nolink_text'];
3251
+
3252
+ if ( empty( $list ) ) {
3253
+ return array();
3254
+ } else {
3255
+ return array( $list );
3256
+ }
3257
  }
3258
 
3259
+ $show_empty = empty( $arguments['hide_if_empty'] ) || ( 'true' !== strtolower( $arguments['hide_if_empty'] ) );
3260
+ if ( ( $is_checklist || $is_dropdown ) && $show_empty ) {
3261
+ if ( empty( $arguments['option_none_text'] ) ) {
3262
+ $arguments['option_none_text'] = __( 'no-terms', 'media-library-assistant' );
3263
+ }
3264
 
3265
+ $tags[0] = ( object ) array(
3266
+ 'term_id' => $arguments['option_none_value'],
3267
+ 'name' => $arguments['option_none_text'],
3268
+ 'slug' => sanitize_title( $arguments['option_none_text'] ),
3269
+ 'term_group' => '0',
3270
+ 'term_taxonomy_id' => $arguments['option_none_value'],
3271
+ 'taxonomy' => current( $arguments['taxonomy'] ),
3272
+ 'description' => '',
3273
+ 'parent' => '0',
3274
+ 'count' => 0,
3275
+ 'level' => 0,
3276
+ 'edit_link' => '',
3277
+ 'term_link' => '',
3278
+ 'link' => '',
3279
+ );
3280
+
3281
+ $is_hierarchical = false;
3282
+ $found_rows = 1;
3283
+ } else {
3284
+ $list .= $arguments['mla_nolink_text'];
3285
+
3286
+ if ( empty($arguments['echo']) ) {
3287
+ return $list;
3288
+ }
3289
+
3290
+ echo $list;
3291
+ return;
3292
+ }
3293
  }
3294
 
3295
  if ( self::$mla_debug ) {
3323
  $found_rows = count( $tags );
3324
  }
3325
  } else {
3326
+ if ( !$show_empty ) {
3327
+ foreach ( $tags as $key => $tag ) {
3328
+ $tags[ $key ]->level = 0;
3329
+ $link = get_edit_tag_link( $tag->term_id, $tag->taxonomy );
3330
+ if ( ! is_wp_error( $link ) ) {
3331
+ $tags[ $key ]->edit_link = $link;
3332
+ $link = get_term_link( intval($tag->term_id), $tag->taxonomy );
3333
+ $tags[ $key ]->term_link = $link;
 
 
 
 
 
 
3334
  }
3335
 
3336
+ if ( is_wp_error( $link ) ) {
3337
+ $list = '<strong>' . __( 'ERROR', 'media-library-assistant' ) . ': ' . $link->get_error_message() . '</strong>, ' . $link->get_error_data( $link->get_error_code() );
3338
+
3339
+ if ( 'array' == $arguments['mla_output'] ) {
3340
+ return array( $list );
3341
+ }
3342
+
3343
+ if ( empty($arguments['echo']) ) {
3344
+ return $list;
3345
+ }
3346
+
3347
+ echo $list;
3348
+ return;
3349
  }
3350
 
3351
+ if ( 'edit' == $arguments['link'] ) {
3352
+ $tags[ $key ]->link = $tags[ $key ]->edit_link;
3353
+ } else {
3354
+ $tags[ $key ]->link = $tags[ $key ]->term_link;
3355
+ }
3356
+ } // foreach tag
3357
+ }
 
 
 
3358
  }
3359
 
3360
+ /*
3361
+ * Add the optional 'all-terms' option, if requested
3362
+ */
3363
+ if ( ( $is_checklist || $is_dropdown ) && !empty( $arguments['option_all_text'] ) && !$show_empty ) {
3364
+ $option_all = ( object ) array(
3365
+ 'term_id' => $arguments['option_all_value'],
3366
+ 'name' => $arguments['option_all_text'],
3367
+ 'slug' => sanitize_title( $arguments['option_all_text'] ),
3368
+ 'term_group' => '0',
3369
+ 'term_taxonomy_id' => $arguments['option_all_value'],
3370
+ 'taxonomy' => current( $arguments['taxonomy'] ),
3371
+ 'description' => '',
3372
+ 'parent' => '0',
3373
+ 'count' => -1,
3374
+ 'level' => 0,
3375
+ 'edit_link' => '',
3376
+ 'term_link' => '',
3377
+ 'link' => '',
3378
+ );
3379
+
3380
+ array_unshift( $tags[ $option_all->taxonomy ], $option_all );
3381
+ $found_rows += 1;
3382
+ }
3383
+
3384
  $style_values = array_merge( $page_values, array(
3385
  'mla_output' => $arguments['mla_output'],
3386
  'mla_style' => $arguments['mla_style'],
3391
  'termtag' => tag_escape( $arguments['termtag'] ),
3392
  'captiontag' => tag_escape( $arguments['captiontag'] ),
3393
  'itemtag_attributes' => '',
3394
+ 'itemtag_class' => 'term-list term-list-taxonomy-' . implode( '-', $arguments['taxonomy'] ),
3395
+ 'itemtag_id' => $page_values['selector'],
 
 
 
 
3396
  'all_found_rows' => $found_rows,
3397
  'found_rows' => $found_rows,
 
 
 
 
 
 
 
 
 
 
3398
  'separator' => $arguments['separator'],
3399
  'single_text' => $arguments['single_text'],
3400
  'multiple_text' => $arguments['multiple_text'],
3405
  $style_template = $gallery_style = '';
3406
  $use_mla_term_list_style = $is_list && ( 'none' != strtolower( $style_values['mla_style'] ) );
3407
  if ( apply_filters( 'use_mla_term_list_style', $use_mla_term_list_style, $style_values['mla_style'] ) ) {
3408
+ $style_template = MLATemplate_support::mla_fetch_custom_template( $style_values['mla_style'], 'term-list', 'style' );
3409
  if ( empty( $style_template ) ) {
3410
  $style_values['mla_style'] = $default_style;
3411
+ $style_template = MLATemplate_support::mla_fetch_custom_template( $default_style, 'term-list', 'style' );
3412
  }
3413
 
3414
  if ( ! empty ( $style_template ) ) {
3426
 
3427
  $list .= $gallery_style;
3428
  $markup_values = $style_values;
3429
+
3430
  /*
3431
  * Accumulate links for flat and array output
3432
  */
3599
 
3600
  $new_attributes = ( ! empty( $arguments['mla_link_attributes'] ) ) ? esc_attr( self::_process_shortcode_parameter( $arguments['mla_link_attributes'], $markup_values ) ) . ' ' : '';
3601
 
 
3602
  $new_base = ( ! empty( $arguments['mla_link_href'] ) ) ? self::_process_shortcode_parameter( $arguments['mla_link_href'], $markup_values ) : $markup_values['new_url'];
3603
 
3604
  /*
3886
  }
3887
 
3888
  if ( ! empty( $arguments['mla_link_href'] ) ) {
 
3889
  $new_link .= 'href="' . self::_process_shortcode_parameter( $arguments['mla_link_href'], $markup_values ) . '" >';
3890
  } else {
3891
  $new_link .= 'href="' . $markup_values['new_url'] . '" >';
4126
  // Terms Search
4127
  'mla_terms_phrases' => '',
4128
  'mla_terms_taxonomies' => '',
4129
+ 'mla_phrase_delimiter' => '',
4130
  'mla_phrase_connector' => '',
4131
  'mla_term_connector' => '',
4132
  // Search
4512
  MLAQuery::$search_parameters[ $key ] = 'AND';
4513
  }
4514
 
4515
+ unset( $arguments[ $key ] );
4516
+ break;
4517
+ case 'mla_phrase_delimiter':
4518
+ if ( ! empty( $value ) ) {
4519
+ MLAQuery::$search_parameters[ $key ] = substr( $value, 0, 1 );
4520
+ }
4521
+
4522
  unset( $arguments[ $key ] );
4523
  break;
4524
  case 'mla_terms_phrases':
4695
 
4696
  if ( ! empty($query_arguments['include']) ) {
4697
  $incposts = wp_parse_id_list( $query_arguments['include'] );
4698
+
4699
+ if ( ! ( isset( $query_arguments['posts_per_page'] ) && ( 0 < $query_arguments['posts_per_page'] ) ) ) {
4700
+ $query_arguments['posts_per_page'] = count($incposts); // only the number of posts included
4701
+ }
4702
+
4703
  $query_arguments['post__in'] = $incposts;
4704
  unset( $query_arguments['include'] );
4705
  } elseif ( ! empty($query_arguments['exclude']) ) {
4751
  if ( ! empty( MLAQuery::$search_parameters['mla_terms_phrases'] ) ) {
4752
  MLAQuery::$search_parameters['mla_terms_search']['phrases'] = MLAQuery::$search_parameters['mla_terms_phrases'];
4753
 
4754
+ if ( empty( MLAQuery::$search_parameters['mla_phrase_delimiter'] ) ) {
4755
+ MLAQuery::$search_parameters['mla_terms_search']['phrase_delimiter'] = ',';
4756
+ } else {
4757
+ MLAQuery::$search_parameters['mla_terms_search']['phrase_delimiter'] = MLAQuery::$search_parameters['mla_phrase_delimiter'];
4758
+ }
4759
+
4760
  if ( empty( MLAQuery::$search_parameters['mla_phrase_connector'] ) ) {
4761
  MLAQuery::$search_parameters['mla_terms_search']['radio_phrases'] = 'AND';
4762
  } else {
5453
 
5454
  $tags['found_rows'] = $found_rows;
5455
  $tags = apply_filters( 'mla_get_terms_query_results', $tags );
 
5456
 
5457
  return $tags;
5458
  } // mla_get_terms
5522
  $child_ids[ $term->taxonomy ][ $term->term_id ] = absint( $term->parent );
5523
  }
5524
  }
 
 
 
 
5525
 
5526
  /*
5527
  * Collapse multi-level children
5536
  foreach( $tax_parents as $parent_id => $children ) {
5537
  foreach( $children as $index => $child ) {
5538
  if ( ! array_key_exists( $child->term_id, $tax_parents ) ) {
 
5539
 
5540
  if ( array_key_exists( $child->parent, $root_ids[ $taxonomy ] ) ) {
5541
  // Found a root node - attach the leaf
5543
  } elseif ( isset( $child_ids[ $taxonomy ][ $child->parent ] ) ) {
5544
  // Found a non-root parent node - attach the leaf
5545
  $the_parent = $child_ids[ $taxonomy ][ $child->parent ];
 
5546
  foreach( $tax_parents[ $the_parent ] as $candidate_index => $candidate ) {
 
5547
  if ( $candidate->term_id == $child->parent ) {
5548
  $parents[ $taxonomy ][ $the_parent ][ $candidate_index ]->children[] = $child;
5549
  break;
5562
  } // leaf node; no children
5563
  } // foreach child
5564
  } // foreach parent_id
5565
+ } // has parents
 
5566
  } // foreach taxonomy
5567
 
5568
  /*
5593
  if ( $exclude_tree ) {
5594
  self::_remove_exclude_tree( $term_tree[ $taxonomy ], $exclude_tree );
5595
  } // $include_tree
 
5596
 
5597
  $term_count = 0;
5598
  $root_limit = count( $term_tree[ $taxonomy ] );
5611
  }
5612
  }
5613
 
 
5614
  $term_tree[ $taxonomy ]['found_rows'] = $term_count;
5615
  $all_terms_count += $term_count;
5616
  }
5617
 
5618
  $term_tree['found_rows'] = $all_terms_count;
 
5619
  return $term_tree;
5620
  } // _get_term_tree
5621
 
5816
  }
5817
  }
5818
  } // Class MLAShortcode_Support
 
 
5819
  ?>
includes/class-mla-shortcodes.php CHANGED
@@ -24,7 +24,7 @@ class MLAShortcodes {
24
  public static function initialize() {
25
  add_shortcode( 'mla_gallery', 'MLAShortcodes::mla_gallery_shortcode' );
26
  add_shortcode( 'mla_tag_cloud', 'MLAShortcodes::mla_tag_cloud_shortcode' );
27
- //add_shortcode( 'mla_term_list', 'MLAShortcodes::mla_term_list_shortcode' );
28
 
29
  /*
30
  * Avoid wptexturize defect
24
  public static function initialize() {
25
  add_shortcode( 'mla_gallery', 'MLAShortcodes::mla_gallery_shortcode' );
26
  add_shortcode( 'mla_tag_cloud', 'MLAShortcodes::mla_tag_cloud_shortcode' );
27
+ add_shortcode( 'mla_term_list', 'MLAShortcodes::mla_term_list_shortcode' );
28
 
29
  /*
30
  * Avoid wptexturize defect
includes/class-mla-template-support.php ADDED
@@ -0,0 +1,603 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Media Library Assistant Custom Style/Markup Template handler(s)
4
+ *
5
+ * @package Media Library Assistant
6
+ * @since 2.30
7
+ */
8
+
9
+ /**
10
+ * Class MLA (Media Library Assistant) Custom Style/Markup Template Support provides functions that
11
+ * define, import and export custom style and markup templates for MLA shortcodes.
12
+ *
13
+ * @package Media Library Assistant
14
+ * @since 2.30
15
+ */
16
+ class MLATemplate_Support {
17
+ /**
18
+ * $mla_template_definitions defines the structure of the style and markup templates
19
+ * and the labels, etc. required to render them in the Settings/Shortcodes tab
20
+ *
21
+ * The array must be populated at runtime in MLATemplate_Support::mla_localize_template_definitions();
22
+ * localization calls cannot be placed in the "public static" array definition itself.
23
+ *
24
+ * Template types are indexed by 'style'/'markup' and then shortcode name. Each template type is defined by:
25
+ * 'slug' => Sanitized version of the shortcode name
26
+ * 'default_names' => Names of the default templates
27
+ * 'label' => Styles only; label for the template textbox
28
+ * 'help' => Styles only; help text displayed below the textbox
29
+ * 'sections' => Markup only; array of template section definitions
30
+ * 'sections'[] elements:
31
+ * 'label' => Label for the section textbox
32
+ * 'help' => Help text displayed below the textbox
33
+ * 'order' => Where the section appears in the template
34
+ */
35
+
36
+ public static $mla_template_definitions = array ();
37
+
38
+ /**
39
+ * Localize $mla_option_definitions array
40
+ *
41
+ * Localization must be done at runtime; these calls cannot be placed in the
42
+ * "public static" array definition itself. Called from MLATest::initialize.
43
+ *
44
+ * @since 2.30
45
+ *
46
+ * @return void
47
+ */
48
+ public static function mla_localize_template_definitions() {
49
+ self::$mla_template_definitions = array (
50
+ 'style' => array(
51
+ 'gallery' => array(
52
+ 'slug' => 'gallery',
53
+ 'default_names' => array( 'default' ),
54
+ 'label' => __( 'Styles', 'media-library-assistant' ),
55
+ 'help' => __( 'List of substitution parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' ),
56
+ ),
57
+ 'tag_cloud' => array(
58
+ 'slug' => 'tag-cloud',
59
+ 'default_names' => array( 'tag-cloud' ),
60
+ 'label' => __( 'Styles', 'media-library-assistant' ),
61
+ 'help' => __( 'List of substitution parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' ),
62
+ ),
63
+ 'term_list' => array(
64
+ 'slug' => 'term-list',
65
+ 'default_names' => array( 'term-list' ),
66
+ 'label' => __( 'Styles', 'media-library-assistant' ),
67
+ 'help' => __( 'List of substitution parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' ),
68
+ ),
69
+ ),
70
+ 'markup' => array(
71
+ 'gallery' => array(
72
+ 'slug' => 'gallery',
73
+ 'default_names' => array( 'default' ),
74
+ 'sections' => array(
75
+ 'arguments' => array(
76
+ 'label' => __( 'Arguments', 'media-library-assistant' ),
77
+ 'rows' => 3,
78
+ 'help' => __( 'Default shortcode parameter values.', 'media-library-assistant' ),
79
+ 'order' => 0,
80
+ ),
81
+ 'row-open' => array(
82
+ 'label' => __( 'Row', 'media-library-assistant' ) . '&nbsp;' . __( 'Open', 'media-library-assistant' ),
83
+ 'rows' => 3,
84
+ 'help' => __( 'Markup for the beginning of each row in the gallery.', 'media-library-assistant' ),
85
+ 'order' => 2,
86
+ ),
87
+ 'open' => array(
88
+ 'label' => __( 'Open', 'media-library-assistant' ),
89
+ 'rows' => 3,
90
+ 'help' => __( 'Markup for the beginning of the gallery. List of parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' ),
91
+ 'order' => 1,
92
+ ),
93
+ 'item' => array(
94
+ 'label' => __( 'Item', 'media-library-assistant' ),
95
+ 'rows' => 6,
96
+ 'help' => __( 'Markup for each item/cell of the gallery.', 'media-library-assistant' ),
97
+ 'order' => 3,
98
+ ),
99
+ 'row-close' => array(
100
+ 'label' => __( 'Row', 'media-library-assistant' ) . '&nbsp;' . __( 'Close', 'media-library-assistant' ),
101
+ 'rows' => 3,
102
+ 'help' => __( 'Markup for the end of each row in the gallery.', 'media-library-assistant' ),
103
+ 'order' => 4,
104
+ ),
105
+ 'close' => array(
106
+ 'label' => __( 'Close', 'media-library-assistant' ),
107
+ 'rows' => 3,
108
+ 'help' => __( 'Markup for the end of the gallery.', 'media-library-assistant' ),
109
+ 'order' => 5,
110
+ ),
111
+ ),
112
+ ),
113
+ 'tag_cloud' => array(
114
+ 'slug' => 'tag-cloud',
115
+ 'default_names' => array( 'tag-cloud', 'tag-cloud-ul', 'tag-cloud-dl' ),
116
+ 'sections' => array(
117
+ 'arguments' => array(
118
+ 'label' => __( 'Arguments', 'media-library-assistant' ),
119
+ 'rows' => 3,
120
+ 'help' => __( 'Default shortcode parameter values.', 'media-library-assistant' ),
121
+ 'order' => 0,
122
+ ),
123
+ 'row-open' => array(
124
+ 'label' => __( 'Row', 'media-library-assistant' ) . '&nbsp;' . __( 'Open', 'media-library-assistant' ),
125
+ 'rows' => 3,
126
+ 'help' => __( 'Markup for the beginning of each row in the cloud; grid format only.', 'media-library-assistant' ),
127
+ 'order' => 2,
128
+ ),
129
+ 'open' => array(
130
+ 'label' => __( 'Open', 'media-library-assistant' ),
131
+ 'rows' => 3,
132
+ 'help' => __( 'Markup for the beginning of the cloud. List of parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' ),
133
+ 'order' => 1,
134
+ ),
135
+ 'item' => array(
136
+ 'label' => __( 'Item', 'media-library-assistant' ),
137
+ 'rows' => 6,
138
+ 'help' => __( 'Markup for each item/cell of the cloud.', 'media-library-assistant' ),
139
+ 'order' => 3,
140
+ ),
141
+ 'row-close' => array(
142
+ 'label' => __( 'Row', 'media-library-assistant' ) . '&nbsp;' . __( 'Close', 'media-library-assistant' ),
143
+ 'rows' => 3,
144
+ 'help' => __( 'Markup for the end of each row in the cloud; grid format only.', 'media-library-assistant' ),
145
+ 'order' => 4,
146
+ ),
147
+ 'close' => array(
148
+ 'label' => __( 'Close', 'media-library-assistant' ),
149
+ 'rows' => 3,
150
+ 'help' => __( 'Markup for the end of the cloud.', 'media-library-assistant' ),
151
+ 'order' => 5,
152
+ ),
153
+ ),
154
+ ),
155
+ 'term_list' => array(
156
+ 'slug' => 'term-list',
157
+ 'default_names' => array( 'term-list-ul', 'term-list-dl', 'term-list-dropdown', 'term-list-checklist' ),
158
+ 'sections' => array(
159
+ 'arguments' => array(
160
+ 'label' => __( 'Arguments', 'media-library-assistant' ),
161
+ 'rows' => 3,
162
+ 'help' => __( 'Default shortcode parameter values.', 'media-library-assistant' ),
163
+ 'order' => 0,
164
+ ),
165
+ 'child-open' => array(
166
+ 'label' => __( 'Child', 'media-library-assistant' ) . '&nbsp;' . __( 'Open', 'media-library-assistant' ),
167
+ 'rows' => 3,
168
+ 'help' => __( 'Markup for the beginning of each level in the hierarchy; list format only.', 'media-library-assistant' ),
169
+ 'order' => 3,
170
+ ),
171
+ 'child-item' => array(
172
+ 'label' => __( 'Child', 'media-library-assistant' ) . '&nbsp;' . __( 'Item', 'media-library-assistant' ),
173
+ 'rows' => 6,
174
+ 'help' => __( 'Markup for each lower-level item in the hierarchy; list format only.', 'media-library-assistant' ),
175
+ 'order' => 4,
176
+ ),
177
+ 'child-close' => array(
178
+ 'label' => __( 'Child', 'media-library-assistant' ) . '&nbsp;' . __( 'Close', 'media-library-assistant' ),
179
+ 'rows' => 3,
180
+ 'help' => __( 'Markup for the end of each level in the hierarchy; list format only.', 'media-library-assistant' ),
181
+ 'order' => 5,
182
+ ),
183
+ 'open' => array(
184
+ 'label' => __( 'Open', 'media-library-assistant' ),
185
+ 'rows' => 3,
186
+ 'help' => __( 'Markup for the beginning of the list. List of parameters, e.g., [+selector+], on Documentation tab.', 'media-library-assistant' ),
187
+ 'order' => 1,
188
+ ),
189
+ 'item' => array(
190
+ 'label' => __( 'Item', 'media-library-assistant' ),
191
+ 'rows' => 6,
192
+ 'help' => __( 'Markup for each item/cell in the list.', 'media-library-assistant' ),
193
+ 'order' => 2,
194
+ ),
195
+ 'close' => array(
196
+ 'label' => __( 'Close', 'media-library-assistant' ),
197
+ 'rows' => 3,
198
+ 'help' => __( 'Markup for the end of the list.', 'media-library-assistant' ),
199
+ 'order' => 6,
200
+ ),
201
+ ),
202
+ ),
203
+ ),
204
+ );
205
+ //error_log( __LINE__ . ' mla_localize_template_definitions MLATemplate_Support::$mla_template_definitions = ' . var_export( MLATemplate_Support::$mla_template_definitions, true ), 0 );
206
+ }
207
+
208
+ /**
209
+ * Style and Markup templates
210
+ *
211
+ * Templates are indexed by 'style'/'markup' and then shortcode name. Each template type is defined by:
212
+ *
213
+ * @since 2.30
214
+ *
215
+ * @var array
216
+ */
217
+ private static $mla_custom_templates = NULL;
218
+
219
+ /**
220
+ * Load style and markup templates to $mla_custom_templates
221
+ *
222
+ * @since 2.30
223
+ *
224
+ * @return void
225
+ */
226
+ public static function mla_load_custom_templates() {
227
+ if ( empty( MLATemplate_Support::$mla_template_definitions ) ) {
228
+ MLATemplate_Support::mla_localize_template_definitions();
229
+ }
230
+
231
+ MLATemplate_Support::$mla_custom_templates = NULL;
232
+ $default_templates = MLACore::mla_load_template( 'mla-custom-templates.tpl' );
233
+
234
+ /*
235
+ * Load the default templates
236
+ */
237
+ if ( is_null( $default_templates ) ) {
238
+ MLACore::mla_debug_add( '<strong>mla_debug mla_load_custom_templates()</strong> ' . __( 'error loading tpls/mla-custom-templates.tpl', 'media-library-assistant' ), MLACore::MLA_DEBUG_CATEGORY_ANY );
239
+ return;
240
+ } elseif ( !$default_templates ) {
241
+ MLACore::mla_debug_add( '<strong>mla_debug mla_load_custom_templates()</strong> ' . __( 'tpls/mla-custom-templates.tpl not found', 'media-library-assistant' ), MLACore::MLA_DEBUG_CATEGORY_ANY );
242
+ return;
243
+ }
244
+
245
+ /*
246
+ * Record explicit shortcode assignments
247
+ */
248
+ $mla_shortcode_slugs = array();
249
+ foreach ( $default_templates as $key => $value ) {
250
+ $mla_shortcode_slug = NULL;
251
+
252
+ $match_count = preg_match( '#\<!-- mla_shortcode_slug="(.+)" --\>[\r\n]*#', $value, $matches, PREG_OFFSET_CAPTURE );
253
+ if ( $match_count == 0 ) {
254
+ $match_count = preg_match( '#mla_shortcode_slug="(.+)"[ \r\n]*#', $value, $matches, PREG_OFFSET_CAPTURE );
255
+ }
256
+
257
+ if ( $match_count > 0 ) {
258
+ $mla_shortcode_slug = $matches[ 1 ][ 0 ];
259
+ //error_log( __LINE__ . " default template {$key}, {$mla_shortcode_slug} matches = " . var_export( $matches, true ), 0 );
260
+ $value = substr_replace( $value, '', $matches[ 0 ][ 1 ], strlen( $matches[ 0 ][ 0 ] ) );
261
+ if ( empty( $value ) ) {
262
+ unset( $default_templates[ $key ] );
263
+ //error_log( __LINE__ . " unset default template {$key}, {$mla_shortcode_slug}", 0 );
264
+ } else {
265
+ $default_templates[ $key ] = $value;
266
+ //error_log( __LINE__ . " replace default template {$key}, {$mla_shortcode_slug} value = " . MLAData::mla_hex_dump( $value ), 0 );
267
+ }
268
+ }
269
+
270
+ if ( !empty( $mla_shortcode_slug ) ) {
271
+ $tail = strrpos( $key, '-style' );
272
+ if ( ! ( false === $tail ) ) {
273
+ $mla_shortcode_slugs['style'][ substr( $key, 0, $tail ) ] = $mla_shortcode_slug;
274
+ } else {
275
+ $tail = strrpos( $key, '-arguments-markup' );
276
+ if ( ! ( false === $tail ) ) {
277
+ $mla_shortcode_slugs['markup'][ substr( $key, 0, $tail ) ] = $mla_shortcode_slug;
278
+ }
279
+ }
280
+ }
281
+ }
282
+ //error_log( __LINE__ . " mla_shortcode_slugs = " . var_export( $mla_shortcode_slugs, true ), 0 );
283
+
284
+ /*
285
+ * Find the shortcode and template type for array indices
286
+ */
287
+ foreach ( $default_templates as $key => $value ) {
288
+ $tail = strrpos( $key, '-style' );
289
+ if ( ! ( false === $tail ) ) {
290
+ $name = substr( $key, 0, $tail );
291
+
292
+ if ( isset( $mla_shortcode_slugs['style'][ $name ] ) ) {
293
+ // Assign to the declared shortcode
294
+ MLATemplate_Support::$mla_custom_templates['style'][ $mla_shortcode_slugs['style'][ $name ] ][ $name ] = $value;
295
+ $name = NULL;
296
+ } else {
297
+ // Guess at the shortcode
298
+ foreach( MLATemplate_Support::$mla_template_definitions['style'] as $slug => $definition ) {
299
+ if ( isset( $definition['default_names'] ) && in_array( $name, $definition['default_names'] ) ) {
300
+ MLATemplate_Support::$mla_custom_templates['style'][ $definition['slug'] ][ $name ] = $value;
301
+ $name = NULL;
302
+ break;
303
+ }
304
+ }
305
+ }
306
+
307
+ // Can't find the shortcode; assume it's mla_gallery
308
+ if ( $name ) {
309
+ MLATemplate_Support::$mla_custom_templates['style']['gallery'][ $name ] = $value;
310
+ }
311
+
312
+ continue;
313
+ }
314
+
315
+ $tail = strrpos( $key, '-markup' );
316
+ if ( ! ( false === $tail ) ) {
317
+ $name = substr( $key, 0, $tail );
318
+
319
+ // Look for explicit assignment
320
+ foreach( $mla_shortcode_slugs['markup'] as $root_name => $mla_shortcode_slug ) {
321
+ $root = strpos( $name, $root_name );
322
+ if ( 0 === $root ) {
323
+ $section_name = substr( $name, strlen( $root_name ) + 1 );
324
+ //error_log( __LINE__ . " assign default template {$key}, to [{$mla_shortcode_slug}][{$root_name}][{$section_name}]", 0 );
325
+ // Assign to the declared shortcode
326
+ MLATemplate_Support::$mla_custom_templates['markup'][ $mla_shortcode_slug ][ $root_name ][ $section_name ] = $value;
327
+ $name = NULL;
328
+ break;
329
+ }
330
+ }
331
+
332
+ if ( $name ) {
333
+ // Guess at the shortcode
334
+ foreach( MLATemplate_Support::$mla_template_definitions['markup'] as $slug => $definition ) {
335
+ if ( isset( $definition['default_names'] ) ) {
336
+ foreach( $definition['default_names'] as $default_name ) {
337
+ $root = strpos( $name, $default_name );
338
+ if ( 0 === $root ) {
339
+ foreach( $definition['sections'] as $section_name => $section_value ) {
340
+ $tail = strrpos( $name, '-' . $section_name );
341
+ if ( ! ( false === $tail ) ) {
342
+ $name = substr( $name, 0, $tail );
343
+ MLATemplate_Support::$mla_custom_templates['markup'][ $definition['slug'] ][ $name ][ $section_name ] = $value;
344
+ }
345
+ }
346
+
347
+ $name = NULL;
348
+ break;
349
+ }
350
+ }
351
+ }
352
+ }
353
+ }
354
+
355
+ // Can't find the shortcode; assume it's mla_gallery
356
+ if ( $name ) {
357
+ foreach( MLATemplate_Support::$mla_template_definitions['markup']['gallery']['sections'] as $section_name => $section_value ) {
358
+ $tail = strrpos( $name, '-' . $section_name );
359
+ if ( ! ( false === $tail ) ) {
360
+ $name = substr( $name, 0, $tail );
361
+ MLATemplate_Support::$mla_custom_templates['markup']['gallery'][ $name ][ $section_name ] = $value;
362
+ }
363
+ }
364
+ }
365
+ }
366
+ }
367
+
368
+ /*
369
+ * Add user-defined Style and Markup templates
370
+ *
371
+ * MLA versions before 2.40 will not have separate 'attributes' and 'content' elements,
372
+ * but version 2.3x must "go both ways" to allow for reversions.
373
+ */
374
+ $templates = MLACore::mla_get_option( 'style_templates' );
375
+ if ( is_array( $templates ) ) {
376
+ foreach ( $templates as $name => $value ) {
377
+ // Check for 2.40+ format
378
+ if ( is_array( $value ) ) {
379
+ $attributes = $value['attributes'];
380
+ MLATemplate_Support::$mla_custom_templates['style'][ $attributes['mla_shortcode_slug'] ][ $name ] = $value['content'];
381
+ continue;
382
+ }
383
+
384
+ // Check for explicit assignment
385
+ $match_count = preg_match( '#\<!-- mla_shortcode_slug="(.+)" --\>[\r\n]*#', $value, $matches, PREG_OFFSET_CAPTURE );
386
+ if ( $match_count > 0 ) {
387
+ //error_log( __LINE__ . " default template {$name} matches = " . var_export( $matches, true ), 0 );
388
+ $value = substr_replace( $value, '', $matches[ 0 ][ 1 ], strlen( $matches[ 0 ][ 0 ] ) );
389
+ //error_log( __LINE__ . " replace default template {$name} value = " . MLAData::mla_hex_dump( $value ), 0 );
390
+ MLATemplate_Support::$mla_custom_templates['style'][ $matches[ 1 ][ 0 ] ][ $name ] = $value;
391
+ continue;
392
+ }
393
+
394
+ // Guess from content
395
+ foreach( MLATemplate_Support::$mla_template_definitions['style'] as $slug => $definition ) {
396
+ if ( false !== strpos( $value, '.' . $definition['slug'] ) ) {
397
+ MLATemplate_Support::$mla_custom_templates['style'][ $definition['slug'] ][ $name ] = $value;
398
+ $name = NULL;
399
+ break;
400
+ }
401
+ }
402
+
403
+ if ( $name ) {
404
+ MLATemplate_Support::$mla_custom_templates['style']['gallery'][ $name ] = $value;
405
+ }
406
+ } // foreach $templates
407
+ } // is_array
408
+
409
+ $templates = MLACore::mla_get_option( 'markup_templates' );
410
+ if ( is_array( $templates ) ) {
411
+ foreach ( $templates as $name => $value ) {
412
+ // Check for 2.40+ format
413
+ if ( isset( $value['attributes'] ) ) {
414
+ $attributes = $value['attributes'];
415
+ unset( $value['attributes'] );
416
+ MLATemplate_Support::$mla_custom_templates['markup'][ $attributes['mla_shortcode_slug'] ][ $name ] = $value['content'];
417
+ continue;
418
+ }
419
+
420
+ // Check for explicit assignment
421
+ if ( isset( $value['arguments'] ) ) {
422
+ $match_count = preg_match( '#mla_shortcode_slug="(.+)"[ \r\n]*#', $value['arguments'], $matches, PREG_OFFSET_CAPTURE );
423
+ } else {
424
+ $match_count = 0;
425
+ }
426
+
427
+ if ( $match_count > 0 ) {
428
+ //error_log( __LINE__ . " user template {$key} matches = " . var_export( $matches, true ), 0 );
429
+ $value['arguments'] = substr_replace( $value['arguments'], '', $matches[ 0 ][ 1 ], strlen( $matches[ 0 ][ 0 ] ) );
430
+ if ( empty( $value['arguments'] ) ) {
431
+ //error_log( __LINE__ . " unset user template {$key}", 0 );
432
+ unset( $value['arguments'] );
433
+ } else {
434
+ //error_log( __LINE__ . " replace user {$key} value = " . MLAData::mla_hex_dump( $value['arguments'] ), 0 );
435
+ }
436
+
437
+ MLATemplate_Support::$mla_custom_templates['markup'][ $matches[ 1 ][ 0 ] ][ $name ] = $value;
438
+ continue;
439
+ }
440
+
441
+ // Guess from content
442
+ $full_text = ''; // for guessing shortcode name
443
+ foreach( $value as $section_name => $section_value ) {
444
+ $full_text .= $section_value;
445
+ }
446
+
447
+ foreach( MLATemplate_Support::$mla_template_definitions['markup'] as $slug => $definition ) {
448
+ if ( preg_match( '#class=[\'\"]*.*' . $definition['slug'] . '#', $full_text, $matches ) ) {
449
+ MLATemplate_Support::$mla_custom_templates['markup'][ $definition['slug'] ][ $name ] = $value;
450
+ $name = NULL;
451
+ break;
452
+ }
453
+ }
454
+
455
+ if ( $name ) {
456
+ MLATemplate_Support::$mla_custom_templates['markup']['gallery'][ $name ] = $value;
457
+ }
458
+ } // foreach $templates
459
+ } // is_array
460
+ //error_log( __LINE__ . ' mla_load_custom_templates MLATemplate_Support::$mla_custom_templates = ' . var_export( MLATemplate_Support::$mla_custom_templates, true ), 0 );
461
+ }
462
+
463
+ /**
464
+ * Fetch style or markup template from $mla_templates
465
+ *
466
+ * @since 2.30
467
+ *
468
+ * @param string Template name
469
+ * @param string Shortcode slug; 'gallery' (default), 'tag-cloud' or 'term-list'
470
+ * @param string Template type; 'style' (default) or 'markup'
471
+ * @param string Template section (markup templates); default '[not supplied]'
472
+ *
473
+ * @return string|boolean|null requested template, false if not found or null if no templates
474
+ */
475
+ public static function mla_fetch_custom_template( $key, $shortcode = 'gallery', $type = 'style', $section = '[not supplied]' ) {
476
+ //MLACore::mla_debug_add( "<strong>mla_fetch_custom_template( {$key}, {$shortcode}, {$type}, {$section} )</strong> " . __( 'calling parameters', 'media-library-assistant' ), MLACore::MLA_DEBUG_CATEGORY_ANY );
477
+ if ( ! is_array( MLATemplate_Support::$mla_custom_templates ) ) {
478
+ MLACore::mla_debug_add( '<strong>mla_fetch_custom_template()</strong> ' . __( 'no templates exist', 'media-library-assistant' ), MLACore::MLA_DEBUG_CATEGORY_ANY );
479
+ return NULL;
480
+ }
481
+
482
+ if ( array_key_exists( $type, MLATemplate_Support::$mla_custom_templates ) ) {
483
+ if ( array_key_exists( $shortcode, MLATemplate_Support::$mla_custom_templates[ $type ] ) ) {
484
+ if ( array_key_exists( $key, MLATemplate_Support::$mla_custom_templates[ $type ][ $shortcode ] ) ) {
485
+ if ( 'style' == $type ) {
486
+ return MLATemplate_Support::$mla_custom_templates['style'][ $shortcode ][ $key ];
487
+ }
488
+
489
+ if ( array_key_exists( $section, MLATemplate_Support::$mla_custom_templates['markup'][ $shortcode ][ $key ] ) ) {
490
+ return MLATemplate_Support::$mla_custom_templates['markup'][ $shortcode ][ $key ][ $section ];
491
+ }
492
+
493
+ /*
494
+ * No error - not every section is required
495
+ */
496
+ return false;
497
+ }
498
+ }
499
+ }
500
+
501
+ MLACore::mla_debug_add( "<strong>mla_fetch_custom_template( {$key}, {$shortcode}, {$type}, {$section} )</strong> " . __( 'not found', 'media-library-assistant' ), MLACore::MLA_DEBUG_CATEGORY_ANY );
502
+ return false;
503
+ }
504
+
505
+ /**
506
+ * Get ALL style templates from $mla_custom_templates, including 'default'
507
+ *
508
+ * @since 2.30
509
+ *
510
+ * @param string Shortcode to which the template(s) apply; default ''
511
+ *
512
+ * @return array|null name => value for all style templates or null if no templates
513
+ */
514
+ public static function mla_get_style_templates( $shortcode = '' ) {
515
+ if ( ! is_array( MLATemplate_Support::$mla_custom_templates ) ) {
516
+ MLACore::mla_debug_add( '<strong>mla_debug mla_get_style_templates()</strong> ' . __( 'no templates exist', 'media-library-assistant' ) );
517
+ return NULL;
518
+ }
519
+
520
+ if ( !empty( $shortcode ) ) {
521
+ if ( array_key_exists( $shortcode, MLATemplate_Support::$mla_custom_templates['style'] ) ) {
522
+ return MLATemplate_Support::$mla_custom_templates['style'][ $shortcode ];
523
+ }
524
+
525
+ return NULL;
526
+ }
527
+
528
+ $templates = array();
529
+ foreach ( MLATemplate_Support::$mla_custom_templates['style'] as $shortcode => $value ) {
530
+ $templates = array_merge( $templates, $value );
531
+ } // foreach
532
+
533
+ return $templates;
534
+ }
535
+
536
+ /**
537
+ * Put user-defined style templates to $mla_custom_templates and database
538
+ *
539
+ * @since 2.30
540
+ *
541
+ * @param array name => value for all user-defined style templates
542
+ * @return boolean true if success, false if failure
543
+ */
544
+ public static function mla_put_style_templates( $templates ) {
545
+ if ( MLACore::mla_update_option( 'style_templates', $templates ) ) {
546
+ MLATemplate_Support::mla_load_custom_templates();
547
+ return true;
548
+ }
549
+
550
+ return false;
551
+ }
552
+
553
+ /**
554
+ * Get ALL markup templates from $mla_custom_templates, including 'default'
555
+ *
556
+ * @since 2.30
557
+ *
558
+ * @param string Shortcode to which the template(s) apply; default 'gallery'
559
+ *
560
+ * @return array|null name => value for all markup templates or null if no templates
561
+ */
562
+ public static function mla_get_markup_templates( $shortcode = '' ) {
563
+ if ( ! is_array( MLATemplate_Support::$mla_custom_templates ) ) {
564
+ MLACore::mla_debug_add( '<strong>mla_debug mla_get_markup_templates()</strong> ' . __( 'no templates exist', 'media-library-assistant' ) );
565
+ return NULL;
566
+ }
567
+
568
+ if ( !empty( $shortcode ) ) {
569
+ if ( array_key_exists( $shortcode, MLATemplate_Support::$mla_custom_templates['markup'] ) ) {
570
+ return MLATemplate_Support::$mla_custom_templates['markup'][ $shortcode ];
571
+ }
572
+
573
+ return NULL;
574
+ }
575
+
576
+ $templates = array();
577
+ foreach ( MLATemplate_Support::$mla_custom_templates['markup'] as $shortcode => $value ) {
578
+ $templates = array_merge( $templates, $value );
579
+ } // foreach
580
+
581
+ return $templates;
582
+ }
583
+
584
+ /**
585
+ * Put user-defined markup templates to $mla_custom_templates and database
586
+ *
587
+ * @since 2.30
588
+ *
589
+ * @param array name => value for all user-defined markup templates
590
+ * @return boolean true if success, false if failure
591
+ */
592
+ public static function mla_put_markup_templates( $templates ) {
593
+ if ( MLACore::mla_update_option( 'markup_templates', $templates ) ) {
594
+ MLATemplate_Support::mla_load_custom_templates();
595
+ return true;
596
+ }
597
+
598
+ return false;
599
+ }
600
+ } // Class MLATemplate_Support
601
+
602
+ MLATemplate_Support::mla_load_custom_templates();
603
+ ?>
includes/class-mla-thumbnail-generation.php CHANGED
@@ -81,15 +81,15 @@ class MLA_Thumbnail {
81
  }
82
 
83
  if ( $wp_locale->is_rtl() ) {
84
- wp_register_style( 'mla-thumbnail-generation', MLA_PLUGIN_URL . 'css/mla-thumbnail-generation-rtl.css', false, MLA::CURRENT_MLA_VERSION );
85
  } else {
86
- wp_register_style( 'mla-thumbnail-generation', MLA_PLUGIN_URL . 'css/mla-thumbnail-generation.css', false, MLA::CURRENT_MLA_VERSION );
87
  }
88
 
89
  wp_enqueue_style( 'mla-thumbnail-generation' );
90
 
91
  wp_enqueue_script( 'mla-thumbnail-generation-scripts', MLA_PLUGIN_URL . "js/mla-thumbnail-generation-scripts{$suffix}.js",
92
- array( 'jquery' ), MLA::CURRENT_MLA_VERSION, false );
93
 
94
  $script_variables = array(
95
  'error' => __( 'Error while saving the thumbnails.', 'media-library-assistant' ),
81
  }
82
 
83
  if ( $wp_locale->is_rtl() ) {
84
+ wp_register_style( 'mla-thumbnail-generation', MLA_PLUGIN_URL . 'css/mla-thumbnail-generation-rtl.css', false, MLACore::CURRENT_MLA_VERSION );
85
  } else {
86
+ wp_register_style( 'mla-thumbnail-generation', MLA_PLUGIN_URL . 'css/mla-thumbnail-generation.css', false, MLACore::CURRENT_MLA_VERSION );
87
  }
88
 
89
  wp_enqueue_style( 'mla-thumbnail-generation' );
90
 
91
  wp_enqueue_script( 'mla-thumbnail-generation-scripts', MLA_PLUGIN_URL . "js/mla-thumbnail-generation-scripts{$suffix}.js",
92
+ array( 'jquery' ), MLACore::CURRENT_MLA_VERSION, false );
93
 
94
  $script_variables = array(
95
  'error' => __( 'Error while saving the thumbnails.', 'media-library-assistant' ),
includes/mla-media-modal-js-template.php CHANGED
@@ -47,7 +47,7 @@ if ( empty( $supported_taxonomies ) ) {
47
  <input type="checkbox" name="s[mla_search_alt_text]" id="search-alt-text" value="alt-text" <# if ( -1 != data.searchFields.indexOf( 'alt-text' ) ) { #>checked<# } #> />
48
  <?php _e( 'ALT Text', 'media-library-assistant' ); ?>
49
  </li>
50
- <br>
51
  <li>
52
  <input type="checkbox" name="s[mla_search_excerpt]" id="search-excerpt" value="excerpt" <# if ( -1 != data.searchFields.indexOf( 'excerpt' ) ) { #>checked<# } #> />
53
  <?php _e( 'Caption', 'media-library-assistant' ); ?>
47
  <input type="checkbox" name="s[mla_search_alt_text]" id="search-alt-text" value="alt-text" <# if ( -1 != data.searchFields.indexOf( 'alt-text' ) ) { #>checked<# } #> />
48
  <?php _e( 'ALT Text', 'media-library-assistant' ); ?>
49
  </li>
50
+ <br style="clear: both">
51
  <li>
52
  <input type="checkbox" name="s[mla_search_excerpt]" id="search-excerpt" value="excerpt" <# if ( -1 != data.searchFields.indexOf( 'excerpt' ) ) { #>checked<# } #> />
53
  <?php _e( 'Caption', 'media-library-assistant' ); ?>
includes/mla-plugin-loader.php CHANGED
@@ -78,6 +78,8 @@ if ( ! empty( $mla_plugin_loader_error_messages ) ) {
78
  }
79
 
80
  if( defined('DOING_AJAX') && DOING_AJAX ) {
 
 
81
  /*
82
  * Ajax handlers
83
  */
78
  }
79
 
80
  if( defined('DOING_AJAX') && DOING_AJAX ) {
81
+ //error_log( __LINE__ . ' plugin loader request = ' . var_export( $_REQUEST, true ), 0 );
82
+
83
  /*
84
  * Ajax handlers
85
  */
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.25
10
  */
11
 
12
  /*
@@ -16,7 +16,7 @@ Description: Enhances the Media Library; powerful [mla_gallery], taxonomy suppor
16
  Author: David Lingren, Fair Trade Judaica
17
  Text Domain: media-library-assistant
18
  Domain Path: /languages
19
- Version: 2.25
20
  Author URI: http://fairtradejudaica.org/our-story/staff/
21
 
22
  Copyright 2011-2016 David Lingren
6
  * will the rest of the plugin be loaded and run.
7
  *
8
  * @package Media Library Assistant
9
+ * @version 2.31
10
  */
11
 
12
  /*
16
  Author: David Lingren, Fair Trade Judaica
17
  Text Domain: media-library-assistant
18
  Domain Path: /languages
19
+ Version: 2.31
20
  Author URI: http://fairtradejudaica.org/our-story/staff/
21
 
22
  Copyright 2011-2016 David Lingren
js/mla-media-modal-scripts.js CHANGED
@@ -28,7 +28,9 @@ var wp, wpAjax, ajaxurl, jQuery, _,
28
  };
29
 
30
  (function($){
31
- var mlaDrop = wp.media.view.AttachmentsBrowser;
 
 
32
 
33
  /* for debug : trace every event triggered in the MediaFrame controller * /
34
  var originalMediaFrameTrigger = wp.media.view.MediaFrame.prototype.trigger;
@@ -777,7 +779,7 @@ this.listenTo( this.controller, 'all', this.toolbarEvent );
777
 
778
  // Apply the original method to create the toolbar
779
  //wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply( this, arguments );
780
- mlaDrop.prototype.createToolbar.apply( this, arguments );
781
  mlaModal.utility.mlaAttachmentsBrowser = this;
782
  filters = this.options.filters;
783
 
@@ -832,9 +834,9 @@ this.listenTo( this.controller, 'all', this.toolbarEvent );
832
  if ( this.options.search ) {
833
  if ( mlaModal.settings.enableSearchBox ) {
834
  this.controller.on( 'content:activate', this.hideDefaultSearch );
 
835
  this.controller.on( 'router:render', this.hideDefaultSearch );
836
  this.controller.on( 'uploader:ready', this.hideDefaultSearch );
837
- this.controller.on( 'edit:activate', this.hideDefaultSearch );
838
 
839
  this.toolbar.set( 'MlaSearch', new wp.media.view.MlaSearch({
840
  controller: this.controller,
@@ -1244,7 +1246,8 @@ this.listenTo( this.controller, 'all', this.toolbarEvent );
1244
  wp.media.view.AttachmentCompat = wp.media.view.AttachmentCompat.extend({
1245
  initialize: function() {
1246
  // Call the base method in the super class
1247
- wp.media.view.AttachmentCompat.__super__.initialize.apply( this, arguments );
 
1248
 
1249
  // Hook the 'ready' event when the sidebar has been rendered so we can add our enhancements
1250
  this.on( 'ready', function() {
@@ -1283,7 +1286,8 @@ this.listenTo( this.controller, 'all', this.toolbarEvent );
1283
 
1284
  initialize: function() {
1285
  // Call the base method in the super class
1286
- wp.media.model.Selection.__super__.initialize.apply( this, arguments );
 
1287
 
1288
  /* for debug : trace every event triggered in the wp.media.model.Selection * /
1289
  this.stopListening( this );
28
  };
29
 
30
  (function($){
31
+ var mlaAttachmentsBrowser = wp.media.view.AttachmentsBrowser,
32
+ mlaAttachmentCompat = wp.media.view.AttachmentCompat,
33
+ mlaSelection = wp.media.model.Selection;
34
 
35
  /* for debug : trace every event triggered in the MediaFrame controller * /
36
  var originalMediaFrameTrigger = wp.media.view.MediaFrame.prototype.trigger;
779
 
780
  // Apply the original method to create the toolbar
781
  //wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply( this, arguments );
782
+ mlaAttachmentsBrowser.prototype.createToolbar.apply( this, arguments );
783
  mlaModal.utility.mlaAttachmentsBrowser = this;
784
  filters = this.options.filters;
785
 
834
  if ( this.options.search ) {
835
  if ( mlaModal.settings.enableSearchBox ) {
836
  this.controller.on( 'content:activate', this.hideDefaultSearch );
837
+ this.controller.on( 'edit:activate', this.hideDefaultSearch );
838
  this.controller.on( 'router:render', this.hideDefaultSearch );
839
  this.controller.on( 'uploader:ready', this.hideDefaultSearch );
 
840
 
841
  this.toolbar.set( 'MlaSearch', new wp.media.view.MlaSearch({
842
  controller: this.controller,
1246
  wp.media.view.AttachmentCompat = wp.media.view.AttachmentCompat.extend({
1247
  initialize: function() {
1248
  // Call the base method in the super class
1249
+ //wp.media.view.AttachmentCompat.__super__.initialize.apply( this, arguments );
1250
+ mlaAttachmentCompat.prototype.initialize.apply( this, arguments );
1251
 
1252
  // Hook the 'ready' event when the sidebar has been rendered so we can add our enhancements
1253
  this.on( 'ready', function() {
1286
 
1287
  initialize: function() {
1288
  // Call the base method in the super class
1289
+ //wp.media.model.Selection.__super__.initialize.apply( this, arguments );
1290
+ mlaSelection.prototype.initialize.apply( this, arguments );
1291
 
1292
  /* for debug : trace every event triggered in the wp.media.model.Selection * /
1293
  this.stopListening( this );
js/mla-media-modal-scripts.min.js CHANGED
@@ -1,1743 +1 @@
1
- // uses Global ajaxurl
2
-
3
- var wp, wpAjax, ajaxurl, jQuery, _,
4
- getUserSetting, setUserSetting, deleteUserSetting,
5
- mlaTaxonomy,
6
- mlaModal = {
7
- // Properties
8
- strings: {},
9
- settings: {},
10
- initialHTML: {},
11
- uploading: false,
12
- cid: null,
13
-
14
- // Utility functions
15
- utility: {
16
- originalMediaAjax: null,
17
- mlaAttachmentsBrowser: null,
18
- parseTermsOptions: null,
19
- arrayCleanup: null,
20
- parseTaxonomyId: null,
21
- hookCompatTaxonomies: null,
22
- fillCompatTaxonomies: null,
23
- supportCompatTaxonomies: null
24
- },
25
-
26
- // Components
27
- tagBox: null
28
- };
29
-
30
- (function($){
31
- var mlaDrop = wp.media.view.AttachmentsBrowser;
32
-
33
- /* for debug : trace every event triggered in the MediaFrame controller * /
34
- var originalMediaFrameTrigger = wp.media.view.MediaFrame.prototype.trigger;
35
- wp.media.view.MediaFrame.prototype.trigger = function(){
36
- console.log('MediaFrame Event: ', arguments[0]);
37
- originalMediaFrameTrigger.apply(this, Array.prototype.slice.call(arguments));
38
- } // */
39
-
40
- /* for debug : trace every event triggered in the view.Attachment controller * /
41
- var originalAttachmentTrigger = wp.media.view.Attachment.prototype.trigger;
42
- wp.media.view.Attachment.prototype.trigger = function(){
43
- console.log('view.Attachment Event: ', arguments[0]);
44
- originalAttachmentTrigger.apply(this, Array.prototype.slice.call(arguments));
45
- } // */
46
-
47
- /* for debug : trace every event triggered in the model.Attachment controller * /
48
- var originalModelAttachmentTrigger = wp.media.model.Attachment.prototype.trigger;
49
- wp.media.model.Attachment.prototype.trigger = function(){
50
- console.log('model.Attachment Event: ', arguments[0]);
51
- originalModelAttachmentTrigger.apply(this, Array.prototype.slice.call(arguments));
52
- } // */
53
-
54
- /* for debug : trace every event triggered in the view.AttachmentCompat controller * /
55
- var originalAttachmentCompatTrigger = wp.media.view.AttachmentCompat.prototype.trigger;
56
- wp.media.view.AttachmentCompat.prototype.trigger = function(){
57
- console.log('view.AttachmentCompat Event: ', arguments[0]);
58
-
59
- originalAttachmentCompatTrigger.apply(this, Array.prototype.slice.call(arguments));
60
- } // */
61
-
62
- /* for debug : trace every event triggered in the model.Selection controller * /
63
- var originalModelSelectionTrigger = wp.media.model.Selection.prototype.trigger;
64
- wp.media.model.Selection.prototype.trigger = function(){
65
- console.log('model.Selection Event: ', arguments[0]);
66
-
67
- originalModelSelectionTrigger.apply(this, Array.prototype.slice.call(arguments));
68
- } // */
69
-
70
- /* for debug : trace every invocation of the media.post method * /
71
- var originalMediaPost = media.post;
72
- media.post = function( action, data ) {
73
- //console.log('media.post action: ', action );
74
- //console.log('media.post data: ', JSON.stringify( data ) );
75
-
76
- return originalMediaPost.apply(this, Array.prototype.slice.call(arguments));
77
- }; // */
78
-
79
- /* for debug : trace every invocation of the wp.ajax.send function * /
80
- var originalWpAjaxSend = wp.ajax.send;
81
- wp.ajax.send = function( action, data ) {
82
- //console.log('wp.ajax.send action: ', JSON.stringify( action ) );
83
- //console.log('wp.ajax.send data: ', JSON.stringify( data ) );
84
-
85
- return originalWpAjaxSend.apply(this, Array.prototype.slice.call(arguments));
86
- }; // */
87
-
88
- /**
89
- * Localized settings and strings
90
- */
91
- mlaModal.strings = typeof wp.media.view.l10n.mla_strings === 'undefined' ? {} : wp.media.view.l10n.mla_strings;
92
- delete wp.media.view.l10n.mla_strings;
93
-
94
- mlaModal.settings = typeof wp.media.view.settings.mla_settings === 'undefined' ? { screen: 'unknown', enableMediaGrid: false, enableMediaModal: false } : wp.media.view.settings.mla_settings;
95
- delete wp.media.view.settings.mla_settings;
96
-
97
- /*
98
- * Do not proceed unless there's positive indication that the MLA enhancements
99
- * have been enabled!
100
- */
101
- if ( ! ( mlaModal.settings.enableMediaGrid || mlaModal.settings.enableMediaModal ) ) {
102
- return;
103
- }
104
-
105
- if ( ( 'grid' === mlaModal.settings.screen ) && false === mlaModal.settings.enableMediaGrid ) {
106
- return;
107
- }
108
-
109
- if ( ( 'modal' === mlaModal.settings.screen ) && false === mlaModal.settings.enableMediaModal ) {
110
- return;
111
- }
112
-
113
- /*
114
- * Parse outgoing Ajax requests, look for the 'query-attachments' action and stuff
115
- * our arguments into the "s" field because MMMW only monitors that one field.
116
- */
117
- mlaModal.utility.originalMediaAjax = wp.media.ajax;
118
- wp.media.ajax = function( action, options ) {
119
- var state = mlaModal.settings.state, query, stype, s, searchValues;
120
-
121
- if ( _.isObject( action ) ) {
122
- options = action;
123
- } else {
124
- options = options || {};
125
- options.data = _.extend( options.data || {}, { action: action });
126
- }
127
-
128
- if ( 'query-attachments' == options.data.action ) {
129
- query = options.data.query;
130
- stype = typeof query.s;
131
- if ( 'object' == stype )
132
- s = query.s;
133
- else if ( 'string' == stype )
134
- s = { 'mla_search_value': query.s };
135
- else
136
- s = { 'mla_search_value': '' };
137
-
138
- if ( 'undefined' != typeof query.post_mime_type )
139
- mlaModal.settings.query[state].filterMime = query.post_mime_type;
140
- else
141
- mlaModal.settings.query[state].filterMime = 'all';
142
-
143
- if ( 'undefined' != typeof s.mla_filter_month ){
144
- mlaModal.settings.query[state].filterMonth = s.mla_filter_month;
145
- } else {
146
- if ( 'undefined' != typeof query.year ) {
147
- // Media Grid native dateFilter
148
- mlaModal.settings.query[state].filterMonth = ( 100 * query.year ) + ( 1 * query.monthnum ) ;
149
- } else {
150
- // mlaModal.settings.query[state].filterMonth = 0;
151
- }
152
- }
153
-
154
- if ( 'undefined' != typeof s.mla_filter_term )
155
- mlaModal.settings.query[state].filterTerm = s.mla_filter_term;
156
-
157
- if ( 'undefined' != typeof s.mla_search_value )
158
- mlaModal.settings.query[state].searchValue = s.mla_search_value;
159
-
160
- searchValues = {
161
- 'mla_filter_month': mlaModal.settings.query[state].filterMonth,
162
- 'mla_filter_term': mlaModal.settings.query[state].filterTerm,
163
- 'mla_terms_search': mlaModal.settings.query[state].termsSearch,
164
- 'mla_search_clicks': mlaModal.settings.query[state].searchClicks,
165
- 'mla_search_value': mlaModal.settings.query[state].searchValue,
166
- 'mla_search_fields': mlaModal.settings.query[state].searchFields,
167
- 'mla_search_connector': mlaModal.settings.query[state].searchConnector };
168
-
169
- //Terms Search is not sticky
170
- mlaModal.settings.query[state].termsSearch = '';
171
- $( '#mla-terms-search-input' ).html( '' ).val( '' );
172
-
173
- options.data.query.s = searchValues;
174
- }
175
-
176
- return mlaModal.utility.originalMediaAjax.call(this, options );
177
- }; // wp.media.ajax
178
-
179
- /**
180
- * Extended Filters dropdown with more Mime Types
181
- */
182
- if ( mlaModal.settings.enableMimeTypes ) {
183
- wp.media.view.AttachmentFilters.Mla = wp.media.view.AttachmentFilters.extend({
184
- createFilters: function() {
185
- var state = this.controller._state,
186
- filters = {};
187
-
188
- _.each( mlaModal.settings.allMimeTypes || {}, function( text, key ) {
189
- if ( ( 'grid' === mlaModal.settings.screen ) || ( 'trash' !== key ) ) {
190
- filters[ key ] = {
191
- text: text,
192
- props: {
193
- type: key,
194
- uploadedTo: null,
195
- orderby: 'date',
196
- order: 'DESC'
197
- }
198
- };
199
- }
200
- });
201
-
202
- filters.all = {
203
- text: wp.media.view.l10n.allMediaItems,
204
- props: {
205
- type: null,
206
- uploadedTo: null,
207
- orderby: 'date',
208
- order: 'DESC'
209
- },
210
- priority: 10
211
- };
212
-
213
- if ( wp.media.view.settings.post.id ) {
214
- filters.uploaded = {
215
- text: wp.media.view.l10n.uploadedToThisPost,
216
- props: {
217
- type: null,
218
- uploadedTo: wp.media.view.settings.post.id,
219
- orderby: 'menuOrder',
220
- order: 'ASC'
221
- },
222
- priority: 20
223
- };
224
- }
225
-
226
- this.filters = filters;
227
- if ( 'undefined' === typeof filters[ mlaModal.settings.query[state].filterMime ] ) {
228
- mlaModal.settings.query[state].filterMime = 'all';
229
- }
230
-
231
- if ( mlaModal.settings.query[state].filterMime != 'all' ) {
232
- this.model.set( filters[ mlaModal.settings.query[state].filterMime ].props, { silent: false } );
233
- }
234
- },
235
-
236
- select: function() {
237
- var state = this.controller._state,
238
- model = this.model,
239
- value = mlaModal.settings.query[state].filterMime,
240
- props = model.toJSON();
241
-
242
- if ( false === mlaModal.settings.enableSearchBox ) {
243
- if ( 'string' == typeof props.search ) {
244
- mlaModal.settings.query[state].searchValue = props.search;
245
- } else {
246
- mlaModal.settings.query[state].searchValue = '';
247
- }
248
- }
249
-
250
- _.find( this.filters, function( filter, id ) {
251
- var equal = _.all( filter.props, function( prop, key ) {
252
- return prop === ( _.isUndefined( props[ key ] ) ? null : props[ key ] );
253
- });
254
-
255
- if ( equal ) {
256
- return value = id;
257
- }
258
- });
259
-
260
- this.$el.val( value );
261
- },
262
-
263
- change: function() {
264
- var toolbar = $( this.el ).closest( 'div.media-toolbar' ),
265
- filter = this.filters[ this.el.value ];
266
-
267
- if ( filter ) {
268
- // silent because we must change the "s" prop before triggering an update
269
- this.model.set( filter.props, { silent: true } );
270
- $( '#mla-search-submit', toolbar ).click();
271
- }
272
- }
273
- });
274
-
275
- wp.media.view.AttachmentFilters.MlaUploaded = wp.media.view.AttachmentFilters.extend({
276
- createFilters: function() {
277
- var type = this.model.get('type'),
278
- types = wp.media.view.settings.mimeTypes,
279
- text,
280
- state = this.controller._state,
281
- filters = {};
282
-
283
- if ( types && type ) {
284
- text = types[ type ];
285
- }
286
-
287
- _.each( mlaModal.settings.uploadMimeTypes || {}, function( text, key ) {
288
- if ( ( 'grid' === mlaModal.settings.screen ) || ( 'trash' !== key ) ) {
289
- filters[ key ] = {
290
- text: text,
291
- props: {
292
- type: key,
293
- uploadedTo: null,
294
- orderby: 'date',
295
- order: 'DESC'
296
- }
297
- };
298
- }
299
- });
300
-
301
- filters.all = {
302
- text: text || wp.media.view.l10n.allMediaItems,
303
- props: {
304
- uploadedTo: null,
305
- orderby: 'date',
306
- order: 'DESC'
307
- },
308
- priority: 10
309
- };
310
-
311
- filters.uploaded = {
312
- text: wp.media.view.l10n.uploadedToThisPost,
313
- props: {
314
- type: null,
315
- uploadedTo: wp.media.view.settings.post.id,
316
- orderby: 'menuOrder',
317
- order: 'ASC'
318
- },
319
- priority: 20
320
- };
321
-
322
- filters.unattached = {
323
- text: wp.media.view.l10n.unattached,
324
- props: {
325
- uploadedTo: 0,
326
- orderby: 'menuOrder',
327
- order: 'ASC'
328
- },
329
- priority: 50
330
- };
331
-
332
- this.filters = filters;
333
- if ( 'undefined' === typeof filters[ mlaModal.settings.query[state].filterUploaded ] ) {
334
- mlaModal.settings.query[state].filterUploaded = 'all';
335
- }
336
-
337
- if ( mlaModal.settings.query[state].filterUploaded != 'all' ) {
338
- this.model.set( filters[ mlaModal.settings.query[state].filterUploaded ].props, { silent: false } );
339
- }
340
- },
341
-
342
- select: function() {
343
- var state = this.controller._state,
344
- model = this.model,
345
- value = mlaModal.settings.query[state].filterMime,
346
- props = model.toJSON();
347
-
348
- if ( false === mlaModal.settings.enableSearchBox ) {
349
- if ( 'string' == typeof props.search ) {
350
- mlaModal.settings.query[state].searchValue = props.search;
351
- } else {
352
- mlaModal.settings.query[state].searchValue = '';
353
- }
354
- }
355
-
356
- _.find( this.filters, function( filter, id ) {
357
- var equal = _.all( filter.props, function( prop, key ) {
358
- return prop === ( _.isUndefined( props[ key ] ) ? null : props[ key ] );
359
- });
360
-
361
- if ( equal ) {
362
- return value = id;
363
- }
364
- });
365
-
366
- this.$el.val( value );
367
- },
368
-
369
- change: function() {
370
- var toolbar = $( this.el ).closest( 'div.media-toolbar' ),
371
- filter = this.filters[ this.el.value ];
372
-
373
- if ( filter ) {
374
- // silent because we must change the "s" prop before triggering an update
375
- this.model.set( filter.props, { silent: true } );
376
- $( '#mla-search-submit', toolbar ).click();
377
- }
378
- }
379
- });
380
- }
381
-
382
- /**
383
- * Extended Filters dropdown with month and year selection values
384
- */
385
- if ( mlaModal.settings.enableMonthsDropdown ) {
386
- wp.media.view.AttachmentFilters.MlaMonths = wp.media.view.AttachmentFilters.extend({
387
- className: 'attachment-filters',
388
- id: 'media-attachment-date-filters',
389
-
390
- createFilters: function() {
391
- var state = this.controller._state,
392
- filters = {};
393
-
394
- _.each( mlaModal.settings.months || {}, function( text, key ) {
395
- filters[ key ] = {
396
- text: text,
397
- props: { s: { 'mla_filter_month': key } }
398
- };
399
- });
400
-
401
- this.filters = filters;
402
- if ( 'undefined' === typeof filters[ mlaModal.settings.query[state].filterMonth ] ) {
403
- mlaModal.settings.query[state].filterMonth = 0;
404
- }
405
-
406
- if ( mlaModal.settings.query[state].filterMonth > 0 )
407
- this.model.set( filters[ mlaModal.settings.query[state].filterMonth ].props, { silent: false } );
408
- },
409
-
410
- select: function() {
411
- var state = this.controller._state,
412
- model = this.model,
413
- value = mlaModal.settings.query[state].filterMonth,
414
- props = model.toJSON();
415
-
416
- if ( _.isUndefined( props.s ) )
417
- props.s = {};
418
-
419
- if ( false === mlaModal.settings.enableSearchBox ) {
420
- if ( 'string' == typeof props.search ) {
421
- mlaModal.settings.query[state].searchValue = props.search;
422
- } else {
423
- mlaModal.settings.query[state].searchValue = '';
424
- }
425
- }
426
-
427
- if (_.isUndefined( props.s.mla_filter_month ) )
428
- props.s.mla_filter_month = mlaModal.settings.query[state].filterMonth;
429
- else
430
- mlaModal.settings.query[state].filterMonth = props.s.mla_filter_month;
431
-
432
- _.find( this.filters, function( filter, id ) {
433
- var equal = _.all( filter.props, function( prop ) {
434
- return prop.mla_filter_month == mlaModal.settings.query[state].filterMonth;
435
- });
436
-
437
- if ( equal )
438
- return value = id;
439
- });
440
-
441
- this.$el.val( value );
442
- },
443
-
444
- change: function() {
445
- var filter = this.filters[ this.el.value ], newProps;
446
- if ( filter ) {
447
- newProps = { s: { 'mla_filter_month': filter.props.s.mla_filter_month } };
448
- this.model.set( newProps );
449
- }
450
- }
451
- });
452
- }
453
-
454
- /**
455
- * Extended Filters dropdown with taxonomy term selection values
456
- */
457
- if ( mlaModal.settings.enableTermsDropdown ) {
458
- wp.media.view.AttachmentFilters.MlaTerms = wp.media.view.AttachmentFilters.extend({
459
- className: 'attachment-filters',
460
- id: 'media-attachment-term-filters',
461
-
462
- createFilters: function() {
463
- var state = this.controller._state, index,
464
- filters = {};
465
-
466
- _.each( mlaModal.settings.termsText || {}, function( text, key ) {
467
- filters[ key ] = {
468
- text: text,
469
- props: { s: { 'mla_filter_term': parseInt( mlaModal.settings.termsValue[ key ] ) } }
470
- };
471
- });
472
-
473
- this.filters = filters;
474
- // need to translate from termsValue to the index value
475
- index = _.indexOf( mlaModal.settings.termsValue, mlaModal.settings.query[state].filterTerm );
476
- if ( index > 0 )
477
- this.model.set( filters[ index ].props, { silent: false } );
478
- },
479
-
480
- select: function() {
481
- var state = this.controller._state,
482
- model = this.model,
483
- value = mlaModal.settings.query[state].filterTerm,
484
- props = model.toJSON();
485
-
486
- if ( _.isUndefined( props.s ) )
487
- props.s = {};
488
-
489
- if ( false === mlaModal.settings.enableSearchBox ) {
490
- if ( 'string' == typeof props.search ) {
491
- mlaModal.settings.query[state].searchValue = props.search;
492
- } else {
493
- mlaModal.settings.query[state].searchValue = '';
494
- }
495
- }
496
-
497
- if (_.isUndefined( props.s.mla_filter_term ) )
498
- props.s.mla_filter_term = mlaModal.settings.query[state].filterTerm;
499
- else
500
- mlaModal.settings.query[state].filterTerm = props.s.mla_filter_term;
501
-
502
- _.find( this.filters, function( filter, id ) {
503
- var equal = _.all( filter.props, function( prop ) {
504
- return prop.mla_filter_term == mlaModal.settings.query[state].filterTerm;
505
- });
506
-
507
- if ( equal )
508
- return value = id;
509
- });
510
-
511
- this.$el.val( value );
512
- },
513
-
514
- change: function() {
515
- var filter = this.filters[ this.el.value ], newProps;
516
-
517
- if ( filter ) {
518
- newProps = { s: { 'mla_filter_term': filter.props.s.mla_filter_term } };
519
- this.model.set( newProps );
520
- }
521
- }
522
- });
523
- }
524
-
525
- /**
526
- * Extended Terms Search activation button
527
- */
528
- if ( mlaModal.settings.enableTermsSearch ) {
529
- wp.media.view.MlaTermsSearch = wp.media.View.extend({
530
- tagName: 'span',
531
- className: 'mla-terms-search',
532
- template: wp.media.template('mla-terms-search-button'),
533
-
534
- attributes: {
535
- type: 'mla-terms-search-button'
536
- },
537
-
538
- events: {
539
- 'change': 'termsSearchOpen',
540
- 'click': 'termsSearchOpen',
541
- },
542
-
543
- render: function() {
544
- this.$el.html( this.template( mlaModal.strings ) );
545
- return this;
546
- },
547
-
548
- termsSearchOpen: function( event ) {
549
- var toolbar = $( this.el ).closest( 'div.media-toolbar' );
550
-
551
- if ( ( 'click' == event.type ) && ( 'mla_terms_search' === event.target.name ) ) {
552
- mlaTaxonomy.termsSearch.open();
553
-
554
- $( '#mla-terms-search-form' ).off( 'submit' ); // only fire once per open
555
- $( '#mla-terms-search-form' ).submit( function( e ){
556
- var inputs, inputIndex, termsSearch = { phrases: '', taxonomies: [] };
557
-
558
- e.preventDefault();
559
-
560
- inputs = $( '#mla-terms-search-form' ).serializeArray();
561
- for( inputIndex = 0; inputIndex < inputs.length; inputIndex++ ) {
562
- switch ( inputs[ inputIndex ].name ) {
563
- case 'mla_terms_search[phrases]':
564
- termsSearch.phrases = inputs[ inputIndex ].value;
565
- break;
566
- case 'mla_terms_search[radio_phrases]':
567
- termsSearch.radio_phrases = inputs[ inputIndex ].value;
568
- break;
569
- case 'mla_terms_search[radio_terms]':
570
- termsSearch.radio_terms = inputs[ inputIndex ].value;
571
- break;
572
- case 'mla_terms_search[taxonomies][]':
573
- termsSearch.taxonomies[ termsSearch.taxonomies.length ] = inputs[ inputIndex ].value;
574
- break;
575
- }
576
- }
577
-
578
- mlaModal.settings.query[mlaModal.settings.state].termsSearch = termsSearch;
579
- $( '#mla-search-submit', toolbar ).click();
580
- return false;
581
- });
582
-
583
- $( '#mla-terms-search-input' ).keypress( function( e ){
584
- if ( 13 == e.which ) {
585
- e.preventDefault();
586
- $( '#mla-terms-search-submit' ).click();
587
- }
588
- });
589
- }
590
- }
591
- }); // wp.media.view.MlaTermsSearch
592
- } // mlaModal.settings.enableTermsSearch
593
-
594
- /* for debug : trace every event triggered in the wp.media.view.MlaSearch * /
595
- function MlaSearchOn( eventName ) {
596
- console.log('wp.media.view.MlaSearch Event: ', eventName);
597
- } // */
598
-
599
- /**
600
- * Extended wp.media.view.Search
601
- */
602
- if ( mlaModal.settings.enableSearchBox ) {
603
- wp.media.view.MlaSearch = wp.media.View.extend({
604
- tagName: 'div',
605
- className: 'mla-search-box',
606
- template: wp.media.template('mla-search-box'),
607
-
608
- attributes: {
609
- type: 'mla-search-box'
610
- },
611
-
612
- events: {
613
- 'input': 'search',
614
- 'change': 'search',
615
- 'click': 'search',
616
- 'search': 'search',
617
- 'MlaSearch': 'search'
618
- },
619
-
620
- initialize: function() {
621
- var state = this.controller._state;
622
- /* for debug : trace every event triggered in the wp.media.view.MlaSearch * /
623
- wp.media.view.MlaSearch.off( 'all', MlaSearchOn );
624
- wp.media.view.MlaSearch.on( 'all', MlaSearchOn );
625
- // */
626
-
627
- if ( 'undefined' === typeof mlaModal.settings.query[ state ] ) {
628
- mlaModal.settings.query[ state ] = _.clone( mlaModal.settings.query.initial );
629
- mlaModal.settings.query[ state ].searchFields = _.clone( mlaModal.settings.query.initial.searchFields );
630
- }
631
- },
632
-
633
- render: function() {
634
- var state = this.controller._state,
635
- data = _.extend( mlaModal.strings, mlaModal.settings.query[ state ] );
636
- this.$el.html( this.template( data ) );
637
- return this;
638
- },
639
-
640
- search: function( event ) {
641
- var state = this.controller._state, searchValues, searchFields, index;
642
-
643
- if ( ( 'input' == event.type ) && ( 's[mla_search_value]' == event.target.name ) ) {
644
- mlaModal.settings.query[ state ].searchValue = event.target.value;
645
- return;
646
- }
647
-
648
- if ( ( 'click' == event.type ) && ( 'mla_search_submit' != event.target.name ) ) {
649
- return;
650
- }
651
-
652
- switch ( event.target.name ) {
653
- case 's[mla_search_value]':
654
- mlaModal.settings.query[ state ].searchValue = event.target.value;
655
- break;
656
- case 'mla_search_submit':
657
- searchValues = {
658
- 'mla_filter_month': mlaModal.settings.query[ state ].filterMonth,
659
- 'mla_filter_term': mlaModal.settings.query[ state ].filterTerm,
660
- 'mla_terms_search': mlaModal.settings.query[ state ].termsSearch,
661
- 'mla_search_clicks': mlaModal.settings.query[ state ].searchClicks++,
662
- 'mla_search_value': mlaModal.settings.query[ state ].searchValue,
663
- 'mla_search_fields': mlaModal.settings.query[ state ].searchFields,
664
- 'mla_search_connector': mlaModal.settings.query[ state ].searchConnector };
665
- this.model.set({ 's': searchValues });
666
- break;
667
- case 's[mla_search_connector]':
668
- mlaModal.settings.query[ state ].searchConnector = event.target.value;
669
- break;
670
- case 's[mla_search_title]':
671
- searchFields = mlaModal.settings.query[ state ].searchFields;
672
- index = searchFields.indexOf( 'title' );
673
- if ( -1 == index )
674
- searchFields.push( 'title' );
675
- else
676
- searchFields.splice( index, 1 );
677
-
678
- mlaModal.settings.query[ state ].searchFields = searchFields;
679
- break;
680
- case 's[mla_search_name]':
681
- index = mlaModal.settings.query[ state ].searchFields.indexOf( 'name' );
682
- if ( -1 == index )
683
- mlaModal.settings.query[ state ].searchFields.push( 'name' );
684
- else
685
- mlaModal.settings.query[ state ].searchFields.splice( index, 1 );
686
- break;
687
- case 's[mla_search_alt_text]':
688
- index = mlaModal.settings.query[ state ].searchFields.indexOf( 'alt-text' );
689
- if ( -1 == index )
690
- mlaModal.settings.query[ state ].searchFields.push( 'alt-text' );
691
- else
692
- mlaModal.settings.query[ state ].searchFields.splice( index, 1 );
693
- break;
694
- case 's[mla_search_excerpt]':
695
- index = mlaModal.settings.query[ state ].searchFields.indexOf( 'excerpt' );
696
- if ( -1 == index )
697
- mlaModal.settings.query[ state ].searchFields.push( 'excerpt' );
698
- else
699
- mlaModal.settings.query[ state ].searchFields.splice( index, 1 );
700
- break;
701
- case 's[mla_search_content]':
702
- index = mlaModal.settings.query[ state ].searchFields.indexOf( 'content' );
703
- if ( -1 == index )
704
- mlaModal.settings.query[ state ].searchFields.push( 'content' );
705
- else
706
- mlaModal.settings.query[ state ].searchFields.splice( index, 1 );
707
- break;
708
- case 's[mla_search_terms]':
709
- index = mlaModal.settings.query[ state ].searchFields.indexOf( 'terms' );
710
- if ( -1 == index )
711
- mlaModal.settings.query[ state ].searchFields.push( 'terms' );
712
- else
713
- mlaModal.settings.query[ state ].searchFields.splice( index, 1 );
714
- break;
715
- }
716
- }
717
- }); // wp.media.view.MlaSearch
718
- } else {
719
- wp.media.view.MlaSearch = wp.media.View.extend({
720
- tagName: 'span',
721
- className: 'mla-simulate-search-button',
722
- template: wp.media.template('mla-simulate-search-button'),
723
-
724
- attributes: {
725
- type: 'mla-simulate-search-button'
726
- },
727
-
728
- events: {
729
- 'click': 'simulateSearch',
730
- },
731
-
732
- render: function() {
733
- this.$el.html( this.template( mlaModal.strings ) );
734
- return this;
735
- },
736
-
737
- simulateSearch: function() {
738
- var state = this.controller._state, searchValues = {
739
- 'mla_filter_month': mlaModal.settings.query[ state ].filterMonth,
740
- 'mla_filter_term': mlaModal.settings.query[ state ].filterTerm,
741
- 'mla_terms_search': mlaModal.settings.query[ state ].termsSearch,
742
- 'mla_search_clicks': mlaModal.settings.query[ state ].searchClicks++,
743
- 'mla_search_value': mlaModal.settings.query[ state ].searchValue,
744
- 'mla_search_fields': mlaModal.settings.query[ state ].searchFields,
745
- 'mla_search_connector': mlaModal.settings.query[ state ].searchConnector };
746
- this.model.set({ 's': searchValues });
747
- }
748
- }); // Simulated search
749
- } // mlaModal.settings.enableSearchBox
750
-
751
- /**
752
- * Add/replace media-toolbar controls with our own
753
- */
754
- if ( mlaModal.settings.enableMimeTypes || mlaModal.settings.enableMonthsDropdown || mlaModal.settings.enableTermsDropdown || mlaModal.settings.enableTermsSearch || mlaModal.settings.enableSearchBox ) {
755
- wp.media.view.AttachmentsBrowser = wp.media.view.AttachmentsBrowser.extend({
756
- /* for debug : trace every event triggered in this.controller * /
757
- toolbarEvent: function( eventName ) {
758
- var id = this.model.attributes.id;
759
- console.log('toolbarEvent this.model.attributes: ', JSON.stringify( this.model.attributes ));
760
- console.log('toolbarEvent( ', id, ' ) Event: ', eventName);
761
- }, // */
762
-
763
- createToolbar: function() {
764
- var filters, state = this.controller._state;
765
-
766
- mlaModal.settings.state = state;
767
- mlaModal.settings.$el = this.controller.$el;
768
- if ( 'undefined' === typeof mlaModal.settings.query[ state ] ) {
769
- mlaModal.settings.query[ state ] = _.clone( mlaModal.settings.query.initial );
770
- mlaModal.settings.query[ state ].searchFields = _.clone( mlaModal.settings.query.initial.searchFields );
771
- }
772
-
773
- /* for debug : trace every event triggered in the this.controller * /
774
- this.stopListening( this.controller );
775
- this.listenTo( this.controller, 'all', this.toolbarEvent );
776
- // */
777
-
778
- // Apply the original method to create the toolbar
779
- //wp.media.view.AttachmentsBrowser.__super__.createToolbar.apply( this, arguments );
780
- mlaDrop.prototype.createToolbar.apply( this, arguments );
781
- mlaModal.utility.mlaAttachmentsBrowser = this;
782
- filters = this.options.filters;
783
-
784
- // Enhanced Media Library (eml) plugin has CSS styles that require this patch
785
- if ( typeof window.eml !== "undefined" ) {
786
- $( '.media-toolbar', this.$el ).css( 'overflow', 'hidden' );
787
- }
788
-
789
- if ( ( 'all' === filters ) && mlaModal.settings.enableMimeTypes ) {
790
- this.toolbar.unset( 'filters', { silent: true } );
791
- this.toolbar.set( 'filters', new wp.media.view.AttachmentFilters.Mla({
792
- controller: this.controller,
793
- model: this.collection.props,
794
- priority: -80
795
- }).render() );
796
- }
797
-
798
- if ( ( 'uploaded' === filters ) && mlaModal.settings.enableMimeTypes ) {
799
- this.toolbar.unset( 'filters', { silent: true } );
800
- this.toolbar.set( 'filters', new wp.media.view.AttachmentFilters.MlaUploaded({
801
- controller: this.controller,
802
- model: this.collection.props,
803
- priority: -80
804
- }).render() );
805
- }
806
-
807
- if ( this.options.search && mlaModal.settings.enableMonthsDropdown ) {
808
- this.toolbar.unset( 'dateFilter', { silent: true } );
809
- this.toolbar.set( 'dateFilter', new wp.media.view.AttachmentFilters.MlaMonths({
810
- controller: this.controller,
811
- model: this.collection.props,
812
- priority: -75
813
- }).render() );
814
- }
815
-
816
- if ( this.options.search && mlaModal.settings.enableTermsDropdown ) {
817
- this.toolbar.set( 'terms', new wp.media.view.AttachmentFilters.MlaTerms({
818
- controller: this.controller,
819
- model: this.collection.props,
820
- priority: -50
821
- }).render() );
822
- }
823
-
824
- if ( this.options.search && mlaModal.settings.enableTermsSearch ) {
825
- this.toolbar.set( 'termsSearch', new wp.media.view.MlaTermsSearch({
826
- controller: this.controller,
827
- model: this.collection.props,
828
- priority: -50
829
- }).render() );
830
- }
831
-
832
- if ( this.options.search ) {
833
- if ( mlaModal.settings.enableSearchBox ) {
834
- this.controller.on( 'content:activate', this.hideDefaultSearch );
835
- this.controller.on( 'router:render', this.hideDefaultSearch );
836
- this.controller.on( 'uploader:ready', this.hideDefaultSearch );
837
- this.controller.on( 'edit:activate', this.hideDefaultSearch );
838
-
839
- this.toolbar.set( 'MlaSearch', new wp.media.view.MlaSearch({
840
- controller: this.controller,
841
- model: this.collection.props,
842
- priority: 60
843
- }).render() );
844
- } else {
845
- this.toolbar.set( 'MlaSearch', new wp.media.view.MlaSearch({
846
- controller: this.controller,
847
- model: this.collection.props,
848
- priority: 70
849
- }).render() );
850
- }
851
- }
852
- },
853
-
854
- hideDefaultSearch: function() {
855
- var defaultSearch = $( '#media-search-input', this.el );
856
-
857
- if ( 0 === defaultSearch.length ) {
858
- defaultSearch = $( 'div.media-toolbar-primary > input.search', this.el )
859
- }
860
-
861
- defaultSearch.hide();
862
- },
863
-
864
- updateFilters: function( taxonomy, selectMarkup ) {
865
- var newOptions = {};
866
-
867
- if ( this.options.search && mlaModal.settings.enableTermsDropdown && mlaModal.settings.termsTaxonomy == taxonomy ) {
868
- newOptions = mlaModal.utility.parseTermsOptions( selectMarkup );
869
- mlaModal.settings.termsClass = newOptions.termsClass;
870
- mlaModal.settings.termsText = newOptions.termsText;
871
- mlaModal.settings.termsValue = newOptions.termsValue;
872
-
873
- this.toolbar.unset( 'terms', { silent: true } );
874
- this.toolbar.set( 'terms', new wp.media.view.AttachmentFilters.MlaTerms({
875
- controller: this.controller,
876
- model: this.collection.props,
877
- priority: -80
878
- }).render() );
879
- }
880
- }
881
- });
882
- } // one or more MLA options enabled
883
-
884
- /**
885
- * extract value and text elements from Dropdown HTML option tags
886
- */
887
- mlaModal.utility.parseTermsOptions = function ( selectMarkup ) {
888
- var termsOptions = {
889
- 'termsClass': [ mlaModal.settings.termsClass[0], mlaModal.settings.termsClass[1] ],
890
- 'termsText': [ mlaModal.settings.termsText[0], mlaModal.settings.termsText[1] ],
891
- 'termsValue': [ mlaModal.settings.termsValue[0], mlaModal.settings.termsValue[1] ]
892
- }, termsCount = 2, termsIndex, termId,
893
- regEx = /\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,
894
- results = [];
895
-
896
- // Check for flat taxonomy updates
897
- if ( 'object' === typeof selectMarkup ) {
898
- termsCount = mlaModal.settings.termsValue.length;
899
-
900
- /*
901
- * Create a sortable array of the existing terms, and
902
- * remove existing terms from the selectMarkup array
903
- */
904
- for ( termsIndex = 2; termsIndex < termsCount; termsIndex++ ) {
905
- results[ termsIndex ] = {
906
- 'termsClass': mlaModal.settings.termsClass[ termsIndex ],
907
- 'termsText': mlaModal.settings.termsText[ termsIndex ],
908
- 'termsValue': mlaModal.settings.termsValue[ termsIndex ]
909
- };
910
-
911
- if ( 'undefined' !== typeof selectMarkup[ mlaModal.settings.termsValue[ termsIndex ] ] ) {
912
- delete selectMarkup[ mlaModal.settings.termsValue[ termsIndex ] ];
913
- }
914
- }
915
-
916
- // Add surviving terms, if any, to the sortable array
917
- for ( termId in selectMarkup ) {
918
- results[ termsIndex++ ] = {
919
- 'termsClass': 'level-0',
920
- 'termsText': selectMarkup[ termId ],
921
- 'termsValue': termId.toString()
922
- };
923
- }
924
-
925
- if ( termsCount === termsIndex ) {
926
- // no changes
927
- return {
928
- 'termsClass': mlaModal.settings.termsClass,
929
- 'termsText': mlaModal.settings.termsText,
930
- 'termsValue': mlaModal.settings.termsValue
931
- };
932
- }
933
-
934
- // Something was added; sort the array and re-build the filter arrays
935
- results.sort( function ( a, b ) {
936
- if ( a.termsText > b.termsText ) {
937
- return 1;
938
- } else {
939
- if ( a.termsText < b.termsText ) {
940
- return -1;
941
- } else {
942
- return 0;
943
- }
944
- }
945
- } );
946
-
947
- termsIndex = 2;
948
- for ( termId in results ) {
949
- termsOptions.termsClass[ termsIndex ] = results[ termId ].termsClass;
950
- termsOptions.termsText[ termsIndex ] = results[ termId ].termsText;
951
- termsOptions.termsValue[ termsIndex++ ] = results[ termId ].termsValue;
952
- }
953
-
954
- return termsOptions;
955
- }
956
-
957
- // Test the contents and skip the first match, the "no parent" placeholder
958
- results = regEx.exec( selectMarkup );
959
- while ( null !== ( results = regEx.exec( selectMarkup ) ) ) {
960
- termsOptions.termsClass[termsCount] = results[3];
961
- termsOptions.termsValue[termsCount] = ( 'undefined' === typeof results[6] ) ? results[9] : results[7];
962
- termsOptions.termsText[termsCount++] = results[11].replace( '&nbsp;', mlaModal.settings.termsIndent );
963
- }
964
-
965
- return termsOptions;
966
- };
967
-
968
- /**
969
- * return a sorted array with any duplicate, whitespace or values removed
970
- * Adapted from /wp-admin/js/post.js
971
- */
972
- mlaModal.utility.arrayCleanup = function ( arrayIn ) {
973
- var arrayOut = [], isString = ( 'string' === typeof arrayIn );
974
-
975
- if( isString ) {
976
- arrayIn = arrayIn.split( mlaModal.settings.comma );
977
- }
978
-
979
- jQuery.each( arrayIn, function( key, val ) {
980
- val = jQuery.trim( val );
981
-
982
- if ( val && jQuery.inArray( val, arrayOut ) == -1 ) {
983
- arrayOut.push( val );
984
- }
985
-
986
- });
987
-
988
- arrayOut.sort();
989
-
990
- if( isString ) {
991
- arrayOut = arrayOut.join( mlaModal.settings.comma );
992
- }
993
-
994
- return arrayOut;
995
- };
996
-
997
- /**
998
- * Extract the taxonomy name from an HTML id attribute,
999
- * removing the 'mla-' and 'taxonomy-' prefixes.
1000
- */
1001
- mlaModal.utility.parseTaxonomyId = function ( id ) {
1002
- var taxonomyParts = id.split( '-' );
1003
-
1004
- taxonomyParts.shift(); // 'mla-'
1005
- taxonomyParts.shift(); // 'taxonomy-'
1006
- return taxonomyParts.join('-');
1007
- };
1008
-
1009
- /**
1010
- * Support functions for flat taxonomies, e.g. Tags, Att. Tags
1011
- */
1012
- mlaModal.tagBox = {
1013
- /**
1014
- * Remove duplicate commas and whitespace from a string containing a tag list
1015
- */
1016
- cleanTags : function( tags ) {
1017
- var comma = mlaModal.settings.comma;
1018
- if ( ',' !== comma ) {
1019
- tags = tags.replace( new RegExp( comma, 'g' ), ',' );
1020
- }
1021
-
1022
- tags = tags.replace( /\s*,\s*/g, ',' ).replace( /,+/g, ',' ).replace( /[,\s]+$/, '' ).replace( /^[,\s]+/, '' );
1023
-
1024
- if ( ',' !== comma ) {
1025
- tags = tags.replace( /,/g, comma );
1026
- }
1027
-
1028
- return tags;
1029
- },
1030
-
1031
- /**
1032
- * Remove a tag from the list when the "X" button is clicked
1033
- */
1034
- parseTags : function( el ) {
1035
- var id = el.id, num = id.split( '-check-num-' )[1],
1036
- tagsDiv = $( el ).closest( '.tagsdiv' ),
1037
- thetags = tagsDiv.find( '.the-tags' ), comma = mlaModal.settings.comma,
1038
- current_tags = thetags.val().split( comma ), new_tags = [];
1039
-
1040
- delete current_tags[ num ];
1041
-
1042
- $.each( current_tags, function( key, val ) {
1043
- val = $.trim( val );
1044
- if ( val ) {
1045
- new_tags.push( val );
1046
- }
1047
- });
1048
-
1049
- thetags.val( this.cleanTags( new_tags.join( comma ) ) );
1050
-
1051
- this.quickClicks( tagsDiv );
1052
- return false;
1053
- },
1054
-
1055
- /**
1056
- * Build or rebuild the current tag list prefaced with "X" buttons,
1057
- * using the hidden '.the-tags' textbox field as input
1058
- */
1059
- quickClicks : function( el ) {
1060
- var thetags = $( '.the-tags', el ),
1061
- tagchecklist = $( '.tagchecklist', el ),
1062
- id = $( el ).attr( 'id' ),
1063
- current_tags, disabled;
1064
-
1065
- if ( !thetags.length ) {
1066
- return;
1067
- }
1068
-
1069
- disabled = thetags.prop( 'disabled' );
1070
-
1071
- current_tags = thetags.val().split( mlaModal.settings.comma );
1072
- tagchecklist.empty();
1073
-
1074
- $.each( current_tags, function( key, val ) {
1075
- var span, xbutton;
1076
-
1077
- val = $.trim( val );
1078
-
1079
- if ( ! val ) {
1080
- return;
1081
- }
1082
-
1083
- // Create a new span, and ensure the text is properly escaped.
1084
- span = $( '<span />' ).text( val );
1085
-
1086
- // If tags editing isn't disabled, create the X button.
1087
- if ( ! disabled ) {
1088
- xbutton = $( '<a id="' + id + '-check-num-' + key + '" class="ntdelbutton">X</a>' );
1089
- xbutton.click( function(){ mlaModal.tagBox.parseTags( this ); });
1090
- span.prepend( '&nbsp;' ).prepend( xbutton );
1091
- }
1092
-
1093
- // Append the span to the tag list.
1094
- tagchecklist.append( span );
1095
- });
1096
- },
1097
-
1098
- /**
1099
- * Add one or more tags from the 'input.newtag' text field or from the "a" element
1100
- */
1101
- flushTags : function( tagsDiv, a, f ) {
1102
- var tagsval, newtags, text,
1103
- tags = $( '.the-tags', tagsDiv ),
1104
- newtag = $( 'input.newtag', tagsDiv ),
1105
- comma = mlaModal.settings.comma;
1106
-
1107
- a = a || false;
1108
-
1109
- text = a ? $( a ).text() : newtag.val();
1110
- tagsval = tags.val();
1111
- newtags = tagsval ? tagsval + comma + text : text;
1112
-
1113
- newtags = mlaModal.utility.arrayCleanup( this.cleanTags( newtags ) );
1114
- tags.val( newtags );
1115
- this.quickClicks( tagsDiv );
1116
-
1117
- if ( !a ) {
1118
- newtag.val( '' );
1119
- }
1120
-
1121
- if ( 'undefined' == typeof( f ) ) {
1122
- newtag.focus();
1123
- }
1124
-
1125
- return false;
1126
- },
1127
-
1128
- /**
1129
- * Retrieve the tag cloud for this taxonomy
1130
- */
1131
- getCloud : function( id, taxonomy ) {
1132
- $.post( ajaxurl, {'action':'get-tagcloud', 'tax':taxonomy}, function( r, stat ) {
1133
- if ( 0 === r || 'success' != stat ) {
1134
- r = wpAjax.broken;
1135
- }
1136
-
1137
- r = $( '<p id="tagcloud-'+taxonomy+'" class="the-tagcloud">'+r+'</p>' );
1138
- $( 'a', r ).click( function(){
1139
- mlaModal.tagBox.flushTags( $( this ).closest( '.mla-taxonomy-field' ).children( '.tagsdiv' ), this );
1140
- return false;
1141
- });
1142
-
1143
- $( '#'+id ).after( r );
1144
- });
1145
- },
1146
-
1147
- init : function( attachmentId, taxonomy, context ) {
1148
- var tagsDiv, ajaxTag;
1149
- tagsDiv = $( '#mla-taxonomy-' + taxonomy, context );
1150
- ajaxTag = $( 'div.ajaxtag', tagsDiv );
1151
-
1152
- mlaModal.tagBox.quickClicks( tagsDiv );
1153
-
1154
- $( 'input.tagadd', ajaxTag ).click(function(){
1155
- mlaModal.tagBox.flushTags( $(this).closest( '.tagsdiv' ) );
1156
- });
1157
-
1158
- $( 'input.newtag', ajaxTag ).keyup( function( e ){
1159
- if ( 13 == e.which ) {
1160
- mlaModal.tagBox.flushTags( tagsDiv );
1161
- return false;
1162
- }
1163
- }).keypress( function( e ){
1164
- if ( 13 == e.which ) {
1165
- e.preventDefault();
1166
- return false;
1167
- }
1168
- }).each( function(){
1169
- $( this ).suggest( ajaxurl + '?action=ajax-tag-search&tax=' + taxonomy, { delay: 500, resultsClass: 'mla_ac_results', selectClass: 'mla_ac_over', matchClass: 'mla_ac_match', minchars: 2, multiple: true, multipleSep: mlaModal.settings.comma + ' ' } );
1170
- });
1171
-
1172
- // get the tag cloud on first click, then toggle visibility
1173
- tagsDiv.siblings( ':first' ).click( function(){
1174
- mlaModal.tagBox.getCloud( $( 'a', this ).attr( 'id' ), taxonomy );
1175
- $( 'a', this ).unbind().click( function(){
1176
- $( this ).siblings( '.the-tagcloud' ).toggle();
1177
- return false;
1178
- });
1179
- return false;
1180
- });
1181
-
1182
- // Update the taxonomy terms, if changed, on the server when the mouse leaves the tagsdiv area
1183
- $( '.compat-field-' + taxonomy + ' td', context ).on( "mouseleave", function() {
1184
- var query, tableData = this,
1185
- oldTerms = mlaModal.utility.arrayCleanup( $( '.server-tags', tableData ).val() ),
1186
- termList = mlaModal.utility.arrayCleanup( $( '.the-tags', tableData ).val() );
1187
-
1188
- if ( oldTerms === termList ) {
1189
- return;
1190
- }
1191
-
1192
- $( tableData ).css( 'opacity', '0.5' );
1193
-
1194
- /**
1195
- * wp.ajax.send( [action], [options] )
1196
- */
1197
- query = {
1198
- id: attachmentId,
1199
- };
1200
- query[ taxonomy ] = termList;
1201
-
1202
- wp.media.post( mlaModal.settings.ajaxUpdateCompatAction, query ).done( function( results ) {
1203
- var tagsDiv, taxonomy, list;
1204
-
1205
- for ( taxonomy in results ) {
1206
- if ( 'object' === typeof( results[ taxonomy][ 'object-terms' ] ) ) {
1207
- if ( null !== mlaModal.utility.mlaAttachmentsBrowser ) {
1208
- mlaModal.utility.mlaAttachmentsBrowser.updateFilters( taxonomy, results[ taxonomy][ 'object-terms' ] );
1209
- }
1210
-
1211
- delete results[ taxonomy][ 'object-terms' ];
1212
- }
1213
-
1214
- for ( list in results[ taxonomy ] ) {
1215
- $( "#" + list, tableData ).replaceWith( results[ taxonomy ][ list ] );
1216
- }
1217
-
1218
- tagsDiv = $( '#mla-taxonomy-' + taxonomy, tableData );
1219
- mlaModal.tagBox.quickClicks( tagsDiv );
1220
- }
1221
-
1222
- $( tableData ).css( 'opacity', '1.0' );
1223
- });
1224
- });
1225
-
1226
- // Don't let changes propogate to the Backbone model
1227
- tagsDiv.on( 'change', function( event ) {
1228
- event.stopPropagation();
1229
- return false;
1230
- });
1231
-
1232
- $( '.the-tags, .server-tags .newtag', tagsDiv ).on( 'change', function( event ) {
1233
- event.stopPropagation();
1234
- return false;
1235
- });
1236
- }
1237
- }; // mlaModal.tagBox
1238
-
1239
- /*
1240
- * We can extend the AttachmentCompat object because it's not instantiated until
1241
- * the sidebar is created for a selected attachment.
1242
- */
1243
- if ( mlaModal.settings.enableDetailsCategory || mlaModal.settings.enableDetailsTag ) {
1244
- wp.media.view.AttachmentCompat = wp.media.view.AttachmentCompat.extend({
1245
- initialize: function() {
1246
- // Call the base method in the super class
1247
- wp.media.view.AttachmentCompat.__super__.initialize.apply( this, arguments );
1248
-
1249
- // Hook the 'ready' event when the sidebar has been rendered so we can add our enhancements
1250
- this.on( 'ready', function() {
1251
- mlaModal.utility.hookCompatTaxonomies( this.model.get('id'), this.el );
1252
- });
1253
- }
1254
- });
1255
- }
1256
-
1257
- /*
1258
- * We can extend the model.Selection object because it's not instantiated until
1259
- * the sidebar is created for a selected attachment.
1260
- */
1261
- if ( mlaModal.settings.enableDetailsCategory || mlaModal.settings.enableDetailsTag ) {
1262
- wp.media.model.Selection = wp.media.model.Selection.extend({
1263
- /* for debug : trace every event triggered in the wp.media.model.Selection * /
1264
- selectionEvent: function( eventName, eventModel, eventContext, eventFlags ) {
1265
- var attributes = null, id = 0, cid = 'none';
1266
-
1267
- if ( 'undefined' != typeof eventModel.cid ) {
1268
- cid = eventModel.cid;
1269
- }
1270
-
1271
- if ( 'undefined' != typeof eventModel.id ) {
1272
- id = eventModel.id;
1273
- }
1274
-
1275
- if ( 'undefined' != typeof eventModel.attributes ) {
1276
- attributes = _.clone( eventModel.attributes );
1277
- delete( attributes.file );
1278
- console.log('selectionEvent ', eventName, '( ', cid, ', ', id, ' ) eventModel.attributes: ', JSON.stringify( attributes ) );
1279
- } else {
1280
- console.log('selectionEvent ', eventName, '( ', cid, ', ', id, ' )' );
1281
- }
1282
- }, // */
1283
-
1284
- initialize: function() {
1285
- // Call the base method in the super class
1286
- wp.media.model.Selection.__super__.initialize.apply( this, arguments );
1287
-
1288
- /* for debug : trace every event triggered in the wp.media.model.Selection * /
1289
- this.stopListening( this );
1290
- this.listenTo( this, 'all', this.selectionEvent );
1291
- // */
1292
-
1293
- // Hook the 'selection:reset' event so we can add our enhancements when it's done
1294
- this.on( 'selection:reset', function( /* model */ ) {
1295
- mlaModal.cid = null;
1296
- });
1297
-
1298
- // Hook the 'selection:unsingle' event so we can add our enhancements when it's done
1299
- this.on( 'selection:unsingle', function( /* model */ ) {
1300
- mlaModal.cid = null;
1301
- });
1302
-
1303
- // Hook the 'selection:single' event so we can add our enhancements when it's done
1304
- this.on( 'selection:single', function( model ) {
1305
- mlaModal.cid = model.cid;
1306
- });
1307
-
1308
- // Hook the 'change:uploading' event so we can add our enhancements when it's done
1309
- this.on( 'change:uploading', function( /* model */ ) {
1310
- mlaModal.uploading = true;
1311
- });
1312
-
1313
- // Hook the 'change' event when the sidebar has been rendered so we can add our enhancements
1314
- this.on( 'change', function( model ) {
1315
- var hookCompat = false, changed;
1316
-
1317
- if ( mlaModal.uploading && mlaModal.cid === model.cid ) {
1318
- mlaModal.uploading = false;
1319
- hookCompat = true;
1320
- } else {
1321
- // ignore changes during upload
1322
- if ( false === model.attributes.uploading ) {
1323
- // filter out trivial changes
1324
- changed = _.clone( model.changed );
1325
- delete changed.title;
1326
- delete changed.caption;
1327
- delete changed.alt;
1328
- delete changed.description;
1329
-
1330
- if ( ! _.isEmpty( changed ) ) {
1331
- hookCompat = true;
1332
- }
1333
- }
1334
- }
1335
-
1336
- if ( true === hookCompat ) {
1337
- mlaModal.utility.hookCompatTaxonomies( model.get('id'), mlaModal.settings.$el );
1338
- //mlaModal.utility.hookCompatTaxonomies( model.get('id'), wp.media.frame.$el );
1339
- }
1340
- });
1341
- }
1342
- });
1343
- }
1344
-
1345
- /**
1346
- * Install the "click to expand" handler for MLA Searchable Taxonomy Meta Boxes
1347
- */
1348
- mlaModal.utility.hookCompatTaxonomies = function( attachmentId, context ) {
1349
- var taxonomy, clickTaxonomy = null;
1350
-
1351
- $('.mla-taxonomy-field .categorydiv', context ).each( function(){
1352
- taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
1353
-
1354
- if ( -1 != mlaModal.settings.enhancedTaxonomies.indexOf( taxonomy ) ) {
1355
- // Load the taxonomy checklists on first expansion
1356
- $( '.compat-field-' + taxonomy + ' th', context ).click( { id: attachmentId, currentTaxonomy: taxonomy, el: context }, function( event ) {
1357
- mlaModal.utility.fillCompatTaxonomies( event.data );
1358
- });
1359
-
1360
- // Delete the default row, show the enhanced row
1361
- $( 'tr.compat-field-' + taxonomy, context ).each( function(){
1362
- if ( $(this).hasClass('mla-taxonomy-row') ) {
1363
- $(this).show();
1364
- } else {
1365
- $(this).remove();
1366
- }
1367
- });
1368
-
1369
- if ( null === clickTaxonomy ) {
1370
- clickTaxonomy = taxonomy;
1371
- }
1372
- } else {
1373
- // Delete the enhanced row
1374
- $( 'tr.compat-field-' + taxonomy, context ).each( function(){
1375
- if ( $(this).hasClass('mla-taxonomy-row') ) {
1376
- $(this).remove();
1377
- }
1378
- });
1379
- }
1380
- });
1381
-
1382
- $('.mla-taxonomy-field .tagsdiv', context ).each( function(){
1383
- taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
1384
-
1385
- if ( -1 != mlaModal.settings.enhancedTaxonomies.indexOf( taxonomy ) ) {
1386
- // Load the taxonomy checklists on first expansion
1387
- $( '.compat-field-' + taxonomy + ' th', context ).click( { id: attachmentId, currentTaxonomy: taxonomy, el: context }, function( event ) {
1388
- mlaModal.utility.fillCompatTaxonomies( event.data );
1389
- });
1390
-
1391
- // Delete the default row, show the enhanced row
1392
- $( 'tr.compat-field-' + taxonomy, context ).each( function(){
1393
- if ( $(this).hasClass('mla-taxonomy-row') ) {
1394
- $(this).show();
1395
- } else {
1396
- $(this).remove();
1397
- }
1398
- });
1399
-
1400
- if ( null === clickTaxonomy ) {
1401
- clickTaxonomy = taxonomy;
1402
- }
1403
- } else {
1404
- // Delete the enhanced row
1405
- $( 'tr.compat-field-' + taxonomy, context ).each( function(){
1406
- if ( $(this).hasClass('mla-taxonomy-row') ) {
1407
- $(this).remove();
1408
- }
1409
- });
1410
- }
1411
- });
1412
-
1413
- if ( mlaModal.settings.enableTermsAutofill && null !== clickTaxonomy ) {
1414
- $( '.compat-field-' + clickTaxonomy + ' th', context ).click();
1415
- }
1416
- };
1417
-
1418
- /**
1419
- * Replace the "Loading..." placeholders with the MLA Searchable Taxonomy Meta Boxes
1420
- */
1421
- mlaModal.utility.fillCompatTaxonomies = function( data ) {
1422
- var context = data.el, query = [], taxonomy, fieldClass;
1423
-
1424
- $('.mla-taxonomy-field .categorydiv', context ).each( function(){
1425
- taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
1426
- query[ query.length ] = taxonomy;
1427
- fieldClass = '.compat-field-' + taxonomy;
1428
-
1429
- // Save the initial markup for when we change attachments
1430
- if ( "undefined" === typeof( mlaModal.initialHTML[ taxonomy ] ) ) {
1431
- mlaModal.initialHTML[ taxonomy ] = $( fieldClass, context ).html();
1432
- } else {
1433
- $( fieldClass, context ).html( mlaModal.initialHTML[ taxonomy ] );
1434
- }
1435
-
1436
- $( fieldClass + ' .categorydiv', context ).html( mlaModal.strings.loadingText );
1437
- });
1438
-
1439
- $( '.mla-taxonomy-field .tagsdiv', context ).each( function(){
1440
- taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
1441
- query[ query.length ] = taxonomy;
1442
- fieldClass = '.compat-field-' + taxonomy;
1443
-
1444
- if ( "undefined" === typeof( mlaModal.initialHTML[ taxonomy ] ) ) {
1445
- mlaModal.initialHTML[ taxonomy ] = $( fieldClass, context ).html();
1446
- } else {
1447
- $( fieldClass, context ).html( mlaModal.initialHTML[ taxonomy ] );
1448
- }
1449
-
1450
- $( fieldClass + ' .tagsdiv', context ).html( mlaModal.strings.loadingText );
1451
- });
1452
-
1453
- if ( query.length ) {
1454
- /**
1455
- * wp.ajax.send( [action], [options] )
1456
- *
1457
- * Sends a POST request to WordPress.
1458
- *
1459
- * @param {string} action The slug of the action to fire in WordPress.
1460
- * @param {object} options The options passed to jQuery.ajax.
1461
- * @return {$.promise} A jQuery promise that represents the request.
1462
- */
1463
- wp.media.post( mlaModal.settings.ajaxFillCompatAction, {
1464
- // json: true,
1465
- id: data.id,
1466
- query: query,
1467
- }).done( function( results ) {
1468
- var taxonomy, fieldClass;
1469
-
1470
- for ( taxonomy in results ) {
1471
- fieldClass = '.compat-field-' + taxonomy;
1472
-
1473
- $( fieldClass, context ).html( results[ taxonomy ] );
1474
- }
1475
-
1476
- mlaModal.utility.supportCompatTaxonomies( data );
1477
- $( '.compat-field-' + data.currentTaxonomy + ' td', context ).show();
1478
- });
1479
- } // query.length
1480
- };
1481
-
1482
- /**
1483
- * Support the MLA Searchable Taxonomy Meta Boxes
1484
- */
1485
- mlaModal.utility.supportCompatTaxonomies = function( data ) {
1486
- var attachmentId = data.id, context = data.el;
1487
-
1488
- if ( mlaModal.settings.enableDetailsCategory ) {
1489
- $( '.mla-taxonomy-field .categorydiv', context ).each( function(){
1490
- var thisJQuery = $(this), catAddBefore, catAddAfter, taxonomy, settingName,
1491
- taxonomyIdPrefix, taxonomyNewIdSelector, taxonomySearchIdSelector, taxonomyTermsId;
1492
-
1493
- taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
1494
- settingName = taxonomy + '_tab';
1495
- taxonomyIdPrefix = '#mla-' + taxonomy;
1496
- taxonomyNewIdSelector = '#mla-new-' + taxonomy;
1497
- taxonomySearchIdSelector = '#mla-search-' + taxonomy;
1498
- taxonomyTermsId = '#mla-attachments-' + attachmentId + '-' + taxonomy;
1499
-
1500
- if ( taxonomy == 'category' ) {
1501
- settingName = 'cats';
1502
- }
1503
-
1504
- // override "Media Categories" style sheet
1505
- thisJQuery.find( '.category-tabs' ).show();
1506
-
1507
- // Expand/collapse the meta box contents
1508
- $( '.compat-field-' + taxonomy + ' th', context ).click( function() {
1509
- $(this).siblings( 'td' ).slideToggle();
1510
- });
1511
-
1512
- // Update the taxonomy terms, if changed, on the server when the mouse leaves the checklist area
1513
- thisJQuery.on( "mouseleave", function() {
1514
- var query, oldTerms, termList = [], checked = thisJQuery.find( taxonomyIdPrefix + '-checklist input:checked' );
1515
-
1516
- checked.each( function() {
1517
- termList[ termList.length ] = $(this).val();
1518
- });
1519
-
1520
- termList.sort( function( a, b ) { return a - b; } );
1521
- termList = termList.join( ',' );
1522
-
1523
- oldTerms = thisJQuery.siblings( taxonomyTermsId ).val();
1524
- if ( oldTerms === termList ) {
1525
- return;
1526
- }
1527
-
1528
- thisJQuery.siblings( taxonomyTermsId ).val( termList );
1529
- thisJQuery.prop( 'disabled', true );
1530
-
1531
- /**
1532
- * wp.ajax.send( [action], [options] )
1533
- */
1534
- query = {
1535
- id: attachmentId,
1536
- };
1537
- query[ taxonomy ] = termList;
1538
-
1539
- wp.media.post( mlaModal.settings.ajaxUpdateCompatAction,
1540
- query ).done( function( results ) {
1541
- var taxonomy, list;
1542
-
1543
- for ( taxonomy in results ) {
1544
- for ( list in results[ taxonomy ] ) {
1545
- thisJQuery.find( "#" + list ).html( results[ taxonomy ][ list ] );
1546
- }
1547
- }
1548
-
1549
- thisJQuery.find( taxonomySearchIdSelector ).val( '' );
1550
- thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
1551
- thisJQuery.prop( 'disabled', false );
1552
- });
1553
- });
1554
-
1555
- // Don't let checkbox changes propogate to the Backbone model
1556
- thisJQuery.on( 'change input[type="checkbox"]', function( event ) {
1557
- event.stopPropagation();
1558
- return false;
1559
- });
1560
-
1561
- /*
1562
- * Taxonomy meta box code from /wp-admin/js/post.js
1563
- */
1564
-
1565
- // Switch between "All ..." and "Most Used"
1566
- thisJQuery.find( taxonomyIdPrefix + '-tabs a' ).click( function(){
1567
- var t = $(this).attr('href');
1568
- $(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
1569
- thisJQuery.find( taxonomyIdPrefix + '-tabs' ).siblings('.tabs-panel').hide();
1570
- thisJQuery.find( t ).show();
1571
- $(this).focus();
1572
-
1573
- // Store the "all/most used" setting in a cookie
1574
- if ( "#mla-" + taxonomy + '-all' == t ) {
1575
- deleteUserSetting( settingName );
1576
- } else {
1577
- setUserSetting( settingName, 'pop' );
1578
- }
1579
-
1580
- return false;
1581
- });
1582
-
1583
- // Reflect tab selection remembered in cookie
1584
- if ( getUserSetting( settingName ) ) {
1585
- thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-pop"]' ).click();
1586
- }
1587
-
1588
- // Toggle the "Add New ..." sub panel
1589
- thisJQuery.find( taxonomyIdPrefix + '-add-toggle' ).click( function() {
1590
- thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
1591
- thisJQuery.find( taxonomyIdPrefix + '-adder' ).toggleClass( 'mla-hidden-children' );
1592
- thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-all"]' ).click();
1593
-
1594
- thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
1595
- thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
1596
-
1597
- if ( false === thisJQuery.find( taxonomyIdPrefix + '-adder' ).hasClass( 'mla-hidden-children' ) ) {
1598
- thisJQuery.find( taxonomyNewIdSelector ).val( '' ).removeClass( 'form-input-tip' );
1599
- thisJQuery.find( taxonomyNewIdSelector ).focus();
1600
- }
1601
- return false;
1602
- });
1603
-
1604
- // Convert "Enter" key to a click
1605
- thisJQuery.find( taxonomyNewIdSelector ).keypress( function(event){
1606
- if( 13 === event.keyCode ) {
1607
- event.preventDefault();
1608
- thisJQuery.find( taxonomyIdPrefix + '-add-submit' ).click();
1609
- }
1610
- });
1611
-
1612
- thisJQuery.find( taxonomyIdPrefix + '-add-submit' ).click( function(){
1613
- thisJQuery.find( taxonomyNewIdSelector ).focus();
1614
- });
1615
-
1616
- catAddBefore = function( s ) {
1617
- if ( ! thisJQuery.find( taxonomyNewIdSelector ).val() )
1618
- return false;
1619
-
1620
- s.data += '&' + thisJQuery.find( taxonomyIdPrefix + '-checklist :checked' ).serialize();
1621
- thisJQuery.prop( 'disabled', true );
1622
- return s;
1623
- };
1624
-
1625
- catAddAfter = function( r, s ) {
1626
- var sup, drop = thisJQuery.find( '#new' + taxonomy + '_parent' );
1627
-
1628
- thisJQuery.prop( 'disabled', false );
1629
- if ( 'undefined' != s.parsed.responses[0] && ( sup = s.parsed.responses[0].supplemental.newcat_parent ) ) {
1630
- drop.before( sup );
1631
- drop.remove();
1632
- if ( null !== mlaModal.utility.mlaAttachmentsBrowser ) {
1633
- mlaModal.utility.mlaAttachmentsBrowser.updateFilters( taxonomy, sup );
1634
- }
1635
- }
1636
- };
1637
-
1638
- // wpList is in /wp-includes/js/wp-lists.js
1639
- // handled in /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term()
1640
- thisJQuery.find( taxonomyIdPrefix + '-checklist' ).wpList({
1641
- alt: '',
1642
- response: 'mla-' + taxonomy + '-ajax-response',
1643
- addBefore: catAddBefore,
1644
- addAfter: catAddAfter
1645
- });
1646
-
1647
- // Synchronize checkbox changes between "All ..." and "Most Used" panels
1648
- thisJQuery.find( taxonomyIdPrefix + '-checklist, ' + taxonomyIdPrefix + '-checklist-pop' ).on( 'click', 'li.popular-category > label input[type="checkbox"]', function() {
1649
- var t = $(this), c = t.is(':checked'), id = t.val();
1650
-
1651
- if ( id && t.parents( '#mla-taxonomy-'+ taxonomy ).length ) {
1652
- $('#in-' + taxonomy + '-' + id + ', #in-popular-' + taxonomy + '-' + id).prop( 'checked', c );
1653
- }
1654
- });
1655
-
1656
- /*
1657
- * Searchable meta box code from mla-edit-media-scripts.js
1658
- */
1659
- $.extend( $.expr[":"], {
1660
- "matchTerms": function( elem, i, match, array ) {
1661
- return ( elem.textContent || elem.innerText || "" ).toLowerCase().indexOf( ( match[3] || "" ).toLowerCase() ) >= 0;
1662
- }
1663
- });
1664
-
1665
- thisJQuery.find( taxonomySearchIdSelector ).keypress( function( event ){
1666
- // Enter key cancels the filter and closes the search field
1667
- if( 13 === event.keyCode ) {
1668
- event.preventDefault();
1669
- thisJQuery.find( taxonomySearchIdSelector ).val( '' );
1670
- thisJQuery.find( taxonomyIdPrefix + '-searcher' ).addClass( 'mla-hidden-children' );
1671
-
1672
- thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
1673
- thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
1674
- return;
1675
- }
1676
-
1677
- } );
1678
-
1679
- thisJQuery.find( taxonomySearchIdSelector ).keyup( function( event ){
1680
- var searchValue, termList, termListPopular, matchingTerms, matchingTermsPopular;
1681
-
1682
- // keyup happens after keypress; change the focus if the text box has been closed
1683
- if( 13 === event.keyCode ) {
1684
- event.preventDefault();
1685
- thisJQuery.find( taxonomyIdPrefix + '-search-toggle' ).focus();
1686
- return;
1687
- }
1688
-
1689
- searchValue = thisJQuery.find( taxonomySearchIdSelector ).val();
1690
- termList = thisJQuery.find( taxonomyIdPrefix + '-checklist li' );
1691
- termListPopular = thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' );
1692
-
1693
- if ( 0 < searchValue.length ) {
1694
- termList.hide();
1695
- termListPopular.hide();
1696
- } else {
1697
- termList.show();
1698
- termListPopular.show();
1699
- }
1700
-
1701
- matchingTerms = thisJQuery.find( taxonomyIdPrefix + "-checklist label:matchTerms('" + searchValue + "')");
1702
- matchingTerms.closest( 'li' ).find( 'li' ).andSelf().show();
1703
- matchingTerms.parents( taxonomyIdPrefix + '-checklist li' ).show();
1704
-
1705
- matchingTermsPopular = thisJQuery.find( taxonomyIdPrefix + "-checklist-pop label:matchTerms('" + searchValue + "')");
1706
- matchingTermsPopular.closest( 'li' ).find( 'li' ).andSelf().show();
1707
- matchingTermsPopular.parents( taxonomyIdPrefix + '-checklist li' ).show();
1708
- } );
1709
-
1710
- // Toggle the "Search" sub panel
1711
- thisJQuery.find( taxonomyIdPrefix + '-search-toggle' ).click( function() {
1712
- thisJQuery.find( taxonomyIdPrefix + '-adder ').addClass( 'mla-hidden-children' );
1713
- thisJQuery.find( taxonomyIdPrefix + '-searcher' ).toggleClass( 'mla-hidden-children' );
1714
- thisJQuery.find( taxonomyIdPrefix + '-tabs a[href="#mla-' + taxonomy + '-all"]' ).click();
1715
-
1716
- thisJQuery.find( taxonomyIdPrefix + '-checklist li' ).show();
1717
- thisJQuery.find( taxonomyIdPrefix + '-checklist-pop li' ).show();
1718
-
1719
- if ( false === thisJQuery.find( taxonomyIdPrefix + '-searcher' ).hasClass( 'mla-hidden-children' ) ) {
1720
- thisJQuery.find( taxonomySearchIdSelector ).val( '' ).removeClass( 'form-input-tip' );
1721
- thisJQuery.find( taxonomySearchIdSelector ).focus();
1722
- }
1723
-
1724
- return false;
1725
- });
1726
- }); // .categorydiv.each
1727
- } // mlaModal.settings.enableDetailsCategory
1728
-
1729
- if ( mlaModal.settings.enableDetailsTag ) {
1730
- $('.mla-taxonomy-field .tagsdiv', context ).each( function(){
1731
- var taxonomy = mlaModal.utility.parseTaxonomyId( $(this).attr('id') );
1732
-
1733
- // Expand/collapse the meta box contents
1734
- $( '.compat-field-' + taxonomy + ' th', context ).click( function() {
1735
- $(this).siblings( 'td' ).slideToggle();
1736
- });
1737
-
1738
- // Install support for flat taxonomies
1739
- mlaModal.tagBox.init( attachmentId, taxonomy, context );
1740
- }); // .tagsdiv.each
1741
- } // mlaModal.settings.enableDetailsTag
1742
- }; // mlaModal.utility.supportCompatTaxonomies
1743
- }( jQuery ) );
1
+ var wp,wpAjax,ajaxurl,jQuery,_,getUserSetting,setUserSetting,deleteUserSetting,mlaTaxonomy,mlaModal={strings:{},settings:{},initialHTML:{},uploading:false,cid:null,utility:{originalMediaAjax:null,mlaAttachmentsBrowser:null,parseTermsOptions:null,arrayCleanup:null,parseTaxonomyId:null,hookCompatTaxonomies:null,fillCompatTaxonomies:null,supportCompatTaxonomies:null},tagBox:null};(function(d){var c=wp.media.view.AttachmentsBrowser,b=wp.media.view.AttachmentCompat,a=wp.media.model.Selection;mlaModal.strings=typeof wp.media.view.l10n.mla_strings==="undefined"?{}:wp.media.view.l10n.mla_strings;delete wp.media.view.l10n.mla_strings;mlaModal.settings=typeof wp.media.view.settings.mla_settings==="undefined"?{screen:"unknown",enableMediaGrid:false,enableMediaModal:false}:wp.media.view.settings.mla_settings;delete wp.media.view.settings.mla_settings;if(!(mlaModal.settings.enableMediaGrid||mlaModal.settings.enableMediaModal)){return}if(("grid"===mlaModal.settings.screen)&&false===mlaModal.settings.enableMediaGrid){return}if(("modal"===mlaModal.settings.screen)&&false===mlaModal.settings.enableMediaModal){return}mlaModal.utility.originalMediaAjax=wp.media.ajax;wp.media.ajax=function(k,g){var j=mlaModal.settings.state,i,f,h,e;if(_.isObject(k)){g=k}else{g=g||{};g.data=_.extend(g.data||{},{action:k})}if("query-attachments"==g.data.action){i=g.data.query;f=typeof i.s;if("object"==f){h=i.s}else{if("string"==f){h={mla_search_value:i.s}}else{h={mla_search_value:""}}}if("undefined"!=typeof i.post_mime_type){mlaModal.settings.query[j].filterMime=i.post_mime_type}else{mlaModal.settings.query[j].filterMime="all"}if("undefined"!=typeof h.mla_filter_month){mlaModal.settings.query[j].filterMonth=h.mla_filter_month}else{if("undefined"!=typeof i.year){mlaModal.settings.query[j].filterMonth=(100*i.year)+(1*i.monthnum)}else{}}if("undefined"!=typeof h.mla_filter_term){mlaModal.settings.query[j].filterTerm=h.mla_filter_term}if("undefined"!=typeof h.mla_search_value){mlaModal.settings.query[j].searchValue=h.mla_search_value}e={mla_filter_month:mlaModal.settings.query[j].filterMonth,mla_filter_term:mlaModal.settings.query[j].filterTerm,mla_terms_search:mlaModal.settings.query[j].termsSearch,mla_search_clicks:mlaModal.settings.query[j].searchClicks,mla_search_value:mlaModal.settings.query[j].searchValue,mla_search_fields:mlaModal.settings.query[j].searchFields,mla_search_connector:mlaModal.settings.query[j].searchConnector};mlaModal.settings.query[j].termsSearch="";d("#mla-terms-search-input").html("").val("");g.data.query.s=e}return mlaModal.utility.originalMediaAjax.call(this,g)};if(mlaModal.settings.enableMimeTypes){wp.media.view.AttachmentFilters.Mla=wp.media.view.AttachmentFilters.extend({createFilters:function(){var f=this.controller._state,e={};_.each(mlaModal.settings.allMimeTypes||{},function(h,g){if(("grid"===mlaModal.settings.screen)||("trash"!==g)){e[g]={text:h,props:{type:g,uploadedTo:null,orderby:"date",order:"DESC"}}}});e.all={text:wp.media.view.l10n.allMediaItems,props:{type:null,uploadedTo:null,orderby:"date",order:"DESC"},priority:10};if(wp.media.view.settings.post.id){e.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20}}this.filters=e;if("undefined"===typeof e[mlaModal.settings.query[f].filterMime]){mlaModal.settings.query[f].filterMime="all"}if(mlaModal.settings.query[f].filterMime!="all"){this.model.set(e[mlaModal.settings.query[f].filterMime].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMime,f=e.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m===(_.isUndefined(f[l])?null:f[l])});if(i){return g=k}});this.$el.val(g)},change:function(){var f=d(this.el).closest("div.media-toolbar"),e=this.filters[this.el.value];if(e){this.model.set(e.props,{silent:true});d("#mla-search-submit",f).click()}}});wp.media.view.AttachmentFilters.MlaUploaded=wp.media.view.AttachmentFilters.extend({createFilters:function(){var f=this.model.get("type"),e=wp.media.view.settings.mimeTypes,i,h=this.controller._state,g={};if(e&&f){i=e[f]}_.each(mlaModal.settings.uploadMimeTypes||{},function(k,j){if(("grid"===mlaModal.settings.screen)||("trash"!==j)){g[j]={text:k,props:{type:j,uploadedTo:null,orderby:"date",order:"DESC"}}}});g.all={text:i||wp.media.view.l10n.allMediaItems,props:{uploadedTo:null,orderby:"date",order:"DESC"},priority:10};g.uploaded={text:wp.media.view.l10n.uploadedToThisPost,props:{type:null,uploadedTo:wp.media.view.settings.post.id,orderby:"menuOrder",order:"ASC"},priority:20};g.unattached={text:wp.media.view.l10n.unattached,props:{uploadedTo:0,orderby:"menuOrder",order:"ASC"},priority:50};this.filters=g;if("undefined"===typeof g[mlaModal.settings.query[h].filterUploaded]){mlaModal.settings.query[h].filterUploaded="all"}if(mlaModal.settings.query[h].filterUploaded!="all"){this.model.set(g[mlaModal.settings.query[h].filterUploaded].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMime,f=e.toJSON();if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}_.find(this.filters,function(j,k){var i=_.all(j.props,function(m,l){return m===(_.isUndefined(f[l])?null:f[l])});if(i){return g=k}});this.$el.val(g)},change:function(){var f=d(this.el).closest("div.media-toolbar"),e=this.filters[this.el.value];if(e){this.model.set(e.props,{silent:true});d("#mla-search-submit",f).click()}}})}if(mlaModal.settings.enableMonthsDropdown){wp.media.view.AttachmentFilters.MlaMonths=wp.media.view.AttachmentFilters.extend({className:"attachment-filters",id:"media-attachment-date-filters",createFilters:function(){var f=this.controller._state,e={};_.each(mlaModal.settings.months||{},function(h,g){e[g]={text:h,props:{s:{mla_filter_month:g}}}});this.filters=e;if("undefined"===typeof e[mlaModal.settings.query[f].filterMonth]){mlaModal.settings.query[f].filterMonth=0}if(mlaModal.settings.query[f].filterMonth>0){this.model.set(e[mlaModal.settings.query[f].filterMonth].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterMonth,f=e.toJSON();if(_.isUndefined(f.s)){f.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}if(_.isUndefined(f.s.mla_filter_month)){f.s.mla_filter_month=mlaModal.settings.query[h].filterMonth}else{mlaModal.settings.query[h].filterMonth=f.s.mla_filter_month}_.find(this.filters,function(j,k){var i=_.all(j.props,function(l){return l.mla_filter_month==mlaModal.settings.query[h].filterMonth});if(i){return g=k}});this.$el.val(g)},change:function(){var e=this.filters[this.el.value],f;if(e){f={s:{mla_filter_month:e.props.s.mla_filter_month}};this.model.set(f)}}})}if(mlaModal.settings.enableTermsDropdown){wp.media.view.AttachmentFilters.MlaTerms=wp.media.view.AttachmentFilters.extend({className:"attachment-filters",id:"media-attachment-term-filters",createFilters:function(){var g=this.controller._state,e,f={};_.each(mlaModal.settings.termsText||{},function(i,h){f[h]={text:i,props:{s:{mla_filter_term:parseInt(mlaModal.settings.termsValue[h])}}}});this.filters=f;e=_.indexOf(mlaModal.settings.termsValue,mlaModal.settings.query[g].filterTerm);if(e>0){this.model.set(f[e].props,{silent:false})}},select:function(){var h=this.controller._state,e=this.model,g=mlaModal.settings.query[h].filterTerm,f=e.toJSON();if(_.isUndefined(f.s)){f.s={}}if(false===mlaModal.settings.enableSearchBox){if("string"==typeof f.search){mlaModal.settings.query[h].searchValue=f.search}else{mlaModal.settings.query[h].searchValue=""}}if(_.isUndefined(f.s.mla_filter_term)){f.s.mla_filter_term=mlaModal.settings.query[h].filterTerm}else{mlaModal.settings.query[h].filterTerm=f.s.mla_filter_term}_.find(this.filters,function(j,k){var i=_.all(j.props,function(l){return l.mla_filter_term==mlaModal.settings.query[h].filterTerm});if(i){return g=k}});this.$el.val(g)},change:function(){var e=this.filters[this.el.value],f;if(e){f={s:{mla_filter_term:e.props.s.mla_filter_term}};this.model.set(f)}}})}if(mlaModal.settings.enableTermsSearch){wp.media.view.MlaTermsSearch=wp.media.View.extend({tagName:"span",className:"mla-terms-search",template:wp.media.template("mla-terms-search-button"),attributes:{type:"mla-terms-search-button"},events:{change:"termsSearchOpen",click:"termsSearchOpen",},render:function(){this.$el.html(this.template(mlaModal.strings));return this},termsSearchOpen:function(f){var e=d(this.el).closest("div.media-toolbar");if(("click"==f.type)&&("mla_terms_search"===f.target.name)){mlaTaxonomy.termsSearch.open();d("#mla-terms-search-form").off("submit");d("#mla-terms-search-form").submit(function(j){var g,i,h={phrases:"",taxonomies:[]};j.preventDefault();g=d("#mla-terms-search-form").serializeArray();for(i=0;i<g.length;i++){switch(g[i].name){case"mla_terms_search[phrases]":h.phrases=g[i].value;break;case"mla_terms_search[radio_phrases]":h.radio_phrases=g[i].value;break;case"mla_terms_search[radio_terms]":h.radio_terms=g[i].value;break;case"mla_terms_search[taxonomies][]":h.taxonomies[h.taxonomies.length]=g[i].value;break}}mlaModal.settings.query[mlaModal.settings.state].termsSearch=h;d("#mla-search-submit",e).click();return false});d("#mla-terms-search-input").keypress(function(g){if(13==g.which){g.preventDefault();d("#mla-terms-search-submit").click()}})}}})}if(mlaModal.settings.enableSearchBox){wp.media.view.MlaSearch=wp.media.View.extend({tagName:"div",className:"mla-search-box",template:wp.media.template("mla-search-box"),attributes:{type:"mla-search-box"},events:{input:"search",change:"search",click:"search",search:"search",MlaSearch:"search"},initialize:function(){var e=this.controller._state;if("undefined"===typeof mlaModal.settings.query[e]){mlaModal.settings.query[e]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[e].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}},render:function(){var f=this.controller._state,e=_.extend(mlaModal.strings,mlaModal.settings.query[f]);this.$el.html(this.template(e));return this},search:function(g){var h=this.controller._state,e,i,f;if(("input"==g.type)&&("s[mla_search_value]"==g.target.name)){mlaModal.settings.query[h].searchValue=g.target.value;return}if(("click"==g.type)&&("mla_search_submit"!=g.target.name)){return}switch(g.target.name){case"s[mla_search_value]":mlaModal.settings.query[h].searchValue=g.target.value;break;case"mla_search_submit":e={mla_filter_month:mlaModal.settings.query[h].filterMonth,mla_filter_term:mlaModal.settings.query[h].filterTerm,mla_terms_search:mlaModal.settings.query[h].termsSearch,mla_search_clicks:mlaModal.settings.query[h].searchClicks++,mla_search_value:mlaModal.settings.query[h].searchValue,mla_search_fields:mlaModal.settings.query[h].searchFields,mla_search_connector:mlaModal.settings.query[h].searchConnector};this.model.set({s:e});break;case"s[mla_search_connector]":mlaModal.settings.query[h].searchConnector=g.target.value;break;case"s[mla_search_title]":i=mlaModal.settings.query[h].searchFields;f=i.indexOf("title");if(-1==f){i.push("title")}else{i.splice(f,1)}mlaModal.settings.query[h].searchFields=i;break;case"s[mla_search_name]":f=mlaModal.settings.query[h].searchFields.indexOf("name");if(-1==f){mlaModal.settings.query[h].searchFields.push("name")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_alt_text]":f=mlaModal.settings.query[h].searchFields.indexOf("alt-text");if(-1==f){mlaModal.settings.query[h].searchFields.push("alt-text")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_excerpt]":f=mlaModal.settings.query[h].searchFields.indexOf("excerpt");if(-1==f){mlaModal.settings.query[h].searchFields.push("excerpt")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_content]":f=mlaModal.settings.query[h].searchFields.indexOf("content");if(-1==f){mlaModal.settings.query[h].searchFields.push("content")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break;case"s[mla_search_terms]":f=mlaModal.settings.query[h].searchFields.indexOf("terms");if(-1==f){mlaModal.settings.query[h].searchFields.push("terms")}else{mlaModal.settings.query[h].searchFields.splice(f,1)}break}}})}else{wp.media.view.MlaSearch=wp.media.View.extend({tagName:"span",className:"mla-simulate-search-button",template:wp.media.template("mla-simulate-search-button"),attributes:{type:"mla-simulate-search-button"},events:{click:"simulateSearch",},render:function(){this.$el.html(this.template(mlaModal.strings));return this},simulateSearch:function(){var f=this.controller._state,e={mla_filter_month:mlaModal.settings.query[f].filterMonth,mla_filter_term:mlaModal.settings.query[f].filterTerm,mla_terms_search:mlaModal.settings.query[f].termsSearch,mla_search_clicks:mlaModal.settings.query[f].searchClicks++,mla_search_value:mlaModal.settings.query[f].searchValue,mla_search_fields:mlaModal.settings.query[f].searchFields,mla_search_connector:mlaModal.settings.query[f].searchConnector};this.model.set({s:e})}})}if(mlaModal.settings.enableMimeTypes||mlaModal.settings.enableMonthsDropdown||mlaModal.settings.enableTermsDropdown||mlaModal.settings.enableTermsSearch||mlaModal.settings.enableSearchBox){wp.media.view.AttachmentsBrowser=wp.media.view.AttachmentsBrowser.extend({createToolbar:function(){var e,f=this.controller._state;mlaModal.settings.state=f;mlaModal.settings.$el=this.controller.$el;if("undefined"===typeof mlaModal.settings.query[f]){mlaModal.settings.query[f]=_.clone(mlaModal.settings.query.initial);mlaModal.settings.query[f].searchFields=_.clone(mlaModal.settings.query.initial.searchFields)}c.prototype.createToolbar.apply(this,arguments);mlaModal.utility.mlaAttachmentsBrowser=this;e=this.options.filters;if(typeof window.eml!=="undefined"){d(".media-toolbar",this.$el).css("overflow","hidden")}if(("all"===e)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.Mla({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(("uploaded"===e)&&mlaModal.settings.enableMimeTypes){this.toolbar.unset("filters",{silent:true});this.toolbar.set("filters",new wp.media.view.AttachmentFilters.MlaUploaded({controller:this.controller,model:this.collection.props,priority:-80}).render())}if(this.options.search&&mlaModal.settings.enableMonthsDropdown){this.toolbar.unset("dateFilter",{silent:true});this.toolbar.set("dateFilter",new wp.media.view.AttachmentFilters.MlaMonths({controller:this.controller,model:this.collection.props,priority:-75}).render())}if(this.options.search&&mlaModal.settings.enableTermsDropdown){this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-50}).render())}if(this.options.search&&mlaModal.settings.enableTermsSearch){this.toolbar.set("termsSearch",new wp.media.view.MlaTermsSearch({controller:this.controller,model:this.collection.props,priority:-50}).render())}if(this.options.search){if(mlaModal.settings.enableSearchBox){this.controller.on("content:activate",this.hideDefaultSearch);this.controller.on("edit:activate",this.hideDefaultSearch);this.controller.on("router:render",this.hideDefaultSearch);this.controller.on("uploader:ready",this.hideDefaultSearch);this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:60}).render())}else{this.toolbar.set("MlaSearch",new wp.media.view.MlaSearch({controller:this.controller,model:this.collection.props,priority:70}).render())}}},hideDefaultSearch:function(){var e=d("#media-search-input",this.el);if(0===e.length){e=d("div.media-toolbar-primary > input.search",this.el)}e.hide()},updateFilters:function(e,f){var g={};if(this.options.search&&mlaModal.settings.enableTermsDropdown&&mlaModal.settings.termsTaxonomy==e){g=mlaModal.utility.parseTermsOptions(f);mlaModal.settings.termsClass=g.termsClass;mlaModal.settings.termsText=g.termsText;mlaModal.settings.termsValue=g.termsValue;this.toolbar.unset("terms",{silent:true});this.toolbar.set("terms",new wp.media.view.AttachmentFilters.MlaTerms({controller:this.controller,model:this.collection.props,priority:-80}).render())}}})}mlaModal.utility.parseTermsOptions=function(k){var j={termsClass:[mlaModal.settings.termsClass[0],mlaModal.settings.termsClass[1]],termsText:[mlaModal.settings.termsText[0],mlaModal.settings.termsText[1]],termsValue:[mlaModal.settings.termsValue[0],mlaModal.settings.termsValue[1]]},g=2,e,f,i=/\<option(( class=\"([^\"]+)\" )|( ))value=((\'([^\']+)\')|(\"([^\"]+)\"))([^\>]*)\>([^\<]*)\<.*/g,h=[];if("object"===typeof k){g=mlaModal.settings.termsValue.length;for(e=2;e<g;e++){h[e]={termsClass:mlaModal.settings.termsClass[e],termsText:mlaModal.settings.termsText[e],termsValue:mlaModal.settings.termsValue[e]};if("undefined"!==typeof k[mlaModal.settings.termsValue[e]]){delete k[mlaModal.settings.termsValue[e]]}}for(f in k){h[e++]={termsClass:"level-0",termsText:k[f],termsValue:f.toString()}}if(g===e){return{termsClass:mlaModal.settings.termsClass,termsText:mlaModal.settings.termsText,termsValue:mlaModal.settings.termsValue}}h.sort(function(m,l){if(m.termsText>l.termsText){return 1}else{if(m.termsText<l.termsText){return -1}else{return 0}}});e=2;for(f in h){j.termsClass[e]=h[f].termsClass;j.termsText[e]=h[f].termsText;j.termsValue[e++]=h[f].termsValue}return j}h=i.exec(k);while(null!==(h=i.exec(k))){j.termsClass[g]=h[3];j.termsValue[g]=("undefined"===typeof h[6])?h[9]:h[7];j.termsText[g++]=h[11].replace("&nbsp;",mlaModal.settings.termsIndent)}return j};mlaModal.utility.arrayCleanup=function(g){var f=[],e=("string"===typeof g);if(e){g=g.split(mlaModal.settings.comma)}jQuery.each(g,function(h,i){i=jQuery.trim(i);if(i&&jQuery.inArray(i,f)==-1){f.push(i)}});f.sort();if(e){f=f.join(mlaModal.settings.comma)}return f};mlaModal.utility.parseTaxonomyId=function(f){var e=f.split("-");e.shift();e.shift();return e.join("-")};mlaModal.tagBox={cleanTags:function(f){var e=mlaModal.settings.comma;if(","!==e){f=f.replace(new RegExp(e,"g"),",")}f=f.replace(/\s*,\s*/g,",").replace(/,+/g,",").replace(/[,\s]+$/,"").replace(/^[,\s]+/,"");if(","!==e){f=f.replace(/,/g,e)}return f},parseTags:function(h){var l=h.id,f=l.split("-check-num-")[1],i=d(h).closest(".tagsdiv"),k=i.find(".the-tags"),e=mlaModal.settings.comma,g=k.val().split(e),j=[];delete g[f];d.each(g,function(m,n){n=d.trim(n);if(n){j.push(n)}});k.val(this.cleanTags(j.join(e)));this.quickClicks(i);return false},quickClicks:function(g){var j=d(".the-tags",g),h=d(".tagchecklist",g),i=d(g).attr("id"),e,f;if(!j.length){return}f=j.prop("disabled");e=j.val().split(mlaModal.settings.comma);h.empty();d.each(e,function(l,n){var m,k;n=d.trim(n);if(!n){return}m=d("<span />").text(n);if(!f){k=d('<a id="'+i+"-check-num-"+l+'" class="ntdelbutton">X</a>');k.click(function(){mlaModal.tagBox.parseTags(this)});m.prepend("&nbsp;").prepend(k)}h.append(m)})},flushTags:function(k,h,g){var m,e,i,n=d(".the-tags",k),j=d("input.newtag",k),l=mlaModal.settings.comma;h=h||false;i=h?d(h).text():j.val();m=n.val();e=m?m+l+i:i;e=mlaModal.utility.arrayCleanup(this.cleanTags(e));n.val(e);this.quickClicks(k);if(!h){j.val("")}if("undefined"==typeof(g)){j.focus()}return false},getCloud:function(f,e){d.post(ajaxurl,{action:"get-tagcloud",tax:e},function(h,g){if(0===h||"success"!=g){h=wpAjax.broken}h=d('<p id="tagcloud-'+e+'" class="the-tagcloud">'+h+"</p>");d("a",h).click(function(){mlaModal.tagBox.flushTags(d(this).closest(".mla-taxonomy-field").children(".tagsdiv"),this);return false});d("#"+f).after(h)})},init:function(i,e,g){var h,f;h=d("#mla-taxonomy-"+e,g);f=d("div.ajaxtag",h);mlaModal.tagBox.quickClicks(h);d("input.tagadd",f).click(function(){mlaModal.tagBox.flushTags(d(this).closest(".tagsdiv"))});d("input.newtag",f).keyup(function(j){if(13==j.which){mlaModal.tagBox.flushTags(h);return false}}).keypress(function(j){if(13==j.which){j.preventDefault();return false}}).each(function(){d(this).suggest(ajaxurl+"?action=ajax-tag-search&tax="+e,{delay:500,resultsClass:"mla_ac_results",selectClass:"mla_ac_over",matchClass:"mla_ac_match",minchars:2,multiple:true,multipleSep:mlaModal.settings.comma+" "})});h.siblings(":first").click(function(){mlaModal.tagBox.getCloud(d("a",this).attr("id"),e);d("a",this).unbind().click(function(){d(this).siblings(".the-tagcloud").toggle();return false});return false});d(".compat-field-"+e+" td",g).on("mouseleave",function(){var m,k=this,j=mlaModal.utility.arrayCleanup(d(".server-tags",k).val()),l=mlaModal.utility.arrayCleanup(d(".the-tags",k).val());if(j===l){return}d(k).css("opacity","0.5");m={id:i,};m[e]=l;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,m).done(function(o){var p,n,q;for(n in o){if("object"===typeof(o[n]["object-terms"])){if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(n,o[n]["object-terms"])}delete o[n]["object-terms"]}for(q in o[n]){d("#"+q,k).replaceWith(o[n][q])}p=d("#mla-taxonomy-"+n,k);mlaModal.tagBox.quickClicks(p)}d(k).css("opacity","1.0")})});h.on("change",function(j){j.stopPropagation();return false});d(".the-tags, .server-tags .newtag",h).on("change",function(j){j.stopPropagation();return false})}};if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.view.AttachmentCompat=wp.media.view.AttachmentCompat.extend({initialize:function(){b.prototype.initialize.apply(this,arguments);this.on("ready",function(){mlaModal.utility.hookCompatTaxonomies(this.model.get("id"),this.el)})}})}if(mlaModal.settings.enableDetailsCategory||mlaModal.settings.enableDetailsTag){wp.media.model.Selection=wp.media.model.Selection.extend({initialize:function(){a.prototype.initialize.apply(this,arguments);this.on("selection:reset",function(){mlaModal.cid=null});this.on("selection:unsingle",function(){mlaModal.cid=null});this.on("selection:single",function(e){mlaModal.cid=e.cid});this.on("change:uploading",function(){mlaModal.uploading=true});this.on("change",function(e){var f=false,g;if(mlaModal.uploading&&mlaModal.cid===e.cid){mlaModal.uploading=false;f=true}else{if(false===e.attributes.uploading){g=_.clone(e.changed);delete g.title;delete g.caption;delete g.alt;delete g.description;if(!_.isEmpty(g)){f=true}}}if(true===f){mlaModal.utility.hookCompatTaxonomies(e.get("id"),mlaModal.settings.$el)}})}})}mlaModal.utility.hookCompatTaxonomies=function(h,f){var e,g=null;d(".mla-taxonomy-field .categorydiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(e)){d(".compat-field-"+e+" th",f).click({id:h,currentTaxonomy:e,el:f},function(i){mlaModal.utility.fillCompatTaxonomies(i.data)});d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).show()}else{d(this).remove()}});if(null===g){g=e}}else{d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).remove()}})}});d(".mla-taxonomy-field .tagsdiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));if(-1!=mlaModal.settings.enhancedTaxonomies.indexOf(e)){d(".compat-field-"+e+" th",f).click({id:h,currentTaxonomy:e,el:f},function(i){mlaModal.utility.fillCompatTaxonomies(i.data)});d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).show()}else{d(this).remove()}});if(null===g){g=e}}else{d("tr.compat-field-"+e,f).each(function(){if(d(this).hasClass("mla-taxonomy-row")){d(this).remove()}})}});if(mlaModal.settings.enableTermsAutofill&&null!==g){d(".compat-field-"+g+" th",f).click()}};mlaModal.utility.fillCompatTaxonomies=function(i){var f=i.el,h=[],e,g;d(".mla-taxonomy-field .categorydiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));h[h.length]=e;g=".compat-field-"+e;if("undefined"===typeof(mlaModal.initialHTML[e])){mlaModal.initialHTML[e]=d(g,f).html()}else{d(g,f).html(mlaModal.initialHTML[e])}d(g+" .categorydiv",f).html(mlaModal.strings.loadingText)});d(".mla-taxonomy-field .tagsdiv",f).each(function(){e=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));h[h.length]=e;g=".compat-field-"+e;if("undefined"===typeof(mlaModal.initialHTML[e])){mlaModal.initialHTML[e]=d(g,f).html()}else{d(g,f).html(mlaModal.initialHTML[e])}d(g+" .tagsdiv",f).html(mlaModal.strings.loadingText)});if(h.length){wp.media.post(mlaModal.settings.ajaxFillCompatAction,{id:i.id,query:h,}).done(function(k){var j,l;for(j in k){l=".compat-field-"+j;d(l,f).html(k[j])}mlaModal.utility.supportCompatTaxonomies(i);d(".compat-field-"+i.currentTaxonomy+" td",f).show()})}};mlaModal.utility.supportCompatTaxonomies=function(g){var f=g.id,e=g.el;if(mlaModal.settings.enableDetailsCategory){d(".mla-taxonomy-field .categorydiv",e).each(function(){var j=d(this),h,k,i,n,l,p,o,m;i=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));n=i+"_tab";l="#mla-"+i;p="#mla-new-"+i;o="#mla-search-"+i;m="#mla-attachments-"+f+"-"+i;if(i=="category"){n="cats"}j.find(".category-tabs").show();d(".compat-field-"+i+" th",e).click(function(){d(this).siblings("td").slideToggle()});j.on("mouseleave",function(){var t,q,s=[],r=j.find(l+"-checklist input:checked");r.each(function(){s[s.length]=d(this).val()});s.sort(function(v,u){return v-u});s=s.join(",");q=j.siblings(m).val();if(q===s){return}j.siblings(m).val(s);j.prop("disabled",true);t={id:f,};t[i]=s;wp.media.post(mlaModal.settings.ajaxUpdateCompatAction,t).done(function(v){var u,w;for(u in v){for(w in v[u]){j.find("#"+w).html(v[u][w])}}j.find(o).val("");j.find(l+"-searcher").addClass("mla-hidden-children");j.prop("disabled",false)})});j.on('change input[type="checkbox"]',function(q){q.stopPropagation();return false});j.find(l+"-tabs a").click(function(){var q=d(this).attr("href");d(this).parent().addClass("tabs").siblings("li").removeClass("tabs");j.find(l+"-tabs").siblings(".tabs-panel").hide();j.find(q).show();d(this).focus();if("#mla-"+i+"-all"==q){deleteUserSetting(n)}else{setUserSetting(n,"pop")}return false});if(getUserSetting(n)){j.find(l+'-tabs a[href="#mla-'+i+'-pop"]').click()}j.find(l+"-add-toggle").click(function(){j.find(l+"-searcher").addClass("mla-hidden-children");j.find(l+"-adder").toggleClass("mla-hidden-children");j.find(l+'-tabs a[href="#mla-'+i+'-all"]').click();j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();if(false===j.find(l+"-adder").hasClass("mla-hidden-children")){j.find(p).val("").removeClass("form-input-tip");j.find(p).focus()}return false});j.find(p).keypress(function(q){if(13===q.keyCode){q.preventDefault();j.find(l+"-add-submit").click()}});j.find(l+"-add-submit").click(function(){j.find(p).focus()});h=function(q){if(!j.find(p).val()){return false}q.data+="&"+j.find(l+"-checklist :checked").serialize();j.prop("disabled",true);return q};k=function(v,u){var t,q=j.find("#new"+i+"_parent");j.prop("disabled",false);if("undefined"!=u.parsed.responses[0]&&(t=u.parsed.responses[0].supplemental.newcat_parent)){q.before(t);q.remove();if(null!==mlaModal.utility.mlaAttachmentsBrowser){mlaModal.utility.mlaAttachmentsBrowser.updateFilters(i,t)}}};j.find(l+"-checklist").wpList({alt:"",response:"mla-"+i+"-ajax-response",addBefore:h,addAfter:k});j.find(l+"-checklist, "+l+"-checklist-pop").on("click",'li.popular-category > label input[type="checkbox"]',function(){var q=d(this),s=q.is(":checked"),r=q.val();if(r&&q.parents("#mla-taxonomy-"+i).length){d("#in-"+i+"-"+r+", #in-popular-"+i+"-"+r).prop("checked",s)}});d.extend(d.expr[":"],{matchTerms:function(s,r,q,t){return(s.textContent||s.innerText||"").toLowerCase().indexOf((q[3]||"").toLowerCase())>=0}});j.find(o).keypress(function(q){if(13===q.keyCode){q.preventDefault();j.find(o).val("");j.find(l+"-searcher").addClass("mla-hidden-children");j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();return}});j.find(o).keyup(function(s){var u,t,v,r,q;if(13===s.keyCode){s.preventDefault();j.find(l+"-search-toggle").focus();return}u=j.find(o).val();t=j.find(l+"-checklist li");v=j.find(l+"-checklist-pop li");if(0<u.length){t.hide();v.hide()}else{t.show();v.show()}r=j.find(l+"-checklist label:matchTerms('"+u+"')");r.closest("li").find("li").andSelf().show();r.parents(l+"-checklist li").show();q=j.find(l+"-checklist-pop label:matchTerms('"+u+"')");q.closest("li").find("li").andSelf().show();q.parents(l+"-checklist li").show()});j.find(l+"-search-toggle").click(function(){j.find(l+"-adder ").addClass("mla-hidden-children");j.find(l+"-searcher").toggleClass("mla-hidden-children");j.find(l+'-tabs a[href="#mla-'+i+'-all"]').click();j.find(l+"-checklist li").show();j.find(l+"-checklist-pop li").show();if(false===j.find(l+"-searcher").hasClass("mla-hidden-children")){j.find(o).val("").removeClass("form-input-tip");j.find(o).focus()}return false})})}if(mlaModal.settings.enableDetailsTag){d(".mla-taxonomy-field .tagsdiv",e).each(function(){var h=mlaModal.utility.parseTaxonomyId(d(this).attr("id"));d(".compat-field-"+h+" th",e).click(function(){d(this).siblings("td").slideToggle()});mlaModal.tagBox.init(f,h,e)})}}}(jQuery));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/media-library-assistant-en_US.po CHANGED
@@ -1,9 +1,11 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Media Library Assistant\n"
4
- "POT-Creation-Date: 2016-04-08 20:54-0700\n"
5
- "PO-Revision-Date: 2016-04-08 20:55-0700\n"
 
6
  "Language-Team: David Lingren <david@fairtradejudaica.org>\n"
 
7
  "MIME-Version: 1.0\n"
8
  "Content-Type: text/plain; charset=UTF-8\n"
9
  "Content-Transfer-Encoding: 8bit\n"
@@ -13,8 +15,6 @@ msgstr ""
13
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
14
  "_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c\n"
15
  "X-Poedit-SourceCharset: UTF-8\n"
16
- "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
17
- "Language: en_US\n"
18
  "X-Poedit-SearchPath-0: includes\n"
19
  "X-Poedit-SearchPath-1: tests\n"
20
  "X-Poedit-SearchPath-2: index.php\n"
@@ -1966,9 +1966,6 @@ msgstr ""
1966
  msgid "tpls/mla-option-templates.tpl not found"
1967
  msgstr ""
1968
 
1969
- msgid "no templates exist"
1970
- msgstr ""
1971
-
1972
  #. translators: 1: ERROR tag 2: option name 3: action, e.g., update, delete, reset
1973
  #, php-format
1974
  msgid "%1$s: Custom %2$s unknown action \"%3$s\""
@@ -2463,6 +2460,9 @@ msgctxt "error_log"
2463
  msgid "%1$s: %2$s unknown type = \"%3$s\""
2464
  msgstr ""
2465
 
 
 
 
2466
  msgid "General"
2467
  msgstr ""
2468
 
@@ -2472,7 +2472,7 @@ msgstr ""
2472
  msgid "Uploads"
2473
  msgstr ""
2474
 
2475
- msgid "MLA Gallery"
2476
  msgstr ""
2477
 
2478
  msgid "Custom Fields"
@@ -2532,6 +2532,14 @@ msgstr ""
2532
  msgid "enhanced version of the WordPress Tag Cloud."
2533
  msgstr ""
2534
 
 
 
 
 
 
 
 
 
2535
  msgid "Shortcodes made available by this plugin"
2536
  msgstr ""
2537
 
@@ -2734,13 +2742,16 @@ msgstr ""
2734
  msgid "Active"
2735
  msgstr ""
2736
 
2737
- msgid "MLA Gallery Options"
 
 
 
2738
  msgstr ""
2739
 
2740
- msgid "Go to Style Templates"
2741
  msgstr ""
2742
 
2743
- msgid "Go to Markup Templates"
2744
  msgstr ""
2745
 
2746
  msgid ""
@@ -2752,12 +2763,6 @@ msgid ""
2752
  "Changes\" at the bottom of this page."
2753
  msgstr ""
2754
 
2755
- msgid "Style Templates"
2756
- msgstr ""
2757
-
2758
- msgid "Markup Templates"
2759
- msgstr ""
2760
-
2761
  msgid "Theme"
2762
  msgstr ""
2763
 
@@ -2778,13 +2783,6 @@ msgid ""
2778
  "styles."
2779
  msgstr ""
2780
 
2781
- msgid "Styles"
2782
- msgstr ""
2783
-
2784
- msgid ""
2785
- "List of substitution parameters, e.g., [+selector+], on Documentation tab."
2786
- msgstr ""
2787
-
2788
  msgid "Delete this template"
2789
  msgstr ""
2790
 
@@ -2801,50 +2799,6 @@ msgid ""
2801
  "markup."
2802
  msgstr ""
2803
 
2804
- msgid "Arguments"
2805
- msgstr ""
2806
-
2807
- msgid "Default shortcode parameter values."
2808
- msgstr ""
2809
-
2810
- msgid "Open"
2811
- msgstr ""
2812
-
2813
- msgid ""
2814
- "Markup for the beginning of the gallery. List of parameters, e.g., [+selector"
2815
- "+], on Documentation tab."
2816
- msgstr ""
2817
-
2818
- msgid "Row"
2819
- msgstr ""
2820
-
2821
- msgid "Markup for the beginning of each row in the gallery."
2822
- msgstr ""
2823
-
2824
- msgid "Item"
2825
- msgstr ""
2826
-
2827
- msgid "Markup for each item/cell of the gallery."
2828
- msgstr ""
2829
-
2830
- msgid "Close"
2831
- msgstr ""
2832
-
2833
- msgid "Markup for the end of each row in the gallery."
2834
- msgstr ""
2835
-
2836
- msgid "Markup for the end of the gallery."
2837
- msgstr ""
2838
-
2839
- msgid "Markup for the beginning of each row."
2840
- msgstr ""
2841
-
2842
- msgid "Markup for each item/cell."
2843
- msgstr ""
2844
-
2845
- msgid "Markup for the end of each row."
2846
- msgstr ""
2847
-
2848
  msgid "Fill in a name and markup to add a new template."
2849
  msgstr ""
2850
 
@@ -2869,6 +2823,9 @@ msgstr ""
2869
  msgid "Resume"
2870
  msgstr ""
2871
 
 
 
 
2872
  msgid "Custom Field and Attachment Metadata Processing Options"
2873
  msgstr ""
2874
 
@@ -3023,6 +2980,11 @@ msgstr ""
3023
  msgid "%1$s: Duplicate new %2$s \"%3$s\", reverting to \"%4$s\"."
3024
  msgstr ""
3025
 
 
 
 
 
 
3026
  #. translators: 1: element name 2: old_value 3: new_value
3027
  #, php-format
3028
  msgctxt "message_list"
@@ -3043,40 +3005,10 @@ msgstr ""
3043
  msgid "markup template name"
3044
  msgstr ""
3045
 
3046
- #. translators: 1: template name
3047
- #, php-format
3048
- msgctxt "message_list"
3049
- msgid "Updating arguments markup for \"%1$s\"."
3050
- msgstr ""
3051
-
3052
- #. translators: 1: template name
3053
- #, php-format
3054
- msgctxt "message_list"
3055
- msgid "Updating open markup for \"%1$s\"."
3056
- msgstr ""
3057
-
3058
- #. translators: 1: template name
3059
- #, php-format
3060
- msgctxt "message_list"
3061
- msgid "Updating row open markup for \"%1$s\"."
3062
- msgstr ""
3063
-
3064
- #. translators: 1: template name
3065
  #, php-format
3066
  msgctxt "message_list"
3067
- msgid "Updating item markup for \"%1$s\"."
3068
- msgstr ""
3069
-
3070
- #. translators: 1: template name
3071
- #, php-format
3072
- msgctxt "message_list"
3073
- msgid "Updating row close markup for \"%1$s\"."
3074
- msgstr ""
3075
-
3076
- #. translators: 1: template name
3077
- #, php-format
3078
- msgctxt "message_list"
3079
- msgid "Updating close markup for \"%1$s\"."
3080
  msgstr ""
3081
 
3082
  #. translators: 1: field type
@@ -3220,9 +3152,6 @@ msgstr ""
3220
  msgid "Settings imported; %1$s updated, %2$s unchanged."
3221
  msgstr ""
3222
 
3223
- msgid "not found"
3224
- msgstr ""
3225
-
3226
  msgid "Previous"
3227
  msgstr ""
3228
 
@@ -3252,6 +3181,9 @@ msgstr ""
3252
  msgid "mla_debug empty list"
3253
  msgstr ""
3254
 
 
 
 
3255
  msgid "Invalid mla_gallery"
3256
  msgstr ""
3257
 
@@ -3303,6 +3235,98 @@ msgstr ""
3303
  msgid "mla_debug found_rows"
3304
  msgstr ""
3305
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3306
  msgid "Error while saving the thumbnails."
3307
  msgstr ""
3308
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: Media Library Assistant\n"
4
+ "POT-Creation-Date: 2016-06-05 18:54-0700\n"
5
+ "PO-Revision-Date: 2016-06-05 18:55-0700\n"
6
+ "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
7
  "Language-Team: David Lingren <david@fairtradejudaica.org>\n"
8
+ "Language: en_US\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
15
  "X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;"
16
  "_n_noop:1,2;_c;_nc:4c,1,2;_x:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;_ex:1,2c\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
 
 
18
  "X-Poedit-SearchPath-0: includes\n"
19
  "X-Poedit-SearchPath-1: tests\n"
20
  "X-Poedit-SearchPath-2: index.php\n"
1966
  msgid "tpls/mla-option-templates.tpl not found"
1967
  msgstr ""
1968
 
 
 
 
1969
  #. translators: 1: ERROR tag 2: option name 3: action, e.g., update, delete, reset
1970
  #, php-format
1971
  msgid "%1$s: Custom %2$s unknown action \"%3$s\""
2460
  msgid "%1$s: %2$s unknown type = \"%3$s\""
2461
  msgstr ""
2462
 
2463
+ msgid "Go to Bottom"
2464
+ msgstr ""
2465
+
2466
  msgid "General"
2467
  msgstr ""
2468
 
2472
  msgid "Uploads"
2473
  msgstr ""
2474
 
2475
+ msgid "Shortcodes"
2476
  msgstr ""
2477
 
2478
  msgid "Custom Fields"
2532
  msgid "enhanced version of the WordPress Tag Cloud."
2533
  msgstr ""
2534
 
2535
+ msgid ""
2536
+ "provides flat or hierarchical lists, dropdown controls and checkbox lists of "
2537
+ "taxonomy terms."
2538
+ msgstr ""
2539
+
2540
+ msgid "wait a bit longer"
2541
+ msgstr ""
2542
+
2543
  msgid "Shortcodes made available by this plugin"
2544
  msgstr ""
2545
 
2742
  msgid "Active"
2743
  msgstr ""
2744
 
2745
+ msgid "Go to"
2746
+ msgstr ""
2747
+
2748
+ msgid "Style Templates"
2749
  msgstr ""
2750
 
2751
+ msgid "Markup Templates"
2752
  msgstr ""
2753
 
2754
+ msgid "MLA Shortcode Options"
2755
  msgstr ""
2756
 
2757
  msgid ""
2763
  "Changes\" at the bottom of this page."
2764
  msgstr ""
2765
 
 
 
 
 
 
 
2766
  msgid "Theme"
2767
  msgstr ""
2768
 
2783
  "styles."
2784
  msgstr ""
2785
 
 
 
 
 
 
 
 
2786
  msgid "Delete this template"
2787
  msgstr ""
2788
 
2799
  "markup."
2800
  msgstr ""
2801
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2802
  msgid "Fill in a name and markup to add a new template."
2803
  msgstr ""
2804
 
2823
  msgid "Resume"
2824
  msgstr ""
2825
 
2826
+ msgid "Close"
2827
+ msgstr ""
2828
+
2829
  msgid "Custom Field and Attachment Metadata Processing Options"
2830
  msgstr ""
2831
 
2980
  msgid "%1$s: Duplicate new %2$s \"%3$s\", reverting to \"%4$s\"."
2981
  msgstr ""
2982
 
2983
+ #. translators: 1: ERROR tag 2: element name 3: new value 4: old value
2984
+ #, php-format
2985
+ msgid "%1$s: Reserved %2$s \"%3$s\", reverting to \"%4$s\"."
2986
+ msgstr ""
2987
+
2988
  #. translators: 1: element name 2: old_value 3: new_value
2989
  #, php-format
2990
  msgctxt "message_list"
3005
  msgid "markup template name"
3006
  msgstr ""
3007
 
3008
+ #. translators: 1: section name, 2: template name
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3009
  #, php-format
3010
  msgctxt "message_list"
3011
+ msgid "Updating %1$s markup for \"%2$s\"."
 
 
 
 
 
 
 
 
 
 
 
 
3012
  msgstr ""
3013
 
3014
  #. translators: 1: field type
3152
  msgid "Settings imported; %1$s updated, %2$s unchanged."
3153
  msgstr ""
3154
 
 
 
 
3155
  msgid "Previous"
3156
  msgstr ""
3157
 
3181
  msgid "mla_debug empty list"
3182
  msgstr ""
3183
 
3184
+ msgid "no-terms"
3185
+ msgstr ""
3186
+
3187
  msgid "Invalid mla_gallery"
3188
  msgstr ""
3189
 
3235
  msgid "mla_debug found_rows"
3236
  msgstr ""
3237
 
3238
+ msgid "Styles"
3239
+ msgstr ""
3240
+
3241
+ msgid ""
3242
+ "List of substitution parameters, e.g., [+selector+], on Documentation tab."
3243
+ msgstr ""
3244
+
3245
+ msgid "Arguments"
3246
+ msgstr ""
3247
+
3248
+ msgid "Default shortcode parameter values."
3249
+ msgstr ""
3250
+
3251
+ msgid "Row"
3252
+ msgstr ""
3253
+
3254
+ msgid "Open"
3255
+ msgstr ""
3256
+
3257
+ msgid "Markup for the beginning of each row in the gallery."
3258
+ msgstr ""
3259
+
3260
+ msgid ""
3261
+ "Markup for the beginning of the gallery. List of parameters, e.g., [+selector"
3262
+ "+], on Documentation tab."
3263
+ msgstr ""
3264
+
3265
+ msgid "Item"
3266
+ msgstr ""
3267
+
3268
+ msgid "Markup for each item/cell of the gallery."
3269
+ msgstr ""
3270
+
3271
+ msgid "Markup for the end of each row in the gallery."
3272
+ msgstr ""
3273
+
3274
+ msgid "Markup for the end of the gallery."
3275
+ msgstr ""
3276
+
3277
+ msgid "Markup for the beginning of each row in the cloud; grid format only."
3278
+ msgstr ""
3279
+
3280
+ msgid ""
3281
+ "Markup for the beginning of the cloud. List of parameters, e.g., [+selector"
3282
+ "+], on Documentation tab."
3283
+ msgstr ""
3284
+
3285
+ msgid "Markup for each item/cell of the cloud."
3286
+ msgstr ""
3287
+
3288
+ msgid "Markup for the end of each row in the cloud; grid format only."
3289
+ msgstr ""
3290
+
3291
+ msgid "Markup for the end of the cloud."
3292
+ msgstr ""
3293
+
3294
+ msgid "Child"
3295
+ msgstr ""
3296
+
3297
+ msgid ""
3298
+ "Markup for the beginning of each level in the hierarchy; list format only."
3299
+ msgstr ""
3300
+
3301
+ msgid "Markup for each lower-level item in the hierarchy; list format only."
3302
+ msgstr ""
3303
+
3304
+ msgid "Markup for the end of each level in the hierarchy; list format only."
3305
+ msgstr ""
3306
+
3307
+ msgid ""
3308
+ "Markup for the beginning of the list. List of parameters, e.g., [+selector"
3309
+ "+], on Documentation tab."
3310
+ msgstr ""
3311
+
3312
+ msgid "Markup for each item/cell in the list."
3313
+ msgstr ""
3314
+
3315
+ msgid "Markup for the end of the list."
3316
+ msgstr ""
3317
+
3318
+ msgid "error loading tpls/mla-custom-templates.tpl"
3319
+ msgstr ""
3320
+
3321
+ msgid "tpls/mla-custom-templates.tpl not found"
3322
+ msgstr ""
3323
+
3324
+ msgid "no templates exist"
3325
+ msgstr ""
3326
+
3327
+ msgid "not found"
3328
+ msgstr ""
3329
+
3330
  msgid "Error while saving the thumbnails."
3331
  msgstr ""
3332
 
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: 2016-04-08 20:53-0700\n"
6
  "PO-Revision-Date: 2015-08-21 21:38-0800\n"
7
  "Last-Translator: David Lingren <david@fairtradejudaica.org>\n"
8
  "Language-Team: David Lingren <david@fairtradejudaica.org>\n"
@@ -21,122 +21,285 @@ msgstr ""
21
  "X-Poedit-SearchPath-2: index.php\n"
22
 
23
  #. translators: Name of the plugin/theme
 
 
 
 
24
  msgid "Media Library Assistant"
25
  msgstr ""
26
 
 
 
27
  msgid "Assistant"
28
  msgstr ""
29
 
 
 
 
 
 
 
30
  msgid "Title"
31
  msgstr ""
32
 
 
 
33
  msgid "Type"
34
  msgstr ""
35
 
 
36
  msgid "Date"
37
  msgstr ""
38
 
 
 
39
  msgid "Status"
40
  msgstr ""
41
 
 
 
 
 
42
  msgid "(no title)"
43
  msgstr ""
44
 
 
45
  msgid "Published"
46
  msgstr ""
47
 
 
 
48
  msgid "Scheduled"
49
  msgstr ""
50
 
 
51
  msgid "Pending Review"
52
  msgstr ""
53
 
 
 
54
  msgid "Draft"
55
  msgstr ""
56
 
57
  #. translators: date format in table columns, see http://php.net/date
58
  #. translators: format for upload/last modified date
 
 
 
59
  msgid "Y/m/d"
60
  msgstr ""
61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
62
  msgid "ERROR"
63
  msgstr ""
64
 
 
65
  msgid "No post ID found"
66
  msgstr ""
67
 
 
 
68
  msgid "You are not allowed to edit this Attachment."
69
  msgstr ""
70
 
 
71
  msgid "Attachment Categories"
72
  msgstr ""
73
 
 
74
  msgid "Check this option to add support for Attachment Categories."
75
  msgstr ""
76
 
 
77
  msgid "Attachment Tags"
78
  msgstr ""
79
 
 
80
  msgid "Check this option to add support for Attachment Tags."
81
  msgstr ""
82
 
 
83
  msgid "Where-used Reporting"
84
  msgstr ""
85
 
 
86
  msgid "Exclude Revisions"
87
  msgstr ""
88
 
 
89
  msgid "Check this option to exclude revisions from where-used reporting."
90
  msgstr ""
91
 
 
92
  msgid "Where-used database access tuning"
93
  msgstr ""
94
 
 
 
95
  msgid "Featured in"
96
  msgstr ""
97
 
 
 
98
  msgid "Enabled"
99
  msgstr ""
100
 
 
 
 
 
 
 
 
 
101
  msgid "Disabled"
102
  msgstr ""
103
 
 
104
  msgid "Search database posts and pages for Featured Image attachments."
105
  msgstr ""
106
 
 
 
107
  msgid "Inserted in"
108
  msgstr ""
109
 
 
110
  msgid "Base"
111
  msgstr ""
112
 
 
113
  msgid ""
114
  "Search database posts and pages for attachments embedded in content."
115
  "<br>&nbsp;&nbsp;Base = ignore intermediate size suffixes; use path, base "
116
  "name and extension only."
117
  msgstr ""
118
 
 
 
 
119
  msgid "Gallery in"
120
  msgstr ""
121
 
 
 
122
  msgid "Dynamic"
123
  msgstr ""
124
 
 
 
 
125
  msgid "Refresh"
126
  msgstr ""
127
 
 
 
128
  msgid "Cached"
129
  msgstr ""
130
 
 
131
  msgid ""
132
  "Search database posts and pages for [ gallery ] shortcode results.<br>&nbsp;"
133
  "&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = "
134
  "never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached."
135
  msgstr ""
136
 
 
 
 
137
  msgid "MLA Gallery in"
138
  msgstr ""
139
 
 
140
  msgid ""
141
  "Search database posts and pages for [mla_gallery] shortcode results."
142
  "<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, "
@@ -144,79 +307,103 @@ msgid ""
144
  "Cached."
145
  msgstr ""
146
 
 
147
  msgid "Taxonomy Support"
148
  msgstr ""
149
 
 
150
  msgid "Compute Attachments Column"
151
  msgstr ""
152
 
 
153
  msgid ""
154
  "Check this option to calculate attachments per term in the Attachments "
155
  "Column."
156
  msgstr ""
157
 
 
158
  msgid ""
159
  "Check the \"<strong>Support</strong>\" box to add the taxonomy to the "
160
  "Assistant and the Edit Media screen."
161
  msgstr ""
162
 
 
163
  msgid ""
164
  "Check the \"<strong>Inline Edit</strong>\" box to display the taxonomy in "
165
  "the Quick Edit and Bulk Edit areas."
166
  msgstr ""
167
 
 
168
  msgid ""
169
  "Check the \"<strong>Term Search</strong>\" box to add the taxonomy to the "
170
  "\"Search Media/Terms\" list."
171
  msgstr ""
172
 
 
 
 
173
  msgid "For complete documentation"
174
  msgstr ""
175
 
 
 
 
176
  msgid "click here"
177
  msgstr ""
178
 
 
179
  msgid ""
180
  "Check the \"<strong>Checklist</strong>\" box to enable the checklist-style "
181
  "meta box for a flat taxonomy."
182
  msgstr ""
183
 
 
184
  msgid ""
185
  "You must also check the <strong>\"Enable enhanced checklist taxonomies\"</"
186
  "strong> box below to enable this feature."
187
  msgstr ""
188
 
 
189
  msgid ""
190
  "Check the \"<strong>Checked On Top</strong>\" box to moved checked terms to "
191
  "the top of the checklist-style meta box."
192
  msgstr ""
193
 
 
194
  msgid ""
195
  "Use the \"<strong>List Filter</strong>\" option to select the taxonomy on "
196
  "which to filter the Assistant table listing."
197
  msgstr ""
198
 
 
199
  msgid "Media/Assistant Screen Options"
200
  msgstr ""
201
 
 
202
  msgid "Admin Menu Options"
203
  msgstr ""
204
 
 
205
  msgid "Page Title"
206
  msgstr ""
207
 
 
208
  msgid "Enter the title for the Media/Assistant submenu page"
209
  msgstr ""
210
 
 
211
  msgid "Menu Title"
212
  msgstr ""
213
 
 
214
  msgid "Enter the title for the Media/Assistant submenu entry"
215
  msgstr ""
216
 
 
217
  msgid "Submenu Order"
218
  msgstr ""
219
 
 
220
  msgid ""
221
  "Enter the position of the Media/Assistant submenu entry.<br>&nbsp;&nbsp;0 = "
222
  "natural order (at bottom),&nbsp;&nbsp;&nbsp;&nbsp;1 - 4 = at top<br>&nbsp;"
@@ -224,218 +411,286 @@ msgid ""
224
  "\""
225
  msgstr ""
226
 
 
227
  msgid "Display Media/Library"
228
  msgstr ""
229
 
 
230
  msgid ""
231
  "Check/uncheck this option to display/remove the WordPress Media/Library "
232
  "submenu entry."
233
  msgstr ""
234
 
 
235
  msgid "Display Media/Assistant list/grid view switcher"
236
  msgstr ""
237
 
 
238
  msgid ""
239
  "Check/uncheck this option to display/remove the \"list/grid\" view switcher "
240
  "on the Media/Assistant submenu."
241
  msgstr ""
242
 
 
243
  msgid "Table Defaults"
244
  msgstr ""
245
 
 
246
  msgid "Order By"
247
  msgstr ""
248
 
 
 
 
 
 
 
249
  msgid "None"
250
  msgstr ""
251
 
 
252
  msgid "ID/Parent"
253
  msgstr ""
254
 
 
255
  msgid "Select the column for the sort order of the Assistant table listing."
256
  msgstr ""
257
 
 
258
  msgid "Order"
259
  msgstr ""
260
 
 
261
  msgid "Ascending"
262
  msgstr ""
263
 
 
264
  msgid "Descending"
265
  msgstr ""
266
 
 
 
267
  msgid "Choose the sort order."
268
  msgstr ""
269
 
 
270
  msgid "Views Width"
271
  msgstr ""
272
 
 
273
  msgid "Enter the width for the views list, in pixels (px) or percent (%)"
274
  msgstr ""
275
 
 
276
  msgid "Icon Size"
277
  msgstr ""
278
 
 
279
  msgid "Enter the size of the thumbnail/icon images, in pixels"
280
  msgstr ""
281
 
 
282
  msgid "Bulk Chunk Size"
283
  msgstr ""
284
 
 
285
  msgid "Enter the size of the Bulk Edit and Map All processing chunks"
286
  msgstr ""
287
 
 
288
  msgid "Taxonomy Filter parameters"
289
  msgstr ""
290
 
 
291
  msgid "Maximum Depth"
292
  msgstr ""
293
 
 
294
  msgid ""
295
  "Enter the number of levels displayed for hierarchial taxonomies; enter zero "
296
  "for no limit."
297
  msgstr ""
298
 
 
299
  msgid "Include Children"
300
  msgstr ""
301
 
 
302
  msgid ""
303
  "Check/uncheck this option to include/exclude children for hierarchical "
304
  "taxonomies."
305
  msgstr ""
306
 
 
307
  msgid "Search Media Defaults"
308
  msgstr ""
309
 
 
310
  msgid "Display Search Controls"
311
  msgstr ""
312
 
 
 
313
  msgid ""
314
  "Check/uncheck this option to display/hide the and/or connector and search "
315
  "fields controls."
316
  msgstr ""
317
 
 
318
  msgid ""
319
  "Use these controls to set defaults for the and/or connector and search "
320
  "fields controls.<br>These defaults will be used for the Search Media boxes "
321
  "on both the Media/Assistant submenu<br>and the Media Manager Modal Window."
322
  msgstr ""
323
 
 
324
  msgid "Media/Edit Media Enhancements"
325
  msgstr ""
326
 
 
327
  msgid "Enable &quot;enhanced checklist&quot; taxonomies"
328
  msgstr ""
329
 
 
330
  msgid ""
331
  "Check this option to enable the \"? Search\" feature for hierarchical "
332
  "taxonomies, e.g., Att. Categories.<br>&nbsp;&nbsp;This option also enables "
333
  "the \"checklist-style\" support for flat taxonomies, e.g., Att. Tags."
334
  msgstr ""
335
 
 
336
  msgid "Enable Edit Media additional meta boxes"
337
  msgstr ""
338
 
 
339
  msgid ""
340
  "Check this option to add \"Parent Info\", \"Menu Order\", \"Attachment "
341
  "Metadata\" and four \"where-used\" meta boxes to the Edit Media screen."
342
  msgstr ""
343
 
 
344
  msgid "You can also use Filters to customize the meta boxes."
345
  msgstr ""
346
 
 
347
  msgid "Media/Add New Enhancements"
348
  msgstr ""
349
 
 
350
  msgid "Enable &quot;bulk edit&quot; area"
351
  msgstr ""
352
 
 
353
  msgid ""
354
  "Check this option to enable the \"Bulk Edit area\" feature on the Media/Add "
355
  "New screen."
356
  msgstr ""
357
 
 
358
  msgid "&quot;bulk edit&quot; area on top"
359
  msgstr ""
360
 
 
361
  msgid ""
362
  "Check this option to move the \"Bulk Edit area\" to the top of the Media/Add "
363
  "New screen."
364
  msgstr ""
365
 
 
366
  msgid "&quot;bulk edit&quot; area initially open"
367
  msgstr ""
368
 
 
369
  msgid ""
370
  "Check this option to automatically open the \"Bulk Edit area\" when the "
371
  "Media/Add New screen is displayed."
372
  msgstr ""
373
 
 
374
  msgid "Media Manager/Media Grid Enhancements"
375
  msgstr ""
376
 
 
377
  msgid "Enable Media Grid Enhancements"
378
  msgstr ""
379
 
 
380
  msgid ""
381
  "Check/uncheck this option to enable/disable Media Library Grid View "
382
  "Enhancements."
383
  msgstr ""
384
 
 
385
  msgid "Enable Media Manager Enhancements"
386
  msgstr ""
387
 
 
388
  msgid ""
389
  "Check/uncheck this option to enable/disable Media Manager Modal Window "
390
  "Enhancements."
391
  msgstr ""
392
 
 
393
  msgid "Media Manager Enhanced MIME Type filter"
394
  msgstr ""
395
 
 
396
  msgid ""
397
  "Check this option to filter by more MIME Types, e.g., text, applications."
398
  msgstr ""
399
 
 
400
  msgid "Media Manager Month and Year filter"
401
  msgstr ""
402
 
 
403
  msgid "Check this option to filter by month and year uploaded."
404
  msgstr ""
405
 
 
406
  msgid "Media Manager Category/Tag filter"
407
  msgstr ""
408
 
 
409
  msgid "Check this option to filter by taxonomy terms."
410
  msgstr ""
411
 
 
412
  msgid "Media Manager Terms Search popup"
413
  msgstr ""
414
 
 
415
  msgid "Check this option to enable the \"Terms Search\" popup window."
416
  msgstr ""
417
 
 
418
  msgid "Media Manager Enhanced Search Media box"
419
  msgstr ""
420
 
 
421
  msgid "Check this option to enable search box enhancements."
422
  msgstr ""
423
 
 
424
  msgid "Media Manager Enhanced Search Media Controls"
425
  msgstr ""
426
 
 
427
  msgid "Media Manager Checklist meta boxes"
428
  msgstr ""
429
 
 
430
  msgid ""
431
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
432
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for any taxonomy that uses a "
433
  "<strong>\"checklist-style\"</strong> meta box."
434
  msgstr ""
435
 
 
436
  msgid "Media Manager Flat meta boxes"
437
  msgstr ""
438
 
 
439
  msgid ""
440
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
441
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies</"
@@ -443,147 +698,217 @@ msgid ""
443
  "style\" meta box."
444
  msgstr ""
445
 
 
446
  msgid "Media Manager auto-fill meta boxes"
447
  msgstr ""
448
 
 
449
  msgid ""
450
  "Check this option to automatically fill MLA-enhanced meta boxes in the "
451
  "\"ATTACHMENT DETAILS\" pane<br>&nbsp;&nbsp;when the item is selected."
452
  msgstr ""
453
 
 
454
  msgid "Media Manager Order By"
455
  msgstr ""
456
 
 
 
 
 
 
457
  msgid "Media Manager Default"
458
  msgstr ""
459
 
 
460
  msgid "Title/Name"
461
  msgstr ""
462
 
 
463
  msgid ""
464
  "If you want to override the Media Manager default,<br>&nbsp;&nbsp;select a "
465
  "column for the sort order of the Media Library listing."
466
  msgstr ""
467
 
 
468
  msgid "Media Manager Order"
469
  msgstr ""
470
 
 
471
  msgid "Attachment Display Settings"
472
  msgstr ""
473
 
 
474
  msgid "Media Manager Apply Display Settings"
475
  msgstr ""
476
 
 
477
  msgid ""
478
  "Check this option to always start with the Attachment Display Settings set "
479
  "here,<br>&nbsp;&nbsp;overriding browser-/cookie-based defaults."
480
  msgstr ""
481
 
 
 
482
  msgid "Alignment"
483
  msgstr ""
484
 
485
  #. translators: 1: option name, e.g., Alignment, Link To or Size
 
 
 
486
  #, php-format
487
  msgid ""
488
  "Select a value for the default %1$s option in the Attachment Display "
489
  "Settings."
490
  msgstr ""
491
 
 
492
  msgid "Left"
493
  msgstr ""
494
 
 
495
  msgid "Center"
496
  msgstr ""
497
 
 
498
  msgid "Right"
499
  msgstr ""
500
 
 
 
501
  msgid "Link To"
502
  msgstr ""
503
 
 
504
  msgid "Media File"
505
  msgstr ""
506
 
 
507
  msgid "Attachment Page"
508
  msgstr ""
509
 
 
510
  msgid "Custom URL"
511
  msgstr ""
512
 
 
 
513
  msgid "Size"
514
  msgstr ""
515
 
 
 
 
516
  msgid "Thumbnail"
517
  msgstr ""
518
 
 
519
  msgid "Medium"
520
  msgstr ""
521
 
 
522
  msgid "Large"
523
  msgstr ""
524
 
 
525
  msgid "Full Size"
526
  msgstr ""
527
 
 
528
  msgid "Uninstall (Delete) Plugin Settings"
529
  msgstr ""
530
 
 
531
  msgid "Delete Option Settings"
532
  msgstr ""
533
 
 
534
  msgid ""
535
  "Check this option to remove all MLA option settings from the database when "
536
  "the plugin is deleted.<br>&nbsp;&nbsp;<strong>You can make a backup copy</"
537
  "strong> of your settings below by clicking \""
538
  msgstr ""
539
 
 
540
  msgid "Export ALL Settings"
541
  msgstr ""
542
 
 
543
  msgid "Delete Option Settings Backups"
544
  msgstr ""
545
 
 
546
  msgid ""
547
  "Check this option to remove the <code>/wp-content/mla-backup</code> "
548
  "directory and its contents when the plugin is deleted."
549
  msgstr ""
550
 
 
551
  msgid "Default [mla_gallery] Templates and Settings"
552
  msgstr ""
553
 
 
 
 
 
 
 
 
554
  msgid "Style Template"
555
  msgstr ""
556
 
557
  #. translators: 1: template type 2: shortcode
 
 
 
 
558
  #, php-format
559
  msgid "Select the default %1$s for your %2$s shortcodes."
560
  msgstr ""
561
 
 
 
562
  msgid "Markup Template"
563
  msgstr ""
564
 
 
 
 
 
565
  msgid "markup template"
566
  msgstr ""
567
 
 
 
568
  msgid "Default columns"
569
  msgstr ""
570
 
 
571
  msgid ""
572
  "Enter the number of [mla_tag_cloud] columns; must be a positive integer."
573
  msgstr ""
574
 
 
 
575
  msgid "Default mla_margin"
576
  msgstr ""
577
 
 
 
578
  msgid ""
579
  "Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
580
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"none\" to "
581
  "remove the property entirely."
582
  msgstr ""
583
 
 
 
584
  msgid "Default mla_itemwidth"
585
  msgstr ""
586
 
 
 
587
  msgid ""
588
  "Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
589
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"calculate"
@@ -593,15 +918,19 @@ msgid ""
593
  "the property entirely."
594
  msgstr ""
595
 
 
596
  msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
597
  msgstr ""
598
 
 
599
  msgid "Thumbnail Substitution Support, mla_viewer"
600
  msgstr ""
601
 
 
602
  msgid "Enable thumbnail substitution"
603
  msgstr ""
604
 
 
605
  msgid ""
606
  "Check this option to allow the \"mla_viewer\" to generate thumbnail images "
607
  "for PDF documents. Thumbnails are generated dynamically, each time the item "
@@ -610,26 +939,32 @@ msgid ""
610
  "strong>"
611
  msgstr ""
612
 
 
613
  msgid "Enable Featured Images"
614
  msgstr ""
615
 
 
616
  msgid ""
617
  "Check this option to extend Featured Image support to all Media Library "
618
  "items. The Featured Image can be used as a thumbnail image for the item in "
619
  "an [mla_gallery] display."
620
  msgstr ""
621
 
 
622
  msgid "Enable Featured Image Generation"
623
  msgstr ""
624
 
 
625
  msgid ""
626
  "Check this option to enable the \"Thumbnail\" generation action in the Media/"
627
  "Assistant submenu Bulk Actions dropdown."
628
  msgstr ""
629
 
 
630
  msgid "Enable explicit Ghostscript check"
631
  msgstr ""
632
 
 
633
  msgid ""
634
  "Check this option to enable the explicit check for Ghostscript support "
635
  "required for thumbnail generation. If your Ghostscript software is in a non-"
@@ -638,18 +973,22 @@ msgid ""
638
  "leave this option checked unless you know it is safe to turn it off."
639
  msgstr ""
640
 
 
641
  msgid "Ghostscript path"
642
  msgstr ""
643
 
 
644
  msgid ""
645
  "If your &ldquo;gs&rdquo; executable is in a non-standard location, enter the "
646
  "full path and filename here, e.g., &ldquo;/usr/bin/gs&rdquo;. It will "
647
  "override the search for Ghostscript in other places."
648
  msgstr ""
649
 
 
650
  msgid "Enable custom field mapping when adding new media"
651
  msgstr ""
652
 
 
653
  msgid ""
654
  "Check this option to enable mapping when uploading new media (attachments)."
655
  "<br>&nbsp;&nbsp;Click Save Changes at the bottom of the screen if you change "
@@ -657,15 +996,19 @@ msgid ""
657
  "buttons on the bulk edit, single edit and settings screens."
658
  msgstr ""
659
 
 
660
  msgid "Enable custom field mapping when updating media metadata"
661
  msgstr ""
662
 
 
 
663
  msgid ""
664
  "Check this option to enable mapping when media (attachments) metadata is "
665
  "regenerated,<br>&nbsp;&nbsp;e.g., when the Media/Edit Media \"Edit Image\" "
666
  "functions are used."
667
  msgstr ""
668
 
 
669
  msgid ""
670
  "Update the custom field mapping values above, then click Save Changes to "
671
  "make the updates permanent.<br>You can also make temporary updates and click "
@@ -673,18 +1016,22 @@ msgid ""
673
  "saving any rule changes."
674
  msgstr ""
675
 
 
676
  msgid "Enable IPTC/EXIF Mapping when adding new media"
677
  msgstr ""
678
 
 
679
  msgid ""
680
  "Check this option to enable mapping when uploading new media (attachments)."
681
  "<br>&nbsp;&nbsp;Does NOT affect the operation of the \"Map\" buttons on the "
682
  "bulk edit, single edit and settings screens."
683
  msgstr ""
684
 
 
685
  msgid "Enable IPTC/EXIF Mapping when updating media metadata"
686
  msgstr ""
687
 
 
688
  msgid ""
689
  "Update the standard field mapping values above, then click <strong>Save "
690
  "Changes</strong> to make the updates permanent.<br>You can also make "
@@ -693,11 +1040,13 @@ msgid ""
693
  "changes."
694
  msgstr ""
695
 
 
696
  msgid ""
697
  "Update the taxonomy term mapping values above, then click <strong>Save "
698
  "Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
699
  msgstr ""
700
 
 
701
  msgid ""
702
  "<strong>Update</strong> individual custom field mapping values above, or "
703
  "make several updates and click <strong>Save Changes</strong> below to apply "
@@ -708,419 +1057,567 @@ msgid ""
708
  "changes."
709
  msgstr ""
710
 
 
711
  msgid "IPTC/EXIF Mapping help"
712
  msgstr ""
713
 
 
 
714
  msgid "Name/Slug"
715
  msgstr ""
716
 
 
 
 
 
 
717
  msgid "ALT Text"
718
  msgstr ""
719
 
 
 
 
 
 
720
  msgid "Caption"
721
  msgstr ""
722
 
 
 
 
 
 
 
 
723
  msgid "Description"
724
  msgstr ""
725
 
 
726
  msgid "Enable View and Post MIME Type Support"
727
  msgstr ""
728
 
 
729
  msgid ""
730
  "Check/uncheck this option to enable/disable Post MIME Type Support, then "
731
  "click <strong>Save Changes</strong> to record the new setting."
732
  msgstr ""
733
 
 
734
  msgid "Post MIME Types help."
735
  msgstr ""
736
 
 
 
737
  msgctxt "table_view_singular"
738
  msgid "All"
739
  msgstr ""
740
 
 
 
741
  msgctxt "table_view_plural"
742
  msgid "All"
743
  msgstr ""
744
 
 
 
 
 
745
  msgctxt "post_mime_types_description"
746
  msgid "Built-in view"
747
  msgstr ""
748
 
 
749
  msgctxt "table_view_singular"
750
  msgid "Image"
751
  msgstr ""
752
 
 
753
  msgctxt "table_view_plural"
754
  msgid "Images"
755
  msgstr ""
756
 
 
757
  msgctxt "post_mime_types_description"
758
  msgid "All image subtypes"
759
  msgstr ""
760
 
 
761
  msgctxt "table_view_singular"
762
  msgid "Audio"
763
  msgstr ""
764
 
 
765
  msgctxt "table_view_plural"
766
  msgid "Audio"
767
  msgstr ""
768
 
 
769
  msgctxt "post_mime_types_description"
770
  msgid "All audio subtypes"
771
  msgstr ""
772
 
 
773
  msgctxt "table_view_singular"
774
  msgid "Video"
775
  msgstr ""
776
 
 
777
  msgctxt "table_view_plural"
778
  msgid "Video"
779
  msgstr ""
780
 
 
781
  msgctxt "post_mime_types_description"
782
  msgid "All video subtypes"
783
  msgstr ""
784
 
 
785
  msgctxt "table_view_singular"
786
  msgid "Text"
787
  msgstr ""
788
 
 
789
  msgctxt "table_view_plural"
790
  msgid "Text"
791
  msgstr ""
792
 
 
793
  msgctxt "post_mime_types_description"
794
  msgid "All text subtypes"
795
  msgstr ""
796
 
 
797
  msgctxt "table_view_singular"
798
  msgid "Application"
799
  msgstr ""
800
 
 
801
  msgctxt "table_view_plural"
802
  msgid "Applications"
803
  msgstr ""
804
 
 
805
  msgctxt "post_mime_types_description"
806
  msgid "All application subtypes"
807
  msgstr ""
808
 
 
 
809
  msgctxt "table_view_singular"
810
  msgid "Unattached"
811
  msgstr ""
812
 
 
813
  msgctxt "table_view_plural"
814
  msgid "Unattached"
815
  msgstr ""
816
 
 
817
  msgctxt "table_view_singular"
818
  msgid "Attached"
819
  msgstr ""
820
 
 
821
  msgctxt "table_view_plural"
822
  msgid "Attached"
823
  msgstr ""
824
 
 
825
  msgctxt "table_view_singular"
826
  msgid "Trash"
827
  msgstr ""
828
 
 
829
  msgctxt "table_view_plural"
830
  msgid "Trash"
831
  msgstr ""
832
 
 
833
  msgid "Enable Upload MIME Type Support"
834
  msgstr ""
835
 
 
836
  msgid ""
837
  "Check/uncheck this option to enable/disable Upload MIME Type Support, then "
838
  "click <strong>Save Changes</strong> to record the new setting."
839
  msgstr ""
840
 
 
841
  msgid "Upload MIME Types help."
842
  msgstr ""
843
 
 
844
  msgid "Enable MLA File Type Icons Support"
845
  msgstr ""
846
 
 
847
  msgid ""
848
  "Check/uncheck this option to enable/disable MLA File Type Icons Support, "
849
  "then click <strong>Save Changes</strong> to record the new setting."
850
  msgstr ""
851
 
 
852
  msgid "Display Limit"
853
  msgstr ""
854
 
 
855
  msgid ""
856
  "Enter the maximum number of debug log characters to display; enter zero or "
857
  "leave blank for no limit."
858
  msgstr ""
859
 
 
860
  msgid "Debug File"
861
  msgstr ""
862
 
 
863
  msgid ""
864
  "Enter the name of an alternate, MLA-specific debug log file; leave blank to "
865
  "use the PHP error_log."
866
  msgstr ""
867
 
 
868
  msgid "Replace PHP error_log file"
869
  msgstr ""
870
 
 
871
  msgid ""
872
  "Check this option to replace the PHP error_log file with the MLA Debug File."
873
  "<br>&nbsp;&nbsp;allows capture of PHP messages in the MLA Debug File."
874
  msgstr ""
875
 
 
876
  msgid "PHP Reporting"
877
  msgstr ""
878
 
 
879
  msgid ""
880
  "Enter a numeric error_reporting value, e.g., 0x7FFF or 32767; leave blank to "
881
  "use the existing PHP error_reporting value."
882
  msgstr ""
883
 
 
884
  msgid "MLA Reporting"
885
  msgstr ""
886
 
 
887
  msgid ""
888
  "Enter a numeric MLA_DEBUG_LEVEL value, e.g., 0x0003 or 3; leave blank to use "
889
  "the existing MLA_DEBUG_LEVEL value."
890
  msgstr ""
891
 
892
  #. translators: 1: ERROR tag 2: path and file name
 
893
  #, php-format
894
  msgctxt "error_log"
895
  msgid "%1$s: mla_load_template file \"%2$s\" not found."
896
  msgstr ""
897
 
898
  #. translators: 1: ERROR tag 2: path and file name 3: source type, e.g., file, option, string
 
899
  #, php-format
900
  msgctxt "error_log"
901
  msgid "%1$s: mla_load_template file \"%2$s\" bad source type \"%3$s\"."
902
  msgstr ""
903
 
904
  #. translators: 1: ERROR tag 2: raw_mime_type
 
905
  #, php-format
906
  msgid "%1$s: Bad specification part \"%2$s\""
907
  msgstr ""
908
 
909
  #. translators: 1: ERROR tag 2: option, e.g., any, match, null
 
910
  #, php-format
911
  msgid "%1$s: Bad specification option \"%2$s\""
912
  msgstr ""
913
 
914
  #. translators: 1: ERROR tag 2: prefix, e.g., custom
 
915
  #, php-format
916
  msgid "%1$s: Bad specification prefix \"%2$s\""
917
  msgstr ""
918
 
 
919
  msgid "Most Used"
920
  msgstr ""
921
 
922
  #. translators: %s: add new taxonomy label
 
923
  #, php-format
924
  msgid "+ %s"
925
  msgstr ""
926
 
 
 
 
 
927
  msgid "Search"
928
  msgstr ""
929
 
930
  #. translators: 1: ERROR tag 2: index
 
931
  #, php-format
932
  msgctxt "error_log"
933
  msgid "%1$s: _build_pdf_indirect_objects bad value at $index = \"%2$d\"."
934
  msgstr ""
935
 
936
  #. translators: 1: ERROR tag 2: source offset 3: nest level
 
937
  #, php-format
938
  msgctxt "error_log"
939
  msgid "%1$s: _parse_pdf_dictionary offset = %2$d, nest = %3$d."
940
  msgstr ""
941
 
942
  #. translators: 1: ERROR tag 2: dictionary excerpt
 
943
  #, php-format
944
  msgctxt "error_log"
945
  msgid "%1$s: _parse_pdf_dictionary no end delimiter dump = %2$s."
946
  msgstr ""
947
 
948
  #. translators: 1: ERROR tag 2: entry name 3: value excerpt
 
949
  #, php-format
950
  msgctxt "error_log"
951
  msgid "%1$s: _parse_pdf_dictionary bad value [ %2$s ] dump = %3$s"
952
  msgstr ""
953
 
954
  #. translators: 1: ERROR tag 2: path and file
 
955
  #, php-format
956
  msgctxt "error_log"
957
  msgid "%1$s: File \"%2$s\", startxref not found."
958
  msgstr ""
959
 
 
960
  msgctxt "list_table_column"
961
  msgid "ID/Parent"
962
  msgstr ""
963
 
 
964
  msgctxt "list_table_column"
965
  msgid "Title/Name"
966
  msgstr ""
967
 
 
968
  msgctxt "list_table_column"
969
  msgid "Title"
970
  msgstr ""
971
 
 
972
  msgctxt "list_table_column"
973
  msgid "Name"
974
  msgstr ""
975
 
 
976
  msgctxt "list_table_column"
977
  msgid "Parent ID"
978
  msgstr ""
979
 
 
980
  msgctxt "list_table_column"
981
  msgid "Menu Order"
982
  msgstr ""
983
 
 
984
  msgctxt "list_table_column"
985
  msgid "Featured in"
986
  msgstr ""
987
 
 
988
  msgctxt "list_table_column"
989
  msgid "Inserted in"
990
  msgstr ""
991
 
 
992
  msgctxt "list_table_column"
993
  msgid "Gallery in"
994
  msgstr ""
995
 
 
996
  msgctxt "list_table_column"
997
  msgid "MLA Gallery in"
998
  msgstr ""
999
 
 
1000
  msgctxt "list_table_column"
1001
  msgid "ALT Text"
1002
  msgstr ""
1003
 
 
1004
  msgctxt "list_table_column"
1005
  msgid "Caption"
1006
  msgstr ""
1007
 
 
 
 
 
1008
  msgctxt "list_table_column"
1009
  msgid "Description"
1010
  msgstr ""
1011
 
 
 
 
1012
  msgctxt "list_table_column"
1013
  msgid "MIME Type"
1014
  msgstr ""
1015
 
 
1016
  msgctxt "list_table_column"
1017
  msgid "File URL"
1018
  msgstr ""
1019
 
 
1020
  msgctxt "list_table_column"
1021
  msgid "Base File"
1022
  msgstr ""
1023
 
 
1024
  msgctxt "list_table_column"
1025
  msgid "Date"
1026
  msgstr ""
1027
 
 
1028
  msgctxt "list_table_column"
1029
  msgid "Last Modified"
1030
  msgstr ""
1031
 
 
1032
  msgctxt "list_table_column"
1033
  msgid "Author"
1034
  msgstr ""
1035
 
 
1036
  msgctxt "list_table_column"
1037
  msgid "Attached to"
1038
  msgstr ""
1039
 
1040
  #. translators: 1: ERROR tag 2: function name 3: non-array value
 
 
 
 
 
 
1041
  #, php-format
1042
  msgctxt "error_log"
1043
  msgid "%1$s: %2$s non-array \"%3$s\""
1044
  msgstr ""
1045
 
1046
  #. translators: 1: DEBUG tag 2: query filter details
 
1047
  #, php-format
1048
  msgctxt "error_log"
1049
  msgid "%1$s: _execute_list_table_query $wp_filter = \"%2$s\"."
1050
  msgstr ""
1051
 
 
 
 
 
 
 
 
 
 
1052
  msgid "DEBUG"
1053
  msgstr ""
1054
 
1055
  #. translators: 1: DEBUG tag 2: query details
 
1056
  #, php-format
1057
  msgctxt "error_log"
1058
  msgid "%1$s: _execute_list_table_query WP_Query = \"%2$s\"."
1059
  msgstr ""
1060
 
1061
  #. translators: 1: DEBUG tag 2: SQL statement
 
1062
  #, php-format
1063
  msgctxt "error_log"
1064
  msgid "%1$s: _execute_list_table_query SQL_request = \"%2$s\"."
1065
  msgstr ""
1066
 
1067
  #. translators: 1: DEBUG tag 2: search filter details
 
1068
  #, php-format
1069
  msgctxt "error_log"
1070
  msgid "%1$s: mla_query_posts_search_filter = \"%2$s\"."
1071
  msgstr ""
1072
 
1073
  #. translators: 1: DEBUG tag 2: where filter details
 
1074
  #, php-format
1075
  msgctxt "error_log"
1076
  msgid "%1$s: mla_query_posts_where_filter = \"%2$s\"."
1077
  msgstr ""
1078
 
1079
  #. translators: 1: DEBUG tag 2: join filter details
 
1080
  #, php-format
1081
  msgctxt "error_log"
1082
  msgid "%1$s: mla_query_posts_join_filter = \"%2$s\"."
1083
  msgstr ""
1084
 
1085
  #. translators: 1: DEBUG tag 2: orderby details details
 
1086
  #, php-format
1087
  msgctxt "error_log"
1088
  msgid "%1$s: mla_query_posts_orderby_filter = \"%2$s\"."
1089
  msgstr ""
1090
 
1091
  #. translators: 1: DEBUG tag 2: SQL clauses
 
1092
  #, php-format
1093
  msgctxt "error_log"
1094
  msgid "%1$s: mla_query_posts_clauses_filter = \"%2$s\"."
1095
  msgstr ""
1096
 
1097
  #. translators: 1: DEBUG tag 2: SQL clauses
 
1098
  #, php-format
1099
  msgctxt "error_log"
1100
  msgid "%1$s: mla_query_posts_clauses_request_filter = \"%2$s\"."
1101
  msgstr ""
1102
 
 
 
 
1103
  msgid "NO REFERENCE TESTS"
1104
  msgstr ""
1105
 
 
 
 
 
1106
  msgid "ORPHAN"
1107
  msgstr ""
1108
 
 
 
1109
  msgid "UNUSED"
1110
  msgstr ""
1111
 
 
 
1112
  msgid "UNATTACHED"
1113
  msgstr ""
1114
 
 
 
1115
  msgid "INVALID PARENT"
1116
  msgstr ""
1117
 
1118
  #. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
 
1119
  #, php-format
1120
  msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
1121
  msgstr ""
1122
 
1123
  #. translators: 1: ERROR tag 2: template excerpt
 
1124
  #, php-format
1125
  msgctxt "error_log"
1126
  msgid ""
@@ -1128,6 +1625,7 @@ msgid ""
1128
  msgstr ""
1129
 
1130
  #. translators: 1: ERROR tag 2: template excerpt
 
1131
  #, php-format
1132
  msgctxt "error_log"
1133
  msgid ""
@@ -1135,33 +1633,39 @@ msgid ""
1135
  msgstr ""
1136
 
1137
  #. translators: 1: ERROR tag 2: template excerpt
 
1138
  #, php-format
1139
  msgctxt "error_log"
1140
  msgid "%1$s: mla_parse_template no end delimiter, tail = \"%2$s\"."
1141
  msgstr ""
1142
 
1143
  #. translators: 1: ERROR tag 2: template string
 
1144
  #, php-format
1145
  msgctxt "error_log"
1146
  msgid "%1$s: _find_test_substring no end delimiter, tail = \"%2$s\"."
1147
  msgstr ""
1148
 
 
1149
  msgid "Test; no closing parenthesis "
1150
  msgstr ""
1151
 
1152
  #. translators: 1: ERROR tag 2: node type, e.g., template
 
1153
  #, php-format
1154
  msgctxt "error_log"
1155
  msgid "%1$s: _evaluate_template_array_node unknown type \"%2$s\"."
1156
  msgstr ""
1157
 
1158
  #. translators: 1: ERROR tag 2: node type, e.g., template
 
1159
  #, php-format
1160
  msgctxt "error_log"
1161
  msgid "%1$s: _evaluate_template_node unknown type \"%2$s\"."
1162
  msgstr ""
1163
 
1164
  #. translators: 1: ERROR tag 2: template excerpt
 
1165
  #, php-format
1166
  msgctxt "error_log"
1167
  msgid ""
@@ -1170,37 +1674,52 @@ msgid ""
1170
  msgstr ""
1171
 
1172
  #. translators: 1: ERROR tag 2: post ID
 
1173
  #, php-format
1174
  msgctxt "error_log"
1175
  msgid "%1$s: mla_get_attachment_by_id(%2$d) not found."
1176
  msgstr ""
1177
 
1178
  #. translators: 1: ERROR tag 2: post ID 3: post_type
 
1179
  #, php-format
1180
  msgctxt "error_log"
1181
  msgid "%1$s: mla_get_attachment_by_id(%2$d) wrong post_type \"%3$s\"."
1182
  msgstr ""
1183
 
 
1184
  msgctxt "error_log"
1185
  msgid "mla_parse_xmp_metadata xml_parse_into_struct failed."
1186
  msgstr ""
1187
 
 
1188
  msgctxt "error_log"
1189
  msgid "mla_parse_xmp_metadata set option failed."
1190
  msgstr ""
1191
 
 
 
 
 
1192
  msgid "Yes"
1193
  msgstr ""
1194
 
 
 
 
 
 
1195
  msgid "No"
1196
  msgstr ""
1197
 
1198
  #. translators: 1: meta_key
 
1199
  #, php-format
1200
  msgid "Deleting %1$s"
1201
  msgstr ""
1202
 
1203
  #. translators: 1: ERROR tag 2: meta_key
 
1204
  #, php-format
1205
  msgid "%1$s: meta:%2$s not found"
1206
  msgstr ""
@@ -1208,348 +1727,538 @@ msgstr ""
1208
  #. translators: 1: meta_key 2: meta_value
1209
  #. translators: 1: meta_key 2: new_value
1210
  #. translators: 1: meta_key 2: meta_value
 
 
1211
  #, php-format
1212
  msgid "Adding %1$s = %2$s"
1213
  msgstr ""
1214
 
1215
  #. translators: 1: ERROR tag 2: meta_key
 
1216
  #, php-format
1217
  msgid "%1$s: Adding meta:%2$s; not found"
1218
  msgstr ""
1219
 
1220
  #. translators: 1: meta_key
 
1221
  #, php-format
1222
  msgid "Deleting Null meta:%1$s"
1223
  msgstr ""
1224
 
1225
  #. translators: 1: element name 2: old_value 3: new_value
 
 
 
 
 
 
 
1226
  #, php-format
1227
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
1228
  msgstr ""
1229
 
1230
  #. translators: 1: ERROR tag 2: meta_key
 
1231
  #, php-format
1232
  msgid "%1$s: Changing meta:%2$s; not found"
1233
  msgstr ""
1234
 
1235
  #. translators: 1: meta_key
 
1236
  #, php-format
1237
  msgid "Deleting old %1$s values"
1238
  msgstr ""
1239
 
1240
  #. translators: 1: meta_key 2: old_value 3: new_value 4: update count
 
1241
  #, php-format
1242
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
1243
  msgstr ""
1244
 
 
1245
  msgid "Could not retrieve Attachment."
1246
  msgstr ""
1247
 
1248
  #. translators: 1: ERROR tag 2: old_value
 
1249
  #, php-format
1250
  msgid "%1$s: Could not change Name/Slug \"%2$s\"; name already exists"
1251
  msgstr ""
1252
 
1253
  #. translators: 1: old_value
 
1254
  #, php-format
1255
  msgid "Deleting ALT Text, was \"%1$s\""
1256
  msgstr ""
1257
 
1258
  #. translators: 1: ERROR tag 2: old_value
 
1259
  #, php-format
1260
  msgid "%1$s: Could not delete ALT Text, remains \"%2$s\""
1261
  msgstr ""
1262
 
1263
  #. translators: 1: ERROR tag 2: old_value 3: new_value
 
1264
  #, php-format
1265
  msgid "%1$s: Could not change ALT Text from \"%2$s\" to \"%3$s\""
1266
  msgstr ""
1267
 
 
 
 
 
1268
  msgid "Parent"
1269
  msgstr ""
1270
 
 
 
 
1271
  msgid "Menu Order"
1272
  msgstr ""
1273
 
 
 
 
 
1274
  msgid "Author"
1275
  msgstr ""
1276
 
 
 
1277
  msgid "Comments"
1278
  msgstr ""
1279
 
 
 
1280
  msgid "Pings"
1281
  msgstr ""
1282
 
 
1283
  msgid "Adding"
1284
  msgstr ""
1285
 
 
1286
  msgid "Removing"
1287
  msgstr ""
1288
 
 
1289
  msgid "Replacing"
1290
  msgstr ""
1291
 
 
1292
  msgid "Ignoring"
1293
  msgstr ""
1294
 
1295
  #. translators: 1: action_name, 2: taxonomy
 
1296
  #, php-format
1297
  msgid "%1$s \"%2$s\" terms"
1298
  msgstr ""
1299
 
1300
  #. translators: 1: taxonomy
 
1301
  #, php-format
1302
  msgid "You cannot assign \"%1$s\" terms"
1303
  msgstr ""
1304
 
1305
  #. translators: 1: post ID
 
1306
  #, php-format
1307
  msgid "Item %1$d, no changes detected."
1308
  msgstr ""
1309
 
1310
  #. translators: 1: post ID
 
1311
  #, php-format
1312
  msgid "Item %1$d updated."
1313
  msgstr ""
1314
 
1315
  #. translators: 1: ERROR tag 2: post ID
 
1316
  #, php-format
1317
  msgid "%1$s: Item %2$d update failed."
1318
  msgstr ""
1319
 
 
 
 
 
 
 
 
1320
  msgctxt "tag_delimiter"
1321
  msgid ","
1322
  msgstr ""
1323
 
 
1324
  msgid "Upload New Media items"
1325
  msgstr ""
1326
 
 
1327
  msgid "Open Bulk Edit area"
1328
  msgstr ""
1329
 
 
1330
  msgid "Close Bulk Edit area"
1331
  msgstr ""
1332
 
 
 
1333
  msgid "An ajax.fail error has occurred. Please reload the page and try again."
1334
  msgstr ""
1335
 
 
 
1336
  msgid "An ajax.done error has occurred. Please reload the page and try again."
1337
  msgstr ""
1338
 
 
1339
  msgid "more"
1340
  msgstr ""
1341
 
 
1342
  msgid "less"
1343
  msgstr ""
1344
 
 
 
1345
  msgid "Add"
1346
  msgstr ""
1347
 
 
 
1348
  msgid "Remove"
1349
  msgstr ""
1350
 
 
 
 
 
 
 
1351
  msgid "Replace"
1352
  msgstr ""
1353
 
 
1354
  msgid ""
1355
  "IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help "
1356
  "menu for more information."
1357
  msgstr ""
1358
 
 
 
1359
  msgid "Reset"
1360
  msgstr ""
1361
 
 
 
 
1362
  msgid "No Change"
1363
  msgstr ""
1364
 
 
1365
  msgid "Allow"
1366
  msgstr ""
1367
 
 
1368
  msgid "Do not allow"
1369
  msgstr ""
1370
 
 
 
1371
  msgid "Parent ID"
1372
  msgstr ""
1373
 
 
 
 
1374
  msgid "Select"
1375
  msgstr ""
1376
 
 
1377
  msgid "Custom field mapping updated."
1378
  msgstr ""
1379
 
 
1380
  msgid "IPTC/EXIF mapping updated."
1381
  msgstr ""
1382
 
1383
  #. translators: date_i18n format for last modified date and time
 
1384
  msgid "M j, Y @ G:i"
1385
  msgstr ""
1386
 
 
1387
  msgid "Last modified"
1388
  msgstr ""
1389
 
 
1390
  msgid "Map Custom Field metadata for this item"
1391
  msgstr ""
1392
 
 
 
1393
  msgid "Map Custom Field metadata"
1394
  msgstr ""
1395
 
 
1396
  msgid "Map IPTC/EXIF metadata for this item"
1397
  msgstr ""
1398
 
 
 
1399
  msgid "Map IPTC/EXIF metadata"
1400
  msgstr ""
1401
 
 
1402
  msgid "Parent Info"
1403
  msgstr ""
1404
 
 
1405
  msgid "Attachment Metadata"
1406
  msgstr ""
1407
 
1408
  #. translators: 1: ERROR tag 2: function name 3: template key
 
 
1409
  #, php-format
1410
  msgctxt "error_log"
1411
  msgid "%1$s: %2$s discarding \"%3$s\"; no title/order"
1412
  msgstr ""
1413
 
 
1414
  msgctxt "post state"
1415
  msgid "Pending"
1416
  msgstr ""
1417
 
 
1418
  msgid "Post Parent"
1419
  msgstr ""
1420
 
 
1421
  msgid "Select Parent"
1422
  msgstr ""
1423
 
 
 
 
 
 
 
1424
  msgid "PARENT"
1425
  msgstr ""
1426
 
 
1427
  msgid "All"
1428
  msgstr ""
1429
 
 
 
 
1430
  msgid "List View"
1431
  msgstr ""
1432
 
 
 
 
 
 
 
1433
  msgid "Filter by"
1434
  msgstr ""
1435
 
 
 
1436
  msgid "Not Supported"
1437
  msgstr ""
1438
 
1439
  #. translators: 1: column_name 2: column_values
 
 
 
 
1440
  #, php-format
1441
  msgid "column_default: %1$s, %2$s"
1442
  msgstr ""
1443
 
 
 
 
 
 
 
 
 
 
 
 
 
1444
  msgid "Edit"
1445
  msgstr ""
1446
 
 
 
1447
  msgid "Trash"
1448
  msgstr ""
1449
 
 
1450
  msgid "Restore this item from the Trash"
1451
  msgstr ""
1452
 
 
1453
  msgid "Restore"
1454
  msgstr ""
1455
 
 
 
 
1456
  msgid "Edit this item"
1457
  msgstr ""
1458
 
 
 
 
1459
  msgid "Edit this item inline"
1460
  msgstr ""
1461
 
 
 
 
 
1462
  msgid "Quick Edit"
1463
  msgstr ""
1464
 
 
1465
  msgid "Move this item to the Trash"
1466
  msgstr ""
1467
 
 
1468
  msgid "Move to Trash"
1469
  msgstr ""
1470
 
 
 
 
1471
  msgid "Delete this item Permanently"
1472
  msgstr ""
1473
 
 
 
 
 
 
1474
  msgid "Delete Permanently"
1475
  msgstr ""
1476
 
 
1477
  msgid "Download"
1478
  msgstr ""
1479
 
 
1480
  msgid "View"
1481
  msgstr ""
1482
 
 
1483
  msgid "(no title: bad ID)"
1484
  msgstr ""
1485
 
 
 
1486
  msgid "MIME Type"
1487
  msgstr ""
1488
 
 
1489
  msgid "Base File"
1490
  msgstr ""
1491
 
 
 
1492
  msgid "Unpublished"
1493
  msgstr ""
1494
 
1495
  #. translators: 1: upload/last modified date and time
 
 
1496
  #, php-format
1497
  msgid "%1$s from now"
1498
  msgstr ""
1499
 
1500
  #. translators: 1: upload/last modified date and time
 
 
1501
  #, php-format
1502
  msgid "%1$s ago"
1503
  msgstr ""
1504
 
 
1505
  msgid "Set Parent"
1506
  msgstr ""
1507
 
 
1508
  msgctxt "uploaded files"
1509
  msgid "All"
1510
  msgid_plural "All"
1511
  msgstr[0] ""
1512
  msgstr[1] ""
1513
 
 
1514
  msgid "Filter"
1515
  msgstr ""
1516
 
 
 
1517
  msgid "Terms Search"
1518
  msgstr ""
1519
 
 
 
 
1520
  msgid "Clear Filter-by"
1521
  msgstr ""
1522
 
 
1523
  msgid "Empty Trash"
1524
  msgstr ""
1525
 
 
1526
  msgid "Error while saving the changes."
1527
  msgstr ""
1528
 
 
1529
  msgid "Remove From Bulk Edit"
1530
  msgstr ""
1531
 
 
1532
  msgid "Bulk Edit items"
1533
  msgstr ""
1534
 
 
 
1535
  msgid "Waiting"
1536
  msgstr ""
1537
 
 
 
1538
  msgid "Complete"
1539
  msgstr ""
1540
 
 
1541
  msgid "Unchanged"
1542
  msgstr ""
1543
 
 
1544
  msgid "Succeeded"
1545
  msgstr ""
1546
 
 
1547
  msgid "Failed"
1548
  msgstr ""
1549
 
 
1550
  msgid "CANCELED"
1551
  msgstr ""
1552
 
 
1553
  #, php-format
1554
  msgid "Item permanently deleted."
1555
  msgid_plural "%d items permanently deleted."
@@ -1557,33 +2266,42 @@ msgstr[0] ""
1557
  msgstr[1] ""
1558
 
1559
  #. translators: 1: post ID
 
1560
  #, php-format
1561
  msgid "Item %1$d moved to Trash."
1562
  msgstr ""
1563
 
 
1564
  msgid "Entries per page"
1565
  msgstr ""
1566
 
 
1567
  msgid "You are not allowed to edit Attachment: "
1568
  msgstr ""
1569
 
1570
  #. translators: 1: ERROR tag 2: bulk action
 
1571
  #, php-format
1572
  msgid "%1$s: Unknown bulk action %2$s"
1573
  msgstr ""
1574
 
 
1575
  msgid "no changes detected"
1576
  msgstr ""
1577
 
1578
  #. translators: 1: action name, e.g., edit
 
 
1579
  #, php-format
1580
  msgid "Bulk Action %1$s - no items selected."
1581
  msgstr ""
1582
 
 
1583
  msgid "You do not have permission to manage attachments."
1584
  msgstr ""
1585
 
1586
  #. translators: 1: number of items
 
1587
  #, php-format
1588
  msgctxt "deleted items"
1589
  msgid "%s item deleted."
@@ -1591,85 +2309,125 @@ msgid_plural "%s items deleted."
1591
  msgstr[0] ""
1592
  msgstr[1] ""
1593
 
 
1594
  msgid "No items deleted."
1595
  msgstr ""
1596
 
 
1597
  msgid "Empty Terms Search; ignored"
1598
  msgstr ""
1599
 
1600
  #. translators: 1: row-level action, e.g., single_item_delete, single_item_edit
1601
  #. translators: 1: bulk_action, e.g., single_item_delete, single_item_edit
 
 
1602
  #, php-format
1603
  msgid "Unknown mla_admin_action - \"%1$s\""
1604
  msgstr ""
1605
 
 
1606
  msgid "term search results for"
1607
  msgstr ""
1608
 
 
1609
  msgid "post/parent results for"
1610
  msgstr ""
1611
 
 
1612
  msgid "search results for"
1613
  msgstr ""
1614
 
 
 
 
 
1615
  msgid "Update"
1616
  msgstr ""
1617
 
 
1618
  msgid "All Post Types"
1619
  msgstr ""
1620
 
 
1621
  msgid "For"
1622
  msgstr ""
1623
 
 
 
1624
  msgid "Unattached"
1625
  msgstr ""
1626
 
 
 
 
 
 
 
 
1627
  msgid "Cancel"
1628
  msgstr ""
1629
 
 
 
 
1630
  msgid "Bulk Edit"
1631
  msgstr ""
1632
 
 
1633
  msgid "In-process"
1634
  msgstr ""
1635
 
 
1636
  msgid "You are not allowed to delete this item."
1637
  msgstr ""
1638
 
1639
  #. translators: 1: ERROR tag 2: post ID
 
1640
  #, php-format
1641
  msgid "%1$s: Item %2$d could NOT be deleted."
1642
  msgstr ""
1643
 
1644
  #. translators: 1: post ID
 
1645
  #, php-format
1646
  msgid "Item %1$d permanently deleted."
1647
  msgstr ""
1648
 
 
1649
  msgid "You are not allowed to move this item out of the Trash."
1650
  msgstr ""
1651
 
1652
  #. translators: 1: ERROR tag 2: post ID
 
1653
  #, php-format
1654
  msgid "%1$s: Item %2$d could NOT be restored from Trash."
1655
  msgstr ""
1656
 
1657
  #. translators: 1: post ID
 
1658
  #, php-format
1659
  msgid "Item %1$d restored from Trash."
1660
  msgstr ""
1661
 
 
1662
  msgid "You are not allowed to move this item to the Trash."
1663
  msgstr ""
1664
 
1665
  #. translators: 1: ERROR tag 2: post ID
 
1666
  #, php-format
1667
  msgid "%1$s: Item %2$d could NOT be moved to Trash."
1668
  msgstr ""
1669
 
 
 
 
 
 
1670
  msgid "Click to toggle"
1671
  msgstr ""
1672
 
 
1673
  msgid "Tags"
1674
  msgstr ""
1675
 
@@ -1677,700 +2435,1024 @@ msgstr ""
1677
  #. translators: %s: add new taxonomy label
1678
  #. translators: %s: add new View
1679
  #. translators: %s: add new Upload MIME Type
 
 
 
1680
  #, php-format
1681
  msgid "Add New %1$s"
1682
  msgstr ""
1683
 
 
1684
  msgid "Choose from the most used tags"
1685
  msgstr ""
1686
 
 
1687
  msgid "Show all dates"
1688
  msgstr ""
1689
 
1690
  #. translators: 1: month name, 2: 4-digit year
 
1691
  #, php-format
1692
  msgid "%1$s %2$d"
1693
  msgstr ""
1694
 
 
1695
  msgid "Search Box"
1696
  msgstr ""
1697
 
 
1698
  msgid "Loading..."
1699
  msgstr ""
1700
 
 
 
1701
  msgid "Search Terms"
1702
  msgstr ""
1703
 
 
1704
  msgid "There are no taxonomies to search"
1705
  msgstr ""
1706
 
 
1707
  msgid "All phrases"
1708
  msgstr ""
1709
 
 
1710
  msgid "Any phrase"
1711
  msgstr ""
1712
 
 
1713
  msgid "All terms"
1714
  msgstr ""
1715
 
 
1716
  msgid "Any term"
1717
  msgstr ""
1718
 
 
1719
  msgid "Exact"
1720
  msgstr ""
1721
 
 
1722
  msgctxt "post_mime_types"
1723
  msgid "Manage"
1724
  msgstr ""
1725
 
 
1726
  msgctxt "post_mime_types_description"
1727
  msgid "Copied from previous filter/plugin"
1728
  msgstr ""
1729
 
 
1730
  msgid "Ignoring specification for Post MIME Type; using slug"
1731
  msgstr ""
1732
 
1733
  #. translators: 1: element name 2: bad_value 3: good_value
 
1734
  #, php-format
1735
  msgid "<br>Changing %1$s \"%2$s\" to valid value \"%3$s\""
1736
  msgstr ""
1737
 
 
 
 
1738
  msgid "Slug"
1739
  msgstr ""
1740
 
1741
  #. translators: 1: ERROR tag 2: slug
 
1742
  #, php-format
1743
  msgid "%1$s: Could not add Slug \"%2$s\"; value already exists"
1744
  msgstr ""
1745
 
1746
  #. translators: 1: slug
 
1747
  #, php-format
1748
  msgid "Edit view \"%1$s\"; added"
1749
  msgstr ""
1750
 
1751
  #. translators: 1: element name 2: bad_value 3: good_value
 
1752
  #, php-format
1753
  msgid "<br>Changing new %1$s \"%2$s\" to valid value \"%3$s\""
1754
  msgstr ""
1755
 
1756
  #. translators: 1: slug
 
1757
  #, php-format
1758
  msgid "Edit view \"%1$s\"; no changes detected"
1759
  msgstr ""
1760
 
1761
  #. translators: 1: slug
 
1762
  #, php-format
1763
  msgid "Edit view \"%1$s\"; updated"
1764
  msgstr ""
1765
 
1766
  #. translators: 1: slug
 
1767
  #, php-format
1768
  msgid "View \"%1$s\" reverted to standard"
1769
  msgstr ""
1770
 
1771
  #. translators: 1: slug
 
1772
  #, php-format
1773
  msgid "View \"%1$s\" deleted"
1774
  msgstr ""
1775
 
1776
  #. translators: 1: ERROR tag 2: slug
 
1777
  #, php-format
1778
  msgid "%1$s: Did not find view \"%2$s\""
1779
  msgstr ""
1780
 
 
1781
  msgctxt "table_view_singular"
1782
  msgid "Active"
1783
  msgstr ""
1784
 
 
1785
  msgctxt "table_view_plural"
1786
  msgid "Active"
1787
  msgstr ""
1788
 
 
1789
  msgctxt "table_view_singular"
1790
  msgid "Inactive"
1791
  msgstr ""
1792
 
 
1793
  msgctxt "table_view_plural"
1794
  msgid "Inactive"
1795
  msgstr ""
1796
 
 
1797
  msgctxt "table_view_singular"
1798
  msgid "WordPress"
1799
  msgstr ""
1800
 
 
1801
  msgctxt "table_view_plural"
1802
  msgid "WordPress"
1803
  msgstr ""
1804
 
 
1805
  msgctxt "table_view_singular"
1806
  msgid "MLA"
1807
  msgstr ""
1808
 
 
1809
  msgctxt "table_view_plural"
1810
  msgid "MLA"
1811
  msgstr ""
1812
 
 
1813
  msgctxt "table_view_singular"
1814
  msgid "Custom"
1815
  msgstr ""
1816
 
 
1817
  msgctxt "table_view_plural"
1818
  msgid "Custom"
1819
  msgstr ""
1820
 
 
1821
  msgid "icon"
1822
  msgstr ""
1823
 
 
 
1824
  msgid "Cannot load Upload MIME Types"
1825
  msgstr ""
1826
 
 
1827
  msgid "Extension is required"
1828
  msgstr ""
1829
 
 
 
 
 
1830
  msgid "Extension"
1831
  msgstr ""
1832
 
1833
  #. translators: 1: ERROR tag 2: slug
 
1834
  #, php-format
1835
  msgid "%1$s: Could not add extension \"%2$s\"; value already exists"
1836
  msgstr ""
1837
 
 
1838
  msgid "MIME type is required"
1839
  msgstr ""
1840
 
1841
  #. translators: 1: ERROR tag 2: clean_mime_type
 
 
1842
  #, php-format
1843
  msgid "%1$s: Bad MIME type; try \"%2$s\""
1844
  msgstr ""
1845
 
1846
  #. translators: 1: slug
 
1847
  #, php-format
1848
  msgid "Upload MIME Type \"%1$s\"; added"
1849
  msgstr ""
1850
 
 
 
 
1851
  msgid "Cannot update Upload MIME Types"
1852
  msgstr ""
1853
 
1854
  #. translators: 1: ERROR tag 2: slug
 
1855
  #, php-format
1856
  msgid "%1$s: Could not add new extension \"%2$s\"; value already exists"
1857
  msgstr ""
1858
 
1859
  #. translators: 1: slug
 
1860
  #, php-format
1861
  msgid "Edit type \"%1$s\"; no changes detected"
1862
  msgstr ""
1863
 
1864
  #. translators: 1: slug
 
1865
  #, php-format
1866
  msgid "Edit type \"%1$s\"; updated"
1867
  msgstr ""
1868
 
1869
  #. translators: 1: slug
 
1870
  #, php-format
1871
  msgid "Upload MIME Type \"%1$s\"; reverted to standard"
1872
  msgstr ""
1873
 
1874
  #. translators: 1: slug
 
1875
  #, php-format
1876
  msgid "Upload MIME Type \"%1$s\"; deleted"
1877
  msgstr ""
1878
 
1879
  #. translators: 1: ERROR tag 2: slug
 
1880
  #, php-format
1881
  msgid "%1$s: Did not find Upload type \"%2$s\""
1882
  msgstr ""
1883
 
 
1884
  msgctxt "taxonomy_name_plural"
1885
  msgid "Att. Categories"
1886
  msgstr ""
1887
 
 
1888
  msgctxt "taxonomy_name_singular"
1889
  msgid "Att. Category"
1890
  msgstr ""
1891
 
 
1892
  msgid "Search Att. Categories"
1893
  msgstr ""
1894
 
 
1895
  msgid "All Att. Categories"
1896
  msgstr ""
1897
 
 
1898
  msgid "Parent Att. Category"
1899
  msgstr ""
1900
 
 
1901
  msgid "Edit Att. Category"
1902
  msgstr ""
1903
 
 
1904
  msgid "Update Att. Category"
1905
  msgstr ""
1906
 
 
1907
  msgid "Att. Category"
1908
  msgstr ""
1909
 
 
1910
  msgid "New Att. Category Name"
1911
  msgstr ""
1912
 
 
1913
  msgctxt "taxonomy_name_plural"
1914
  msgid "Att. Tags"
1915
  msgstr ""
1916
 
 
1917
  msgctxt "taxonomy_name_singular"
1918
  msgid "Att. Tag"
1919
  msgstr ""
1920
 
 
1921
  msgid "Search Att. Tags"
1922
  msgstr ""
1923
 
 
1924
  msgid "All Att. Tags"
1925
  msgstr ""
1926
 
 
1927
  msgid "Parent Att. Tag"
1928
  msgstr ""
1929
 
 
1930
  msgid "Edit Att. Tag"
1931
  msgstr ""
1932
 
 
1933
  msgid "Update Att. Tag"
1934
  msgstr ""
1935
 
 
1936
  msgid "Att. Tag"
1937
  msgstr ""
1938
 
 
1939
  msgid "New Att. Tag Name"
1940
  msgstr ""
1941
 
 
1942
  msgid "Attachments"
1943
  msgstr ""
1944
 
1945
  #. translators: 1: ERROR tag 2: taxonomy 3: error message
 
1946
  #, php-format
1947
  msgctxt "error_log"
1948
  msgid ""
1949
  "%1$s: mla_taxonomy_column_filter( \"%2$s\" ) - get_term failed: \"%3$s\""
1950
  msgstr ""
1951
 
 
1952
  msgid "click to search"
1953
  msgstr ""
1954
 
 
1955
  msgid "Shortcode(s), HTML and/or Plain Text"
1956
  msgstr ""
1957
 
 
1958
  msgid "MLA Text"
1959
  msgstr ""
1960
 
 
1961
  msgid "Automatically add paragraphs"
1962
  msgstr ""
1963
 
 
1964
  msgid "error loading tpls/mla-option-templates.tpl"
1965
  msgstr ""
1966
 
 
1967
  msgid "tpls/mla-option-templates.tpl not found"
1968
  msgstr ""
1969
 
1970
- msgid "no templates exist"
1971
- msgstr ""
1972
-
1973
  #. translators: 1: ERROR tag 2: option name 3: action, e.g., update, delete, reset
 
 
 
1974
  #, php-format
1975
  msgid "%1$s: Custom %2$s unknown action \"%3$s\""
1976
  msgstr ""
1977
 
 
1978
  msgid "Support"
1979
  msgstr ""
1980
 
 
1981
  msgid "Inline Edit"
1982
  msgstr ""
1983
 
 
1984
  msgid "Term Search"
1985
  msgstr ""
1986
 
 
1987
  msgid "Checklist"
1988
  msgstr ""
1989
 
 
1990
  msgid "Checked On Top"
1991
  msgstr ""
1992
 
 
1993
  msgid "List Filter"
1994
  msgstr ""
1995
 
 
1996
  msgid "Taxonomy"
1997
  msgstr ""
1998
 
1999
  #. translators: 1: taxonomy name
 
2000
  #, php-format
2001
  msgid "List Filter ignored; %1$s not supported."
2002
  msgstr ""
2003
 
2004
  #. translators: 1: taxonomy name
 
2005
  #, php-format
2006
  msgid "Inline Edit ignored; %1$s not supported."
2007
  msgstr ""
2008
 
2009
  #. translators: 1: taxonomy name
 
2010
  #, php-format
2011
  msgid "Term Search ignored; %1$s not supported."
2012
  msgstr ""
2013
 
2014
  #. translators: 1: taxonomy name
 
2015
  #, php-format
2016
  msgid "Checklist ignored; %1$s not supported."
2017
  msgstr ""
2018
 
2019
  #. translators: 1: taxonomy name
 
2020
  #, php-format
2021
  msgid "Checked On Top ignored; %1$s not supported."
2022
  msgstr ""
2023
 
2024
  #. translators: 1: option name, e.g., taxonomy_support
 
2025
  #, php-format
2026
  msgid "Update custom %1$s"
2027
  msgstr ""
2028
 
2029
  #. translators: 1: option name, e.g., taxonomy_support
 
 
2030
  #, php-format
2031
  msgid "Reset custom %1$s"
2032
  msgstr ""
2033
 
 
 
 
2034
  msgid "and"
2035
  msgstr ""
2036
 
 
 
 
2037
  msgid "or"
2038
  msgstr ""
2039
 
 
 
 
 
 
 
2040
  msgid "Name"
2041
  msgstr ""
2042
 
 
 
 
2043
  msgid "Terms"
2044
  msgstr ""
2045
 
 
 
 
2046
  msgid "None (select a value)"
2047
  msgstr ""
2048
 
 
2049
  msgid "Metadata (see below)"
2050
  msgstr ""
2051
 
 
2052
  msgid "Template (see below)"
2053
  msgstr ""
2054
 
2055
  #. translators: 1: ERROR tag 2: custom field name
 
2056
  #, php-format
2057
  msgid "%1$s: New field %2$s already exists."
2058
  msgstr ""
2059
 
2060
  #. translators: 1: custom field name
 
2061
  #, php-format
2062
  msgid "Adding new field %1$s."
2063
  msgstr ""
2064
 
2065
  #. translators: 1: custom field name
 
2066
  #, php-format
2067
  msgid "Adding new rule for %1$s."
2068
  msgstr ""
2069
 
2070
  #. translators: 1: custom field name
 
 
2071
  #, php-format
2072
  msgid "Deleting rule for %1$s."
2073
  msgstr ""
2074
 
2075
  #. translators: 1: custom field name 2: attribute 3: old value 4: new value
 
 
 
 
 
 
 
 
2076
  #, php-format
2077
  msgid "%1$s changing %2$s from %3$s to %4$s."
2078
  msgstr ""
2079
 
 
2080
  msgid "Data Source"
2081
  msgstr ""
2082
 
 
 
2083
  msgid "Replace to Keep"
2084
  msgstr ""
2085
 
 
 
2086
  msgid "Keep to Replace"
2087
  msgstr ""
2088
 
2089
  #. translators: 1: custom field name 2: attribute 3: old value 'to' new value
 
 
 
 
 
 
2090
  #, php-format
2091
  msgid "%1$s changing %2$s value from %3$s."
2092
  msgstr ""
2093
 
 
 
 
 
2094
  msgid "Existing Text"
2095
  msgstr ""
2096
 
 
 
 
2097
  msgid "Format"
2098
  msgstr ""
2099
 
 
 
 
2100
  msgid "unchecked to checked"
2101
  msgstr ""
2102
 
 
 
 
2103
  msgid "checked to unchecked"
2104
  msgstr ""
2105
 
 
2106
  msgid "MLA Column"
2107
  msgstr ""
2108
 
 
2109
  msgid "Metavalue name"
2110
  msgstr ""
2111
 
 
 
 
 
2112
  msgid "Option"
2113
  msgstr ""
2114
 
 
 
 
 
2115
  msgid "Delete NULL values"
2116
  msgstr ""
2117
 
 
2118
  msgid "No Custom Field Mapping Rules Defined"
2119
  msgstr ""
2120
 
 
 
 
 
 
2121
  msgid "Keep"
2122
  msgstr ""
2123
 
 
 
 
2124
  msgid "Native"
2125
  msgstr ""
2126
 
 
 
 
2127
  msgid "Commas"
2128
  msgstr ""
2129
 
 
 
 
2130
  msgid "Raw"
2131
  msgstr ""
2132
 
 
 
 
2133
  msgid "Text"
2134
  msgstr ""
2135
 
 
 
 
2136
  msgid "Single"
2137
  msgstr ""
2138
 
 
 
 
2139
  msgid "Export"
2140
  msgstr ""
2141
 
 
 
 
2142
  msgid "Array"
2143
  msgstr ""
2144
 
 
 
 
2145
  msgid "Multi"
2146
  msgstr ""
2147
 
 
2148
  msgid "Delete Rule"
2149
  msgstr ""
2150
 
 
2151
  msgid "Delete Rule AND Field"
2152
  msgstr ""
2153
 
 
2154
  msgid "Update Rule"
2155
  msgstr ""
2156
 
 
 
2157
  msgid "Map All Attachments"
2158
  msgstr ""
2159
 
 
2160
  msgid "Add a new Mapping Rule"
2161
  msgstr ""
2162
 
 
2163
  msgid "Add Rule"
2164
  msgstr ""
2165
 
 
2166
  msgid "Add Rule and Map All Attachments"
2167
  msgstr ""
2168
 
 
2169
  msgid "Add a new Field and Mapping Rule"
2170
  msgstr ""
2171
 
 
2172
  msgid "Add Field"
2173
  msgstr ""
2174
 
 
2175
  msgid "Add Field and Map All Attachments"
2176
  msgstr ""
2177
 
 
 
 
2178
  msgid "Field Title"
2179
  msgstr ""
2180
 
 
2181
  msgid "Custom field mapping rules updated."
2182
  msgstr ""
2183
 
 
2184
  msgid "Custom field mapping rules update failed."
2185
  msgstr ""
2186
 
 
 
2187
  msgid "Custom field no mapping rule changes detected."
2188
  msgstr ""
2189
 
 
2190
  msgid "Custom field mapping settings saved."
2191
  msgstr ""
2192
 
 
2193
  msgid "Custom field mapping settings reset failed."
2194
  msgstr ""
2195
 
2196
  #. translators: 1: ERROR tag 2: custom field name
 
2197
  #, php-format
2198
  msgid "%1$s: No old values for %2$s."
2199
  msgstr ""
2200
 
 
 
 
2201
  msgid "IPTC Value"
2202
  msgstr ""
2203
 
 
 
2204
  msgid "EXIF Value"
2205
  msgstr ""
2206
 
 
 
2207
  msgid "EXIF to IPTC"
2208
  msgstr ""
2209
 
 
 
2210
  msgid "IPTC to EXIF"
2211
  msgstr ""
2212
 
 
 
 
2213
  msgid "Priority"
2214
  msgstr ""
2215
 
 
2216
  msgid "Delimiter(s)"
2217
  msgstr ""
2218
 
 
 
 
2219
  msgid "IPTC"
2220
  msgstr ""
2221
 
 
 
 
2222
  msgid "EXIF"
2223
  msgstr ""
2224
 
 
 
2225
  msgid "EXIF/Template Value"
2226
  msgstr ""
2227
 
2228
  #. translators: 1: ERROR tag 2: option name
 
2229
  #, php-format
2230
  msgid "%1$s: Render unknown custom %2$s."
2231
  msgstr ""
2232
 
2233
  #. translators: 1: ERROR tag 2: option name
 
2234
  #, php-format
2235
  msgid "%1$s: Update/delete unknown custom %2$s."
2236
  msgstr ""
2237
 
 
2238
  msgid "IPTC/EXIF mapping settings updated."
2239
  msgstr ""
2240
 
 
2241
  msgid "IPTC/EXIF settings update failed."
2242
  msgstr ""
2243
 
 
 
2244
  msgid "IPTC/EXIF no mapping changes detected."
2245
  msgstr ""
2246
 
2247
  #. translators: 1: field type
 
 
2248
  #, php-format
2249
  msgid "%1$s settings saved."
2250
  msgstr ""
2251
 
 
 
 
2252
  msgid "Standard field"
2253
  msgstr ""
2254
 
2255
  #. translators: 1: ERROR tag 2: field type
 
 
2256
  #, php-format
2257
  msgid "%1$s: IPTC/EXIF %2$s settings update failed."
2258
  msgstr ""
2259
 
 
 
 
2260
  msgid "Taxonomy term"
2261
  msgstr ""
2262
 
 
 
 
 
2263
  msgid "Custom field"
2264
  msgstr ""
2265
 
2266
  #. translators: 1: ERROR tag 2: option name, e.g., taxonomy_support
 
2267
  #, php-format
2268
  msgid "%1$s: Reset unknown custom %2$s"
2269
  msgstr ""
2270
 
 
2271
  msgid "ERROR: No post ID found"
2272
  msgstr ""
2273
 
 
2274
  msgid "Error while saving the translations."
2275
  msgstr ""
2276
 
 
2277
  msgid "Remove From Bulk Translate"
2278
  msgstr ""
2279
 
 
2280
  msgid "Bulk Translate items"
2281
  msgstr ""
2282
 
 
2283
  msgid "Add new"
2284
  msgstr ""
2285
 
 
 
 
2286
  msgid "Bulk Translations"
2287
  msgstr ""
2288
 
 
2289
  msgid "Translate"
2290
  msgstr ""
2291
 
 
2292
  msgid "All Languages"
2293
  msgstr ""
2294
 
 
 
 
2295
  msgid "Quick Translate"
2296
  msgstr ""
2297
 
 
2298
  msgid "Set Language"
2299
  msgstr ""
2300
 
 
 
2301
  msgid "Bulk Translate"
2302
  msgstr ""
2303
 
 
2304
  msgid "Add or Modify Translation"
2305
  msgstr ""
2306
 
 
 
 
 
 
 
 
2307
  msgid "Language"
2308
  msgstr ""
2309
 
 
 
2310
  msgid "Options"
2311
  msgstr ""
2312
 
 
2313
  msgid "Translate this item inline"
2314
  msgstr ""
2315
 
 
 
 
 
2316
  msgid "Media/Assistant submenu table"
2317
  msgstr ""
2318
 
 
 
2319
  msgid "Language Column"
2320
  msgstr ""
2321
 
 
 
2322
  msgid ""
2323
  "Check this option to add a Language column to the Media/Assistant submenu "
2324
  "table."
2325
  msgstr ""
2326
 
 
 
2327
  msgid "Translations Column"
2328
  msgstr ""
2329
 
 
 
2330
  msgid ""
2331
  "Check this option to add a Translation Status column to the Media/Assistant "
2332
  "submenu table."
2333
  msgstr ""
2334
 
 
2335
  msgid ""
2336
  "Check this option to add a Quick Translate rollover action to the Media/"
2337
  "Assistant submenu table."
2338
  msgstr ""
2339
 
 
2340
  msgid ""
2341
  "Check this option to add \"Translate\" to the \"Bulk Actions\" control on "
2342
  "the Media/Assistant submenu table."
2343
  msgstr ""
2344
 
 
 
 
 
2345
  msgid "Term Management"
2346
  msgstr ""
2347
 
 
 
2348
  msgid "Term Assignment"
2349
  msgstr ""
2350
 
 
 
2351
  msgid ""
2352
  "Check this option to assign language-specific terms when items are updated."
2353
  msgstr ""
2354
 
 
 
2355
  msgid "Term Synchronization"
2356
  msgstr ""
2357
 
 
 
2358
  msgid ""
2359
  "Check this option to synchronize common terms among all item translations."
2360
  msgstr ""
2361
 
 
 
2362
  msgid "Term Mapping Replication"
2363
  msgstr ""
2364
 
 
 
2365
  msgid ""
2366
  "When mapping IPTC/EXIF metadata to taxonomy terms, make them available in "
2367
  "all languages."
2368
  msgstr ""
2369
 
 
 
2370
  msgid "Language Options"
2371
  msgstr ""
2372
 
2373
  #. translators: 1: - 4: page subheader values
 
2374
  #, php-format
2375
  msgid ""
2376
  "In this tab you can find a number of options for controlling Polylang-"
@@ -2380,115 +3462,178 @@ msgid ""
2380
  msgstr ""
2381
 
2382
  #. translators: 1: Documentation hyperlink
 
 
2383
  #, php-format
2384
  msgid ""
2385
  "You can find more information about multilingual features in the %1$s "
2386
  "section of the Documentation."
2387
  msgstr ""
2388
 
 
 
2389
  msgid "Language Options documentation"
2390
  msgstr ""
2391
 
 
 
2392
  msgid "WPML &amp; Polylang Multilingual Support; the MLA Language Tab"
2393
  msgstr ""
2394
 
 
 
 
 
 
 
 
 
2395
  msgid "Save Changes"
2396
  msgstr ""
2397
 
 
 
2398
  msgid "Delete Language options and restore default settings"
2399
  msgstr ""
2400
 
 
 
 
 
 
2401
  msgid "Go to Top"
2402
  msgstr ""
2403
 
 
 
2404
  msgid "Language settings saved."
2405
  msgstr ""
2406
 
2407
  #. translators: 1: option name
 
 
 
2408
  #, php-format
2409
  msgctxt "message_list"
2410
  msgid "delete_option \"%1$s\""
2411
  msgstr ""
2412
 
 
 
2413
  msgid "Language settings reset to default values."
2414
  msgstr ""
2415
 
 
2416
  msgid "Error while making the changes."
2417
  msgstr ""
2418
 
 
2419
  msgid "no slug"
2420
  msgstr ""
2421
 
 
2422
  msgid "Running"
2423
  msgstr ""
2424
 
 
2425
  msgid "Skipped"
2426
  msgstr ""
2427
 
 
2428
  msgid "Reprocessed"
2429
  msgstr ""
2430
 
 
 
2431
  msgid "Settings"
2432
  msgstr ""
2433
 
 
2434
  msgid "Views per page"
2435
  msgstr ""
2436
 
 
2437
  msgid "Types per page"
2438
  msgstr ""
2439
 
 
2440
  msgid "Upload types per page"
2441
  msgstr ""
2442
 
 
2443
  msgid "No view slug found"
2444
  msgstr ""
2445
 
 
2446
  msgid "No upload slug found"
2447
  msgstr ""
2448
 
 
 
2449
  msgid "Map All Rules, All Attachments Now"
2450
  msgstr ""
2451
 
 
2452
  msgid "Map All Attachments, Standard Fields Now"
2453
  msgstr ""
2454
 
 
2455
  msgid "Map All Attachments, Taxonomy Terms Now"
2456
  msgstr ""
2457
 
 
2458
  msgid "Map All Attachments, Custom Fields Now"
2459
  msgstr ""
2460
 
2461
  #. translators: 1: ERROR tag 2: function name 3: option type, e.g., radio, select, text
 
 
2462
  #, php-format
2463
  msgctxt "error_log"
2464
  msgid "%1$s: %2$s unknown type = \"%3$s\""
2465
  msgstr ""
2466
 
 
 
 
 
 
 
 
2467
  msgid "General"
2468
  msgstr ""
2469
 
 
2470
  msgid "Views"
2471
  msgstr ""
2472
 
 
2473
  msgid "Uploads"
2474
  msgstr ""
2475
 
2476
- msgid "MLA Gallery"
 
 
2477
  msgstr ""
2478
 
 
2479
  msgid "Custom Fields"
2480
  msgstr ""
2481
 
 
2482
  msgid "Documentation"
2483
  msgstr ""
2484
 
 
2485
  msgid "Debug"
2486
  msgstr ""
2487
 
 
2488
  msgid "General Processing Options"
2489
  msgstr ""
2490
 
2491
  #. translators: 1: - 4: page subheader values
 
2492
  #, php-format
2493
  msgid ""
2494
  "In this tab you can find a number of options for controlling the "
@@ -2497,25 +3642,32 @@ msgid ""
2497
  "any changes you make."
2498
  msgstr ""
2499
 
 
2500
  msgid "Media/Assistant Table Defaults"
2501
  msgstr ""
2502
 
 
2503
  msgid "Media Manager Enhancements"
2504
  msgstr ""
2505
 
 
2506
  msgid "Delete General options and restore default settings"
2507
  msgstr ""
2508
 
 
2509
  msgid "Support Our Work"
2510
  msgstr ""
2511
 
 
2512
  msgid "Donate to FTJ"
2513
  msgstr ""
2514
 
 
2515
  msgid "Donate"
2516
  msgstr ""
2517
 
2518
  #. translators: 1: donation hyperlink
 
2519
  #, php-format
2520
  msgid ""
2521
  "This plugin was inspired by my work on the WordPress web site for our "
@@ -2524,21 +3676,37 @@ msgid ""
2524
  "our work. Thank you!"
2525
  msgstr ""
2526
 
 
2527
  msgid "tax-deductible donation"
2528
  msgstr ""
2529
 
 
2530
  msgid "enhanced version of the WordPress [gallery] shortcode."
2531
  msgstr ""
2532
 
 
2533
  msgid "enhanced version of the WordPress Tag Cloud."
2534
  msgstr ""
2535
 
 
 
 
 
 
 
 
 
 
 
 
2536
  msgid "Shortcodes made available by this plugin"
2537
  msgstr ""
2538
 
 
2539
  msgid "Edit View"
2540
  msgstr ""
2541
 
 
2542
  msgid ""
2543
  "The &#8220;slug&#8221; is the URL-friendly, unique key for the view. It must "
2544
  "be all lowercase and contain only letters, numbers, periods (.), slashes (/) "
@@ -2547,20 +3715,25 @@ msgid ""
2547
  "MIME</strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
2548
  msgstr ""
2549
 
 
2550
  msgid "Singular Label"
2551
  msgstr ""
2552
 
 
2553
  msgid "Plural Label"
2554
  msgstr ""
2555
 
 
2556
  msgid ""
2557
  "The labels, e.g., &#8220;Image&#8221; and &#8220;Images&#8221; are used for "
2558
  "column headers and other display purposes."
2559
  msgstr ""
2560
 
 
2561
  msgid "Specification"
2562
  msgstr ""
2563
 
 
2564
  msgid ""
2565
  "If the MIME type specification differs from the slug, enter it here. You may "
2566
  "include multiple MIME types, e.g., &#8220;audio,video&#8221; and/or wildcard "
@@ -2568,48 +3741,60 @@ msgid ""
2568
  "MIME Type box is checked."
2569
  msgstr ""
2570
 
 
2571
  msgid "Post MIME Type"
2572
  msgstr ""
2573
 
 
2574
  msgid ""
2575
  "Check this box if you want to add this entry to the list of MIME types "
2576
  "returned by wp_get_mime_types()."
2577
  msgstr ""
2578
 
 
2579
  msgid "Table View"
2580
  msgstr ""
2581
 
 
2582
  msgid ""
2583
  "Check this box if you want to add this entry to the list of Media/Assistant "
2584
  "table views."
2585
  msgstr ""
2586
 
 
2587
  msgid ""
2588
  "You can choose your own table view order by entering a number (1 for first, "
2589
  "etc.) in this field."
2590
  msgstr ""
2591
 
 
 
2592
  msgid ""
2593
  "The description can contain any documentation or notes you need to "
2594
  "understand or use the item."
2595
  msgstr ""
2596
 
2597
  #. translators: 1: bulk_action, e.g., delete, edit, restore, trash
 
2598
  #, php-format
2599
  msgid "Unknown bulk action %1$s"
2600
  msgstr ""
2601
 
2602
  #. translators: 1: view name/slug
 
2603
  #, php-format
2604
  msgid "Edit view \"%1$s\" cancelled."
2605
  msgstr ""
2606
 
 
2607
  msgid "View and Post MIME Type Support is disabled"
2608
  msgstr ""
2609
 
 
2610
  msgid "Library Views/Post MIME Type Processing"
2611
  msgstr ""
2612
 
 
2613
  msgid ""
2614
  "In this tab you can manage the list of \"Post MIME Types\", which are used "
2615
  "by WordPress to define the views for the <em><strong>Media/Library</strong></"
@@ -2621,6 +3806,7 @@ msgid ""
2621
  msgstr ""
2622
 
2623
  #. translators: 1: Documentation hyperlink
 
2624
  #, php-format
2625
  msgid ""
2626
  "You can find more information about library views, Post MIME types and how "
@@ -2629,67 +3815,87 @@ msgid ""
2629
  "screen."
2630
  msgstr ""
2631
 
 
2632
  msgid "Library View Processing documentation"
2633
  msgstr ""
2634
 
 
 
2635
  msgid "Displaying search results for"
2636
  msgstr ""
2637
 
 
2638
  msgid "Search Views"
2639
  msgstr ""
2640
 
 
2641
  msgid "Add View"
2642
  msgstr ""
2643
 
 
2644
  msgid "<strong>Quick Edit</strong>"
2645
  msgstr ""
2646
 
 
2647
  msgid "Edit Upload MIME Type"
2648
  msgstr ""
2649
 
 
2650
  msgid ""
2651
  "The &#8220;extension&#8221; is the file extension for this type, and a "
2652
  "unique key for the item. It must be all lowercase and contain only letters "
2653
  "and numbers."
2654
  msgstr ""
2655
 
 
2656
  msgid ""
2657
  "The MIME Type must be all lowercase and contain only letters, numbers, "
2658
  "periods (.), slashes (/) and hyphens (-). It <strong>must be a valid MIME</"
2659
  "strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
2660
  msgstr ""
2661
 
 
2662
  msgid "Icon Type"
2663
  msgstr ""
2664
 
 
2665
  msgid ""
2666
  "The Icon Type selects a thumbnail image displayed for non-image file types, "
2667
  "such as PDF documents."
2668
  msgstr ""
2669
 
 
 
2670
  msgid "Inactive"
2671
  msgstr ""
2672
 
 
2673
  msgid ""
2674
  "Check this box if you want to remove this entry from the list of Upload MIME "
2675
  "Types returned by get_allowed_mime_types()."
2676
  msgstr ""
2677
 
 
2678
  msgid "Known File Extension/MIME Type Associations"
2679
  msgstr ""
2680
 
 
2681
  msgid "Search Known MIME Types"
2682
  msgstr ""
2683
 
 
2684
  msgid "To search by extension, use \".\", e.g., \".doc\""
2685
  msgstr ""
2686
 
 
2687
  msgid "Upload MIME Type Support is disabled"
2688
  msgstr ""
2689
 
 
2690
  msgid "File Extension and MIME Type Processing"
2691
  msgstr ""
2692
 
 
2693
  msgid ""
2694
  "In this tab you can manage the list of file extension/MIME Type "
2695
  "associations, which are used by WordPress to decide what kind of files can "
@@ -2699,6 +3905,7 @@ msgid ""
2699
  msgstr ""
2700
 
2701
  #. translators: 1: Documentation hyperlink
 
2702
  #, php-format
2703
  msgid ""
2704
  "You can find more information about file extensions, MIME types and how "
@@ -2706,44 +3913,61 @@ msgid ""
2706
  "the <strong>\"Help\"</strong> tab in the upper-right corner of this screen."
2707
  msgstr ""
2708
 
 
2709
  msgid "File Extension Processing documentation"
2710
  msgstr ""
2711
 
 
2712
  msgid "Search Uploads"
2713
  msgstr ""
2714
 
 
2715
  msgid "Upload MIME Type"
2716
  msgstr ""
2717
 
 
2718
  msgid ""
2719
  "To search the database of over 1,500 known extension/type associations, "
2720
  "click \"Search Known Types\" below the form."
2721
  msgstr ""
2722
 
 
2723
  msgid ""
2724
  "The &#8220;extension&#8221; is the file extension for this type, and unique "
2725
  "key for the item. It must be all lowercase and contain only letters and "
2726
  "numbers."
2727
  msgstr ""
2728
 
 
2729
  msgid "Add Upload MIME Type"
2730
  msgstr ""
2731
 
 
2732
  msgid "Search Known Types"
2733
  msgstr ""
2734
 
 
 
2735
  msgid "Active"
2736
  msgstr ""
2737
 
2738
- msgid "MLA Gallery Options"
 
2739
  msgstr ""
2740
 
2741
- msgid "Go to Style Templates"
 
2742
  msgstr ""
2743
 
2744
- msgid "Go to Markup Templates"
 
2745
  msgstr ""
2746
 
 
 
 
 
 
2747
  msgid ""
2748
  "In this tab you can view the default style and markup templates. You can "
2749
  "also define additional templates and use the <code>mla_style</code> and "
@@ -2753,127 +3977,102 @@ msgid ""
2753
  "Changes\" at the bottom of this page."
2754
  msgstr ""
2755
 
2756
- msgid "Style Templates"
2757
- msgstr ""
2758
-
2759
- msgid "Markup Templates"
2760
- msgstr ""
2761
-
2762
  msgid "Theme"
2763
  msgstr ""
2764
 
 
2765
  msgid "Imagick support is not installed."
2766
  msgstr ""
2767
 
 
2768
  msgid "Ghostscript support is not installed."
2769
  msgstr ""
2770
 
 
 
 
2771
  msgid "WARNING:"
2772
  msgstr ""
2773
 
 
2774
  msgid " MLA Viewer support may not be available"
2775
  msgstr ""
2776
 
 
2777
  msgid ""
2778
  "This default template cannot be altered or deleted, but you can copy the "
2779
  "styles."
2780
  msgstr ""
2781
 
2782
- msgid "Styles"
2783
- msgstr ""
2784
-
2785
- msgid ""
2786
- "List of substitution parameters, e.g., [+selector+], on Documentation tab."
2787
- msgstr ""
2788
-
2789
  msgid "Delete this template"
2790
  msgstr ""
2791
 
 
2792
  msgid ""
2793
  "Check the box to delete this template when you press Update at the bottom of "
2794
  "the page."
2795
  msgstr ""
2796
 
 
2797
  msgid "Fill in a name and styles to add a new template."
2798
  msgstr ""
2799
 
 
2800
  msgid ""
2801
  "This default template cannot be altered or deleted, but you can copy the "
2802
  "markup."
2803
  msgstr ""
2804
 
2805
- msgid "Arguments"
2806
- msgstr ""
2807
-
2808
- msgid "Default shortcode parameter values."
2809
- msgstr ""
2810
-
2811
- msgid "Open"
2812
- msgstr ""
2813
-
2814
- msgid ""
2815
- "Markup for the beginning of the gallery. List of parameters, e.g., [+selector"
2816
- "+], on Documentation tab."
2817
- msgstr ""
2818
-
2819
- msgid "Row"
2820
- msgstr ""
2821
-
2822
- msgid "Markup for the beginning of each row in the gallery."
2823
- msgstr ""
2824
-
2825
- msgid "Item"
2826
- msgstr ""
2827
-
2828
- msgid "Markup for each item/cell of the gallery."
2829
- msgstr ""
2830
-
2831
- msgid "Close"
2832
- msgstr ""
2833
-
2834
- msgid "Markup for the end of each row in the gallery."
2835
- msgstr ""
2836
-
2837
- msgid "Markup for the end of the gallery."
2838
- msgstr ""
2839
-
2840
- msgid "Markup for the beginning of each row."
2841
- msgstr ""
2842
-
2843
- msgid "Markup for each item/cell."
2844
- msgstr ""
2845
-
2846
- msgid "Markup for the end of each row."
2847
- msgstr ""
2848
-
2849
  msgid "Fill in a name and markup to add a new template."
2850
  msgstr ""
2851
 
 
2852
  msgid "Custom Field Mapping Progress"
2853
  msgstr ""
2854
 
 
2855
  msgid "DO NOT DO THE FOLLOWING (they will cause mapping to fail)"
2856
  msgstr ""
2857
 
 
2858
  msgid "Close the window"
2859
  msgstr ""
2860
 
 
2861
  msgid "Reload the page"
2862
  msgstr ""
2863
 
 
2864
  msgid "Click the browser&rsquo;s Stop, Back or forward buttons"
2865
  msgstr ""
2866
 
 
2867
  msgid "Progress"
2868
  msgstr ""
2869
 
 
2870
  msgid "Resume"
2871
  msgstr ""
2872
 
 
 
 
 
 
 
 
 
 
 
 
2873
  msgid "Custom Field and Attachment Metadata Processing Options"
2874
  msgstr ""
2875
 
2876
  #. translators: 1: Documentation hyperlink
 
2877
  #, php-format
2878
  msgid ""
2879
  "In this tab you can define the rules for mapping several types of image "
@@ -2883,26 +4082,32 @@ msgid ""
2883
  "field. See the %1$s section of the Documentation for details."
2884
  msgstr ""
2885
 
 
2886
  msgid "Updating Attachment Metadata Documentation"
2887
  msgstr ""
2888
 
 
2889
  msgid "Adding or changing Attachment Metadata"
2890
  msgstr ""
2891
 
2892
  #. translators: 1: Documentation hyperlink
 
2893
  #, php-format
2894
  msgid ""
2895
  "You can find more information about using the controls in this tab to define "
2896
  "mapping rules and apply them in the %1$s section of the Documentation."
2897
  msgstr ""
2898
 
 
2899
  msgid "Custom Field Options documentation"
2900
  msgstr ""
2901
 
 
2902
  msgid "Custom field mapping"
2903
  msgstr ""
2904
 
2905
  #. translators: 1: "Save Changes"
 
2906
  #, php-format
2907
  msgid ""
2908
  "Click %1$s to update the \"Enable custom field mapping...\" checkbox and/or "
@@ -2911,18 +4116,22 @@ msgid ""
2911
  msgstr ""
2912
 
2913
  #. translators: 1: "Map All Rules..."
 
2914
  #, php-format
2915
  msgid ""
2916
  "Click %1$s to apply all the rules at once (rule changes will be applied but "
2917
  "not saved)."
2918
  msgstr ""
2919
 
 
2920
  msgid "IPTC &amp; EXIF Mapping Progress"
2921
  msgstr ""
2922
 
 
2923
  msgid "IPTC &amp; EXIF Processing Options"
2924
  msgstr ""
2925
 
 
2926
  msgid ""
2927
  "In this tab you can define the rules for mapping IPTC (International Press "
2928
  "Telecommunications Council) and EXIF (EXchangeable Image File) metadata to "
@@ -2931,16 +4140,20 @@ msgid ""
2931
  "click \"Save Changes\" at the bottom of this page."
2932
  msgstr ""
2933
 
 
2934
  msgid "IPTC/EXIF Options documentation"
2935
  msgstr ""
2936
 
 
2937
  msgid "Standard field mapping"
2938
  msgstr ""
2939
 
 
2940
  msgid "Taxonomy term mapping"
2941
  msgstr ""
2942
 
2943
  #. translators: 1: "Save Changes"
 
2944
  #, php-format
2945
  msgid ""
2946
  "Click %1$s to update the \"Enable IPTC/EXIF mapping...\" checkbox and/or all "
@@ -2948,164 +4161,176 @@ msgid ""
2948
  "performed.</strong>"
2949
  msgstr ""
2950
 
 
2951
  msgid "Debug settings saved."
2952
  msgstr ""
2953
 
2954
  #. translators: 1: ERROR tag 2: file type 3: file name 4: error message
 
2955
  #, php-format
2956
  msgid "%1$s: Reseting the %2$s file ( %3$s ) \"%4$s\"."
2957
  msgstr ""
2958
 
 
 
 
2959
  msgid "Error Log"
2960
  msgstr ""
2961
 
2962
  #. translators: 1: ERROR tag 2: file type 3: file name 4: error message
 
2963
  #, php-format
2964
  msgid "%1$s: Reading the %2$s file ( %3$s ) \"%4$s\"."
2965
  msgstr ""
2966
 
2967
  #. translators: 1: file name
 
2968
  #, php-format
2969
  msgid "Error log file (%1$s) not found; click Reset to create it."
2970
  msgstr ""
2971
 
 
2972
  msgid "Debug Options"
2973
  msgstr ""
2974
 
 
2975
  msgid "Debug Settings"
2976
  msgstr ""
2977
 
2978
  #. translators: 1: "Save Changes"
 
2979
  #, php-format
2980
  msgid "Click %1$s to update the %2$s."
2981
  msgstr ""
2982
 
 
2983
  msgid "You do not have permission to manage plugin settings."
2984
  msgstr ""
2985
 
 
2986
  msgid "Cannot render content tab"
2987
  msgstr ""
2988
 
 
2989
  msgid "Unknown content tab"
2990
  msgstr ""
2991
 
2992
  #. translators: 1: template type 2: template name
 
2993
  #, php-format
2994
  msgctxt "message_list"
2995
  msgid "Deleting %1$s \"%2$s\"."
2996
  msgstr ""
2997
 
2998
  #. translators: 1: ERROR tag 2: template name 3: template type
 
2999
  #, php-format
3000
  msgid "%1$s: Reserved name \"%2$s\", new %3$s discarded."
3001
  msgstr ""
3002
 
3003
  #. translators: 1: ERROR tag 2: template name 3: template type
 
3004
  #, php-format
3005
  msgid "%1$s: Duplicate name \"%2$s\", new %3$s discarded."
3006
  msgstr ""
3007
 
3008
  #. translators: 1: template type 2: template name
 
3009
  #, php-format
3010
  msgctxt "message_list"
3011
  msgid "Adding new %1$s \"%2$s\"."
3012
  msgstr ""
3013
 
3014
  #. translators: 1: ERROR tag 2: element name 3: old value
 
3015
  #, php-format
3016
  msgid "%1$s: Blank %2$s, reverting to \"%3$s\"."
3017
  msgstr ""
3018
 
 
 
3019
  msgid "style template name"
3020
  msgstr ""
3021
 
3022
  #. translators: 1: ERROR tag 2: element name 3: new value 4: old value
 
3023
  #, php-format
3024
  msgid "%1$s: Duplicate new %2$s \"%3$s\", reverting to \"%4$s\"."
3025
  msgstr ""
3026
 
 
 
 
 
 
 
3027
  #. translators: 1: element name 2: old_value 3: new_value
 
3028
  #, php-format
3029
  msgctxt "message_list"
3030
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
3031
  msgstr ""
3032
 
3033
  #. translators: 1: template type 2: template name
 
3034
  #, php-format
3035
  msgctxt "message_list"
3036
  msgid "Updating contents of %1$s \"%2$s\"."
3037
  msgstr ""
3038
 
3039
  #. translators: 1: ERROR tag 2: template type
 
3040
  #, php-format
3041
  msgid "%1$s: Update of %2$s failed."
3042
  msgstr ""
3043
 
 
 
3044
  msgid "markup template name"
3045
  msgstr ""
3046
 
3047
- #. translators: 1: template name
3048
- #, php-format
3049
- msgctxt "message_list"
3050
- msgid "Updating arguments markup for \"%1$s\"."
3051
- msgstr ""
3052
-
3053
- #. translators: 1: template name
3054
- #, php-format
3055
- msgctxt "message_list"
3056
- msgid "Updating open markup for \"%1$s\"."
3057
- msgstr ""
3058
-
3059
- #. translators: 1: template name
3060
- #, php-format
3061
- msgctxt "message_list"
3062
- msgid "Updating row open markup for \"%1$s\"."
3063
- msgstr ""
3064
-
3065
- #. translators: 1: template name
3066
- #, php-format
3067
- msgctxt "message_list"
3068
- msgid "Updating item markup for \"%1$s\"."
3069
- msgstr ""
3070
-
3071
- #. translators: 1: template name
3072
- #, php-format
3073
- msgctxt "message_list"
3074
- msgid "Updating row close markup for \"%1$s\"."
3075
- msgstr ""
3076
-
3077
- #. translators: 1: template name
3078
  #, php-format
3079
  msgctxt "message_list"
3080
- msgid "Updating close markup for \"%1$s\"."
3081
  msgstr ""
3082
 
3083
  #. translators: 1: field type
 
3084
  #, php-format
3085
  msgid "%1$s no changes detected."
3086
  msgstr ""
3087
 
 
3088
  msgid "View settings saved."
3089
  msgstr ""
3090
 
 
3091
  msgid "Upload MIME Type settings saved."
3092
  msgstr ""
3093
 
 
3094
  msgid "No custom field mapping rules to process."
3095
  msgstr ""
3096
 
3097
  #. translators: 1: field type 2: examined count 3: updated count
 
 
3098
  #, php-format
3099
  msgid "%1$s mapping completed; %2$d attachment(s) examined, %3$d updated."
3100
  msgstr ""
3101
 
3102
  #. translators: 1: field type 2: examined count
 
 
3103
  #, php-format
3104
  msgid ""
3105
  "%1$s mapping completed; %2$d attachment(s) examined, no changes detected."
3106
  msgstr ""
3107
 
3108
  #. translators: 1: number of attachments
 
3109
  #, php-format
3110
  msgid "%s attachment"
3111
  msgid_plural "%s attachments"
@@ -3113,365 +4338,628 @@ msgstr[0] ""
3113
  msgstr[1] ""
3114
 
3115
  #. translators: 1: singular/plural number of attachments
 
3116
  #, php-format
3117
  msgid "Deleted custom field value from %1$s."
3118
  msgstr ""
3119
 
 
3120
  msgid "No attachments contained this custom field."
3121
  msgstr ""
3122
 
3123
  #. translators: 1: ERROR tag 2: field type
 
 
3124
  #, php-format
3125
  msgid "%1$s: No %2$s settings to process."
3126
  msgstr ""
3127
 
 
 
3128
  msgid "updated."
3129
  msgstr ""
3130
 
3131
  #. translators: 1: reference type, e.g., Gallery in
 
3132
  #, php-format
3133
  msgctxt "message_list"
3134
  msgid "%1$s - references updated."
3135
  msgstr ""
3136
 
 
3137
  msgid "General settings saved."
3138
  msgstr ""
3139
 
 
3140
  msgid "General settings reset to default values."
3141
  msgstr ""
3142
 
 
3143
  msgid "select settings"
3144
  msgstr ""
3145
 
 
3146
  msgid "Import ALL Settings"
3147
  msgstr ""
3148
 
 
3149
  msgctxt "message_list"
3150
  msgid "exported"
3151
  msgstr ""
3152
 
 
3153
  msgctxt "message_list"
3154
  msgid "skipped"
3155
  msgstr ""
3156
 
 
3157
  msgid "ALL settings exported."
3158
  msgstr ""
3159
 
3160
  #. translators: 1: ERROR tag 2: backup directory name
 
3161
  #, php-format
3162
  msgid "%1$s: The settings directory ( %2$s ) cannot be created."
3163
  msgstr ""
3164
 
3165
  #. translators: 1: ERROR tag 2: backup directory name
 
3166
  #, php-format
3167
  msgid "%1$s: The settings directory ( %2$s ) is not writable."
3168
  msgstr ""
3169
 
3170
  #. translators: 1: ERROR tag 2: backup file name
 
3171
  #, php-format
3172
  msgid "%1$s: The settings file ( %2$s ) could not be opened."
3173
  msgstr ""
3174
 
3175
  #. translators: 1: ERROR tag 2: PHP error information
 
3176
  #, php-format
3177
  msgctxt "error_log"
3178
  msgid "%1$s: _export_settings $error_info = \"%2$s\"."
3179
  msgstr ""
3180
 
3181
  #. translators: 1: ERROR tag 2: backup file name 3: error message
 
3182
  #, php-format
3183
  msgid "%1$s: Writing the settings file ( %2$s ) \"%3$s\"."
3184
  msgstr ""
3185
 
3186
  #. translators: 1: number of option settings
 
3187
  #, php-format
3188
  msgid "Settings exported; %1$s settings recorded."
3189
  msgstr ""
3190
 
 
3191
  msgid "No settings imported."
3192
  msgstr ""
3193
 
 
3194
  msgid "Please select an import settings file from the dropdown list."
3195
  msgstr ""
3196
 
 
3197
  msgid "The import settings dropdown selection is missing."
3198
  msgstr ""
3199
 
3200
  #. translators: 1: ERROR tag 2: PHP error information
 
3201
  #, php-format
3202
  msgctxt "error_log"
3203
  msgid "%1$s: _import_settings $error_info = \"%2$s\"."
3204
  msgstr ""
3205
 
3206
  #. translators: 1: ERROR tag 2: backup file name 3: error message
 
3207
  #, php-format
3208
  msgid "%1$s: Reading the settings file ( %2$s ) \"%3$s\"."
3209
  msgstr ""
3210
 
 
3211
  msgctxt "message_list"
3212
  msgid "updated"
3213
  msgstr ""
3214
 
 
3215
  msgctxt "message_list"
3216
  msgid "unchanged"
3217
  msgstr ""
3218
 
3219
  #. translators: 1: number of option settings updated 2: number of option settings unchanged
 
3220
  #, php-format
3221
  msgid "Settings imported; %1$s updated, %2$s unchanged."
3222
  msgstr ""
3223
 
3224
- msgid "not found"
3225
- msgstr ""
3226
-
 
3227
  msgid "Previous"
3228
  msgstr ""
3229
 
 
 
 
 
3230
  msgid "Next"
3231
  msgstr ""
3232
 
 
3233
  msgid "mla_debug empty gallery"
3234
  msgstr ""
3235
 
 
3236
  msgid ""
3237
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
3238
  "<strong>default</strong>, query = "
3239
  msgstr ""
3240
 
 
3241
  msgid "unknown"
3242
  msgstr ""
3243
 
 
 
3244
  msgid "mla_debug attributes"
3245
  msgstr ""
3246
 
 
 
3247
  msgid "mla_debug arguments"
3248
  msgstr ""
3249
 
 
3250
  msgid "mla_debug empty cloud"
3251
  msgstr ""
3252
 
 
3253
  msgid "mla_debug empty list"
3254
  msgstr ""
3255
 
 
 
 
 
 
 
 
3256
  msgid "Invalid mla_gallery"
3257
  msgstr ""
3258
 
 
3259
  msgid "mla_debug query"
3260
  msgstr ""
3261
 
 
3262
  msgid "mla_debug request"
3263
  msgstr ""
3264
 
 
3265
  msgid "mla_debug query_vars"
3266
  msgstr ""
3267
 
 
3268
  msgid "mla_debug post_count"
3269
  msgstr ""
3270
 
 
3271
  msgid "mla_debug WHERE filter"
3272
  msgstr ""
3273
 
 
3274
  msgid "mla_debug modified WHERE filter"
3275
  msgstr ""
3276
 
 
3277
  msgid "mla_debug ORDER BY filter, incoming"
3278
  msgstr ""
3279
 
 
3280
  msgid "Replacement ORDER BY clause"
3281
  msgstr ""
3282
 
 
3283
  msgid "mla_debug posts_clauses filter"
3284
  msgstr ""
3285
 
 
3286
  msgid "mla_debug posts_clauses_request filter"
3287
  msgstr ""
3288
 
 
3289
  msgid "Invalid taxonomy"
3290
  msgstr ""
3291
 
 
3292
  msgid "mla_debug query arguments"
3293
  msgstr ""
3294
 
 
3295
  msgid "mla_debug last_query"
3296
  msgstr ""
3297
 
 
3298
  msgid "mla_debug last_error"
3299
  msgstr ""
3300
 
 
3301
  msgid "mla_debug num_rows"
3302
  msgstr ""
3303
 
 
3304
  msgid "mla_debug found_rows"
3305
  msgstr ""
3306
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3307
  msgid "Error while saving the thumbnails."
3308
  msgstr ""
3309
 
 
3310
  msgid "Remove From"
3311
  msgstr ""
3312
 
 
 
 
3313
  msgid "Generate Thumbnails"
3314
  msgstr ""
3315
 
3316
  #. translators: 1: post ID
 
3317
  #, php-format
3318
  msgid "Item %1$d"
3319
  msgstr ""
3320
 
 
3321
  msgid "has native thumbnail."
3322
  msgstr ""
3323
 
 
3324
  msgid "Featured Image retained."
3325
  msgstr ""
3326
 
3327
  #. translators: 1: ERROR tag 2: Item post ID
 
3328
  #, php-format
3329
  msgid "%1$s: %2$sno attached file."
3330
  msgstr ""
3331
 
 
3332
  msgid "unsupported file type."
3333
  msgstr ""
3334
 
3335
  #. translators: 1: ERROR tag 2: Item post ID
 
3336
  #, php-format
3337
  msgid "%1$s: %2$sthumbnail generation failed"
3338
  msgstr ""
3339
 
3340
  #. translators: 1: ERROR tag 2: Item post ID
 
3341
  #, php-format
3342
  msgid "%1$s: %2$swp_insert_attachment failed."
3343
  msgstr ""
3344
 
3345
  #. translators: 1: Item post ID, 2: new thumbnail item ID
 
3346
  #, php-format
3347
  msgid "%1$sthumbnail generated as new item %2$s."
3348
  msgstr ""
3349
 
 
3350
  msgid "Generated Thumbnails"
3351
  msgstr ""
3352
 
 
3353
  msgid ""
3354
  "Pull down the Help menu and select Thumbnail Generation for setting details"
3355
  msgstr ""
3356
 
 
3357
  msgid "Width"
3358
  msgstr ""
3359
 
 
3360
  msgid "Height"
3361
  msgstr ""
3362
 
 
3363
  msgid "Best Fit"
3364
  msgstr ""
3365
 
 
3366
  msgid "Page"
3367
  msgstr ""
3368
 
 
3369
  msgid "Resolution"
3370
  msgstr ""
3371
 
 
3372
  msgid "Quality"
3373
  msgstr ""
3374
 
 
3375
  msgid "Existing Items"
3376
  msgstr ""
3377
 
 
3378
  msgid "Ignore"
3379
  msgstr ""
3380
 
 
3381
  msgid "Delete"
3382
  msgstr ""
3383
 
 
3384
  msgid "Suffix"
3385
  msgstr ""
3386
 
 
 
3387
  msgctxt "list_table_column"
3388
  msgid "Extension"
3389
  msgstr ""
3390
 
 
3391
  msgctxt "list_table_column"
3392
  msgid "Icon Type"
3393
  msgstr ""
3394
 
 
3395
  msgctxt "list_table_column"
3396
  msgid "Source"
3397
  msgstr ""
3398
 
 
3399
  msgctxt "list_table_column"
3400
  msgid "Status"
3401
  msgstr ""
3402
 
 
 
3403
  msgctxt "list_table_column"
3404
  msgid "WordPress Type"
3405
  msgstr ""
3406
 
 
 
3407
  msgctxt "list_table_column"
3408
  msgid "MLA Type"
3409
  msgstr ""
3410
 
 
3411
  msgctxt "list_table_column"
3412
  msgid "Std. Source"
3413
  msgstr ""
3414
 
 
3415
  msgctxt "list_table_column"
3416
  msgid "Std. Icon Type"
3417
  msgstr ""
3418
 
 
 
3419
  msgid "Revert to standard item"
3420
  msgstr ""
3421
 
 
 
3422
  msgid "Revert to Standard"
3423
  msgstr ""
3424
 
 
3425
  msgid "Delete/Revert Custom"
3426
  msgstr ""
3427
 
 
3428
  msgid "Select this entry"
3429
  msgstr ""
3430
 
 
3431
  msgid "Select these entries"
3432
  msgstr ""
3433
 
 
3434
  msgctxt "list_table_column"
3435
  msgid "Slug"
3436
  msgstr ""
3437
 
 
3438
  msgctxt "list_table_column"
3439
  msgid "Specification"
3440
  msgstr ""
3441
 
 
3442
  msgctxt "list_table_column"
3443
  msgid "Post Mime"
3444
  msgstr ""
3445
 
 
3446
  msgctxt "list_table_column"
3447
  msgid "Table View"
3448
  msgstr ""
3449
 
 
3450
  msgctxt "list_table_column"
3451
  msgid "Singular Name"
3452
  msgstr ""
3453
 
 
3454
  msgctxt "list_table_column"
3455
  msgid "Plural Name"
3456
  msgstr ""
3457
 
 
3458
  msgctxt "list_table_column"
3459
  msgid "Order"
3460
  msgstr ""
3461
 
 
3462
  msgid "Duplicate translation created; update as desired."
3463
  msgstr ""
3464
 
 
3465
  msgid "Make media available in all languages"
3466
  msgstr ""
3467
 
 
3468
  msgid " WPML Media is not installed."
3469
  msgstr ""
3470
 
 
3471
  msgid " WPML Media is not active."
3472
  msgstr ""
3473
 
3474
  #. translators: 1: - 4: page subheader values
 
3475
  #, php-format
3476
  msgid ""
3477
  "In this tab you can find a number of options for controlling WPML-specific "
@@ -3479,24 +4967,33 @@ msgid ""
3479
  "\"Save Changes\" at the bottom of the tab to save any changes you make."
3480
  msgstr ""
3481
 
 
 
3482
  #, php-format
3483
  msgid "Edit the %s translation"
3484
  msgstr ""
3485
 
 
3486
  #, php-format
3487
  msgid "Add translation to %s"
3488
  msgstr ""
3489
 
 
 
 
3490
  msgid "Search Media"
3491
  msgstr ""
3492
 
 
3493
  msgid "The Media Library Assistant cannot load."
3494
  msgstr ""
3495
 
 
3496
  msgid "You must resolve these conflicts before this plugin can safely load."
3497
  msgstr ""
3498
 
3499
  #. translators: Description of the plugin/theme
 
3500
  msgid ""
3501
  "Enhances the Media Library; powerful [mla_gallery], taxonomy support, IPTC/"
3502
  "EXIF processing, bulk & quick edit actions and where-used reporting."
2
  msgid ""
3
  msgstr ""
4
  "Project-Id-Version: Media Library Assistant\n"
5
+ "POT-Creation-Date: 2016-06-05 18: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@fairtradejudaica.org>\n"
21
  "X-Poedit-SearchPath-2: index.php\n"
22
 
23
  #. translators: Name of the plugin/theme
24
+ #: includes/class-mla-admin-columns-support.php:33
25
+ #: includes/class-mla-core-options.php:502 includes/class-mla-settings.php:480
26
+ #: includes/class-mla-settings.php:3275 includes/class-mla-settings.php:3295
27
+ #: index.php:48
28
  msgid "Media Library Assistant"
29
  msgstr ""
30
 
31
+ #: includes/class-mla-admin-columns-support.php:34
32
+ #: includes/class-mla-core-options.php:511
33
  msgid "Assistant"
34
  msgstr ""
35
 
36
+ #: includes/class-mla-ajax.php:162 includes/class-mla-core-options.php:1089
37
+ #: includes/class-mla-data.php:3600 includes/class-mla-edit-media.php:426
38
+ #: includes/class-mla-main.php:1848 includes/class-mla-main.php:2038
39
+ #: includes/class-mla-objects.php:315 includes/class-mla-options.php:691
40
+ #: includes/mla-main-search-box-template.php:50
41
+ #: includes/mla-media-modal-js-template.php:40
42
  msgid "Title"
43
  msgstr ""
44
 
45
+ #: includes/class-mla-ajax.php:162 includes/class-mla-main.php:1849
46
+ #: includes/class-mla-thumbnail-generation.php:436
47
  msgid "Type"
48
  msgstr ""
49
 
50
+ #: includes/class-mla-ajax.php:162 includes/class-mla-main.php:1850
51
  msgid "Date"
52
  msgstr ""
53
 
54
+ #: includes/class-mla-ajax.php:162 includes/class-mla-main.php:1851
55
+ #: includes/class-mla-settings.php:2304
56
  msgid "Status"
57
  msgstr ""
58
 
59
+ #: includes/class-mla-ajax.php:166 includes/class-mla-list-table.php:792
60
+ #: includes/class-mla-list-table.php:913 includes/class-mla-main.php:454
61
+ #: includes/class-mla-polylang-support.php:429
62
+ #: includes/class-mla-thumbnail-generation.php:97
63
  msgid "(no title)"
64
  msgstr ""
65
 
66
+ #: includes/class-mla-ajax.php:172
67
  msgid "Published"
68
  msgstr ""
69
 
70
+ #: includes/class-mla-ajax.php:175 includes/class-mla-edit-media.php:817
71
+ #: includes/class-mla-list-table.php:559
72
  msgid "Scheduled"
73
  msgstr ""
74
 
75
+ #: includes/class-mla-ajax.php:178
76
  msgid "Pending Review"
77
  msgstr ""
78
 
79
+ #: includes/class-mla-ajax.php:181 includes/class-mla-edit-media.php:823
80
+ #: includes/class-mla-list-table.php:556
81
  msgid "Draft"
82
  msgstr ""
83
 
84
  #. translators: date format in table columns, see http://php.net/date
85
  #. translators: format for upload/last modified date
86
+ #: includes/class-mla-ajax.php:191 includes/class-mla-list-table.php:1322
87
+ #: includes/class-mla-list-table.php:1351
88
+ #: includes/class-mla-list-table.php:1407
89
  msgid "Y/m/d"
90
  msgstr ""
91
 
92
+ #: includes/class-mla-ajax.php:220 includes/class-mla-ajax.php:227
93
+ #: includes/class-mla-ajax.php:236 includes/class-mla-core.php:622
94
+ #: includes/class-mla-core.php:640 includes/class-mla-core.php:1017
95
+ #: includes/class-mla-core.php:1023 includes/class-mla-core.php:1027
96
+ #: includes/class-mla-data-pdf.php:216 includes/class-mla-data-pdf.php:517
97
+ #: includes/class-mla-data-pdf.php:519 includes/class-mla-data-pdf.php:565
98
+ #: includes/class-mla-data-pdf.php:749 includes/class-mla-data-query.php:666
99
+ #: includes/class-mla-data.php:50 includes/class-mla-data.php:109
100
+ #: includes/class-mla-data.php:197 includes/class-mla-data.php:241
101
+ #: includes/class-mla-data.php:344 includes/class-mla-data.php:500
102
+ #: includes/class-mla-data.php:563 includes/class-mla-data.php:1196
103
+ #: includes/class-mla-data.php:1418 includes/class-mla-data.php:1424
104
+ #: includes/class-mla-data.php:1820 includes/class-mla-data.php:1824
105
+ #: includes/class-mla-data.php:2988 includes/class-mla-data.php:3015
106
+ #: includes/class-mla-data.php:3347 includes/class-mla-data.php:3360
107
+ #: includes/class-mla-data.php:3382 includes/class-mla-data.php:3577
108
+ #: includes/class-mla-data.php:3623 includes/class-mla-data.php:3655
109
+ #: includes/class-mla-data.php:3671 includes/class-mla-data.php:3861
110
+ #: includes/class-mla-edit-media.php:316 includes/class-mla-edit-media.php:731
111
+ #: includes/class-mla-edit-media.php:771 includes/class-mla-main.php:683
112
+ #: includes/class-mla-main.php:812 includes/class-mla-main.php:1153
113
+ #: includes/class-mla-main.php:1209 includes/class-mla-main.php:1234
114
+ #: includes/class-mla-main.php:1361 includes/class-mla-main.php:1413
115
+ #: includes/class-mla-main.php:1504 includes/class-mla-main.php:1535
116
+ #: includes/class-mla-main.php:1671 includes/class-mla-main.php:1678
117
+ #: includes/class-mla-main.php:1834 includes/class-mla-main.php:1909
118
+ #: includes/class-mla-main.php:2157 includes/class-mla-main.php:2165
119
+ #: includes/class-mla-main.php:2189 includes/class-mla-main.php:2197
120
+ #: includes/class-mla-main.php:2229 includes/class-mla-main.php:2237
121
+ #: includes/class-mla-media-modal.php:571 includes/class-mla-mime-types.php:477
122
+ #: includes/class-mla-mime-types.php:873 includes/class-mla-mime-types.php:961
123
+ #: includes/class-mla-mime-types.php:1107
124
+ #: includes/class-mla-mime-types.php:1130
125
+ #: includes/class-mla-mime-types.php:1941
126
+ #: includes/class-mla-mime-types.php:1952
127
+ #: includes/class-mla-mime-types.php:1965
128
+ #: includes/class-mla-mime-types.php:1973
129
+ #: includes/class-mla-mime-types.php:1978
130
+ #: includes/class-mla-mime-types.php:2021
131
+ #: includes/class-mla-mime-types.php:2040
132
+ #: includes/class-mla-mime-types.php:2091
133
+ #: includes/class-mla-mime-types.php:2125
134
+ #: includes/class-mla-mime-types.php:2210
135
+ #: includes/class-mla-mime-types.php:2289
136
+ #: includes/class-mla-mime-types.php:2298
137
+ #: includes/class-mla-mime-types.php:2330 includes/class-mla-objects.php:238
138
+ #: includes/class-mla-options.php:484 includes/class-mla-options.php:661
139
+ #: includes/class-mla-options.php:737 includes/class-mla-options.php:1240
140
+ #: includes/class-mla-options.php:1677 includes/class-mla-options.php:1690
141
+ #: includes/class-mla-options.php:1694 includes/class-mla-options.php:2278
142
+ #: includes/class-mla-options.php:2500 includes/class-mla-options.php:3069
143
+ #: includes/class-mla-options.php:3113 includes/class-mla-options.php:3121
144
+ #: includes/class-mla-options.php:3138 includes/class-mla-options.php:3148
145
+ #: includes/class-mla-options.php:3158 includes/class-mla-options.php:3166
146
+ #: includes/class-mla-options.php:3170 includes/class-mla-settings.php:593
147
+ #: includes/class-mla-settings.php:657 includes/class-mla-settings.php:671
148
+ #: includes/class-mla-settings.php:700 includes/class-mla-settings.php:711
149
+ #: includes/class-mla-settings.php:802 includes/class-mla-settings.php:938
150
+ #: includes/class-mla-settings.php:1069 includes/class-mla-settings.php:1106
151
+ #: includes/class-mla-settings.php:1246 includes/class-mla-settings.php:1609
152
+ #: includes/class-mla-settings.php:1641 includes/class-mla-settings.php:1718
153
+ #: includes/class-mla-settings.php:2055 includes/class-mla-settings.php:2106
154
+ #: includes/class-mla-settings.php:2185 includes/class-mla-settings.php:2773
155
+ #: includes/class-mla-settings.php:2915 includes/class-mla-settings.php:3138
156
+ #: includes/class-mla-settings.php:3189 includes/class-mla-settings.php:3275
157
+ #: includes/class-mla-settings.php:3307 includes/class-mla-settings.php:3310
158
+ #: includes/class-mla-settings.php:3314 includes/class-mla-settings.php:3419
159
+ #: includes/class-mla-settings.php:3425 includes/class-mla-settings.php:3439
160
+ #: includes/class-mla-settings.php:3446 includes/class-mla-settings.php:3450
161
+ #: includes/class-mla-settings.php:3476 includes/class-mla-settings.php:3516
162
+ #: includes/class-mla-settings.php:3522 includes/class-mla-settings.php:3536
163
+ #: includes/class-mla-settings.php:3543 includes/class-mla-settings.php:3547
164
+ #: includes/class-mla-settings.php:3588 includes/class-mla-settings.php:3709
165
+ #: includes/class-mla-settings.php:3842 includes/class-mla-settings.php:3916
166
+ #: includes/class-mla-settings.php:4005 includes/class-mla-settings.php:4362
167
+ #: includes/class-mla-settings.php:4366 includes/class-mla-settings.php:4377
168
+ #: includes/class-mla-settings.php:4384 includes/class-mla-settings.php:4393
169
+ #: includes/class-mla-settings.php:4430 includes/class-mla-settings.php:4438
170
+ #: includes/class-mla-settings.php:4447
171
+ #: includes/class-mla-shortcode-support.php:1895
172
+ #: includes/class-mla-shortcode-support.php:1986
173
+ #: includes/class-mla-shortcode-support.php:3212
174
+ #: includes/class-mla-shortcode-support.php:3305
175
+ #: includes/class-mla-shortcode-support.php:3337
176
+ #: includes/class-mla-shortcode-support.php:4262
177
+ #: includes/class-mla-shortcode-support.php:4597
178
+ #: includes/class-mla-shortcode-support.php:4628
179
+ #: includes/class-mla-thumbnail-generation.php:256
180
+ #: includes/class-mla-thumbnail-generation.php:270
181
+ #: includes/class-mla-thumbnail-generation.php:316
182
  msgid "ERROR"
183
  msgstr ""
184
 
185
+ #: includes/class-mla-ajax.php:220 includes/class-mla-main.php:1671
186
  msgid "No post ID found"
187
  msgstr ""
188
 
189
+ #: includes/class-mla-ajax.php:227 includes/class-mla-main.php:1678
190
+ #: includes/class-mla-polylang-support.php:326
191
  msgid "You are not allowed to edit this Attachment."
192
  msgstr ""
193
 
194
+ #: includes/class-mla-core-options.php:368 includes/class-mla-options.php:518
195
  msgid "Attachment Categories"
196
  msgstr ""
197
 
198
+ #: includes/class-mla-core-options.php:372
199
  msgid "Check this option to add support for Attachment Categories."
200
  msgstr ""
201
 
202
+ #: includes/class-mla-core-options.php:376 includes/class-mla-options.php:533
203
  msgid "Attachment Tags"
204
  msgstr ""
205
 
206
+ #: includes/class-mla-core-options.php:380
207
  msgid "Check this option to add support for Attachment Tags."
208
  msgstr ""
209
 
210
+ #: includes/class-mla-core-options.php:384 includes/class-mla-settings.php:1404
211
  msgid "Where-used Reporting"
212
  msgstr ""
213
 
214
+ #: includes/class-mla-core-options.php:389
215
  msgid "Exclude Revisions"
216
  msgstr ""
217
 
218
+ #: includes/class-mla-core-options.php:393
219
  msgid "Check this option to exclude revisions from where-used reporting."
220
  msgstr ""
221
 
222
+ #: includes/class-mla-core-options.php:397
223
  msgid "Where-used database access tuning"
224
  msgstr ""
225
 
226
+ #: includes/class-mla-core-options.php:402
227
+ #: includes/class-mla-edit-media.php:666 includes/class-mla-edit-media.php:916
228
  msgid "Featured in"
229
  msgstr ""
230
 
231
+ #: includes/class-mla-core-options.php:407
232
+ #: includes/class-mla-core-options.php:417
233
  msgid "Enabled"
234
  msgstr ""
235
 
236
+ #: includes/class-mla-core-options.php:407
237
+ #: includes/class-mla-core-options.php:417
238
+ #: includes/class-mla-core-options.php:427
239
+ #: includes/class-mla-core-options.php:437
240
+ #: includes/class-mla-list-table.php:1019
241
+ #: includes/class-mla-list-table.php:1064
242
+ #: includes/class-mla-list-table.php:1114
243
+ #: includes/class-mla-list-table.php:1159
244
  msgid "Disabled"
245
  msgstr ""
246
 
247
+ #: includes/class-mla-core-options.php:408
248
  msgid "Search database posts and pages for Featured Image attachments."
249
  msgstr ""
250
 
251
+ #: includes/class-mla-core-options.php:412
252
+ #: includes/class-mla-edit-media.php:670 includes/class-mla-edit-media.php:955
253
  msgid "Inserted in"
254
  msgstr ""
255
 
256
+ #: includes/class-mla-core-options.php:417
257
  msgid "Base"
258
  msgstr ""
259
 
260
+ #: includes/class-mla-core-options.php:418
261
  msgid ""
262
  "Search database posts and pages for attachments embedded in content."
263
  "<br>&nbsp;&nbsp;Base = ignore intermediate size suffixes; use path, base "
264
  "name and extension only."
265
  msgstr ""
266
 
267
+ #: includes/class-mla-core-options.php:422
268
+ #: includes/class-mla-edit-media.php:674 includes/class-mla-edit-media.php:990
269
+ #: includes/class-mla-settings.php:4143
270
  msgid "Gallery in"
271
  msgstr ""
272
 
273
+ #: includes/class-mla-core-options.php:427
274
+ #: includes/class-mla-core-options.php:437
275
  msgid "Dynamic"
276
  msgstr ""
277
 
278
+ #: includes/class-mla-core-options.php:427
279
+ #: includes/class-mla-core-options.php:437 includes/class-mla-main.php:2068
280
+ #: includes/class-mla-settings.php:2809 includes/class-mla-settings.php:2945
281
  msgid "Refresh"
282
  msgstr ""
283
 
284
+ #: includes/class-mla-core-options.php:427
285
+ #: includes/class-mla-core-options.php:437
286
  msgid "Cached"
287
  msgstr ""
288
 
289
+ #: includes/class-mla-core-options.php:428
290
  msgid ""
291
  "Search database posts and pages for [ gallery ] shortcode results.<br>&nbsp;"
292
  "&nbsp;Dynamic = once every page load, Cached = once every login, Disabled = "
293
  "never.<br>&nbsp;&nbsp;Refresh = update references, then set to Cached."
294
  msgstr ""
295
 
296
+ #: includes/class-mla-core-options.php:432
297
+ #: includes/class-mla-edit-media.php:678 includes/class-mla-edit-media.php:1025
298
+ #: includes/class-mla-settings.php:4153
299
  msgid "MLA Gallery in"
300
  msgstr ""
301
 
302
+ #: includes/class-mla-core-options.php:438
303
  msgid ""
304
  "Search database posts and pages for [mla_gallery] shortcode results."
305
  "<br>&nbsp;&nbsp;Dynamic = once every page load, Cached = once every login, "
307
  "Cached."
308
  msgstr ""
309
 
310
+ #: includes/class-mla-core-options.php:442 includes/class-mla-settings.php:1404
311
  msgid "Taxonomy Support"
312
  msgstr ""
313
 
314
+ #: includes/class-mla-core-options.php:447
315
  msgid "Compute Attachments Column"
316
  msgstr ""
317
 
318
+ #: includes/class-mla-core-options.php:451
319
  msgid ""
320
  "Check this option to calculate attachments per term in the Attachments "
321
  "Column."
322
  msgstr ""
323
 
324
+ #: includes/class-mla-core-options.php:455
325
  msgid ""
326
  "Check the \"<strong>Support</strong>\" box to add the taxonomy to the "
327
  "Assistant and the Edit Media screen."
328
  msgstr ""
329
 
330
+ #: includes/class-mla-core-options.php:456
331
  msgid ""
332
  "Check the \"<strong>Inline Edit</strong>\" box to display the taxonomy in "
333
  "the Quick Edit and Bulk Edit areas."
334
  msgstr ""
335
 
336
+ #: includes/class-mla-core-options.php:457
337
  msgid ""
338
  "Check the \"<strong>Term Search</strong>\" box to add the taxonomy to the "
339
  "\"Search Media/Terms\" list."
340
  msgstr ""
341
 
342
+ #: includes/class-mla-core-options.php:458
343
+ #: includes/class-mla-core-options.php:662 includes/class-mla-settings.php:1435
344
+ #: includes/class-mla-settings.php:1436 includes/class-mla-settings.php:1437
345
  msgid "For complete documentation"
346
  msgstr ""
347
 
348
+ #: includes/class-mla-core-options.php:458
349
+ #: includes/class-mla-core-options.php:662 includes/class-mla-settings.php:1435
350
+ #: includes/class-mla-settings.php:1436
351
  msgid "click here"
352
  msgstr ""
353
 
354
+ #: includes/class-mla-core-options.php:460
355
  msgid ""
356
  "Check the \"<strong>Checklist</strong>\" box to enable the checklist-style "
357
  "meta box for a flat taxonomy."
358
  msgstr ""
359
 
360
+ #: includes/class-mla-core-options.php:461
361
  msgid ""
362
  "You must also check the <strong>\"Enable enhanced checklist taxonomies\"</"
363
  "strong> box below to enable this feature."
364
  msgstr ""
365
 
366
+ #: includes/class-mla-core-options.php:462
367
  msgid ""
368
  "Check the \"<strong>Checked On Top</strong>\" box to moved checked terms to "
369
  "the top of the checklist-style meta box."
370
  msgstr ""
371
 
372
+ #: includes/class-mla-core-options.php:463
373
  msgid ""
374
  "Use the \"<strong>List Filter</strong>\" option to select the taxonomy on "
375
  "which to filter the Assistant table listing."
376
  msgstr ""
377
 
378
+ #: includes/class-mla-core-options.php:489
379
  msgid "Media/Assistant Screen Options"
380
  msgstr ""
381
 
382
+ #: includes/class-mla-core-options.php:494
383
  msgid "Admin Menu Options"
384
  msgstr ""
385
 
386
+ #: includes/class-mla-core-options.php:499
387
  msgid "Page Title"
388
  msgstr ""
389
 
390
+ #: includes/class-mla-core-options.php:504
391
  msgid "Enter the title for the Media/Assistant submenu page"
392
  msgstr ""
393
 
394
+ #: includes/class-mla-core-options.php:508
395
  msgid "Menu Title"
396
  msgstr ""
397
 
398
+ #: includes/class-mla-core-options.php:513
399
  msgid "Enter the title for the Media/Assistant submenu entry"
400
  msgstr ""
401
 
402
+ #: includes/class-mla-core-options.php:517
403
  msgid "Submenu Order"
404
  msgstr ""
405
 
406
+ #: includes/class-mla-core-options.php:522
407
  msgid ""
408
  "Enter the position of the Media/Assistant submenu entry.<br>&nbsp;&nbsp;0 = "
409
  "natural order (at bottom),&nbsp;&nbsp;&nbsp;&nbsp;1 - 4 = at top<br>&nbsp;"
411
  "\""
412
  msgstr ""
413
 
414
+ #: includes/class-mla-core-options.php:526
415
  msgid "Display Media/Library"
416
  msgstr ""
417
 
418
+ #: includes/class-mla-core-options.php:530
419
  msgid ""
420
  "Check/uncheck this option to display/remove the WordPress Media/Library "
421
  "submenu entry."
422
  msgstr ""
423
 
424
+ #: includes/class-mla-core-options.php:534
425
  msgid "Display Media/Assistant list/grid view switcher"
426
  msgstr ""
427
 
428
+ #: includes/class-mla-core-options.php:538
429
  msgid ""
430
  "Check/uncheck this option to display/remove the \"list/grid\" view switcher "
431
  "on the Media/Assistant submenu."
432
  msgstr ""
433
 
434
+ #: includes/class-mla-core-options.php:542
435
  msgid "Table Defaults"
436
  msgstr ""
437
 
438
+ #: includes/class-mla-core-options.php:547
439
  msgid "Order By"
440
  msgstr ""
441
 
442
+ #: includes/class-mla-core-options.php:552
443
+ #: includes/class-mla-core-options.php:780
444
+ #: includes/class-mla-core-options.php:811
445
+ #: includes/class-mla-core-options.php:825
446
+ #: includes/class-mla-list-table.php:433 includes/class-mla-list-table.php:1272
447
+ #: includes/class-mla-settings.php:2391
448
  msgid "None"
449
  msgstr ""
450
 
451
+ #: includes/class-mla-core-options.php:552
452
  msgid "ID/Parent"
453
  msgstr ""
454
 
455
+ #: includes/class-mla-core-options.php:553
456
  msgid "Select the column for the sort order of the Assistant table listing."
457
  msgstr ""
458
 
459
+ #: includes/class-mla-core-options.php:557
460
  msgid "Order"
461
  msgstr ""
462
 
463
+ #: includes/class-mla-core-options.php:562
464
  msgid "Ascending"
465
  msgstr ""
466
 
467
+ #: includes/class-mla-core-options.php:562
468
  msgid "Descending"
469
  msgstr ""
470
 
471
+ #: includes/class-mla-core-options.php:563
472
+ #: includes/class-mla-core-options.php:790
473
  msgid "Choose the sort order."
474
  msgstr ""
475
 
476
+ #: includes/class-mla-core-options.php:567
477
  msgid "Views Width"
478
  msgstr ""
479
 
480
+ #: includes/class-mla-core-options.php:572
481
  msgid "Enter the width for the views list, in pixels (px) or percent (%)"
482
  msgstr ""
483
 
484
+ #: includes/class-mla-core-options.php:576
485
  msgid "Icon Size"
486
  msgstr ""
487
 
488
+ #: includes/class-mla-core-options.php:581
489
  msgid "Enter the size of the thumbnail/icon images, in pixels"
490
  msgstr ""
491
 
492
+ #: includes/class-mla-core-options.php:585
493
  msgid "Bulk Chunk Size"
494
  msgstr ""
495
 
496
+ #: includes/class-mla-core-options.php:590
497
  msgid "Enter the size of the Bulk Edit and Map All processing chunks"
498
  msgstr ""
499
 
500
+ #: includes/class-mla-core-options.php:594
501
  msgid "Taxonomy Filter parameters"
502
  msgstr ""
503
 
504
+ #: includes/class-mla-core-options.php:599
505
  msgid "Maximum Depth"
506
  msgstr ""
507
 
508
+ #: includes/class-mla-core-options.php:604
509
  msgid ""
510
  "Enter the number of levels displayed for hierarchial taxonomies; enter zero "
511
  "for no limit."
512
  msgstr ""
513
 
514
+ #: includes/class-mla-core-options.php:608
515
  msgid "Include Children"
516
  msgstr ""
517
 
518
+ #: includes/class-mla-core-options.php:612
519
  msgid ""
520
  "Check/uncheck this option to include/exclude children for hierarchical "
521
  "taxonomies."
522
  msgstr ""
523
 
524
+ #: includes/class-mla-core-options.php:616
525
  msgid "Search Media Defaults"
526
  msgstr ""
527
 
528
+ #: includes/class-mla-core-options.php:621
529
  msgid "Display Search Controls"
530
  msgstr ""
531
 
532
+ #: includes/class-mla-core-options.php:625
533
+ #: includes/class-mla-core-options.php:751
534
  msgid ""
535
  "Check/uncheck this option to display/hide the and/or connector and search "
536
  "fields controls."
537
  msgstr ""
538
 
539
+ #: includes/class-mla-core-options.php:629
540
  msgid ""
541
  "Use these controls to set defaults for the and/or connector and search "
542
  "fields controls.<br>These defaults will be used for the Search Media boxes "
543
  "on both the Media/Assistant submenu<br>and the Media Manager Modal Window."
544
  msgstr ""
545
 
546
+ #: includes/class-mla-core-options.php:643
547
  msgid "Media/Edit Media Enhancements"
548
  msgstr ""
549
 
550
+ #: includes/class-mla-core-options.php:648
551
  msgid "Enable &quot;enhanced checklist&quot; taxonomies"
552
  msgstr ""
553
 
554
+ #: includes/class-mla-core-options.php:652
555
  msgid ""
556
  "Check this option to enable the \"? Search\" feature for hierarchical "
557
  "taxonomies, e.g., Att. Categories.<br>&nbsp;&nbsp;This option also enables "
558
  "the \"checklist-style\" support for flat taxonomies, e.g., Att. Tags."
559
  msgstr ""
560
 
561
+ #: includes/class-mla-core-options.php:656
562
  msgid "Enable Edit Media additional meta boxes"
563
  msgstr ""
564
 
565
+ #: includes/class-mla-core-options.php:660
566
  msgid ""
567
  "Check this option to add \"Parent Info\", \"Menu Order\", \"Attachment "
568
  "Metadata\" and four \"where-used\" meta boxes to the Edit Media screen."
569
  msgstr ""
570
 
571
+ #: includes/class-mla-core-options.php:661
572
  msgid "You can also use Filters to customize the meta boxes."
573
  msgstr ""
574
 
575
+ #: includes/class-mla-core-options.php:666
576
  msgid "Media/Add New Enhancements"
577
  msgstr ""
578
 
579
+ #: includes/class-mla-core-options.php:671
580
  msgid "Enable &quot;bulk edit&quot; area"
581
  msgstr ""
582
 
583
+ #: includes/class-mla-core-options.php:675
584
  msgid ""
585
  "Check this option to enable the \"Bulk Edit area\" feature on the Media/Add "
586
  "New screen."
587
  msgstr ""
588
 
589
+ #: includes/class-mla-core-options.php:679
590
  msgid "&quot;bulk edit&quot; area on top"
591
  msgstr ""
592
 
593
+ #: includes/class-mla-core-options.php:683
594
  msgid ""
595
  "Check this option to move the \"Bulk Edit area\" to the top of the Media/Add "
596
  "New screen."
597
  msgstr ""
598
 
599
+ #: includes/class-mla-core-options.php:687
600
  msgid "&quot;bulk edit&quot; area initially open"
601
  msgstr ""
602
 
603
+ #: includes/class-mla-core-options.php:690
604
  msgid ""
605
  "Check this option to automatically open the \"Bulk Edit area\" when the "
606
  "Media/Add New screen is displayed."
607
  msgstr ""
608
 
609
+ #: includes/class-mla-core-options.php:694
610
  msgid "Media Manager/Media Grid Enhancements"
611
  msgstr ""
612
 
613
+ #: includes/class-mla-core-options.php:699
614
  msgid "Enable Media Grid Enhancements"
615
  msgstr ""
616
 
617
+ #: includes/class-mla-core-options.php:702
618
  msgid ""
619
  "Check/uncheck this option to enable/disable Media Library Grid View "
620
  "Enhancements."
621
  msgstr ""
622
 
623
+ #: includes/class-mla-core-options.php:706
624
  msgid "Enable Media Manager Enhancements"
625
  msgstr ""
626
 
627
+ #: includes/class-mla-core-options.php:709
628
  msgid ""
629
  "Check/uncheck this option to enable/disable Media Manager Modal Window "
630
  "Enhancements."
631
  msgstr ""
632
 
633
+ #: includes/class-mla-core-options.php:713
634
  msgid "Media Manager Enhanced MIME Type filter"
635
  msgstr ""
636
 
637
+ #: includes/class-mla-core-options.php:716
638
  msgid ""
639
  "Check this option to filter by more MIME Types, e.g., text, applications."
640
  msgstr ""
641
 
642
+ #: includes/class-mla-core-options.php:720
643
  msgid "Media Manager Month and Year filter"
644
  msgstr ""
645
 
646
+ #: includes/class-mla-core-options.php:723
647
  msgid "Check this option to filter by month and year uploaded."
648
  msgstr ""
649
 
650
+ #: includes/class-mla-core-options.php:727
651
  msgid "Media Manager Category/Tag filter"
652
  msgstr ""
653
 
654
+ #: includes/class-mla-core-options.php:730
655
  msgid "Check this option to filter by taxonomy terms."
656
  msgstr ""
657
 
658
+ #: includes/class-mla-core-options.php:734
659
  msgid "Media Manager Terms Search popup"
660
  msgstr ""
661
 
662
+ #: includes/class-mla-core-options.php:737
663
  msgid "Check this option to enable the \"Terms Search\" popup window."
664
  msgstr ""
665
 
666
+ #: includes/class-mla-core-options.php:741
667
  msgid "Media Manager Enhanced Search Media box"
668
  msgstr ""
669
 
670
+ #: includes/class-mla-core-options.php:744
671
  msgid "Check this option to enable search box enhancements."
672
  msgstr ""
673
 
674
+ #: includes/class-mla-core-options.php:748
675
  msgid "Media Manager Enhanced Search Media Controls"
676
  msgstr ""
677
 
678
+ #: includes/class-mla-core-options.php:755
679
  msgid "Media Manager Checklist meta boxes"
680
  msgstr ""
681
 
682
+ #: includes/class-mla-core-options.php:758
683
  msgid ""
684
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
685
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for any taxonomy that uses a "
686
  "<strong>\"checklist-style\"</strong> meta box."
687
  msgstr ""
688
 
689
+ #: includes/class-mla-core-options.php:762
690
  msgid "Media Manager Flat meta boxes"
691
  msgstr ""
692
 
693
+ #: includes/class-mla-core-options.php:765
694
  msgid ""
695
  "Check this option to enable MLA-enhanced meta boxes in the \"ATTACHMENT "
696
  "DETAILS\" pane.<br>&nbsp;&nbsp;This option is for <strong>flat taxonomies</"
698
  "style\" meta box."
699
  msgstr ""
700
 
701
+ #: includes/class-mla-core-options.php:769
702
  msgid "Media Manager auto-fill meta boxes"
703
  msgstr ""
704
 
705
+ #: includes/class-mla-core-options.php:772
706
  msgid ""
707
  "Check this option to automatically fill MLA-enhanced meta boxes in the "
708
  "\"ATTACHMENT DETAILS\" pane<br>&nbsp;&nbsp;when the item is selected."
709
  msgstr ""
710
 
711
+ #: includes/class-mla-core-options.php:776
712
  msgid "Media Manager Order By"
713
  msgstr ""
714
 
715
+ #: includes/class-mla-core-options.php:780
716
+ #: includes/class-mla-core-options.php:789
717
+ #: includes/class-mla-core-options.php:811
718
+ #: includes/class-mla-core-options.php:825
719
+ #: includes/class-mla-core-options.php:839 includes/class-mla-settings.php:1486
720
  msgid "Media Manager Default"
721
  msgstr ""
722
 
723
+ #: includes/class-mla-core-options.php:780
724
  msgid "Title/Name"
725
  msgstr ""
726
 
727
+ #: includes/class-mla-core-options.php:781
728
  msgid ""
729
  "If you want to override the Media Manager default,<br>&nbsp;&nbsp;select a "
730
  "column for the sort order of the Media Library listing."
731
  msgstr ""
732
 
733
+ #: includes/class-mla-core-options.php:785
734
  msgid "Media Manager Order"
735
  msgstr ""
736
 
737
+ #: includes/class-mla-core-options.php:794
738
  msgid "Attachment Display Settings"
739
  msgstr ""
740
 
741
+ #: includes/class-mla-core-options.php:799
742
  msgid "Media Manager Apply Display Settings"
743
  msgstr ""
744
 
745
+ #: includes/class-mla-core-options.php:802
746
  msgid ""
747
  "Check this option to always start with the Attachment Display Settings set "
748
  "here,<br>&nbsp;&nbsp;overriding browser-/cookie-based defaults."
749
  msgstr ""
750
 
751
+ #: includes/class-mla-core-options.php:806
752
+ #: includes/class-mla-core-options.php:808
753
  msgid "Alignment"
754
  msgstr ""
755
 
756
  #. translators: 1: option name, e.g., Alignment, Link To or Size
757
+ #: includes/class-mla-core-options.php:808
758
+ #: includes/class-mla-core-options.php:822
759
+ #: includes/class-mla-core-options.php:836
760
  #, php-format
761
  msgid ""
762
  "Select a value for the default %1$s option in the Attachment Display "
763
  "Settings."
764
  msgstr ""
765
 
766
+ #: includes/class-mla-core-options.php:811
767
  msgid "Left"
768
  msgstr ""
769
 
770
+ #: includes/class-mla-core-options.php:811
771
  msgid "Center"
772
  msgstr ""
773
 
774
+ #: includes/class-mla-core-options.php:811
775
  msgid "Right"
776
  msgstr ""
777
 
778
+ #: includes/class-mla-core-options.php:820
779
+ #: includes/class-mla-core-options.php:822
780
  msgid "Link To"
781
  msgstr ""
782
 
783
+ #: includes/class-mla-core-options.php:825
784
  msgid "Media File"
785
  msgstr ""
786
 
787
+ #: includes/class-mla-core-options.php:825
788
  msgid "Attachment Page"
789
  msgstr ""
790
 
791
+ #: includes/class-mla-core-options.php:825
792
  msgid "Custom URL"
793
  msgstr ""
794
 
795
+ #: includes/class-mla-core-options.php:834
796
+ #: includes/class-mla-core-options.php:836
797
  msgid "Size"
798
  msgstr ""
799
 
800
+ #: includes/class-mla-core-options.php:839
801
+ #: includes/class-mla-thumbnail-generation.php:396
802
+ #: includes/class-mla-thumbnail-generation.php:443
803
  msgid "Thumbnail"
804
  msgstr ""
805
 
806
+ #: includes/class-mla-core-options.php:839
807
  msgid "Medium"
808
  msgstr ""
809
 
810
+ #: includes/class-mla-core-options.php:839
811
  msgid "Large"
812
  msgstr ""
813
 
814
+ #: includes/class-mla-core-options.php:839
815
  msgid "Full Size"
816
  msgstr ""
817
 
818
+ #: includes/class-mla-core-options.php:848
819
  msgid "Uninstall (Delete) Plugin Settings"
820
  msgstr ""
821
 
822
+ #: includes/class-mla-core-options.php:853
823
  msgid "Delete Option Settings"
824
  msgstr ""
825
 
826
+ #: includes/class-mla-core-options.php:856
827
  msgid ""
828
  "Check this option to remove all MLA option settings from the database when "
829
  "the plugin is deleted.<br>&nbsp;&nbsp;<strong>You can make a backup copy</"
830
  "strong> of your settings below by clicking \""
831
  msgstr ""
832
 
833
+ #: includes/class-mla-core-options.php:856 includes/class-mla-settings.php:1406
834
  msgid "Export ALL Settings"
835
  msgstr ""
836
 
837
+ #: includes/class-mla-core-options.php:860
838
  msgid "Delete Option Settings Backups"
839
  msgstr ""
840
 
841
+ #: includes/class-mla-core-options.php:863
842
  msgid ""
843
  "Check this option to remove the <code>/wp-content/mla-backup</code> "
844
  "directory and its contents when the plugin is deleted."
845
  msgstr ""
846
 
847
+ #: includes/class-mla-core-options.php:867
848
  msgid "Default [mla_gallery] Templates and Settings"
849
  msgstr ""
850
 
851
+ #: includes/class-mla-core-options.php:872
852
+ #: includes/class-mla-core-options.php:878
853
+ #: includes/class-mla-core-options.php:916
854
+ #: includes/class-mla-core-options.php:922 includes/class-mla-settings.php:3408
855
+ #: includes/class-mla-settings.php:3419 includes/class-mla-settings.php:3425
856
+ #: includes/class-mla-settings.php:3429 includes/class-mla-settings.php:3461
857
+ #: includes/class-mla-settings.php:3476
858
  msgid "Style Template"
859
  msgstr ""
860
 
861
  #. translators: 1: template type 2: shortcode
862
+ #: includes/class-mla-core-options.php:878
863
+ #: includes/class-mla-core-options.php:888
864
+ #: includes/class-mla-core-options.php:922
865
+ #: includes/class-mla-core-options.php:932
866
  #, php-format
867
  msgid "Select the default %1$s for your %2$s shortcodes."
868
  msgstr ""
869
 
870
+ #: includes/class-mla-core-options.php:882
871
+ #: includes/class-mla-core-options.php:926
872
  msgid "Markup Template"
873
  msgstr ""
874
 
875
+ #: includes/class-mla-core-options.php:888
876
+ #: includes/class-mla-core-options.php:932 includes/class-mla-settings.php:3503
877
+ #: includes/class-mla-settings.php:3516 includes/class-mla-settings.php:3522
878
+ #: includes/class-mla-settings.php:3526 includes/class-mla-settings.php:3588
879
  msgid "markup template"
880
  msgstr ""
881
 
882
+ #: includes/class-mla-core-options.php:892
883
+ #: includes/class-mla-core-options.php:936
884
  msgid "Default columns"
885
  msgstr ""
886
 
887
+ #: includes/class-mla-core-options.php:896
888
  msgid ""
889
  "Enter the number of [mla_tag_cloud] columns; must be a positive integer."
890
  msgstr ""
891
 
892
+ #: includes/class-mla-core-options.php:900
893
+ #: includes/class-mla-core-options.php:944
894
  msgid "Default mla_margin"
895
  msgstr ""
896
 
897
+ #: includes/class-mla-core-options.php:904
898
+ #: includes/class-mla-core-options.php:948
899
  msgid ""
900
  "Enter the CSS \"margin\" property value, in length (px, em, pt, etc.), "
901
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"none\" to "
902
  "remove the property entirely."
903
  msgstr ""
904
 
905
+ #: includes/class-mla-core-options.php:908
906
+ #: includes/class-mla-core-options.php:952
907
  msgid "Default mla_itemwidth"
908
  msgstr ""
909
 
910
+ #: includes/class-mla-core-options.php:912
911
+ #: includes/class-mla-core-options.php:956
912
  msgid ""
913
  "Enter the CSS \"width\" property value, in length (px, em, pt, etc.), "
914
  "percent (%), \"auto\" or \"inherit\".<br>&nbsp;&nbsp;Enter \"calculate"
918
  "the property entirely."
919
  msgstr ""
920
 
921
+ #: includes/class-mla-core-options.php:940
922
  msgid "Enter the number of [mla_gallery] columns; must be a positive integer."
923
  msgstr ""
924
 
925
+ #: includes/class-mla-core-options.php:960
926
  msgid "Thumbnail Substitution Support, mla_viewer"
927
  msgstr ""
928
 
929
+ #: includes/class-mla-core-options.php:965
930
  msgid "Enable thumbnail substitution"
931
  msgstr ""
932
 
933
+ #: includes/class-mla-core-options.php:968
934
  msgid ""
935
  "Check this option to allow the \"mla_viewer\" to generate thumbnail images "
936
  "for PDF documents. Thumbnails are generated dynamically, each time the item "
939
  "strong>"
940
  msgstr ""
941
 
942
+ #: includes/class-mla-core-options.php:972
943
  msgid "Enable Featured Images"
944
  msgstr ""
945
 
946
+ #: includes/class-mla-core-options.php:975
947
  msgid ""
948
  "Check this option to extend Featured Image support to all Media Library "
949
  "items. The Featured Image can be used as a thumbnail image for the item in "
950
  "an [mla_gallery] display."
951
  msgstr ""
952
 
953
+ #: includes/class-mla-core-options.php:979
954
  msgid "Enable Featured Image Generation"
955
  msgstr ""
956
 
957
+ #: includes/class-mla-core-options.php:982
958
  msgid ""
959
  "Check this option to enable the \"Thumbnail\" generation action in the Media/"
960
  "Assistant submenu Bulk Actions dropdown."
961
  msgstr ""
962
 
963
+ #: includes/class-mla-core-options.php:986
964
  msgid "Enable explicit Ghostscript check"
965
  msgstr ""
966
 
967
+ #: includes/class-mla-core-options.php:989
968
  msgid ""
969
  "Check this option to enable the explicit check for Ghostscript support "
970
  "required for thumbnail generation. If your Ghostscript software is in a non-"
973
  "leave this option checked unless you know it is safe to turn it off."
974
  msgstr ""
975
 
976
+ #: includes/class-mla-core-options.php:993
977
  msgid "Ghostscript path"
978
  msgstr ""
979
 
980
+ #: includes/class-mla-core-options.php:997
981
  msgid ""
982
  "If your &ldquo;gs&rdquo; executable is in a non-standard location, enter the "
983
  "full path and filename here, e.g., &ldquo;/usr/bin/gs&rdquo;. It will "
984
  "override the search for Ghostscript in other places."
985
  msgstr ""
986
 
987
+ #: includes/class-mla-core-options.php:1017
988
  msgid "Enable custom field mapping when adding new media"
989
  msgstr ""
990
 
991
+ #: includes/class-mla-core-options.php:1020
992
  msgid ""
993
  "Check this option to enable mapping when uploading new media (attachments)."
994
  "<br>&nbsp;&nbsp;Click Save Changes at the bottom of the screen if you change "
996
  "buttons on the bulk edit, single edit and settings screens."
997
  msgstr ""
998
 
999
+ #: includes/class-mla-core-options.php:1024
1000
  msgid "Enable custom field mapping when updating media metadata"
1001
  msgstr ""
1002
 
1003
+ #: includes/class-mla-core-options.php:1027
1004
+ #: includes/class-mla-core-options.php:1051
1005
  msgid ""
1006
  "Check this option to enable mapping when media (attachments) metadata is "
1007
  "regenerated,<br>&nbsp;&nbsp;e.g., when the Media/Edit Media \"Edit Image\" "
1008
  "functions are used."
1009
  msgstr ""
1010
 
1011
+ #: includes/class-mla-core-options.php:1031
1012
  msgid ""
1013
  "Update the custom field mapping values above, then click Save Changes to "
1014
  "make the updates permanent.<br>You can also make temporary updates and click "
1016
  "saving any rule changes."
1017
  msgstr ""
1018
 
1019
+ #: includes/class-mla-core-options.php:1041
1020
  msgid "Enable IPTC/EXIF Mapping when adding new media"
1021
  msgstr ""
1022
 
1023
+ #: includes/class-mla-core-options.php:1044
1024
  msgid ""
1025
  "Check this option to enable mapping when uploading new media (attachments)."
1026
  "<br>&nbsp;&nbsp;Does NOT affect the operation of the \"Map\" buttons on the "
1027
  "bulk edit, single edit and settings screens."
1028
  msgstr ""
1029
 
1030
+ #: includes/class-mla-core-options.php:1048
1031
  msgid "Enable IPTC/EXIF Mapping when updating media metadata"
1032
  msgstr ""
1033
 
1034
+ #: includes/class-mla-core-options.php:1055
1035
  msgid ""
1036
  "Update the standard field mapping values above, then click <strong>Save "
1037
  "Changes</strong> to make the updates permanent.<br>You can also make "
1040
  "changes."
1041
  msgstr ""
1042
 
1043
+ #: includes/class-mla-core-options.php:1065
1044
  msgid ""
1045
  "Update the taxonomy term mapping values above, then click <strong>Save "
1046
  "Changes</strong> or <strong>Map All Attachments, Taxonomy Terms Now</strong>."
1047
  msgstr ""
1048
 
1049
+ #: includes/class-mla-core-options.php:1075
1050
  msgid ""
1051
  "<strong>Update</strong> individual custom field mapping values above, or "
1052
  "make several updates and click <strong>Save Changes</strong> below to apply "
1057
  "changes."
1058
  msgstr ""
1059
 
1060
+ #: includes/class-mla-core-options.php:1085
1061
  msgid "IPTC/EXIF Mapping help"
1062
  msgstr ""
1063
 
1064
+ #: includes/class-mla-core-options.php:1096 includes/class-mla-data.php:3626
1065
+ #: includes/class-mla-edit-media.php:427 includes/class-mla-main.php:2039
1066
  msgid "Name/Slug"
1067
  msgstr ""
1068
 
1069
+ #: includes/class-mla-core-options.php:1103 includes/class-mla-data.php:3668
1070
+ #: includes/class-mla-edit-media.php:430 includes/class-mla-list-table.php:1214
1071
+ #: includes/class-mla-main.php:2042 includes/class-mla-options.php:697
1072
+ #: includes/mla-main-search-box-template.php:52
1073
+ #: includes/mla-media-modal-js-template.php:48
1074
  msgid "ALT Text"
1075
  msgstr ""
1076
 
1077
+ #: includes/class-mla-core-options.php:1110 includes/class-mla-data.php:3681
1078
+ #: includes/class-mla-edit-media.php:428 includes/class-mla-main.php:2040
1079
+ #: includes/class-mla-options.php:700
1080
+ #: includes/mla-main-search-box-template.php:53
1081
+ #: includes/mla-media-modal-js-template.php:53
1082
  msgid "Caption"
1083
  msgstr ""
1084
 
1085
+ #: includes/class-mla-core-options.php:1117 includes/class-mla-data.php:3690
1086
+ #: includes/class-mla-edit-media.php:429 includes/class-mla-main.php:2041
1087
+ #: includes/class-mla-options.php:703 includes/class-mla-settings.php:1575
1088
+ #: includes/class-mla-settings.php:1832 includes/class-mla-settings.php:1930
1089
+ #: includes/class-mla-settings.php:2294
1090
+ #: includes/mla-main-search-box-template.php:54
1091
+ #: includes/mla-media-modal-js-template.php:57
1092
  msgid "Description"
1093
  msgstr ""
1094
 
1095
+ #: includes/class-mla-core-options.php:1137
1096
  msgid "Enable View and Post MIME Type Support"
1097
  msgstr ""
1098
 
1099
+ #: includes/class-mla-core-options.php:1140
1100
  msgid ""
1101
  "Check/uncheck this option to enable/disable Post MIME Type Support, then "
1102
  "click <strong>Save Changes</strong> to record the new setting."
1103
  msgstr ""
1104
 
1105
+ #: includes/class-mla-core-options.php:1149
1106
  msgid "Post MIME Types help."
1107
  msgstr ""
1108
 
1109
+ #: includes/class-mla-core-options.php:1152
1110
+ #: includes/class-mla-mime-types.php:1366
1111
  msgctxt "table_view_singular"
1112
  msgid "All"
1113
  msgstr ""
1114
 
1115
+ #: includes/class-mla-core-options.php:1153
1116
+ #: includes/class-mla-mime-types.php:1367
1117
  msgctxt "table_view_plural"
1118
  msgid "All"
1119
  msgstr ""
1120
 
1121
+ #: includes/class-mla-core-options.php:1158
1122
+ #: includes/class-mla-core-options.php:1212
1123
+ #: includes/class-mla-core-options.php:1221
1124
+ #: includes/class-mla-core-options.php:1230
1125
  msgctxt "post_mime_types_description"
1126
  msgid "Built-in view"
1127
  msgstr ""
1128
 
1129
+ #: includes/class-mla-core-options.php:1161
1130
  msgctxt "table_view_singular"
1131
  msgid "Image"
1132
  msgstr ""
1133
 
1134
+ #: includes/class-mla-core-options.php:1162
1135
  msgctxt "table_view_plural"
1136
  msgid "Images"
1137
  msgstr ""
1138
 
1139
+ #: includes/class-mla-core-options.php:1167
1140
  msgctxt "post_mime_types_description"
1141
  msgid "All image subtypes"
1142
  msgstr ""
1143
 
1144
+ #: includes/class-mla-core-options.php:1170
1145
  msgctxt "table_view_singular"
1146
  msgid "Audio"
1147
  msgstr ""
1148
 
1149
+ #: includes/class-mla-core-options.php:1171
1150
  msgctxt "table_view_plural"
1151
  msgid "Audio"
1152
  msgstr ""
1153
 
1154
+ #: includes/class-mla-core-options.php:1176
1155
  msgctxt "post_mime_types_description"
1156
  msgid "All audio subtypes"
1157
  msgstr ""
1158
 
1159
+ #: includes/class-mla-core-options.php:1179
1160
  msgctxt "table_view_singular"
1161
  msgid "Video"
1162
  msgstr ""
1163
 
1164
+ #: includes/class-mla-core-options.php:1180
1165
  msgctxt "table_view_plural"
1166
  msgid "Video"
1167
  msgstr ""
1168
 
1169
+ #: includes/class-mla-core-options.php:1185
1170
  msgctxt "post_mime_types_description"
1171
  msgid "All video subtypes"
1172
  msgstr ""
1173
 
1174
+ #: includes/class-mla-core-options.php:1188
1175
  msgctxt "table_view_singular"
1176
  msgid "Text"
1177
  msgstr ""
1178
 
1179
+ #: includes/class-mla-core-options.php:1189
1180
  msgctxt "table_view_plural"
1181
  msgid "Text"
1182
  msgstr ""
1183
 
1184
+ #: includes/class-mla-core-options.php:1194
1185
  msgctxt "post_mime_types_description"
1186
  msgid "All text subtypes"
1187
  msgstr ""
1188
 
1189
+ #: includes/class-mla-core-options.php:1197
1190
  msgctxt "table_view_singular"
1191
  msgid "Application"
1192
  msgstr ""
1193
 
1194
+ #: includes/class-mla-core-options.php:1198
1195
  msgctxt "table_view_plural"
1196
  msgid "Applications"
1197
  msgstr ""
1198
 
1199
+ #: includes/class-mla-core-options.php:1203
1200
  msgctxt "post_mime_types_description"
1201
  msgid "All application subtypes"
1202
  msgstr ""
1203
 
1204
+ #: includes/class-mla-core-options.php:1206
1205
+ #: includes/class-mla-list-table.php:1409
1206
  msgctxt "table_view_singular"
1207
  msgid "Unattached"
1208
  msgstr ""
1209
 
1210
+ #: includes/class-mla-core-options.php:1207
1211
  msgctxt "table_view_plural"
1212
  msgid "Unattached"
1213
  msgstr ""
1214
 
1215
+ #: includes/class-mla-core-options.php:1215
1216
  msgctxt "table_view_singular"
1217
  msgid "Attached"
1218
  msgstr ""
1219
 
1220
+ #: includes/class-mla-core-options.php:1216
1221
  msgctxt "table_view_plural"
1222
  msgid "Attached"
1223
  msgstr ""
1224
 
1225
+ #: includes/class-mla-core-options.php:1224
1226
  msgctxt "table_view_singular"
1227
  msgid "Trash"
1228
  msgstr ""
1229
 
1230
+ #: includes/class-mla-core-options.php:1225
1231
  msgctxt "table_view_plural"
1232
  msgid "Trash"
1233
  msgstr ""
1234
 
1235
+ #: includes/class-mla-core-options.php:1236
1236
  msgid "Enable Upload MIME Type Support"
1237
  msgstr ""
1238
 
1239
+ #: includes/class-mla-core-options.php:1239
1240
  msgid ""
1241
  "Check/uncheck this option to enable/disable Upload MIME Type Support, then "
1242
  "click <strong>Save Changes</strong> to record the new setting."
1243
  msgstr ""
1244
 
1245
+ #: includes/class-mla-core-options.php:1248
1246
  msgid "Upload MIME Types help."
1247
  msgstr ""
1248
 
1249
+ #: includes/class-mla-core-options.php:1253
1250
  msgid "Enable MLA File Type Icons Support"
1251
  msgstr ""
1252
 
1253
+ #: includes/class-mla-core-options.php:1256
1254
  msgid ""
1255
  "Check/uncheck this option to enable/disable MLA File Type Icons Support, "
1256
  "then click <strong>Save Changes</strong> to record the new setting."
1257
  msgstr ""
1258
 
1259
+ #: includes/class-mla-core-options.php:1260
1260
  msgid "Display Limit"
1261
  msgstr ""
1262
 
1263
+ #: includes/class-mla-core-options.php:1264
1264
  msgid ""
1265
  "Enter the maximum number of debug log characters to display; enter zero or "
1266
  "leave blank for no limit."
1267
  msgstr ""
1268
 
1269
+ #: includes/class-mla-core-options.php:1268
1270
  msgid "Debug File"
1271
  msgstr ""
1272
 
1273
+ #: includes/class-mla-core-options.php:1272
1274
  msgid ""
1275
  "Enter the name of an alternate, MLA-specific debug log file; leave blank to "
1276
  "use the PHP error_log."
1277
  msgstr ""
1278
 
1279
+ #: includes/class-mla-core-options.php:1276
1280
  msgid "Replace PHP error_log file"
1281
  msgstr ""
1282
 
1283
+ #: includes/class-mla-core-options.php:1279
1284
  msgid ""
1285
  "Check this option to replace the PHP error_log file with the MLA Debug File."
1286
  "<br>&nbsp;&nbsp;allows capture of PHP messages in the MLA Debug File."
1287
  msgstr ""
1288
 
1289
+ #: includes/class-mla-core-options.php:1283
1290
  msgid "PHP Reporting"
1291
  msgstr ""
1292
 
1293
+ #: includes/class-mla-core-options.php:1287
1294
  msgid ""
1295
  "Enter a numeric error_reporting value, e.g., 0x7FFF or 32767; leave blank to "
1296
  "use the existing PHP error_reporting value."
1297
  msgstr ""
1298
 
1299
+ #: includes/class-mla-core-options.php:1291
1300
  msgid "MLA Reporting"
1301
  msgstr ""
1302
 
1303
+ #: includes/class-mla-core-options.php:1295
1304
  msgid ""
1305
  "Enter a numeric MLA_DEBUG_LEVEL value, e.g., 0x0003 or 3; leave blank to use "
1306
  "the existing MLA_DEBUG_LEVEL value."
1307
  msgstr ""
1308
 
1309
  #. translators: 1: ERROR tag 2: path and file name
1310
+ #: includes/class-mla-core.php:622
1311
  #, php-format
1312
  msgctxt "error_log"
1313
  msgid "%1$s: mla_load_template file \"%2$s\" not found."
1314
  msgstr ""
1315
 
1316
  #. translators: 1: ERROR tag 2: path and file name 3: source type, e.g., file, option, string
1317
+ #: includes/class-mla-core.php:640
1318
  #, php-format
1319
  msgctxt "error_log"
1320
  msgid "%1$s: mla_load_template file \"%2$s\" bad source type \"%3$s\"."
1321
  msgstr ""
1322
 
1323
  #. translators: 1: ERROR tag 2: raw_mime_type
1324
+ #: includes/class-mla-core.php:1017
1325
  #, php-format
1326
  msgid "%1$s: Bad specification part \"%2$s\""
1327
  msgstr ""
1328
 
1329
  #. translators: 1: ERROR tag 2: option, e.g., any, match, null
1330
+ #: includes/class-mla-core.php:1023
1331
  #, php-format
1332
  msgid "%1$s: Bad specification option \"%2$s\""
1333
  msgstr ""
1334
 
1335
  #. translators: 1: ERROR tag 2: prefix, e.g., custom
1336
+ #: includes/class-mla-core.php:1027
1337
  #, php-format
1338
  msgid "%1$s: Bad specification prefix \"%2$s\""
1339
  msgstr ""
1340
 
1341
+ #: includes/class-mla-core.php:1127
1342
  msgid "Most Used"
1343
  msgstr ""
1344
 
1345
  #. translators: %s: add new taxonomy label
1346
+ #: includes/class-mla-core.php:1156
1347
  #, php-format
1348
  msgid "+ %s"
1349
  msgstr ""
1350
 
1351
+ #: includes/class-mla-core.php:1162 includes/class-mla-main.php:1840
1352
+ #: includes/class-mla-media-modal.php:601
1353
+ #: includes/mla-media-modal-js-template.php:28
1354
+ #: includes/mla-media-modal-js-template.php:71
1355
  msgid "Search"
1356
  msgstr ""
1357
 
1358
  #. translators: 1: ERROR tag 2: index
1359
+ #: includes/class-mla-data-pdf.php:216
1360
  #, php-format
1361
  msgctxt "error_log"
1362
  msgid "%1$s: _build_pdf_indirect_objects bad value at $index = \"%2$d\"."
1363
  msgstr ""
1364
 
1365
  #. translators: 1: ERROR tag 2: source offset 3: nest level
1366
+ #: includes/class-mla-data-pdf.php:517
1367
  #, php-format
1368
  msgctxt "error_log"
1369
  msgid "%1$s: _parse_pdf_dictionary offset = %2$d, nest = %3$d."
1370
  msgstr ""
1371
 
1372
  #. translators: 1: ERROR tag 2: dictionary excerpt
1373
+ #: includes/class-mla-data-pdf.php:519
1374
  #, php-format
1375
  msgctxt "error_log"
1376
  msgid "%1$s: _parse_pdf_dictionary no end delimiter dump = %2$s."
1377
  msgstr ""
1378
 
1379
  #. translators: 1: ERROR tag 2: entry name 3: value excerpt
1380
+ #: includes/class-mla-data-pdf.php:565
1381
  #, php-format
1382
  msgctxt "error_log"
1383
  msgid "%1$s: _parse_pdf_dictionary bad value [ %2$s ] dump = %3$s"
1384
  msgstr ""
1385
 
1386
  #. translators: 1: ERROR tag 2: path and file
1387
+ #: includes/class-mla-data-pdf.php:749
1388
  #, php-format
1389
  msgctxt "error_log"
1390
  msgid "%1$s: File \"%2$s\", startxref not found."
1391
  msgstr ""
1392
 
1393
+ #: includes/class-mla-data-query.php:178
1394
  msgctxt "list_table_column"
1395
  msgid "ID/Parent"
1396
  msgstr ""
1397
 
1398
+ #: includes/class-mla-data-query.php:179
1399
  msgctxt "list_table_column"
1400
  msgid "Title/Name"
1401
  msgstr ""
1402
 
1403
+ #: includes/class-mla-data-query.php:180
1404
  msgctxt "list_table_column"
1405
  msgid "Title"
1406
  msgstr ""
1407
 
1408
+ #: includes/class-mla-data-query.php:181
1409
  msgctxt "list_table_column"
1410
  msgid "Name"
1411
  msgstr ""
1412
 
1413
+ #: includes/class-mla-data-query.php:182
1414
  msgctxt "list_table_column"
1415
  msgid "Parent ID"
1416
  msgstr ""
1417
 
1418
+ #: includes/class-mla-data-query.php:183
1419
  msgctxt "list_table_column"
1420
  msgid "Menu Order"
1421
  msgstr ""
1422
 
1423
+ #: includes/class-mla-data-query.php:184
1424
  msgctxt "list_table_column"
1425
  msgid "Featured in"
1426
  msgstr ""
1427
 
1428
+ #: includes/class-mla-data-query.php:185
1429
  msgctxt "list_table_column"
1430
  msgid "Inserted in"
1431
  msgstr ""
1432
 
1433
+ #: includes/class-mla-data-query.php:186
1434
  msgctxt "list_table_column"
1435
  msgid "Gallery in"
1436
  msgstr ""
1437
 
1438
+ #: includes/class-mla-data-query.php:187
1439
  msgctxt "list_table_column"
1440
  msgid "MLA Gallery in"
1441
  msgstr ""
1442
 
1443
+ #: includes/class-mla-data-query.php:188
1444
  msgctxt "list_table_column"
1445
  msgid "ALT Text"
1446
  msgstr ""
1447
 
1448
+ #: includes/class-mla-data-query.php:189
1449
  msgctxt "list_table_column"
1450
  msgid "Caption"
1451
  msgstr ""
1452
 
1453
+ #: includes/class-mla-data-query.php:190
1454
+ #: includes/class-mla-upload-list-table.php:193
1455
+ #: includes/class-mla-upload-optional-list-table.php:171
1456
+ #: includes/class-mla-view-list-table.php:179
1457
  msgctxt "list_table_column"
1458
  msgid "Description"
1459
  msgstr ""
1460
 
1461
+ #: includes/class-mla-data-query.php:191
1462
+ #: includes/class-mla-upload-list-table.php:185
1463
+ #: includes/class-mla-upload-optional-list-table.php:168
1464
  msgctxt "list_table_column"
1465
  msgid "MIME Type"
1466
  msgstr ""
1467
 
1468
+ #: includes/class-mla-data-query.php:192
1469
  msgctxt "list_table_column"
1470
  msgid "File URL"
1471
  msgstr ""
1472
 
1473
+ #: includes/class-mla-data-query.php:193
1474
  msgctxt "list_table_column"
1475
  msgid "Base File"
1476
  msgstr ""
1477
 
1478
+ #: includes/class-mla-data-query.php:194
1479
  msgctxt "list_table_column"
1480
  msgid "Date"
1481
  msgstr ""
1482
 
1483
+ #: includes/class-mla-data-query.php:195
1484
  msgctxt "list_table_column"
1485
  msgid "Last Modified"
1486
  msgstr ""
1487
 
1488
+ #: includes/class-mla-data-query.php:196
1489
  msgctxt "list_table_column"
1490
  msgid "Author"
1491
  msgstr ""
1492
 
1493
+ #: includes/class-mla-data-query.php:197
1494
  msgctxt "list_table_column"
1495
  msgid "Attached to"
1496
  msgstr ""
1497
 
1498
  #. translators: 1: ERROR tag 2: function name 3: non-array value
1499
+ #: includes/class-mla-data-query.php:666 includes/class-mla-edit-media.php:316
1500
+ #: includes/class-mla-main.php:1834 includes/class-mla-main.php:1909
1501
+ #: includes/class-mla-media-modal.php:571 includes/class-mla-mime-types.php:477
1502
+ #: includes/class-mla-mime-types.php:1130
1503
+ #: includes/class-mla-mime-types.php:2330 includes/class-mla-settings.php:1609
1504
+ #: includes/class-mla-settings.php:2055
1505
  #, php-format
1506
  msgctxt "error_log"
1507
  msgid "%1$s: %2$s non-array \"%3$s\""
1508
  msgstr ""
1509
 
1510
  #. translators: 1: DEBUG tag 2: query filter details
1511
+ #: includes/class-mla-data-query.php:1115
1512
  #, php-format
1513
  msgctxt "error_log"
1514
  msgid "%1$s: _execute_list_table_query $wp_filter = \"%2$s\"."
1515
  msgstr ""
1516
 
1517
+ #: includes/class-mla-data-query.php:1115
1518
+ #: includes/class-mla-data-query.php:1130
1519
+ #: includes/class-mla-data-query.php:1132
1520
+ #: includes/class-mla-data-query.php:1567
1521
+ #: includes/class-mla-data-query.php:1639
1522
+ #: includes/class-mla-data-query.php:1711
1523
+ #: includes/class-mla-data-query.php:1808
1524
+ #: includes/class-mla-data-query.php:1900
1525
+ #: includes/class-mla-data-query.php:1919
1526
  msgid "DEBUG"
1527
  msgstr ""
1528
 
1529
  #. translators: 1: DEBUG tag 2: query details
1530
+ #: includes/class-mla-data-query.php:1130
1531
  #, php-format
1532
  msgctxt "error_log"
1533
  msgid "%1$s: _execute_list_table_query WP_Query = \"%2$s\"."
1534
  msgstr ""
1535
 
1536
  #. translators: 1: DEBUG tag 2: SQL statement
1537
+ #: includes/class-mla-data-query.php:1132
1538
  #, php-format
1539
  msgctxt "error_log"
1540
  msgid "%1$s: _execute_list_table_query SQL_request = \"%2$s\"."
1541
  msgstr ""
1542
 
1543
  #. translators: 1: DEBUG tag 2: search filter details
1544
+ #: includes/class-mla-data-query.php:1567
1545
  #, php-format
1546
  msgctxt "error_log"
1547
  msgid "%1$s: mla_query_posts_search_filter = \"%2$s\"."
1548
  msgstr ""
1549
 
1550
  #. translators: 1: DEBUG tag 2: where filter details
1551
+ #: includes/class-mla-data-query.php:1639
1552
  #, php-format
1553
  msgctxt "error_log"
1554
  msgid "%1$s: mla_query_posts_where_filter = \"%2$s\"."
1555
  msgstr ""
1556
 
1557
  #. translators: 1: DEBUG tag 2: join filter details
1558
+ #: includes/class-mla-data-query.php:1711
1559
  #, php-format
1560
  msgctxt "error_log"
1561
  msgid "%1$s: mla_query_posts_join_filter = \"%2$s\"."
1562
  msgstr ""
1563
 
1564
  #. translators: 1: DEBUG tag 2: orderby details details
1565
+ #: includes/class-mla-data-query.php:1808
1566
  #, php-format
1567
  msgctxt "error_log"
1568
  msgid "%1$s: mla_query_posts_orderby_filter = \"%2$s\"."
1569
  msgstr ""
1570
 
1571
  #. translators: 1: DEBUG tag 2: SQL clauses
1572
+ #: includes/class-mla-data-query.php:1900
1573
  #, php-format
1574
  msgctxt "error_log"
1575
  msgid "%1$s: mla_query_posts_clauses_filter = \"%2$s\"."
1576
  msgstr ""
1577
 
1578
  #. translators: 1: DEBUG tag 2: SQL clauses
1579
+ #: includes/class-mla-data-query.php:1919
1580
  #, php-format
1581
  msgctxt "error_log"
1582
  msgid "%1$s: mla_query_posts_clauses_request_filter = \"%2$s\"."
1583
  msgstr ""
1584
 
1585
+ #: includes/class-mla-data-references.php:321
1586
+ #: includes/class-mla-data-references.php:664
1587
+ #: includes/class-mla-list-table.php:939
1588
  msgid "NO REFERENCE TESTS"
1589
  msgstr ""
1590
 
1591
+ #: includes/class-mla-data-references.php:327
1592
+ #: includes/class-mla-data-references.php:670
1593
+ #: includes/class-mla-data-source.php:688
1594
+ #: includes/class-mla-data-source.php:689
1595
  msgid "ORPHAN"
1596
  msgstr ""
1597
 
1598
+ #: includes/class-mla-data-references.php:331
1599
+ #: includes/class-mla-data-references.php:674
1600
  msgid "UNUSED"
1601
  msgstr ""
1602
 
1603
+ #: includes/class-mla-data-references.php:336
1604
+ #: includes/class-mla-data-references.php:679
1605
  msgid "UNATTACHED"
1606
  msgstr ""
1607
 
1608
+ #: includes/class-mla-data-references.php:338
1609
+ #: includes/class-mla-data-references.php:681
1610
  msgid "INVALID PARENT"
1611
  msgstr ""
1612
 
1613
  #. translators: 1: post_type, 2: post_title, 3: post ID, 4: query string, 5: error message
1614
+ #: includes/class-mla-data-references.php:855
1615
  #, php-format
1616
  msgid "(%1$s) %2$s (ID %3$d) query \"%4$s\" failed, returning \"%5$s\""
1617
  msgstr ""
1618
 
1619
  #. translators: 1: ERROR tag 2: template excerpt
1620
+ #: includes/class-mla-data.php:50
1621
  #, php-format
1622
  msgctxt "error_log"
1623
  msgid ""
1625
  msgstr ""
1626
 
1627
  #. translators: 1: ERROR tag 2: template excerpt
1628
+ #: includes/class-mla-data.php:109
1629
  #, php-format
1630
  msgctxt "error_log"
1631
  msgid ""
1633
  msgstr ""
1634
 
1635
  #. translators: 1: ERROR tag 2: template excerpt
1636
+ #: includes/class-mla-data.php:197
1637
  #, php-format
1638
  msgctxt "error_log"
1639
  msgid "%1$s: mla_parse_template no end delimiter, tail = \"%2$s\"."
1640
  msgstr ""
1641
 
1642
  #. translators: 1: ERROR tag 2: template string
1643
+ #: includes/class-mla-data.php:241
1644
  #, php-format
1645
  msgctxt "error_log"
1646
  msgid "%1$s: _find_test_substring no end delimiter, tail = \"%2$s\"."
1647
  msgstr ""
1648
 
1649
+ #: includes/class-mla-data.php:344
1650
  msgid "Test; no closing parenthesis "
1651
  msgstr ""
1652
 
1653
  #. translators: 1: ERROR tag 2: node type, e.g., template
1654
+ #: includes/class-mla-data.php:500
1655
  #, php-format
1656
  msgctxt "error_log"
1657
  msgid "%1$s: _evaluate_template_array_node unknown type \"%2$s\"."
1658
  msgstr ""
1659
 
1660
  #. translators: 1: ERROR tag 2: node type, e.g., template
1661
+ #: includes/class-mla-data.php:563
1662
  #, php-format
1663
  msgctxt "error_log"
1664
  msgid "%1$s: _evaluate_template_node unknown type \"%2$s\"."
1665
  msgstr ""
1666
 
1667
  #. translators: 1: ERROR tag 2: template excerpt
1668
+ #: includes/class-mla-data.php:1196
1669
  #, php-format
1670
  msgctxt "error_log"
1671
  msgid ""
1674
  msgstr ""
1675
 
1676
  #. translators: 1: ERROR tag 2: post ID
1677
+ #: includes/class-mla-data.php:1418
1678
  #, php-format
1679
  msgctxt "error_log"
1680
  msgid "%1$s: mla_get_attachment_by_id(%2$d) not found."
1681
  msgstr ""
1682
 
1683
  #. translators: 1: ERROR tag 2: post ID 3: post_type
1684
+ #: includes/class-mla-data.php:1424
1685
  #, php-format
1686
  msgctxt "error_log"
1687
  msgid "%1$s: mla_get_attachment_by_id(%2$d) wrong post_type \"%3$s\"."
1688
  msgstr ""
1689
 
1690
+ #: includes/class-mla-data.php:1820
1691
  msgctxt "error_log"
1692
  msgid "mla_parse_xmp_metadata xml_parse_into_struct failed."
1693
  msgstr ""
1694
 
1695
+ #: includes/class-mla-data.php:1824
1696
  msgctxt "error_log"
1697
  msgid "mla_parse_xmp_metadata set option failed."
1698
  msgstr ""
1699
 
1700
+ #: includes/class-mla-data.php:3094 includes/class-mla-settings.php:1842
1701
+ #: includes/class-mla-view-list-table.php:430
1702
+ #: includes/class-mla-view-list-table.php:446
1703
+ #: includes/class-mla-wpml-support.php:1595
1704
  msgid "Yes"
1705
  msgstr ""
1706
 
1707
+ #: includes/class-mla-data.php:3096 includes/class-mla-list-table.php:166
1708
+ #: includes/class-mla-settings.php:1841
1709
+ #: includes/class-mla-view-list-table.php:432
1710
+ #: includes/class-mla-view-list-table.php:448
1711
+ #: includes/class-mla-wpml-support.php:1596
1712
  msgid "No"
1713
  msgstr ""
1714
 
1715
  #. translators: 1: meta_key
1716
+ #: includes/class-mla-data.php:3344 includes/class-mla-data.php:3442
1717
  #, php-format
1718
  msgid "Deleting %1$s"
1719
  msgstr ""
1720
 
1721
  #. translators: 1: ERROR tag 2: meta_key
1722
+ #: includes/class-mla-data.php:3347
1723
  #, php-format
1724
  msgid "%1$s: meta:%2$s not found"
1725
  msgstr ""
1727
  #. translators: 1: meta_key 2: meta_value
1728
  #. translators: 1: meta_key 2: new_value
1729
  #. translators: 1: meta_key 2: meta_value
1730
+ #: includes/class-mla-data.php:3356 includes/class-mla-data.php:3453
1731
+ #: includes/class-mla-data.php:3465
1732
  #, php-format
1733
  msgid "Adding %1$s = %2$s"
1734
  msgstr ""
1735
 
1736
  #. translators: 1: ERROR tag 2: meta_key
1737
+ #: includes/class-mla-data.php:3360
1738
  #, php-format
1739
  msgid "%1$s: Adding meta:%2$s; not found"
1740
  msgstr ""
1741
 
1742
  #. translators: 1: meta_key
1743
+ #: includes/class-mla-data.php:3367
1744
  #, php-format
1745
  msgid "Deleting Null meta:%1$s"
1746
  msgstr ""
1747
 
1748
  #. translators: 1: element name 2: old_value 3: new_value
1749
+ #: includes/class-mla-data.php:3377 includes/class-mla-data.php:3534
1750
+ #: includes/class-mla-data.php:3600 includes/class-mla-data.php:3626
1751
+ #: includes/class-mla-data.php:3668 includes/class-mla-data.php:3681
1752
+ #: includes/class-mla-data.php:3690 includes/class-mla-data.php:3701
1753
+ #: includes/class-mla-data.php:3712 includes/class-mla-data.php:3725
1754
+ #: includes/class-mla-data.php:3734 includes/class-mla-data.php:3743
1755
+ #: includes/class-mla-mime-types.php:964 includes/class-mla-mime-types.php:2094
1756
  #, php-format
1757
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
1758
  msgstr ""
1759
 
1760
  #. translators: 1: ERROR tag 2: meta_key
1761
+ #: includes/class-mla-data.php:3382
1762
  #, php-format
1763
  msgid "%1$s: Changing meta:%2$s; not found"
1764
  msgstr ""
1765
 
1766
  #. translators: 1: meta_key
1767
+ #: includes/class-mla-data.php:3489
1768
  #, php-format
1769
  msgid "Deleting old %1$s values"
1770
  msgstr ""
1771
 
1772
  #. translators: 1: meta_key 2: old_value 3: new_value 4: update count
1773
+ #: includes/class-mla-data.php:3519
1774
  #, php-format
1775
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\"; %4$d updates"
1776
  msgstr ""
1777
 
1778
+ #: includes/class-mla-data.php:3577
1779
  msgid "Could not retrieve Attachment."
1780
  msgstr ""
1781
 
1782
  #. translators: 1: ERROR tag 2: old_value
1783
+ #: includes/class-mla-data.php:3623
1784
  #, php-format
1785
  msgid "%1$s: Could not change Name/Slug \"%2$s\"; name already exists"
1786
  msgstr ""
1787
 
1788
  #. translators: 1: old_value
1789
+ #: includes/class-mla-data.php:3652
1790
  #, php-format
1791
  msgid "Deleting ALT Text, was \"%1$s\""
1792
  msgstr ""
1793
 
1794
  #. translators: 1: ERROR tag 2: old_value
1795
+ #: includes/class-mla-data.php:3655
1796
  #, php-format
1797
  msgid "%1$s: Could not delete ALT Text, remains \"%2$s\""
1798
  msgstr ""
1799
 
1800
  #. translators: 1: ERROR tag 2: old_value 3: new_value
1801
+ #: includes/class-mla-data.php:3671
1802
  #, php-format
1803
  msgid "%1$s: Could not change ALT Text from \"%2$s\" to \"%3$s\""
1804
  msgstr ""
1805
 
1806
+ #: includes/class-mla-data.php:3701 includes/class-mla-list-table.php:916
1807
+ #: includes/class-mla-list-table.php:919 includes/class-mla-list-table.php:922
1808
+ #: includes/class-mla-list-table.php:990 includes/class-mla-options.php:2448
1809
+ #: includes/class-mla-options.php:2830
1810
  msgid "Parent"
1811
  msgstr ""
1812
 
1813
+ #: includes/class-mla-data.php:3712 includes/class-mla-edit-media.php:655
1814
+ #: includes/class-mla-edit-media.php:858 includes/class-mla-main.php:2045
1815
+ #: includes/class-mla-settings.php:1573 includes/class-mla-settings.php:1830
1816
  msgid "Menu Order"
1817
  msgstr ""
1818
 
1819
+ #: includes/class-mla-data.php:3725 includes/class-mla-edit-media.php:395
1820
+ #: includes/class-mla-list-table.php:1370
1821
+ #: includes/class-mla-list-table.php:1373 includes/class-mla-main.php:1915
1822
+ #: includes/class-mla-main.php:2017
1823
  msgid "Author"
1824
  msgstr ""
1825
 
1826
+ #: includes/class-mla-data.php:3734 includes/class-mla-edit-media.php:420
1827
+ #: includes/class-mla-main.php:2057
1828
  msgid "Comments"
1829
  msgstr ""
1830
 
1831
+ #: includes/class-mla-data.php:3743 includes/class-mla-edit-media.php:421
1832
+ #: includes/class-mla-main.php:2058
1833
  msgid "Pings"
1834
  msgstr ""
1835
 
1836
+ #: includes/class-mla-data.php:3775
1837
  msgid "Adding"
1838
  msgstr ""
1839
 
1840
+ #: includes/class-mla-data.php:3780
1841
  msgid "Removing"
1842
  msgstr ""
1843
 
1844
+ #: includes/class-mla-data.php:3789
1845
  msgid "Replacing"
1846
  msgstr ""
1847
 
1848
+ #: includes/class-mla-data.php:3797
1849
  msgid "Ignoring"
1850
  msgstr ""
1851
 
1852
  #. translators: 1: action_name, 2: taxonomy
1853
+ #: includes/class-mla-data.php:3810
1854
  #, php-format
1855
  msgid "%1$s \"%2$s\" terms"
1856
  msgstr ""
1857
 
1858
  #. translators: 1: taxonomy
1859
+ #: includes/class-mla-data.php:3814
1860
  #, php-format
1861
  msgid "You cannot assign \"%1$s\" terms"
1862
  msgstr ""
1863
 
1864
  #. translators: 1: post ID
1865
+ #: includes/class-mla-data.php:3826 includes/class-mla-main.php:1219
1866
  #, php-format
1867
  msgid "Item %1$d, no changes detected."
1868
  msgstr ""
1869
 
1870
  #. translators: 1: post ID
1871
+ #: includes/class-mla-data.php:3847
1872
  #, php-format
1873
  msgid "Item %1$d updated."
1874
  msgstr ""
1875
 
1876
  #. translators: 1: ERROR tag 2: post ID
1877
+ #: includes/class-mla-data.php:3861
1878
  #, php-format
1879
  msgid "%1$s: Item %2$d update failed."
1880
  msgstr ""
1881
 
1882
+ #: includes/class-mla-edit-media.php:133 includes/class-mla-edit-media.php:184
1883
+ #: includes/class-mla-edit-media.php:237 includes/class-mla-main.php:463
1884
+ #: includes/class-mla-main.php:999 includes/class-mla-main.php:1728
1885
+ #: includes/class-mla-media-modal.php:233 includes/class-mla-options.php:1961
1886
+ #: includes/class-mla-polylang-support.php:433
1887
+ #: includes/class-mla-settings.php:364
1888
+ #: includes/class-mla-thumbnail-generation.php:99
1889
  msgctxt "tag_delimiter"
1890
  msgid ","
1891
  msgstr ""
1892
 
1893
+ #: includes/class-mla-edit-media.php:179
1894
  msgid "Upload New Media items"
1895
  msgstr ""
1896
 
1897
+ #: includes/class-mla-edit-media.php:180 includes/class-mla-edit-media.php:415
1898
  msgid "Open Bulk Edit area"
1899
  msgstr ""
1900
 
1901
+ #: includes/class-mla-edit-media.php:181
1902
  msgid "Close Bulk Edit area"
1903
  msgstr ""
1904
 
1905
+ #: includes/class-mla-edit-media.php:185 includes/class-mla-edit-media.php:239
1906
+ #: includes/class-mla-main.php:450
1907
  msgid "An ajax.fail error has occurred. Please reload the page and try again."
1908
  msgstr ""
1909
 
1910
+ #: includes/class-mla-edit-media.php:186 includes/class-mla-edit-media.php:240
1911
+ #: includes/class-mla-main.php:451
1912
  msgid "An ajax.done error has occurred. Please reload the page and try again."
1913
  msgstr ""
1914
 
1915
+ #: includes/class-mla-edit-media.php:338 includes/class-mla-main.php:1950
1916
  msgid "more"
1917
  msgstr ""
1918
 
1919
+ #: includes/class-mla-edit-media.php:339 includes/class-mla-main.php:1951
1920
  msgid "less"
1921
  msgstr ""
1922
 
1923
+ #: includes/class-mla-edit-media.php:342 includes/class-mla-edit-media.php:373
1924
+ #: includes/class-mla-main.php:1954 includes/class-mla-main.php:1992
1925
  msgid "Add"
1926
  msgstr ""
1927
 
1928
+ #: includes/class-mla-edit-media.php:343 includes/class-mla-edit-media.php:374
1929
+ #: includes/class-mla-main.php:1955 includes/class-mla-main.php:1993
1930
  msgid "Remove"
1931
  msgstr ""
1932
 
1933
+ #: includes/class-mla-edit-media.php:344 includes/class-mla-edit-media.php:375
1934
+ #: includes/class-mla-main.php:1956 includes/class-mla-main.php:1994
1935
+ #: includes/class-mla-options.php:1476 includes/class-mla-options.php:1575
1936
+ #: includes/class-mla-options.php:1619 includes/class-mla-options.php:2715
1937
+ #: includes/class-mla-options.php:2769 includes/class-mla-options.php:2889
1938
+ #: includes/class-mla-options.php:2984 includes/class-mla-options.php:3030
1939
  msgid "Replace"
1940
  msgstr ""
1941
 
1942
+ #: includes/class-mla-edit-media.php:414
1943
  msgid ""
1944
  "IMPORTANT: Make your entries BEFORE uploading new items. Pull down the Help "
1945
  "menu for more information."
1946
  msgstr ""
1947
 
1948
+ #: includes/class-mla-edit-media.php:416 includes/class-mla-main.php:2051
1949
+ #: includes/class-mla-settings.php:3223
1950
  msgid "Reset"
1951
  msgstr ""
1952
 
1953
+ #: includes/class-mla-edit-media.php:422 includes/class-mla-main.php:2059
1954
+ #: includes/class-mla-main.php:2105 includes/class-mla-settings.php:1840
1955
+ #: includes/class-mla-settings.php:1878 includes/class-mla-settings.php:2305
1956
  msgid "No Change"
1957
  msgstr ""
1958
 
1959
+ #: includes/class-mla-edit-media.php:423 includes/class-mla-main.php:2060
1960
  msgid "Allow"
1961
  msgstr ""
1962
 
1963
+ #: includes/class-mla-edit-media.php:424 includes/class-mla-main.php:2061
1964
  msgid "Do not allow"
1965
  msgstr ""
1966
 
1967
+ #: includes/class-mla-edit-media.php:431 includes/class-mla-list-table.php:916
1968
+ #: includes/class-mla-list-table.php:987 includes/class-mla-main.php:2043
1969
  msgid "Parent ID"
1970
  msgstr ""
1971
 
1972
+ #: includes/class-mla-edit-media.php:432 includes/class-mla-edit-media.php:838
1973
+ #: includes/class-mla-main.php:2044
1974
+ #: includes/class-mla-upload-optional-list-table.php:281
1975
  msgid "Select"
1976
  msgstr ""
1977
 
1978
+ #: includes/class-mla-edit-media.php:512
1979
  msgid "Custom field mapping updated."
1980
  msgstr ""
1981
 
1982
+ #: includes/class-mla-edit-media.php:513
1983
  msgid "IPTC/EXIF mapping updated."
1984
  msgstr ""
1985
 
1986
  #. translators: date_i18n format for last modified date and time
1987
+ #: includes/class-mla-edit-media.php:531
1988
  msgid "M j, Y @ G:i"
1989
  msgstr ""
1990
 
1991
+ #: includes/class-mla-edit-media.php:533
1992
  msgid "Last modified"
1993
  msgstr ""
1994
 
1995
+ #: includes/class-mla-edit-media.php:554
1996
  msgid "Map Custom Field metadata for this item"
1997
  msgstr ""
1998
 
1999
+ #: includes/class-mla-edit-media.php:554 includes/class-mla-main.php:1639
2000
+ #: includes/class-mla-main.php:2064
2001
  msgid "Map Custom Field metadata"
2002
  msgstr ""
2003
 
2004
+ #: includes/class-mla-edit-media.php:556
2005
  msgid "Map IPTC/EXIF metadata for this item"
2006
  msgstr ""
2007
 
2008
+ #: includes/class-mla-edit-media.php:556 includes/class-mla-main.php:1642
2009
+ #: includes/class-mla-main.php:2063
2010
  msgid "Map IPTC/EXIF metadata"
2011
  msgstr ""
2012
 
2013
+ #: includes/class-mla-edit-media.php:651 includes/class-mla-edit-media.php:839
2014
  msgid "Parent Info"
2015
  msgstr ""
2016
 
2017
+ #: includes/class-mla-edit-media.php:661 includes/class-mla-edit-media.php:882
2018
  msgid "Attachment Metadata"
2019
  msgstr ""
2020
 
2021
  #. translators: 1: ERROR tag 2: function name 3: template key
2022
+ #: includes/class-mla-edit-media.php:731 includes/class-mla-edit-media.php:771
2023
+ #: includes/class-mla-main.php:683 includes/class-mla-settings.php:593
2024
  #, php-format
2025
  msgctxt "error_log"
2026
  msgid "%1$s: %2$s discarding \"%3$s\"; no title/order"
2027
  msgstr ""
2028
 
2029
+ #: includes/class-mla-edit-media.php:820 includes/class-mla-list-table.php:562
2030
  msgctxt "post state"
2031
  msgid "Pending"
2032
  msgstr ""
2033
 
2034
+ #: includes/class-mla-edit-media.php:837
2035
  msgid "Post Parent"
2036
  msgstr ""
2037
 
2038
+ #: includes/class-mla-edit-media.php:838 includes/class-mla-main.php:1839
2039
  msgid "Select Parent"
2040
  msgstr ""
2041
 
2042
+ #: includes/class-mla-edit-media.php:905 includes/class-mla-edit-media.php:943
2043
+ #: includes/class-mla-edit-media.php:979 includes/class-mla-edit-media.php:1014
2044
+ #: includes/class-mla-list-table.php:1037
2045
+ #: includes/class-mla-list-table.php:1086
2046
+ #: includes/class-mla-list-table.php:1132
2047
+ #: includes/class-mla-list-table.php:1177
2048
  msgid "PARENT"
2049
  msgstr ""
2050
 
2051
+ #: includes/class-mla-list-table.php:165
2052
  msgid "All"
2053
  msgstr ""
2054
 
2055
+ #: includes/class-mla-list-table.php:372
2056
+ #: includes/class-mla-upload-list-table.php:263
2057
+ #: includes/class-mla-view-list-table.php:209
2058
  msgid "List View"
2059
  msgstr ""
2060
 
2061
+ #: includes/class-mla-list-table.php:439 includes/class-mla-list-table.php:472
2062
+ #: includes/class-mla-list-table.php:916 includes/class-mla-list-table.php:987
2063
+ #: includes/class-mla-list-table.php:1210
2064
+ #: includes/class-mla-list-table.php:1254
2065
+ #: includes/class-mla-list-table.php:1286
2066
+ #: includes/class-mla-list-table.php:1370
2067
  msgid "Filter by"
2068
  msgstr ""
2069
 
2070
+ #: includes/class-mla-list-table.php:449
2071
+ #: includes/class-mla-media-modal-ajax.php:490
2072
  msgid "Not Supported"
2073
  msgstr ""
2074
 
2075
  #. translators: 1: column_name 2: column_values
2076
+ #: includes/class-mla-list-table.php:492
2077
+ #: includes/class-mla-upload-list-table.php:339
2078
+ #: includes/class-mla-upload-optional-list-table.php:228
2079
+ #: includes/class-mla-view-list-table.php:285
2080
  #, php-format
2081
  msgid "column_default: %1$s, %2$s"
2082
  msgstr ""
2083
 
2084
+ #: includes/class-mla-list-table.php:540 includes/class-mla-list-table.php:666
2085
+ #: includes/class-mla-list-table.php:1042
2086
+ #: includes/class-mla-list-table.php:1091
2087
+ #: includes/class-mla-list-table.php:1137
2088
+ #: includes/class-mla-list-table.php:1182
2089
+ #: includes/class-mla-list-table.php:1390
2090
+ #: includes/class-mla-list-table.php:1707
2091
+ #: includes/class-mla-polylang-support.php:432
2092
+ #: includes/class-mla-upload-list-table.php:404
2093
+ #: includes/class-mla-upload-list-table.php:710
2094
+ #: includes/class-mla-view-list-table.php:351
2095
+ #: includes/class-mla-view-list-table.php:566
2096
  msgid "Edit"
2097
  msgstr ""
2098
 
2099
+ #: includes/class-mla-list-table.php:565
2100
+ #: includes/class-mla-thumbnail-generation.php:440
2101
  msgid "Trash"
2102
  msgstr ""
2103
 
2104
+ #: includes/class-mla-list-table.php:655
2105
  msgid "Restore this item from the Trash"
2106
  msgstr ""
2107
 
2108
+ #: includes/class-mla-list-table.php:655 includes/class-mla-list-table.php:1704
2109
  msgid "Restore"
2110
  msgstr ""
2111
 
2112
+ #: includes/class-mla-list-table.php:666
2113
+ #: includes/class-mla-upload-list-table.php:404
2114
+ #: includes/class-mla-view-list-table.php:351
2115
  msgid "Edit this item"
2116
  msgstr ""
2117
 
2118
+ #: includes/class-mla-list-table.php:667
2119
+ #: includes/class-mla-upload-list-table.php:406
2120
+ #: includes/class-mla-view-list-table.php:353
2121
  msgid "Edit this item inline"
2122
  msgstr ""
2123
 
2124
+ #: includes/class-mla-list-table.php:667 includes/class-mla-main.php:2037
2125
+ #: includes/class-mla-options.php:1351 includes/class-mla-options.php:1655
2126
+ #: includes/class-mla-upload-list-table.php:406
2127
+ #: includes/class-mla-view-list-table.php:353
2128
  msgid "Quick Edit"
2129
  msgstr ""
2130
 
2131
+ #: includes/class-mla-list-table.php:673
2132
  msgid "Move this item to the Trash"
2133
  msgstr ""
2134
 
2135
+ #: includes/class-mla-list-table.php:673 includes/class-mla-list-table.php:1710
2136
  msgid "Move to Trash"
2137
  msgstr ""
2138
 
2139
+ #: includes/class-mla-list-table.php:678
2140
+ #: includes/class-mla-upload-list-table.php:410
2141
+ #: includes/class-mla-view-list-table.php:359
2142
  msgid "Delete this item Permanently"
2143
  msgstr ""
2144
 
2145
+ #: includes/class-mla-list-table.php:678 includes/class-mla-list-table.php:1705
2146
+ #: includes/class-mla-list-table.php:1712
2147
+ #: includes/class-mla-upload-list-table.php:410
2148
+ #: includes/class-mla-view-list-table.php:359
2149
+ #: includes/class-mla-view-list-table.php:567
2150
  msgid "Delete Permanently"
2151
  msgstr ""
2152
 
2153
+ #: includes/class-mla-list-table.php:686 includes/class-mla-settings.php:3213
2154
  msgid "Download"
2155
  msgstr ""
2156
 
2157
+ #: includes/class-mla-list-table.php:690 includes/class-mla-settings.php:1818
2158
  msgid "View"
2159
  msgstr ""
2160
 
2161
+ #: includes/class-mla-list-table.php:984
2162
  msgid "(no title: bad ID)"
2163
  msgstr ""
2164
 
2165
+ #: includes/class-mla-list-table.php:1257 includes/class-mla-settings.php:1923
2166
+ #: includes/class-mla-settings.php:2288
2167
  msgid "MIME Type"
2168
  msgstr ""
2169
 
2170
+ #: includes/class-mla-list-table.php:1290
2171
  msgid "Base File"
2172
  msgstr ""
2173
 
2174
+ #: includes/class-mla-list-table.php:1306
2175
+ #: includes/class-mla-list-table.php:1339
2176
  msgid "Unpublished"
2177
  msgstr ""
2178
 
2179
  #. translators: 1: upload/last modified date and time
2180
+ #: includes/class-mla-list-table.php:1315
2181
+ #: includes/class-mla-list-table.php:1346
2182
  #, php-format
2183
  msgid "%1$s from now"
2184
  msgstr ""
2185
 
2186
  #. translators: 1: upload/last modified date and time
2187
+ #: includes/class-mla-list-table.php:1318
2188
+ #: includes/class-mla-list-table.php:1348
2189
  #, php-format
2190
  msgid "%1$s ago"
2191
  msgstr ""
2192
 
2193
+ #: includes/class-mla-list-table.php:1412
2194
  msgid "Set Parent"
2195
  msgstr ""
2196
 
2197
+ #: includes/class-mla-list-table.php:1559
2198
  msgctxt "uploaded files"
2199
  msgid "All"
2200
  msgid_plural "All"
2201
  msgstr[0] ""
2202
  msgstr[1] ""
2203
 
2204
+ #: includes/class-mla-list-table.php:1804
2205
  msgid "Filter"
2206
  msgstr ""
2207
 
2208
+ #: includes/class-mla-list-table.php:1807
2209
+ #: includes/mla-media-modal-js-template.php:68
2210
  msgid "Terms Search"
2211
  msgstr ""
2212
 
2213
+ #: includes/class-mla-list-table.php:1812
2214
+ #: includes/class-mla-polylang-support.php:1964
2215
+ #: includes/class-mla-thumbnail-generation.php:445
2216
  msgid "Clear Filter-by"
2217
  msgstr ""
2218
 
2219
+ #: includes/class-mla-list-table.php:1815
2220
  msgid "Empty Trash"
2221
  msgstr ""
2222
 
2223
+ #: includes/class-mla-main.php:452
2224
  msgid "Error while saving the changes."
2225
  msgstr ""
2226
 
2227
+ #: includes/class-mla-main.php:453 includes/class-mla-settings.php:362
2228
  msgid "Remove From Bulk Edit"
2229
  msgstr ""
2230
 
2231
+ #: includes/class-mla-main.php:455
2232
  msgid "Bulk Edit items"
2233
  msgstr ""
2234
 
2235
+ #: includes/class-mla-main.php:456 includes/class-mla-main.php:2065
2236
+ #: includes/class-mla-settings.php:375
2237
  msgid "Waiting"
2238
  msgstr ""
2239
 
2240
+ #: includes/class-mla-main.php:457 includes/class-mla-main.php:2067
2241
+ #: includes/class-mla-settings.php:377
2242
  msgid "Complete"
2243
  msgstr ""
2244
 
2245
+ #: includes/class-mla-main.php:458 includes/class-mla-settings.php:378
2246
  msgid "Unchanged"
2247
  msgstr ""
2248
 
2249
+ #: includes/class-mla-main.php:459 includes/class-mla-settings.php:379
2250
  msgid "Succeeded"
2251
  msgstr ""
2252
 
2253
+ #: includes/class-mla-main.php:460 includes/class-mla-settings.php:380
2254
  msgid "Failed"
2255
  msgstr ""
2256
 
2257
+ #: includes/class-mla-main.php:461 includes/class-mla-settings.php:383
2258
  msgid "CANCELED"
2259
  msgstr ""
2260
 
2261
+ #: includes/class-mla-main.php:572
2262
  #, php-format
2263
  msgid "Item permanently deleted."
2264
  msgid_plural "%d items permanently deleted."
2266
  msgstr[1] ""
2267
 
2268
  #. translators: 1: post ID
2269
+ #: includes/class-mla-main.php:577 includes/class-mla-main.php:2244
2270
  #, php-format
2271
  msgid "Item %1$d moved to Trash."
2272
  msgstr ""
2273
 
2274
+ #: includes/class-mla-main.php:596
2275
  msgid "Entries per page"
2276
  msgstr ""
2277
 
2278
+ #: includes/class-mla-main.php:1153
2279
  msgid "You are not allowed to edit Attachment: "
2280
  msgstr ""
2281
 
2282
  #. translators: 1: ERROR tag 2: bulk action
2283
+ #: includes/class-mla-main.php:1209
2284
  #, php-format
2285
  msgid "%1$s: Unknown bulk action %2$s"
2286
  msgstr ""
2287
 
2288
+ #: includes/class-mla-main.php:1231
2289
  msgid "no changes detected"
2290
  msgstr ""
2291
 
2292
  #. translators: 1: action name, e.g., edit
2293
+ #: includes/class-mla-main.php:1278 includes/class-mla-settings.php:1697
2294
+ #: includes/class-mla-settings.php:2164
2295
  #, php-format
2296
  msgid "Bulk Action %1$s - no items selected."
2297
  msgstr ""
2298
 
2299
+ #: includes/class-mla-main.php:1362
2300
  msgid "You do not have permission to manage attachments."
2301
  msgstr ""
2302
 
2303
  #. translators: 1: number of items
2304
+ #: includes/class-mla-main.php:1422
2305
  #, php-format
2306
  msgctxt "deleted items"
2307
  msgid "%s item deleted."
2309
  msgstr[0] ""
2310
  msgstr[1] ""
2311
 
2312
+ #: includes/class-mla-main.php:1424
2313
  msgid "No items deleted."
2314
  msgstr ""
2315
 
2316
+ #: includes/class-mla-main.php:1478
2317
  msgid "Empty Terms Search; ignored"
2318
  msgstr ""
2319
 
2320
  #. translators: 1: row-level action, e.g., single_item_delete, single_item_edit
2321
  #. translators: 1: bulk_action, e.g., single_item_delete, single_item_edit
2322
+ #: includes/class-mla-main.php:1490 includes/class-mla-settings.php:1734
2323
+ #: includes/class-mla-settings.php:2203
2324
  #, php-format
2325
  msgid "Unknown mla_admin_action - \"%1$s\""
2326
  msgstr ""
2327
 
2328
+ #: includes/class-mla-main.php:1523
2329
  msgid "term search results for"
2330
  msgstr ""
2331
 
2332
+ #: includes/class-mla-main.php:1526
2333
  msgid "post/parent results for"
2334
  msgstr ""
2335
 
2336
+ #: includes/class-mla-main.php:1528
2337
  msgid "search results for"
2338
  msgstr ""
2339
 
2340
+ #: includes/class-mla-main.php:1645 includes/class-mla-main.php:1861
2341
+ #: includes/class-mla-main.php:2052 includes/class-mla-settings.php:1577
2342
+ #: includes/class-mla-settings.php:1838 includes/class-mla-settings.php:1932
2343
+ #: includes/class-mla-settings.php:2302
2344
  msgid "Update"
2345
  msgstr ""
2346
 
2347
+ #: includes/class-mla-main.php:1796
2348
  msgid "All Post Types"
2349
  msgstr ""
2350
 
2351
+ #: includes/class-mla-main.php:1842
2352
  msgid "For"
2353
  msgstr ""
2354
 
2355
+ #: includes/class-mla-main.php:1852
2356
+ #: includes/class-mla-shortcode-support.php:929
2357
  msgid "Unattached"
2358
  msgstr ""
2359
 
2360
+ #: includes/class-mla-main.php:1857 includes/class-mla-main.php:2050
2361
+ #: includes/class-mla-polylang-support.php:1957
2362
+ #: includes/class-mla-settings.php:1578 includes/class-mla-settings.php:1837
2363
+ #: includes/class-mla-settings.php:1933 includes/class-mla-settings.php:2005
2364
+ #: includes/class-mla-settings.php:2301 includes/class-mla-settings.php:2806
2365
+ #: includes/class-mla-settings.php:2942
2366
+ #: includes/class-mla-thumbnail-generation.php:446
2367
  msgid "Cancel"
2368
  msgstr ""
2369
 
2370
+ #: includes/class-mla-main.php:2053 includes/class-mla-options.php:1365
2371
+ #: includes/class-mla-options.php:1656 includes/class-mla-settings.php:1839
2372
+ #: includes/class-mla-settings.php:2303
2373
  msgid "Bulk Edit"
2374
  msgstr ""
2375
 
2376
+ #: includes/class-mla-main.php:2066
2377
  msgid "In-process"
2378
  msgstr ""
2379
 
2380
+ #: includes/class-mla-main.php:2157
2381
  msgid "You are not allowed to delete this item."
2382
  msgstr ""
2383
 
2384
  #. translators: 1: ERROR tag 2: post ID
2385
+ #: includes/class-mla-main.php:2165
2386
  #, php-format
2387
  msgid "%1$s: Item %2$d could NOT be deleted."
2388
  msgstr ""
2389
 
2390
  #. translators: 1: post ID
2391
+ #: includes/class-mla-main.php:2172
2392
  #, php-format
2393
  msgid "Item %1$d permanently deleted."
2394
  msgstr ""
2395
 
2396
+ #: includes/class-mla-main.php:2189
2397
  msgid "You are not allowed to move this item out of the Trash."
2398
  msgstr ""
2399
 
2400
  #. translators: 1: ERROR tag 2: post ID
2401
+ #: includes/class-mla-main.php:2197
2402
  #, php-format
2403
  msgid "%1$s: Item %2$d could NOT be restored from Trash."
2404
  msgstr ""
2405
 
2406
  #. translators: 1: post ID
2407
+ #: includes/class-mla-main.php:2212
2408
  #, php-format
2409
  msgid "Item %1$d restored from Trash."
2410
  msgstr ""
2411
 
2412
+ #: includes/class-mla-main.php:2229
2413
  msgid "You are not allowed to move this item to the Trash."
2414
  msgstr ""
2415
 
2416
  #. translators: 1: ERROR tag 2: post ID
2417
+ #: includes/class-mla-main.php:2237
2418
  #, php-format
2419
  msgid "%1$s: Item %2$d could NOT be moved to Trash."
2420
  msgstr ""
2421
 
2422
+ #: includes/class-mla-media-modal-ajax.php:299
2423
+ #: includes/class-mla-media-modal-ajax.php:305
2424
+ #: includes/class-mla-media-modal-ajax.php:404
2425
+ #: includes/class-mla-media-modal-ajax.php:439
2426
+ #: includes/class-mla-media-modal-ajax.php:484
2427
  msgid "Click to toggle"
2428
  msgstr ""
2429
 
2430
+ #: includes/class-mla-media-modal-ajax.php:450
2431
  msgid "Tags"
2432
  msgstr ""
2433
 
2435
  #. translators: %s: add new taxonomy label
2436
  #. translators: %s: add new View
2437
  #. translators: %s: add new Upload MIME Type
2438
+ #: includes/class-mla-media-modal-ajax.php:452
2439
+ #: includes/class-mla-objects.php:46 includes/class-mla-objects.php:76
2440
+ #: includes/class-mla-settings.php:1818 includes/class-mla-settings.php:2284
2441
  #, php-format
2442
  msgid "Add New %1$s"
2443
  msgstr ""
2444
 
2445
+ #: includes/class-mla-media-modal-ajax.php:468
2446
  msgid "Choose from the most used tags"
2447
  msgstr ""
2448
 
2449
+ #: includes/class-mla-media-modal.php:106
2450
  msgid "Show all dates"
2451
  msgstr ""
2452
 
2453
  #. translators: 1: month name, 2: 4-digit year
2454
+ #: includes/class-mla-media-modal.php:121
2455
  #, php-format
2456
  msgid "%1$s %2$d"
2457
  msgstr ""
2458
 
2459
+ #: includes/class-mla-media-modal.php:357
2460
  msgid "Search Box"
2461
  msgstr ""
2462
 
2463
+ #: includes/class-mla-media-modal.php:358
2464
  msgid "Loading..."
2465
  msgstr ""
2466
 
2467
+ #: includes/class-mla-media-modal.php:584
2468
+ #: includes/class-mla-media-modal.php:600
2469
  msgid "Search Terms"
2470
  msgstr ""
2471
 
2472
+ #: includes/class-mla-media-modal.php:585
2473
  msgid "There are no taxonomies to search"
2474
  msgstr ""
2475
 
2476
+ #: includes/class-mla-media-modal.php:603
2477
  msgid "All phrases"
2478
  msgstr ""
2479
 
2480
+ #: includes/class-mla-media-modal.php:605
2481
  msgid "Any phrase"
2482
  msgstr ""
2483
 
2484
+ #: includes/class-mla-media-modal.php:607
2485
  msgid "All terms"
2486
  msgstr ""
2487
 
2488
+ #: includes/class-mla-media-modal.php:609
2489
  msgid "Any term"
2490
  msgstr ""
2491
 
2492
+ #: includes/class-mla-media-modal.php:611
2493
  msgid "Exact"
2494
  msgstr ""
2495
 
2496
+ #: includes/class-mla-mime-types.php:364
2497
  msgctxt "post_mime_types"
2498
  msgid "Manage"
2499
  msgstr ""
2500
 
2501
+ #: includes/class-mla-mime-types.php:758
2502
  msgctxt "post_mime_types_description"
2503
  msgid "Copied from previous filter/plugin"
2504
  msgstr ""
2505
 
2506
+ #: includes/class-mla-mime-types.php:859 includes/class-mla-mime-types.php:976
2507
  msgid "Ignoring specification for Post MIME Type; using slug"
2508
  msgstr ""
2509
 
2510
  #. translators: 1: element name 2: bad_value 3: good_value
2511
+ #: includes/class-mla-mime-types.php:865 includes/class-mla-mime-types.php:1957
2512
  #, php-format
2513
  msgid "<br>Changing %1$s \"%2$s\" to valid value \"%3$s\""
2514
  msgstr ""
2515
 
2516
+ #: includes/class-mla-mime-types.php:865 includes/class-mla-mime-types.php:953
2517
+ #: includes/class-mla-mime-types.php:964 includes/class-mla-settings.php:1562
2518
+ #: includes/class-mla-settings.php:1819
2519
  msgid "Slug"
2520
  msgstr ""
2521
 
2522
  #. translators: 1: ERROR tag 2: slug
2523
+ #: includes/class-mla-mime-types.php:873 includes/class-mla-mime-types.php:961
2524
  #, php-format
2525
  msgid "%1$s: Could not add Slug \"%2$s\"; value already exists"
2526
  msgstr ""
2527
 
2528
  #. translators: 1: slug
2529
+ #: includes/class-mla-mime-types.php:908
2530
  #, php-format
2531
  msgid "Edit view \"%1$s\"; added"
2532
  msgstr ""
2533
 
2534
  #. translators: 1: element name 2: bad_value 3: good_value
2535
+ #: includes/class-mla-mime-types.php:953 includes/class-mla-mime-types.php:2083
2536
  #, php-format
2537
  msgid "<br>Changing new %1$s \"%2$s\" to valid value \"%3$s\""
2538
  msgstr ""
2539
 
2540
  #. translators: 1: slug
2541
+ #: includes/class-mla-mime-types.php:1006
2542
  #, php-format
2543
  msgid "Edit view \"%1$s\"; no changes detected"
2544
  msgstr ""
2545
 
2546
  #. translators: 1: slug
2547
+ #: includes/class-mla-mime-types.php:1020
2548
  #, php-format
2549
  msgid "Edit view \"%1$s\"; updated"
2550
  msgstr ""
2551
 
2552
  #. translators: 1: slug
2553
+ #: includes/class-mla-mime-types.php:1093
2554
  #, php-format
2555
  msgid "View \"%1$s\" reverted to standard"
2556
  msgstr ""
2557
 
2558
  #. translators: 1: slug
2559
+ #: includes/class-mla-mime-types.php:1099
2560
  #, php-format
2561
  msgid "View \"%1$s\" deleted"
2562
  msgstr ""
2563
 
2564
  #. translators: 1: ERROR tag 2: slug
2565
+ #: includes/class-mla-mime-types.php:1107
2566
  #, php-format
2567
  msgid "%1$s: Did not find view \"%2$s\""
2568
  msgstr ""
2569
 
2570
+ #: includes/class-mla-mime-types.php:1370
2571
  msgctxt "table_view_singular"
2572
  msgid "Active"
2573
  msgstr ""
2574
 
2575
+ #: includes/class-mla-mime-types.php:1371
2576
  msgctxt "table_view_plural"
2577
  msgid "Active"
2578
  msgstr ""
2579
 
2580
+ #: includes/class-mla-mime-types.php:1374
2581
  msgctxt "table_view_singular"
2582
  msgid "Inactive"
2583
  msgstr ""
2584
 
2585
+ #: includes/class-mla-mime-types.php:1375
2586
  msgctxt "table_view_plural"
2587
  msgid "Inactive"
2588
  msgstr ""
2589
 
2590
+ #: includes/class-mla-mime-types.php:1378
2591
  msgctxt "table_view_singular"
2592
  msgid "WordPress"
2593
  msgstr ""
2594
 
2595
+ #: includes/class-mla-mime-types.php:1379
2596
  msgctxt "table_view_plural"
2597
  msgid "WordPress"
2598
  msgstr ""
2599
 
2600
+ #: includes/class-mla-mime-types.php:1382
2601
  msgctxt "table_view_singular"
2602
  msgid "MLA"
2603
  msgstr ""
2604
 
2605
+ #: includes/class-mla-mime-types.php:1383
2606
  msgctxt "table_view_plural"
2607
  msgid "MLA"
2608
  msgstr ""
2609
 
2610
+ #: includes/class-mla-mime-types.php:1386
2611
  msgctxt "table_view_singular"
2612
  msgid "Custom"
2613
  msgstr ""
2614
 
2615
+ #: includes/class-mla-mime-types.php:1387
2616
  msgctxt "table_view_plural"
2617
  msgid "Custom"
2618
  msgstr ""
2619
 
2620
+ #: includes/class-mla-mime-types.php:1642
2621
  msgid "icon"
2622
  msgstr ""
2623
 
2624
+ #: includes/class-mla-mime-types.php:1941
2625
+ #: includes/class-mla-mime-types.php:2040
2626
  msgid "Cannot load Upload MIME Types"
2627
  msgstr ""
2628
 
2629
+ #: includes/class-mla-mime-types.php:1952
2630
  msgid "Extension is required"
2631
  msgstr ""
2632
 
2633
+ #: includes/class-mla-mime-types.php:1957
2634
+ #: includes/class-mla-mime-types.php:2083
2635
+ #: includes/class-mla-mime-types.php:2094 includes/class-mla-settings.php:1921
2636
+ #: includes/class-mla-settings.php:2286
2637
  msgid "Extension"
2638
  msgstr ""
2639
 
2640
  #. translators: 1: ERROR tag 2: slug
2641
+ #: includes/class-mla-mime-types.php:1965
2642
  #, php-format
2643
  msgid "%1$s: Could not add extension \"%2$s\"; value already exists"
2644
  msgstr ""
2645
 
2646
+ #: includes/class-mla-mime-types.php:1973
2647
  msgid "MIME type is required"
2648
  msgstr ""
2649
 
2650
  #. translators: 1: ERROR tag 2: clean_mime_type
2651
+ #: includes/class-mla-mime-types.php:1978
2652
+ #: includes/class-mla-mime-types.php:2125
2653
  #, php-format
2654
  msgid "%1$s: Bad MIME type; try \"%2$s\""
2655
  msgstr ""
2656
 
2657
  #. translators: 1: slug
2658
+ #: includes/class-mla-mime-types.php:2015
2659
  #, php-format
2660
  msgid "Upload MIME Type \"%1$s\"; added"
2661
  msgstr ""
2662
 
2663
+ #: includes/class-mla-mime-types.php:2021
2664
+ #: includes/class-mla-mime-types.php:2210
2665
+ #: includes/class-mla-mime-types.php:2289
2666
  msgid "Cannot update Upload MIME Types"
2667
  msgstr ""
2668
 
2669
  #. translators: 1: ERROR tag 2: slug
2670
+ #: includes/class-mla-mime-types.php:2091
2671
  #, php-format
2672
  msgid "%1$s: Could not add new extension \"%2$s\"; value already exists"
2673
  msgstr ""
2674
 
2675
  #. translators: 1: slug
2676
+ #: includes/class-mla-mime-types.php:2190
2677
  #, php-format
2678
  msgid "Edit type \"%1$s\"; no changes detected"
2679
  msgstr ""
2680
 
2681
  #. translators: 1: slug
2682
+ #: includes/class-mla-mime-types.php:2204
2683
  #, php-format
2684
  msgid "Edit type \"%1$s\"; updated"
2685
  msgstr ""
2686
 
2687
  #. translators: 1: slug
2688
+ #: includes/class-mla-mime-types.php:2277
2689
  #, php-format
2690
  msgid "Upload MIME Type \"%1$s\"; reverted to standard"
2691
  msgstr ""
2692
 
2693
  #. translators: 1: slug
2694
+ #: includes/class-mla-mime-types.php:2283
2695
  #, php-format
2696
  msgid "Upload MIME Type \"%1$s\"; deleted"
2697
  msgstr ""
2698
 
2699
  #. translators: 1: ERROR tag 2: slug
2700
+ #: includes/class-mla-mime-types.php:2298
2701
  #, php-format
2702
  msgid "%1$s: Did not find Upload type \"%2$s\""
2703
  msgstr ""
2704
 
2705
+ #: includes/class-mla-objects.php:37
2706
  msgctxt "taxonomy_name_plural"
2707
  msgid "Att. Categories"
2708
  msgstr ""
2709
 
2710
+ #: includes/class-mla-objects.php:38
2711
  msgctxt "taxonomy_name_singular"
2712
  msgid "Att. Category"
2713
  msgstr ""
2714
 
2715
+ #: includes/class-mla-objects.php:39
2716
  msgid "Search Att. Categories"
2717
  msgstr ""
2718
 
2719
+ #: includes/class-mla-objects.php:40
2720
  msgid "All Att. Categories"
2721
  msgstr ""
2722
 
2723
+ #: includes/class-mla-objects.php:41 includes/class-mla-objects.php:42
2724
  msgid "Parent Att. Category"
2725
  msgstr ""
2726
 
2727
+ #: includes/class-mla-objects.php:43
2728
  msgid "Edit Att. Category"
2729
  msgstr ""
2730
 
2731
+ #: includes/class-mla-objects.php:44
2732
  msgid "Update Att. Category"
2733
  msgstr ""
2734
 
2735
+ #: includes/class-mla-objects.php:46 includes/class-mla-objects.php:48
2736
  msgid "Att. Category"
2737
  msgstr ""
2738
 
2739
+ #: includes/class-mla-objects.php:47
2740
  msgid "New Att. Category Name"
2741
  msgstr ""
2742
 
2743
+ #: includes/class-mla-objects.php:67
2744
  msgctxt "taxonomy_name_plural"
2745
  msgid "Att. Tags"
2746
  msgstr ""
2747
 
2748
+ #: includes/class-mla-objects.php:68
2749
  msgctxt "taxonomy_name_singular"
2750
  msgid "Att. Tag"
2751
  msgstr ""
2752
 
2753
+ #: includes/class-mla-objects.php:69
2754
  msgid "Search Att. Tags"
2755
  msgstr ""
2756
 
2757
+ #: includes/class-mla-objects.php:70
2758
  msgid "All Att. Tags"
2759
  msgstr ""
2760
 
2761
+ #: includes/class-mla-objects.php:71 includes/class-mla-objects.php:72
2762
  msgid "Parent Att. Tag"
2763
  msgstr ""
2764
 
2765
+ #: includes/class-mla-objects.php:73
2766
  msgid "Edit Att. Tag"
2767
  msgstr ""
2768
 
2769
+ #: includes/class-mla-objects.php:74
2770
  msgid "Update Att. Tag"
2771
  msgstr ""
2772
 
2773
+ #: includes/class-mla-objects.php:76 includes/class-mla-objects.php:78
2774
  msgid "Att. Tag"
2775
  msgstr ""
2776
 
2777
+ #: includes/class-mla-objects.php:77
2778
  msgid "New Att. Tag Name"
2779
  msgstr ""
2780
 
2781
+ #: includes/class-mla-objects.php:139
2782
  msgid "Attachments"
2783
  msgstr ""
2784
 
2785
  #. translators: 1: ERROR tag 2: taxonomy 3: error message
2786
+ #: includes/class-mla-objects.php:238
2787
  #, php-format
2788
  msgctxt "error_log"
2789
  msgid ""
2790
  "%1$s: mla_taxonomy_column_filter( \"%2$s\" ) - get_term failed: \"%3$s\""
2791
  msgstr ""
2792
 
2793
+ #: includes/class-mla-objects.php:243
2794
  msgid "click to search"
2795
  msgstr ""
2796
 
2797
+ #: includes/class-mla-objects.php:270
2798
  msgid "Shortcode(s), HTML and/or Plain Text"
2799
  msgstr ""
2800
 
2801
+ #: includes/class-mla-objects.php:278
2802
  msgid "MLA Text"
2803
  msgstr ""
2804
 
2805
+ #: includes/class-mla-objects.php:320
2806
  msgid "Automatically add paragraphs"
2807
  msgstr ""
2808
 
2809
+ #: includes/class-mla-options.php:329
2810
  msgid "error loading tpls/mla-option-templates.tpl"
2811
  msgstr ""
2812
 
2813
+ #: includes/class-mla-options.php:332
2814
  msgid "tpls/mla-option-templates.tpl not found"
2815
  msgstr ""
2816
 
 
 
 
2817
  #. translators: 1: ERROR tag 2: option name 3: action, e.g., update, delete, reset
2818
+ #: includes/class-mla-options.php:484 includes/class-mla-options.php:661
2819
+ #: includes/class-mla-options.php:737 includes/class-mla-options.php:1694
2820
+ #: includes/class-mla-options.php:3170
2821
  #, php-format
2822
  msgid "%1$s: Custom %2$s unknown action \"%3$s\""
2823
  msgstr ""
2824
 
2825
+ #: includes/class-mla-options.php:575
2826
  msgid "Support"
2827
  msgstr ""
2828
 
2829
+ #: includes/class-mla-options.php:576
2830
  msgid "Inline Edit"
2831
  msgstr ""
2832
 
2833
+ #: includes/class-mla-options.php:577
2834
  msgid "Term Search"
2835
  msgstr ""
2836
 
2837
+ #: includes/class-mla-options.php:578
2838
  msgid "Checklist"
2839
  msgstr ""
2840
 
2841
+ #: includes/class-mla-options.php:579
2842
  msgid "Checked On Top"
2843
  msgstr ""
2844
 
2845
+ #: includes/class-mla-options.php:580
2846
  msgid "List Filter"
2847
  msgstr ""
2848
 
2849
+ #: includes/class-mla-options.php:581
2850
  msgid "Taxonomy"
2851
  msgstr ""
2852
 
2853
  #. translators: 1: taxonomy name
2854
+ #: includes/class-mla-options.php:600
2855
  #, php-format
2856
  msgid "List Filter ignored; %1$s not supported."
2857
  msgstr ""
2858
 
2859
  #. translators: 1: taxonomy name
2860
+ #: includes/class-mla-options.php:607
2861
  #, php-format
2862
  msgid "Inline Edit ignored; %1$s not supported."
2863
  msgstr ""
2864
 
2865
  #. translators: 1: taxonomy name
2866
+ #: includes/class-mla-options.php:615
2867
  #, php-format
2868
  msgid "Term Search ignored; %1$s not supported."
2869
  msgstr ""
2870
 
2871
  #. translators: 1: taxonomy name
2872
+ #: includes/class-mla-options.php:625
2873
  #, php-format
2874
  msgid "Checklist ignored; %1$s not supported."
2875
  msgstr ""
2876
 
2877
  #. translators: 1: taxonomy name
2878
+ #: includes/class-mla-options.php:633
2879
  #, php-format
2880
  msgid "Checked On Top ignored; %1$s not supported."
2881
  msgstr ""
2882
 
2883
  #. translators: 1: option name, e.g., taxonomy_support
2884
+ #: includes/class-mla-options.php:651 includes/class-mla-options.php:727
2885
  #, php-format
2886
  msgid "Update custom %1$s"
2887
  msgstr ""
2888
 
2889
  #. translators: 1: option name, e.g., taxonomy_support
2890
+ #: includes/class-mla-options.php:658 includes/class-mla-options.php:734
2891
+ #: includes/class-mla-options.php:3163
2892
  #, php-format
2893
  msgid "Reset custom %1$s"
2894
  msgstr ""
2895
 
2896
+ #: includes/class-mla-options.php:687
2897
+ #: includes/mla-main-search-box-template.php:46
2898
+ #: includes/mla-media-modal-js-template.php:32
2899
  msgid "and"
2900
  msgstr ""
2901
 
2902
+ #: includes/class-mla-options.php:689
2903
+ #: includes/mla-main-search-box-template.php:48
2904
+ #: includes/mla-media-modal-js-template.php:36
2905
  msgid "or"
2906
  msgstr ""
2907
 
2908
+ #: includes/class-mla-options.php:694 includes/class-mla-settings.php:2462
2909
+ #: includes/class-mla-settings.php:2495 includes/class-mla-settings.php:2521
2910
+ #: includes/class-mla-settings.php:2599 includes/class-mla-settings.php:2645
2911
+ #: includes/class-mla-settings.php:2684
2912
+ #: includes/mla-main-search-box-template.php:51
2913
+ #: includes/mla-media-modal-js-template.php:44
2914
  msgid "Name"
2915
  msgstr ""
2916
 
2917
+ #: includes/class-mla-options.php:706
2918
+ #: includes/mla-main-search-box-template.php:55
2919
+ #: includes/mla-media-modal-js-template.php:62
2920
  msgid "Terms"
2921
  msgstr ""
2922
 
2923
+ #: includes/class-mla-options.php:1108 includes/class-mla-options.php:1154
2924
+ #: includes/class-mla-options.php:2192 includes/class-mla-options.php:2223
2925
+ #: includes/class-mla-settings.php:1884
2926
  msgid "None (select a value)"
2927
  msgstr ""
2928
 
2929
+ #: includes/class-mla-options.php:1161
2930
  msgid "Metadata (see below)"
2931
  msgstr ""
2932
 
2933
+ #: includes/class-mla-options.php:1168
2934
  msgid "Template (see below)"
2935
  msgstr ""
2936
 
2937
  #. translators: 1: ERROR tag 2: custom field name
2938
+ #: includes/class-mla-options.php:1240 includes/class-mla-options.php:2500
2939
  #, php-format
2940
  msgid "%1$s: New field %2$s already exists."
2941
  msgstr ""
2942
 
2943
  #. translators: 1: custom field name
2944
+ #: includes/class-mla-options.php:1245 includes/class-mla-options.php:2505
2945
  #, php-format
2946
  msgid "Adding new field %1$s."
2947
  msgstr ""
2948
 
2949
  #. translators: 1: custom field name
2950
+ #: includes/class-mla-options.php:1253 includes/class-mla-options.php:2513
2951
  #, php-format
2952
  msgid "Adding new rule for %1$s."
2953
  msgstr ""
2954
 
2955
  #. translators: 1: custom field name
2956
+ #: includes/class-mla-options.php:1279 includes/class-mla-options.php:2374
2957
+ #: includes/class-mla-options.php:2539
2958
  #, php-format
2959
  msgid "Deleting rule for %1$s."
2960
  msgstr ""
2961
 
2962
  #. translators: 1: custom field name 2: attribute 3: old value 4: new value
2963
+ #: includes/class-mla-options.php:1302 includes/class-mla-options.php:1323
2964
+ #: includes/class-mla-options.php:1373 includes/class-mla-options.php:1380
2965
+ #: includes/class-mla-options.php:2290 includes/class-mla-options.php:2297
2966
+ #: includes/class-mla-options.php:2304 includes/class-mla-options.php:2399
2967
+ #: includes/class-mla-options.php:2406 includes/class-mla-options.php:2441
2968
+ #: includes/class-mla-options.php:2448 includes/class-mla-options.php:2549
2969
+ #: includes/class-mla-options.php:2556 includes/class-mla-options.php:2591
2970
+ #: includes/class-mla-options.php:2598
2971
  #, php-format
2972
  msgid "%1$s changing %2$s from %3$s to %4$s."
2973
  msgstr ""
2974
 
2975
+ #: includes/class-mla-options.php:1302 includes/class-mla-options.php:1651
2976
  msgid "Data Source"
2977
  msgstr ""
2978
 
2979
+ #: includes/class-mla-options.php:1308 includes/class-mla-options.php:2324
2980
+ #: includes/class-mla-options.php:2426 includes/class-mla-options.php:2576
2981
  msgid "Replace to Keep"
2982
  msgstr ""
2983
 
2984
+ #: includes/class-mla-options.php:1311 includes/class-mla-options.php:2327
2985
+ #: includes/class-mla-options.php:2429 includes/class-mla-options.php:2579
2986
  msgid "Keep to Replace"
2987
  msgstr ""
2988
 
2989
  #. translators: 1: custom field name 2: attribute 3: old value 'to' new value
2990
+ #: includes/class-mla-options.php:1316 includes/class-mla-options.php:1337
2991
+ #: includes/class-mla-options.php:1351 includes/class-mla-options.php:1365
2992
+ #: includes/class-mla-options.php:1394 includes/class-mla-options.php:2318
2993
+ #: includes/class-mla-options.php:2332 includes/class-mla-options.php:2420
2994
+ #: includes/class-mla-options.php:2434 includes/class-mla-options.php:2570
2995
+ #: includes/class-mla-options.php:2584 includes/class-mla-options.php:2612
2996
  #, php-format
2997
  msgid "%1$s changing %2$s value from %3$s."
2998
  msgstr ""
2999
 
3000
+ #: includes/class-mla-options.php:1316 includes/class-mla-options.php:1652
3001
+ #: includes/class-mla-options.php:2332 includes/class-mla-options.php:2434
3002
+ #: includes/class-mla-options.php:2584 includes/class-mla-options.php:2738
3003
+ #: includes/class-mla-options.php:2828 includes/class-mla-options.php:3061
3004
  msgid "Existing Text"
3005
  msgstr ""
3006
 
3007
+ #: includes/class-mla-options.php:1323 includes/class-mla-options.php:1653
3008
+ #: includes/class-mla-options.php:2591 includes/class-mla-options.php:2890
3009
+ #: includes/class-mla-options.php:2985 includes/class-mla-options.php:3031
3010
  msgid "Format"
3011
  msgstr ""
3012
 
3013
+ #: includes/class-mla-options.php:1329 includes/class-mla-options.php:1343
3014
+ #: includes/class-mla-options.php:1357 includes/class-mla-options.php:1386
3015
+ #: includes/class-mla-options.php:2604
3016
  msgid "unchecked to checked"
3017
  msgstr ""
3018
 
3019
+ #: includes/class-mla-options.php:1332 includes/class-mla-options.php:1346
3020
+ #: includes/class-mla-options.php:1360 includes/class-mla-options.php:1389
3021
+ #: includes/class-mla-options.php:2607
3022
  msgid "checked to unchecked"
3023
  msgstr ""
3024
 
3025
+ #: includes/class-mla-options.php:1337 includes/class-mla-options.php:1654
3026
  msgid "MLA Column"
3027
  msgstr ""
3028
 
3029
+ #: includes/class-mla-options.php:1373
3030
  msgid "Metavalue name"
3031
  msgstr ""
3032
 
3033
+ #: includes/class-mla-options.php:1380 includes/class-mla-options.php:1488
3034
+ #: includes/class-mla-options.php:1587 includes/class-mla-options.php:1631
3035
+ #: includes/class-mla-options.php:2598 includes/class-mla-options.php:2897
3036
+ #: includes/class-mla-options.php:2992 includes/class-mla-options.php:3038
3037
  msgid "Option"
3038
  msgstr ""
3039
 
3040
+ #: includes/class-mla-options.php:1394 includes/class-mla-options.php:1500
3041
+ #: includes/class-mla-options.php:1599 includes/class-mla-options.php:1643
3042
+ #: includes/class-mla-options.php:2612 includes/class-mla-options.php:2909
3043
+ #: includes/class-mla-options.php:3004 includes/class-mla-options.php:3050
3044
  msgid "Delete NULL values"
3045
  msgstr ""
3046
 
3047
+ #: includes/class-mla-options.php:1433 includes/class-mla-options.php:2840
3048
  msgid "No Custom Field Mapping Rules Defined"
3049
  msgstr ""
3050
 
3051
+ #: includes/class-mla-options.php:1474 includes/class-mla-options.php:1573
3052
+ #: includes/class-mla-options.php:1617 includes/class-mla-options.php:2713
3053
+ #: includes/class-mla-options.php:2767 includes/class-mla-options.php:2887
3054
+ #: includes/class-mla-options.php:2982 includes/class-mla-options.php:3028
3055
+ #: includes/class-mla-thumbnail-generation.php:438
3056
  msgid "Keep"
3057
  msgstr ""
3058
 
3059
+ #: includes/class-mla-options.php:1478 includes/class-mla-options.php:1577
3060
+ #: includes/class-mla-options.php:1621 includes/class-mla-options.php:2892
3061
+ #: includes/class-mla-options.php:2987 includes/class-mla-options.php:3033
3062
  msgid "Native"
3063
  msgstr ""
3064
 
3065
+ #: includes/class-mla-options.php:1480 includes/class-mla-options.php:1579
3066
+ #: includes/class-mla-options.php:1623 includes/class-mla-options.php:2894
3067
+ #: includes/class-mla-options.php:2989 includes/class-mla-options.php:3035
3068
  msgid "Commas"
3069
  msgstr ""
3070
 
3071
+ #: includes/class-mla-options.php:1482 includes/class-mla-options.php:1581
3072
+ #: includes/class-mla-options.php:1625 includes/class-mla-options.php:2896
3073
+ #: includes/class-mla-options.php:2991 includes/class-mla-options.php:3037
3074
  msgid "Raw"
3075
  msgstr ""
3076
 
3077
+ #: includes/class-mla-options.php:1490 includes/class-mla-options.php:1589
3078
+ #: includes/class-mla-options.php:1633 includes/class-mla-options.php:2899
3079
+ #: includes/class-mla-options.php:2994 includes/class-mla-options.php:3040
3080
  msgid "Text"
3081
  msgstr ""
3082
 
3083
+ #: includes/class-mla-options.php:1492 includes/class-mla-options.php:1591
3084
+ #: includes/class-mla-options.php:1635 includes/class-mla-options.php:2901
3085
+ #: includes/class-mla-options.php:2996 includes/class-mla-options.php:3042
3086
  msgid "Single"
3087
  msgstr ""
3088
 
3089
+ #: includes/class-mla-options.php:1494 includes/class-mla-options.php:1593
3090
+ #: includes/class-mla-options.php:1637 includes/class-mla-options.php:2903
3091
+ #: includes/class-mla-options.php:2998 includes/class-mla-options.php:3044
3092
  msgid "Export"
3093
  msgstr ""
3094
 
3095
+ #: includes/class-mla-options.php:1496 includes/class-mla-options.php:1595
3096
+ #: includes/class-mla-options.php:1639 includes/class-mla-options.php:2905
3097
+ #: includes/class-mla-options.php:3000 includes/class-mla-options.php:3046
3098
  msgid "Array"
3099
  msgstr ""
3100
 
3101
+ #: includes/class-mla-options.php:1498 includes/class-mla-options.php:1597
3102
+ #: includes/class-mla-options.php:1641 includes/class-mla-options.php:2907
3103
+ #: includes/class-mla-options.php:3002 includes/class-mla-options.php:3048
3104
  msgid "Multi"
3105
  msgstr ""
3106
 
3107
+ #: includes/class-mla-options.php:1501 includes/class-mla-options.php:2910
3108
  msgid "Delete Rule"
3109
  msgstr ""
3110
 
3111
+ #: includes/class-mla-options.php:1502 includes/class-mla-options.php:2911
3112
  msgid "Delete Rule AND Field"
3113
  msgstr ""
3114
 
3115
+ #: includes/class-mla-options.php:1503 includes/class-mla-options.php:2912
3116
  msgid "Update Rule"
3117
  msgstr ""
3118
 
3119
+ #: includes/class-mla-options.php:1504 includes/class-mla-options.php:2913
3120
+ #: includes/class-mla-settings.php:745 includes/class-mla-settings.php:878
3121
  msgid "Map All Attachments"
3122
  msgstr ""
3123
 
3124
+ #: includes/class-mla-options.php:1568 includes/class-mla-options.php:2971
3125
  msgid "Add a new Mapping Rule"
3126
  msgstr ""
3127
 
3128
+ #: includes/class-mla-options.php:1600 includes/class-mla-options.php:3005
3129
  msgid "Add Rule"
3130
  msgstr ""
3131
 
3132
+ #: includes/class-mla-options.php:1601 includes/class-mla-options.php:3006
3133
  msgid "Add Rule and Map All Attachments"
3134
  msgstr ""
3135
 
3136
+ #: includes/class-mla-options.php:1612 includes/class-mla-options.php:3017
3137
  msgid "Add a new Field and Mapping Rule"
3138
  msgstr ""
3139
 
3140
+ #: includes/class-mla-options.php:1644 includes/class-mla-options.php:3051
3141
  msgid "Add Field"
3142
  msgstr ""
3143
 
3144
+ #: includes/class-mla-options.php:1645 includes/class-mla-options.php:3052
3145
  msgid "Add Field and Map All Attachments"
3146
  msgstr ""
3147
 
3148
+ #: includes/class-mla-options.php:1650 includes/class-mla-options.php:2290
3149
+ #: includes/class-mla-options.php:2734 includes/class-mla-options.php:2824
3150
+ #: includes/class-mla-options.php:3057
3151
  msgid "Field Title"
3152
  msgstr ""
3153
 
3154
+ #: includes/class-mla-options.php:1675
3155
  msgid "Custom field mapping rules updated."
3156
  msgstr ""
3157
 
3158
+ #: includes/class-mla-options.php:1677
3159
  msgid "Custom field mapping rules update failed."
3160
  msgstr ""
3161
 
3162
+ #: includes/class-mla-options.php:1680 includes/class-mla-settings.php:790
3163
+ #: includes/class-mla-settings.php:796
3164
  msgid "Custom field no mapping rule changes detected."
3165
  msgstr ""
3166
 
3167
+ #: includes/class-mla-options.php:1688
3168
  msgid "Custom field mapping settings saved."
3169
  msgstr ""
3170
 
3171
+ #: includes/class-mla-options.php:1690
3172
  msgid "Custom field mapping settings reset failed."
3173
  msgstr ""
3174
 
3175
  #. translators: 1: ERROR tag 2: custom field name
3176
+ #: includes/class-mla-options.php:2278
3177
  #, php-format
3178
  msgid "%1$s: No old values for %2$s."
3179
  msgstr ""
3180
 
3181
+ #: includes/class-mla-options.php:2297 includes/class-mla-options.php:2399
3182
+ #: includes/class-mla-options.php:2549 includes/class-mla-options.php:2735
3183
+ #: includes/class-mla-options.php:2825 includes/class-mla-options.php:3058
3184
  msgid "IPTC Value"
3185
  msgstr ""
3186
 
3187
+ #: includes/class-mla-options.php:2304 includes/class-mla-options.php:2406
3188
+ #: includes/class-mla-options.php:2556
3189
  msgid "EXIF Value"
3190
  msgstr ""
3191
 
3192
+ #: includes/class-mla-options.php:2310 includes/class-mla-options.php:2412
3193
+ #: includes/class-mla-options.php:2562
3194
  msgid "EXIF to IPTC"
3195
  msgstr ""
3196
 
3197
+ #: includes/class-mla-options.php:2313 includes/class-mla-options.php:2415
3198
+ #: includes/class-mla-options.php:2565
3199
  msgid "IPTC to EXIF"
3200
  msgstr ""
3201
 
3202
+ #: includes/class-mla-options.php:2318 includes/class-mla-options.php:2420
3203
+ #: includes/class-mla-options.php:2570 includes/class-mla-options.php:2737
3204
+ #: includes/class-mla-options.php:2827 includes/class-mla-options.php:3060
3205
  msgid "Priority"
3206
  msgstr ""
3207
 
3208
+ #: includes/class-mla-options.php:2441 includes/class-mla-options.php:2829
3209
  msgid "Delimiter(s)"
3210
  msgstr ""
3211
 
3212
+ #: includes/class-mla-options.php:2709 includes/class-mla-options.php:2763
3213
+ #: includes/class-mla-options.php:2883 includes/class-mla-options.php:2978
3214
+ #: includes/class-mla-options.php:3024
3215
  msgid "IPTC"
3216
  msgstr ""
3217
 
3218
+ #: includes/class-mla-options.php:2711 includes/class-mla-options.php:2765
3219
+ #: includes/class-mla-options.php:2885 includes/class-mla-options.php:2980
3220
+ #: includes/class-mla-options.php:3026
3221
  msgid "EXIF"
3222
  msgstr ""
3223
 
3224
+ #: includes/class-mla-options.php:2736 includes/class-mla-options.php:2826
3225
+ #: includes/class-mla-options.php:3059
3226
  msgid "EXIF/Template Value"
3227
  msgstr ""
3228
 
3229
  #. translators: 1: ERROR tag 2: option name
3230
+ #: includes/class-mla-options.php:3069
3231
  #, php-format
3232
  msgid "%1$s: Render unknown custom %2$s."
3233
  msgstr ""
3234
 
3235
  #. translators: 1: ERROR tag 2: option name
3236
+ #: includes/class-mla-options.php:3113
3237
  #, php-format
3238
  msgid "%1$s: Update/delete unknown custom %2$s."
3239
  msgstr ""
3240
 
3241
+ #: includes/class-mla-options.php:3119
3242
  msgid "IPTC/EXIF mapping settings updated."
3243
  msgstr ""
3244
 
3245
+ #: includes/class-mla-options.php:3121
3246
  msgid "IPTC/EXIF settings update failed."
3247
  msgstr ""
3248
 
3249
+ #: includes/class-mla-options.php:3124 includes/class-mla-settings.php:926
3250
+ #: includes/class-mla-settings.php:932
3251
  msgid "IPTC/EXIF no mapping changes detected."
3252
  msgstr ""
3253
 
3254
  #. translators: 1: field type
3255
+ #: includes/class-mla-options.php:3135 includes/class-mla-options.php:3145
3256
+ #: includes/class-mla-options.php:3155 includes/class-mla-settings.php:3594
3257
  #, php-format
3258
  msgid "%1$s settings saved."
3259
  msgstr ""
3260
 
3261
+ #: includes/class-mla-options.php:3135 includes/class-mla-options.php:3138
3262
+ #: includes/class-mla-settings.php:3842 includes/class-mla-settings.php:3884
3263
+ #: includes/class-mla-settings.php:3887
3264
  msgid "Standard field"
3265
  msgstr ""
3266
 
3267
  #. translators: 1: ERROR tag 2: field type
3268
+ #: includes/class-mla-options.php:3138 includes/class-mla-options.php:3148
3269
+ #: includes/class-mla-options.php:3158
3270
  #, php-format
3271
  msgid "%1$s: IPTC/EXIF %2$s settings update failed."
3272
  msgstr ""
3273
 
3274
+ #: includes/class-mla-options.php:3145 includes/class-mla-options.php:3148
3275
+ #: includes/class-mla-settings.php:3916 includes/class-mla-settings.php:3958
3276
+ #: includes/class-mla-settings.php:3961
3277
  msgid "Taxonomy term"
3278
  msgstr ""
3279
 
3280
+ #: includes/class-mla-options.php:3155 includes/class-mla-options.php:3158
3281
+ #: includes/class-mla-settings.php:3742 includes/class-mla-settings.php:3745
3282
+ #: includes/class-mla-settings.php:4005 includes/class-mla-settings.php:4047
3283
+ #: includes/class-mla-settings.php:4050
3284
  msgid "Custom field"
3285
  msgstr ""
3286
 
3287
  #. translators: 1: ERROR tag 2: option name, e.g., taxonomy_support
3288
+ #: includes/class-mla-options.php:3166
3289
  #, php-format
3290
  msgid "%1$s: Reset unknown custom %2$s"
3291
  msgstr ""
3292
 
3293
+ #: includes/class-mla-polylang-support.php:319
3294
  msgid "ERROR: No post ID found"
3295
  msgstr ""
3296
 
3297
+ #: includes/class-mla-polylang-support.php:427
3298
  msgid "Error while saving the translations."
3299
  msgstr ""
3300
 
3301
+ #: includes/class-mla-polylang-support.php:428
3302
  msgid "Remove From Bulk Translate"
3303
  msgstr ""
3304
 
3305
+ #: includes/class-mla-polylang-support.php:430
3306
  msgid "Bulk Translate items"
3307
  msgstr ""
3308
 
3309
+ #: includes/class-mla-polylang-support.php:431
3310
  msgid "Add new"
3311
  msgstr ""
3312
 
3313
+ #: includes/class-mla-polylang-support.php:1799
3314
+ #: includes/class-mla-polylang-support.php:2151
3315
+ #: includes/class-mla-thumbnail-generation.php:473
3316
  msgid "Bulk Translations"
3317
  msgstr ""
3318
 
3319
+ #: includes/class-mla-polylang-support.php:1823
3320
  msgid "Translate"
3321
  msgstr ""
3322
 
3323
+ #: includes/class-mla-polylang-support.php:1947
3324
  msgid "All Languages"
3325
  msgstr ""
3326
 
3327
+ #: includes/class-mla-polylang-support.php:1954
3328
+ #: includes/class-mla-polylang-support.php:2216
3329
+ #: includes/class-mla-polylang-support.php:2367
3330
  msgid "Quick Translate"
3331
  msgstr ""
3332
 
3333
+ #: includes/class-mla-polylang-support.php:1958
3334
  msgid "Set Language"
3335
  msgstr ""
3336
 
3337
+ #: includes/class-mla-polylang-support.php:1959
3338
+ #: includes/class-mla-polylang-support.php:2374
3339
  msgid "Bulk Translate"
3340
  msgstr ""
3341
 
3342
+ #: includes/class-mla-polylang-support.php:1960
3343
  msgid "Add or Modify Translation"
3344
  msgstr ""
3345
 
3346
+ #: includes/class-mla-polylang-support.php:1961
3347
+ #: includes/class-mla-polylang-support.php:2012
3348
+ #: includes/class-mla-polylang-support.php:2311
3349
+ #: includes/class-mla-polylang-support.php:2426
3350
+ #: includes/class-mla-wpml-support.php:1617
3351
+ #: includes/class-mla-wpml-support.php:1707
3352
+ #: includes/class-mla-wpml-support.php:2152
3353
  msgid "Language"
3354
  msgstr ""
3355
 
3356
+ #: includes/class-mla-polylang-support.php:1963
3357
+ #: includes/class-mla-thumbnail-generation.php:444
3358
  msgid "Options"
3359
  msgstr ""
3360
 
3361
+ #: includes/class-mla-polylang-support.php:2216
3362
  msgid "Translate this item inline"
3363
  msgstr ""
3364
 
3365
+ #: includes/class-mla-polylang-support.php:2348
3366
+ #: includes/class-mla-polylang-support.php:2453
3367
+ #: includes/class-mla-wpml-support.php:1652
3368
+ #: includes/class-mla-wpml-support.php:1755
3369
  msgid "Media/Assistant submenu table"
3370
  msgstr ""
3371
 
3372
+ #: includes/class-mla-polylang-support.php:2353
3373
+ #: includes/class-mla-wpml-support.php:1657
3374
  msgid "Language Column"
3375
  msgstr ""
3376
 
3377
+ #: includes/class-mla-polylang-support.php:2356
3378
+ #: includes/class-mla-wpml-support.php:1660
3379
  msgid ""
3380
  "Check this option to add a Language column to the Media/Assistant submenu "
3381
  "table."
3382
  msgstr ""
3383
 
3384
+ #: includes/class-mla-polylang-support.php:2360
3385
+ #: includes/class-mla-wpml-support.php:1664
3386
  msgid "Translations Column"
3387
  msgstr ""
3388
 
3389
+ #: includes/class-mla-polylang-support.php:2363
3390
+ #: includes/class-mla-wpml-support.php:1667
3391
  msgid ""
3392
  "Check this option to add a Translation Status column to the Media/Assistant "
3393
  "submenu table."
3394
  msgstr ""
3395
 
3396
+ #: includes/class-mla-polylang-support.php:2370
3397
  msgid ""
3398
  "Check this option to add a Quick Translate rollover action to the Media/"
3399
  "Assistant submenu table."
3400
  msgstr ""
3401
 
3402
+ #: includes/class-mla-polylang-support.php:2377
3403
  msgid ""
3404
  "Check this option to add \"Translate\" to the \"Bulk Actions\" control on "
3405
  "the Media/Assistant submenu table."
3406
  msgstr ""
3407
 
3408
+ #: includes/class-mla-polylang-support.php:2381
3409
+ #: includes/class-mla-polylang-support.php:2453
3410
+ #: includes/class-mla-wpml-support.php:1671
3411
+ #: includes/class-mla-wpml-support.php:1755
3412
  msgid "Term Management"
3413
  msgstr ""
3414
 
3415
+ #: includes/class-mla-polylang-support.php:2386
3416
+ #: includes/class-mla-wpml-support.php:1676
3417
  msgid "Term Assignment"
3418
  msgstr ""
3419
 
3420
+ #: includes/class-mla-polylang-support.php:2389
3421
+ #: includes/class-mla-wpml-support.php:1679
3422
  msgid ""
3423
  "Check this option to assign language-specific terms when items are updated."
3424
  msgstr ""
3425
 
3426
+ #: includes/class-mla-polylang-support.php:2393
3427
+ #: includes/class-mla-wpml-support.php:1683
3428
  msgid "Term Synchronization"
3429
  msgstr ""
3430
 
3431
+ #: includes/class-mla-polylang-support.php:2396
3432
+ #: includes/class-mla-wpml-support.php:1686
3433
  msgid ""
3434
  "Check this option to synchronize common terms among all item translations."
3435
  msgstr ""
3436
 
3437
+ #: includes/class-mla-polylang-support.php:2400
3438
+ #: includes/class-mla-wpml-support.php:1690
3439
  msgid "Term Mapping Replication"
3440
  msgstr ""
3441
 
3442
+ #: includes/class-mla-polylang-support.php:2403
3443
+ #: includes/class-mla-wpml-support.php:1693
3444
  msgid ""
3445
  "When mapping IPTC/EXIF metadata to taxonomy terms, make them available in "
3446
  "all languages."
3447
  msgstr ""
3448
 
3449
+ #: includes/class-mla-polylang-support.php:2451
3450
+ #: includes/class-mla-wpml-support.php:1753
3451
  msgid "Language Options"
3452
  msgstr ""
3453
 
3454
  #. translators: 1: - 4: page subheader values
3455
+ #: includes/class-mla-polylang-support.php:2453
3456
  #, php-format
3457
  msgid ""
3458
  "In this tab you can find a number of options for controlling Polylang-"
3462
  msgstr ""
3463
 
3464
  #. translators: 1: Documentation hyperlink
3465
+ #: includes/class-mla-polylang-support.php:2455
3466
+ #: includes/class-mla-wpml-support.php:1757
3467
  #, php-format
3468
  msgid ""
3469
  "You can find more information about multilingual features in the %1$s "
3470
  "section of the Documentation."
3471
  msgstr ""
3472
 
3473
+ #: includes/class-mla-polylang-support.php:2455
3474
+ #: includes/class-mla-wpml-support.php:1757
3475
  msgid "Language Options documentation"
3476
  msgstr ""
3477
 
3478
+ #: includes/class-mla-polylang-support.php:2455
3479
+ #: includes/class-mla-wpml-support.php:1757
3480
  msgid "WPML &amp; Polylang Multilingual Support; the MLA Language Tab"
3481
  msgstr ""
3482
 
3483
+ #: includes/class-mla-polylang-support.php:2458
3484
+ #: includes/class-mla-settings.php:1405 includes/class-mla-settings.php:1763
3485
+ #: includes/class-mla-settings.php:1816 includes/class-mla-settings.php:2232
3486
+ #: includes/class-mla-settings.php:2282 includes/class-mla-settings.php:2382
3487
+ #: includes/class-mla-settings.php:2827 includes/class-mla-settings.php:2830
3488
+ #: includes/class-mla-settings.php:2969 includes/class-mla-settings.php:2971
3489
+ #: includes/class-mla-settings.php:3255 includes/class-mla-settings.php:3257
3490
+ #: includes/class-mla-wpml-support.php:1760
3491
  msgid "Save Changes"
3492
  msgstr ""
3493
 
3494
+ #: includes/class-mla-polylang-support.php:2459
3495
+ #: includes/class-mla-wpml-support.php:1761
3496
  msgid "Delete Language options and restore default settings"
3497
  msgstr ""
3498
 
3499
+ #: includes/class-mla-polylang-support.php:2462
3500
+ #: includes/class-mla-settings.php:1143 includes/class-mla-settings.php:1410
3501
+ #: includes/class-mla-settings.php:2378 includes/class-mla-settings.php:2543
3502
+ #: includes/class-mla-settings.php:2701
3503
+ #: includes/class-mla-wpml-support.php:1764
3504
  msgid "Go to Top"
3505
  msgstr ""
3506
 
3507
+ #: includes/class-mla-polylang-support.php:2499
3508
+ #: includes/class-mla-wpml-support.php:1801
3509
  msgid "Language settings saved."
3510
  msgstr ""
3511
 
3512
  #. translators: 1: option name
3513
+ #: includes/class-mla-polylang-support.php:2530
3514
+ #: includes/class-mla-settings.php:4227
3515
+ #: includes/class-mla-wpml-support.php:1832
3516
  #, php-format
3517
  msgctxt "message_list"
3518
  msgid "delete_option \"%1$s\""
3519
  msgstr ""
3520
 
3521
+ #: includes/class-mla-polylang-support.php:2538
3522
+ #: includes/class-mla-wpml-support.php:1840
3523
  msgid "Language settings reset to default values."
3524
  msgstr ""
3525
 
3526
+ #: includes/class-mla-settings.php:361
3527
  msgid "Error while making the changes."
3528
  msgstr ""
3529
 
3530
+ #: includes/class-mla-settings.php:363
3531
  msgid "no slug"
3532
  msgstr ""
3533
 
3534
+ #: includes/class-mla-settings.php:376
3535
  msgid "Running"
3536
  msgstr ""
3537
 
3538
+ #: includes/class-mla-settings.php:381
3539
  msgid "Skipped"
3540
  msgstr ""
3541
 
3542
+ #: includes/class-mla-settings.php:382
3543
  msgid "Reprocessed"
3544
  msgstr ""
3545
 
3546
+ #: includes/class-mla-settings.php:480 includes/class-mla-settings.php:997
3547
+ #: includes/class-mla-settings.php:3296
3548
  msgid "Settings"
3549
  msgstr ""
3550
 
3551
+ #: includes/class-mla-settings.php:499
3552
  msgid "Views per page"
3553
  msgstr ""
3554
 
3555
+ #: includes/class-mla-settings.php:510
3556
  msgid "Types per page"
3557
  msgstr ""
3558
 
3559
+ #: includes/class-mla-settings.php:521
3560
  msgid "Upload types per page"
3561
  msgstr ""
3562
 
3563
+ #: includes/class-mla-settings.php:657
3564
  msgid "No view slug found"
3565
  msgstr ""
3566
 
3567
+ #: includes/class-mla-settings.php:700
3568
  msgid "No upload slug found"
3569
  msgstr ""
3570
 
3571
+ #: includes/class-mla-settings.php:741 includes/class-mla-settings.php:2828
3572
+ #: includes/class-mla-settings.php:2832
3573
  msgid "Map All Rules, All Attachments Now"
3574
  msgstr ""
3575
 
3576
+ #: includes/class-mla-settings.php:867 includes/class-mla-settings.php:2961
3577
  msgid "Map All Attachments, Standard Fields Now"
3578
  msgstr ""
3579
 
3580
+ #: includes/class-mla-settings.php:870 includes/class-mla-settings.php:2964
3581
  msgid "Map All Attachments, Taxonomy Terms Now"
3582
  msgstr ""
3583
 
3584
+ #: includes/class-mla-settings.php:873 includes/class-mla-settings.php:2967
3585
  msgid "Map All Attachments, Custom Fields Now"
3586
  msgstr ""
3587
 
3588
  #. translators: 1: ERROR tag 2: function name 3: option type, e.g., radio, select, text
3589
+ #: includes/class-mla-settings.php:1069 includes/class-mla-settings.php:1106
3590
+ #: includes/class-mla-settings.php:1246
3591
  #, php-format
3592
  msgctxt "error_log"
3593
  msgid "%1$s: %2$s unknown type = \"%3$s\""
3594
  msgstr ""
3595
 
3596
+ #: includes/class-mla-settings.php:1144 includes/class-mla-settings.php:1411
3597
+ #: includes/class-mla-settings.php:2379 includes/class-mla-settings.php:2544
3598
+ #: includes/class-mla-settings.php:2702
3599
+ msgid "Go to Bottom"
3600
+ msgstr ""
3601
+
3602
+ #: includes/class-mla-settings.php:1295
3603
  msgid "General"
3604
  msgstr ""
3605
 
3606
+ #: includes/class-mla-settings.php:1296
3607
  msgid "Views"
3608
  msgstr ""
3609
 
3610
+ #: includes/class-mla-settings.php:1297
3611
  msgid "Uploads"
3612
  msgstr ""
3613
 
3614
+ #: includes/class-mla-settings.php:1298 includes/class-mla-settings.php:3594
3615
+ #: includes/class-mla-settings.php:3597
3616
+ msgid "Shortcodes"
3617
  msgstr ""
3618
 
3619
+ #: includes/class-mla-settings.php:1299
3620
  msgid "Custom Fields"
3621
  msgstr ""
3622
 
3623
+ #: includes/class-mla-settings.php:1301
3624
  msgid "Documentation"
3625
  msgstr ""
3626
 
3627
+ #: includes/class-mla-settings.php:1302
3628
  msgid "Debug"
3629
  msgstr ""
3630
 
3631
+ #: includes/class-mla-settings.php:1402
3632
  msgid "General Processing Options"
3633
  msgstr ""
3634
 
3635
  #. translators: 1: - 4: page subheader values
3636
+ #: includes/class-mla-settings.php:1404
3637
  #, php-format
3638
  msgid ""
3639
  "In this tab you can find a number of options for controlling the "
3642
  "any changes you make."
3643
  msgstr ""
3644
 
3645
+ #: includes/class-mla-settings.php:1404
3646
  msgid "Media/Assistant Table Defaults"
3647
  msgstr ""
3648
 
3649
+ #: includes/class-mla-settings.php:1404
3650
  msgid "Media Manager Enhancements"
3651
  msgstr ""
3652
 
3653
+ #: includes/class-mla-settings.php:1407
3654
  msgid "Delete General options and restore default settings"
3655
  msgstr ""
3656
 
3657
+ #: includes/class-mla-settings.php:1412 includes/class-mla-settings.php:3288
3658
  msgid "Support Our Work"
3659
  msgstr ""
3660
 
3661
+ #: includes/class-mla-settings.php:1413 includes/class-mla-settings.php:1416
3662
  msgid "Donate to FTJ"
3663
  msgstr ""
3664
 
3665
+ #: includes/class-mla-settings.php:1414 includes/class-mla-settings.php:3289
3666
  msgid "Donate"
3667
  msgstr ""
3668
 
3669
  #. translators: 1: donation hyperlink
3670
+ #: includes/class-mla-settings.php:1416
3671
  #, php-format
3672
  msgid ""
3673
  "This plugin was inspired by my work on the WordPress web site for our "
3676
  "our work. Thank you!"
3677
  msgstr ""
3678
 
3679
+ #: includes/class-mla-settings.php:1416
3680
  msgid "tax-deductible donation"
3681
  msgstr ""
3682
 
3683
+ #: includes/class-mla-settings.php:1435
3684
  msgid "enhanced version of the WordPress [gallery] shortcode."
3685
  msgstr ""
3686
 
3687
+ #: includes/class-mla-settings.php:1436
3688
  msgid "enhanced version of the WordPress Tag Cloud."
3689
  msgstr ""
3690
 
3691
+ #: includes/class-mla-settings.php:1437
3692
+ msgid ""
3693
+ "provides flat or hierarchical lists, dropdown controls and checkbox lists of "
3694
+ "taxonomy terms."
3695
+ msgstr ""
3696
+
3697
+ #: includes/class-mla-settings.php:1437
3698
+ msgid "wait a bit longer"
3699
+ msgstr ""
3700
+
3701
+ #: includes/class-mla-settings.php:1449
3702
  msgid "Shortcodes made available by this plugin"
3703
  msgstr ""
3704
 
3705
+ #: includes/class-mla-settings.php:1557
3706
  msgid "Edit View"
3707
  msgstr ""
3708
 
3709
+ #: includes/class-mla-settings.php:1563 includes/class-mla-settings.php:1820
3710
  msgid ""
3711
  "The &#8220;slug&#8221; is the URL-friendly, unique key for the view. It must "
3712
  "be all lowercase and contain only letters, numbers, periods (.), slashes (/) "
3715
  "MIME</strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
3716
  msgstr ""
3717
 
3718
+ #: includes/class-mla-settings.php:1564 includes/class-mla-settings.php:1821
3719
  msgid "Singular Label"
3720
  msgstr ""
3721
 
3722
+ #: includes/class-mla-settings.php:1565 includes/class-mla-settings.php:1822
3723
  msgid "Plural Label"
3724
  msgstr ""
3725
 
3726
+ #: includes/class-mla-settings.php:1566 includes/class-mla-settings.php:1823
3727
  msgid ""
3728
  "The labels, e.g., &#8220;Image&#8221; and &#8220;Images&#8221; are used for "
3729
  "column headers and other display purposes."
3730
  msgstr ""
3731
 
3732
+ #: includes/class-mla-settings.php:1567 includes/class-mla-settings.php:1824
3733
  msgid "Specification"
3734
  msgstr ""
3735
 
3736
+ #: includes/class-mla-settings.php:1568 includes/class-mla-settings.php:1825
3737
  msgid ""
3738
  "If the MIME type specification differs from the slug, enter it here. You may "
3739
  "include multiple MIME types, e.g., &#8220;audio,video&#8221; and/or wildcard "
3741
  "MIME Type box is checked."
3742
  msgstr ""
3743
 
3744
+ #: includes/class-mla-settings.php:1569 includes/class-mla-settings.php:1826
3745
  msgid "Post MIME Type"
3746
  msgstr ""
3747
 
3748
+ #: includes/class-mla-settings.php:1570 includes/class-mla-settings.php:1827
3749
  msgid ""
3750
  "Check this box if you want to add this entry to the list of MIME types "
3751
  "returned by wp_get_mime_types()."
3752
  msgstr ""
3753
 
3754
+ #: includes/class-mla-settings.php:1571 includes/class-mla-settings.php:1828
3755
  msgid "Table View"
3756
  msgstr ""
3757
 
3758
+ #: includes/class-mla-settings.php:1572 includes/class-mla-settings.php:1829
3759
  msgid ""
3760
  "Check this box if you want to add this entry to the list of Media/Assistant "
3761
  "table views."
3762
  msgstr ""
3763
 
3764
+ #: includes/class-mla-settings.php:1574 includes/class-mla-settings.php:1831
3765
  msgid ""
3766
  "You can choose your own table view order by entering a number (1 for first, "
3767
  "etc.) in this field."
3768
  msgstr ""
3769
 
3770
+ #: includes/class-mla-settings.php:1576 includes/class-mla-settings.php:1833
3771
+ #: includes/class-mla-settings.php:1931 includes/class-mla-settings.php:2295
3772
  msgid ""
3773
  "The description can contain any documentation or notes you need to "
3774
  "understand or use the item."
3775
  msgstr ""
3776
 
3777
  #. translators: 1: bulk_action, e.g., delete, edit, restore, trash
3778
+ #: includes/class-mla-settings.php:1687 includes/class-mla-settings.php:2153
3779
  #, php-format
3780
  msgid "Unknown bulk action %1$s"
3781
  msgstr ""
3782
 
3783
  #. translators: 1: view name/slug
3784
+ #: includes/class-mla-settings.php:1726 includes/class-mla-settings.php:2195
3785
  #, php-format
3786
  msgid "Edit view \"%1$s\" cancelled."
3787
  msgstr ""
3788
 
3789
+ #: includes/class-mla-settings.php:1760
3790
  msgid "View and Post MIME Type Support is disabled"
3791
  msgstr ""
3792
 
3793
+ #: includes/class-mla-settings.php:1805 includes/class-mla-settings.php:1808
3794
  msgid "Library Views/Post MIME Type Processing"
3795
  msgstr ""
3796
 
3797
+ #: includes/class-mla-settings.php:1806
3798
  msgid ""
3799
  "In this tab you can manage the list of \"Post MIME Types\", which are used "
3800
  "by WordPress to define the views for the <em><strong>Media/Library</strong></"
3806
  msgstr ""
3807
 
3808
  #. translators: 1: Documentation hyperlink
3809
+ #: includes/class-mla-settings.php:1808
3810
  #, php-format
3811
  msgid ""
3812
  "You can find more information about library views, Post MIME types and how "
3815
  "screen."
3816
  msgstr ""
3817
 
3818
+ #: includes/class-mla-settings.php:1808
3819
  msgid "Library View Processing documentation"
3820
  msgstr ""
3821
 
3822
+ #: includes/class-mla-settings.php:1812 includes/class-mla-settings.php:2001
3823
+ #: includes/class-mla-settings.php:2307
3824
  msgid "Displaying search results for"
3825
  msgstr ""
3826
 
3827
+ #: includes/class-mla-settings.php:1813
3828
  msgid "Search Views"
3829
  msgstr ""
3830
 
3831
+ #: includes/class-mla-settings.php:1834
3832
  msgid "Add View"
3833
  msgstr ""
3834
 
3835
+ #: includes/class-mla-settings.php:1836 includes/class-mla-settings.php:2300
3836
  msgid "<strong>Quick Edit</strong>"
3837
  msgstr ""
3838
 
3839
+ #: includes/class-mla-settings.php:1916
3840
  msgid "Edit Upload MIME Type"
3841
  msgstr ""
3842
 
3843
+ #: includes/class-mla-settings.php:1922
3844
  msgid ""
3845
  "The &#8220;extension&#8221; is the file extension for this type, and a "
3846
  "unique key for the item. It must be all lowercase and contain only letters "
3847
  "and numbers."
3848
  msgstr ""
3849
 
3850
+ #: includes/class-mla-settings.php:1924 includes/class-mla-settings.php:2289
3851
  msgid ""
3852
  "The MIME Type must be all lowercase and contain only letters, numbers, "
3853
  "periods (.), slashes (/) and hyphens (-). It <strong>must be a valid MIME</"
3854
  "strong> type, e.g., &#8220;image&#8221; or &#8220;image/jpeg&#8221;."
3855
  msgstr ""
3856
 
3857
+ #: includes/class-mla-settings.php:1925 includes/class-mla-settings.php:2290
3858
  msgid "Icon Type"
3859
  msgstr ""
3860
 
3861
+ #: includes/class-mla-settings.php:1927 includes/class-mla-settings.php:2291
3862
  msgid ""
3863
  "The Icon Type selects a thumbnail image displayed for non-image file types, "
3864
  "such as PDF documents."
3865
  msgstr ""
3866
 
3867
+ #: includes/class-mla-settings.php:1928 includes/class-mla-settings.php:2292
3868
+ #: includes/class-mla-upload-list-table.php:515
3869
  msgid "Inactive"
3870
  msgstr ""
3871
 
3872
+ #: includes/class-mla-settings.php:1929 includes/class-mla-settings.php:2293
3873
  msgid ""
3874
  "Check this box if you want to remove this entry from the list of Upload MIME "
3875
  "Types returned by get_allowed_mime_types()."
3876
  msgstr ""
3877
 
3878
+ #: includes/class-mla-settings.php:2000
3879
  msgid "Known File Extension/MIME Type Associations"
3880
  msgstr ""
3881
 
3882
+ #: includes/class-mla-settings.php:2002
3883
  msgid "Search Known MIME Types"
3884
  msgstr ""
3885
 
3886
+ #: includes/class-mla-settings.php:2004 includes/class-mla-settings.php:2278
3887
  msgid "To search by extension, use \".\", e.g., \".doc\""
3888
  msgstr ""
3889
 
3890
+ #: includes/class-mla-settings.php:2229
3891
  msgid "Upload MIME Type Support is disabled"
3892
  msgstr ""
3893
 
3894
+ #: includes/class-mla-settings.php:2272 includes/class-mla-settings.php:2275
3895
  msgid "File Extension and MIME Type Processing"
3896
  msgstr ""
3897
 
3898
+ #: includes/class-mla-settings.php:2273
3899
  msgid ""
3900
  "In this tab you can manage the list of file extension/MIME Type "
3901
  "associations, which are used by WordPress to decide what kind of files can "
3905
  msgstr ""
3906
 
3907
  #. translators: 1: Documentation hyperlink
3908
+ #: includes/class-mla-settings.php:2275
3909
  #, php-format
3910
  msgid ""
3911
  "You can find more information about file extensions, MIME types and how "
3913
  "the <strong>\"Help\"</strong> tab in the upper-right corner of this screen."
3914
  msgstr ""
3915
 
3916
+ #: includes/class-mla-settings.php:2275
3917
  msgid "File Extension Processing documentation"
3918
  msgstr ""
3919
 
3920
+ #: includes/class-mla-settings.php:2277
3921
  msgid "Search Uploads"
3922
  msgstr ""
3923
 
3924
+ #: includes/class-mla-settings.php:2284
3925
  msgid "Upload MIME Type"
3926
  msgstr ""
3927
 
3928
+ #: includes/class-mla-settings.php:2285
3929
  msgid ""
3930
  "To search the database of over 1,500 known extension/type associations, "
3931
  "click \"Search Known Types\" below the form."
3932
  msgstr ""
3933
 
3934
+ #: includes/class-mla-settings.php:2287
3935
  msgid ""
3936
  "The &#8220;extension&#8221; is the file extension for this type, and unique "
3937
  "key for the item. It must be all lowercase and contain only letters and "
3938
  "numbers."
3939
  msgstr ""
3940
 
3941
+ #: includes/class-mla-settings.php:2296
3942
  msgid "Add Upload MIME Type"
3943
  msgstr ""
3944
 
3945
+ #: includes/class-mla-settings.php:2298
3946
  msgid "Search Known Types"
3947
  msgstr ""
3948
 
3949
+ #: includes/class-mla-settings.php:2306
3950
+ #: includes/class-mla-upload-list-table.php:517
3951
  msgid "Active"
3952
  msgstr ""
3953
 
3954
+ #: includes/class-mla-settings.php:2365 includes/class-mla-settings.php:2366
3955
+ msgid "Go to"
3956
  msgstr ""
3957
 
3958
+ #: includes/class-mla-settings.php:2365 includes/class-mla-settings.php:2545
3959
+ msgid "Style Templates"
3960
  msgstr ""
3961
 
3962
+ #: includes/class-mla-settings.php:2366 includes/class-mla-settings.php:2703
3963
+ msgid "Markup Templates"
3964
  msgstr ""
3965
 
3966
+ #: includes/class-mla-settings.php:2373
3967
+ msgid "MLA Shortcode Options"
3968
+ msgstr ""
3969
+
3970
+ #: includes/class-mla-settings.php:2375
3971
  msgid ""
3972
  "In this tab you can view the default style and markup templates. You can "
3973
  "also define additional templates and use the <code>mla_style</code> and "
3977
  "Changes\" at the bottom of this page."
3978
  msgstr ""
3979
 
3980
+ #: includes/class-mla-settings.php:2393
 
 
 
 
 
3981
  msgid "Theme"
3982
  msgstr ""
3983
 
3984
+ #: includes/class-mla-settings.php:2414
3985
  msgid "Imagick support is not installed."
3986
  msgstr ""
3987
 
3988
+ #: includes/class-mla-settings.php:2421
3989
  msgid "Ghostscript support is not installed."
3990
  msgstr ""
3991
 
3992
+ #: includes/class-mla-settings.php:2425
3993
+ #: includes/class-mla-wpml-support.php:1747
3994
+ #: includes/class-mla-wpml-support.php:1749
3995
  msgid "WARNING:"
3996
  msgstr ""
3997
 
3998
+ #: includes/class-mla-settings.php:2425
3999
  msgid " MLA Viewer support may not be available"
4000
  msgstr ""
4001
 
4002
+ #: includes/class-mla-settings.php:2457
4003
  msgid ""
4004
  "This default template cannot be altered or deleted, but you can copy the "
4005
  "styles."
4006
  msgstr ""
4007
 
4008
+ #: includes/class-mla-settings.php:2489 includes/class-mla-settings.php:2639
 
 
 
 
 
 
4009
  msgid "Delete this template"
4010
  msgstr ""
4011
 
4012
+ #: includes/class-mla-settings.php:2490 includes/class-mla-settings.php:2640
4013
  msgid ""
4014
  "Check the box to delete this template when you press Update at the bottom of "
4015
  "the page."
4016
  msgstr ""
4017
 
4018
+ #: includes/class-mla-settings.php:2516
4019
  msgid "Fill in a name and styles to add a new template."
4020
  msgstr ""
4021
 
4022
+ #: includes/class-mla-settings.php:2594
4023
  msgid ""
4024
  "This default template cannot be altered or deleted, but you can copy the "
4025
  "markup."
4026
  msgstr ""
4027
 
4028
+ #: includes/class-mla-settings.php:2663
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4029
  msgid "Fill in a name and markup to add a new template."
4030
  msgstr ""
4031
 
4032
+ #: includes/class-mla-settings.php:2800
4033
  msgid "Custom Field Mapping Progress"
4034
  msgstr ""
4035
 
4036
+ #: includes/class-mla-settings.php:2801 includes/class-mla-settings.php:2937
4037
  msgid "DO NOT DO THE FOLLOWING (they will cause mapping to fail)"
4038
  msgstr ""
4039
 
4040
+ #: includes/class-mla-settings.php:2802 includes/class-mla-settings.php:2938
4041
  msgid "Close the window"
4042
  msgstr ""
4043
 
4044
+ #: includes/class-mla-settings.php:2803 includes/class-mla-settings.php:2939
4045
  msgid "Reload the page"
4046
  msgstr ""
4047
 
4048
+ #: includes/class-mla-settings.php:2804 includes/class-mla-settings.php:2940
4049
  msgid "Click the browser&rsquo;s Stop, Back or forward buttons"
4050
  msgstr ""
4051
 
4052
+ #: includes/class-mla-settings.php:2805 includes/class-mla-settings.php:2941
4053
  msgid "Progress"
4054
  msgstr ""
4055
 
4056
+ #: includes/class-mla-settings.php:2807 includes/class-mla-settings.php:2943
4057
  msgid "Resume"
4058
  msgstr ""
4059
 
4060
+ #: includes/class-mla-settings.php:2808 includes/class-mla-settings.php:2944
4061
+ #: includes/class-mla-template-support.php:100
4062
+ #: includes/class-mla-template-support.php:106
4063
+ #: includes/class-mla-template-support.php:142
4064
+ #: includes/class-mla-template-support.php:148
4065
+ #: includes/class-mla-template-support.php:178
4066
+ #: includes/class-mla-template-support.php:196
4067
+ msgid "Close"
4068
+ msgstr ""
4069
+
4070
+ #: includes/class-mla-settings.php:2817 includes/class-mla-settings.php:2821
4071
  msgid "Custom Field and Attachment Metadata Processing Options"
4072
  msgstr ""
4073
 
4074
  #. translators: 1: Documentation hyperlink
4075
+ #: includes/class-mla-settings.php:2819
4076
  #, php-format
4077
  msgid ""
4078
  "In this tab you can define the rules for mapping several types of image "
4082
  "field. See the %1$s section of the Documentation for details."
4083
  msgstr ""
4084
 
4085
+ #: includes/class-mla-settings.php:2819
4086
  msgid "Updating Attachment Metadata Documentation"
4087
  msgstr ""
4088
 
4089
+ #: includes/class-mla-settings.php:2819
4090
  msgid "Adding or changing Attachment Metadata"
4091
  msgstr ""
4092
 
4093
  #. translators: 1: Documentation hyperlink
4094
+ #: includes/class-mla-settings.php:2821 includes/class-mla-settings.php:2956
4095
  #, php-format
4096
  msgid ""
4097
  "You can find more information about using the controls in this tab to define "
4098
  "mapping rules and apply them in the %1$s section of the Documentation."
4099
  msgstr ""
4100
 
4101
+ #: includes/class-mla-settings.php:2821
4102
  msgid "Custom Field Options documentation"
4103
  msgstr ""
4104
 
4105
+ #: includes/class-mla-settings.php:2825 includes/class-mla-settings.php:2966
4106
  msgid "Custom field mapping"
4107
  msgstr ""
4108
 
4109
  #. translators: 1: "Save Changes"
4110
+ #: includes/class-mla-settings.php:2830
4111
  #, php-format
4112
  msgid ""
4113
  "Click %1$s to update the \"Enable custom field mapping...\" checkbox and/or "
4116
  msgstr ""
4117
 
4118
  #. translators: 1: "Map All Rules..."
4119
+ #: includes/class-mla-settings.php:2832
4120
  #, php-format
4121
  msgid ""
4122
  "Click %1$s to apply all the rules at once (rule changes will be applied but "
4123
  "not saved)."
4124
  msgstr ""
4125
 
4126
+ #: includes/class-mla-settings.php:2936
4127
  msgid "IPTC &amp; EXIF Mapping Progress"
4128
  msgstr ""
4129
 
4130
+ #: includes/class-mla-settings.php:2953 includes/class-mla-settings.php:2956
4131
  msgid "IPTC &amp; EXIF Processing Options"
4132
  msgstr ""
4133
 
4134
+ #: includes/class-mla-settings.php:2954
4135
  msgid ""
4136
  "In this tab you can define the rules for mapping IPTC (International Press "
4137
  "Telecommunications Council) and EXIF (EXchangeable Image File) metadata to "
4140
  "click \"Save Changes\" at the bottom of this page."
4141
  msgstr ""
4142
 
4143
+ #: includes/class-mla-settings.php:2956
4144
  msgid "IPTC/EXIF Options documentation"
4145
  msgstr ""
4146
 
4147
+ #: includes/class-mla-settings.php:2960
4148
  msgid "Standard field mapping"
4149
  msgstr ""
4150
 
4151
+ #: includes/class-mla-settings.php:2963
4152
  msgid "Taxonomy term mapping"
4153
  msgstr ""
4154
 
4155
  #. translators: 1: "Save Changes"
4156
+ #: includes/class-mla-settings.php:2971
4157
  #, php-format
4158
  msgid ""
4159
  "Click %1$s to update the \"Enable IPTC/EXIF mapping...\" checkbox and/or all "
4161
  "performed.</strong>"
4162
  msgstr ""
4163
 
4164
+ #: includes/class-mla-settings.php:3042
4165
  msgid "Debug settings saved."
4166
  msgstr ""
4167
 
4168
  #. translators: 1: ERROR tag 2: file type 3: file name 4: error message
4169
+ #: includes/class-mla-settings.php:3138
4170
  #, php-format
4171
  msgid "%1$s: Reseting the %2$s file ( %3$s ) \"%4$s\"."
4172
  msgstr ""
4173
 
4174
+ #: includes/class-mla-settings.php:3138 includes/class-mla-settings.php:3189
4175
+ #: includes/class-mla-settings.php:3213 includes/class-mla-settings.php:3223
4176
+ #: includes/class-mla-settings.php:3249
4177
  msgid "Error Log"
4178
  msgstr ""
4179
 
4180
  #. translators: 1: ERROR tag 2: file type 3: file name 4: error message
4181
+ #: includes/class-mla-settings.php:3189
4182
  #, php-format
4183
  msgid "%1$s: Reading the %2$s file ( %3$s ) \"%4$s\"."
4184
  msgstr ""
4185
 
4186
  #. translators: 1: file name
4187
+ #: includes/class-mla-settings.php:3199
4188
  #, php-format
4189
  msgid "Error log file (%1$s) not found; click Reset to create it."
4190
  msgstr ""
4191
 
4192
+ #: includes/class-mla-settings.php:3244 includes/class-mla-settings.php:3257
4193
  msgid "Debug Options"
4194
  msgstr ""
4195
 
4196
+ #: includes/class-mla-settings.php:3247
4197
  msgid "Debug Settings"
4198
  msgstr ""
4199
 
4200
  #. translators: 1: "Save Changes"
4201
+ #: includes/class-mla-settings.php:3257
4202
  #, php-format
4203
  msgid "Click %1$s to update the %2$s."
4204
  msgstr ""
4205
 
4206
+ #: includes/class-mla-settings.php:3276
4207
  msgid "You do not have permission to manage plugin settings."
4208
  msgstr ""
4209
 
4210
+ #: includes/class-mla-settings.php:3307
4211
  msgid "Cannot render content tab"
4212
  msgstr ""
4213
 
4214
+ #: includes/class-mla-settings.php:3310
4215
  msgid "Unknown content tab"
4216
  msgstr ""
4217
 
4218
  #. translators: 1: template type 2: template name
4219
+ #: includes/class-mla-settings.php:3408 includes/class-mla-settings.php:3503
4220
  #, php-format
4221
  msgctxt "message_list"
4222
  msgid "Deleting %1$s \"%2$s\"."
4223
  msgstr ""
4224
 
4225
  #. translators: 1: ERROR tag 2: template name 3: template type
4226
+ #: includes/class-mla-settings.php:3419 includes/class-mla-settings.php:3516
4227
  #, php-format
4228
  msgid "%1$s: Reserved name \"%2$s\", new %3$s discarded."
4229
  msgstr ""
4230
 
4231
  #. translators: 1: ERROR tag 2: template name 3: template type
4232
+ #: includes/class-mla-settings.php:3425 includes/class-mla-settings.php:3522
4233
  #, php-format
4234
  msgid "%1$s: Duplicate name \"%2$s\", new %3$s discarded."
4235
  msgstr ""
4236
 
4237
  #. translators: 1: template type 2: template name
4238
+ #: includes/class-mla-settings.php:3429 includes/class-mla-settings.php:3526
4239
  #, php-format
4240
  msgctxt "message_list"
4241
  msgid "Adding new %1$s \"%2$s\"."
4242
  msgstr ""
4243
 
4244
  #. translators: 1: ERROR tag 2: element name 3: old value
4245
+ #: includes/class-mla-settings.php:3439 includes/class-mla-settings.php:3536
4246
  #, php-format
4247
  msgid "%1$s: Blank %2$s, reverting to \"%3$s\"."
4248
  msgstr ""
4249
 
4250
+ #: includes/class-mla-settings.php:3439 includes/class-mla-settings.php:3446
4251
+ #: includes/class-mla-settings.php:3450 includes/class-mla-settings.php:3454
4252
  msgid "style template name"
4253
  msgstr ""
4254
 
4255
  #. translators: 1: ERROR tag 2: element name 3: new value 4: old value
4256
+ #: includes/class-mla-settings.php:3446 includes/class-mla-settings.php:3543
4257
  #, php-format
4258
  msgid "%1$s: Duplicate new %2$s \"%3$s\", reverting to \"%4$s\"."
4259
  msgstr ""
4260
 
4261
+ #. translators: 1: ERROR tag 2: element name 3: new value 4: old value
4262
+ #: includes/class-mla-settings.php:3450 includes/class-mla-settings.php:3547
4263
+ #, php-format
4264
+ msgid "%1$s: Reserved %2$s \"%3$s\", reverting to \"%4$s\"."
4265
+ msgstr ""
4266
+
4267
  #. translators: 1: element name 2: old_value 3: new_value
4268
+ #: includes/class-mla-settings.php:3454 includes/class-mla-settings.php:3551
4269
  #, php-format
4270
  msgctxt "message_list"
4271
  msgid "Changing %1$s from \"%2$s\" to \"%3$s\""
4272
  msgstr ""
4273
 
4274
  #. translators: 1: template type 2: template name
4275
+ #: includes/class-mla-settings.php:3461
4276
  #, php-format
4277
  msgctxt "message_list"
4278
  msgid "Updating contents of %1$s \"%2$s\"."
4279
  msgstr ""
4280
 
4281
  #. translators: 1: ERROR tag 2: template type
4282
+ #: includes/class-mla-settings.php:3476 includes/class-mla-settings.php:3588
4283
  #, php-format
4284
  msgid "%1$s: Update of %2$s failed."
4285
  msgstr ""
4286
 
4287
+ #: includes/class-mla-settings.php:3536 includes/class-mla-settings.php:3543
4288
+ #: includes/class-mla-settings.php:3547 includes/class-mla-settings.php:3551
4289
  msgid "markup template name"
4290
  msgstr ""
4291
 
4292
+ #. translators: 1: section name, 2: template name
4293
+ #: includes/class-mla-settings.php:3561
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4294
  #, php-format
4295
  msgctxt "message_list"
4296
+ msgid "Updating %1$s markup for \"%2$s\"."
4297
  msgstr ""
4298
 
4299
  #. translators: 1: field type
4300
+ #: includes/class-mla-settings.php:3597
4301
  #, php-format
4302
  msgid "%1$s no changes detected."
4303
  msgstr ""
4304
 
4305
+ #: includes/class-mla-settings.php:3632
4306
  msgid "View settings saved."
4307
  msgstr ""
4308
 
4309
+ #: includes/class-mla-settings.php:3666
4310
  msgid "Upload MIME Type settings saved."
4311
  msgstr ""
4312
 
4313
+ #: includes/class-mla-settings.php:3709
4314
  msgid "No custom field mapping rules to process."
4315
  msgstr ""
4316
 
4317
  #. translators: 1: field type 2: examined count 3: updated count
4318
+ #: includes/class-mla-settings.php:3742 includes/class-mla-settings.php:3884
4319
+ #: includes/class-mla-settings.php:3958 includes/class-mla-settings.php:4047
4320
  #, php-format
4321
  msgid "%1$s mapping completed; %2$d attachment(s) examined, %3$d updated."
4322
  msgstr ""
4323
 
4324
  #. translators: 1: field type 2: examined count
4325
+ #: includes/class-mla-settings.php:3745 includes/class-mla-settings.php:3887
4326
+ #: includes/class-mla-settings.php:3961 includes/class-mla-settings.php:4050
4327
  #, php-format
4328
  msgid ""
4329
  "%1$s mapping completed; %2$d attachment(s) examined, no changes detected."
4330
  msgstr ""
4331
 
4332
  #. translators: 1: number of attachments
4333
+ #: includes/class-mla-settings.php:3776
4334
  #, php-format
4335
  msgid "%s attachment"
4336
  msgid_plural "%s attachments"
4338
  msgstr[1] ""
4339
 
4340
  #. translators: 1: singular/plural number of attachments
4341
+ #: includes/class-mla-settings.php:3778
4342
  #, php-format
4343
  msgid "Deleted custom field value from %1$s."
4344
  msgstr ""
4345
 
4346
+ #: includes/class-mla-settings.php:3781
4347
  msgid "No attachments contained this custom field."
4348
  msgstr ""
4349
 
4350
  #. translators: 1: ERROR tag 2: field type
4351
+ #: includes/class-mla-settings.php:3842 includes/class-mla-settings.php:3916
4352
+ #: includes/class-mla-settings.php:4005
4353
  #, php-format
4354
  msgid "%1$s: No %2$s settings to process."
4355
  msgstr ""
4356
 
4357
+ #: includes/class-mla-settings.php:3875 includes/class-mla-settings.php:3949
4358
+ #: includes/class-mla-settings.php:4038
4359
  msgid "updated."
4360
  msgstr ""
4361
 
4362
  #. translators: 1: reference type, e.g., Gallery in
4363
+ #: includes/class-mla-settings.php:4143 includes/class-mla-settings.php:4153
4364
  #, php-format
4365
  msgctxt "message_list"
4366
  msgid "%1$s - references updated."
4367
  msgstr ""
4368
 
4369
+ #: includes/class-mla-settings.php:4196
4370
  msgid "General settings saved."
4371
  msgstr ""
4372
 
4373
+ #: includes/class-mla-settings.php:4235
4374
  msgid "General settings reset to default values."
4375
  msgstr ""
4376
 
4377
+ #: includes/class-mla-settings.php:4277
4378
  msgid "select settings"
4379
  msgstr ""
4380
 
4381
+ #: includes/class-mla-settings.php:4297
4382
  msgid "Import ALL Settings"
4383
  msgstr ""
4384
 
4385
+ #: includes/class-mla-settings.php:4326 includes/class-mla-settings.php:4342
4386
  msgctxt "message_list"
4387
  msgid "exported"
4388
  msgstr ""
4389
 
4390
+ #: includes/class-mla-settings.php:4328 includes/class-mla-settings.php:4344
4391
  msgctxt "message_list"
4392
  msgid "skipped"
4393
  msgstr ""
4394
 
4395
+ #: includes/class-mla-settings.php:4351
4396
  msgid "ALL settings exported."
4397
  msgstr ""
4398
 
4399
  #. translators: 1: ERROR tag 2: backup directory name
4400
+ #: includes/class-mla-settings.php:4362
4401
  #, php-format
4402
  msgid "%1$s: The settings directory ( %2$s ) cannot be created."
4403
  msgstr ""
4404
 
4405
  #. translators: 1: ERROR tag 2: backup directory name
4406
+ #: includes/class-mla-settings.php:4366
4407
  #, php-format
4408
  msgid "%1$s: The settings directory ( %2$s ) is not writable."
4409
  msgstr ""
4410
 
4411
  #. translators: 1: ERROR tag 2: backup file name
4412
+ #: includes/class-mla-settings.php:4377
4413
  #, php-format
4414
  msgid "%1$s: The settings file ( %2$s ) could not be opened."
4415
  msgstr ""
4416
 
4417
  #. translators: 1: ERROR tag 2: PHP error information
4418
+ #: includes/class-mla-settings.php:4384
4419
  #, php-format
4420
  msgctxt "error_log"
4421
  msgid "%1$s: _export_settings $error_info = \"%2$s\"."
4422
  msgstr ""
4423
 
4424
  #. translators: 1: ERROR tag 2: backup file name 3: error message
4425
+ #: includes/class-mla-settings.php:4393
4426
  #, php-format
4427
  msgid "%1$s: Writing the settings file ( %2$s ) \"%3$s\"."
4428
  msgstr ""
4429
 
4430
  #. translators: 1: number of option settings
4431
+ #: includes/class-mla-settings.php:4399
4432
  #, php-format
4433
  msgid "Settings exported; %1$s settings recorded."
4434
  msgstr ""
4435
 
4436
+ #: includes/class-mla-settings.php:4417
4437
  msgid "No settings imported."
4438
  msgstr ""
4439
 
4440
+ #: includes/class-mla-settings.php:4426
4441
  msgid "Please select an import settings file from the dropdown list."
4442
  msgstr ""
4443
 
4444
+ #: includes/class-mla-settings.php:4430
4445
  msgid "The import settings dropdown selection is missing."
4446
  msgstr ""
4447
 
4448
  #. translators: 1: ERROR tag 2: PHP error information
4449
+ #: includes/class-mla-settings.php:4438
4450
  #, php-format
4451
  msgctxt "error_log"
4452
  msgid "%1$s: _import_settings $error_info = \"%2$s\"."
4453
  msgstr ""
4454
 
4455
  #. translators: 1: ERROR tag 2: backup file name 3: error message
4456
+ #: includes/class-mla-settings.php:4447
4457
  #, php-format
4458
  msgid "%1$s: Reading the settings file ( %2$s ) \"%3$s\"."
4459
  msgstr ""
4460
 
4461
+ #: includes/class-mla-settings.php:4466 includes/class-mla-settings.php:4482
4462
  msgctxt "message_list"
4463
  msgid "updated"
4464
  msgstr ""
4465
 
4466
+ #: includes/class-mla-settings.php:4469 includes/class-mla-settings.php:4485
4467
  msgctxt "message_list"
4468
  msgid "unchanged"
4469
  msgstr ""
4470
 
4471
  #. translators: 1: number of option settings updated 2: number of option settings unchanged
4472
+ #: includes/class-mla-settings.php:4490
4473
  #, php-format
4474
  msgid "Settings imported; %1$s updated, %2$s unchanged."
4475
  msgstr ""
4476
 
4477
+ #: includes/class-mla-shortcode-support.php:363
4478
+ #: includes/class-mla-shortcode-support.php:1644
4479
+ #: includes/class-mla-shortcode-support.php:3615
4480
+ #: includes/class-mla-shortcode-support.php:3901
4481
  msgid "Previous"
4482
  msgstr ""
4483
 
4484
+ #: includes/class-mla-shortcode-support.php:364
4485
+ #: includes/class-mla-shortcode-support.php:1645
4486
+ #: includes/class-mla-shortcode-support.php:3664
4487
+ #: includes/class-mla-shortcode-support.php:3907
4488
  msgid "Next"
4489
  msgstr ""
4490
 
4491
+ #: includes/class-mla-shortcode-support.php:498
4492
  msgid "mla_debug empty gallery"
4493
  msgstr ""
4494
 
4495
+ #: includes/class-mla-shortcode-support.php:573
4496
  msgid ""
4497
  "<strong>Photonic-enhanced [mla_gallery]</strong> type must be "
4498
  "<strong>default</strong>, query = "
4499
  msgstr ""
4500
 
4501
+ #: includes/class-mla-shortcode-support.php:964
4502
  msgid "unknown"
4503
  msgstr ""
4504
 
4505
+ #: includes/class-mla-shortcode-support.php:1799
4506
+ #: includes/class-mla-shortcode-support.php:3101
4507
  msgid "mla_debug attributes"
4508
  msgstr ""
4509
 
4510
+ #: includes/class-mla-shortcode-support.php:1800
4511
+ #: includes/class-mla-shortcode-support.php:3102
4512
  msgid "mla_debug arguments"
4513
  msgstr ""
4514
 
4515
+ #: includes/class-mla-shortcode-support.php:1921
4516
  msgid "mla_debug empty cloud"
4517
  msgstr ""
4518
 
4519
+ #: includes/class-mla-shortcode-support.php:3239
4520
  msgid "mla_debug empty list"
4521
  msgstr ""
4522
 
4523
+ #: includes/class-mla-shortcode-support.php:3262
4524
+ msgid "no-terms"
4525
+ msgstr ""
4526
+
4527
+ #: includes/class-mla-shortcode-support.php:4262
4528
+ #: includes/class-mla-shortcode-support.php:4597
4529
+ #: includes/class-mla-shortcode-support.php:4628
4530
  msgid "Invalid mla_gallery"
4531
  msgstr ""
4532
 
4533
+ #: includes/class-mla-shortcode-support.php:4890
4534
  msgid "mla_debug query"
4535
  msgstr ""
4536
 
4537
+ #: includes/class-mla-shortcode-support.php:4891
4538
  msgid "mla_debug request"
4539
  msgstr ""
4540
 
4541
+ #: includes/class-mla-shortcode-support.php:4892
4542
  msgid "mla_debug query_vars"
4543
  msgstr ""
4544
 
4545
+ #: includes/class-mla-shortcode-support.php:4893
4546
  msgid "mla_debug post_count"
4547
  msgstr ""
4548
 
4549
+ #: includes/class-mla-shortcode-support.php:4961
4550
  msgid "mla_debug WHERE filter"
4551
  msgstr ""
4552
 
4553
+ #: includes/class-mla-shortcode-support.php:4980
4554
  msgid "mla_debug modified WHERE filter"
4555
  msgstr ""
4556
 
4557
+ #: includes/class-mla-shortcode-support.php:5003
4558
  msgid "mla_debug ORDER BY filter, incoming"
4559
  msgstr ""
4560
 
4561
+ #: includes/class-mla-shortcode-support.php:5003
4562
  msgid "Replacement ORDER BY clause"
4563
  msgstr ""
4564
 
4565
+ #: includes/class-mla-shortcode-support.php:5026
4566
  msgid "mla_debug posts_clauses filter"
4567
  msgstr ""
4568
 
4569
+ #: includes/class-mla-shortcode-support.php:5044
4570
  msgid "mla_debug posts_clauses_request filter"
4571
  msgstr ""
4572
 
4573
+ #: includes/class-mla-shortcode-support.php:5237
4574
  msgid "Invalid taxonomy"
4575
  msgstr ""
4576
 
4577
+ #: includes/class-mla-shortcode-support.php:5443
4578
  msgid "mla_debug query arguments"
4579
  msgstr ""
4580
 
4581
+ #: includes/class-mla-shortcode-support.php:5444
4582
  msgid "mla_debug last_query"
4583
  msgstr ""
4584
 
4585
+ #: includes/class-mla-shortcode-support.php:5445
4586
  msgid "mla_debug last_error"
4587
  msgstr ""
4588
 
4589
+ #: includes/class-mla-shortcode-support.php:5446
4590
  msgid "mla_debug num_rows"
4591
  msgstr ""
4592
 
4593
+ #: includes/class-mla-shortcode-support.php:5447
4594
  msgid "mla_debug found_rows"
4595
  msgstr ""
4596
 
4597
+ #: includes/class-mla-template-support.php:54
4598
+ #: includes/class-mla-template-support.php:60
4599
+ #: includes/class-mla-template-support.php:66
4600
+ msgid "Styles"
4601
+ msgstr ""
4602
+
4603
+ #: includes/class-mla-template-support.php:55
4604
+ #: includes/class-mla-template-support.php:61
4605
+ #: includes/class-mla-template-support.php:67
4606
+ msgid ""
4607
+ "List of substitution parameters, e.g., [+selector+], on Documentation tab."
4608
+ msgstr ""
4609
+
4610
+ #: includes/class-mla-template-support.php:76
4611
+ #: includes/class-mla-template-support.php:118
4612
+ #: includes/class-mla-template-support.php:160
4613
+ msgid "Arguments"
4614
+ msgstr ""
4615
+
4616
+ #: includes/class-mla-template-support.php:78
4617
+ #: includes/class-mla-template-support.php:120
4618
+ #: includes/class-mla-template-support.php:162
4619
+ msgid "Default shortcode parameter values."
4620
+ msgstr ""
4621
+
4622
+ #: includes/class-mla-template-support.php:82
4623
+ #: includes/class-mla-template-support.php:100
4624
+ #: includes/class-mla-template-support.php:124
4625
+ #: includes/class-mla-template-support.php:142
4626
+ msgid "Row"
4627
+ msgstr ""
4628
+
4629
+ #: includes/class-mla-template-support.php:82
4630
+ #: includes/class-mla-template-support.php:88
4631
+ #: includes/class-mla-template-support.php:124
4632
+ #: includes/class-mla-template-support.php:130
4633
+ #: includes/class-mla-template-support.php:166
4634
+ #: includes/class-mla-template-support.php:184
4635
+ msgid "Open"
4636
+ msgstr ""
4637
+
4638
+ #: includes/class-mla-template-support.php:84
4639
+ msgid "Markup for the beginning of each row in the gallery."
4640
+ msgstr ""
4641
+
4642
+ #: includes/class-mla-template-support.php:90
4643
+ msgid ""
4644
+ "Markup for the beginning of the gallery. List of parameters, e.g., [+selector"
4645
+ "+], on Documentation tab."
4646
+ msgstr ""
4647
+
4648
+ #: includes/class-mla-template-support.php:94
4649
+ #: includes/class-mla-template-support.php:136
4650
+ #: includes/class-mla-template-support.php:172
4651
+ #: includes/class-mla-template-support.php:190
4652
+ msgid "Item"
4653
+ msgstr ""
4654
+
4655
+ #: includes/class-mla-template-support.php:96
4656
+ msgid "Markup for each item/cell of the gallery."
4657
+ msgstr ""
4658
+
4659
+ #: includes/class-mla-template-support.php:102
4660
+ msgid "Markup for the end of each row in the gallery."
4661
+ msgstr ""
4662
+
4663
+ #: includes/class-mla-template-support.php:108
4664
+ msgid "Markup for the end of the gallery."
4665
+ msgstr ""
4666
+
4667
+ #: includes/class-mla-template-support.php:126
4668
+ msgid "Markup for the beginning of each row in the cloud; grid format only."
4669
+ msgstr ""
4670
+
4671
+ #: includes/class-mla-template-support.php:132
4672
+ msgid ""
4673
+ "Markup for the beginning of the cloud. List of parameters, e.g., [+selector"
4674
+ "+], on Documentation tab."
4675
+ msgstr ""
4676
+
4677
+ #: includes/class-mla-template-support.php:138
4678
+ msgid "Markup for each item/cell of the cloud."
4679
+ msgstr ""
4680
+
4681
+ #: includes/class-mla-template-support.php:144
4682
+ msgid "Markup for the end of each row in the cloud; grid format only."
4683
+ msgstr ""
4684
+
4685
+ #: includes/class-mla-template-support.php:150
4686
+ msgid "Markup for the end of the cloud."
4687
+ msgstr ""
4688
+
4689
+ #: includes/class-mla-template-support.php:166
4690
+ #: includes/class-mla-template-support.php:172
4691
+ #: includes/class-mla-template-support.php:178
4692
+ msgid "Child"
4693
+ msgstr ""
4694
+
4695
+ #: includes/class-mla-template-support.php:168
4696
+ msgid ""
4697
+ "Markup for the beginning of each level in the hierarchy; list format only."
4698
+ msgstr ""
4699
+
4700
+ #: includes/class-mla-template-support.php:174
4701
+ msgid "Markup for each lower-level item in the hierarchy; list format only."
4702
+ msgstr ""
4703
+
4704
+ #: includes/class-mla-template-support.php:180
4705
+ msgid "Markup for the end of each level in the hierarchy; list format only."
4706
+ msgstr ""
4707
+
4708
+ #: includes/class-mla-template-support.php:186
4709
+ msgid ""
4710
+ "Markup for the beginning of the list. List of parameters, e.g., [+selector"
4711
+ "+], on Documentation tab."
4712
+ msgstr ""
4713
+
4714
+ #: includes/class-mla-template-support.php:192
4715
+ msgid "Markup for each item/cell in the list."
4716
+ msgstr ""
4717
+
4718
+ #: includes/class-mla-template-support.php:198
4719
+ msgid "Markup for the end of the list."
4720
+ msgstr ""
4721
+
4722
+ #: includes/class-mla-template-support.php:238
4723
+ msgid "error loading tpls/mla-custom-templates.tpl"
4724
+ msgstr ""
4725
+
4726
+ #: includes/class-mla-template-support.php:241
4727
+ msgid "tpls/mla-custom-templates.tpl not found"
4728
+ msgstr ""
4729
+
4730
+ #: includes/class-mla-template-support.php:478
4731
+ #: includes/class-mla-template-support.php:517
4732
+ #: includes/class-mla-template-support.php:565
4733
+ msgid "no templates exist"
4734
+ msgstr ""
4735
+
4736
+ #: includes/class-mla-template-support.php:502
4737
+ msgid "not found"
4738
+ msgstr ""
4739
+
4740
+ #: includes/class-mla-thumbnail-generation.php:95
4741
  msgid "Error while saving the thumbnails."
4742
  msgstr ""
4743
 
4744
+ #: includes/class-mla-thumbnail-generation.php:96
4745
  msgid "Remove From"
4746
  msgstr ""
4747
 
4748
+ #: includes/class-mla-thumbnail-generation.php:96
4749
+ #: includes/class-mla-thumbnail-generation.php:98
4750
+ #: includes/class-mla-thumbnail-generation.php:428
4751
  msgid "Generate Thumbnails"
4752
  msgstr ""
4753
 
4754
  #. translators: 1: post ID
4755
+ #: includes/class-mla-thumbnail-generation.php:218
4756
  #, php-format
4757
  msgid "Item %1$d"
4758
  msgstr ""
4759
 
4760
+ #: includes/class-mla-thumbnail-generation.php:225
4761
  msgid "has native thumbnail."
4762
  msgstr ""
4763
 
4764
+ #: includes/class-mla-thumbnail-generation.php:246
4765
  msgid "Featured Image retained."
4766
  msgstr ""
4767
 
4768
  #. translators: 1: ERROR tag 2: Item post ID
4769
+ #: includes/class-mla-thumbnail-generation.php:256
4770
  #, php-format
4771
  msgid "%1$s: %2$sno attached file."
4772
  msgstr ""
4773
 
4774
+ #: includes/class-mla-thumbnail-generation.php:260
4775
  msgid "unsupported file type."
4776
  msgstr ""
4777
 
4778
  #. translators: 1: ERROR tag 2: Item post ID
4779
+ #: includes/class-mla-thumbnail-generation.php:270
4780
  #, php-format
4781
  msgid "%1$s: %2$sthumbnail generation failed"
4782
  msgstr ""
4783
 
4784
  #. translators: 1: ERROR tag 2: Item post ID
4785
+ #: includes/class-mla-thumbnail-generation.php:316
4786
  #, php-format
4787
  msgid "%1$s: %2$swp_insert_attachment failed."
4788
  msgstr ""
4789
 
4790
  #. translators: 1: Item post ID, 2: new thumbnail item ID
4791
+ #: includes/class-mla-thumbnail-generation.php:333
4792
  #, php-format
4793
  msgid "%1$sthumbnail generated as new item %2$s."
4794
  msgstr ""
4795
 
4796
+ #: includes/class-mla-thumbnail-generation.php:377
4797
  msgid "Generated Thumbnails"
4798
  msgstr ""
4799
 
4800
+ #: includes/class-mla-thumbnail-generation.php:429
4801
  msgid ""
4802
  "Pull down the Help menu and select Thumbnail Generation for setting details"
4803
  msgstr ""
4804
 
4805
+ #: includes/class-mla-thumbnail-generation.php:430
4806
  msgid "Width"
4807
  msgstr ""
4808
 
4809
+ #: includes/class-mla-thumbnail-generation.php:431
4810
  msgid "Height"
4811
  msgstr ""
4812
 
4813
+ #: includes/class-mla-thumbnail-generation.php:432
4814
  msgid "Best Fit"
4815
  msgstr ""
4816
 
4817
+ #: includes/class-mla-thumbnail-generation.php:433
4818
  msgid "Page"
4819
  msgstr ""
4820
 
4821
+ #: includes/class-mla-thumbnail-generation.php:434
4822
  msgid "Resolution"
4823
  msgstr ""
4824
 
4825
+ #: includes/class-mla-thumbnail-generation.php:435
4826
  msgid "Quality"
4827
  msgstr ""
4828
 
4829
+ #: includes/class-mla-thumbnail-generation.php:437
4830
  msgid "Existing Items"
4831
  msgstr ""
4832
 
4833
+ #: includes/class-mla-thumbnail-generation.php:439
4834
  msgid "Ignore"
4835
  msgstr ""
4836
 
4837
+ #: includes/class-mla-thumbnail-generation.php:441
4838
  msgid "Delete"
4839
  msgstr ""
4840
 
4841
+ #: includes/class-mla-thumbnail-generation.php:442
4842
  msgid "Suffix"
4843
  msgstr ""
4844
 
4845
+ #: includes/class-mla-upload-list-table.php:184
4846
+ #: includes/class-mla-upload-optional-list-table.php:167
4847
  msgctxt "list_table_column"
4848
  msgid "Extension"
4849
  msgstr ""
4850
 
4851
+ #: includes/class-mla-upload-list-table.php:186
4852
  msgctxt "list_table_column"
4853
  msgid "Icon Type"
4854
  msgstr ""
4855
 
4856
+ #: includes/class-mla-upload-list-table.php:187
4857
  msgctxt "list_table_column"
4858
  msgid "Source"
4859
  msgstr ""
4860
 
4861
+ #: includes/class-mla-upload-list-table.php:188
4862
  msgctxt "list_table_column"
4863
  msgid "Status"
4864
  msgstr ""
4865
 
4866
+ #: includes/class-mla-upload-list-table.php:189
4867
+ #: includes/class-mla-upload-optional-list-table.php:169
4868
  msgctxt "list_table_column"
4869
  msgid "WordPress Type"
4870
  msgstr ""
4871
 
4872
+ #: includes/class-mla-upload-list-table.php:190
4873
+ #: includes/class-mla-upload-optional-list-table.php:170
4874
  msgctxt "list_table_column"
4875
  msgid "MLA Type"
4876
  msgstr ""
4877
 
4878
+ #: includes/class-mla-upload-list-table.php:191
4879
  msgctxt "list_table_column"
4880
  msgid "Std. Source"
4881
  msgstr ""
4882
 
4883
+ #: includes/class-mla-upload-list-table.php:192
4884
  msgctxt "list_table_column"
4885
  msgid "Std. Icon Type"
4886
  msgstr ""
4887
 
4888
+ #: includes/class-mla-upload-list-table.php:412
4889
+ #: includes/class-mla-view-list-table.php:357
4890
  msgid "Revert to standard item"
4891
  msgstr ""
4892
 
4893
+ #: includes/class-mla-upload-list-table.php:412
4894
+ #: includes/class-mla-view-list-table.php:357
4895
  msgid "Revert to Standard"
4896
  msgstr ""
4897
 
4898
+ #: includes/class-mla-upload-list-table.php:711
4899
  msgid "Delete/Revert Custom"
4900
  msgstr ""
4901
 
4902
+ #: includes/class-mla-upload-optional-list-table.php:281
4903
  msgid "Select this entry"
4904
  msgstr ""
4905
 
4906
+ #: includes/class-mla-upload-optional-list-table.php:414
4907
  msgid "Select these entries"
4908
  msgstr ""
4909
 
4910
+ #: includes/class-mla-view-list-table.php:172
4911
  msgctxt "list_table_column"
4912
  msgid "Slug"
4913
  msgstr ""
4914
 
4915
+ #: includes/class-mla-view-list-table.php:173
4916
  msgctxt "list_table_column"
4917
  msgid "Specification"
4918
  msgstr ""
4919
 
4920
+ #: includes/class-mla-view-list-table.php:174
4921
  msgctxt "list_table_column"
4922
  msgid "Post Mime"
4923
  msgstr ""
4924
 
4925
+ #: includes/class-mla-view-list-table.php:175
4926
  msgctxt "list_table_column"
4927
  msgid "Table View"
4928
  msgstr ""
4929
 
4930
+ #: includes/class-mla-view-list-table.php:176
4931
  msgctxt "list_table_column"
4932
  msgid "Singular Name"
4933
  msgstr ""
4934
 
4935
+ #: includes/class-mla-view-list-table.php:177
4936
  msgctxt "list_table_column"
4937
  msgid "Plural Name"
4938
  msgstr ""
4939
 
4940
+ #: includes/class-mla-view-list-table.php:178
4941
  msgctxt "list_table_column"
4942
  msgid "Order"
4943
  msgstr ""
4944
 
4945
+ #: includes/class-mla-wpml-support.php:479
4946
  msgid "Duplicate translation created; update as desired."
4947
  msgstr ""
4948
 
4949
+ #: includes/class-mla-wpml-support.php:1597
4950
  msgid "Make media available in all languages"
4951
  msgstr ""
4952
 
4953
+ #: includes/class-mla-wpml-support.php:1747
4954
  msgid " WPML Media is not installed."
4955
  msgstr ""
4956
 
4957
+ #: includes/class-mla-wpml-support.php:1749
4958
  msgid " WPML Media is not active."
4959
  msgstr ""
4960
 
4961
  #. translators: 1: - 4: page subheader values
4962
+ #: includes/class-mla-wpml-support.php:1755
4963
  #, php-format
4964
  msgid ""
4965
  "In this tab you can find a number of options for controlling WPML-specific "
4967
  "\"Save Changes\" at the bottom of the tab to save any changes you make."
4968
  msgstr ""
4969
 
4970
+ #: includes/class-mla-wpml-support.php:2259
4971
+ #: includes/class-mla-wpml-support.php:2265
4972
  #, php-format
4973
  msgid "Edit the %s translation"
4974
  msgstr ""
4975
 
4976
+ #: includes/class-mla-wpml-support.php:2271
4977
  #, php-format
4978
  msgid "Add translation to %s"
4979
  msgstr ""
4980
 
4981
+ #: includes/mla-main-search-box-template.php:42
4982
+ #: includes/mla-main-search-box-template.php:44
4983
+ #: includes/mla-media-modal-js-template.php:25
4984
  msgid "Search Media"
4985
  msgstr ""
4986
 
4987
+ #: includes/mla-plugin-loader.php:43
4988
  msgid "The Media Library Assistant cannot load."
4989
  msgstr ""
4990
 
4991
+ #: includes/mla-plugin-loader.php:45
4992
  msgid "You must resolve these conflicts before this plugin can safely load."
4993
  msgstr ""
4994
 
4995
  #. translators: Description of the plugin/theme
4996
+ #: index.php:46
4997
  msgid ""
4998
  "Enhances the Media Library; powerful [mla_gallery], taxonomy support, IPTC/"
4999
  "EXIF processing, bulk & quick edit actions and where-used reporting."
phpDocs/classes.svg CHANGED
@@ -4,329 +4,336 @@
4
  <!-- Generated by graphviz version 2.28.0 (20110507.0327)
5
  -->
6
  <!-- Title: G Pages: 1 -->
7
- <svg width="730pt" height="2054pt"
8
- viewBox="0.00 0.00 730.00 2054.19" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
- <g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 2050.19)">
10
  <title>G</title>
11
- <polygon fill="white" stroke="white" points="-4,5 -4,-2050.19 727,-2050.19 727,5 -4,5"/>
12
  <g id="graph2" class="cluster"><title>cluster_global</title>
13
- <polyline fill="none" stroke="gray" points="263,-184.187 702,-184.187 "/>
14
- <path fill="none" stroke="gray" d="M702,-184.187C708,-184.187 714,-190.187 714,-196.187"/>
15
- <polyline fill="none" stroke="gray" points="714,-196.187 714,-2026.19 "/>
16
- <path fill="none" stroke="gray" d="M714,-2026.19C714,-2032.19 708,-2038.19 702,-2038.19"/>
17
- <polyline fill="none" stroke="gray" points="702,-2038.19 263,-2038.19 "/>
18
- <path fill="none" stroke="gray" d="M263,-2038.19C257,-2038.19 251,-2032.19 251,-2026.19"/>
19
- <polyline fill="none" stroke="gray" points="251,-2026.19 251,-196.187 "/>
20
- <path fill="none" stroke="gray" d="M251,-196.187C251,-190.187 257,-184.187 263,-184.187"/>
21
- <text text-anchor="middle" x="482.5" y="-2025.39" font-family="Times New Roman,serif" font-size="11.00" fill="gray">global</text>
22
  </g>
23
  <!-- \\MNA_Pad_Counts_Walker -->
24
  <g id="node2" class="node"><title>\\MNA_Pad_Counts_Walker</title>
25
  <a xlink:href="examples.twentytwelve-mla.content-tosca30-dropdown.html" xlink:title="MNA_Pad_Counts_Walker" target="_parent">
26
- <polygon fill="none" stroke="black" points="675,-1740.19 517,-1740.19 517,-1704.19 675,-1704.19 675,-1740.19"/>
27
- <text text-anchor="middle" x="596" y="-1719.39" font-family="Courier,monospace" font-size="11.00">MNA_Pad_Counts_Walker</text>
28
  </a>
29
  </g>
30
  <!-- \\Walker_Category -->
31
- <g id="node38" class="node"><title>\\Walker_Category</title>
32
- <ellipse fill="none" stroke="black" cx="315" cy="-158.187" rx="77.1866" ry="18"/>
33
- <text text-anchor="middle" x="315" y="-154.487" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\Walker_Category</text>
34
  </g>
35
  <!-- \\MNA_Pad_Counts_Walker&#45;&gt;\\Walker_Category -->
36
  <g id="edge3" class="edge"><title>\\MNA_Pad_Counts_Walker&#45;&gt;\\Walker_Category</title>
37
- <path fill="none" stroke="black" d="M516.946,-1715.88C505.03,-1711.54 494.044,-1704.98 486,-1695.19 379.024,-1564.97 522.402,-309.219 414,-180.187 409.731,-175.105 404.565,-171.048 398.863,-167.824"/>
38
- <polygon fill="none" stroke="black" points="400.051,-164.514 389.513,-163.414 397.065,-170.845 400.051,-164.514"/>
39
  </g>
40
  <!-- \\CPAC_Storage_Model_MLA -->
41
  <g id="node3" class="node"><title>\\CPAC_Storage_Model_MLA</title>
42
  <a xlink:href="includes.class-mla-admin-columns-support.html" xlink:title="CPAC_Storage_Model_MLA" target="_parent">
43
- <polygon fill="none" stroke="black" points="678.5,-984.187 513.5,-984.187 513.5,-948.187 678.5,-948.187 678.5,-984.187"/>
44
- <text text-anchor="middle" x="596" y="-963.387" font-family="Courier,monospace" font-size="11.00">CPAC_Storage_Model_MLA</text>
45
  </a>
46
  </g>
47
  <!-- \\CPAC_Storage_Model -->
48
- <g id="node40" class="node"><title>\\CPAC_Storage_Model</title>
49
- <ellipse fill="none" stroke="black" cx="315" cy="-104.187" rx="98.5829" ry="18"/>
50
- <text text-anchor="middle" x="315" y="-100.487" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\CPAC_Storage_Model</text>
51
  </g>
52
  <!-- \\CPAC_Storage_Model_MLA&#45;&gt;\\CPAC_Storage_Model -->
53
  <g id="edge5" class="edge"><title>\\CPAC_Storage_Model_MLA&#45;&gt;\\CPAC_Storage_Model</title>
54
- <path fill="none" stroke="black" d="M513.453,-958.127C502.975,-953.855 493.357,-947.774 486,-939.187 368.711,-802.295 529.498,-269.594 414,-131.187 410.555,-127.058 406.542,-123.53 402.144,-120.518"/>
55
- <polygon fill="none" stroke="black" points="403.664,-117.353 393.263,-115.339 400.138,-123.4 403.664,-117.353"/>
56
  </g>
57
  <!-- \\MLA_Ajax -->
58
  <g id="node4" class="node"><title>\\MLA_Ajax</title>
59
  <a xlink:href="includes.class-mla-ajax.html" xlink:title="MLA_Ajax" target="_parent">
60
- <polygon fill="none" stroke="black" points="631.5,-1902.19 560.5,-1902.19 560.5,-1866.19 631.5,-1866.19 631.5,-1902.19"/>
61
- <text text-anchor="middle" x="596" y="-1881.39" font-family="Courier,monospace" font-size="11.00">MLA_Ajax</text>
62
  </a>
63
  </g>
64
  <!-- \\MLACoreOptions -->
65
  <g id="node5" class="node"><title>\\MLACoreOptions</title>
66
  <a xlink:href="includes.class-mla-core-options.html" xlink:title="MLACoreOptions" target="_parent">
67
- <polygon fill="none" stroke="black" points="651.5,-1848.19 540.5,-1848.19 540.5,-1812.19 651.5,-1812.19 651.5,-1848.19"/>
68
- <text text-anchor="middle" x="596" y="-1827.39" font-family="Courier,monospace" font-size="11.00">MLACoreOptions</text>
69
  </a>
70
  </g>
71
  <!-- \\MLACore -->
72
  <g id="node6" class="node"><title>\\MLACore</title>
73
  <a xlink:href="includes.class-mla-core.html" xlink:title="MLACore" target="_parent">
74
- <polygon fill="none" stroke="black" points="628,-1794.19 564,-1794.19 564,-1758.19 628,-1758.19 628,-1794.19"/>
75
- <text text-anchor="middle" x="596" y="-1773.39" font-family="Courier,monospace" font-size="11.00">MLACore</text>
76
  </a>
77
  </g>
78
  <!-- \\MLA_Checklist_Walker -->
79
  <g id="node7" class="node"><title>\\MLA_Checklist_Walker</title>
80
  <a xlink:href="includes.class-mla-core.html" xlink:title="MLA_Checklist_Walker" target="_parent">
81
- <polygon fill="none" stroke="black" points="672,-1956.19 520,-1956.19 520,-1920.19 672,-1920.19 672,-1956.19"/>
82
- <text text-anchor="middle" x="596" y="-1935.39" font-family="Courier,monospace" font-size="11.00">MLA_Checklist_Walker</text>
83
  </a>
84
  </g>
85
  <!-- \\MLA_Checklist_Walker&#45;&gt;\\Walker_Category -->
86
  <g id="edge7" class="edge"><title>\\MLA_Checklist_Walker&#45;&gt;\\Walker_Category</title>
87
- <path fill="none" stroke="black" d="M519.94,-1932.97C506.865,-1928.66 494.693,-1921.83 486,-1911.19 364.244,-1762.08 537.388,-327.942 414,-180.187 409.746,-175.093 404.59,-171.027 398.895,-167.796"/>
88
- <polygon fill="none" stroke="black" points="400.091,-164.49 389.554,-163.379 397.099,-170.818 400.091,-164.49"/>
89
  </g>
90
  <!-- \\MLAPDF -->
91
  <g id="node8" class="node"><title>\\MLAPDF</title>
92
  <a xlink:href="includes.class-mla-data-pdf.html" xlink:title="MLAPDF" target="_parent">
93
- <polygon fill="none" stroke="black" points="624.5,-1686.19 567.5,-1686.19 567.5,-1650.19 624.5,-1650.19 624.5,-1686.19"/>
94
- <text text-anchor="middle" x="596" y="-1665.39" font-family="Courier,monospace" font-size="11.00">MLAPDF</text>
95
  </a>
96
  </g>
97
  <!-- \\MLAQuery -->
98
  <g id="node9" class="node"><title>\\MLAQuery</title>
99
  <a xlink:href="includes.class-mla-data-query.html" xlink:title="MLAQuery" target="_parent">
100
- <polygon fill="none" stroke="black" points="631.5,-1632.19 560.5,-1632.19 560.5,-1596.19 631.5,-1596.19 631.5,-1632.19"/>
101
- <text text-anchor="middle" x="596" y="-1611.39" font-family="Courier,monospace" font-size="11.00">MLAQuery</text>
102
  </a>
103
  </g>
104
  <!-- \\MLAReferences -->
105
  <g id="node10" class="node"><title>\\MLAReferences</title>
106
  <a xlink:href="includes.class-mla-data-references.html" xlink:title="MLAReferences" target="_parent">
107
- <polygon fill="none" stroke="black" points="648,-1578.19 544,-1578.19 544,-1542.19 648,-1542.19 648,-1578.19"/>
108
- <text text-anchor="middle" x="596" y="-1557.39" font-family="Courier,monospace" font-size="11.00">MLAReferences</text>
109
  </a>
110
  </g>
111
  <!-- \\MLAData_Source -->
112
  <g id="node11" class="node"><title>\\MLAData_Source</title>
113
  <a xlink:href="includes.class-mla-data-source.html" xlink:title="MLAData_Source" target="_parent">
114
- <polygon fill="none" stroke="black" points="651.5,-1524.19 540.5,-1524.19 540.5,-1488.19 651.5,-1488.19 651.5,-1524.19"/>
115
- <text text-anchor="middle" x="596" y="-1503.39" font-family="Courier,monospace" font-size="11.00">MLAData_Source</text>
116
  </a>
117
  </g>
118
  <!-- \\MLAData -->
119
  <g id="node12" class="node"><title>\\MLAData</title>
120
  <a xlink:href="includes.class-mla-data.html" xlink:title="MLAData" target="_parent">
121
- <polygon fill="none" stroke="black" points="628,-1470.19 564,-1470.19 564,-1434.19 628,-1434.19 628,-1470.19"/>
122
- <text text-anchor="middle" x="596" y="-1449.39" font-family="Courier,monospace" font-size="11.00">MLAData</text>
123
  </a>
124
  </g>
125
  <!-- \\MLAEdit -->
126
  <g id="node13" class="node"><title>\\MLAEdit</title>
127
  <a xlink:href="includes.class-mla-edit-media.html" xlink:title="MLAEdit" target="_parent">
128
- <polygon fill="none" stroke="black" points="628,-1416.19 564,-1416.19 564,-1380.19 628,-1380.19 628,-1416.19"/>
129
- <text text-anchor="middle" x="596" y="-1395.39" font-family="Courier,monospace" font-size="11.00">MLAEdit</text>
130
  </a>
131
  </g>
132
  <!-- \\MLAImageProcessor -->
133
  <g id="node14" class="node"><title>\\MLAImageProcessor</title>
134
  <a xlink:href="includes.class-mla-image-processor.html" xlink:title="MLAImageProcessor" target="_parent">
135
- <polygon fill="none" stroke="black" points="661.5,-1362.19 530.5,-1362.19 530.5,-1326.19 661.5,-1326.19 661.5,-1362.19"/>
136
- <text text-anchor="middle" x="596" y="-1341.39" font-family="Courier,monospace" font-size="11.00">MLAImageProcessor</text>
137
  </a>
138
  </g>
139
  <!-- \\MLAMutex -->
140
  <g id="node15" class="node"><title>\\MLAMutex</title>
141
  <a xlink:href="includes.class-mla-image-processor.html" xlink:title="MLAMutex" target="_parent">
142
- <polygon fill="none" stroke="black" points="631.5,-1308.19 560.5,-1308.19 560.5,-1272.19 631.5,-1272.19 631.5,-1308.19"/>
143
- <text text-anchor="middle" x="596" y="-1287.39" font-family="Courier,monospace" font-size="11.00">MLAMutex</text>
144
  </a>
145
  </g>
146
  <!-- \\MLA_List_Table -->
147
  <g id="node16" class="node"><title>\\MLA_List_Table</title>
148
  <a xlink:href="includes.class-mla-list-table.html" xlink:title="MLA_List_Table" target="_parent">
149
- <polygon fill="none" stroke="black" points="370.5,-1120.19 259.5,-1120.19 259.5,-1084.19 370.5,-1084.19 370.5,-1120.19"/>
150
- <text text-anchor="middle" x="315" y="-1099.39" font-family="Courier,monospace" font-size="11.00">MLA_List_Table</text>
151
  </a>
152
  </g>
153
  <!-- \\WP_List_Table -->
154
- <g id="node43" class="node"><title>\\WP_List_Table</title>
155
- <ellipse fill="none" stroke="black" cx="72" cy="-553.187" rx="71.4873" ry="18"/>
156
- <text text-anchor="middle" x="72" y="-549.487" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_List_Table</text>
157
  </g>
158
  <!-- \\MLA_List_Table&#45;&gt;\\WP_List_Table -->
159
  <g id="edge9" class="edge"><title>\\MLA_List_Table&#45;&gt;\\WP_List_Table</title>
160
- <path fill="none" stroke="black" d="M259.399,-1100.37C243.681,-1097.3 227.654,-1091.34 216,-1080.19 141.724,-1009.12 90.6682,-680.254 76.7956,-581.379"/>
161
- <polygon fill="none" stroke="black" points="80.2322,-580.68 75.3929,-571.255 73.2984,-581.641 80.2322,-580.68"/>
162
  </g>
163
  <!-- \\MLA -->
164
  <g id="node17" class="node"><title>\\MLA</title>
165
  <a xlink:href="includes.class-mla-main.html" xlink:title="MLA" target="_parent">
166
- <polygon fill="none" stroke="black" points="623,-1254.19 569,-1254.19 569,-1218.19 623,-1218.19 623,-1254.19"/>
167
- <text text-anchor="middle" x="596" y="-1233.39" font-family="Courier,monospace" font-size="11.00">MLA</text>
168
  </a>
169
  </g>
170
  <!-- \\MLAModal_Ajax -->
171
  <g id="node18" class="node"><title>\\MLAModal_Ajax</title>
172
  <a xlink:href="includes.class-mla-media-modal-ajax.html" xlink:title="MLAModal_Ajax" target="_parent">
173
- <polygon fill="none" stroke="black" points="648,-1200.19 544,-1200.19 544,-1164.19 648,-1164.19 648,-1200.19"/>
174
- <text text-anchor="middle" x="596" y="-1179.39" font-family="Courier,monospace" font-size="11.00">MLAModal_Ajax</text>
175
  </a>
176
  </g>
177
  <!-- \\MLAModal -->
178
  <g id="node19" class="node"><title>\\MLAModal</title>
179
  <a xlink:href="includes.class-mla-media-modal.html" xlink:title="MLAModal" target="_parent">
180
- <polygon fill="none" stroke="black" points="631.5,-1146.19 560.5,-1146.19 560.5,-1110.19 631.5,-1110.19 631.5,-1146.19"/>
181
- <text text-anchor="middle" x="596" y="-1125.39" font-family="Courier,monospace" font-size="11.00">MLAModal</text>
182
  </a>
183
  </g>
184
  <!-- \\MLAMime -->
185
  <g id="node20" class="node"><title>\\MLAMime</title>
186
  <a xlink:href="includes.class-mla-mime-types.html" xlink:title="MLAMime" target="_parent">
187
- <polygon fill="none" stroke="black" points="628,-1092.19 564,-1092.19 564,-1056.19 628,-1056.19 628,-1092.19"/>
188
- <text text-anchor="middle" x="596" y="-1071.39" font-family="Courier,monospace" font-size="11.00">MLAMime</text>
189
  </a>
190
  </g>
191
  <!-- \\MLAObjects -->
192
  <g id="node21" class="node"><title>\\MLAObjects</title>
193
  <a xlink:href="includes.class-mla-objects.html" xlink:title="MLAObjects" target="_parent">
194
- <polygon fill="none" stroke="black" points="638,-1038.19 554,-1038.19 554,-1002.19 638,-1002.19 638,-1038.19"/>
195
- <text text-anchor="middle" x="596" y="-1017.39" font-family="Courier,monospace" font-size="11.00">MLAObjects</text>
196
  </a>
197
  </g>
198
  <!-- \\MLATextWidget -->
199
  <g id="node22" class="node"><title>\\MLATextWidget</title>
200
  <a xlink:href="includes.class-mla-objects.html" xlink:title="MLATextWidget" target="_parent">
201
- <polygon fill="none" stroke="black" points="648,-606.187 544,-606.187 544,-570.187 648,-570.187 648,-606.187"/>
202
- <text text-anchor="middle" x="596" y="-585.387" font-family="Courier,monospace" font-size="11.00">MLATextWidget</text>
203
  </a>
204
  </g>
205
  <!-- \\WP_Widget -->
206
- <g id="node45" class="node"><title>\\WP_Widget</title>
207
- <ellipse fill="none" stroke="black" cx="315" cy="-50.1869" rx="58.4896" ry="18"/>
208
- <text text-anchor="middle" x="315" y="-46.4869" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_Widget</text>
209
  </g>
210
  <!-- \\MLATextWidget&#45;&gt;\\WP_Widget -->
211
  <g id="edge11" class="edge"><title>\\MLATextWidget&#45;&gt;\\WP_Widget</title>
212
- <path fill="none" stroke="black" d="M543.997,-587.465C523.185,-584.467 500.622,-577.271 486,-561.187 339.706,-400.268 558.188,-239.996 414,-77.1869 405.552,-67.6483 394.075,-61.3424 381.948,-57.2046"/>
213
- <polygon fill="none" stroke="black" points="382.71,-53.7807 372.129,-54.3305 380.743,-60.4988 382.71,-53.7807"/>
214
  </g>
215
  <!-- \\MLAOptions -->
216
  <g id="node23" class="node"><title>\\MLAOptions</title>
217
  <a xlink:href="includes.class-mla-options.html" xlink:title="MLAOptions" target="_parent">
218
- <polygon fill="none" stroke="black" points="638,-930.187 554,-930.187 554,-894.187 638,-894.187 638,-930.187"/>
219
- <text text-anchor="middle" x="596" y="-909.387" font-family="Courier,monospace" font-size="11.00">MLAOptions</text>
220
  </a>
221
  </g>
222
  <!-- \\MLA_Polylang -->
223
  <g id="node24" class="node"><title>\\MLA_Polylang</title>
224
  <a xlink:href="includes.class-mla-polylang-support.html" xlink:title="MLA_Polylang" target="_parent">
225
- <polygon fill="none" stroke="black" points="645,-876.187 547,-876.187 547,-840.187 645,-840.187 645,-876.187"/>
226
- <text text-anchor="middle" x="596" y="-855.387" font-family="Courier,monospace" font-size="11.00">MLA_Polylang</text>
227
  </a>
228
  </g>
229
  <!-- \\MLASettings -->
230
  <g id="node25" class="node"><title>\\MLASettings</title>
231
  <a xlink:href="includes.class-mla-settings.html" xlink:title="MLASettings" target="_parent">
232
- <polygon fill="none" stroke="black" points="641.5,-822.187 550.5,-822.187 550.5,-786.187 641.5,-786.187 641.5,-822.187"/>
233
- <text text-anchor="middle" x="596" y="-801.387" font-family="Courier,monospace" font-size="11.00">MLASettings</text>
234
  </a>
235
  </g>
236
  <!-- \\MLAShortcode_Support -->
237
  <g id="node26" class="node"><title>\\MLAShortcode_Support</title>
238
  <a xlink:href="includes.class-mla-shortcode-support.html" xlink:title="MLAShortcode_Support" target="_parent">
239
- <polygon fill="none" stroke="black" points="672,-768.187 520,-768.187 520,-732.187 672,-732.187 672,-768.187"/>
240
- <text text-anchor="middle" x="596" y="-747.387" font-family="Courier,monospace" font-size="11.00">MLAShortcode_Support</text>
241
  </a>
242
  </g>
243
  <!-- \\MLAShortcodes -->
244
  <g id="node27" class="node"><title>\\MLAShortcodes</title>
245
  <a xlink:href="includes.class-mla-shortcodes.html" xlink:title="MLAShortcodes" target="_parent">
246
- <polygon fill="none" stroke="black" points="648,-714.187 544,-714.187 544,-678.187 648,-678.187 648,-714.187"/>
247
- <text text-anchor="middle" x="596" y="-693.387" font-family="Courier,monospace" font-size="11.00">MLAShortcodes</text>
 
 
 
 
 
 
 
248
  </a>
249
  </g>
250
  <!-- \\MLA_Thumbnail -->
251
- <g id="node28" class="node"><title>\\MLA_Thumbnail</title>
252
  <a xlink:href="includes.class-mla-thumbnail-generation.html" xlink:title="MLA_Thumbnail" target="_parent">
253
- <polygon fill="none" stroke="black" points="648,-660.187 544,-660.187 544,-624.187 648,-624.187 648,-660.187"/>
254
- <text text-anchor="middle" x="596" y="-639.387" font-family="Courier,monospace" font-size="11.00">MLA_Thumbnail</text>
255
  </a>
256
  </g>
257
  <!-- \\MLA_Upload_List_Table -->
258
- <g id="node29" class="node"><title>\\MLA_Upload_List_Table</title>
259
  <a xlink:href="includes.class-mla-upload-list-table.html" xlink:title="MLA_Upload_List_Table" target="_parent">
260
- <polygon fill="none" stroke="black" points="675,-552.187 517,-552.187 517,-516.187 675,-516.187 675,-552.187"/>
261
- <text text-anchor="middle" x="596" y="-531.387" font-family="Courier,monospace" font-size="11.00">MLA_Upload_List_Table</text>
262
  </a>
263
  </g>
264
  <!-- \\MLA_Upload_List_Table&#45;&gt;\\WP_List_Table -->
265
  <g id="edge13" class="edge"><title>\\MLA_Upload_List_Table&#45;&gt;\\WP_List_Table</title>
266
- <path fill="none" stroke="black" d="M516.918,-526.885C505.23,-522.624 494.328,-516.347 486,-507.187 339.706,-346.268 564.374,-180.3 414,-23.1869 383.323,8.86483 360.268,-1.2252 316,-4.18694"/>
267
  </g>
268
  <!-- \\MLA_Upload_Optional_List_Table -->
269
- <g id="node30" class="node"><title>\\MLA_Upload_Optional_List_Table</title>
270
  <a xlink:href="includes.class-mla-upload-optional-list-table.html" xlink:title="MLA_Upload_Optional_List_Table" target="_parent">
271
- <polygon fill="none" stroke="black" points="705.5,-498.187 486.5,-498.187 486.5,-462.187 705.5,-462.187 705.5,-498.187"/>
272
- <text text-anchor="middle" x="596" y="-477.387" font-family="Courier,monospace" font-size="11.00">MLA_Upload_Optional_List_Table</text>
273
  </a>
274
  </g>
275
  <!-- \\MLA_Upload_Optional_List_Table&#45;&gt;\\WP_List_Table -->
276
  <g id="edge15" class="edge"><title>\\MLA_Upload_Optional_List_Table&#45;&gt;\\WP_List_Table</title>
277
- <path fill="none" stroke="black" d="M496.052,-461.978C492.425,-459.394 489.046,-456.477 486,-453.187 354.352,-311.003 549.252,-161.947 414,-23.1869 383.032,8.58395 360.268,-1.2252 316,-4.18694"/>
278
  </g>
279
  <!-- \\MLA_View_List_Table -->
280
- <g id="node31" class="node"><title>\\MLA_View_List_Table</title>
281
  <a xlink:href="includes.class-mla-view-list-table.html" xlink:title="MLA_View_List_Table" target="_parent">
282
- <polygon fill="none" stroke="black" points="668.5,-390.187 523.5,-390.187 523.5,-354.187 668.5,-354.187 668.5,-390.187"/>
283
- <text text-anchor="middle" x="596" y="-369.387" font-family="Courier,monospace" font-size="11.00">MLA_View_List_Table</text>
284
  </a>
285
  </g>
286
  <!-- \\MLA_View_List_Table&#45;&gt;\\WP_List_Table -->
287
  <g id="edge17" class="edge"><title>\\MLA_View_List_Table&#45;&gt;\\WP_List_Table</title>
288
- <path fill="none" stroke="black" d="M523.348,-366.294C509.446,-362.112 496.084,-355.504 486,-345.187 383.497,-240.316 519.16,-125.394 414,-23.1869 382.185,7.73505 360.268,-1.2252 316,-4.18694"/>
289
- <path fill="none" stroke="black" d="M314,-4.18694C269.732,-7.14868 248.481,7.03496 216,-23.1869 140.341,-93.5829 90.2454,-425.068 76.6986,-524.759"/>
290
- <polygon fill="none" stroke="black" points="73.1899,-524.59 75.3298,-534.967 80.1279,-525.521 73.1899,-524.59"/>
291
  </g>
292
  <!-- \\MLA_WPML -->
293
- <g id="node32" class="node"><title>\\MLA_WPML</title>
294
  <a xlink:href="includes.class-mla-wpml-support.html" xlink:title="MLA_WPML" target="_parent">
295
- <polygon fill="none" stroke="black" points="631.5,-444.187 560.5,-444.187 560.5,-408.187 631.5,-408.187 631.5,-444.187"/>
296
- <text text-anchor="middle" x="596" y="-423.387" font-family="Courier,monospace" font-size="11.00">MLA_WPML</text>
297
  </a>
298
  </g>
299
  <!-- \\MLA_WPML_List_Table -->
300
- <g id="node33" class="node"><title>\\MLA_WPML_List_Table</title>
301
  <a xlink:href="includes.class-mla-wpml-support.html" xlink:title="MLA_WPML_List_Table" target="_parent">
302
- <polygon fill="none" stroke="black" points="668.5,-2010.19 523.5,-2010.19 523.5,-1974.19 668.5,-1974.19 668.5,-2010.19"/>
303
- <text text-anchor="middle" x="596" y="-1989.39" font-family="Courier,monospace" font-size="11.00">MLA_WPML_List_Table</text>
304
  </a>
305
  </g>
306
  <!-- \\MLA_WPML_List_Table&#45;&gt;\\MLA_List_Table -->
307
  <g id="edge19" class="edge"><title>\\MLA_WPML_List_Table&#45;&gt;\\MLA_List_Table</title>
308
- <path fill="none" stroke="black" d="M523.429,-1986.57C509.438,-1982.38 496.019,-1975.7 486,-1965.19 367.276,-1840.58 325.826,-1266.31 317.616,-1130.87"/>
309
- <polygon fill="none" stroke="black" points="321.087,-1130.28 317.001,-1120.5 314.1,-1130.69 321.087,-1130.28"/>
310
  </g>
311
  <!-- \\MLA_WPML_Table -->
312
- <g id="node34" class="node"><title>\\MLA_WPML_Table</title>
313
  <a xlink:href="includes.class-mla-wpml-support.html" xlink:title="MLA_WPML_Table" target="_parent">
314
- <polygon fill="none" stroke="black" points="651.5,-336.187 540.5,-336.187 540.5,-300.187 651.5,-300.187 651.5,-336.187"/>
315
- <text text-anchor="middle" x="596" y="-315.387" font-family="Courier,monospace" font-size="11.00">MLA_WPML_Table</text>
316
  </a>
317
  </g>
318
  <!-- \\MLAUninstall -->
319
- <g id="node35" class="node"><title>\\MLAUninstall</title>
320
  <a xlink:href="mla-uninstall.html" xlink:title="MLAUninstall" target="_parent">
321
- <polygon fill="none" stroke="black" points="645,-282.187 547,-282.187 547,-246.187 645,-246.187 645,-282.187"/>
322
- <text text-anchor="middle" x="596" y="-261.387" font-family="Courier,monospace" font-size="11.00">MLAUninstall</text>
323
  </a>
324
  </g>
325
  <!-- \\MLATest -->
326
- <g id="node36" class="node"><title>\\MLATest</title>
327
  <a xlink:href="tests.class-mla-tests.html" xlink:title="MLATest" target="_parent">
328
- <polygon fill="none" stroke="black" points="628,-228.187 564,-228.187 564,-192.187 628,-192.187 628,-228.187"/>
329
- <text text-anchor="middle" x="596" y="-207.387" font-family="Courier,monospace" font-size="11.00">MLATest</text>
330
  </a>
331
  </g>
332
  </g>
4
  <!-- Generated by graphviz version 2.28.0 (20110507.0327)
5
  -->
6
  <!-- Title: G Pages: 1 -->
7
+ <svg width="730pt" height="2108pt"
8
+ viewBox="0.00 0.00 730.00 2108.27" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
9
+ <g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 2104.27)">
10
  <title>G</title>
11
+ <polygon fill="white" stroke="white" points="-4,5 -4,-2104.27 727,-2104.27 727,5 -4,5"/>
12
  <g id="graph2" class="cluster"><title>cluster_global</title>
13
+ <polyline fill="none" stroke="gray" points="263,-184.27 702,-184.27 "/>
14
+ <path fill="none" stroke="gray" d="M702,-184.27C708,-184.27 714,-190.27 714,-196.27"/>
15
+ <polyline fill="none" stroke="gray" points="714,-196.27 714,-2080.27 "/>
16
+ <path fill="none" stroke="gray" d="M714,-2080.27C714,-2086.27 708,-2092.27 702,-2092.27"/>
17
+ <polyline fill="none" stroke="gray" points="702,-2092.27 263,-2092.27 "/>
18
+ <path fill="none" stroke="gray" d="M263,-2092.27C257,-2092.27 251,-2086.27 251,-2080.27"/>
19
+ <polyline fill="none" stroke="gray" points="251,-2080.27 251,-196.27 "/>
20
+ <path fill="none" stroke="gray" d="M251,-196.27C251,-190.27 257,-184.27 263,-184.27"/>
21
+ <text text-anchor="middle" x="482.5" y="-2079.47" font-family="Times New Roman,serif" font-size="11.00" fill="gray">global</text>
22
  </g>
23
  <!-- \\MNA_Pad_Counts_Walker -->
24
  <g id="node2" class="node"><title>\\MNA_Pad_Counts_Walker</title>
25
  <a xlink:href="examples.twentytwelve-mla.content-tosca30-dropdown.html" xlink:title="MNA_Pad_Counts_Walker" target="_parent">
26
+ <polygon fill="none" stroke="black" points="675,-2010.27 517,-2010.27 517,-1974.27 675,-1974.27 675,-2010.27"/>
27
+ <text text-anchor="middle" x="596" y="-1989.47" font-family="Courier,monospace" font-size="11.00">MNA_Pad_Counts_Walker</text>
28
  </a>
29
  </g>
30
  <!-- \\Walker_Category -->
31
+ <g id="node39" class="node"><title>\\Walker_Category</title>
32
+ <ellipse fill="none" stroke="black" cx="315" cy="-158.27" rx="77.1866" ry="18"/>
33
+ <text text-anchor="middle" x="315" y="-154.57" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\Walker_Category</text>
34
  </g>
35
  <!-- \\MNA_Pad_Counts_Walker&#45;&gt;\\Walker_Category -->
36
  <g id="edge3" class="edge"><title>\\MNA_Pad_Counts_Walker&#45;&gt;\\Walker_Category</title>
37
+ <path fill="none" stroke="black" d="M516.887,-1986.01C504.978,-1981.66 494.009,-1975.09 486,-1965.27 360.549,-1811.44 541.135,-332.707 414,-180.27 409.749,-175.173 404.596,-171.105 398.902,-167.874"/>
38
+ <polygon fill="none" stroke="black" points="400.099,-164.568 389.563,-163.455 397.106,-170.896 400.099,-164.568"/>
39
  </g>
40
  <!-- \\CPAC_Storage_Model_MLA -->
41
  <g id="node3" class="node"><title>\\CPAC_Storage_Model_MLA</title>
42
  <a xlink:href="includes.class-mla-admin-columns-support.html" xlink:title="CPAC_Storage_Model_MLA" target="_parent">
43
+ <polygon fill="none" stroke="black" points="678.5,-1038.27 513.5,-1038.27 513.5,-1002.27 678.5,-1002.27 678.5,-1038.27"/>
44
+ <text text-anchor="middle" x="596" y="-1017.47" font-family="Courier,monospace" font-size="11.00">CPAC_Storage_Model_MLA</text>
45
  </a>
46
  </g>
47
  <!-- \\CPAC_Storage_Model -->
48
+ <g id="node41" class="node"><title>\\CPAC_Storage_Model</title>
49
+ <ellipse fill="none" stroke="black" cx="315" cy="-104.27" rx="98.5829" ry="18"/>
50
+ <text text-anchor="middle" x="315" y="-100.57" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\CPAC_Storage_Model</text>
51
  </g>
52
  <!-- \\CPAC_Storage_Model_MLA&#45;&gt;\\CPAC_Storage_Model -->
53
  <g id="edge5" class="edge"><title>\\CPAC_Storage_Model_MLA&#45;&gt;\\CPAC_Storage_Model</title>
54
+ <path fill="none" stroke="black" d="M513.41,-1012.25C502.939,-1007.97 493.333,-1001.88 486,-993.27 361.337,-846.953 536.748,-279.197 414,-131.27 410.566,-127.132 406.562,-123.597 402.171,-120.579"/>
55
+ <polygon fill="none" stroke="black" points="403.699,-117.418 393.299,-115.392 400.165,-123.461 403.699,-117.418"/>
56
  </g>
57
  <!-- \\MLA_Ajax -->
58
  <g id="node4" class="node"><title>\\MLA_Ajax</title>
59
  <a xlink:href="includes.class-mla-ajax.html" xlink:title="MLA_Ajax" target="_parent">
60
+ <polygon fill="none" stroke="black" points="631.5,-1956.27 560.5,-1956.27 560.5,-1920.27 631.5,-1920.27 631.5,-1956.27"/>
61
+ <text text-anchor="middle" x="596" y="-1935.47" font-family="Courier,monospace" font-size="11.00">MLA_Ajax</text>
62
  </a>
63
  </g>
64
  <!-- \\MLACoreOptions -->
65
  <g id="node5" class="node"><title>\\MLACoreOptions</title>
66
  <a xlink:href="includes.class-mla-core-options.html" xlink:title="MLACoreOptions" target="_parent">
67
+ <polygon fill="none" stroke="black" points="651.5,-1902.27 540.5,-1902.27 540.5,-1866.27 651.5,-1866.27 651.5,-1902.27"/>
68
+ <text text-anchor="middle" x="596" y="-1881.47" font-family="Courier,monospace" font-size="11.00">MLACoreOptions</text>
69
  </a>
70
  </g>
71
  <!-- \\MLACore -->
72
  <g id="node6" class="node"><title>\\MLACore</title>
73
  <a xlink:href="includes.class-mla-core.html" xlink:title="MLACore" target="_parent">
74
+ <polygon fill="none" stroke="black" points="628,-1848.27 564,-1848.27 564,-1812.27 628,-1812.27 628,-1848.27"/>
75
+ <text text-anchor="middle" x="596" y="-1827.47" font-family="Courier,monospace" font-size="11.00">MLACore</text>
76
  </a>
77
  </g>
78
  <!-- \\MLA_Checklist_Walker -->
79
  <g id="node7" class="node"><title>\\MLA_Checklist_Walker</title>
80
  <a xlink:href="includes.class-mla-core.html" xlink:title="MLA_Checklist_Walker" target="_parent">
81
+ <polygon fill="none" stroke="black" points="672,-1794.27 520,-1794.27 520,-1758.27 672,-1758.27 672,-1794.27"/>
82
+ <text text-anchor="middle" x="596" y="-1773.47" font-family="Courier,monospace" font-size="11.00">MLA_Checklist_Walker</text>
83
  </a>
84
  </g>
85
  <!-- \\MLA_Checklist_Walker&#45;&gt;\\Walker_Category -->
86
  <g id="edge7" class="edge"><title>\\MLA_Checklist_Walker&#45;&gt;\\Walker_Category</title>
87
+ <path fill="none" stroke="black" d="M519.976,-1771.03C506.898,-1766.72 494.716,-1759.9 486,-1749.27 375.329,-1614.33 526.148,-313.982 414,-180.27 409.735,-175.185 404.572,-171.125 398.872,-167.899"/>
88
+ <polygon fill="none" stroke="black" points="400.062,-164.591 389.525,-163.488 397.074,-170.921 400.062,-164.591"/>
89
  </g>
90
  <!-- \\MLAPDF -->
91
  <g id="node8" class="node"><title>\\MLAPDF</title>
92
  <a xlink:href="includes.class-mla-data-pdf.html" xlink:title="MLAPDF" target="_parent">
93
+ <polygon fill="none" stroke="black" points="624.5,-1740.27 567.5,-1740.27 567.5,-1704.27 624.5,-1704.27 624.5,-1740.27"/>
94
+ <text text-anchor="middle" x="596" y="-1719.47" font-family="Courier,monospace" font-size="11.00">MLAPDF</text>
95
  </a>
96
  </g>
97
  <!-- \\MLAQuery -->
98
  <g id="node9" class="node"><title>\\MLAQuery</title>
99
  <a xlink:href="includes.class-mla-data-query.html" xlink:title="MLAQuery" target="_parent">
100
+ <polygon fill="none" stroke="black" points="631.5,-1686.27 560.5,-1686.27 560.5,-1650.27 631.5,-1650.27 631.5,-1686.27"/>
101
+ <text text-anchor="middle" x="596" y="-1665.47" font-family="Courier,monospace" font-size="11.00">MLAQuery</text>
102
  </a>
103
  </g>
104
  <!-- \\MLAReferences -->
105
  <g id="node10" class="node"><title>\\MLAReferences</title>
106
  <a xlink:href="includes.class-mla-data-references.html" xlink:title="MLAReferences" target="_parent">
107
+ <polygon fill="none" stroke="black" points="648,-1632.27 544,-1632.27 544,-1596.27 648,-1596.27 648,-1632.27"/>
108
+ <text text-anchor="middle" x="596" y="-1611.47" font-family="Courier,monospace" font-size="11.00">MLAReferences</text>
109
  </a>
110
  </g>
111
  <!-- \\MLAData_Source -->
112
  <g id="node11" class="node"><title>\\MLAData_Source</title>
113
  <a xlink:href="includes.class-mla-data-source.html" xlink:title="MLAData_Source" target="_parent">
114
+ <polygon fill="none" stroke="black" points="651.5,-1578.27 540.5,-1578.27 540.5,-1542.27 651.5,-1542.27 651.5,-1578.27"/>
115
+ <text text-anchor="middle" x="596" y="-1557.47" font-family="Courier,monospace" font-size="11.00">MLAData_Source</text>
116
  </a>
117
  </g>
118
  <!-- \\MLAData -->
119
  <g id="node12" class="node"><title>\\MLAData</title>
120
  <a xlink:href="includes.class-mla-data.html" xlink:title="MLAData" target="_parent">
121
+ <polygon fill="none" stroke="black" points="628,-1524.27 564,-1524.27 564,-1488.27 628,-1488.27 628,-1524.27"/>
122
+ <text text-anchor="middle" x="596" y="-1503.47" font-family="Courier,monospace" font-size="11.00">MLAData</text>
123
  </a>
124
  </g>
125
  <!-- \\MLAEdit -->
126
  <g id="node13" class="node"><title>\\MLAEdit</title>
127
  <a xlink:href="includes.class-mla-edit-media.html" xlink:title="MLAEdit" target="_parent">
128
+ <polygon fill="none" stroke="black" points="628,-1470.27 564,-1470.27 564,-1434.27 628,-1434.27 628,-1470.27"/>
129
+ <text text-anchor="middle" x="596" y="-1449.47" font-family="Courier,monospace" font-size="11.00">MLAEdit</text>
130
  </a>
131
  </g>
132
  <!-- \\MLAImageProcessor -->
133
  <g id="node14" class="node"><title>\\MLAImageProcessor</title>
134
  <a xlink:href="includes.class-mla-image-processor.html" xlink:title="MLAImageProcessor" target="_parent">
135
+ <polygon fill="none" stroke="black" points="661.5,-1416.27 530.5,-1416.27 530.5,-1380.27 661.5,-1380.27 661.5,-1416.27"/>
136
+ <text text-anchor="middle" x="596" y="-1395.47" font-family="Courier,monospace" font-size="11.00">MLAImageProcessor</text>
137
  </a>
138
  </g>
139
  <!-- \\MLAMutex -->
140
  <g id="node15" class="node"><title>\\MLAMutex</title>
141
  <a xlink:href="includes.class-mla-image-processor.html" xlink:title="MLAMutex" target="_parent">
142
+ <polygon fill="none" stroke="black" points="631.5,-1362.27 560.5,-1362.27 560.5,-1326.27 631.5,-1326.27 631.5,-1362.27"/>
143
+ <text text-anchor="middle" x="596" y="-1341.47" font-family="Courier,monospace" font-size="11.00">MLAMutex</text>
144
  </a>
145
  </g>
146
  <!-- \\MLA_List_Table -->
147
  <g id="node16" class="node"><title>\\MLA_List_Table</title>
148
  <a xlink:href="includes.class-mla-list-table.html" xlink:title="MLA_List_Table" target="_parent">
149
+ <polygon fill="none" stroke="black" points="370.5,-1147.27 259.5,-1147.27 259.5,-1111.27 370.5,-1111.27 370.5,-1147.27"/>
150
+ <text text-anchor="middle" x="315" y="-1126.47" font-family="Courier,monospace" font-size="11.00">MLA_List_Table</text>
151
  </a>
152
  </g>
153
  <!-- \\WP_List_Table -->
154
+ <g id="node44" class="node"><title>\\WP_List_Table</title>
155
+ <ellipse fill="none" stroke="black" cx="72" cy="-566.27" rx="71.4873" ry="18"/>
156
+ <text text-anchor="middle" x="72" y="-562.57" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_List_Table</text>
157
  </g>
158
  <!-- \\MLA_List_Table&#45;&gt;\\WP_List_Table -->
159
  <g id="edge9" class="edge"><title>\\MLA_List_Table&#45;&gt;\\WP_List_Table</title>
160
+ <path fill="none" stroke="black" d="M259.354,-1127.5C243.634,-1124.43 227.618,-1118.46 216,-1107.27 139.963,-1034.04 89.9668,-695.24 76.5978,-594.559"/>
161
+ <polygon fill="none" stroke="black" points="80.0528,-593.987 75.2829,-584.527 73.1122,-594.897 80.0528,-593.987"/>
162
  </g>
163
  <!-- \\MLA -->
164
  <g id="node17" class="node"><title>\\MLA</title>
165
  <a xlink:href="includes.class-mla-main.html" xlink:title="MLA" target="_parent">
166
+ <polygon fill="none" stroke="black" points="623,-1308.27 569,-1308.27 569,-1272.27 623,-1272.27 623,-1308.27"/>
167
+ <text text-anchor="middle" x="596" y="-1287.47" font-family="Courier,monospace" font-size="11.00">MLA</text>
168
  </a>
169
  </g>
170
  <!-- \\MLAModal_Ajax -->
171
  <g id="node18" class="node"><title>\\MLAModal_Ajax</title>
172
  <a xlink:href="includes.class-mla-media-modal-ajax.html" xlink:title="MLAModal_Ajax" target="_parent">
173
+ <polygon fill="none" stroke="black" points="648,-1254.27 544,-1254.27 544,-1218.27 648,-1218.27 648,-1254.27"/>
174
+ <text text-anchor="middle" x="596" y="-1233.47" font-family="Courier,monospace" font-size="11.00">MLAModal_Ajax</text>
175
  </a>
176
  </g>
177
  <!-- \\MLAModal -->
178
  <g id="node19" class="node"><title>\\MLAModal</title>
179
  <a xlink:href="includes.class-mla-media-modal.html" xlink:title="MLAModal" target="_parent">
180
+ <polygon fill="none" stroke="black" points="631.5,-1200.27 560.5,-1200.27 560.5,-1164.27 631.5,-1164.27 631.5,-1200.27"/>
181
+ <text text-anchor="middle" x="596" y="-1179.47" font-family="Courier,monospace" font-size="11.00">MLAModal</text>
182
  </a>
183
  </g>
184
  <!-- \\MLAMime -->
185
  <g id="node20" class="node"><title>\\MLAMime</title>
186
  <a xlink:href="includes.class-mla-mime-types.html" xlink:title="MLAMime" target="_parent">
187
+ <polygon fill="none" stroke="black" points="628,-1146.27 564,-1146.27 564,-1110.27 628,-1110.27 628,-1146.27"/>
188
+ <text text-anchor="middle" x="596" y="-1125.47" font-family="Courier,monospace" font-size="11.00">MLAMime</text>
189
  </a>
190
  </g>
191
  <!-- \\MLAObjects -->
192
  <g id="node21" class="node"><title>\\MLAObjects</title>
193
  <a xlink:href="includes.class-mla-objects.html" xlink:title="MLAObjects" target="_parent">
194
+ <polygon fill="none" stroke="black" points="638,-1092.27 554,-1092.27 554,-1056.27 638,-1056.27 638,-1092.27"/>
195
+ <text text-anchor="middle" x="596" y="-1071.47" font-family="Courier,monospace" font-size="11.00">MLAObjects</text>
196
  </a>
197
  </g>
198
  <!-- \\MLATextWidget -->
199
  <g id="node22" class="node"><title>\\MLATextWidget</title>
200
  <a xlink:href="includes.class-mla-objects.html" xlink:title="MLATextWidget" target="_parent">
201
+ <polygon fill="none" stroke="black" points="648,-606.27 544,-606.27 544,-570.27 648,-570.27 648,-606.27"/>
202
+ <text text-anchor="middle" x="596" y="-585.47" font-family="Courier,monospace" font-size="11.00">MLATextWidget</text>
203
  </a>
204
  </g>
205
  <!-- \\WP_Widget -->
206
+ <g id="node46" class="node"><title>\\WP_Widget</title>
207
+ <ellipse fill="none" stroke="black" cx="315" cy="-50.2701" rx="58.4896" ry="18"/>
208
+ <text text-anchor="middle" x="315" y="-46.5701" font-family="Times New Roman,serif" font-size="14.00" fill="gray">\WP_Widget</text>
209
  </g>
210
  <!-- \\MLATextWidget&#45;&gt;\\WP_Widget -->
211
  <g id="edge11" class="edge"><title>\\MLATextWidget&#45;&gt;\\WP_Widget</title>
212
+ <path fill="none" stroke="black" d="M543.997,-587.548C523.185,-584.55 500.622,-577.354 486,-561.27 339.706,-400.351 558.188,-240.079 414,-77.2701 405.552,-67.7315 394.075,-61.4257 381.948,-57.2878"/>
213
+ <polygon fill="none" stroke="black" points="382.71,-53.8639 372.129,-54.4137 380.743,-60.582 382.71,-53.8639"/>
214
  </g>
215
  <!-- \\MLAOptions -->
216
  <g id="node23" class="node"><title>\\MLAOptions</title>
217
  <a xlink:href="includes.class-mla-options.html" xlink:title="MLAOptions" target="_parent">
218
+ <polygon fill="none" stroke="black" points="638,-984.27 554,-984.27 554,-948.27 638,-948.27 638,-984.27"/>
219
+ <text text-anchor="middle" x="596" y="-963.47" font-family="Courier,monospace" font-size="11.00">MLAOptions</text>
220
  </a>
221
  </g>
222
  <!-- \\MLA_Polylang -->
223
  <g id="node24" class="node"><title>\\MLA_Polylang</title>
224
  <a xlink:href="includes.class-mla-polylang-support.html" xlink:title="MLA_Polylang" target="_parent">
225
+ <polygon fill="none" stroke="black" points="645,-930.27 547,-930.27 547,-894.27 645,-894.27 645,-930.27"/>
226
+ <text text-anchor="middle" x="596" y="-909.47" font-family="Courier,monospace" font-size="11.00">MLA_Polylang</text>
227
  </a>
228
  </g>
229
  <!-- \\MLASettings -->
230
  <g id="node25" class="node"><title>\\MLASettings</title>
231
  <a xlink:href="includes.class-mla-settings.html" xlink:title="MLASettings" target="_parent">
232
+ <polygon fill="none" stroke="black" points="641.5,-876.27 550.5,-876.27 550.5,-840.27 641.5,-840.27 641.5,-876.27"/>
233
+ <text text-anchor="middle" x="596" y="-855.47" font-family="Courier,monospace" font-size="11.00">MLASettings</text>
234
  </a>
235
  </g>
236
  <!-- \\MLAShortcode_Support -->
237
  <g id="node26" class="node"><title>\\MLAShortcode_Support</title>
238
  <a xlink:href="includes.class-mla-shortcode-support.html" xlink:title="MLAShortcode_Support" target="_parent">
239
+ <polygon fill="none" stroke="black" points="672,-822.27 520,-822.27 520,-786.27 672,-786.27 672,-822.27"/>
240
+ <text text-anchor="middle" x="596" y="-801.47" font-family="Courier,monospace" font-size="11.00">MLAShortcode_Support</text>
241
  </a>
242
  </g>
243
  <!-- \\MLAShortcodes -->
244
  <g id="node27" class="node"><title>\\MLAShortcodes</title>
245
  <a xlink:href="includes.class-mla-shortcodes.html" xlink:title="MLAShortcodes" target="_parent">
246
+ <polygon fill="none" stroke="black" points="648,-768.27 544,-768.27 544,-732.27 648,-732.27 648,-768.27"/>
247
+ <text text-anchor="middle" x="596" y="-747.47" font-family="Courier,monospace" font-size="11.00">MLAShortcodes</text>
248
+ </a>
249
+ </g>
250
+ <!-- \\MLATemplate_Support -->
251
+ <g id="node28" class="node"><title>\\MLATemplate_Support</title>
252
+ <a xlink:href="includes.class-mla-template-support.html" xlink:title="MLATemplate_Support" target="_parent">
253
+ <polygon fill="none" stroke="black" points="668.5,-714.27 523.5,-714.27 523.5,-678.27 668.5,-678.27 668.5,-714.27"/>
254
+ <text text-anchor="middle" x="596" y="-693.47" font-family="Courier,monospace" font-size="11.00">MLATemplate_Support</text>
255
  </a>
256
  </g>
257
  <!-- \\MLA_Thumbnail -->
258
+ <g id="node29" class="node"><title>\\MLA_Thumbnail</title>
259
  <a xlink:href="includes.class-mla-thumbnail-generation.html" xlink:title="MLA_Thumbnail" target="_parent">
260
+ <polygon fill="none" stroke="black" points="648,-660.27 544,-660.27 544,-624.27 648,-624.27 648,-660.27"/>
261
+ <text text-anchor="middle" x="596" y="-639.47" font-family="Courier,monospace" font-size="11.00">MLA_Thumbnail</text>
262
  </a>
263
  </g>
264
  <!-- \\MLA_Upload_List_Table -->
265
+ <g id="node30" class="node"><title>\\MLA_Upload_List_Table</title>
266
  <a xlink:href="includes.class-mla-upload-list-table.html" xlink:title="MLA_Upload_List_Table" target="_parent">
267
+ <polygon fill="none" stroke="black" points="675,-552.27 517,-552.27 517,-516.27 675,-516.27 675,-552.27"/>
268
+ <text text-anchor="middle" x="596" y="-531.47" font-family="Courier,monospace" font-size="11.00">MLA_Upload_List_Table</text>
269
  </a>
270
  </g>
271
  <!-- \\MLA_Upload_List_Table&#45;&gt;\\WP_List_Table -->
272
  <g id="edge13" class="edge"><title>\\MLA_Upload_List_Table&#45;&gt;\\WP_List_Table</title>
273
+ <path fill="none" stroke="black" d="M516.918,-526.968C505.23,-522.707 494.328,-516.43 486,-507.27 339.706,-346.351 564.374,-180.383 414,-23.2701 383.323,8.78162 360.254,-1.11822 316,-4.27014"/>
274
  </g>
275
  <!-- \\MLA_Upload_Optional_List_Table -->
276
+ <g id="node31" class="node"><title>\\MLA_Upload_Optional_List_Table</title>
277
  <a xlink:href="includes.class-mla-upload-optional-list-table.html" xlink:title="MLA_Upload_Optional_List_Table" target="_parent">
278
+ <polygon fill="none" stroke="black" points="705.5,-498.27 486.5,-498.27 486.5,-462.27 705.5,-462.27 705.5,-498.27"/>
279
+ <text text-anchor="middle" x="596" y="-477.47" font-family="Courier,monospace" font-size="11.00">MLA_Upload_Optional_List_Table</text>
280
  </a>
281
  </g>
282
  <!-- \\MLA_Upload_Optional_List_Table&#45;&gt;\\WP_List_Table -->
283
  <g id="edge15" class="edge"><title>\\MLA_Upload_Optional_List_Table&#45;&gt;\\WP_List_Table</title>
284
+ <path fill="none" stroke="black" d="M496.052,-462.061C492.425,-459.477 489.046,-456.56 486,-453.27 354.352,-311.086 549.252,-162.03 414,-23.2701 383.032,8.50074 360.254,-1.11822 316,-4.27014"/>
285
  </g>
286
  <!-- \\MLA_View_List_Table -->
287
+ <g id="node32" class="node"><title>\\MLA_View_List_Table</title>
288
  <a xlink:href="includes.class-mla-view-list-table.html" xlink:title="MLA_View_List_Table" target="_parent">
289
+ <polygon fill="none" stroke="black" points="668.5,-390.27 523.5,-390.27 523.5,-354.27 668.5,-354.27 668.5,-390.27"/>
290
+ <text text-anchor="middle" x="596" y="-369.47" font-family="Courier,monospace" font-size="11.00">MLA_View_List_Table</text>
291
  </a>
292
  </g>
293
  <!-- \\MLA_View_List_Table&#45;&gt;\\WP_List_Table -->
294
  <g id="edge17" class="edge"><title>\\MLA_View_List_Table&#45;&gt;\\WP_List_Table</title>
295
+ <path fill="none" stroke="black" d="M523.348,-366.378C509.446,-362.196 496.084,-355.587 486,-345.27 383.497,-240.399 519.16,-125.477 414,-23.2701 382.185,7.65184 360.254,-1.11822 316,-4.27014"/>
296
+ <path fill="none" stroke="black" d="M314,-4.27014C269.746,-7.42207 248.39,7.04956 216,-23.2701 138.578,-95.7439 89.4654,-437.245 76.4655,-538.137"/>
297
+ <polygon fill="none" stroke="black" points="72.9776,-537.821 75.1887,-548.183 79.9218,-538.704 72.9776,-537.821"/>
298
  </g>
299
  <!-- \\MLA_WPML -->
300
+ <g id="node33" class="node"><title>\\MLA_WPML</title>
301
  <a xlink:href="includes.class-mla-wpml-support.html" xlink:title="MLA_WPML" target="_parent">
302
+ <polygon fill="none" stroke="black" points="631.5,-444.27 560.5,-444.27 560.5,-408.27 631.5,-408.27 631.5,-444.27"/>
303
+ <text text-anchor="middle" x="596" y="-423.47" font-family="Courier,monospace" font-size="11.00">MLA_WPML</text>
304
  </a>
305
  </g>
306
  <!-- \\MLA_WPML_List_Table -->
307
+ <g id="node34" class="node"><title>\\MLA_WPML_List_Table</title>
308
  <a xlink:href="includes.class-mla-wpml-support.html" xlink:title="MLA_WPML_List_Table" target="_parent">
309
+ <polygon fill="none" stroke="black" points="668.5,-2064.27 523.5,-2064.27 523.5,-2028.27 668.5,-2028.27 668.5,-2064.27"/>
310
+ <text text-anchor="middle" x="596" y="-2043.47" font-family="Courier,monospace" font-size="11.00">MLA_WPML_List_Table</text>
311
  </a>
312
  </g>
313
  <!-- \\MLA_WPML_List_Table&#45;&gt;\\MLA_List_Table -->
314
  <g id="edge19" class="edge"><title>\\MLA_WPML_List_Table&#45;&gt;\\MLA_List_Table</title>
315
+ <path fill="none" stroke="black" d="M523.384,-2040.7C509.395,-2036.51 495.989,-2029.81 486,-2019.27 363.683,-1890.15 324.814,-1294.73 317.408,-1157.53"/>
316
+ <polygon fill="none" stroke="black" points="320.896,-1157.21 316.874,-1147.41 313.906,-1157.58 320.896,-1157.21"/>
317
  </g>
318
  <!-- \\MLA_WPML_Table -->
319
+ <g id="node35" class="node"><title>\\MLA_WPML_Table</title>
320
  <a xlink:href="includes.class-mla-wpml-support.html" xlink:title="MLA_WPML_Table" target="_parent">
321
+ <polygon fill="none" stroke="black" points="651.5,-336.27 540.5,-336.27 540.5,-300.27 651.5,-300.27 651.5,-336.27"/>
322
+ <text text-anchor="middle" x="596" y="-315.47" font-family="Courier,monospace" font-size="11.00">MLA_WPML_Table</text>
323
  </a>
324
  </g>
325
  <!-- \\MLAUninstall -->
326
+ <g id="node36" class="node"><title>\\MLAUninstall</title>
327
  <a xlink:href="mla-uninstall.html" xlink:title="MLAUninstall" target="_parent">
328
+ <polygon fill="none" stroke="black" points="645,-282.27 547,-282.27 547,-246.27 645,-246.27 645,-282.27"/>
329
+ <text text-anchor="middle" x="596" y="-261.47" font-family="Courier,monospace" font-size="11.00">MLAUninstall</text>
330
  </a>
331
  </g>
332
  <!-- \\MLATest -->
333
+ <g id="node37" class="node"><title>\\MLATest</title>
334
  <a xlink:href="tests.class-mla-tests.html" xlink:title="MLATest" target="_parent">
335
+ <polygon fill="none" stroke="black" points="628,-228.27 564,-228.27 564,-192.27 628,-192.27 628,-228.27"/>
336
+ <text text-anchor="middle" x="596" y="-207.47" font-family="Courier,monospace" font-size="11.00">MLATest</text>
337
  </a>
338
  </g>
339
  </g>
phpDocs/classes/CPAC_Storage_Model_MLA.html CHANGED
@@ -284,7 +284,7 @@ For Admin Columns 2.4.9+</h2>
284
  <div class="row"><footer class="span12">
285
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
286
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
287
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
288
  </div>
289
  </body>
290
  </html>
284
  <div class="row"><footer class="span12">
285
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
286
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
287
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
288
  </div>
289
  </body>
290
  </html>
phpDocs/classes/MLA.html CHANGED
@@ -95,7 +95,6 @@ returns from Media/Edit Media initiated from Media/Assistant</span><pre>mla_load
95
  <li class="property private "><a href="#%24page_hooks" title="$page_hooks :: Holds screen ids to match help text to corresponding screen"><span class="description">Holds screen ids to match help text to corresponding screen</span><pre>$page_hooks</pre></a></li>
96
  <li class="nav-header">
97
  <i class="icon-custom icon-constant"></i> Constants</li>
98
- <li class="constant "><a href="#CURRENT_MLA_VERSION" title="CURRENT_MLA_VERSION :: Current version number"><span class="description">Current version number</span><pre>CURRENT_MLA_VERSION</pre></a></li>
99
  <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_OBJECT" title="JAVASCRIPT_INLINE_EDIT_OBJECT :: Object name for localizing JavaScript - MLA List Table"><span class="description">Object name for localizing JavaScript - MLA List Table</span><pre>JAVASCRIPT_INLINE_EDIT_OBJECT</pre></a></li>
100
  <li class="constant "><a href="#MLA_ADMIN_SET_PARENT" title="MLA_ADMIN_SET_PARENT :: mla_admin_action value for setting an item's parent object"><span class="description">mla_admin_action value for setting an item's parent object</span><pre>MLA_ADMIN_SET_PARENT</pre></a></li>
101
  <li class="constant "><a href="#MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP" title="MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP :: mla_admin_action value for mapping Custom Field metadata"><span class="description">mla_admin_action value for mapping Custom Field metadata</span><pre>MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP</pre></a></li>
@@ -104,7 +103,6 @@ returns from Media/Edit Media initiated from Media/Assistant</span><pre>mla_load
104
  <li class="constant "><a href="#MLA_ADMIN_SINGLE_MAP" title="MLA_ADMIN_SINGLE_MAP :: mla_admin_action value for mapping IPTC/EXIF metadata"><span class="description">mla_admin_action value for mapping IPTC/EXIF metadata</span><pre>MLA_ADMIN_SINGLE_MAP</pre></a></li>
105
  <li class="constant "><a href="#MLA_ADMIN_TERMS_SEARCH" title="MLA_ADMIN_TERMS_SEARCH :: mla_admin_action value for searching taxonomy terms"><span class="description">mla_admin_action value for searching taxonomy terms</span><pre>MLA_ADMIN_TERMS_SEARCH</pre></a></li>
106
  <li class="constant "><a href="#MLA_DEVELOPMENT_VERSION" title="MLA_DEVELOPMENT_VERSION :: Current date for Development Version, empty for production versions"><span class="description">Current date for Development Version, empty for production versions</span><pre>MLA_DEVELOPMENT_VERSION</pre></a></li>
107
- <li class="constant "><a href="#STYLESHEET_SLUG" title="STYLESHEET_SLUG :: Slug for registering and enqueueing plugin style sheet"><span class="description">Slug for registering and enqueueing plugin style sheet</span><pre>STYLESHEET_SLUG</pre></a></li>
108
  </ul>
109
  </div>
110
  <div class="span8">
@@ -643,18 +641,6 @@ returns from Media/Edit Media initiated from Media/Assistant</h2>
643
  </div>
644
  <h3>
645
  <i class="icon-custom icon-constant"></i> Constants</h3>
646
- <a name="CURRENT_MLA_VERSION" id="CURRENT_MLA_VERSION"> </a><div class="element clickable constant CURRENT_MLA_VERSION" data-toggle="collapse" data-target=".CURRENT_MLA_VERSION .collapse">
647
- <h2>Current version number</h2>
648
- <pre>CURRENT_MLA_VERSION : string</pre>
649
- <div class="labels"></div>
650
- <div class="row collapse"><div class="detail-description">
651
- <p class="long_description"></p>
652
- <table class="table table-bordered"><tr>
653
- <th>since</th>
654
- <td>0.1</td>
655
- </tr></table>
656
- </div></div>
657
- </div>
658
  <a name="JAVASCRIPT_INLINE_EDIT_OBJECT" id="JAVASCRIPT_INLINE_EDIT_OBJECT"> </a><div class="element clickable constant JAVASCRIPT_INLINE_EDIT_OBJECT" data-toggle="collapse" data-target=".JAVASCRIPT_INLINE_EDIT_OBJECT .collapse">
659
  <h2>Object name for localizing JavaScript - MLA List Table</h2>
660
  <pre>JAVASCRIPT_INLINE_EDIT_OBJECT : string</pre>
@@ -751,18 +737,6 @@ returns from Media/Edit Media initiated from Media/Assistant</h2>
751
  </tr></table>
752
  </div></div>
753
  </div>
754
- <a name="STYLESHEET_SLUG" id="STYLESHEET_SLUG"> </a><div class="element clickable constant STYLESHEET_SLUG" data-toggle="collapse" data-target=".STYLESHEET_SLUG .collapse">
755
- <h2>Slug for registering and enqueueing plugin style sheet</h2>
756
- <pre>STYLESHEET_SLUG : string</pre>
757
- <div class="labels"></div>
758
- <div class="row collapse"><div class="detail-description">
759
- <p class="long_description"></p>
760
- <table class="table table-bordered"><tr>
761
- <th>since</th>
762
- <td>0.1</td>
763
- </tr></table>
764
- </div></div>
765
- </div>
766
  </div>
767
  </div>
768
  </div>
@@ -770,7 +744,7 @@ returns from Media/Edit Media initiated from Media/Assistant</h2>
770
  <div class="row"><footer class="span12">
771
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
772
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
773
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
774
  </div>
775
  </body>
776
  </html>
95
  <li class="property private "><a href="#%24page_hooks" title="$page_hooks :: Holds screen ids to match help text to corresponding screen"><span class="description">Holds screen ids to match help text to corresponding screen</span><pre>$page_hooks</pre></a></li>
96
  <li class="nav-header">
97
  <i class="icon-custom icon-constant"></i> Constants</li>
 
98
  <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_OBJECT" title="JAVASCRIPT_INLINE_EDIT_OBJECT :: Object name for localizing JavaScript - MLA List Table"><span class="description">Object name for localizing JavaScript - MLA List Table</span><pre>JAVASCRIPT_INLINE_EDIT_OBJECT</pre></a></li>
99
  <li class="constant "><a href="#MLA_ADMIN_SET_PARENT" title="MLA_ADMIN_SET_PARENT :: mla_admin_action value for setting an item's parent object"><span class="description">mla_admin_action value for setting an item's parent object</span><pre>MLA_ADMIN_SET_PARENT</pre></a></li>
100
  <li class="constant "><a href="#MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP" title="MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP :: mla_admin_action value for mapping Custom Field metadata"><span class="description">mla_admin_action value for mapping Custom Field metadata</span><pre>MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP</pre></a></li>
103
  <li class="constant "><a href="#MLA_ADMIN_SINGLE_MAP" title="MLA_ADMIN_SINGLE_MAP :: mla_admin_action value for mapping IPTC/EXIF metadata"><span class="description">mla_admin_action value for mapping IPTC/EXIF metadata</span><pre>MLA_ADMIN_SINGLE_MAP</pre></a></li>
104
  <li class="constant "><a href="#MLA_ADMIN_TERMS_SEARCH" title="MLA_ADMIN_TERMS_SEARCH :: mla_admin_action value for searching taxonomy terms"><span class="description">mla_admin_action value for searching taxonomy terms</span><pre>MLA_ADMIN_TERMS_SEARCH</pre></a></li>
105
  <li class="constant "><a href="#MLA_DEVELOPMENT_VERSION" title="MLA_DEVELOPMENT_VERSION :: Current date for Development Version, empty for production versions"><span class="description">Current date for Development Version, empty for production versions</span><pre>MLA_DEVELOPMENT_VERSION</pre></a></li>
 
106
  </ul>
107
  </div>
108
  <div class="span8">
641
  </div>
642
  <h3>
643
  <i class="icon-custom icon-constant"></i> Constants</h3>
 
 
 
 
 
 
 
 
 
 
 
 
644
  <a name="JAVASCRIPT_INLINE_EDIT_OBJECT" id="JAVASCRIPT_INLINE_EDIT_OBJECT"> </a><div class="element clickable constant JAVASCRIPT_INLINE_EDIT_OBJECT" data-toggle="collapse" data-target=".JAVASCRIPT_INLINE_EDIT_OBJECT .collapse">
645
  <h2>Object name for localizing JavaScript - MLA List Table</h2>
646
  <pre>JAVASCRIPT_INLINE_EDIT_OBJECT : string</pre>
737
  </tr></table>
738
  </div></div>
739
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
740
  </div>
741
  </div>
742
  </div>
744
  <div class="row"><footer class="span12">
745
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
746
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
747
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
748
  </div>
749
  </body>
750
  </html>
phpDocs/classes/MLACore.html CHANGED
@@ -70,6 +70,7 @@
70
  <li class="method public "><a href="#mla_get_option" title="mla_get_option :: Return the stored value or default value of a defined MLA option"><span class="description">Return the stored value or default value of a defined MLA option</span><pre>mla_get_option()</pre></a></li>
71
  <li class="method public "><a href="#mla_initialize_tax_checked_on_top" title='mla_initialize_tax_checked_on_top :: Initialize "tax_checked_on_top" =&gt; "checked" default for all supported taxonomies'><span class="description">Initialize "tax_checked_on_top" =&gt; "checked" default for all supported taxonomies</span><pre>mla_initialize_tax_checked_on_top()</pre></a></li>
72
  <li class="method public "><a href="#mla_load_template" title="mla_load_template :: Load an HTML template from a file"><span class="description">Load an HTML template from a file</span><pre>mla_load_template()</pre></a></li>
 
73
  <li class="method public "><a href="#mla_parse_view_specification" title="mla_parse_view_specification :: Analyze a Library View/Post MIME Type specification, returning an array of the placeholders it contains"><span class="description">Analyze a Library View/Post MIME Type specification, returning an array of the placeholders it contains</span><pre>mla_parse_view_specification()</pre></a></li>
74
  <li class="method public "><a href="#mla_plugins_loaded_action" title="mla_plugins_loaded_action :: Load a plugin text domain and alternate debug file"><span class="description">Load a plugin text domain and alternate debug file</span><pre>mla_plugins_loaded_action()</pre></a></li>
75
  <li class="method public "><a href="#mla_prepare_view_query" title="mla_prepare_view_query :: Convert a Library View/Post MIME Type specification to WP_Query parameters"><span class="description">Convert a Library View/Post MIME Type specification to WP_Query parameters</span><pre>mla_prepare_view_query()</pre></a></li>
@@ -78,6 +79,7 @@
78
  settings are being updated or reset."><span class="description">Determine MLA support for a taxonomy, handling the special case where the
79
  settings are being updated or reset.</span><pre>mla_taxonomy_support()</pre></a></li>
80
  <li class="method public "><a href="#mla_update_option" title="mla_update_option :: Add or update the stored value of a defined MLA option"><span class="description">Add or update the stored value of a defined MLA option</span><pre>mla_update_option()</pre></a></li>
 
81
  <li class="method public "><a href="#mla_wp_redirect_filter" title="mla_wp_redirect_filter :: Filter the redirect location."><span class="description">Filter the redirect location.</span><pre>mla_wp_redirect_filter()</pre></a></li>
82
  <li class="nav-header private">» Private</li>
83
  <li class="method private "><a href="#_debug_log" title="_debug_log :: Write a debug message to the appropriate log file"><span class="description">Write a debug message to the appropriate log file</span><pre>_debug_log()</pre></a></li>
@@ -98,6 +100,7 @@ settings are being updated or reset.</span><pre>mla_taxonomy_support()</pre></a>
98
  <li class="nav-header">
99
  <i class="icon-custom icon-constant"></i> Constants</li>
100
  <li class="constant "><a href="#ADMIN_PAGE_SLUG" title="ADMIN_PAGE_SLUG :: Slug for adding plugin submenu"><span class="description">Slug for adding plugin submenu</span><pre>ADMIN_PAGE_SLUG</pre></a></li>
 
101
  <li class="constant "><a href="#JAVASCRIPT_FILL_COMPAT_ACTION" title='JAVASCRIPT_FILL_COMPAT_ACTION :: Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs'><span class="description">Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs</span><pre>JAVASCRIPT_FILL_COMPAT_ACTION</pre></a></li>
102
  <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_SLUG" title="JAVASCRIPT_INLINE_EDIT_SLUG :: Slug for localizing and enqueueing JavaScript - MLA List Table"><span class="description">Slug for localizing and enqueueing JavaScript - MLA List Table</span><pre>JAVASCRIPT_INLINE_EDIT_SLUG</pre></a></li>
103
  <li class="constant "><a href="#JAVASCRIPT_QUERY_ATTACHMENTS_ACTION" title='JAVASCRIPT_QUERY_ATTACHMENTS_ACTION :: Slug for the "query attachments" action - Add Media and related dialogs'><span class="description">Slug for the "query attachments" action - Add Media and related dialogs</span><pre>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</pre></a></li>
@@ -111,6 +114,7 @@ settings are being updated or reset.</span><pre>mla_taxonomy_support()</pre></a>
111
  <li class="constant "><a href="#MLA_DEBUG_CATEGORY_ANY" title='MLA_DEBUG_CATEGORY_ANY :: Constant to log "any" debug activity'><span class="description">Constant to log "any" debug activity</span><pre>MLA_DEBUG_CATEGORY_ANY</pre></a></li>
112
  <li class="constant "><a href="#MLA_DEBUG_CATEGORY_LANGUAGE" title="MLA_DEBUG_CATEGORY_LANGUAGE :: Constant to log WPML/Polylang action/filter activity"><span class="description">Constant to log WPML/Polylang action/filter activity</span><pre>MLA_DEBUG_CATEGORY_LANGUAGE</pre></a></li>
113
  <li class="constant "><a href="#MLA_DEBUG_CATEGORY_THUMBNAIL" title="MLA_DEBUG_CATEGORY_THUMBNAIL :: Constant to log Ghostscript/Imagick activity"><span class="description">Constant to log Ghostscript/Imagick activity</span><pre>MLA_DEBUG_CATEGORY_THUMBNAIL</pre></a></li>
 
114
  </ul>
115
  </div>
116
  <div class="span8">
@@ -413,6 +417,26 @@ where "key" becomes the key part of the array.</p></p>
413
  <code>string</code><code>array</code><code>false</code><code>NULL</code>string for files that do not contain template divider comments, array for files containing template divider comments, false if file or option does not exist, NULL if file could not be loaded.</div>
414
  </div></div>
415
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
416
  <a name="mla_parse_view_specification" id="mla_parse_view_specification"></a><div class="element clickable method public mla_parse_view_specification" data-toggle="collapse" data-target=".mla_parse_view_specification .collapse">
417
  <h2>Analyze a Library View/Post MIME Type specification, returning an array of the placeholders it contains</h2>
418
  <pre>mla_parse_view_specification(string | array $specification) : array</pre>
@@ -539,6 +563,18 @@ settings are being updated or reset.</h2>
539
  <code>boolean</code>True if the value was changed or false if the update failed</div>
540
  </div></div>
541
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
542
  <a name="mla_wp_redirect_filter" id="mla_wp_redirect_filter"></a><div class="element clickable method public mla_wp_redirect_filter" data-toggle="collapse" data-target=".mla_wp_redirect_filter .collapse">
543
  <h2>Filter the redirect location.</h2>
544
  <pre>mla_wp_redirect_filter(string $location, int $status) </pre>
@@ -722,6 +758,18 @@ settings are being updated or reset.</h2>
722
  </tr></table>
723
  </div></div>
724
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
725
  <a name="JAVASCRIPT_FILL_COMPAT_ACTION" id="JAVASCRIPT_FILL_COMPAT_ACTION"> </a><div class="element clickable constant JAVASCRIPT_FILL_COMPAT_ACTION" data-toggle="collapse" data-target=".JAVASCRIPT_FILL_COMPAT_ACTION .collapse">
726
  <h2>Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs</h2>
727
  <pre>JAVASCRIPT_FILL_COMPAT_ACTION : string</pre>
@@ -878,6 +926,18 @@ settings are being updated or reset.</h2>
878
  </tr></table>
879
  </div></div>
880
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
881
  </div>
882
  </div>
883
  </div>
@@ -885,7 +945,7 @@ settings are being updated or reset.</h2>
885
  <div class="row"><footer class="span12">
886
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
887
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
888
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
889
  </div>
890
  </body>
891
  </html>
70
  <li class="method public "><a href="#mla_get_option" title="mla_get_option :: Return the stored value or default value of a defined MLA option"><span class="description">Return the stored value or default value of a defined MLA option</span><pre>mla_get_option()</pre></a></li>
71
  <li class="method public "><a href="#mla_initialize_tax_checked_on_top" title='mla_initialize_tax_checked_on_top :: Initialize "tax_checked_on_top" =&gt; "checked" default for all supported taxonomies'><span class="description">Initialize "tax_checked_on_top" =&gt; "checked" default for all supported taxonomies</span><pre>mla_initialize_tax_checked_on_top()</pre></a></li>
72
  <li class="method public "><a href="#mla_load_template" title="mla_load_template :: Load an HTML template from a file"><span class="description">Load an HTML template from a file</span><pre>mla_load_template()</pre></a></li>
73
+ <li class="method public "><a href="#mla_media_view_settings_filter" title="mla_media_view_settings_filter :: Ensures that MLA media manager enhancements are present when required."><span class="description">Ensures that MLA media manager enhancements are present when required.</span><pre>mla_media_view_settings_filter()</pre></a></li>
74
  <li class="method public "><a href="#mla_parse_view_specification" title="mla_parse_view_specification :: Analyze a Library View/Post MIME Type specification, returning an array of the placeholders it contains"><span class="description">Analyze a Library View/Post MIME Type specification, returning an array of the placeholders it contains</span><pre>mla_parse_view_specification()</pre></a></li>
75
  <li class="method public "><a href="#mla_plugins_loaded_action" title="mla_plugins_loaded_action :: Load a plugin text domain and alternate debug file"><span class="description">Load a plugin text domain and alternate debug file</span><pre>mla_plugins_loaded_action()</pre></a></li>
76
  <li class="method public "><a href="#mla_prepare_view_query" title="mla_prepare_view_query :: Convert a Library View/Post MIME Type specification to WP_Query parameters"><span class="description">Convert a Library View/Post MIME Type specification to WP_Query parameters</span><pre>mla_prepare_view_query()</pre></a></li>
79
  settings are being updated or reset."><span class="description">Determine MLA support for a taxonomy, handling the special case where the
80
  settings are being updated or reset.</span><pre>mla_taxonomy_support()</pre></a></li>
81
  <li class="method public "><a href="#mla_update_option" title="mla_update_option :: Add or update the stored value of a defined MLA option"><span class="description">Add or update the stored value of a defined MLA option</span><pre>mla_update_option()</pre></a></li>
82
+ <li class="method public "><a href="#mla_wp_enqueue_media_action" title="mla_wp_enqueue_media_action :: Registers and enqueues the mla-beaver-builder-style.css file, when needed."><span class="description">Registers and enqueues the mla-beaver-builder-style.css file, when needed.</span><pre>mla_wp_enqueue_media_action()</pre></a></li>
83
  <li class="method public "><a href="#mla_wp_redirect_filter" title="mla_wp_redirect_filter :: Filter the redirect location."><span class="description">Filter the redirect location.</span><pre>mla_wp_redirect_filter()</pre></a></li>
84
  <li class="nav-header private">» Private</li>
85
  <li class="method private "><a href="#_debug_log" title="_debug_log :: Write a debug message to the appropriate log file"><span class="description">Write a debug message to the appropriate log file</span><pre>_debug_log()</pre></a></li>
100
  <li class="nav-header">
101
  <i class="icon-custom icon-constant"></i> Constants</li>
102
  <li class="constant "><a href="#ADMIN_PAGE_SLUG" title="ADMIN_PAGE_SLUG :: Slug for adding plugin submenu"><span class="description">Slug for adding plugin submenu</span><pre>ADMIN_PAGE_SLUG</pre></a></li>
103
+ <li class="constant "><a href="#CURRENT_MLA_VERSION" title="CURRENT_MLA_VERSION :: Current version number (moved from class-mla-main.php)"><span class="description">Current version number (moved from class-mla-main.php)</span><pre>CURRENT_MLA_VERSION</pre></a></li>
104
  <li class="constant "><a href="#JAVASCRIPT_FILL_COMPAT_ACTION" title='JAVASCRIPT_FILL_COMPAT_ACTION :: Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs'><span class="description">Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs</span><pre>JAVASCRIPT_FILL_COMPAT_ACTION</pre></a></li>
105
  <li class="constant "><a href="#JAVASCRIPT_INLINE_EDIT_SLUG" title="JAVASCRIPT_INLINE_EDIT_SLUG :: Slug for localizing and enqueueing JavaScript - MLA List Table"><span class="description">Slug for localizing and enqueueing JavaScript - MLA List Table</span><pre>JAVASCRIPT_INLINE_EDIT_SLUG</pre></a></li>
106
  <li class="constant "><a href="#JAVASCRIPT_QUERY_ATTACHMENTS_ACTION" title='JAVASCRIPT_QUERY_ATTACHMENTS_ACTION :: Slug for the "query attachments" action - Add Media and related dialogs'><span class="description">Slug for the "query attachments" action - Add Media and related dialogs</span><pre>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</pre></a></li>
114
  <li class="constant "><a href="#MLA_DEBUG_CATEGORY_ANY" title='MLA_DEBUG_CATEGORY_ANY :: Constant to log "any" debug activity'><span class="description">Constant to log "any" debug activity</span><pre>MLA_DEBUG_CATEGORY_ANY</pre></a></li>
115
  <li class="constant "><a href="#MLA_DEBUG_CATEGORY_LANGUAGE" title="MLA_DEBUG_CATEGORY_LANGUAGE :: Constant to log WPML/Polylang action/filter activity"><span class="description">Constant to log WPML/Polylang action/filter activity</span><pre>MLA_DEBUG_CATEGORY_LANGUAGE</pre></a></li>
116
  <li class="constant "><a href="#MLA_DEBUG_CATEGORY_THUMBNAIL" title="MLA_DEBUG_CATEGORY_THUMBNAIL :: Constant to log Ghostscript/Imagick activity"><span class="description">Constant to log Ghostscript/Imagick activity</span><pre>MLA_DEBUG_CATEGORY_THUMBNAIL</pre></a></li>
117
+ <li class="constant "><a href="#STYLESHEET_SLUG" title="STYLESHEET_SLUG :: Slug for registering and enqueueing plugin style sheets (moved from class-mla-main.php)"><span class="description">Slug for registering and enqueueing plugin style sheets (moved from class-mla-main.php)</span><pre>STYLESHEET_SLUG</pre></a></li>
118
  </ul>
119
  </div>
120
  <div class="span8">
417
  <code>string</code><code>array</code><code>false</code><code>NULL</code>string for files that do not contain template divider comments, array for files containing template divider comments, false if file or option does not exist, NULL if file could not be loaded.</div>
418
  </div></div>
419
  </div>
420
+ <a name="mla_media_view_settings_filter" id="mla_media_view_settings_filter"></a><div class="element clickable method public mla_media_view_settings_filter" data-toggle="collapse" data-target=".mla_media_view_settings_filter .collapse">
421
+ <h2>Ensures that MLA media manager enhancements are present when required.</h2>
422
+ <pre>mla_media_view_settings_filter(array $settings, object $post) </pre>
423
+ <div class="labels"></div>
424
+ <div class="row collapse"><div class="detail-description">
425
+ <p class="long_description"><p>Declared public because it is a filter.</p></p>
426
+ <table class="table table-bordered"><tr>
427
+ <th>since</th>
428
+ <td>2.30</td>
429
+ </tr></table>
430
+ <h3>Parameters</h3>
431
+ <div class="subelement argument">
432
+ <h4>$settings</h4>
433
+ <code>array</code><p>associative array with setting => value pairs</p>
434
+ </div>
435
+ <div class="subelement argument">
436
+ <h4>$post</h4>
437
+ <code>object</code><p>|| NULL current post object, if available</p></div>
438
+ </div></div>
439
+ </div>
440
  <a name="mla_parse_view_specification" id="mla_parse_view_specification"></a><div class="element clickable method public mla_parse_view_specification" data-toggle="collapse" data-target=".mla_parse_view_specification .collapse">
441
  <h2>Analyze a Library View/Post MIME Type specification, returning an array of the placeholders it contains</h2>
442
  <pre>mla_parse_view_specification(string | array $specification) : array</pre>
563
  <code>boolean</code>True if the value was changed or false if the update failed</div>
564
  </div></div>
565
  </div>
566
+ <a name="mla_wp_enqueue_media_action" id="mla_wp_enqueue_media_action"></a><div class="element clickable method public mla_wp_enqueue_media_action" data-toggle="collapse" data-target=".mla_wp_enqueue_media_action .collapse">
567
+ <h2>Registers and enqueues the mla-beaver-builder-style.css file, when needed.</h2>
568
+ <pre>mla_wp_enqueue_media_action() </pre>
569
+ <div class="labels"></div>
570
+ <div class="row collapse"><div class="detail-description">
571
+ <p class="long_description"><p>Declared public because it is an action.</p></p>
572
+ <table class="table table-bordered"><tr>
573
+ <th>since</th>
574
+ <td>2.30</td>
575
+ </tr></table>
576
+ </div></div>
577
+ </div>
578
  <a name="mla_wp_redirect_filter" id="mla_wp_redirect_filter"></a><div class="element clickable method public mla_wp_redirect_filter" data-toggle="collapse" data-target=".mla_wp_redirect_filter .collapse">
579
  <h2>Filter the redirect location.</h2>
580
  <pre>mla_wp_redirect_filter(string $location, int $status) </pre>
758
  </tr></table>
759
  </div></div>
760
  </div>
761
+ <a name="CURRENT_MLA_VERSION" id="CURRENT_MLA_VERSION"> </a><div class="element clickable constant CURRENT_MLA_VERSION" data-toggle="collapse" data-target=".CURRENT_MLA_VERSION .collapse">
762
+ <h2>Current version number (moved from class-mla-main.php)</h2>
763
+ <pre>CURRENT_MLA_VERSION : string</pre>
764
+ <div class="labels"></div>
765
+ <div class="row collapse"><div class="detail-description">
766
+ <p class="long_description"></p>
767
+ <table class="table table-bordered"><tr>
768
+ <th>since</th>
769
+ <td>2.30</td>
770
+ </tr></table>
771
+ </div></div>
772
+ </div>
773
  <a name="JAVASCRIPT_FILL_COMPAT_ACTION" id="JAVASCRIPT_FILL_COMPAT_ACTION"> </a><div class="element clickable constant JAVASCRIPT_FILL_COMPAT_ACTION" data-toggle="collapse" data-target=".JAVASCRIPT_FILL_COMPAT_ACTION .collapse">
774
  <h2>Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs</h2>
775
  <pre>JAVASCRIPT_FILL_COMPAT_ACTION : string</pre>
926
  </tr></table>
927
  </div></div>
928
  </div>
929
+ <a name="STYLESHEET_SLUG" id="STYLESHEET_SLUG"> </a><div class="element clickable constant STYLESHEET_SLUG" data-toggle="collapse" data-target=".STYLESHEET_SLUG .collapse">
930
+ <h2>Slug for registering and enqueueing plugin style sheets (moved from class-mla-main.php)</h2>
931
+ <pre>STYLESHEET_SLUG : string</pre>
932
+ <div class="labels"></div>
933
+ <div class="row collapse"><div class="detail-description">
934
+ <p class="long_description"></p>
935
+ <table class="table table-bordered"><tr>
936
+ <th>since</th>
937
+ <td>2.30</td>
938
+ </tr></table>
939
+ </div></div>
940
+ </div>
941
  </div>
942
  </div>
943
  </div>
945
  <div class="row"><footer class="span12">
946
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
947
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
948
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
949
  </div>
950
  </body>
951
  </html>
phpDocs/classes/MLACoreOptions.html ADDED
@@ -0,0 +1,568 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
2
+ <head>
3
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4
+ <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
5
+ <meta charset="utf-8">
6
+ <title>Media Library Assistant » \MLACoreOptions</title>
7
+ <meta name="author" content="Mike van Riel">
8
+ <meta name="description" content="">
9
+ <link href="../css/template.css" rel="stylesheet" media="all">
10
+ <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
11
+ <link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
12
+ <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
13
+ <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
14
+ </head>
15
+ <body>
16
+ <div class="navbar navbar-fixed-top">
17
+ <div class="navbar-inner"><div class="container">
18
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
19
+ <li class="dropdown">
20
+ <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
21
+ API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
+ </li>
26
+ <li class="dropdown" id="charts-menu">
27
+ <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
28
+ Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
29
+ </li>
30
+ <li class="dropdown" id="reports-menu">
31
+ <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
32
+ Reports <b class="caret"></b></a><ul class="dropdown-menu">
33
+ <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
34
+ <span class="label label-info">0</span></a></li>
35
+ <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
36
+ <ul><li>todo 
37
+ <span class="label label-info">3</span>
38
+ </li></ul></a></li>
39
+ <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
40
+ <span class="label label-info">0</span></a></li>
41
+ </ul>
42
+ </li>
43
+ </ul></div>
44
+ </div></div>
45
+ <div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
46
+ </div>
47
+ <div id="___" class="container">
48
+ <noscript><div class="alert alert-warning">
49
+ Javascript is disabled; several features are only available
50
+ if Javascript is enabled.
51
+ </div></noscript>
52
+ <div class="row">
53
+ <div class="span4">
54
+ <span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
55
+ <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
56
+ </div>
57
+ <ul class="side-nav nav nav-list">
58
+ <li class="nav-header">
59
+ <i class="icon-custom icon-method"></i> Methods</li>
60
+ <li class="method public "><a href="#mla_localize_option_definitions_array" title="mla_localize_option_definitions_array :: Localize $mla_option_definitions array"><span class="description">Localize $mla_option_definitions array</span><pre>mla_localize_option_definitions_array()</pre></a></li>
61
+ <li class="nav-header">
62
+ <i class="icon-custom icon-property"></i> Properties</li>
63
+ <li class="property public "><a href="#%24mla_option_definitions" title="$mla_option_definitions :: $mla_option_definitions defines the database options and admin page areas for setting/updating them"><span class="description">$mla_option_definitions defines the database options and admin page areas for setting/updating them</span><pre>$mla_option_definitions</pre></a></li>
64
+ <li class="nav-header">
65
+ <i class="icon-custom icon-constant"></i> Constants</li>
66
+ <li class="constant "><a href="#MLA_ADD_NEW_BULK_EDIT" title="MLA_ADD_NEW_BULK_EDIT :: Provides a unique name for the Media/Add New bulk edit option"><span class="description">Provides a unique name for the Media/Add New bulk edit option</span><pre>MLA_ADD_NEW_BULK_EDIT</pre></a></li>
67
+ <li class="constant "><a href="#MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN" title='MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN :: Provides a unique name for the Media/Add New bulk edit "Open Automatically" option'><span class="description">Provides a unique name for the Media/Add New bulk edit "Open Automatically" option</span><pre>MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN</pre></a></li>
68
+ <li class="constant "><a href="#MLA_ADD_NEW_BULK_EDIT_ON_TOP" title='MLA_ADD_NEW_BULK_EDIT_ON_TOP :: Provides a unique name for the Media/Add New bulk edit "on top" option'><span class="description">Provides a unique name for the Media/Add New bulk edit "on top" option</span><pre>MLA_ADD_NEW_BULK_EDIT_ON_TOP</pre></a></li>
69
+ <li class="constant "><a href="#MLA_BULK_CHUNK_SIZE" title="MLA_BULK_CHUNK_SIZE :: Provides a unique name for the Bulk Update and Map All chunk size option"><span class="description">Provides a unique name for the Bulk Update and Map All chunk size option</span><pre>MLA_BULK_CHUNK_SIZE</pre></a></li>
70
+ <li class="constant "><a href="#MLA_COUNT_TERM_ATTACHMENTS" title="MLA_COUNT_TERM_ATTACHMENTS :: Provides a unique name for the taxonomy count Attachments option"><span class="description">Provides a unique name for the taxonomy count Attachments option</span><pre>MLA_COUNT_TERM_ATTACHMENTS</pre></a></li>
71
+ <li class="constant "><a href="#MLA_DEBUG_DISPLAY_LIMIT" title="MLA_DEBUG_DISPLAY_LIMIT :: Provides a unique name for the Debug display limit option"><span class="description">Provides a unique name for the Debug display limit option</span><pre>MLA_DEBUG_DISPLAY_LIMIT</pre></a></li>
72
+ <li class="constant "><a href="#MLA_DEBUG_FILE" title="MLA_DEBUG_FILE :: Provides a unique name for the Debug alternate log file option"><span class="description">Provides a unique name for the Debug alternate log file option</span><pre>MLA_DEBUG_FILE</pre></a></li>
73
+ <li class="constant "><a href="#MLA_DEBUG_REPLACE_LEVEL" title="MLA_DEBUG_REPLACE_LEVEL :: Provides a unique name for the Debug replace MLA_DEBUG_LEVEL option"><span class="description">Provides a unique name for the Debug replace MLA_DEBUG_LEVEL option</span><pre>MLA_DEBUG_REPLACE_LEVEL</pre></a></li>
74
+ <li class="constant "><a href="#MLA_DEBUG_REPLACE_PHP_LOG" title="MLA_DEBUG_REPLACE_PHP_LOG :: Provides a unique name for the Debug replace PHP log file option"><span class="description">Provides a unique name for the Debug replace PHP log file option</span><pre>MLA_DEBUG_REPLACE_PHP_LOG</pre></a></li>
75
+ <li class="constant "><a href="#MLA_DEBUG_REPLACE_PHP_REPORTING" title="MLA_DEBUG_REPLACE_PHP_REPORTING :: Provides a unique name for the Debug replace PHP error_reporting option"><span class="description">Provides a unique name for the Debug replace PHP error_reporting option</span><pre>MLA_DEBUG_REPLACE_PHP_REPORTING</pre></a></li>
76
+ <li class="constant "><a href="#MLA_DEFAULT_ORDER" title="MLA_DEFAULT_ORDER :: Provides a unique name for the default order option"><span class="description">Provides a unique name for the default order option</span><pre>MLA_DEFAULT_ORDER</pre></a></li>
77
+ <li class="constant "><a href="#MLA_DEFAULT_ORDERBY" title="MLA_DEFAULT_ORDERBY :: Provides a unique name for the default orderby option"><span class="description">Provides a unique name for the default orderby option</span><pre>MLA_DEFAULT_ORDERBY</pre></a></li>
78
+ <li class="constant "><a href="#MLA_DELETE_OPTION_BACKUPS" title="MLA_DELETE_OPTION_BACKUPS :: Provides a unique name for the Media Manager Force Image Default Setings option"><span class="description">Provides a unique name for the Media Manager Force Image Default Setings option</span><pre>MLA_DELETE_OPTION_BACKUPS</pre></a></li>
79
+ <li class="constant "><a href="#MLA_DELETE_OPTION_SETTINGS" title="MLA_DELETE_OPTION_SETTINGS :: Provides a unique name for the Media Manager Force Image Default Setings option"><span class="description">Provides a unique name for the Media Manager Force Image Default Setings option</span><pre>MLA_DELETE_OPTION_SETTINGS</pre></a></li>
80
+ <li class="constant "><a href="#MLA_EDIT_MEDIA_META_BOXES" title="MLA_EDIT_MEDIA_META_BOXES :: Provides a unique name for the Edit Media additional meta boxes option"><span class="description">Provides a unique name for the Edit Media additional meta boxes option</span><pre>MLA_EDIT_MEDIA_META_BOXES</pre></a></li>
81
+ <li class="constant "><a href="#MLA_EDIT_MEDIA_SEARCH_TAXONOMY" title='MLA_EDIT_MEDIA_SEARCH_TAXONOMY :: Provides a unique name for the "searchable taxonomies" option'><span class="description">Provides a unique name for the "searchable taxonomies" option</span><pre>MLA_EDIT_MEDIA_SEARCH_TAXONOMY</pre></a></li>
82
+ <li class="constant "><a href="#MLA_ENABLE_MLA_ICONS" title="MLA_ENABLE_MLA_ICONS :: Provides a unique name for the Enable MLA Icons option"><span class="description">Provides a unique name for the Enable MLA Icons option</span><pre>MLA_ENABLE_MLA_ICONS</pre></a></li>
83
+ <li class="constant "><a href="#MLA_ENABLE_POST_MIME_TYPES" title="MLA_ENABLE_POST_MIME_TYPES :: Provides a unique name for the Enable Post MIME Types option"><span class="description">Provides a unique name for the Enable Post MIME Types option</span><pre>MLA_ENABLE_POST_MIME_TYPES</pre></a></li>
84
+ <li class="constant "><a href="#MLA_ENABLE_UPLOAD_MIMES" title="MLA_ENABLE_UPLOAD_MIMES :: Provides a unique name for the Enable Upload MIME Types option"><span class="description">Provides a unique name for the Enable Upload MIME Types option</span><pre>MLA_ENABLE_UPLOAD_MIMES</pre></a></li>
85
+ <li class="constant "><a href="#MLA_EXCLUDE_REVISIONS" title="MLA_EXCLUDE_REVISIONS :: Provides a unique name for the exclude revisions option"><span class="description">Provides a unique name for the exclude revisions option</span><pre>MLA_EXCLUDE_REVISIONS</pre></a></li>
86
+ <li class="constant "><a href="#MLA_EXIF_SIZE" title='MLA_EXIF_SIZE :: Provides a "size" attribute value for the EXIF/Template Value field'><span class="description">Provides a "size" attribute value for the EXIF/Template Value field</span><pre>MLA_EXIF_SIZE</pre></a></li>
87
+ <li class="constant "><a href="#MLA_FEATURED_IN_TUNING" title="MLA_FEATURED_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_FEATURED_IN_TUNING</pre></a></li>
88
+ <li class="constant "><a href="#MLA_GALLERY_IN_TUNING" title="MLA_GALLERY_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_GALLERY_IN_TUNING</pre></a></li>
89
+ <li class="constant "><a href="#MLA_INSERTED_IN_TUNING" title="MLA_INSERTED_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_INSERTED_IN_TUNING</pre></a></li>
90
+ <li class="constant "><a href="#MLA_MEDIA_GRID_TOOLBAR" title="MLA_MEDIA_GRID_TOOLBAR :: Provides a unique name for the Media Grid toolbar option, which
91
+ also controls the ATTACHMENT DETAILS enhancements"><span class="description">Provides a unique name for the Media Grid toolbar option, which
92
+ also controls the ATTACHMENT DETAILS enhancements</span><pre>MLA_MEDIA_GRID_TOOLBAR</pre></a></li>
93
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS" title="MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS :: Provides a unique name for the Media Manager Force Image Default Setings option"><span class="description">Provides a unique name for the Media Manager Force Image Default Setings option</span><pre>MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS</pre></a></li>
94
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_DETAILS_AUTOFILL" title="MLA_MEDIA_MODAL_DETAILS_AUTOFILL :: Provides a unique name for the Media Manager Attachment Details auto-fill option"><span class="description">Provides a unique name for the Media Manager Attachment Details auto-fill option</span><pre>MLA_MEDIA_MODAL_DETAILS_AUTOFILL</pre></a></li>
95
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX" title='MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX :: Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
96
+ This option is for hierarchical taxonomies, e.g., "Att.'><span class="description">Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
97
+ This option is for hierarchical taxonomies, e.g., "Att.</span><pre>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX</pre></a></li>
98
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_DETAILS_TAG_METABOX" title='MLA_MEDIA_MODAL_DETAILS_TAG_METABOX :: Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
99
+ This option is for flat taxonomies, e.g., "Att.'><span class="description">Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
100
+ This option is for flat taxonomies, e.g., "Att.</span><pre>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX</pre></a></li>
101
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_MIMETYPES" title="MLA_MEDIA_MODAL_MIMETYPES :: Provides a unique name for the Media Manager toolbar MIME Types option"><span class="description">Provides a unique name for the Media Manager toolbar MIME Types option</span><pre>MLA_MEDIA_MODAL_MIMETYPES</pre></a></li>
102
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_MONTHS" title="MLA_MEDIA_MODAL_MONTHS :: Provides a unique name for the Media Manager toolbar Month and Year option"><span class="description">Provides a unique name for the Media Manager toolbar Month and Year option</span><pre>MLA_MEDIA_MODAL_MONTHS</pre></a></li>
103
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_ORDER" title="MLA_MEDIA_MODAL_ORDER :: Provides a unique name for the Media Manager order option"><span class="description">Provides a unique name for the Media Manager order option</span><pre>MLA_MEDIA_MODAL_ORDER</pre></a></li>
104
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_ORDERBY" title="MLA_MEDIA_MODAL_ORDERBY :: Provides a unique name for the Media Manager orderby option"><span class="description">Provides a unique name for the Media Manager orderby option</span><pre>MLA_MEDIA_MODAL_ORDERBY</pre></a></li>
105
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_SEARCHBOX" title="MLA_MEDIA_MODAL_SEARCHBOX :: Provides a unique name for the Media Manager toolbar Search Box option"><span class="description">Provides a unique name for the Media Manager toolbar Search Box option</span><pre>MLA_MEDIA_MODAL_SEARCHBOX</pre></a></li>
106
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS" title="MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS :: Provides a unique name for the Media Manager toolbar Search Box Controls option"><span class="description">Provides a unique name for the Media Manager toolbar Search Box Controls option</span><pre>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS</pre></a></li>
107
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_TERMS" title="MLA_MEDIA_MODAL_TERMS :: Provides a unique name for the Media Manager toolbar Taxonomy Terms option"><span class="description">Provides a unique name for the Media Manager toolbar Taxonomy Terms option</span><pre>MLA_MEDIA_MODAL_TERMS</pre></a></li>
108
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_TERMS_SEARCH" title='MLA_MEDIA_MODAL_TERMS_SEARCH :: Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option'><span class="description">Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option</span><pre>MLA_MEDIA_MODAL_TERMS_SEARCH</pre></a></li>
109
+ <li class="constant "><a href="#MLA_MEDIA_MODAL_TOOLBAR" title="MLA_MEDIA_MODAL_TOOLBAR :: Provides a unique name for the Media Manager toolbar option, which
110
+ also controls the ATTACHMENT DETAILS enhancements"><span class="description">Provides a unique name for the Media Manager toolbar option, which
111
+ also controls the ATTACHMENT DETAILS enhancements</span><pre>MLA_MEDIA_MODAL_TOOLBAR</pre></a></li>
112
+ <li class="constant "><a href="#MLA_MLA_GALLERY_IN_TUNING" title="MLA_MLA_GALLERY_IN_TUNING :: Provides a unique name for a database tuning option"><span class="description">Provides a unique name for a database tuning option</span><pre>MLA_MLA_GALLERY_IN_TUNING</pre></a></li>
113
+ <li class="constant "><a href="#MLA_NEW_CUSTOM_FIELD" title='MLA_NEW_CUSTOM_FIELD :: Provides a unique name for the Custom Field "new field" key'><span class="description">Provides a unique name for the Custom Field "new field" key</span><pre>MLA_NEW_CUSTOM_FIELD</pre></a></li>
114
+ <li class="constant "><a href="#MLA_NEW_CUSTOM_RULE" title='MLA_NEW_CUSTOM_RULE :: Provides a unique name for the Custom Field "new rule" key'><span class="description">Provides a unique name for the Custom Field "new rule" key</span><pre>MLA_NEW_CUSTOM_RULE</pre></a></li>
115
+ <li class="constant "><a href="#MLA_POST_MIME_TYPES" title="MLA_POST_MIME_TYPES :: Provides a unique name for the Post MIME Types option"><span class="description">Provides a unique name for the Post MIME Types option</span><pre>MLA_POST_MIME_TYPES</pre></a></li>
116
+ <li class="constant "><a href="#MLA_SCREEN_DISPLAY_LIBRARY" title="MLA_SCREEN_DISPLAY_LIBRARY :: Provides a unique name for the admin screen remove Media/Library option"><span class="description">Provides a unique name for the admin screen remove Media/Library option</span><pre>MLA_SCREEN_DISPLAY_LIBRARY</pre></a></li>
117
+ <li class="constant "><a href="#MLA_SCREEN_DISPLAY_SWITCHER" title="MLA_SCREEN_DISPLAY_SWITCHER :: Provides a unique name for the Media/Assistant list/grid switcher option"><span class="description">Provides a unique name for the Media/Assistant list/grid switcher option</span><pre>MLA_SCREEN_DISPLAY_SWITCHER</pre></a></li>
118
+ <li class="constant "><a href="#MLA_SCREEN_MENU_TITLE" title="MLA_SCREEN_MENU_TITLE :: Provides a unique name for the admin screen menu title option"><span class="description">Provides a unique name for the admin screen menu title option</span><pre>MLA_SCREEN_MENU_TITLE</pre></a></li>
119
+ <li class="constant "><a href="#MLA_SCREEN_ORDER" title="MLA_SCREEN_ORDER :: Provides a unique name for the admin screen menu order option"><span class="description">Provides a unique name for the admin screen menu order option</span><pre>MLA_SCREEN_ORDER</pre></a></li>
120
+ <li class="constant "><a href="#MLA_SCREEN_PAGE_TITLE" title="MLA_SCREEN_PAGE_TITLE :: Provides a unique name for the admin screen page title option"><span class="description">Provides a unique name for the admin screen page title option</span><pre>MLA_SCREEN_PAGE_TITLE</pre></a></li>
121
+ <li class="constant "><a href="#MLA_SEARCH_MEDIA_FILTER_DEFAULTS" title="MLA_SEARCH_MEDIA_FILTER_DEFAULTS :: Provides a unique name for the display Search Media controls option"><span class="description">Provides a unique name for the display Search Media controls option</span><pre>MLA_SEARCH_MEDIA_FILTER_DEFAULTS</pre></a></li>
122
+ <li class="constant "><a href="#MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS" title="MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS :: Provides a unique name for the display Search Media controls option"><span class="description">Provides a unique name for the display Search Media controls option</span><pre>MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS</pre></a></li>
123
+ <li class="constant "><a href="#MLA_SETTINGS_SLUG" title="MLA_SETTINGS_SLUG :: Provides a unique name for the settings page"><span class="description">Provides a unique name for the settings page</span><pre>MLA_SETTINGS_SLUG</pre></a></li>
124
+ <li class="constant "><a href="#MLA_TABLE_ICON_SIZE" title="MLA_TABLE_ICON_SIZE :: Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option"><span class="description">Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option</span><pre>MLA_TABLE_ICON_SIZE</pre></a></li>
125
+ <li class="constant "><a href="#MLA_TABLE_VIEWS_WIDTH" title="MLA_TABLE_VIEWS_WIDTH :: Provides a unique name for the Media/Assistant submenu table views width option"><span class="description">Provides a unique name for the Media/Assistant submenu table views width option</span><pre>MLA_TABLE_VIEWS_WIDTH</pre></a></li>
126
+ <li class="constant "><a href="#MLA_TAXONOMY_FILTER_DEPTH" title="MLA_TAXONOMY_FILTER_DEPTH :: Provides a unique name for the taxonomy filter maximum depth option"><span class="description">Provides a unique name for the taxonomy filter maximum depth option</span><pre>MLA_TAXONOMY_FILTER_DEPTH</pre></a></li>
127
+ <li class="constant "><a href="#MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN" title="MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN :: Provides a unique name for the taxonomy filter maximum depth option"><span class="description">Provides a unique name for the taxonomy filter maximum depth option</span><pre>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN</pre></a></li>
128
+ <li class="constant "><a href="#MLA_TAXONOMY_SUPPORT" title="MLA_TAXONOMY_SUPPORT :: Provides a unique name for the taxonomy support option"><span class="description">Provides a unique name for the taxonomy support option</span><pre>MLA_TAXONOMY_SUPPORT</pre></a></li>
129
+ <li class="constant "><a href="#MLA_UPLOAD_MIMES" title="MLA_UPLOAD_MIMES :: Provides a unique name for the Upload MIME Types option"><span class="description">Provides a unique name for the Upload MIME Types option</span><pre>MLA_UPLOAD_MIMES</pre></a></li>
130
+ <li class="constant "><a href="#MLA_VERSION_OPTION" title="MLA_VERSION_OPTION :: Provides a unique name for the current version option"><span class="description">Provides a unique name for the current version option</span><pre>MLA_VERSION_OPTION</pre></a></li>
131
+ </ul>
132
+ </div>
133
+ <div class="span8">
134
+ <a name="%5CMLACoreOptions" id="\MLACoreOptions"></a><ul class="breadcrumb">
135
+ <li>
136
+ <a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span>
137
+ </li>
138
+ <li><a href="../namespaces/global.html">global</a></li>
139
+ <li class="active">
140
+ <span class="divider">\</span><a href="../classes/MLACoreOptions.html">MLACoreOptions</a>
141
+ </li>
142
+ </ul>
143
+ <div href="../classes/MLACoreOptions.html" class="element class">
144
+ <p class="short_description">Class MLA (Media Library Assistant) Core Options defines MLA option settings and defaults</p>
145
+ <div class="details">
146
+ <p class="long_description"></p>
147
+ <table class="table table-bordered">
148
+ <tr>
149
+ <th>package</th>
150
+ <td><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></td>
151
+ </tr>
152
+ <tr>
153
+ <th>since</th>
154
+ <td>2.25</td>
155
+ </tr>
156
+ </table>
157
+ <h3>
158
+ <i class="icon-custom icon-method"></i> Methods</h3>
159
+ <a name="mla_localize_option_definitions_array" id="mla_localize_option_definitions_array"></a><div class="element clickable method public mla_localize_option_definitions_array" data-toggle="collapse" data-target=".mla_localize_option_definitions_array .collapse">
160
+ <h2>Localize $mla_option_definitions array</h2>
161
+ <pre>mla_localize_option_definitions_array() : void</pre>
162
+ <div class="labels"></div>
163
+ <div class="row collapse"><div class="detail-description">
164
+ <p class="long_description"><p>Localization must be done at runtime; these calls cannot be placed in the
165
+ "public static" array definition itself. Called from MLATest::initialize.</p></p>
166
+ <table class="table table-bordered"><tr>
167
+ <th>since</th>
168
+ <td>2.20</td>
169
+ </tr></table>
170
+ </div></div>
171
+ </div>
172
+ <h3>
173
+ <i class="icon-custom icon-property"></i> Properties</h3>
174
+ <a name="%24mla_option_definitions" id="$mla_option_definitions"> </a><div class="element clickable property public $mla_option_definitions" data-toggle="collapse" data-target=".$mla_option_definitions .collapse">
175
+ <h2>$mla_option_definitions defines the database options and admin page areas for setting/updating them</h2>
176
+ <pre>$mla_option_definitions </pre>
177
+ <div class="labels"></div>
178
+ <div class="row collapse"><div class="detail-description"><p class="long_description"><p>The array must be populated at runtime in MLACoreOptions::mla_localize_option_definitions_array();
179
+ localization calls cannot be placed in the "public static" array definition itself.</p>
180
+
181
+ <p>Each option is defined by an array with the following elements:</p>
182
+
183
+ <p>array key => HTML id/name attribute and option database key (OMIT MLA_OPTION_PREFIX)</p>
184
+
185
+ <p>tab => Settings page tab id for the option
186
+ name => admin page label or heading text
187
+ type => 'checkbox', 'header', 'radio', 'select', 'text', 'textarea', 'custom', 'hidden'
188
+ std => default value
189
+ help => help text
190
+ size => text size, default 40
191
+ cols => textbox columns, default 90
192
+ rows => textbox rows, default 5
193
+ options => array of radio or select option values
194
+ texts => array of radio or select option display texts
195
+ render => rendering function for 'custom' options. Usage:
196
+ $options_list .= ['render']( 'render', $key, $value );
197
+ update => update function for 'custom' options; returns nothing. Usage:
198
+ $message = ['update']( 'update', $key, $value, $_REQUEST );
199
+ delete => delete function for 'custom' options; returns nothing. Usage:
200
+ $message = ['delete']( 'delete', $key, $value, $_REQUEST );
201
+ reset => reset function for 'custom' options; returns nothing. Usage:
202
+ $message = ['reset']( 'reset', $key, $value, $_REQUEST );</p></p></div></div>
203
+ </div>
204
+ <h3>
205
+ <i class="icon-custom icon-constant"></i> Constants</h3>
206
+ <a name="MLA_ADD_NEW_BULK_EDIT" id="MLA_ADD_NEW_BULK_EDIT"> </a><div class="element clickable constant MLA_ADD_NEW_BULK_EDIT" data-toggle="collapse" data-target=".MLA_ADD_NEW_BULK_EDIT .collapse">
207
+ <h2>Provides a unique name for the Media/Add New bulk edit option</h2>
208
+ <pre>MLA_ADD_NEW_BULK_EDIT </pre>
209
+ <div class="labels"></div>
210
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
211
+ </div>
212
+ <a name="MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN" id="MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN"> </a><div class="element clickable constant MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN" data-toggle="collapse" data-target=".MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN .collapse">
213
+ <h2>Provides a unique name for the Media/Add New bulk edit "Open Automatically" option</h2>
214
+ <pre>MLA_ADD_NEW_BULK_EDIT_AUTO_OPEN </pre>
215
+ <div class="labels"></div>
216
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
217
+ </div>
218
+ <a name="MLA_ADD_NEW_BULK_EDIT_ON_TOP" id="MLA_ADD_NEW_BULK_EDIT_ON_TOP"> </a><div class="element clickable constant MLA_ADD_NEW_BULK_EDIT_ON_TOP" data-toggle="collapse" data-target=".MLA_ADD_NEW_BULK_EDIT_ON_TOP .collapse">
219
+ <h2>Provides a unique name for the Media/Add New bulk edit "on top" option</h2>
220
+ <pre>MLA_ADD_NEW_BULK_EDIT_ON_TOP </pre>
221
+ <div class="labels"></div>
222
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
223
+ </div>
224
+ <a name="MLA_BULK_CHUNK_SIZE" id="MLA_BULK_CHUNK_SIZE"> </a><div class="element clickable constant MLA_BULK_CHUNK_SIZE" data-toggle="collapse" data-target=".MLA_BULK_CHUNK_SIZE .collapse">
225
+ <h2>Provides a unique name for the Bulk Update and Map All chunk size option</h2>
226
+ <pre>MLA_BULK_CHUNK_SIZE </pre>
227
+ <div class="labels"></div>
228
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
229
+ </div>
230
+ <a name="MLA_COUNT_TERM_ATTACHMENTS" id="MLA_COUNT_TERM_ATTACHMENTS"> </a><div class="element clickable constant MLA_COUNT_TERM_ATTACHMENTS" data-toggle="collapse" data-target=".MLA_COUNT_TERM_ATTACHMENTS .collapse">
231
+ <h2>Provides a unique name for the taxonomy count Attachments option</h2>
232
+ <pre>MLA_COUNT_TERM_ATTACHMENTS </pre>
233
+ <div class="labels"></div>
234
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
235
+ </div>
236
+ <a name="MLA_DEBUG_DISPLAY_LIMIT" id="MLA_DEBUG_DISPLAY_LIMIT"> </a><div class="element clickable constant MLA_DEBUG_DISPLAY_LIMIT" data-toggle="collapse" data-target=".MLA_DEBUG_DISPLAY_LIMIT .collapse">
237
+ <h2>Provides a unique name for the Debug display limit option</h2>
238
+ <pre>MLA_DEBUG_DISPLAY_LIMIT </pre>
239
+ <div class="labels"></div>
240
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
241
+ </div>
242
+ <a name="MLA_DEBUG_FILE" id="MLA_DEBUG_FILE"> </a><div class="element clickable constant MLA_DEBUG_FILE" data-toggle="collapse" data-target=".MLA_DEBUG_FILE .collapse">
243
+ <h2>Provides a unique name for the Debug alternate log file option</h2>
244
+ <pre>MLA_DEBUG_FILE </pre>
245
+ <div class="labels"></div>
246
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
247
+ </div>
248
+ <a name="MLA_DEBUG_REPLACE_LEVEL" id="MLA_DEBUG_REPLACE_LEVEL"> </a><div class="element clickable constant MLA_DEBUG_REPLACE_LEVEL" data-toggle="collapse" data-target=".MLA_DEBUG_REPLACE_LEVEL .collapse">
249
+ <h2>Provides a unique name for the Debug replace MLA_DEBUG_LEVEL option</h2>
250
+ <pre>MLA_DEBUG_REPLACE_LEVEL </pre>
251
+ <div class="labels"></div>
252
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
253
+ </div>
254
+ <a name="MLA_DEBUG_REPLACE_PHP_LOG" id="MLA_DEBUG_REPLACE_PHP_LOG"> </a><div class="element clickable constant MLA_DEBUG_REPLACE_PHP_LOG" data-toggle="collapse" data-target=".MLA_DEBUG_REPLACE_PHP_LOG .collapse">
255
+ <h2>Provides a unique name for the Debug replace PHP log file option</h2>
256
+ <pre>MLA_DEBUG_REPLACE_PHP_LOG </pre>
257
+ <div class="labels"></div>
258
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
259
+ </div>
260
+ <a name="MLA_DEBUG_REPLACE_PHP_REPORTING" id="MLA_DEBUG_REPLACE_PHP_REPORTING"> </a><div class="element clickable constant MLA_DEBUG_REPLACE_PHP_REPORTING" data-toggle="collapse" data-target=".MLA_DEBUG_REPLACE_PHP_REPORTING .collapse">
261
+ <h2>Provides a unique name for the Debug replace PHP error_reporting option</h2>
262
+ <pre>MLA_DEBUG_REPLACE_PHP_REPORTING </pre>
263
+ <div class="labels"></div>
264
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
265
+ </div>
266
+ <a name="MLA_DEFAULT_ORDER" id="MLA_DEFAULT_ORDER"> </a><div class="element clickable constant MLA_DEFAULT_ORDER" data-toggle="collapse" data-target=".MLA_DEFAULT_ORDER .collapse">
267
+ <h2>Provides a unique name for the default order option</h2>
268
+ <pre>MLA_DEFAULT_ORDER </pre>
269
+ <div class="labels"></div>
270
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
271
+ </div>
272
+ <a name="MLA_DEFAULT_ORDERBY" id="MLA_DEFAULT_ORDERBY"> </a><div class="element clickable constant MLA_DEFAULT_ORDERBY" data-toggle="collapse" data-target=".MLA_DEFAULT_ORDERBY .collapse">
273
+ <h2>Provides a unique name for the default orderby option</h2>
274
+ <pre>MLA_DEFAULT_ORDERBY </pre>
275
+ <div class="labels"></div>
276
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
277
+ </div>
278
+ <a name="MLA_DELETE_OPTION_BACKUPS" id="MLA_DELETE_OPTION_BACKUPS"> </a><div class="element clickable constant MLA_DELETE_OPTION_BACKUPS" data-toggle="collapse" data-target=".MLA_DELETE_OPTION_BACKUPS .collapse">
279
+ <h2>Provides a unique name for the Media Manager Force Image Default Setings option</h2>
280
+ <pre>MLA_DELETE_OPTION_BACKUPS </pre>
281
+ <div class="labels"></div>
282
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
283
+ </div>
284
+ <a name="MLA_DELETE_OPTION_SETTINGS" id="MLA_DELETE_OPTION_SETTINGS"> </a><div class="element clickable constant MLA_DELETE_OPTION_SETTINGS" data-toggle="collapse" data-target=".MLA_DELETE_OPTION_SETTINGS .collapse">
285
+ <h2>Provides a unique name for the Media Manager Force Image Default Setings option</h2>
286
+ <pre>MLA_DELETE_OPTION_SETTINGS </pre>
287
+ <div class="labels"></div>
288
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
289
+ </div>
290
+ <a name="MLA_EDIT_MEDIA_META_BOXES" id="MLA_EDIT_MEDIA_META_BOXES"> </a><div class="element clickable constant MLA_EDIT_MEDIA_META_BOXES" data-toggle="collapse" data-target=".MLA_EDIT_MEDIA_META_BOXES .collapse">
291
+ <h2>Provides a unique name for the Edit Media additional meta boxes option</h2>
292
+ <pre>MLA_EDIT_MEDIA_META_BOXES </pre>
293
+ <div class="labels"></div>
294
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
295
+ </div>
296
+ <a name="MLA_EDIT_MEDIA_SEARCH_TAXONOMY" id="MLA_EDIT_MEDIA_SEARCH_TAXONOMY"> </a><div class="element clickable constant MLA_EDIT_MEDIA_SEARCH_TAXONOMY" data-toggle="collapse" data-target=".MLA_EDIT_MEDIA_SEARCH_TAXONOMY .collapse">
297
+ <h2>Provides a unique name for the "searchable taxonomies" option</h2>
298
+ <pre>MLA_EDIT_MEDIA_SEARCH_TAXONOMY </pre>
299
+ <div class="labels"></div>
300
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
301
+ </div>
302
+ <a name="MLA_ENABLE_MLA_ICONS" id="MLA_ENABLE_MLA_ICONS"> </a><div class="element clickable constant MLA_ENABLE_MLA_ICONS" data-toggle="collapse" data-target=".MLA_ENABLE_MLA_ICONS .collapse">
303
+ <h2>Provides a unique name for the Enable MLA Icons option</h2>
304
+ <pre>MLA_ENABLE_MLA_ICONS </pre>
305
+ <div class="labels"></div>
306
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
307
+ </div>
308
+ <a name="MLA_ENABLE_POST_MIME_TYPES" id="MLA_ENABLE_POST_MIME_TYPES"> </a><div class="element clickable constant MLA_ENABLE_POST_MIME_TYPES" data-toggle="collapse" data-target=".MLA_ENABLE_POST_MIME_TYPES .collapse">
309
+ <h2>Provides a unique name for the Enable Post MIME Types option</h2>
310
+ <pre>MLA_ENABLE_POST_MIME_TYPES </pre>
311
+ <div class="labels"></div>
312
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
313
+ </div>
314
+ <a name="MLA_ENABLE_UPLOAD_MIMES" id="MLA_ENABLE_UPLOAD_MIMES"> </a><div class="element clickable constant MLA_ENABLE_UPLOAD_MIMES" data-toggle="collapse" data-target=".MLA_ENABLE_UPLOAD_MIMES .collapse">
315
+ <h2>Provides a unique name for the Enable Upload MIME Types option</h2>
316
+ <pre>MLA_ENABLE_UPLOAD_MIMES </pre>
317
+ <div class="labels"></div>
318
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
319
+ </div>
320
+ <a name="MLA_EXCLUDE_REVISIONS" id="MLA_EXCLUDE_REVISIONS"> </a><div class="element clickable constant MLA_EXCLUDE_REVISIONS" data-toggle="collapse" data-target=".MLA_EXCLUDE_REVISIONS .collapse">
321
+ <h2>Provides a unique name for the exclude revisions option</h2>
322
+ <pre>MLA_EXCLUDE_REVISIONS </pre>
323
+ <div class="labels"></div>
324
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
325
+ </div>
326
+ <a name="MLA_EXIF_SIZE" id="MLA_EXIF_SIZE"> </a><div class="element clickable constant MLA_EXIF_SIZE" data-toggle="collapse" data-target=".MLA_EXIF_SIZE .collapse">
327
+ <h2>Provides a "size" attribute value for the EXIF/Template Value field</h2>
328
+ <pre>MLA_EXIF_SIZE </pre>
329
+ <div class="labels"></div>
330
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
331
+ </div>
332
+ <a name="MLA_FEATURED_IN_TUNING" id="MLA_FEATURED_IN_TUNING"> </a><div class="element clickable constant MLA_FEATURED_IN_TUNING" data-toggle="collapse" data-target=".MLA_FEATURED_IN_TUNING .collapse">
333
+ <h2>Provides a unique name for a database tuning option</h2>
334
+ <pre>MLA_FEATURED_IN_TUNING </pre>
335
+ <div class="labels"></div>
336
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
337
+ </div>
338
+ <a name="MLA_GALLERY_IN_TUNING" id="MLA_GALLERY_IN_TUNING"> </a><div class="element clickable constant MLA_GALLERY_IN_TUNING" data-toggle="collapse" data-target=".MLA_GALLERY_IN_TUNING .collapse">
339
+ <h2>Provides a unique name for a database tuning option</h2>
340
+ <pre>MLA_GALLERY_IN_TUNING </pre>
341
+ <div class="labels"></div>
342
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
343
+ </div>
344
+ <a name="MLA_INSERTED_IN_TUNING" id="MLA_INSERTED_IN_TUNING"> </a><div class="element clickable constant MLA_INSERTED_IN_TUNING" data-toggle="collapse" data-target=".MLA_INSERTED_IN_TUNING .collapse">
345
+ <h2>Provides a unique name for a database tuning option</h2>
346
+ <pre>MLA_INSERTED_IN_TUNING </pre>
347
+ <div class="labels"></div>
348
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
349
+ </div>
350
+ <a name="MLA_MEDIA_GRID_TOOLBAR" id="MLA_MEDIA_GRID_TOOLBAR"> </a><div class="element clickable constant MLA_MEDIA_GRID_TOOLBAR" data-toggle="collapse" data-target=".MLA_MEDIA_GRID_TOOLBAR .collapse">
351
+ <h2>Provides a unique name for the Media Grid toolbar option, which
352
+ also controls the ATTACHMENT DETAILS enhancements</h2>
353
+ <pre>MLA_MEDIA_GRID_TOOLBAR </pre>
354
+ <div class="labels"></div>
355
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
356
+ </div>
357
+ <a name="MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS" id="MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS"> </a><div class="element clickable constant MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS .collapse">
358
+ <h2>Provides a unique name for the Media Manager Force Image Default Setings option</h2>
359
+ <pre>MLA_MEDIA_MODAL_APPLY_DISPLAY_SETTINGS </pre>
360
+ <div class="labels"></div>
361
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
362
+ </div>
363
+ <a name="MLA_MEDIA_MODAL_DETAILS_AUTOFILL" id="MLA_MEDIA_MODAL_DETAILS_AUTOFILL"> </a><div class="element clickable constant MLA_MEDIA_MODAL_DETAILS_AUTOFILL" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_DETAILS_AUTOFILL .collapse">
364
+ <h2>Provides a unique name for the Media Manager Attachment Details auto-fill option</h2>
365
+ <pre>MLA_MEDIA_MODAL_DETAILS_AUTOFILL </pre>
366
+ <div class="labels"></div>
367
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
368
+ </div>
369
+ <a name="MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX" id="MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX"> </a><div class="element clickable constant MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX .collapse">
370
+ <h2>Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
371
+ This option is for hierarchical taxonomies, e.g., "Att.</h2>
372
+ <pre>MLA_MEDIA_MODAL_DETAILS_CATEGORY_METABOX </pre>
373
+ <div class="labels"></div>
374
+ <div class="row collapse"><div class="detail-description"><p class="long_description"><p>Categories".</p></p></div></div>
375
+ </div>
376
+ <a name="MLA_MEDIA_MODAL_DETAILS_TAG_METABOX" id="MLA_MEDIA_MODAL_DETAILS_TAG_METABOX"> </a><div class="element clickable constant MLA_MEDIA_MODAL_DETAILS_TAG_METABOX" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_DETAILS_TAG_METABOX .collapse">
377
+ <h2>Provides a unique name for the Media Manager Attachment Details searchable taxonomy option
378
+ This option is for flat taxonomies, e.g., "Att.</h2>
379
+ <pre>MLA_MEDIA_MODAL_DETAILS_TAG_METABOX </pre>
380
+ <div class="labels"></div>
381
+ <div class="row collapse"><div class="detail-description"><p class="long_description"><p>Tags".</p></p></div></div>
382
+ </div>
383
+ <a name="MLA_MEDIA_MODAL_MIMETYPES" id="MLA_MEDIA_MODAL_MIMETYPES"> </a><div class="element clickable constant MLA_MEDIA_MODAL_MIMETYPES" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_MIMETYPES .collapse">
384
+ <h2>Provides a unique name for the Media Manager toolbar MIME Types option</h2>
385
+ <pre>MLA_MEDIA_MODAL_MIMETYPES </pre>
386
+ <div class="labels"></div>
387
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
388
+ </div>
389
+ <a name="MLA_MEDIA_MODAL_MONTHS" id="MLA_MEDIA_MODAL_MONTHS"> </a><div class="element clickable constant MLA_MEDIA_MODAL_MONTHS" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_MONTHS .collapse">
390
+ <h2>Provides a unique name for the Media Manager toolbar Month and Year option</h2>
391
+ <pre>MLA_MEDIA_MODAL_MONTHS </pre>
392
+ <div class="labels"></div>
393
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
394
+ </div>
395
+ <a name="MLA_MEDIA_MODAL_ORDER" id="MLA_MEDIA_MODAL_ORDER"> </a><div class="element clickable constant MLA_MEDIA_MODAL_ORDER" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_ORDER .collapse">
396
+ <h2>Provides a unique name for the Media Manager order option</h2>
397
+ <pre>MLA_MEDIA_MODAL_ORDER </pre>
398
+ <div class="labels"></div>
399
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
400
+ </div>
401
+ <a name="MLA_MEDIA_MODAL_ORDERBY" id="MLA_MEDIA_MODAL_ORDERBY"> </a><div class="element clickable constant MLA_MEDIA_MODAL_ORDERBY" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_ORDERBY .collapse">
402
+ <h2>Provides a unique name for the Media Manager orderby option</h2>
403
+ <pre>MLA_MEDIA_MODAL_ORDERBY </pre>
404
+ <div class="labels"></div>
405
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
406
+ </div>
407
+ <a name="MLA_MEDIA_MODAL_SEARCHBOX" id="MLA_MEDIA_MODAL_SEARCHBOX"> </a><div class="element clickable constant MLA_MEDIA_MODAL_SEARCHBOX" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_SEARCHBOX .collapse">
408
+ <h2>Provides a unique name for the Media Manager toolbar Search Box option</h2>
409
+ <pre>MLA_MEDIA_MODAL_SEARCHBOX </pre>
410
+ <div class="labels"></div>
411
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
412
+ </div>
413
+ <a name="MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS" id="MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS"> </a><div class="element clickable constant MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS .collapse">
414
+ <h2>Provides a unique name for the Media Manager toolbar Search Box Controls option</h2>
415
+ <pre>MLA_MEDIA_MODAL_SEARCHBOX_CONTROLS </pre>
416
+ <div class="labels"></div>
417
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
418
+ </div>
419
+ <a name="MLA_MEDIA_MODAL_TERMS" id="MLA_MEDIA_MODAL_TERMS"> </a><div class="element clickable constant MLA_MEDIA_MODAL_TERMS" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_TERMS .collapse">
420
+ <h2>Provides a unique name for the Media Manager toolbar Taxonomy Terms option</h2>
421
+ <pre>MLA_MEDIA_MODAL_TERMS </pre>
422
+ <div class="labels"></div>
423
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
424
+ </div>
425
+ <a name="MLA_MEDIA_MODAL_TERMS_SEARCH" id="MLA_MEDIA_MODAL_TERMS_SEARCH"> </a><div class="element clickable constant MLA_MEDIA_MODAL_TERMS_SEARCH" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_TERMS_SEARCH .collapse">
426
+ <h2>Provides a unique name for the Media Manager toolbar Taxonomy "Terms Search" option</h2>
427
+ <pre>MLA_MEDIA_MODAL_TERMS_SEARCH </pre>
428
+ <div class="labels"></div>
429
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
430
+ </div>
431
+ <a name="MLA_MEDIA_MODAL_TOOLBAR" id="MLA_MEDIA_MODAL_TOOLBAR"> </a><div class="element clickable constant MLA_MEDIA_MODAL_TOOLBAR" data-toggle="collapse" data-target=".MLA_MEDIA_MODAL_TOOLBAR .collapse">
432
+ <h2>Provides a unique name for the Media Manager toolbar option, which
433
+ also controls the ATTACHMENT DETAILS enhancements</h2>
434
+ <pre>MLA_MEDIA_MODAL_TOOLBAR </pre>
435
+ <div class="labels"></div>
436
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
437
+ </div>
438
+ <a name="MLA_MLA_GALLERY_IN_TUNING" id="MLA_MLA_GALLERY_IN_TUNING"> </a><div class="element clickable constant MLA_MLA_GALLERY_IN_TUNING" data-toggle="collapse" data-target=".MLA_MLA_GALLERY_IN_TUNING .collapse">
439
+ <h2>Provides a unique name for a database tuning option</h2>
440
+ <pre>MLA_MLA_GALLERY_IN_TUNING </pre>
441
+ <div class="labels"></div>
442
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
443
+ </div>
444
+ <a name="MLA_NEW_CUSTOM_FIELD" id="MLA_NEW_CUSTOM_FIELD"> </a><div class="element clickable constant MLA_NEW_CUSTOM_FIELD" data-toggle="collapse" data-target=".MLA_NEW_CUSTOM_FIELD .collapse">
445
+ <h2>Provides a unique name for the Custom Field "new field" key</h2>
446
+ <pre>MLA_NEW_CUSTOM_FIELD </pre>
447
+ <div class="labels"></div>
448
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
449
+ </div>
450
+ <a name="MLA_NEW_CUSTOM_RULE" id="MLA_NEW_CUSTOM_RULE"> </a><div class="element clickable constant MLA_NEW_CUSTOM_RULE" data-toggle="collapse" data-target=".MLA_NEW_CUSTOM_RULE .collapse">
451
+ <h2>Provides a unique name for the Custom Field "new rule" key</h2>
452
+ <pre>MLA_NEW_CUSTOM_RULE </pre>
453
+ <div class="labels"></div>
454
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
455
+ </div>
456
+ <a name="MLA_POST_MIME_TYPES" id="MLA_POST_MIME_TYPES"> </a><div class="element clickable constant MLA_POST_MIME_TYPES" data-toggle="collapse" data-target=".MLA_POST_MIME_TYPES .collapse">
457
+ <h2>Provides a unique name for the Post MIME Types option</h2>
458
+ <pre>MLA_POST_MIME_TYPES </pre>
459
+ <div class="labels"></div>
460
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
461
+ </div>
462
+ <a name="MLA_SCREEN_DISPLAY_LIBRARY" id="MLA_SCREEN_DISPLAY_LIBRARY"> </a><div class="element clickable constant MLA_SCREEN_DISPLAY_LIBRARY" data-toggle="collapse" data-target=".MLA_SCREEN_DISPLAY_LIBRARY .collapse">
463
+ <h2>Provides a unique name for the admin screen remove Media/Library option</h2>
464
+ <pre>MLA_SCREEN_DISPLAY_LIBRARY </pre>
465
+ <div class="labels"></div>
466
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
467
+ </div>
468
+ <a name="MLA_SCREEN_DISPLAY_SWITCHER" id="MLA_SCREEN_DISPLAY_SWITCHER"> </a><div class="element clickable constant MLA_SCREEN_DISPLAY_SWITCHER" data-toggle="collapse" data-target=".MLA_SCREEN_DISPLAY_SWITCHER .collapse">
469
+ <h2>Provides a unique name for the Media/Assistant list/grid switcher option</h2>
470
+ <pre>MLA_SCREEN_DISPLAY_SWITCHER </pre>
471
+ <div class="labels"></div>
472
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
473
+ </div>
474
+ <a name="MLA_SCREEN_MENU_TITLE" id="MLA_SCREEN_MENU_TITLE"> </a><div class="element clickable constant MLA_SCREEN_MENU_TITLE" data-toggle="collapse" data-target=".MLA_SCREEN_MENU_TITLE .collapse">
475
+ <h2>Provides a unique name for the admin screen menu title option</h2>
476
+ <pre>MLA_SCREEN_MENU_TITLE </pre>
477
+ <div class="labels"></div>
478
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
479
+ </div>
480
+ <a name="MLA_SCREEN_ORDER" id="MLA_SCREEN_ORDER"> </a><div class="element clickable constant MLA_SCREEN_ORDER" data-toggle="collapse" data-target=".MLA_SCREEN_ORDER .collapse">
481
+ <h2>Provides a unique name for the admin screen menu order option</h2>
482
+ <pre>MLA_SCREEN_ORDER </pre>
483
+ <div class="labels"></div>
484
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
485
+ </div>
486
+ <a name="MLA_SCREEN_PAGE_TITLE" id="MLA_SCREEN_PAGE_TITLE"> </a><div class="element clickable constant MLA_SCREEN_PAGE_TITLE" data-toggle="collapse" data-target=".MLA_SCREEN_PAGE_TITLE .collapse">
487
+ <h2>Provides a unique name for the admin screen page title option</h2>
488
+ <pre>MLA_SCREEN_PAGE_TITLE </pre>
489
+ <div class="labels"></div>
490
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
491
+ </div>
492
+ <a name="MLA_SEARCH_MEDIA_FILTER_DEFAULTS" id="MLA_SEARCH_MEDIA_FILTER_DEFAULTS"> </a><div class="element clickable constant MLA_SEARCH_MEDIA_FILTER_DEFAULTS" data-toggle="collapse" data-target=".MLA_SEARCH_MEDIA_FILTER_DEFAULTS .collapse">
493
+ <h2>Provides a unique name for the display Search Media controls option</h2>
494
+ <pre>MLA_SEARCH_MEDIA_FILTER_DEFAULTS </pre>
495
+ <div class="labels"></div>
496
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
497
+ </div>
498
+ <a name="MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS" id="MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS"> </a><div class="element clickable constant MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS" data-toggle="collapse" data-target=".MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS .collapse">
499
+ <h2>Provides a unique name for the display Search Media controls option</h2>
500
+ <pre>MLA_SEARCH_MEDIA_FILTER_SHOW_CONTROLS </pre>
501
+ <div class="labels"></div>
502
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
503
+ </div>
504
+ <a name="MLA_SETTINGS_SLUG" id="MLA_SETTINGS_SLUG"> </a><div class="element clickable constant MLA_SETTINGS_SLUG" data-toggle="collapse" data-target=".MLA_SETTINGS_SLUG .collapse">
505
+ <h2>Provides a unique name for the settings page</h2>
506
+ <pre>MLA_SETTINGS_SLUG : string</pre>
507
+ <div class="labels"></div>
508
+ <div class="row collapse"><div class="detail-description">
509
+ <p class="long_description"></p>
510
+ <table class="table table-bordered"><tr>
511
+ <th>since</th>
512
+ <td>2.20</td>
513
+ </tr></table>
514
+ </div></div>
515
+ </div>
516
+ <a name="MLA_TABLE_ICON_SIZE" id="MLA_TABLE_ICON_SIZE"> </a><div class="element clickable constant MLA_TABLE_ICON_SIZE" data-toggle="collapse" data-target=".MLA_TABLE_ICON_SIZE .collapse">
517
+ <h2>Provides a unique name for the Media/Assistant submenu table thumbnail/icon size option</h2>
518
+ <pre>MLA_TABLE_ICON_SIZE </pre>
519
+ <div class="labels"></div>
520
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
521
+ </div>
522
+ <a name="MLA_TABLE_VIEWS_WIDTH" id="MLA_TABLE_VIEWS_WIDTH"> </a><div class="element clickable constant MLA_TABLE_VIEWS_WIDTH" data-toggle="collapse" data-target=".MLA_TABLE_VIEWS_WIDTH .collapse">
523
+ <h2>Provides a unique name for the Media/Assistant submenu table views width option</h2>
524
+ <pre>MLA_TABLE_VIEWS_WIDTH </pre>
525
+ <div class="labels"></div>
526
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
527
+ </div>
528
+ <a name="MLA_TAXONOMY_FILTER_DEPTH" id="MLA_TAXONOMY_FILTER_DEPTH"> </a><div class="element clickable constant MLA_TAXONOMY_FILTER_DEPTH" data-toggle="collapse" data-target=".MLA_TAXONOMY_FILTER_DEPTH .collapse">
529
+ <h2>Provides a unique name for the taxonomy filter maximum depth option</h2>
530
+ <pre>MLA_TAXONOMY_FILTER_DEPTH </pre>
531
+ <div class="labels"></div>
532
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
533
+ </div>
534
+ <a name="MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN" id="MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN"> </a><div class="element clickable constant MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN" data-toggle="collapse" data-target=".MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN .collapse">
535
+ <h2>Provides a unique name for the taxonomy filter maximum depth option</h2>
536
+ <pre>MLA_TAXONOMY_FILTER_INCLUDE_CHILDREN </pre>
537
+ <div class="labels"></div>
538
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
539
+ </div>
540
+ <a name="MLA_TAXONOMY_SUPPORT" id="MLA_TAXONOMY_SUPPORT"> </a><div class="element clickable constant MLA_TAXONOMY_SUPPORT" data-toggle="collapse" data-target=".MLA_TAXONOMY_SUPPORT .collapse">
541
+ <h2>Provides a unique name for the taxonomy support option</h2>
542
+ <pre>MLA_TAXONOMY_SUPPORT </pre>
543
+ <div class="labels"></div>
544
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
545
+ </div>
546
+ <a name="MLA_UPLOAD_MIMES" id="MLA_UPLOAD_MIMES"> </a><div class="element clickable constant MLA_UPLOAD_MIMES" data-toggle="collapse" data-target=".MLA_UPLOAD_MIMES .collapse">
547
+ <h2>Provides a unique name for the Upload MIME Types option</h2>
548
+ <pre>MLA_UPLOAD_MIMES </pre>
549
+ <div class="labels"></div>
550
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
551
+ </div>
552
+ <a name="MLA_VERSION_OPTION" id="MLA_VERSION_OPTION"> </a><div class="element clickable constant MLA_VERSION_OPTION" data-toggle="collapse" data-target=".MLA_VERSION_OPTION .collapse">
553
+ <h2>Provides a unique name for the current version option</h2>
554
+ <pre>MLA_VERSION_OPTION </pre>
555
+ <div class="labels"></div>
556
+ <div class="row collapse"><div class="detail-description"><p class="long_description"></p></div></div>
557
+ </div>
558
+ </div>
559
+ </div>
560
+ </div>
561
+ </div>
562
+ <div class="row"><footer class="span12">
563
+ Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
564
+ Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
565
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
566
+ </div>
567
+ </body>
568
+ </html>
phpDocs/classes/MLAData.html CHANGED
@@ -1320,7 +1320,7 @@ the "IPTC-NAA Information Interchange Model Version No. 4.1".</p></p>
1320
  <div class="row"><footer class="span12">
1321
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1322
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1323
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
1324
  </div>
1325
  </body>
1326
  </html>
1320
  <div class="row"><footer class="span12">
1321
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1322
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1323
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
1324
  </div>
1325
  </body>
1326
  </html>
phpDocs/classes/MLAData_source.html CHANGED
@@ -286,7 +286,7 @@ excludes "template:" and "meta:" values.</p></p>
286
  <div class="row"><footer class="span12">
287
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
288
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
289
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
290
  </div>
291
  </body>
292
  </html>
286
  <div class="row"><footer class="span12">
287
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
288
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
289
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
290
  </div>
291
  </body>
292
  </html>
phpDocs/classes/MLAEdit.html CHANGED
@@ -494,7 +494,7 @@ The array is built once each page load and cached for subsequent calls.</p></p>
494
  <div class="row"><footer class="span12">
495
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
496
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
497
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
498
  </div>
499
  </body>
500
  </html>
494
  <div class="row"><footer class="span12">
495
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
496
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
497
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
498
  </div>
499
  </body>
500
  </html>
phpDocs/classes/MLAImageProcessor.html CHANGED
@@ -326,7 +326,7 @@ optional $_REQUEST parameters are:
326
  <div class="row"><footer class="span12">
327
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
328
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
329
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
330
  </div>
331
  </body>
332
  </html>
326
  <div class="row"><footer class="span12">
327
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
328
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
329
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
330
  </div>
331
  </body>
332
  </html>
phpDocs/classes/MLAMime.html CHANGED
@@ -1308,7 +1308,7 @@ Defined as public because it's a filter.</p></p>
1308
  <div class="row"><footer class="span12">
1309
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1310
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1311
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
1312
  </div>
1313
  </body>
1314
  </html>
1308
  <div class="row"><footer class="span12">
1309
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1310
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1311
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
1312
  </div>
1313
  </body>
1314
  </html>
phpDocs/classes/MLAModal.html CHANGED
@@ -373,7 +373,7 @@ and mla_print_media_templates_action</h2>
373
  <div class="row"><footer class="span12">
374
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
375
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
376
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
377
  </div>
378
  </body>
379
  </html>
373
  <div class="row"><footer class="span12">
374
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
375
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
376
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
377
  </div>
378
  </body>
379
  </html>
phpDocs/classes/MLAModal_Ajax.html CHANGED
@@ -226,7 +226,7 @@ Declared public because it is a filter.</p></p>
226
  <div class="row"><footer class="span12">
227
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
228
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
229
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
230
  </div>
231
  </body>
232
  </html>
226
  <div class="row"><footer class="span12">
227
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
228
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
229
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
230
  </div>
231
  </body>
232
  </html>
phpDocs/classes/MLAMutex.html CHANGED
@@ -251,7 +251,7 @@ for the [mla_gallery] mla_viewer=single option</p>
251
  <div class="row"><footer class="span12">
252
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
253
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
254
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
255
  </div>
256
  </body>
257
  </html>
251
  <div class="row"><footer class="span12">
252
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
253
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
254
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
255
  </div>
256
  </body>
257
  </html>
phpDocs/classes/MLAObjects.html CHANGED
@@ -171,7 +171,7 @@ which replaces the "Posts" column with an equivalent "Attachments" column.</h2>
171
  <div class="row"><footer class="span12">
172
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
173
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
174
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
175
  </div>
176
  </body>
177
  </html>
171
  <div class="row"><footer class="span12">
172
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
173
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
174
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
175
  </div>
176
  </body>
177
  </html>
phpDocs/classes/MLAOptions.html CHANGED
@@ -65,13 +65,9 @@
65
  <li class="method public "><a href="#mla_evaluate_custom_field_mapping" title="mla_evaluate_custom_field_mapping :: Evaluate custom field mapping updates for a post"><span class="description">Evaluate custom field mapping updates for a post</span><pre>mla_evaluate_custom_field_mapping()</pre></a></li>
66
  <li class="method public "><a href="#mla_evaluate_iptc_exif_mapping" title="mla_evaluate_iptc_exif_mapping :: Evaluate IPTC/EXIF mapping updates for a post"><span class="description">Evaluate IPTC/EXIF mapping updates for a post</span><pre>mla_evaluate_iptc_exif_mapping()</pre></a></li>
67
  <li class="method public "><a href="#mla_get_data_source" title="mla_get_data_source :: Get IPTC/EXIF or custom field mapping data source; WP_ADMIN mode"><span class="description">Get IPTC/EXIF or custom field mapping data source; WP_ADMIN mode</span><pre>mla_get_data_source()</pre></a></li>
68
- <li class="method public "><a href="#mla_get_markup_templates" title="mla_get_markup_templates :: Get ALL markup templates from $mla_templates, including 'default'"><span class="description">Get ALL markup templates from $mla_templates, including 'default'</span><pre>mla_get_markup_templates()</pre></a></li>
69
  <li class="method public "><a href="#mla_get_option" title="mla_get_option :: Return the stored value or default value of a defined MLA option"><span class="description">Return the stored value or default value of a defined MLA option</span><pre>mla_get_option()</pre></a></li>
70
- <li class="method public "><a href="#mla_get_style_templates" title="mla_get_style_templates :: Get ALL style templates from $mla_templates, including 'default'"><span class="description">Get ALL style templates from $mla_templates, including 'default'</span><pre>mla_get_style_templates()</pre></a></li>
71
  <li class="method public "><a href="#mla_iptc_exif_option_handler" title="mla_iptc_exif_option_handler :: Render and manage iptc/exif support options"><span class="description">Render and manage iptc/exif support options</span><pre>mla_iptc_exif_option_handler()</pre></a></li>
72
  <li class="method public "><a href="#mla_is_data_source" title="mla_is_data_source :: Identify custom field mapping data source; WP_ADMIN mode"><span class="description">Identify custom field mapping data source; WP_ADMIN mode</span><pre>mla_is_data_source()</pre></a></li>
73
- <li class="method public "><a href="#mla_put_markup_templates" title="mla_put_markup_templates :: Put user-defined markup templates to $mla_templates and database"><span class="description">Put user-defined markup templates to $mla_templates and database</span><pre>mla_put_markup_templates()</pre></a></li>
74
- <li class="method public "><a href="#mla_put_style_templates" title="mla_put_style_templates :: Put user-defined style templates to $mla_templates and database"><span class="description">Put user-defined style templates to $mla_templates and database</span><pre>mla_put_style_templates()</pre></a></li>
75
  <li class="method public "><a href="#mla_search_option_handler" title="mla_search_option_handler :: Render and manage Search box options, e.g., connector and search fields"><span class="description">Render and manage Search box options, e.g., connector and search fields</span><pre>mla_search_option_handler()</pre></a></li>
76
  <li class="method public "><a href="#mla_supported_taxonomies" title="mla_supported_taxonomies :: Returns an array of taxonomy names assigned to $support_type"><span class="description">Returns an array of taxonomy names assigned to $support_type</span><pre>mla_supported_taxonomies()</pre></a></li>
77
  <li class="method public "><a href="#mla_taxonomy_option_handler" title="mla_taxonomy_option_handler :: Render and manage taxonomy support options, e.g., Categories and Post Tags"><span class="description">Render and manage taxonomy support options, e.g., Categories and Post Tags</span><pre>mla_taxonomy_option_handler()</pre></a></li>
@@ -89,7 +85,7 @@ settings are being updated or reset.</span><pre>mla_taxonomy_support()</pre></a>
89
  <li class="method private "><a href="#_compose_parent_option_list" title="_compose_parent_option_list :: Compose an hierarchical taxonomy Parent options list with current selection"><span class="description">Compose an hierarchical taxonomy Parent options list with current selection</span><pre>_compose_parent_option_list()</pre></a></li>
90
  <li class="method private "><a href="#_get_custom_field_names" title="_get_custom_field_names :: Generate a list of all (post) Custom Field names"><span class="description">Generate a list of all (post) Custom Field names</span><pre>_get_custom_field_names()</pre></a></li>
91
  <li class="method private "><a href="#_get_term_id" title="_get_term_id :: Build and search a cache of taxonomy and term name to term ID mappings"><span class="description">Build and search a cache of taxonomy and term name to term ID mappings</span><pre>_get_term_id()</pre></a></li>
92
- <li class="method private "><a href="#_load_option_templates" title="_load_option_templates :: Load style and markup templates to $mla_templates"><span class="description">Load style and markup templates to $mla_templates</span><pre>_load_option_templates()</pre></a></li>
93
  <li class="method private "><a href="#_update_attachment_metadata" title="_update_attachment_metadata :: Update _wp_attachment_metadata for just-inserted attachment"><span class="description">Update _wp_attachment_metadata for just-inserted attachment</span><pre>_update_attachment_metadata()</pre></a></li>
94
  <li class="method private "><a href="#_update_custom_field_mapping" title="_update_custom_field_mapping :: Update custom field mappings"><span class="description">Update custom field mappings</span><pre>_update_custom_field_mapping()</pre></a></li>
95
  <li class="method private "><a href="#_update_iptc_exif_custom_mapping" title="_update_iptc_exif_custom_mapping :: Update Custom field portion of IPTC/EXIF mappings"><span class="description">Update Custom field portion of IPTC/EXIF mappings</span><pre>_update_iptc_exif_custom_mapping()</pre></a></li>
@@ -99,7 +95,7 @@ settings are being updated or reset.</span><pre>mla_taxonomy_support()</pre></a>
99
  <i class="icon-custom icon-property"></i> Properties</li>
100
  <li class="nav-header private">» Private</li>
101
  <li class="property private "><a href="#%24add_attachment_id" title="$add_attachment_id :: Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter"><span class="description">Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter</span><pre>$add_attachment_id</pre></a></li>
102
- <li class="property private "><a href="#%24mla_option_templates" title="$mla_option_templates :: Style and Markup templates"><span class="description">Style and Markup templates</span><pre>$mla_option_templates</pre></a></li>
103
  <li class="nav-header">
104
  <i class="icon-custom icon-constant"></i> Constants</li>
105
  <li class="constant "><a href="#MLA_ADD_NEW_BULK_EDIT" title="MLA_ADD_NEW_BULK_EDIT :: Provides a unique name for the Media/Add New bulk edit option"><span class="description">Provides a unique name for the Media/Add New bulk edit option</span><pre>MLA_ADD_NEW_BULK_EDIT</pre></a></li>
@@ -412,21 +408,6 @@ and provides functions to get and put them from/to WordPress option variables</p
412
  <code>string</code><code>array</code>data source value</div>
413
  </div></div>
414
  </div>
415
- <a name="mla_get_markup_templates" id="mla_get_markup_templates"></a><div class="element clickable method public mla_get_markup_templates" data-toggle="collapse" data-target=".mla_get_markup_templates .collapse">
416
- <h2>Get ALL markup templates from $mla_templates, including 'default'</h2>
417
- <pre>mla_get_markup_templates() : array | null</pre>
418
- <div class="labels"></div>
419
- <div class="row collapse"><div class="detail-description">
420
- <p class="long_description"></p>
421
- <table class="table table-bordered"><tr>
422
- <th>since</th>
423
- <td>0.80</td>
424
- </tr></table>
425
- <h3>Returns</h3>
426
- <div class="subelement response">
427
- <code>array</code><code>null</code>name => value for all markup templates or null if no templates</div>
428
- </div></div>
429
- </div>
430
  <a name="mla_get_option" id="mla_get_option"></a><div class="element clickable method public mla_get_option" data-toggle="collapse" data-target=".mla_get_option .collapse">
431
  <h2>Return the stored value or default value of a defined MLA option</h2>
432
  <pre>mla_get_option(string $option, boolean $get_default, boolean $get_stored, array $option_table) : mixed</pre>
@@ -455,21 +436,6 @@ and provides functions to get and put them from/to WordPress option variables</p
455
  <code>mixed</code>Value(s) for the option or false if the option is not a defined MLA option</div>
456
  </div></div>
457
  </div>
458
- <a name="mla_get_style_templates" id="mla_get_style_templates"></a><div class="element clickable method public mla_get_style_templates" data-toggle="collapse" data-target=".mla_get_style_templates .collapse">
459
- <h2>Get ALL style templates from $mla_templates, including 'default'</h2>
460
- <pre>mla_get_style_templates() : array | null</pre>
461
- <div class="labels"></div>
462
- <div class="row collapse"><div class="detail-description">
463
- <p class="long_description"></p>
464
- <table class="table table-bordered"><tr>
465
- <th>since</th>
466
- <td>0.80</td>
467
- </tr></table>
468
- <h3>Returns</h3>
469
- <div class="subelement response">
470
- <code>array</code><code>null</code>name => value for all style templates or null if no templates</div>
471
- </div></div>
472
- </div>
473
  <a name="mla_iptc_exif_option_handler" id="mla_iptc_exif_option_handler"></a><div class="element clickable method public mla_iptc_exif_option_handler" data-toggle="collapse" data-target=".mla_iptc_exif_option_handler .collapse">
474
  <h2>Render and manage iptc/exif support options</h2>
475
  <pre>mla_iptc_exif_option_handler(string $action, string $key, array $value, array $args) : string</pre>
@@ -526,46 +492,6 @@ and provides functions to get and put them from/to WordPress option variables</p
526
  <code>boolean</code>true if candidate name matches a data source</div>
527
  </div></div>
528
  </div>
529
- <a name="mla_put_markup_templates" id="mla_put_markup_templates"></a><div class="element clickable method public mla_put_markup_templates" data-toggle="collapse" data-target=".mla_put_markup_templates .collapse">
530
- <h2>Put user-defined markup templates to $mla_templates and database</h2>
531
- <pre>mla_put_markup_templates(array $templates) : boolean</pre>
532
- <div class="labels"></div>
533
- <div class="row collapse"><div class="detail-description">
534
- <p class="long_description"></p>
535
- <table class="table table-bordered"><tr>
536
- <th>since</th>
537
- <td>0.80</td>
538
- </tr></table>
539
- <h3>Parameters</h3>
540
- <div class="subelement argument">
541
- <h4>$templates</h4>
542
- <code>array</code><p>name => value for all user-defined markup templates</p>
543
- </div>
544
- <h3>Returns</h3>
545
- <div class="subelement response">
546
- <code>boolean</code>true if success, false if failure</div>
547
- </div></div>
548
- </div>
549
- <a name="mla_put_style_templates" id="mla_put_style_templates"></a><div class="element clickable method public mla_put_style_templates" data-toggle="collapse" data-target=".mla_put_style_templates .collapse">
550
- <h2>Put user-defined style templates to $mla_templates and database</h2>
551
- <pre>mla_put_style_templates(array $templates) : boolean</pre>
552
- <div class="labels"></div>
553
- <div class="row collapse"><div class="detail-description">
554
- <p class="long_description"></p>
555
- <table class="table table-bordered"><tr>
556
- <th>since</th>
557
- <td>0.80</td>
558
- </tr></table>
559
- <h3>Parameters</h3>
560
- <div class="subelement argument">
561
- <h4>$templates</h4>
562
- <code>array</code><p>name => value for all user-defined style templates</p>
563
- </div>
564
- <h3>Returns</h3>
565
- <div class="subelement response">
566
- <code>boolean</code>true if success, false if failure</div>
567
- </div></div>
568
- </div>
569
  <a name="mla_search_option_handler" id="mla_search_option_handler"></a><div class="element clickable method public mla_search_option_handler" data-toggle="collapse" data-target=".mla_search_option_handler .collapse">
570
  <h2>Render and manage Search box options, e.g., connector and search fields</h2>
571
  <pre>mla_search_option_handler(string $action, string $key, array $value, array $args) : string</pre>
@@ -931,7 +857,7 @@ haven't been mapped to any attachments, yet.</p></p>
931
  </div></div>
932
  </div>
933
  <a name="_load_option_templates" id="_load_option_templates"></a><div class="element clickable method private _load_option_templates" data-toggle="collapse" data-target="._load_option_templates .collapse">
934
- <h2>Load style and markup templates to $mla_templates</h2>
935
  <pre>_load_option_templates() : void</pre>
936
  <div class="labels"></div>
937
  <div class="row collapse"><div class="detail-description">
@@ -1068,7 +994,7 @@ added to the Media Library.</p></p>
1068
  </div></div>
1069
  </div>
1070
  <a name="%24mla_option_templates" id="$mla_option_templates"> </a><div class="element clickable property private $mla_option_templates" data-toggle="collapse" data-target=".$mla_option_templates .collapse">
1071
- <h2>Style and Markup templates</h2>
1072
  <pre>$mla_option_templates : array</pre>
1073
  <div class="labels"></div>
1074
  <div class="row collapse"><div class="detail-description">
@@ -1398,7 +1324,7 @@ also controls the ATTACHMENT DETAILS enhancements</h2>
1398
  <div class="row"><footer class="span12">
1399
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1400
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1401
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
1402
  </div>
1403
  </body>
1404
  </html>
65
  <li class="method public "><a href="#mla_evaluate_custom_field_mapping" title="mla_evaluate_custom_field_mapping :: Evaluate custom field mapping updates for a post"><span class="description">Evaluate custom field mapping updates for a post</span><pre>mla_evaluate_custom_field_mapping()</pre></a></li>
66
  <li class="method public "><a href="#mla_evaluate_iptc_exif_mapping" title="mla_evaluate_iptc_exif_mapping :: Evaluate IPTC/EXIF mapping updates for a post"><span class="description">Evaluate IPTC/EXIF mapping updates for a post</span><pre>mla_evaluate_iptc_exif_mapping()</pre></a></li>
67
  <li class="method public "><a href="#mla_get_data_source" title="mla_get_data_source :: Get IPTC/EXIF or custom field mapping data source; WP_ADMIN mode"><span class="description">Get IPTC/EXIF or custom field mapping data source; WP_ADMIN mode</span><pre>mla_get_data_source()</pre></a></li>
 
68
  <li class="method public "><a href="#mla_get_option" title="mla_get_option :: Return the stored value or default value of a defined MLA option"><span class="description">Return the stored value or default value of a defined MLA option</span><pre>mla_get_option()</pre></a></li>
 
69
  <li class="method public "><a href="#mla_iptc_exif_option_handler" title="mla_iptc_exif_option_handler :: Render and manage iptc/exif support options"><span class="description">Render and manage iptc/exif support options</span><pre>mla_iptc_exif_option_handler()</pre></a></li>
70
  <li class="method public "><a href="#mla_is_data_source" title="mla_is_data_source :: Identify custom field mapping data source; WP_ADMIN mode"><span class="description">Identify custom field mapping data source; WP_ADMIN mode</span><pre>mla_is_data_source()</pre></a></li>
 
 
71
  <li class="method public "><a href="#mla_search_option_handler" title="mla_search_option_handler :: Render and manage Search box options, e.g., connector and search fields"><span class="description">Render and manage Search box options, e.g., connector and search fields</span><pre>mla_search_option_handler()</pre></a></li>
72
  <li class="method public "><a href="#mla_supported_taxonomies" title="mla_supported_taxonomies :: Returns an array of taxonomy names assigned to $support_type"><span class="description">Returns an array of taxonomy names assigned to $support_type</span><pre>mla_supported_taxonomies()</pre></a></li>
73
  <li class="method public "><a href="#mla_taxonomy_option_handler" title="mla_taxonomy_option_handler :: Render and manage taxonomy support options, e.g., Categories and Post Tags"><span class="description">Render and manage taxonomy support options, e.g., Categories and Post Tags</span><pre>mla_taxonomy_option_handler()</pre></a></li>
85
  <li class="method private "><a href="#_compose_parent_option_list" title="_compose_parent_option_list :: Compose an hierarchical taxonomy Parent options list with current selection"><span class="description">Compose an hierarchical taxonomy Parent options list with current selection</span><pre>_compose_parent_option_list()</pre></a></li>
86
  <li class="method private "><a href="#_get_custom_field_names" title="_get_custom_field_names :: Generate a list of all (post) Custom Field names"><span class="description">Generate a list of all (post) Custom Field names</span><pre>_get_custom_field_names()</pre></a></li>
87
  <li class="method private "><a href="#_get_term_id" title="_get_term_id :: Build and search a cache of taxonomy and term name to term ID mappings"><span class="description">Build and search a cache of taxonomy and term name to term ID mappings</span><pre>_get_term_id()</pre></a></li>
88
+ <li class="method private "><a href="#_load_option_templates" title="_load_option_templates :: Load option settings templates to $mla_option_templates"><span class="description">Load option settings templates to $mla_option_templates</span><pre>_load_option_templates()</pre></a></li>
89
  <li class="method private "><a href="#_update_attachment_metadata" title="_update_attachment_metadata :: Update _wp_attachment_metadata for just-inserted attachment"><span class="description">Update _wp_attachment_metadata for just-inserted attachment</span><pre>_update_attachment_metadata()</pre></a></li>
90
  <li class="method private "><a href="#_update_custom_field_mapping" title="_update_custom_field_mapping :: Update custom field mappings"><span class="description">Update custom field mappings</span><pre>_update_custom_field_mapping()</pre></a></li>
91
  <li class="method private "><a href="#_update_iptc_exif_custom_mapping" title="_update_iptc_exif_custom_mapping :: Update Custom field portion of IPTC/EXIF mappings"><span class="description">Update Custom field portion of IPTC/EXIF mappings</span><pre>_update_iptc_exif_custom_mapping()</pre></a></li>
95
  <i class="icon-custom icon-property"></i> Properties</li>
96
  <li class="nav-header private">» Private</li>
97
  <li class="property private "><a href="#%24add_attachment_id" title="$add_attachment_id :: Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter"><span class="description">Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter</span><pre>$add_attachment_id</pre></a></li>
98
+ <li class="property private "><a href="#%24mla_option_templates" title="$mla_option_templates :: Option Setting templates"><span class="description">Option Setting templates</span><pre>$mla_option_templates</pre></a></li>
99
  <li class="nav-header">
100
  <i class="icon-custom icon-constant"></i> Constants</li>
101
  <li class="constant "><a href="#MLA_ADD_NEW_BULK_EDIT" title="MLA_ADD_NEW_BULK_EDIT :: Provides a unique name for the Media/Add New bulk edit option"><span class="description">Provides a unique name for the Media/Add New bulk edit option</span><pre>MLA_ADD_NEW_BULK_EDIT</pre></a></li>
408
  <code>string</code><code>array</code>data source value</div>
409
  </div></div>
410
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
411
  <a name="mla_get_option" id="mla_get_option"></a><div class="element clickable method public mla_get_option" data-toggle="collapse" data-target=".mla_get_option .collapse">
412
  <h2>Return the stored value or default value of a defined MLA option</h2>
413
  <pre>mla_get_option(string $option, boolean $get_default, boolean $get_stored, array $option_table) : mixed</pre>
436
  <code>mixed</code>Value(s) for the option or false if the option is not a defined MLA option</div>
437
  </div></div>
438
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
439
  <a name="mla_iptc_exif_option_handler" id="mla_iptc_exif_option_handler"></a><div class="element clickable method public mla_iptc_exif_option_handler" data-toggle="collapse" data-target=".mla_iptc_exif_option_handler .collapse">
440
  <h2>Render and manage iptc/exif support options</h2>
441
  <pre>mla_iptc_exif_option_handler(string $action, string $key, array $value, array $args) : string</pre>
492
  <code>boolean</code>true if candidate name matches a data source</div>
493
  </div></div>
494
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
495
  <a name="mla_search_option_handler" id="mla_search_option_handler"></a><div class="element clickable method public mla_search_option_handler" data-toggle="collapse" data-target=".mla_search_option_handler .collapse">
496
  <h2>Render and manage Search box options, e.g., connector and search fields</h2>
497
  <pre>mla_search_option_handler(string $action, string $key, array $value, array $args) : string</pre>
857
  </div></div>
858
  </div>
859
  <a name="_load_option_templates" id="_load_option_templates"></a><div class="element clickable method private _load_option_templates" data-toggle="collapse" data-target="._load_option_templates .collapse">
860
+ <h2>Load option settings templates to $mla_option_templates</h2>
861
  <pre>_load_option_templates() : void</pre>
862
  <div class="labels"></div>
863
  <div class="row collapse"><div class="detail-description">
994
  </div></div>
995
  </div>
996
  <a name="%24mla_option_templates" id="$mla_option_templates"> </a><div class="element clickable property private $mla_option_templates" data-toggle="collapse" data-target=".$mla_option_templates .collapse">
997
+ <h2>Option Setting templates</h2>
998
  <pre>$mla_option_templates : array</pre>
999
  <div class="labels"></div>
1000
  <div class="row collapse"><div class="detail-description">
1324
  <div class="row"><footer class="span12">
1325
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1326
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1327
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
1328
  </div>
1329
  </body>
1330
  </html>
phpDocs/classes/MLAPDF.html CHANGED
@@ -382,7 +382,7 @@ The array value is array( number, generation, start, optional /length )</p></p>
382
  <div class="row"><footer class="span12">
383
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
384
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
385
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
386
  </div>
387
  </body>
388
  </html>
382
  <div class="row"><footer class="span12">
383
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
384
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
385
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
386
  </div>
387
  </body>
388
  </html>
phpDocs/classes/MLAQuery.html CHANGED
@@ -868,7 +868,7 @@ custom field Table Views.</p></p>
868
  <div class="row"><footer class="span12">
869
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
870
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
871
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
872
  </div>
873
  </body>
874
  </html>
868
  <div class="row"><footer class="span12">
869
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
870
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
871
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
872
  </div>
873
  </body>
874
  </html>
phpDocs/classes/MLAReferences.html CHANGED
@@ -256,7 +256,7 @@ each page load and cached for subsequent calls.</p></p>
256
  <div class="row"><footer class="span12">
257
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
258
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
259
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
260
  </div>
261
  </body>
262
  </html>
256
  <div class="row"><footer class="span12">
257
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
258
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
259
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
260
  </div>
261
  </body>
262
  </html>
phpDocs/classes/MLASettings.html CHANGED
@@ -1349,7 +1349,7 @@ localization calls cannot be placed in the "public static" array definition itse
1349
  <div class="row"><footer class="span12">
1350
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1351
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1352
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
1353
  </div>
1354
  </body>
1355
  </html>
1349
  <div class="row"><footer class="span12">
1350
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1351
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1352
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
1353
  </div>
1354
  </body>
1355
  </html>
phpDocs/classes/MLAShortcode_Support.html CHANGED
@@ -58,12 +58,10 @@
58
  <li class="nav-header">
59
  <i class="icon-custom icon-method"></i> Methods</li>
60
  <li class="method public "><a href="#_compose_term_list" title="_compose_term_list :: Compose one level of an mla_term_list"><span class="description">Compose one level of an mla_term_list</span><pre>_compose_term_list()</pre></a></li>
61
- <li class="method public "><a href="#mla_fetch_gallery_template" title="mla_fetch_gallery_template :: Fetch style or markup template from $mla_templates"><span class="description">Fetch style or markup template from $mla_templates</span><pre>mla_fetch_gallery_template()</pre></a></li>
62
  <li class="method public "><a href="#mla_gallery_shortcode" title="mla_gallery_shortcode :: The MLA Gallery shortcode."><span class="description">The MLA Gallery shortcode.</span><pre>mla_gallery_shortcode()</pre></a></li>
63
  <li class="method public "><a href="#mla_get_shortcode_attachments" title="mla_get_shortcode_attachments :: Parses shortcode parameters and returns the gallery objects"><span class="description">Parses shortcode parameters and returns the gallery objects</span><pre>mla_get_shortcode_attachments()</pre></a></li>
64
  <li class="method public "><a href="#mla_get_terms" title="mla_get_terms :: Retrieve the terms in one or more taxonomies."><span class="description">Retrieve the terms in one or more taxonomies.</span><pre>mla_get_terms()</pre></a></li>
65
  <li class="method public "><a href="#mla_ghostscript_present" title="mla_ghostscript_present :: Verify the presence of Ghostscript for mla_viewer"><span class="description">Verify the presence of Ghostscript for mla_viewer</span><pre>mla_ghostscript_present()</pre></a></li>
66
- <li class="method public "><a href="#mla_load_custom_templates" title="mla_load_custom_templates :: Load style and markup templates to $mla_custom_templates"><span class="description">Load style and markup templates to $mla_custom_templates</span><pre>mla_load_custom_templates()</pre></a></li>
67
  <li class="method public "><a href="#mla_shortcode_query_posts_clauses_filter" title="mla_shortcode_query_posts_clauses_filter :: Filters all clauses for shortcode queries, pre caching plugins"><span class="description">Filters all clauses for shortcode queries, pre caching plugins</span><pre>mla_shortcode_query_posts_clauses_filter()</pre></a></li>
68
  <li class="method public "><a href="#mla_shortcode_query_posts_clauses_request_filter" title="mla_shortcode_query_posts_clauses_request_filter :: Filters all clauses for shortcode queries, post caching plugins"><span class="description">Filters all clauses for shortcode queries, post caching plugins</span><pre>mla_shortcode_query_posts_clauses_request_filter()</pre></a></li>
69
  <li class="method public "><a href="#mla_shortcode_query_posts_join_filter" title="mla_shortcode_query_posts_join_filter :: Filters the JOIN clause for shortcode queries"><span class="description">Filters the JOIN clause for shortcode queries</span><pre>mla_shortcode_query_posts_join_filter()</pre></a></li>
@@ -89,12 +87,12 @@
89
  <li class="method private "><a href="#_validate_sql_orderby" title="_validate_sql_orderby :: Translates query parameters to a valid SQL order by clause."><span class="description">Translates query parameters to a valid SQL order by clause.</span><pre>_validate_sql_orderby()</pre></a></li>
90
  <li class="nav-header">
91
  <i class="icon-custom icon-property"></i> Properties</li>
92
- <li class="property public "><a href="#%24mla_custom_templates" title="$mla_custom_templates :: Style and Markup templates"><span class="description">Style and Markup templates</span><pre>$mla_custom_templates</pre></a></li>
93
  <li class="nav-header private">» Private</li>
94
  <li class="property private "><a href="#%24mla_debug" title="$mla_debug :: Turn debug collection and display on or off"><span class="description">Turn debug collection and display on or off</span><pre>$mla_debug</pre></a></li>
95
  <li class="property private "><a href="#%24mla_get_shortcode_attachments_parameters" title="$mla_get_shortcode_attachments_parameters :: Data selection parameters for the WP_Query in [mla_gallery]"><span class="description">Data selection parameters for the WP_Query in [mla_gallery]</span><pre>$mla_get_shortcode_attachments_parameters</pre></a></li>
96
  <li class="property private "><a href="#%24mla_get_terms_parameters" title="$mla_get_terms_parameters :: Data selection parameters for [mla_tag_cloud], [mla_term_list]"><span class="description">Data selection parameters for [mla_tag_cloud], [mla_term_list]</span><pre>$mla_get_terms_parameters</pre></a></li>
97
  <li class="property private "><a href="#%24query_parameters" title='$query_parameters :: WP_Query filter "parameters"'><span class="description">WP_Query filter "parameters"</span><pre>$query_parameters</pre></a></li>
 
98
  </ul>
99
  </div>
100
  <div class="span8">
@@ -158,29 +156,6 @@ mla_get_shortcode_attachments() and mla_get_terms() database access functions.</
158
  <code>array</code><p>Shortcode parameters, explicit, by reference</p></div>
159
  </div></div>
160
  </div>
161
- <a name="mla_fetch_gallery_template" id="mla_fetch_gallery_template"></a><div class="element clickable method public mla_fetch_gallery_template" data-toggle="collapse" data-target=".mla_fetch_gallery_template .collapse">
162
- <h2>Fetch style or markup template from $mla_templates</h2>
163
- <pre>mla_fetch_gallery_template(string $key, string $type) : string | boolean | null</pre>
164
- <div class="labels"></div>
165
- <div class="row collapse"><div class="detail-description">
166
- <p class="long_description"></p>
167
- <table class="table table-bordered"><tr>
168
- <th>since</th>
169
- <td>2.20</td>
170
- </tr></table>
171
- <h3>Parameters</h3>
172
- <div class="subelement argument">
173
- <h4>$key</h4>
174
- <code>string</code><p>Template name</p></div>
175
- <div class="subelement argument">
176
- <h4>$type</h4>
177
- <code>string</code><p>Template type; 'style' (default) or 'markup'</p>
178
- </div>
179
- <h3>Returns</h3>
180
- <div class="subelement response">
181
- <code>string</code><code>boolean</code><code>null</code>requested template, false if not found or null if no templates</div>
182
- </div></div>
183
- </div>
184
  <a name="mla_gallery_shortcode" id="mla_gallery_shortcode"></a><div class="element clickable method public mla_gallery_shortcode" data-toggle="collapse" data-target=".mla_gallery_shortcode .collapse">
185
  <h2>The MLA Gallery shortcode.</h2>
186
  <pre>mla_gallery_shortcode(array $attr, string $content) : string</pre>
@@ -320,18 +295,6 @@ descending and then by term_id before this value is applied. Default 0.</p>
320
  <code>boolean</code>true if Ghostscript available else false</div>
321
  </div></div>
322
  </div>
323
- <a name="mla_load_custom_templates" id="mla_load_custom_templates"></a><div class="element clickable method public mla_load_custom_templates" data-toggle="collapse" data-target=".mla_load_custom_templates .collapse">
324
- <h2>Load style and markup templates to $mla_custom_templates</h2>
325
- <pre>mla_load_custom_templates() : void</pre>
326
- <div class="labels"></div>
327
- <div class="row collapse"><div class="detail-description">
328
- <p class="long_description"></p>
329
- <table class="table table-bordered"><tr>
330
- <th>since</th>
331
- <td>2.20</td>
332
- </tr></table>
333
- </div></div>
334
- </div>
335
  <a name="mla_shortcode_query_posts_clauses_filter" id="mla_shortcode_query_posts_clauses_filter"></a><div class="element clickable method public mla_shortcode_query_posts_clauses_filter" data-toggle="collapse" data-target=".mla_shortcode_query_posts_clauses_filter .collapse">
336
  <h2>Filters all clauses for shortcode queries, pre caching plugins</h2>
337
  <pre>mla_shortcode_query_posts_clauses_filter(array $pieces) : array</pre>
@@ -843,18 +806,6 @@ Enhanced version of /wp-includes/formatting.php function sanitize_sql_orderby().
843
  </div>
844
  <h3>
845
  <i class="icon-custom icon-property"></i> Properties</h3>
846
- <a name="%24mla_custom_templates" id="$mla_custom_templates"> </a><div class="element clickable property public $mla_custom_templates" data-toggle="collapse" data-target=".$mla_custom_templates .collapse">
847
- <h2>Style and Markup templates</h2>
848
- <pre>$mla_custom_templates : array</pre>
849
- <div class="labels"></div>
850
- <div class="row collapse"><div class="detail-description">
851
- <p class="long_description"></p>
852
- <table class="table table-bordered"><tr>
853
- <th>since</th>
854
- <td>2.20</td>
855
- </tr></table>
856
- </div></div>
857
- </div>
858
  <a name="%24mla_debug" id="$mla_debug"> </a><div class="element clickable property private $mla_debug" data-toggle="collapse" data-target=".$mla_debug .collapse">
859
  <h2>Turn debug collection and display on or off</h2>
860
  <pre>$mla_debug : boolean</pre>
@@ -907,6 +858,18 @@ any further logic required to translate those values is contained in the filter.
907
  </tr></table>
908
  </div></div>
909
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
910
  </div>
911
  </div>
912
  </div>
@@ -914,7 +877,7 @@ any further logic required to translate those values is contained in the filter.
914
  <div class="row"><footer class="span12">
915
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
916
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
917
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
918
  </div>
919
  </body>
920
  </html>
58
  <li class="nav-header">
59
  <i class="icon-custom icon-method"></i> Methods</li>
60
  <li class="method public "><a href="#_compose_term_list" title="_compose_term_list :: Compose one level of an mla_term_list"><span class="description">Compose one level of an mla_term_list</span><pre>_compose_term_list()</pre></a></li>
 
61
  <li class="method public "><a href="#mla_gallery_shortcode" title="mla_gallery_shortcode :: The MLA Gallery shortcode."><span class="description">The MLA Gallery shortcode.</span><pre>mla_gallery_shortcode()</pre></a></li>
62
  <li class="method public "><a href="#mla_get_shortcode_attachments" title="mla_get_shortcode_attachments :: Parses shortcode parameters and returns the gallery objects"><span class="description">Parses shortcode parameters and returns the gallery objects</span><pre>mla_get_shortcode_attachments()</pre></a></li>
63
  <li class="method public "><a href="#mla_get_terms" title="mla_get_terms :: Retrieve the terms in one or more taxonomies."><span class="description">Retrieve the terms in one or more taxonomies.</span><pre>mla_get_terms()</pre></a></li>
64
  <li class="method public "><a href="#mla_ghostscript_present" title="mla_ghostscript_present :: Verify the presence of Ghostscript for mla_viewer"><span class="description">Verify the presence of Ghostscript for mla_viewer</span><pre>mla_ghostscript_present()</pre></a></li>
 
65
  <li class="method public "><a href="#mla_shortcode_query_posts_clauses_filter" title="mla_shortcode_query_posts_clauses_filter :: Filters all clauses for shortcode queries, pre caching plugins"><span class="description">Filters all clauses for shortcode queries, pre caching plugins</span><pre>mla_shortcode_query_posts_clauses_filter()</pre></a></li>
66
  <li class="method public "><a href="#mla_shortcode_query_posts_clauses_request_filter" title="mla_shortcode_query_posts_clauses_request_filter :: Filters all clauses for shortcode queries, post caching plugins"><span class="description">Filters all clauses for shortcode queries, post caching plugins</span><pre>mla_shortcode_query_posts_clauses_request_filter()</pre></a></li>
67
  <li class="method public "><a href="#mla_shortcode_query_posts_join_filter" title="mla_shortcode_query_posts_join_filter :: Filters the JOIN clause for shortcode queries"><span class="description">Filters the JOIN clause for shortcode queries</span><pre>mla_shortcode_query_posts_join_filter()</pre></a></li>
87
  <li class="method private "><a href="#_validate_sql_orderby" title="_validate_sql_orderby :: Translates query parameters to a valid SQL order by clause."><span class="description">Translates query parameters to a valid SQL order by clause.</span><pre>_validate_sql_orderby()</pre></a></li>
88
  <li class="nav-header">
89
  <i class="icon-custom icon-property"></i> Properties</li>
 
90
  <li class="nav-header private">» Private</li>
91
  <li class="property private "><a href="#%24mla_debug" title="$mla_debug :: Turn debug collection and display on or off"><span class="description">Turn debug collection and display on or off</span><pre>$mla_debug</pre></a></li>
92
  <li class="property private "><a href="#%24mla_get_shortcode_attachments_parameters" title="$mla_get_shortcode_attachments_parameters :: Data selection parameters for the WP_Query in [mla_gallery]"><span class="description">Data selection parameters for the WP_Query in [mla_gallery]</span><pre>$mla_get_shortcode_attachments_parameters</pre></a></li>
93
  <li class="property private "><a href="#%24mla_get_terms_parameters" title="$mla_get_terms_parameters :: Data selection parameters for [mla_tag_cloud], [mla_term_list]"><span class="description">Data selection parameters for [mla_tag_cloud], [mla_term_list]</span><pre>$mla_get_terms_parameters</pre></a></li>
94
  <li class="property private "><a href="#%24query_parameters" title='$query_parameters :: WP_Query filter "parameters"'><span class="description">WP_Query filter "parameters"</span><pre>$query_parameters</pre></a></li>
95
+ <li class="property private "><a href="#%24term_list_item_specific_arguments" title="$term_list_item_specific_arguments :: These are the default parameters for term list display"><span class="description">These are the default parameters for term list display</span><pre>$term_list_item_specific_arguments</pre></a></li>
96
  </ul>
97
  </div>
98
  <div class="span8">
156
  <code>array</code><p>Shortcode parameters, explicit, by reference</p></div>
157
  </div></div>
158
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
159
  <a name="mla_gallery_shortcode" id="mla_gallery_shortcode"></a><div class="element clickable method public mla_gallery_shortcode" data-toggle="collapse" data-target=".mla_gallery_shortcode .collapse">
160
  <h2>The MLA Gallery shortcode.</h2>
161
  <pre>mla_gallery_shortcode(array $attr, string $content) : string</pre>
295
  <code>boolean</code>true if Ghostscript available else false</div>
296
  </div></div>
297
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
298
  <a name="mla_shortcode_query_posts_clauses_filter" id="mla_shortcode_query_posts_clauses_filter"></a><div class="element clickable method public mla_shortcode_query_posts_clauses_filter" data-toggle="collapse" data-target=".mla_shortcode_query_posts_clauses_filter .collapse">
299
  <h2>Filters all clauses for shortcode queries, pre caching plugins</h2>
300
  <pre>mla_shortcode_query_posts_clauses_filter(array $pieces) : array</pre>
806
  </div>
807
  <h3>
808
  <i class="icon-custom icon-property"></i> Properties</h3>
 
 
 
 
 
 
 
 
 
 
 
 
809
  <a name="%24mla_debug" id="$mla_debug"> </a><div class="element clickable property private $mla_debug" data-toggle="collapse" data-target=".$mla_debug .collapse">
810
  <h2>Turn debug collection and display on or off</h2>
811
  <pre>$mla_debug : boolean</pre>
858
  </tr></table>
859
  </div></div>
860
  </div>
861
+ <a name="%24term_list_item_specific_arguments" id="$term_list_item_specific_arguments"> </a><div class="element clickable property private $term_list_item_specific_arguments" data-toggle="collapse" data-target=".$term_list_item_specific_arguments .collapse">
862
+ <h2>These are the default parameters for term list display</h2>
863
+ <pre>$term_list_item_specific_arguments : array</pre>
864
+ <div class="labels"></div>
865
+ <div class="row collapse"><div class="detail-description">
866
+ <p class="long_description"></p>
867
+ <table class="table table-bordered"><tr>
868
+ <th>since</th>
869
+ <td>2.30</td>
870
+ </tr></table>
871
+ </div></div>
872
+ </div>
873
  </div>
874
  </div>
875
  </div>
877
  <div class="row"><footer class="span12">
878
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
879
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
880
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
881
  </div>
882
  </body>
883
  </html>
phpDocs/classes/MLAShortcodes.html CHANGED
@@ -314,7 +314,7 @@ to MLA users and loads the support class if the shortcodes are executed.</p>
314
  <div class="row"><footer class="span12">
315
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
316
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
317
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
318
  </div>
319
  </body>
320
  </html>
314
  <div class="row"><footer class="span12">
315
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
316
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
317
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
318
  </div>
319
  </body>
320
  </html>
phpDocs/classes/MLATemplate_Support.html ADDED
@@ -0,0 +1,284 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
2
+ <head>
3
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4
+ <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
5
+ <meta charset="utf-8">
6
+ <title>Media Library Assistant » \MLATemplate_Support</title>
7
+ <meta name="author" content="Mike van Riel">
8
+ <meta name="description" content="">
9
+ <link href="../css/template.css" rel="stylesheet" media="all">
10
+ <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
11
+ <link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
12
+ <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
13
+ <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
14
+ </head>
15
+ <body>
16
+ <div class="navbar navbar-fixed-top">
17
+ <div class="navbar-inner"><div class="container">
18
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
19
+ <li class="dropdown">
20
+ <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
21
+ API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
+ </li>
26
+ <li class="dropdown" id="charts-menu">
27
+ <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
28
+ Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
29
+ </li>
30
+ <li class="dropdown" id="reports-menu">
31
+ <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
32
+ Reports <b class="caret"></b></a><ul class="dropdown-menu">
33
+ <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
34
+ <span class="label label-info">0</span></a></li>
35
+ <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
36
+ <ul><li>todo 
37
+ <span class="label label-info">3</span>
38
+ </li></ul></a></li>
39
+ <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
40
+ <span class="label label-info">0</span></a></li>
41
+ </ul>
42
+ </li>
43
+ </ul></div>
44
+ </div></div>
45
+ <div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
46
+ </div>
47
+ <div id="___" class="container">
48
+ <noscript><div class="alert alert-warning">
49
+ Javascript is disabled; several features are only available
50
+ if Javascript is enabled.
51
+ </div></noscript>
52
+ <div class="row">
53
+ <div class="span4">
54
+ <span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
55
+ <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
56
+ </div>
57
+ <ul class="side-nav nav nav-list">
58
+ <li class="nav-header">
59
+ <i class="icon-custom icon-method"></i> Methods</li>
60
+ <li class="method public "><a href="#mla_fetch_custom_template" title="mla_fetch_custom_template :: Fetch style or markup template from $mla_templates"><span class="description">Fetch style or markup template from $mla_templates</span><pre>mla_fetch_custom_template()</pre></a></li>
61
+ <li class="method public "><a href="#mla_get_markup_templates" title="mla_get_markup_templates :: Get ALL markup templates from $mla_custom_templates, including 'default'"><span class="description">Get ALL markup templates from $mla_custom_templates, including 'default'</span><pre>mla_get_markup_templates()</pre></a></li>
62
+ <li class="method public "><a href="#mla_get_style_templates" title="mla_get_style_templates :: Get ALL style templates from $mla_custom_templates, including 'default'"><span class="description">Get ALL style templates from $mla_custom_templates, including 'default'</span><pre>mla_get_style_templates()</pre></a></li>
63
+ <li class="method public "><a href="#mla_load_custom_templates" title="mla_load_custom_templates :: Load style and markup templates to $mla_custom_templates"><span class="description">Load style and markup templates to $mla_custom_templates</span><pre>mla_load_custom_templates()</pre></a></li>
64
+ <li class="method public "><a href="#mla_localize_template_definitions" title="mla_localize_template_definitions :: Localize $mla_option_definitions array"><span class="description">Localize $mla_option_definitions array</span><pre>mla_localize_template_definitions()</pre></a></li>
65
+ <li class="method public "><a href="#mla_put_markup_templates" title="mla_put_markup_templates :: Put user-defined markup templates to $mla_custom_templates and database"><span class="description">Put user-defined markup templates to $mla_custom_templates and database</span><pre>mla_put_markup_templates()</pre></a></li>
66
+ <li class="method public "><a href="#mla_put_style_templates" title="mla_put_style_templates :: Put user-defined style templates to $mla_custom_templates and database"><span class="description">Put user-defined style templates to $mla_custom_templates and database</span><pre>mla_put_style_templates()</pre></a></li>
67
+ <li class="nav-header">
68
+ <i class="icon-custom icon-property"></i> Properties</li>
69
+ <li class="property public "><a href="#%24mla_template_definitions" title="$mla_template_definitions :: $mla_template_definitions defines the structure of the style and markup templates
70
+ and the labels, etc."><span class="description">$mla_template_definitions defines the structure of the style and markup templates
71
+ and the labels, etc.</span><pre>$mla_template_definitions</pre></a></li>
72
+ <li class="nav-header private">» Private</li>
73
+ <li class="property private "><a href="#%24mla_custom_templates" title="$mla_custom_templates :: Style and Markup templates"><span class="description">Style and Markup templates</span><pre>$mla_custom_templates</pre></a></li>
74
+ </ul>
75
+ </div>
76
+ <div class="span8">
77
+ <a name="%5CMLATemplate_Support" id="\MLATemplate_Support"></a><ul class="breadcrumb">
78
+ <li>
79
+ <a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span>
80
+ </li>
81
+ <li><a href="../namespaces/global.html">global</a></li>
82
+ <li class="active">
83
+ <span class="divider">\</span><a href="../classes/MLATemplate_Support.html">MLATemplate_Support</a>
84
+ </li>
85
+ </ul>
86
+ <div href="../classes/MLATemplate_Support.html" class="element class">
87
+ <p class="short_description">Class MLA (Media Library Assistant) Custom Style/Markup Template Support provides functions that
88
+ define, import and export custom style and markup templates for MLA shortcodes.</p>
89
+ <div class="details">
90
+ <p class="long_description"></p>
91
+ <table class="table table-bordered">
92
+ <tr>
93
+ <th>package</th>
94
+ <td><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></td>
95
+ </tr>
96
+ <tr>
97
+ <th>since</th>
98
+ <td>2.30</td>
99
+ </tr>
100
+ </table>
101
+ <h3>
102
+ <i class="icon-custom icon-method"></i> Methods</h3>
103
+ <a name="mla_fetch_custom_template" id="mla_fetch_custom_template"></a><div class="element clickable method public mla_fetch_custom_template" data-toggle="collapse" data-target=".mla_fetch_custom_template .collapse">
104
+ <h2>Fetch style or markup template from $mla_templates</h2>
105
+ <pre>mla_fetch_custom_template(string $key, string $shortcode, string $type, string $section) : string | boolean | null</pre>
106
+ <div class="labels"></div>
107
+ <div class="row collapse"><div class="detail-description">
108
+ <p class="long_description"></p>
109
+ <table class="table table-bordered"><tr>
110
+ <th>since</th>
111
+ <td>2.30</td>
112
+ </tr></table>
113
+ <h3>Parameters</h3>
114
+ <div class="subelement argument">
115
+ <h4>$key</h4>
116
+ <code>string</code><p>Template name</p></div>
117
+ <div class="subelement argument">
118
+ <h4>$shortcode</h4>
119
+ <code>string</code><p>Shortcode slug; 'gallery' (default), 'tag-cloud' or 'term-list'</p>
120
+ </div>
121
+ <div class="subelement argument">
122
+ <h4>$type</h4>
123
+ <code>string</code><p>Template type; 'style' (default) or 'markup'</p>
124
+ </div>
125
+ <div class="subelement argument">
126
+ <h4>$section</h4>
127
+ <code>string</code><p>Template section (markup templates); default '[not supplied]'</p>
128
+ </div>
129
+ <h3>Returns</h3>
130
+ <div class="subelement response">
131
+ <code>string</code><code>boolean</code><code>null</code>requested template, false if not found or null if no templates</div>
132
+ </div></div>
133
+ </div>
134
+ <a name="mla_get_markup_templates" id="mla_get_markup_templates"></a><div class="element clickable method public mla_get_markup_templates" data-toggle="collapse" data-target=".mla_get_markup_templates .collapse">
135
+ <h2>Get ALL markup templates from $mla_custom_templates, including 'default'</h2>
136
+ <pre>mla_get_markup_templates(string $shortcode) : array | null</pre>
137
+ <div class="labels"></div>
138
+ <div class="row collapse"><div class="detail-description">
139
+ <p class="long_description"></p>
140
+ <table class="table table-bordered"><tr>
141
+ <th>since</th>
142
+ <td>2.30</td>
143
+ </tr></table>
144
+ <h3>Parameters</h3>
145
+ <div class="subelement argument">
146
+ <h4>$shortcode</h4>
147
+ <code>string</code><p>Shortcode to which the template(s) apply; default 'gallery'</p>
148
+ </div>
149
+ <h3>Returns</h3>
150
+ <div class="subelement response">
151
+ <code>array</code><code>null</code>name => value for all markup templates or null if no templates</div>
152
+ </div></div>
153
+ </div>
154
+ <a name="mla_get_style_templates" id="mla_get_style_templates"></a><div class="element clickable method public mla_get_style_templates" data-toggle="collapse" data-target=".mla_get_style_templates .collapse">
155
+ <h2>Get ALL style templates from $mla_custom_templates, including 'default'</h2>
156
+ <pre>mla_get_style_templates(string $shortcode) : array | null</pre>
157
+ <div class="labels"></div>
158
+ <div class="row collapse"><div class="detail-description">
159
+ <p class="long_description"></p>
160
+ <table class="table table-bordered"><tr>
161
+ <th>since</th>
162
+ <td>2.30</td>
163
+ </tr></table>
164
+ <h3>Parameters</h3>
165
+ <div class="subelement argument">
166
+ <h4>$shortcode</h4>
167
+ <code>string</code><p>Shortcode to which the template(s) apply; default ''</p>
168
+ </div>
169
+ <h3>Returns</h3>
170
+ <div class="subelement response">
171
+ <code>array</code><code>null</code>name => value for all style templates or null if no templates</div>
172
+ </div></div>
173
+ </div>
174
+ <a name="mla_load_custom_templates" id="mla_load_custom_templates"></a><div class="element clickable method public mla_load_custom_templates" data-toggle="collapse" data-target=".mla_load_custom_templates .collapse">
175
+ <h2>Load style and markup templates to $mla_custom_templates</h2>
176
+ <pre>mla_load_custom_templates() : void</pre>
177
+ <div class="labels"></div>
178
+ <div class="row collapse"><div class="detail-description">
179
+ <p class="long_description"></p>
180
+ <table class="table table-bordered"><tr>
181
+ <th>since</th>
182
+ <td>2.30</td>
183
+ </tr></table>
184
+ </div></div>
185
+ </div>
186
+ <a name="mla_localize_template_definitions" id="mla_localize_template_definitions"></a><div class="element clickable method public mla_localize_template_definitions" data-toggle="collapse" data-target=".mla_localize_template_definitions .collapse">
187
+ <h2>Localize $mla_option_definitions array</h2>
188
+ <pre>mla_localize_template_definitions() : void</pre>
189
+ <div class="labels"></div>
190
+ <div class="row collapse"><div class="detail-description">
191
+ <p class="long_description"><p>Localization must be done at runtime; these calls cannot be placed in the
192
+ "public static" array definition itself. Called from MLATest::initialize.</p></p>
193
+ <table class="table table-bordered"><tr>
194
+ <th>since</th>
195
+ <td>2.30</td>
196
+ </tr></table>
197
+ </div></div>
198
+ </div>
199
+ <a name="mla_put_markup_templates" id="mla_put_markup_templates"></a><div class="element clickable method public mla_put_markup_templates" data-toggle="collapse" data-target=".mla_put_markup_templates .collapse">
200
+ <h2>Put user-defined markup templates to $mla_custom_templates and database</h2>
201
+ <pre>mla_put_markup_templates(array $templates) : boolean</pre>
202
+ <div class="labels"></div>
203
+ <div class="row collapse"><div class="detail-description">
204
+ <p class="long_description"></p>
205
+ <table class="table table-bordered"><tr>
206
+ <th>since</th>
207
+ <td>2.30</td>
208
+ </tr></table>
209
+ <h3>Parameters</h3>
210
+ <div class="subelement argument">
211
+ <h4>$templates</h4>
212
+ <code>array</code><p>name => value for all user-defined markup templates</p>
213
+ </div>
214
+ <h3>Returns</h3>
215
+ <div class="subelement response">
216
+ <code>boolean</code>true if success, false if failure</div>
217
+ </div></div>
218
+ </div>
219
+ <a name="mla_put_style_templates" id="mla_put_style_templates"></a><div class="element clickable method public mla_put_style_templates" data-toggle="collapse" data-target=".mla_put_style_templates .collapse">
220
+ <h2>Put user-defined style templates to $mla_custom_templates and database</h2>
221
+ <pre>mla_put_style_templates(array $templates) : boolean</pre>
222
+ <div class="labels"></div>
223
+ <div class="row collapse"><div class="detail-description">
224
+ <p class="long_description"></p>
225
+ <table class="table table-bordered"><tr>
226
+ <th>since</th>
227
+ <td>2.30</td>
228
+ </tr></table>
229
+ <h3>Parameters</h3>
230
+ <div class="subelement argument">
231
+ <h4>$templates</h4>
232
+ <code>array</code><p>name => value for all user-defined style templates</p>
233
+ </div>
234
+ <h3>Returns</h3>
235
+ <div class="subelement response">
236
+ <code>boolean</code>true if success, false if failure</div>
237
+ </div></div>
238
+ </div>
239
+ <h3>
240
+ <i class="icon-custom icon-property"></i> Properties</h3>
241
+ <a name="%24mla_template_definitions" id="$mla_template_definitions"> </a><div class="element clickable property public $mla_template_definitions" data-toggle="collapse" data-target=".$mla_template_definitions .collapse">
242
+ <h2>$mla_template_definitions defines the structure of the style and markup templates
243
+ and the labels, etc.</h2>
244
+ <pre>$mla_template_definitions </pre>
245
+ <div class="labels"></div>
246
+ <div class="row collapse"><div class="detail-description"><p class="long_description"><p>required to render them in the Settings/Shortcodes tab</p>
247
+
248
+ <p>The array must be populated at runtime in MLATemplate_Support::mla_localize_template_definitions();
249
+ localization calls cannot be placed in the "public static" array definition itself.</p>
250
+
251
+ <p>Template types are indexed by 'style'/'markup' and then shortcode name. Each template type is defined by:
252
+ 'slug' => Sanitized version of the shortcode name
253
+ 'default_names' => Names of the default templates
254
+ 'label' => Styles only; label for the template textbox
255
+ 'help' => Styles only; help text displayed below the textbox
256
+ 'sections' => Markup only; array of template section definitions
257
+ 'sections'[] elements:
258
+ 'label' => Label for the section textbox
259
+ 'help' => Help text displayed below the textbox
260
+ 'order' => Where the section appears in the template</p></p></div></div>
261
+ </div>
262
+ <a name="%24mla_custom_templates" id="$mla_custom_templates"> </a><div class="element clickable property private $mla_custom_templates" data-toggle="collapse" data-target=".$mla_custom_templates .collapse">
263
+ <h2>Style and Markup templates</h2>
264
+ <pre>$mla_custom_templates : array</pre>
265
+ <div class="labels"></div>
266
+ <div class="row collapse"><div class="detail-description">
267
+ <p class="long_description"><p>Templates are indexed by 'style'/'markup' and then shortcode name. Each template type is defined by:</p></p>
268
+ <table class="table table-bordered"><tr>
269
+ <th>since</th>
270
+ <td>2.30</td>
271
+ </tr></table>
272
+ </div></div>
273
+ </div>
274
+ </div>
275
+ </div>
276
+ </div>
277
+ </div>
278
+ <div class="row"><footer class="span12">
279
+ Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
280
+ Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
281
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
282
+ </div>
283
+ </body>
284
+ </html>
phpDocs/classes/MLATest.html CHANGED
@@ -178,7 +178,7 @@ to ensure the plugin can run in the current WordPress envrionment.</p>
178
  <div class="row"><footer class="span12">
179
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
180
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
181
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
182
  </div>
183
  </body>
184
  </html>
178
  <div class="row"><footer class="span12">
179
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
180
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
181
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
182
  </div>
183
  </body>
184
  </html>
phpDocs/classes/MLATextWidget.html CHANGED
@@ -178,7 +178,7 @@
178
  <div class="row"><footer class="span12">
179
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
180
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
181
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
182
  </div>
183
  </body>
184
  </html>
178
  <div class="row"><footer class="span12">
179
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
180
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
181
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
182
  </div>
183
  </body>
184
  </html>
phpDocs/classes/MLAUninstall.html ADDED
@@ -0,0 +1,111 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html><html xmlns:date="http://exslt.org/dates-and-times" lang="en">
2
+ <head>
3
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
4
+ <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;">
5
+ <meta charset="utf-8">
6
+ <title>Media Library Assistant » \MLAUninstall</title>
7
+ <meta name="author" content="Mike van Riel">
8
+ <meta name="description" content="">
9
+ <link href="../css/template.css" rel="stylesheet" media="all">
10
+ <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script><script src="../js/jquery-ui-1.8.2.custom.min.js" type="text/javascript"></script><script src="../js/jquery.mousewheel.min.js" type="text/javascript"></script><script src="../js/bootstrap.js" type="text/javascript"></script><script src="../js/template.js" type="text/javascript"></script><script src="../js/prettify/prettify.min.js" type="text/javascript"></script><link rel="shortcut icon" href="../img/favicon.ico">
11
+ <link rel="apple-touch-icon" href="../img/apple-touch-icon.png">
12
+ <link rel="apple-touch-icon" sizes="72x72" href="../img/apple-touch-icon-72x72.png">
13
+ <link rel="apple-touch-icon" sizes="114x114" href="../img/apple-touch-icon-114x114.png">
14
+ </head>
15
+ <body>
16
+ <div class="navbar navbar-fixed-top">
17
+ <div class="navbar-inner"><div class="container">
18
+ <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"><span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span></a><a class="brand" href="../index.html">Media Library Assistant</a><div class="nav-collapse"><ul class="nav">
19
+ <li class="dropdown">
20
+ <a href="#api" class="dropdown-toggle" data-toggle="dropdown">
21
+ API Documentation <b class="caret"></b></a><ul class="dropdown-menu">
22
+ <li><a>Packages</a></li>
23
+ <li><a href="../packages/Media%20Library%20Assistant.html"><i class="icon-folder-open"></i> Media Library Assistant</a></li>
24
+ </ul>
25
+ </li>
26
+ <li class="dropdown" id="charts-menu">
27
+ <a href="#charts" class="dropdown-toggle" data-toggle="dropdown">
28
+ Charts <b class="caret"></b></a><ul class="dropdown-menu"><li><a href="../graph_class.html"><i class="icon-list-alt"></i> Class hierarchy diagram</a></li></ul>
29
+ </li>
30
+ <li class="dropdown" id="reports-menu">
31
+ <a href="#reports" class="dropdown-toggle" data-toggle="dropdown">
32
+ Reports <b class="caret"></b></a><ul class="dropdown-menu">
33
+ <li><a href="../errors.html"><i class="icon-remove-sign"></i> Errors 
34
+ <span class="label label-info">0</span></a></li>
35
+ <li><a href="../markers.html"><i class="icon-map-marker"></i> Markers 
36
+ <ul><li>todo 
37
+ <span class="label label-info">3</span>
38
+ </li></ul></a></li>
39
+ <li><a href="../deprecated.html"><i class="icon-stop"></i> Deprecated elements 
40
+ <span class="label label-info">0</span></a></li>
41
+ </ul>
42
+ </li>
43
+ </ul></div>
44
+ </div></div>
45
+ <div class="go_to_top"><a href="#___" style="color: inherit">Back to top  <i class="icon-upload icon-white"></i></a></div>
46
+ </div>
47
+ <div id="___" class="container">
48
+ <noscript><div class="alert alert-warning">
49
+ Javascript is disabled; several features are only available
50
+ if Javascript is enabled.
51
+ </div></noscript>
52
+ <div class="row">
53
+ <div class="span4">
54
+ <span class="btn-group visibility" data-toggle="buttons-checkbox"><button class="btn public active" title="Show public elements">Public</button><button class="btn protected" title="Show protected elements">Protected</button><button class="btn private" title="Show private elements">Private</button><button class="btn inherited active" title="Show inherited elements">Inherited</button></span><div class="btn-group view pull-right" data-toggle="buttons-radio">
55
+ <button class="btn details" title="Show descriptions and method names"><i class="icon-list"></i></button><button class="btn simple" title="Show only method names"><i class="icon-align-justify"></i></button>
56
+ </div>
57
+ <ul class="side-nav nav nav-list">
58
+ <li class="nav-header">
59
+ <i class="icon-custom icon-method"></i> Methods</li>
60
+ <li class="method public "><a href="#process_uninstall" title="process_uninstall :: Delete option settings and/or backup directory, if the appropriate MLA General options are set"><span class="description">Delete option settings and/or backup directory, if the appropriate MLA General options are set</span><pre>process_uninstall()</pre></a></li>
61
+ </ul>
62
+ </div>
63
+ <div class="span8">
64
+ <a name="%5CMLAUninstall" id="\MLAUninstall"></a><ul class="breadcrumb">
65
+ <li>
66
+ <a href="../index.html"><i class="icon-custom icon-class"></i></a><span class="divider">\</span>
67
+ </li>
68
+ <li><a href="../namespaces/global.html">global</a></li>
69
+ <li class="active">
70
+ <span class="divider">\</span><a href="../classes/MLAUninstall.html">MLAUninstall</a>
71
+ </li>
72
+ </ul>
73
+ <div href="../classes/MLAUninstall.html" class="element class">
74
+ <p class="short_description">Class MLA (Media Library Assistant) Uninstall deletes the data associated with the MLA plugin</p>
75
+ <div class="details">
76
+ <p class="long_description"></p>
77
+ <table class="table table-bordered">
78
+ <tr>
79
+ <th>package</th>
80
+ <td><a href="../packages/Media%20Library%20Assistant.html">Media Library Assistant</a></td>
81
+ </tr>
82
+ <tr>
83
+ <th>since</th>
84
+ <td>2.25</td>
85
+ </tr>
86
+ </table>
87
+ <h3>
88
+ <i class="icon-custom icon-method"></i> Methods</h3>
89
+ <a name="process_uninstall" id="process_uninstall"></a><div class="element clickable method public process_uninstall" data-toggle="collapse" data-target=".process_uninstall .collapse">
90
+ <h2>Delete option settings and/or backup directory, if the appropriate MLA General options are set</h2>
91
+ <pre>process_uninstall() </pre>
92
+ <div class="labels"></div>
93
+ <div class="row collapse"><div class="detail-description">
94
+ <p class="long_description"></p>
95
+ <table class="table table-bordered"><tr>
96
+ <th>since</th>
97
+ <td>2.25</td>
98
+ </tr></table>
99
+ </div></div>
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ </div>
105
+ <div class="row"><footer class="span12">
106
+ Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
107
+ Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
108
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
109
+ </div>
110
+ </body>
111
+ </html>
phpDocs/classes/MLA_Ajax.html CHANGED
@@ -164,7 +164,7 @@ Adds filters for post type and pagination.</p></p>
164
  <div class="row"><footer class="span12">
165
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
166
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
167
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
168
  </div>
169
  </body>
170
  </html>
164
  <div class="row"><footer class="span12">
165
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
166
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
167
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
168
  </div>
169
  </body>
170
  </html>
phpDocs/classes/MLA_Checklist_Walker.html CHANGED
@@ -163,7 +163,7 @@ Class Walker is defined in /wp-includes/class-wp-walker.php.</p></p>
163
  <div class="row"><footer class="span12">
164
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
165
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
166
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
167
  </div>
168
  </body>
169
  </html>
163
  <div class="row"><footer class="span12">
164
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
165
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
166
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
167
  </div>
168
  </body>
169
  </html>
phpDocs/classes/MLA_List_Table.html CHANGED
@@ -1276,7 +1276,7 @@ visible column and add div tags.</p></p>
1276
  <div class="row"><footer class="span12">
1277
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1278
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1279
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
1280
  </div>
1281
  </body>
1282
  </html>
1276
  <div class="row"><footer class="span12">
1277
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1278
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1279
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
1280
  </div>
1281
  </body>
1282
  </html>
phpDocs/classes/MLA_Polylang.html CHANGED
@@ -137,6 +137,7 @@ admin page areas for setting/updating them</span><pre>$mla_language_option_defin
137
  <li class="property private "><a href="#%24duplicate_attachments" title="$duplicate_attachments :: Duplicates created during media upload"><span class="description">Duplicates created during media upload</span><pre>$duplicate_attachments</pre></a></li>
138
  <li class="property private "><a href="#%24existing_terms" title="$existing_terms :: Taxonomy terms for the current item translation in the database"><span class="description">Taxonomy terms for the current item translation in the database</span><pre>$existing_terms</pre></a></li>
139
  <li class="property private "><a href="#%24list_table_parameters" title="$list_table_parameters :: Data selection parameters for custom views"><span class="description">Data selection parameters for custom views</span><pre>$list_table_parameters</pre></a></li>
 
140
  <li class="property private "><a href="#%24relevant_terms" title="$relevant_terms :: Taxonomy terms and translations"><span class="description">Taxonomy terms and translations</span><pre>$relevant_terms</pre></a></li>
141
  <li class="property private "><a href="#%24tax_input" title="$tax_input :: Replacement tax_input values in all languages"><span class="description">Replacement tax_input values in all languages</span><pre>$tax_input</pre></a></li>
142
  <li class="nav-header">
@@ -1434,6 +1435,18 @@ because localization calls cannot be placed in the "public static" array definit
1434
  </tr></table>
1435
  </div></div>
1436
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
1437
  <a name="%24relevant_terms" id="$relevant_terms"> </a><div class="element clickable property private $relevant_terms" data-toggle="collapse" data-target=".$relevant_terms .collapse">
1438
  <h2>Taxonomy terms and translations</h2>
1439
  <pre>$relevant_terms : array</pre>
@@ -1480,7 +1493,7 @@ Polylang uses term_id as the "element_id".</p></p>
1480
  <div class="row"><footer class="span12">
1481
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1482
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1483
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
1484
  </div>
1485
  </body>
1486
  </html>
137
  <li class="property private "><a href="#%24duplicate_attachments" title="$duplicate_attachments :: Duplicates created during media upload"><span class="description">Duplicates created during media upload</span><pre>$duplicate_attachments</pre></a></li>
138
  <li class="property private "><a href="#%24existing_terms" title="$existing_terms :: Taxonomy terms for the current item translation in the database"><span class="description">Taxonomy terms for the current item translation in the database</span><pre>$existing_terms</pre></a></li>
139
  <li class="property private "><a href="#%24list_table_parameters" title="$list_table_parameters :: Data selection parameters for custom views"><span class="description">Data selection parameters for custom views</span><pre>$list_table_parameters</pre></a></li>
140
+ <li class="property private "><a href="#%24polylang_1dot8_plus" title="$polylang_1dot8_plus :: Polylang version conditional to avoid deprecated functions in v1.8+"><span class="description">Polylang version conditional to avoid deprecated functions in v1.8+</span><pre>$polylang_1dot8_plus</pre></a></li>
141
  <li class="property private "><a href="#%24relevant_terms" title="$relevant_terms :: Taxonomy terms and translations"><span class="description">Taxonomy terms and translations</span><pre>$relevant_terms</pre></a></li>
142
  <li class="property private "><a href="#%24tax_input" title="$tax_input :: Replacement tax_input values in all languages"><span class="description">Replacement tax_input values in all languages</span><pre>$tax_input</pre></a></li>
143
  <li class="nav-header">
1435
  </tr></table>
1436
  </div></div>
1437
  </div>
1438
+ <a name="%24polylang_1dot8_plus" id="$polylang_1dot8_plus"> </a><div class="element clickable property private $polylang_1dot8_plus" data-toggle="collapse" data-target=".$polylang_1dot8_plus .collapse">
1439
+ <h2>Polylang version conditional to avoid deprecated functions in v1.8+</h2>
1440
+ <pre>$polylang_1dot8_plus : boolean</pre>
1441
+ <div class="labels"></div>
1442
+ <div class="row collapse"><div class="detail-description">
1443
+ <p class="long_description"></p>
1444
+ <table class="table table-bordered"><tr>
1445
+ <th>since</th>
1446
+ <td>2.30</td>
1447
+ </tr></table>
1448
+ </div></div>
1449
+ </div>
1450
  <a name="%24relevant_terms" id="$relevant_terms"> </a><div class="element clickable property private $relevant_terms" data-toggle="collapse" data-target=".$relevant_terms .collapse">
1451
  <h2>Taxonomy terms and translations</h2>
1452
  <pre>$relevant_terms : array</pre>
1493
  <div class="row"><footer class="span12">
1494
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1495
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1496
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
1497
  </div>
1498
  </body>
1499
  </html>
phpDocs/classes/MLA_Thumbnail.html CHANGED
@@ -335,7 +335,7 @@ markup used for the Quick and Bulk Edit forms.</td>
335
  <div class="row"><footer class="span12">
336
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
337
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
338
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
339
  </div>
340
  </body>
341
  </html>
335
  <div class="row"><footer class="span12">
336
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
337
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
338
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
339
  </div>
340
  </body>
341
  </html>
phpDocs/classes/MLA_Upload_List_Table.html CHANGED
@@ -819,7 +819,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
819
  <div class="row"><footer class="span12">
820
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
821
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
822
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
823
  </div>
824
  </body>
825
  </html>
819
  <div class="row"><footer class="span12">
820
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
821
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
822
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
823
  </div>
824
  </body>
825
  </html>
phpDocs/classes/MLA_Upload_Optional_List_Table.html CHANGED
@@ -554,7 +554,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
554
  <div class="row"><footer class="span12">
555
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
556
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
557
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
558
  </div>
559
  </body>
560
  </html>
554
  <div class="row"><footer class="span12">
555
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
556
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
557
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
558
  </div>
559
  </body>
560
  </html>
phpDocs/classes/MLA_View_List_Table.html CHANGED
@@ -703,7 +703,7 @@ sorted by that column. This is computed each time the table is displayed.</p></p
703
  <div class="row"><footer class="span12">
704
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
705
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
706
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
707
  </div>
708
  </body>
709
  </html>
703
  <div class="row"><footer class="span12">
704
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
705
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
706
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
707
  </div>
708
  </body>
709
  </html>
phpDocs/classes/MLA_WPML.html CHANGED
@@ -1109,7 +1109,7 @@ Bulk Edit on Upload area</h2>
1109
  <div class="row"><footer class="span12">
1110
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1111
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1112
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
1113
  </div>
1114
  </body>
1115
  </html>
1109
  <div class="row"><footer class="span12">
1110
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1111
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1112
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
1113
  </div>
1114
  </body>
1115
  </html>
phpDocs/classes/MLA_WPML_List_Table.html CHANGED
@@ -1626,7 +1626,7 @@ visible column and add div tags.</p></p>
1626
  <div class="row"><footer class="span12">
1627
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1628
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1629
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
1630
  </div>
1631
  </body>
1632
  </html>
1626
  <div class="row"><footer class="span12">
1627
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
1628
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
1629
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
1630
  </div>
1631
  </body>
1632
  </html>
phpDocs/classes/MLA_WPML_Table.html CHANGED
@@ -410,7 +410,7 @@ The count is made language-specific by WPML filters when the current_language is
410
  <div class="row"><footer class="span12">
411
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
412
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
413
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
414
  </div>
415
  </body>
416
  </html>
410
  <div class="row"><footer class="span12">
411
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
412
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
413
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
414
  </div>
415
  </body>
416
  </html>
phpDocs/classes/MNA_Pad_Counts_Walker.html CHANGED
@@ -139,7 +139,7 @@ Class Walker_Category is defined in /wp-includes/category-template.php</p></p>
139
  <div class="row"><footer class="span12">
140
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
141
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
142
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
143
  </div>
144
  </body>
145
  </html>
139
  <div class="row"><footer class="span12">
140
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
141
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
142
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
143
  </div>
144
  </body>
145
  </html>
phpDocs/deprecated.html CHANGED
@@ -67,7 +67,7 @@
67
  <div class="row"><footer class="span12">
68
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
69
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
70
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
71
  </div>
72
  </body>
73
  </html>
67
  <div class="row"><footer class="span12">
68
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
69
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
70
+ generated on 2016-06-05T17:28:00-07:00.<br></footer></div>
71
  </div>
72
  </body>
73
  </html>
phpDocs/errors.html CHANGED
@@ -118,12 +118,13 @@
118
  <div class="package-contents"></div>
119
  <div class="package-contents"></div>
120
  <div class="package-contents"></div>
 
121
  </div>
122
  </div>
123
  <div class="row"><footer class="span12">
124
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
125
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
126
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
127
  </div>
128
  </body>
129
  </html>
118
  <div class="package-contents"></div>
119
  <div class="package-contents"></div>
120
  <div class="package-contents"></div>
121
+ <div class="package-contents"></div>
122
  </div>
123
  </div>
124
  <div class="row"><footer class="span12">
125
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
126
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
127
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
128
  </div>
129
  </body>
130
  </html>
phpDocs/graph_class.html CHANGED
@@ -64,7 +64,7 @@
64
  </script><div class="row"><footer class="span12">
65
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
66
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
67
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
64
  </script><div class="row"><footer class="span12">
65
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
66
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
67
+ generated on 2016-06-05T17:28:00-07:00.<br></footer></div>
68
  </div>
69
  </body>
70
  </html>
phpDocs/index.html CHANGED
@@ -86,7 +86,7 @@
86
  <div class="row"><footer class="span12">
87
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
88
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
89
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
90
  </div>
91
  </body>
92
  </html>
86
  <div class="row"><footer class="span12">
87
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
88
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
89
+ generated on 2016-06-05T17:27:58-07:00.<br></footer></div>
90
  </div>
91
  </body>
92
  </html>
phpDocs/markers.html CHANGED
@@ -98,12 +98,12 @@
98
  </tr>
99
  <tr>
100
  <td>todo</td>
101
- <td>3158</td>
102
- <td>Make this conditional on $arguments['link']</td>
103
  </tr>
104
  <tr>
105
  <td>todo</td>
106
- <td>5302</td>
107
  <td>Make this conditional on $arguments['link']</td>
108
  </tr>
109
  </table></div>
@@ -114,7 +114,7 @@
114
  <div class="row"><footer class="span12">
115
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
116
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
117
- generated on 2016-04-08T17:25:40-07:00.<br></footer></div>
118
  </div>
119
  </body>
120
  </html>
98
  </tr>
99
  <tr>
100
  <td>todo</td>
101
+ <td>2782</td>
102
+ <td>Calculate 'term-list-popular'</td>
103
  </tr>
104
  <tr>
105
  <td>todo</td>
106
+ <td>5497</td>
107
  <td>Make this conditional on $arguments['link']</td>
108
  </tr>
109
  </table></div>
114
  <div class="row"><footer class="span12">
115
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
116
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
117
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
118
  </div>
119
  </body>
120
  </html>
phpDocs/namespaces/global.html CHANGED
@@ -421,6 +421,14 @@ to MLA users and loads the support class if the shortcodes are executed.</p>
421
  <div class="details collapse"></div>
422
  <a href="../classes/MLAShortcodes.html" class="more">« More »</a>
423
  </div>
 
 
 
 
 
 
 
 
424
  <a name="MLATest" id="MLATest"></a><div class="element ajax clickable class" href="../classes/MLATest.html">
425
  <h1>MLATest<a href="../classes/MLATest.html">¶</a>
426
  </h1>
@@ -594,7 +602,7 @@ family of plugins, including WPML Media, for an MLA_List_Table object.</p>
594
  <div class="row"><footer class="span12">
595
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
596
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
597
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
598
  </div>
599
  </body>
600
  </html>
421
  <div class="details collapse"></div>
422
  <a href="../classes/MLAShortcodes.html" class="more">« More »</a>
423
  </div>
424
+ <a name="MLATemplate_Support" id="MLATemplate_Support"></a><div class="element ajax clickable class" href="../classes/MLATemplate_Support.html">
425
+ <h1>MLATemplate_Support<a href="../classes/MLATemplate_Support.html">¶</a>
426
+ </h1>
427
+ <p class="short_description">Class MLA (Media Library Assistant) Custom Style/Markup Template Support provides functions that
428
+ define, import and export custom style and markup templates for MLA shortcodes.</p>
429
+ <div class="details collapse"></div>
430
+ <a href="../classes/MLATemplate_Support.html" class="more">« More »</a>
431
+ </div>
432
  <a name="MLATest" id="MLATest"></a><div class="element ajax clickable class" href="../classes/MLATest.html">
433
  <h1>MLATest<a href="../classes/MLATest.html">¶</a>
434
  </h1>
602
  <div class="row"><footer class="span12">
603
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
604
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
605
+ generated on 2016-06-05T17:27:58-07:00.<br></footer></div>
606
  </div>
607
  </body>
608
  </html>
phpDocs/packages/Media Library Assistant.MLA.Child.Theme.html CHANGED
@@ -268,7 +268,7 @@ display an "accordian-style" list.</p></p>
268
  <div class="row"><footer class="span12">
269
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
270
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
271
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
272
  </div>
273
  </body>
274
  </html>
268
  <div class="row"><footer class="span12">
269
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
270
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
271
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
272
  </div>
273
  </body>
274
  </html>
phpDocs/packages/Media Library Assistant.MLA.Child.html CHANGED
@@ -265,7 +265,7 @@ display an "accordian-style" list.</p></p>
265
  <div class="row"><footer class="span12">
266
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
267
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
268
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
269
  </div>
270
  </body>
271
  </html>
265
  <div class="row"><footer class="span12">
266
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
267
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
268
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
269
  </div>
270
  </body>
271
  </html>
phpDocs/packages/Media Library Assistant.MLA.html CHANGED
@@ -276,7 +276,7 @@ display an "accordian-style" list.</p></p>
276
  <div class="row"><footer class="span12">
277
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
278
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
279
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
280
  </div>
281
  </body>
282
  </html>
276
  <div class="row"><footer class="span12">
277
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
278
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
279
+ generated on 2016-06-05T17:27:59-07:00.<br></footer></div>
280
  </div>
281
  </body>
282
  </html>
phpDocs/packages/Media Library Assistant.html CHANGED
@@ -110,6 +110,8 @@ Polylang Multilingual plugin">MLA_Polylang</a></li>
110
  implement the [mla_gallery] and [mla_tag_cloud] shortcodes.">MLAShortcode_Support</a></li>
111
  <li><a href="#MLAShortcodes" title="Class MLA (Media Library Assistant) Shortcodes defines the shortcodes available
112
  to MLA users and loads the support class if the shortcodes are executed.">MLAShortcodes</a></li>
 
 
113
  <li><a href="#MLA_Thumbnail" title="Class MLA (Media Library Assistant) Thumbnails provides support for
114
  Featured IMage generation">MLA_Thumbnail</a></li>
115
  <li><a href="#MLA_Upload_List_Table" title='Class MLA (Media Library Assistant) Upload List Table implements the "Upload" admin settings tab'>MLA_Upload_List_Table</a></li>
@@ -324,6 +326,14 @@ to MLA users and loads the support class if the shortcodes are executed.</p>
324
  <div class="details collapse"></div>
325
  <a href="../classes/MLAShortcodes.html" class="more">« More »</a>
326
  </div>
 
 
 
 
 
 
 
 
327
  <a name="MLATest" id="MLATest"></a><div class="element ajax clickable class" href="../classes/MLATest.html">
328
  <h1>MLATest<a href="../classes/MLATest.html">¶</a>
329
  </h1>
@@ -701,7 +711,7 @@ display an "accordian-style" list.</p></p>
701
  <div class="row"><footer class="span12">
702
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
703
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
704
- generated on 2016-04-08T17:25:39-07:00.<br></footer></div>
705
  </div>
706
  </body>
707
  </html>
110
  implement the [mla_gallery] and [mla_tag_cloud] shortcodes.">MLAShortcode_Support</a></li>
111
  <li><a href="#MLAShortcodes" title="Class MLA (Media Library Assistant) Shortcodes defines the shortcodes available
112
  to MLA users and loads the support class if the shortcodes are executed.">MLAShortcodes</a></li>
113
+ <li><a href="#MLATemplate_Support" title="Class MLA (Media Library Assistant) Custom Style/Markup Template Support provides functions that
114
+ define, import and export custom style and markup templates for MLA shortcodes.">MLATemplate_Support</a></li>
115
  <li><a href="#MLA_Thumbnail" title="Class MLA (Media Library Assistant) Thumbnails provides support for
116
  Featured IMage generation">MLA_Thumbnail</a></li>
117
  <li><a href="#MLA_Upload_List_Table" title='Class MLA (Media Library Assistant) Upload List Table implements the "Upload" admin settings tab'>MLA_Upload_List_Table</a></li>
326
  <div class="details collapse"></div>
327
  <a href="../classes/MLAShortcodes.html" class="more">« More »</a>
328
  </div>
329
+ <a name="MLATemplate_Support" id="MLATemplate_Support"></a><div class="element ajax clickable class" href="../classes/MLATemplate_Support.html">
330
+ <h1>MLATemplate_Support<a href="../classes/MLATemplate_Support.html">¶</a>
331
+ </h1>
332
+ <p class="short_description">Class MLA (Media Library Assistant) Custom Style/Markup Template Support provides functions that
333
+ define, import and export custom style and markup templates for MLA shortcodes.</p>
334
+ <div class="details collapse"></div>
335
+ <a href="../classes/MLATemplate_Support.html" class="more">« More »</a>
336
+ </div>
337
  <a name="MLATest" id="MLATest"></a><div class="element ajax clickable class" href="../classes/MLATest.html">
338
  <h1>MLATest<a href="../classes/MLATest.html">¶</a>
339
  </h1>
711
  <div class="row"><footer class="span12">
712
  Template is built using <a href="http://twitter.github.com/bootstrap/">Twitter Bootstrap 2</a> and icons provided by <a href="http://glyphicons.com/">Glyphicons</a>.<br>
713
  Documentation is powered by <a href="http://www.phpdoc.org/">phpDocumentor 2.0.0a8</a> and<br>
714
+ generated on 2016-06-05T17:27:58-07:00.<br></footer></div>
715
  </div>
716
  </body>
717
  </html>
phpDocs/structure.xml CHANGED
@@ -1479,25 +1479,34 @@ reset => reset function for 'custom' options; returns nothing. Usage:
1479
  </method>
1480
  </class>
1481
  </file>
1482
- <file path="includes\class-mla-core.php" hash="9925259045a4fe8ac8b2a0691eac5125" package="Media Library Assistant">
1483
  <docblock line="2">
1484
  <description><![CDATA[Media Library Assistant Core objects]]></description>
1485
  <long-description><![CDATA[]]></long-description>
1486
  <tag line="2" name="package" description="Media Library Assistant"/>
1487
  <tag line="2" name="since" description="2.20"/>
1488
  </docblock>
1489
- <include line="1349" type="Require Once" package="Media Library Assistant">
1490
  <name/>
1491
  </include>
1492
- <include line="1383" type="Require Once" package="Media Library Assistant">
1493
  <name/>
1494
  </include>
1495
- <include line="1450" type="Require Once" package="Media Library Assistant">
 
 
 
1496
  <name/>
1497
  </include>
1498
  <include line="1456" type="Require Once" package="Media Library Assistant">
1499
  <name/>
1500
  </include>
 
 
 
 
 
 
1501
  <class final="false" abstract="false" namespace="global" line="16" package="Media Library Assistant">
1502
  <extends/>
1503
  <name>MLACore</name>
@@ -1508,938 +1517,998 @@ reset => reset function for 'custom' options; returns nothing. Usage:
1508
  <tag line="10" name="package" description="Media Library Assistant"/>
1509
  <tag line="10" name="since" description="2.20"/>
1510
  </docblock>
1511
- <constant namespace="global" line="42" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1512
  <name>MLA_DEBUG_CATEGORY_ANY</name>
1513
  <full_name>MLA_DEBUG_CATEGORY_ANY</full_name>
1514
  <value><![CDATA[1]]></value>
1515
- <docblock line="35">
1516
  <description><![CDATA[Constant to log "any" debug activity]]></description>
1517
  <long-description><![CDATA[]]></long-description>
1518
- <tag line="35" name="since" description="2.25"/>
1519
- <tag line="35" name="var" description="" type="integer">
1520
  <type by_reference="false">integer</type>
1521
  </tag>
1522
  </docblock>
1523
  </constant>
1524
- <constant namespace="global" line="51" package="Media Library Assistant">
1525
  <name>MLA_DEBUG_CATEGORY_AJAX</name>
1526
  <full_name>MLA_DEBUG_CATEGORY_AJAX</full_name>
1527
  <value><![CDATA[2]]></value>
1528
- <docblock line="44">
1529
  <description><![CDATA[Constant to log Ajax debug activity]]></description>
1530
  <long-description><![CDATA[]]></long-description>
1531
- <tag line="44" name="since" description="2.13"/>
1532
- <tag line="44" name="var" description="" type="integer">
1533
  <type by_reference="false">integer</type>
1534
  </tag>
1535
  </docblock>
1536
  </constant>
1537
- <constant namespace="global" line="60" package="Media Library Assistant">
1538
  <name>MLA_DEBUG_CATEGORY_LANGUAGE</name>
1539
  <full_name>MLA_DEBUG_CATEGORY_LANGUAGE</full_name>
1540
  <value><![CDATA[4]]></value>
1541
- <docblock line="53">
1542
  <description><![CDATA[Constant to log WPML/Polylang action/filter activity]]></description>
1543
  <long-description><![CDATA[]]></long-description>
1544
- <tag line="53" name="since" description="2.15"/>
1545
- <tag line="53" name="var" description="" type="integer">
1546
  <type by_reference="false">integer</type>
1547
  </tag>
1548
  </docblock>
1549
  </constant>
1550
- <constant namespace="global" line="69" package="Media Library Assistant">
1551
  <name>MLA_DEBUG_CATEGORY_THUMBNAIL</name>
1552
  <full_name>MLA_DEBUG_CATEGORY_THUMBNAIL</full_name>
1553
  <value><![CDATA[8]]></value>
1554
- <docblock line="62">
1555
  <description><![CDATA[Constant to log Ghostscript/Imagick activity]]></description>
1556
  <long-description><![CDATA[]]></long-description>
1557
- <tag line="62" name="since" description="2.23"/>
1558
- <tag line="62" name="var" description="" type="integer">
1559
  <type by_reference="false">integer</type>
1560
  </tag>
1561
  </docblock>
1562
  </constant>
1563
- <constant namespace="global" line="78" package="Media Library Assistant">
1564
  <name>ADMIN_PAGE_SLUG</name>
1565
  <full_name>ADMIN_PAGE_SLUG</full_name>
1566
  <value><![CDATA['mla-menu']]></value>
1567
- <docblock line="71">
1568
  <description><![CDATA[Slug for adding plugin submenu]]></description>
1569
  <long-description><![CDATA[]]></long-description>
1570
- <tag line="71" name="since" description="0.1"/>
1571
- <tag line="71" name="var" description="" type="string">
1572
  <type by_reference="false">string</type>
1573
  </tag>
1574
  </docblock>
1575
  </constant>
1576
- <constant namespace="global" line="87" package="Media Library Assistant">
1577
  <name>MLA_ADMIN_SINGLE_DELETE</name>
1578
  <full_name>MLA_ADMIN_SINGLE_DELETE</full_name>
1579
  <value><![CDATA['single_item_delete']]></value>
1580
- <docblock line="80">
1581
  <description><![CDATA[mla_admin_action value for permanently deleting a single item]]></description>
1582
  <long-description><![CDATA[]]></long-description>
1583
- <tag line="80" name="since" description="0.1"/>
1584
- <tag line="80" name="var" description="" type="string">
1585
  <type by_reference="false">string</type>
1586
  </tag>
1587
  </docblock>
1588
  </constant>
1589
- <constant namespace="global" line="96" package="Media Library Assistant">
1590
  <name>MLA_ADMIN_SINGLE_TRASH</name>
1591
  <full_name>MLA_ADMIN_SINGLE_TRASH</full_name>
1592
  <value><![CDATA['single_item_trash']]></value>
1593
- <docblock line="89">
1594
  <description><![CDATA[mla_admin_action value for moving a single item to the trash]]></description>
1595
  <long-description><![CDATA[]]></long-description>
1596
- <tag line="89" name="since" description="0.1"/>
1597
- <tag line="89" name="var" description="" type="string">
1598
  <type by_reference="false">string</type>
1599
  </tag>
1600
  </docblock>
1601
  </constant>
1602
- <constant namespace="global" line="105" package="Media Library Assistant">
1603
  <name>MLA_ADMIN_SINGLE_RESTORE</name>
1604
  <full_name>MLA_ADMIN_SINGLE_RESTORE</full_name>
1605
  <value><![CDATA['single_item_restore']]></value>
1606
- <docblock line="98">
1607
  <description><![CDATA[mla_admin_action value for restoring a single item from the trash]]></description>
1608
  <long-description><![CDATA[]]></long-description>
1609
- <tag line="98" name="since" description="0.1"/>
1610
- <tag line="98" name="var" description="" type="string">
1611
  <type by_reference="false">string</type>
1612
  </tag>
1613
  </docblock>
1614
  </constant>
1615
- <constant namespace="global" line="114" package="Media Library Assistant">
1616
  <name>MLA_ADMIN_NONCE_ACTION</name>
1617
  <full_name>MLA_ADMIN_NONCE_ACTION</full_name>
1618
  <value><![CDATA['mla_admin_nonce_action']]></value>
1619
- <docblock line="107">
1620
  <description><![CDATA[Action name; gives a context for the nonce]]></description>
1621
  <long-description><![CDATA[]]></long-description>
1622
- <tag line="107" name="since" description="0.1"/>
1623
- <tag line="107" name="var" description="" type="string">
1624
  <type by_reference="false">string</type>
1625
  </tag>
1626
  </docblock>
1627
  </constant>
1628
- <constant namespace="global" line="123" package="Media Library Assistant">
1629
  <name>MLA_ADMIN_NONCE_NAME</name>
1630
  <full_name>MLA_ADMIN_NONCE_NAME</full_name>
1631
  <value><![CDATA['mla_admin_nonce']]></value>
1632
- <docblock line="116">
1633
  <description><![CDATA[Nonce name; uniquely identifies the nonce]]></description>
1634
  <long-description><![CDATA[]]></long-description>
1635
- <tag line="116" name="since" description="2.13"/>
1636
- <tag line="116" name="var" description="" type="string">
1637
  <type by_reference="false">string</type>
1638
  </tag>
1639
  </docblock>
1640
  </constant>
1641
- <constant namespace="global" line="132" package="Media Library Assistant">
1642
  <name>JAVASCRIPT_INLINE_EDIT_SLUG</name>
1643
  <full_name>JAVASCRIPT_INLINE_EDIT_SLUG</full_name>
1644
  <value><![CDATA['mla-inline-edit-scripts']]></value>
1645
- <docblock line="125">
1646
  <description><![CDATA[Slug for localizing and enqueueing JavaScript - MLA List Table]]></description>
1647
  <long-description><![CDATA[]]></long-description>
1648
- <tag line="125" name="since" description="0.20"/>
1649
- <tag line="125" name="var" description="" type="string">
1650
  <type by_reference="false">string</type>
1651
  </tag>
1652
  </docblock>
1653
  </constant>
1654
- <constant namespace="global" line="141" package="Media Library Assistant">
1655
  <name>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</name>
1656
  <full_name>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</full_name>
1657
  <value><![CDATA['mla-query-attachments']]></value>
1658
- <docblock line="134">
1659
  <description><![CDATA[Slug for the "query attachments" action - Add Media and related dialogs]]></description>
1660
  <long-description><![CDATA[]]></long-description>
1661
- <tag line="134" name="since" description="1.80"/>
1662
- <tag line="134" name="var" description="" type="string">
1663
  <type by_reference="false">string</type>
1664
  </tag>
1665
  </docblock>
1666
  </constant>
1667
- <constant namespace="global" line="150" package="Media Library Assistant">
1668
  <name>JAVASCRIPT_FILL_COMPAT_ACTION</name>
1669
  <full_name>JAVASCRIPT_FILL_COMPAT_ACTION</full_name>
1670
  <value><![CDATA['mla-fill-compat-fields']]></value>
1671
- <docblock line="143">
1672
  <description><![CDATA[Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs]]></description>
1673
  <long-description><![CDATA[]]></long-description>
1674
- <tag line="143" name="since" description="1.80"/>
1675
- <tag line="143" name="var" description="" type="string">
1676
  <type by_reference="false">string</type>
1677
  </tag>
1678
  </docblock>
1679
  </constant>
1680
- <constant namespace="global" line="159" package="Media Library Assistant">
1681
  <name>JAVASCRIPT_UPDATE_COMPAT_ACTION</name>
1682
  <full_name>JAVASCRIPT_UPDATE_COMPAT_ACTION</full_name>
1683
  <value><![CDATA['mla-update-compat-fields']]></value>
1684
- <docblock line="152">
1685
  <description><![CDATA[Slug for the "update compat-attachment-fields" action - Add Media and related dialogs]]></description>
1686
  <long-description><![CDATA[]]></long-description>
1687
- <tag line="152" name="since" description="1.80"/>
1688
- <tag line="152" name="var" description="" type="string">
1689
  <type by_reference="false">string</type>
1690
  </tag>
1691
  </docblock>
1692
  </constant>
1693
- <property final="false" static="true" visibility="public" line="24" namespace="global" package="Media Library Assistant">
1694
  <name>$original_php_log</name>
1695
  <default><![CDATA['?']]></default>
1696
- <docblock line="17">
1697
  <description><![CDATA[Original PHP error_log path and file]]></description>
1698
  <long-description><![CDATA[]]></long-description>
1699
- <tag line="17" name="since" description="2.20"/>
1700
- <tag line="17" name="var" description="" type="string">
1701
  <type by_reference="false">string</type>
1702
  </tag>
1703
  </docblock>
1704
  </property>
1705
- <property final="false" static="true" visibility="public" line="33" namespace="global" package="Media Library Assistant">
1706
  <name>$original_php_reporting</name>
1707
  <default><![CDATA['?']]></default>
1708
- <docblock line="26">
1709
  <description><![CDATA[Original PHP error_reporting value]]></description>
1710
  <long-description><![CDATA[]]></long-description>
1711
- <tag line="26" name="since" description="2.20"/>
1712
- <tag line="26" name="var" description="" type="string">
1713
  <type by_reference="false">string</type>
1714
  </tag>
1715
  </docblock>
1716
  </property>
1717
- <property final="false" static="true" visibility="public" line="170" namespace="global" package="Media Library Assistant">
1718
  <name>$process_featured_in</name>
1719
  <default><![CDATA[true]]></default>
1720
- <docblock line="161">
1721
  <description><![CDATA[Option setting for "Featured in" reporting]]></description>
1722
  <long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
1723
- <tag line="161" name="since" description="1.00"/>
1724
- <tag line="161" name="var" description="" type="boolean">
1725
  <type by_reference="false">boolean</type>
1726
  </tag>
1727
  </docblock>
1728
  </property>
1729
- <property final="false" static="true" visibility="public" line="181" namespace="global" package="Media Library Assistant">
1730
  <name>$process_inserted_in</name>
1731
  <default><![CDATA[true]]></default>
1732
- <docblock line="172">
1733
  <description><![CDATA[Option setting for "Inserted in" reporting]]></description>
1734
  <long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
1735
- <tag line="172" name="since" description="1.00"/>
1736
- <tag line="172" name="var" description="" type="boolean">
1737
  <type by_reference="false">boolean</type>
1738
  </tag>
1739
  </docblock>
1740
  </property>
1741
- <property final="false" static="true" visibility="public" line="192" namespace="global" package="Media Library Assistant">
1742
  <name>$process_gallery_in</name>
1743
  <default><![CDATA[true]]></default>
1744
- <docblock line="183">
1745
  <description><![CDATA[Option setting for "Gallery in" reporting]]></description>
1746
  <long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
1747
- <tag line="183" name="since" description="1.00"/>
1748
- <tag line="183" name="var" description="" type="boolean">
1749
  <type by_reference="false">boolean</type>
1750
  </tag>
1751
  </docblock>
1752
  </property>
1753
- <property final="false" static="true" visibility="public" line="203" namespace="global" package="Media Library Assistant">
1754
  <name>$process_mla_gallery_in</name>
1755
  <default><![CDATA[true]]></default>
1756
- <docblock line="194">
1757
  <description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
1758
  <long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
1759
- <tag line="194" name="since" description="1.00"/>
1760
- <tag line="194" name="var" description="" type="boolean">
1761
  <type by_reference="false">boolean</type>
1762
  </tag>
1763
  </docblock>
1764
  </property>
1765
- <property final="false" static="true" visibility="public" line="1130" namespace="global" package="Media Library Assistant">
1766
  <name>$mla_debug_level</name>
1767
  <default><![CDATA[0]]></default>
1768
- <docblock line="1123">
1769
  <description><![CDATA[Effective MLA Debug Level, from MLA_DEBUG_LEVEL or override option]]></description>
1770
  <long-description><![CDATA[]]></long-description>
1771
- <tag line="1123" name="since" description="2.15"/>
1772
- <tag line="1123" name="var" description="" type="integer">
1773
  <type by_reference="false">integer</type>
1774
  </tag>
1775
  </docblock>
1776
  </property>
1777
- <property final="false" static="true" visibility="private" line="1139" namespace="global" package="Media Library Assistant">
1778
  <name>$mla_debug_messages</name>
1779
  <default><![CDATA[array()]]></default>
1780
- <docblock line="1132">
1781
  <description><![CDATA[Accumulates debug messages]]></description>
1782
  <long-description><![CDATA[]]></long-description>
1783
- <tag line="1132" name="since" description="2.12"/>
1784
- <tag line="1132" name="var" description="" type="string">
1785
  <type by_reference="false">string</type>
1786
  </tag>
1787
  </docblock>
1788
  </property>
1789
- <property final="false" static="true" visibility="private" line="1150" namespace="global" package="Media Library Assistant">
1790
  <name>$mla_debug_mode</name>
1791
  <default><![CDATA['none']]></default>
1792
- <docblock line="1141">
1793
  <description><![CDATA[Debug information collection mode]]></description>
1794
  <long-description><![CDATA[<p>Collection mode: 'buffer', 'console', 'log' or 'none' (default).</p>]]></long-description>
1795
- <tag line="1141" name="since" description="2.12"/>
1796
- <tag line="1141" name="var" description="" type="string">
1797
  <type by_reference="false">string</type>
1798
  </tag>
1799
  </docblock>
1800
  </property>
1801
- <property final="false" static="true" visibility="private" line="1159" namespace="global" package="Media Library Assistant">
1802
  <name>$mla_debug_file</name>
1803
  <default><![CDATA[NULL]]></default>
1804
- <docblock line="1152">
1805
  <description><![CDATA[Debug information output file for mode = 'log']]></description>
1806
  <long-description><![CDATA[]]></long-description>
1807
- <tag line="1152" name="since" description="2.14"/>
1808
- <tag line="1152" name="var" description="" type="string">
1809
  <type by_reference="false">string</type>
1810
  </tag>
1811
  </docblock>
1812
  </property>
1813
- <property final="false" static="true" visibility="public" line="1338" namespace="global" package="Media Library Assistant">
1814
  <name>$admin_columns_storage_model</name>
1815
  <default><![CDATA[NULL]]></default>
1816
- <docblock line="1331">
1817
  <description><![CDATA[Admin Columns support storage model object for the Media/Assistant submenu]]></description>
1818
  <long-description><![CDATA[]]></long-description>
1819
- <tag line="1331" name="since" description="2.22"/>
1820
- <tag line="1331" name="var" description="" type="object">
1821
  <type by_reference="false">object</type>
1822
  </tag>
1823
  </docblock>
1824
  </property>
1825
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="212" package="Media Library Assistant">
1826
  <name>initialize</name>
1827
  <full_name>initialize</full_name>
1828
- <docblock line="205">
1829
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
1830
  <long-description><![CDATA[]]></long-description>
1831
- <tag line="205" name="since" description="1.00"/>
1832
- <tag line="205" name="return" description="" type="void">
1833
  <type by_reference="false">void</type>
1834
  </tag>
1835
  </docblock>
1836
  </method>
1837
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="303" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1838
  <name>mla_plugins_loaded_action</name>
1839
  <full_name>mla_plugins_loaded_action</full_name>
1840
- <docblock line="292">
1841
  <description><![CDATA[Load a plugin text domain and alternate debug file]]></description>
1842
  <long-description><![CDATA[<p>The "add_action" for this function is in mla-plugin-loader.php, because the "initialize"
1843
  function above doesn't run in time.
1844
  Defined as public because it's an action.</p>]]></long-description>
1845
- <tag line="292" name="since" description="1.60"/>
1846
- <tag line="292" name="return" description="" type="void">
1847
  <type by_reference="false">void</type>
1848
  </tag>
1849
  </docblock>
1850
  </method>
1851
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="364" package="Media Library Assistant">
1852
  <name>mla_wp_redirect_filter</name>
1853
  <full_name>mla_wp_redirect_filter</full_name>
1854
- <docblock line="356">
1855
  <description><![CDATA[Filter the redirect location.]]></description>
1856
  <long-description><![CDATA[]]></long-description>
1857
- <tag line="356" name="since" description="2.25"/>
1858
- <tag line="356" name="param" description="The path to redirect to." type="string" variable="$location">
1859
  <type by_reference="false">string</type>
1860
  </tag>
1861
- <tag line="356" name="param" description="Status code to use." type="int" variable="$status">
1862
  <type by_reference="false">int</type>
1863
  </tag>
1864
  </docblock>
1865
- <argument line="364">
1866
  <name>$location</name>
1867
  <default><![CDATA[]]></default>
1868
  <type/>
1869
  </argument>
1870
- <argument line="364">
1871
  <name>$status</name>
1872
  <default><![CDATA[]]></default>
1873
  <type/>
1874
  </argument>
1875
  </method>
1876
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="384" package="Media Library Assistant">
1877
  <name>mla_initialize_tax_checked_on_top</name>
1878
  <full_name>mla_initialize_tax_checked_on_top</full_name>
1879
- <docblock line="375">
1880
  <description><![CDATA[Initialize "tax_checked_on_top" => "checked" default for all supported taxonomies]]></description>
1881
  <long-description><![CDATA[<p>Called after all taxonomies are registered, e.g., in MLAObjects::_build_taxonomies.</p>]]></long-description>
1882
- <tag line="375" name="since" description="2.02"/>
1883
- <tag line="375" name="return" description="" type="void">
1884
  <type by_reference="false">void</type>
1885
  </tag>
1886
  </docblock>
1887
  </method>
1888
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="413" package="Media Library Assistant">
1889
  <name>mla_get_option</name>
1890
  <full_name>mla_get_option</full_name>
1891
- <docblock line="400">
1892
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
1893
  <long-description><![CDATA[]]></long-description>
1894
- <tag line="400" name="since" description="2.20"/>
1895
- <tag line="400" name="param" description="Name of the desired option" type="string" variable="$option">
1896
  <type by_reference="false">string</type>
1897
  </tag>
1898
- <tag line="400" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
1899
  <type by_reference="false">boolean</type>
1900
  </tag>
1901
- <tag line="400" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
1902
  <type by_reference="false">boolean</type>
1903
  </tag>
1904
- <tag line="400" name="param" description="Custom option definitions" type="array" variable="$option_table">
1905
  <type by_reference="false">array</type>
1906
  </tag>
1907
- <tag line="400" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
1908
  <type by_reference="false">mixed</type>
1909
  </tag>
1910
  </docblock>
1911
- <argument line="413">
1912
  <name>$option</name>
1913
  <default><![CDATA[]]></default>
1914
  <type/>
1915
  </argument>
1916
- <argument line="413">
1917
  <name>$get_default</name>
1918
  <default><![CDATA[false]]></default>
1919
  <type/>
1920
  </argument>
1921
- <argument line="413">
1922
  <name>$get_stored</name>
1923
  <default><![CDATA[false]]></default>
1924
  <type/>
1925
  </argument>
1926
- <argument line="413">
1927
  <name>$option_table</name>
1928
  <default><![CDATA[NULL]]></default>
1929
  <type/>
1930
  </argument>
1931
  </method>
1932
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="452" package="Media Library Assistant">
1933
  <name>mla_update_option</name>
1934
  <full_name>mla_update_option</full_name>
1935
- <docblock line="441">
1936
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
1937
  <long-description><![CDATA[]]></long-description>
1938
- <tag line="441" name="since" description="2.20"/>
1939
- <tag line="441" name="param" description="Name of the desired option" type="string" variable="$option">
1940
  <type by_reference="false">string</type>
1941
  </tag>
1942
- <tag line="441" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
1943
  <type by_reference="false">mixed</type>
1944
  </tag>
1945
- <tag line="441" name="param" description="Custom option definitions" type="array" variable="$option_table">
1946
  <type by_reference="false">array</type>
1947
  </tag>
1948
- <tag line="441" name="return" description="True if the value was changed or false if the update failed" type="boolean">
1949
  <type by_reference="false">boolean</type>
1950
  </tag>
1951
  </docblock>
1952
- <argument line="452">
1953
  <name>$option</name>
1954
  <default><![CDATA[]]></default>
1955
  <type/>
1956
  </argument>
1957
- <argument line="452">
1958
  <name>$newvalue</name>
1959
  <default><![CDATA[]]></default>
1960
  <type/>
1961
  </argument>
1962
- <argument line="452">
1963
  <name>$option_table</name>
1964
  <default><![CDATA[NULL]]></default>
1965
  <type/>
1966
  </argument>
1967
  </method>
1968
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="484" package="Media Library Assistant">
1969
  <name>mla_delete_option</name>
1970
  <full_name>mla_delete_option</full_name>
1971
- <docblock line="474">
1972
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
1973
  <long-description><![CDATA[]]></long-description>
1974
- <tag line="474" name="since" description="2.20"/>
1975
- <tag line="474" name="param" description="Name of the desired option" type="string" variable="$option">
1976
  <type by_reference="false">string</type>
1977
  </tag>
1978
- <tag line="474" name="param" description="Custom option definitions" type="array" variable="$option_table">
1979
  <type by_reference="false">array</type>
1980
  </tag>
1981
- <tag line="474" name="return" description="True if the option was deleted, otherwise false" type="boolean">
1982
  <type by_reference="false">boolean</type>
1983
  </tag>
1984
  </docblock>
1985
- <argument line="484">
1986
  <name>$option</name>
1987
  <default><![CDATA[]]></default>
1988
  <type/>
1989
  </argument>
1990
- <argument line="484">
1991
  <name>$option_table</name>
1992
  <default><![CDATA[NULL]]></default>
1993
  <type/>
1994
  </argument>
1995
  </method>
1996
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="518" package="Media Library Assistant">
1997
  <name>mla_load_template</name>
1998
  <full_name>mla_load_template</full_name>
1999
- <docblock line="500">
2000
  <description><![CDATA[Load an HTML template from a file]]></description>
2001
  <long-description><![CDATA[<p>Loads a template to a string or a multi-part template to an array.
2002
  Multi-part templates are divided by comments of the form <!-- template="key" -->,
2003
  where "key" becomes the key part of the array.</p>]]></long-description>
2004
- <tag line="500" name="since" description="0.1"/>
2005
- <tag line="500" name="param" description="Complete path and/or name of the template file, option name or the raw template" type="string" variable="$source">
2006
  <type by_reference="false">string</type>
2007
  </tag>
2008
- <tag line="500" name="param" description="Optional type of template source; 'path', 'file' (default), 'option', 'string'" type="string" variable="$type">
2009
  <type by_reference="false">string</type>
2010
  </tag>
2011
- <tag line="500" name="return" description="string for files that do not contain template divider comments, array for files containing template divider comments, false if file or option does not exist, NULL if file could not be loaded." type="string|array|false|NULL">
2012
  <type by_reference="false">string</type>
2013
  <type by_reference="false">array</type>
2014
  <type by_reference="false">false</type>
2015
  <type by_reference="false">NULL</type>
2016
  </tag>
2017
  </docblock>
2018
- <argument line="518">
2019
  <name>$source</name>
2020
  <default><![CDATA[]]></default>
2021
  <type/>
2022
  </argument>
2023
- <argument line="518">
2024
  <name>$type</name>
2025
  <default><![CDATA['file']]></default>
2026
  <type/>
2027
  </argument>
2028
  </method>
2029
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="642" package="Media Library Assistant">
2030
  <name>mla_taxonomy_support</name>
2031
  <full_name>mla_taxonomy_support</full_name>
2032
- <docblock line="629">
2033
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
2034
  settings are being updated or reset.]]></description>
2035
  <long-description><![CDATA[]]></long-description>
2036
- <tag line="629" name="since" description="2.20"/>
2037
- <tag line="629" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
2038
  <type by_reference="false">string</type>
2039
  </tag>
2040
- <tag line="629" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
2041
  <type by_reference="false">string</type>
2042
  </tag>
2043
- <tag line="629" name="return" description="true if the taxonomy is supported in this way else false. string if $tax_name is '' and $support_type is 'filter', returns the taxonomy to filter by." type="boolean|string">
2044
  <type by_reference="false">boolean</type>
2045
  <type by_reference="false">string</type>
2046
  </tag>
2047
  </docblock>
2048
- <argument line="642">
2049
  <name>$tax_name</name>
2050
  <default><![CDATA[]]></default>
2051
  <type/>
2052
  </argument>
2053
- <argument line="642">
2054
  <name>$support_type</name>
2055
  <default><![CDATA['support']]></default>
2056
  <type/>
2057
  </argument>
2058
  </method>
2059
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="719" package="Media Library Assistant">
2060
  <name>mla_supported_taxonomies</name>
2061
  <full_name>mla_supported_taxonomies</full_name>
2062
- <docblock line="710">
2063
  <description><![CDATA[Returns an array of taxonomy names assigned to $support_type]]></description>
2064
  <long-description><![CDATA[]]></long-description>
2065
- <tag line="710" name="since" description="2.20"/>
2066
- <tag line="710" name="param" description="Optional. 'support' (default), 'quick-edit', 'flat-checklist', 'term-search' or 'filter'" type="string" variable="$support_type">
2067
  <type by_reference="false">string</type>
2068
  </tag>
2069
- <tag line="710" name="return" description="taxonomies assigned to $support_type; can be empty." type="array">
2070
  <type by_reference="false">array</type>
2071
  </tag>
2072
  </docblock>
2073
- <argument line="719">
2074
  <name>$support_type</name>
2075
  <default><![CDATA['support']]></default>
2076
  <type/>
2077
  </argument>
2078
  </method>
2079
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="785" package="Media Library Assistant">
2080
  <name>mla_custom_field_support</name>
2081
  <full_name>mla_custom_field_support</full_name>
2082
- <docblock line="776">
2083
  <description><![CDATA[Evaluate support information for custom field mapping]]></description>
2084
  <long-description><![CDATA[]]></long-description>
2085
- <tag line="776" name="since" description="1.10"/>
2086
- <tag line="776" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
2087
  <type by_reference="false">string</type>
2088
  </tag>
2089
- <tag line="776" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
2090
  <type by_reference="false">array</type>
2091
  </tag>
2092
  </docblock>
2093
- <argument line="785">
2094
  <name>$support_type</name>
2095
  <default><![CDATA['default_columns']]></default>
2096
  <type/>
2097
  </argument>
2098
  </method>
2099
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="847" package="Media Library Assistant">
2100
  <name>mla_prepare_view_query</name>
2101
  <full_name>mla_prepare_view_query</full_name>
2102
- <docblock line="837">
2103
  <description><![CDATA[Convert a Library View/Post MIME Type specification to WP_Query parameters]]></description>
2104
  <long-description><![CDATA[]]></long-description>
2105
- <tag line="837" name="since" description="1.40"/>
2106
- <tag line="837" name="param" description="View slug, unique identifier" type="string" variable="$slug">
2107
  <type by_reference="false">string</type>
2108
  </tag>
2109
- <tag line="837" name="param" description="A specification, e.g., &quot;custom:Field,null&quot; or &quot;audio,application/vnd.*ms*&quot;" type="string" variable="$specification">
2110
  <type by_reference="false">string</type>
2111
  </tag>
2112
- <tag line="837" name="return" description="post_mime_type specification or custom field query" type="array">
2113
  <type by_reference="false">array</type>
2114
  </tag>
2115
  </docblock>
2116
- <argument line="847">
2117
  <name>$slug</name>
2118
  <default><![CDATA[]]></default>
2119
  <type/>
2120
  </argument>
2121
- <argument line="847">
2122
  <name>$specification</name>
2123
  <default><![CDATA[]]></default>
2124
  <type/>
2125
  </argument>
2126
  </method>
2127
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="898" package="Media Library Assistant">
2128
  <name>mla_parse_view_specification</name>
2129
  <full_name>mla_parse_view_specification</full_name>
2130
- <docblock line="889">
2131
  <description><![CDATA[Analyze a Library View/Post MIME Type specification, returning an array of the placeholders it contains]]></description>
2132
  <long-description><![CDATA[]]></long-description>
2133
- <tag line="889" name="since" description="1.40"/>
2134
- <tag line="889" name="param" description="A specification, e.g., &quot;custom:Field,null&quot; or &quot;audio,application/vnd.*ms*&quot;" type="string|array" variable="$specification">
2135
  <type by_reference="false">string</type>
2136
  <type by_reference="false">array</type>
2137
  </tag>
2138
- <tag line="889" name="return" description="( ['prefix'] =&gt; string, ['name'] =&gt; string, ['value'] =&gt; string, ['option'] =&gt; string, optional ['error'] =&gt; string )" type="array">
2139
  <type by_reference="false">array</type>
2140
  </tag>
2141
  </docblock>
2142
- <argument line="898">
2143
  <name>$specification</name>
2144
  <default><![CDATA[]]></default>
2145
  <type/>
2146
  </argument>
2147
  </method>
2148
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="975" package="Media Library Assistant">
2149
  <name>mla_checklist_meta_box</name>
2150
  <full_name>mla_checklist_meta_box</full_name>
2151
- <docblock line="960">
2152
  <description><![CDATA[Display taxonomy "checklist" form fields]]></description>
2153
  <long-description><![CDATA[<p>Adapted from /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term().
2154
  Includes the "? Search" area to filter the term checklist by entering part
2155
  or all of a word/phrase in the term label.
2156
  Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p>]]></long-description>
2157
- <tag line="960" name="since" description="1.71"/>
2158
- <tag line="960" name="param" description="The current post" type="object" variable="$target_post">
2159
  <type by_reference="false">object</type>
2160
  </tag>
2161
- <tag line="960" name="param" description="The meta box parameters" type="array" variable="$box">
2162
  <type by_reference="false">array</type>
2163
  </tag>
2164
- <tag line="960" name="return" description="Echoes HTML for the form fields" type="void">
2165
  <type by_reference="false">void</type>
2166
  </tag>
2167
  </docblock>
2168
- <argument line="975">
2169
  <name>$target_post</name>
2170
  <default><![CDATA[]]></default>
2171
  <type/>
2172
  </argument>
2173
- <argument line="975">
2174
  <name>$box</name>
2175
  <default><![CDATA[]]></default>
2176
  <type/>
2177
  </argument>
2178
  </method>
2179
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1170" package="Media Library Assistant">
2180
  <name>mla_debug_mode</name>
2181
  <full_name>mla_debug_mode</full_name>
2182
- <docblock line="1161">
2183
  <description><![CDATA[Get/Set debug information collection mode]]></description>
2184
  <long-description><![CDATA[]]></long-description>
2185
- <tag line="1161" name="since" description="2.12"/>
2186
- <tag line="1161" name="param" description="Optional. New collection mode: 'none' (default), 'buffer', 'console' or 'log'" type="string" variable="$mode">
2187
  <type by_reference="false">string</type>
2188
  </tag>
2189
- <tag line="1161" name="return" description="The previous mode value, i.e., before the update" type="string">
2190
  <type by_reference="false">string</type>
2191
  </tag>
2192
  </docblock>
2193
- <argument line="1170">
2194
  <name>$mode</name>
2195
  <default><![CDATA[false]]></default>
2196
  <type/>
2197
  </argument>
2198
  </method>
2199
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1193" package="Media Library Assistant">
2200
  <name>mla_debug_file</name>
2201
  <full_name>mla_debug_file</full_name>
2202
- <docblock line="1180">
2203
  <description><![CDATA[Get/Set debug information collection output file for mode = 'log']]></description>
2204
  <long-description><![CDATA[<p>Note that WP_CONTENT_DIR will be pre-pended to the value, and a slash
2205
  will be added to the front of the value if necessary.</p>]]></long-description>
2206
- <tag line="1180" name="since" description="2.14"/>
2207
- <tag line="1180" name="param" description="Optional. The (optional path and) file name, relative to WP_CONTENT_DIR, or false/empty string to clear the value." type="string" variable="$file">
2208
  <type by_reference="false">string</type>
2209
  </tag>
2210
- <tag line="1180" name="return" description="The previous file value, i.e., before the update, relative to WP_CONTENT_DIR" type="string">
2211
  <type by_reference="false">string</type>
2212
  </tag>
2213
  </docblock>
2214
- <argument line="1193">
2215
  <name>$file</name>
2216
  <default><![CDATA[NULL]]></default>
2217
  <type/>
2218
  </argument>
2219
  </method>
2220
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1224" package="Media Library Assistant">
2221
  <name>mla_debug_content</name>
2222
  <full_name>mla_debug_content</full_name>
2223
- <docblock line="1214">
2224
  <description><![CDATA[Get debug information without clearing the buffer]]></description>
2225
  <long-description><![CDATA[]]></long-description>
2226
- <tag line="1214" name="since" description="2.12"/>
2227
- <tag line="1214" name="param" description="Return data type: 'string' (default) or 'array'" type="string" variable="$format">
2228
  <type by_reference="false">string</type>
2229
  </tag>
2230
- <tag line="1214" name="param" description="Join array elements with '\n' or '&lt;p&gt;' (default)" type="string" variable="$glue">
2231
  <type by_reference="false">string</type>
2232
  </tag>
2233
- <tag line="1214" name="return" description="true if success else false" type="boolean">
2234
  <type by_reference="false">boolean</type>
2235
  </tag>
2236
  </docblock>
2237
- <argument line="1224">
2238
  <name>$format</name>
2239
  <default><![CDATA['string']]></default>
2240
  <type/>
2241
  </argument>
2242
- <argument line="1224">
2243
  <name>$glue</name>
2244
  <default><![CDATA['<p>']]></default>
2245
  <type/>
2246
  </argument>
2247
  </method>
2248
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1247" package="Media Library Assistant">
2249
  <name>mla_debug_flush</name>
2250
  <full_name>mla_debug_flush</full_name>
2251
- <docblock line="1237">
2252
  <description><![CDATA[Flush debug information and clear buffer]]></description>
2253
  <long-description><![CDATA[]]></long-description>
2254
- <tag line="1237" name="since" description="2.12"/>
2255
- <tag line="1237" name="param" description="Destination: 'buffer' (default), 'console', 'log' or 'none'" type="string" variable="$destination">
2256
  <type by_reference="false">string</type>
2257
  </tag>
2258
- <tag line="1237" name="param" description="true (default) to stop, false to continue collection" type="boolean" variable="$stop_collecting">
2259
  <type by_reference="false">boolean</type>
2260
  </tag>
2261
- <tag line="1237" name="return" description="debug content if $destination == 'buffer' else empty string" type="string">
2262
  <type by_reference="false">string</type>
2263
  </tag>
2264
  </docblock>
2265
- <argument line="1247">
2266
  <name>$destination</name>
2267
  <default><![CDATA['buffer']]></default>
2268
  <type/>
2269
  </argument>
2270
- <argument line="1247">
2271
  <name>$stop_collecting</name>
2272
  <default><![CDATA[true]]></default>
2273
  <type/>
2274
  </argument>
2275
  </method>
2276
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1282" package="Media Library Assistant">
2277
  <name>_debug_log</name>
2278
  <full_name>_debug_log</full_name>
2279
- <docblock line="1275">
2280
  <description><![CDATA[Write a debug message to the appropriate log file]]></description>
2281
  <long-description><![CDATA[]]></long-description>
2282
- <tag line="1275" name="since" description="2.14"/>
2283
- <tag line="1275" name="param" description="Message text" type="string" variable="$message">
2284
  <type by_reference="false">string</type>
2285
  </tag>
2286
  </docblock>
2287
- <argument line="1282">
2288
  <name>$message</name>
2289
  <default><![CDATA[]]></default>
2290
  <type/>
2291
  </argument>
2292
  </method>
2293
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1305" package="Media Library Assistant">
2294
  <name>mla_debug_add</name>
2295
  <full_name>mla_debug_add</full_name>
2296
- <docblock line="1297">
2297
  <description><![CDATA[Add a debug message to the collection]]></description>
2298
  <long-description><![CDATA[]]></long-description>
2299
- <tag line="1297" name="since" description="2.12"/>
2300
- <tag line="1297" name="param" description="Message text" type="string" variable="$message">
2301
  <type by_reference="false">string</type>
2302
  </tag>
2303
- <tag line="1297" name="param" description="Optional. Debug category." type="integer" variable="$debug_level">
2304
  <type by_reference="false">integer</type>
2305
  </tag>
2306
  </docblock>
2307
- <argument line="1305">
2308
  <name>$message</name>
2309
  <default><![CDATA[]]></default>
2310
  <type/>
2311
  </argument>
2312
- <argument line="1305">
2313
  <name>$debug_level</name>
2314
  <default><![CDATA[NULL]]></default>
2315
  <type/>
2316
  </argument>
2317
  </method>
2318
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1348" package="Media Library Assistant">
2319
  <name>admin_columns_support</name>
2320
  <full_name>admin_columns_support</full_name>
2321
- <docblock line="1340">
2322
  <description><![CDATA[Define the Media/Assistant submenu screen to the Admin Columns plugin]]></description>
2323
  <long-description><![CDATA[]]></long-description>
2324
- <tag line="1340" name="since" description="2.22"/>
2325
- <tag line="1340" name="param" description="List of storage model class instances ( [key] =&gt; [CPAC_Storage_Model object] )" type="array" variable="$storage_models">
2326
  <type by_reference="false">array</type>
2327
  </tag>
2328
- <tag line="1340" name="param" description="CPAC, the root CodePress Admin Columns object" type="object" variable="$cpac">
2329
  <type by_reference="false">object</type>
2330
  </tag>
2331
  </docblock>
2332
- <argument line="1348">
2333
  <name>$storage_models</name>
2334
  <default><![CDATA[]]></default>
2335
  <type/>
2336
  </argument>
2337
- <argument line="1348">
2338
  <name>$cpac</name>
2339
  <default><![CDATA[]]></default>
2340
  <type/>
2341
  </argument>
2342
  </method>
2343
  </class>
2344
- <class final="false" abstract="false" namespace="global" line="1395" package="Media Library Assistant">
2345
  <extends>\Walker_Category</extends>
2346
  <name>MLA_Checklist_Walker</name>
2347
  <full_name>\MLA_Checklist_Walker</full_name>
2348
- <docblock line="1385">
2349
  <description><![CDATA[Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output]]></description>
2350
  <long-description><![CDATA[<p>This walker is used to build the meta boxes for flat taxonomies, e.g., Tags, Att. Tags.
2351
  Class Walker_Category is defined in /wp-includes/category-template.php.
2352
  Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-description>
2353
- <tag line="1385" name="package" description="Media Library Assistant"/>
2354
- <tag line="1385" name="since" description="1.80"/>
2355
  </docblock>
2356
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1409" package="Media Library Assistant">
2357
  <name>start_el</name>
2358
  <full_name>start_el</full_name>
2359
- <docblock line="1396">
2360
  <description><![CDATA[Start the element output.]]></description>
2361
  <long-description><![CDATA[]]></long-description>
2362
- <tag line="1396" name="see" description="\global\Walker::start_el()" refers="\global\Walker::start_el()"/>
2363
- <tag line="1396" name="since" description="1.80"/>
2364
- <tag line="1396" name="param" description="Passed by reference. Used to append additional content." type="string" variable="$output">
2365
  <type by_reference="false">string</type>
2366
  </tag>
2367
- <tag line="1396" name="param" description="Taxonomy data object." type="object" variable="$taxonomy_object">
2368
  <type by_reference="false">object</type>
2369
  </tag>
2370
- <tag line="1396" name="param" description="Depth of category in reference to parents. Default 0." type="int" variable="$depth">
2371
  <type by_reference="false">int</type>
2372
  </tag>
2373
- <tag line="1396" name="param" description="An array of arguments. @see wp_list_categories()" type="array" variable="$args">
2374
  <type by_reference="false">array</type>
2375
  </tag>
2376
- <tag line="1396" name="param" description="ID of the current category." type="int" variable="$id">
2377
  <type by_reference="false">int</type>
2378
  </tag>
2379
  </docblock>
2380
- <argument line="1409">
2381
  <name>$output</name>
2382
  <default><![CDATA[]]></default>
2383
  <type/>
2384
  </argument>
2385
- <argument line="1409">
2386
  <name>$taxonomy_object</name>
2387
  <default><![CDATA[]]></default>
2388
  <type/>
2389
  </argument>
2390
- <argument line="1409">
2391
  <name>$depth</name>
2392
  <default><![CDATA[0]]></default>
2393
  <type/>
2394
  </argument>
2395
- <argument line="1409">
2396
  <name>$args</name>
2397
  <default><![CDATA[array()]]></default>
2398
  <type/>
2399
  </argument>
2400
- <argument line="1409">
2401
  <name>$id</name>
2402
  <default><![CDATA[0]]></default>
2403
  <type/>
2404
  </argument>
2405
  </method>
2406
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1442" package="Media Library Assistant">
2407
  <name>end_el</name>
2408
  <full_name>end_el</full_name>
2409
- <docblock line="1430">
2410
  <description><![CDATA[Ends the element output, if needed.]]></description>
2411
  <long-description><![CDATA[]]></long-description>
2412
- <tag line="1430" name="see" description="\global\Walker::end_el()" refers="\global\Walker::end_el()"/>
2413
- <tag line="1430" name="since" description="1.80"/>
2414
- <tag line="1430" name="param" description="Passed by reference. Used to append additional content." type="string" variable="$output">
2415
  <type by_reference="false">string</type>
2416
  </tag>
2417
- <tag line="1430" name="param" description="The current term object." type="object" variable="$category">
2418
  <type by_reference="false">object</type>
2419
  </tag>
2420
- <tag line="1430" name="param" description="Depth of the term in reference to parents. Default 0." type="int" variable="$depth">
2421
  <type by_reference="false">int</type>
2422
  </tag>
2423
- <tag line="1430" name="param" description="An array of arguments. @see wp_terms_checklist()" type="array" variable="$args">
2424
  <type by_reference="false">array</type>
2425
  </tag>
2426
  </docblock>
2427
- <argument line="1442">
2428
  <name>$output</name>
2429
  <default><![CDATA[]]></default>
2430
  <type/>
2431
  </argument>
2432
- <argument line="1442">
2433
  <name>$category</name>
2434
  <default><![CDATA[]]></default>
2435
  <type/>
2436
  </argument>
2437
- <argument line="1442">
2438
  <name>$depth</name>
2439
  <default><![CDATA[0]]></default>
2440
  <type/>
2441
  </argument>
2442
- <argument line="1442">
2443
  <name>$args</name>
2444
  <default><![CDATA[array()]]></default>
2445
  <type/>
@@ -2815,7 +2884,7 @@ dictionary in the source string, excluding the enclosing delimiters.</p>]]></lon
2815
  <todo line="362">encode the rest</todo>
2816
  </markers>
2817
  </file>
2818
- <file path="includes\class-mla-data-query.php" hash="65c8bfd3d9f35e2853857157f8dd0316" package="Media Library Assistant">
2819
  <docblock line="2">
2820
  <description><![CDATA[Database query support for MLA Ajax, Shortcode and Admin needs]]></description>
2821
  <long-description><![CDATA[]]></long-description>
@@ -3848,7 +3917,7 @@ loading of this file.</p>]]></long-description>
3848
  </method>
3849
  </class>
3850
  </file>
3851
- <file path="includes\class-mla-data-source.php" hash="014280695cbc04344220c8940215fc37" package="Media Library Assistant">
3852
  <docblock line="2">
3853
  <description><![CDATA[Manages access to data sources for custom field mapping and shortcode execution]]></description>
3854
  <long-description><![CDATA[]]></long-description>
@@ -4108,17 +4177,17 @@ Isolates clients from changes to _evaluate_data_source().</p>]]></long-descripti
4108
  </method>
4109
  </class>
4110
  </file>
4111
- <file path="includes\class-mla-data.php" hash="4552444d7c236e8837b517780957a0c5" package="Media Library Assistant">
4112
  <docblock line="2">
4113
  <description><![CDATA[Database and template file access for MLA needs]]></description>
4114
  <long-description><![CDATA[]]></long-description>
4115
  <tag line="2" name="package" description="Media Library Assistant"/>
4116
  <tag line="2" name="since" description="0.1"/>
4117
  </docblock>
4118
- <include line="2802" type="Require" package="Media Library Assistant">
4119
  <name/>
4120
  </include>
4121
- <include line="2903" type="Require Once" package="Media Library Assistant">
4122
  <name/>
4123
  </include>
4124
  <class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
@@ -4132,10 +4201,10 @@ Templates separate HTML markup from PHP code for easier maintenance and localiza
4132
  <tag line="9" name="package" description="Media Library Assistant"/>
4133
  <tag line="9" name="since" description="0.1"/>
4134
  </docblock>
4135
- <property final="false" static="true" visibility="public" line="1263" namespace="global" package="Media Library Assistant">
4136
  <name>$query_parameters</name>
4137
  <default><![CDATA[array()]]></default>
4138
- <docblock line="1248">
4139
  <description><![CDATA[WP_Query filter "parameters"]]></description>
4140
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
4141
  The parameters are set up in the _prepare_list_table_query function, and
@@ -4144,16 +4213,16 @@ any further logic required to translate those values is contained in the filters
4144
  <p>Array index values are: use_alt_text_view, use_postmeta_view, use_orderby_view,
4145
  alt_text_value, postmeta_key, postmeta_value, patterns, detached,
4146
  orderby, order, mla-metavalue, debug (also in search_parameters)</p>]]></long-description>
4147
- <tag line="1248" name="since" description="0.30"/>
4148
- <tag line="1248" name="var" description="" type="array">
4149
  <type by_reference="false">array</type>
4150
  </tag>
4151
  </docblock>
4152
  </property>
4153
- <property final="false" static="true" visibility="public" line="1291" namespace="global" package="Media Library Assistant">
4154
  <name>$search_parameters</name>
4155
  <default><![CDATA[array()]]></default>
4156
- <docblock line="1265">
4157
  <description><![CDATA[WP_Query 'posts_search' filter "parameters"]]></description>
4158
  <long-description><![CDATA[<p>This array defines parameters for the query's posts_search filter, which uses
4159
  'search_string' to add a clause to the query's WHERE clause. It is shared between
@@ -4173,98 +4242,98 @@ Note: 'alt-text' is not supported in [mla_gallery]
4173
  ['exact'] => entire string must match entire field value
4174
  ['debug'] => internal element, console/log/shortcode/none
4175
  ['tax_terms_count'] => internal element, shared with JOIN and GROUP BY filters</p>]]></long-description>
4176
- <tag line="1265" name="since" description="2.00"/>
4177
- <tag line="1265" name="var" description="" type="array">
4178
  <type by_reference="false">array</type>
4179
  </tag>
4180
  </docblock>
4181
  </property>
4182
- <property final="false" static="true" visibility="public" line="2048" namespace="global" package="Media Library Assistant">
4183
  <name>$utf8_chars</name>
4184
  <default><![CDATA[array("\xC2\x80", "\xC2\x81", "\xC2\x82", "\xC2\x83", "\xC2\x84", "\xC2\x85", "\xC2\x86", "\xC2\x87", "\xC2\x88", "\xC2\x89", "\xC2\x8A", "\xC2\x8B", "\xC2\x8C", "\xC2\x8D", "\xC2\x8E", "\xC2\x8F", "\xC2\x90", "\xC2\x91", "\xC2\x92", "\xC2\x93", "\xC2\x94", "\xC2\x95", "\xC2\x96", "\xC2\x97", "\xC2\x98", "\xC2\x99", "\xC2\x9A", "\xC2\x9B", "\xC2\x9C", "\xC2\x9D", "\xC2\x9E", "\xC2\x9F", "\xC2\xA0", "\xC2\xA1", "\xC2\xA2", "\xC2\xA3", "\xC2\xA4", "\xC2\xA5", "\xC2\xA6", "\xC2\xA7", "\xC2\xA8", "\xC2\xA9", "\xC2\xAA", "\xC2\xAB", "\xC2\xAC", "\xC2\xAD", "\xC2\xAE", "\xC2\xAF", "\xC2\xB0", "\xC2\xB1", "\xC2\xB2", "\xC2\xB3", "\xC2\xB4", "\xC2\xB5", "\xC2\xB6", "\xC2\xB7", "\xC2\xB8", "\xC2\xB9", "\xC2\xBA", "\xC2\xBB", "\xC2\xBC", "\xC2\xBD", "\xC2\xBE", "\xC2\xBF", "\xC3\x80", "\xC3\x81", "\xC3\x82", "\xC3\x83", "\xC3\x84", "\xC3\x85", "\xC3\x86", "\xC3\x87", "\xC3\x88", "\xC3\x89", "\xC3\x8A", "\xC3\x8B", "\xC3\x8C", "\xC3\x8D", "\xC3\x8E", "\xC3\x8F", "\xC3\x90", "\xC3\x91", "\xC3\x92", "\xC3\x93", "\xC3\x94", "\xC3\x95", "\xC3\x96", "\xC3\x97", "\xC3\x98", "\xC3\x99", "\xC3\x9A", "\xC3\x9B", "\xC3\x9C", "\xC3\x9D", "\xC3\x9E", "\xC3\x9F", "\xC3\xA0", "\xC3\xA1", "\xC3\xA2", "\xC3\xA3", "\xC3\xA4", "\xC3\xA5", "\xC3\xA6", "\xC3\xA7", "\xC3\xA8", "\xC3\xA9", "\xC3\xAA", "\xC3\xAB", "\xC3\xAC", "\xC3\xAD", "\xC3\xAE", "\xC3\xAF", "\xC3\xB0", "\xC3\xB1", "\xC3\xB2", "\xC3\xB3", "\xC3\xB4", "\xC3\xB5", "\xC3\xB6", "\xC3\xB7", "\xC3\xB8", "\xC3\xB9", "\xC3\xBA", "\xC3\xBB", "\xC3\xBC", "\xC3\xBD", "\xC3\xBE", "\xC3\xBF")]]></default>
4185
- <docblock line="2041">
4186
  <description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
4187
  <long-description><![CDATA[]]></long-description>
4188
- <tag line="2041" name="since" description="1.41"/>
4189
- <tag line="2041" name="var" description="" type="array">
4190
  <type by_reference="false">array</type>
4191
  </tag>
4192
  </docblock>
4193
  </property>
4194
- <property final="false" static="true" visibility="private" line="2108" namespace="global" package="Media Library Assistant">
4195
  <name>$mla_iptc_records</name>
4196
  <default><![CDATA[array("1#000" => "Model Version", "1#005" => "Destination", "1#020" => "File Format", "1#022" => "File Format Version", "1#030" => "Service Identifier", "1#040" => "Envelope Number", "1#050" => "Product ID", "1#060" => "Envelope Priority", "1#070" => "Date Sent", "1#080" => "Time Sent", "1#090" => "Coded Character Set", "1#100" => "UNO", "1#120" => "ARM Identifier", "1#122" => "ARM Version", "2#000" => "Record Version", "2#003" => "Object Type Reference", "2#004" => "Object Attribute Reference", "2#005" => "Object Name", "2#007" => "Edit Status", "2#008" => "Editorial Update", "2#010" => "Urgency", "2#012" => "Subject Reference", "2#015" => "Category", "2#020" => "Supplemental Category", "2#022" => "Fixture Identifier", "2#025" => "Keywords", "2#026" => "Content Location Code", "2#027" => "Content Location Name", "2#030" => "Release Date", "2#035" => "Release Time", "2#037" => "Expiration Date", "2#038" => "Expiration Time", "2#040" => "Special Instructions", "2#042" => "Action Advised", "2#045" => "Reference Service", "2#047" => "Reference Date", "2#050" => "Reference Number", "2#055" => "Date Created", "2#060" => "Time Created", "2#062" => "Digital Creation Date", "2#063" => "Digital Creation Time", "2#065" => "Originating Program", "2#070" => "Program Version", "2#075" => "Object Cycle", "2#080" => "By-line", "2#085" => "By-line Title", "2#090" => "City", "2#092" => "Sub-location", "2#095" => "Province or State", "2#100" => "Country or Primary Location Code", "2#101" => "Country or Primary Location Name", "2#103" => "Original Transmission Reference", "2#105" => "Headline", "2#110" => "Credit", "2#115" => "Source", "2#116" => "Copyright Notice", "2#118" => "Contact", "2#120" => "Caption or Abstract", "2#122" => "Caption Writer or Editor", "2#125" => "Rasterized Caption", "2#130" => "Image Type", "2#131" => "Image Orientation", "2#135" => "Language Identifier", "2#150" => "Audio Type", "2#151" => "Audio Sampling Rate", "2#152" => "Audio Sampling Resolution", "2#153" => "Audio Duration", "2#154" => "Audio Outcue", "2#200" => "ObjectData Preview File Format", "2#201" => "ObjectData Preview File Format Version", "2#202" => "ObjectData Preview Data", "7#010" => "Size Mode", "7#020" => "Max Subfile Size", "7#090" => "ObjectData Size Announced", "7#095" => "Maximum ObjectData Size", "8#010" => "Subfile", "9#010" => "Confirmed ObjectData Size")]]></default>
4197
- <docblock line="2098">
4198
  <description><![CDATA[IPTC Dataset identifiers and names]]></description>
4199
  <long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
4200
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4201
- <tag line="2098" name="since" description="0.90"/>
4202
- <tag line="2098" name="var" description="" type="array">
4203
  <type by_reference="false">array</type>
4204
  </tag>
4205
  </docblock>
4206
  </property>
4207
- <property final="false" static="true" visibility="public" line="2207" namespace="global" package="Media Library Assistant">
4208
  <name>$mla_iptc_keys</name>
4209
  <default><![CDATA[array('model-version' => '1#000', 'destination' => '1#005', 'file-format' => '1#020', 'file-format-version' => '1#022', 'service-identifier' => '1#030', 'envelope-number' => '1#040', 'product-id' => '1#050', 'envelope-priority' => '1#060', 'date-sent' => '1#070', 'time-sent' => '1#080', 'coded-character-set' => '1#090', 'uno' => '1#100', 'arm-identifier' => '1#120', 'arm-version' => '1#122', 'record-version' => '2#000', 'object-type-reference' => '2#003', 'object-attribute-reference' => '2#004', 'object-name' => '2#005', 'edit-status' => '2#007', 'editorial-update' => '2#008', 'urgency' => '2#010', 'subject-reference' => '2#012', 'category' => '2#015', 'supplemental-category' => '2#020', 'fixture-identifier' => '2#022', 'keywords' => '2#025', 'content-location-code' => '2#026', 'content-location-name' => '2#027', 'release-date' => '2#030', 'release-time' => '2#035', 'expiration-date' => '2#037', 'expiration-time' => '2#038', 'special-instructions' => '2#040', 'action-advised' => '2#042', 'reference-service' => '2#045', 'reference-date' => '2#047', 'reference-number' => '2#050', 'date-created' => '2#055', 'time-created' => '2#060', 'digital-creation-date' => '2#062', 'digital-creation-time' => '2#063', 'originating-program' => '2#065', 'program-version' => '2#070', 'object-cycle' => '2#075', 'by-line' => '2#080', 'by-line-title' => '2#085', 'city' => '2#090', 'sub-location' => '2#092', 'province-or-state' => '2#095', 'country-or-primary-location-code' => '2#100', 'country-or-primary-location-name' => '2#101', 'original-transmission-reference' => '2#103', 'headline' => '2#105', 'credit' => '2#110', 'source' => '2#115', 'copyright-notice' => '2#116', 'contact' => '2#118', 'caption-or-abstract' => '2#120', 'caption-writer-or-editor' => '2#122', 'rasterized-caption' => '2#125', 'image-type' => '2#130', 'image-orientation' => '2#131', 'language-identifier' => '2#135', 'audio-type' => '2#150', 'audio-sampling-rate' => '2#151', 'audio-sampling-resolution' => '2#152', 'audio-duration' => '2#153', 'audio-outcue' => '2#154', 'objectdata-preview-file-format' => '2#200', 'objectdata-preview-file-format-version' => '2#201', 'objectdata-preview-data' => '2#202', 'size-mode' => '7#010', 'max-subfile-size' => '7#020', 'objectdata-size-announced' => '7#090', 'maximum-objectdata-size' => '7#095', 'subfile' => '8#010', 'confirmed-objectdata-size' => '9#010')]]></default>
4210
- <docblock line="2197">
4211
  <description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
4212
  <long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
4213
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4214
- <tag line="2197" name="since" description="0.90"/>
4215
- <tag line="2197" name="var" description="" type="array">
4216
  <type by_reference="false">array</type>
4217
  </tag>
4218
  </docblock>
4219
  </property>
4220
- <property final="false" static="true" visibility="private" line="2306" namespace="global" package="Media Library Assistant">
4221
  <name>$mla_iptc_descriptions</name>
4222
  <default><![CDATA[array("1#000" => "2 octet binary IIM version number", "1#005" => "Max 1024 characters of Destination (ISO routing information); repeatable", "1#020" => "2 octet binary file format number, see IPTC-NAA V4 Appendix A", "1#022" => "2 octet binary file format version number", "1#030" => "Max 10 characters of Service Identifier and product", "1#040" => "8 Character Envelope Number", "1#050" => "Max 32 characters subset of provider's overall service; repeatable", "1#060" => "1 numeric character of envelope handling priority (not urgency)", "1#070" => "8 numeric characters of Date Sent by service - CCYYMMDD", "1#080" => "11 characters of Time Sent by service - HHMMSS±HHMM", "1#090" => "Max 32 characters of control functions, etc.", "1#100" => "14 to 80 characters of eternal, globally unique identification for objects", "1#120" => "2 octet binary Abstract Relationship Model Identifier", "1#122" => "2 octet binary Abstract Relationship Model Version", "2#000" => "2 octet binary Information Interchange Model, Part II version number", "2#003" => "3 to 67 Characters of Object Type Reference number and optional text", "2#004" => "3 to 67 Characters of Object Attribute Reference number and optional text; repeatable", "2#005" => "Max 64 characters of the object name or shorthand reference", "2#007" => "Max 64 characters of the status of the objectdata", "2#008" => "2 numeric characters of the type of update this object provides", "2#010" => "1 numeric character of the editorial urgency of content", "2#012" => "13 to 236 characters of a structured definition of the subject matter; repeatable", "2#015" => "Max 3 characters of the subject of the objectdata, DEPRECATED", "2#020" => "Max 32 characters (each) of further refinement of subject, DEPRECATED; repeatable", "2#022" => "Max 32 characters identifying recurring, predictable content", "2#025" => "Max 64 characters (each) of tags; repeatable", "2#026" => "3 characters of ISO3166 country code or IPTC-assigned code; repeatable", "2#027" => "Max 64 characters of publishable country/geographical location name; repeatable", "2#030" => "8 numeric characters of Release Date - CCYYMMDD", "2#035" => "11 characters of Release Time (earliest use) - HHMMSS±HHMM", "2#037" => "8 numeric characters of Expiration Date (latest use) - CCYYMDD", "2#038" => "11 characters of Expiration Time (latest use) - HHMMSS±HHMM", "2#040" => "Max 256 Characters of editorial instructions, e.g., embargoes and warnings", "2#042" => "2 numeric characters of type of action this object provides to a previous object", "2#045" => "Max 10 characters of the Service ID (1#030) of a prior envelope; repeatable", "2#047" => "8 numeric characters of prior envelope Reference Date (1#070) - CCYYMMDD; repeatable", "2#050" => "8 characters of prior envelope Reference Number (1#040); repeatable", "2#055" => "8 numeric characters of intellectual content Date Created - CCYYMMDD", "2#060" => "11 characters of intellectual content Time Created - HHMMSS±HHMM", "2#062" => "8 numeric characters of digital representation creation date - CCYYMMDD", "2#063" => "11 characters of digital representation creation time - HHMMSS±HHMM", "2#065" => "Max 32 characters of the program used to create the objectdata", "2#070" => "Program Version - Max 10 characters of the version of the program used to create the objectdata", "2#075" => "1 character where a=morning, p=evening, b=both", "2#080" => "Max 32 Characters of the name of the objectdata creator, e.g., the writer, photographer; repeatable", "2#085" => "Max 32 characters of the title of the objectdata creator; repeatable", "2#090" => "Max 32 Characters of the city of objectdata origin", "2#092" => "Max 32 Characters of the location within the city of objectdata origin", "2#095" => "Max 32 Characters of the objectdata origin Province or State", "2#100" => "3 characters of ISO3166 or IPTC-assigned code for Country of objectdata origin", "2#101" => "Max 64 characters of publishable country/geographical location name of objectdata origin", "2#103" => "Max 32 characters of a code representing the location of original transmission", "2#105" => "Max 256 Characters of a publishable entry providing a synopsis of the contents of the objectdata", "2#110" => "Max 32 Characters that identifies the provider of the objectdata (Vs the owner/creator)", "2#115" => "Max 32 Characters that identifies the original owner of the intellectual content", "2#116" => "Max 128 Characters that contains any necessary copyright notice", "2#118" => "Max 128 characters that identifies the person or organisation which can provide further background information; repeatable", "2#120" => "Max 2000 Characters of a textual description of the objectdata", "2#122" => "Max 32 Characters that the identifies the person involved in the writing, editing or correcting the objectdata or caption/abstract; repeatable", "2#125" => "7360 binary octets of the rasterized caption - 1 bit per pixel, 460x128-pixel image", "2#130" => "2 characters of color composition type and information", "2#131" => "1 alphabetic character indicating the image area layout - P=portrait, L=landscape, S=square", "2#135" => "2 or 3 aphabetic characters containing the major national language of the object, according to the ISO 639:1988 codes", "2#150" => "2 characters identifying monaural/stereo and exact type of audio content", "2#151" => "6 numeric characters representing the audio sampling rate in hertz (Hz)", "2#152" => "2 numeric characters representing the number of bits in each audio sample", "2#153" => "6 numeric characters of the Audio Duration - HHMMSS", "2#154" => "Max 64 characters of the content of the end of an audio objectdata", "2#200" => "2 octet binary file format of the ObjectData Preview", "2#201" => "2 octet binary particular version of the ObjectData Preview File Format", "2#202" => "Max 256000 binary octets containing the ObjectData Preview data", "7#010" => "1 numeric character - 0=objectdata size not known, 1=objectdata size known at beginning of transfer", "7#020" => "4 octet binary maximum subfile dataset(s) size", "7#090" => "4 octet binary objectdata size if known at beginning of transfer", "7#095" => "4 octet binary largest possible objectdata size", "8#010" => "Subfile DataSet containing the objectdata itself; repeatable", "9#010" => "4 octet binary total objectdata size")]]></default>
4223
- <docblock line="2296">
4224
  <description><![CDATA[IPTC Dataset descriptions]]></description>
4225
  <long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
4226
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4227
- <tag line="2296" name="since" description="0.90"/>
4228
- <tag line="2296" name="var" description="" type="array">
4229
  <type by_reference="false">array</type>
4230
  </tag>
4231
  </docblock>
4232
  </property>
4233
- <property final="false" static="true" visibility="private" line="2405" namespace="global" package="Media Library Assistant">
4234
  <name>$mla_iptc_formats</name>
4235
  <default><![CDATA[array(0 => "No ObjectData", 1 => "IPTC-NAA Digital Newsphoto Parameter Record", 2 => "IPTC7901 Recommended Message Format", 3 => "Tagged Image File Format (Adobe/Aldus Image data)", 4 => "Illustrator (Adobe Graphics data)", 5 => "AppleSingle (Apple Computer Inc)", 6 => "NAA 89-3 (ANPA 1312)", 7 => "MacBinary II", 8 => "IPTC Unstructured Character Oriented File Format (UCOFF)", 9 => "United Press International ANPA 1312 variant", 10 => "United Press International Down-Load Message", 11 => "JPEG File Interchange (JFIF)", 12 => "Photo-CD Image-Pac (Eastman Kodak)", 13 => "Microsoft Bit Mapped Graphics File [*.BMP]", 14 => "Digital Audio File [*.WAV] (Microsoft & Creative Labs)", 15 => "Audio plus Moving Video [*.AVI] (Microsoft)", 16 => "PC DOS/Windows Executable Files [*.COM][*.EXE]", 17 => "Compressed Binary File [*.ZIP] (PKWare Inc)", 18 => "Audio Interchange File Format AIFF (Apple Computer Inc)", 19 => "RIFF Wave (Microsoft Corporation)", 20 => "Freehand (Macromedia/Aldus)", 21 => "Hypertext Markup Language - HTML (The Internet Society)", 22 => "MPEG 2 Audio Layer 2 (Musicom), ISO/IEC", 23 => "MPEG 2 Audio Layer 3, ISO/IEC", 24 => "Portable Document File (*.PDF) Adobe", 25 => "News Industry Text Format (NITF)", 26 => "Tape Archive (*.TAR)", 27 => "Tidningarnas Telegrambyrå NITF version (TTNITF DTD)", 28 => "Ritzaus Bureau NITF version (RBNITF DTD)", 29 => "Corel Draw [*.CDR]")]]></default>
4236
- <docblock line="2395">
4237
  <description><![CDATA[IPTC file format identifiers and descriptions]]></description>
4238
  <long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
4239
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
4240
- <tag line="2395" name="since" description="0.90"/>
4241
- <tag line="2395" name="var" description="" type="array">
4242
  <type by_reference="false">array</type>
4243
  </tag>
4244
  </docblock>
4245
  </property>
4246
- <property final="false" static="true" visibility="private" line="2448" namespace="global" package="Media Library Assistant">
4247
  <name>$mla_iptc_image_types</name>
4248
  <default><![CDATA[array("M" => "Monochrome", "Y" => "Yellow Component", "M" => "Magenta Component", "C" => "Cyan Component", "K" => "Black Component", "R" => "Red Component", "G" => "Green Component", "B" => "Blue Component", "T" => "Text Only", "F" => "Full colour composite, frame sequential", "L" => "Full colour composite, line sequential", "P" => "Full colour composite, pixel sequential", "S" => "Full colour composite, special interleaving")]]></default>
4249
- <docblock line="2438">
4250
  <description><![CDATA[IPTC image type identifiers and descriptions]]></description>
4251
  <long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
4252
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
4253
- <tag line="2438" name="since" description="0.90"/>
4254
- <tag line="2438" name="var" description="" type="array">
4255
  <type by_reference="false">array</type>
4256
  </tag>
4257
  </docblock>
4258
  </property>
4259
- <property final="false" static="true" visibility="private" line="2738" namespace="global" package="Media Library Assistant">
4260
  <name>$mla_IPTC_EXIF_errors</name>
4261
  <default><![CDATA[array()]]></default>
4262
- <docblock line="2730">
4263
  <description><![CDATA[Passes IPTC/EXIF parse errors between mla_IPTC_EXIF_error_handler
4264
  and mla_fetch_attachment_image_metadata]]></description>
4265
  <long-description><![CDATA[]]></long-description>
4266
- <tag line="2730" name="since" description="1.81"/>
4267
- <tag line="2730" name="var" description="" type="array">
4268
  <type by_reference="false">array</type>
4269
  </tag>
4270
  </docblock>
@@ -4570,1017 +4639,1017 @@ and mla_fetch_attachment_image_metadata]]></description>
4570
  <type/>
4571
  </argument>
4572
  </method>
4573
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="874" package="Media Library Assistant">
4574
  <name>mla_expand_field_level_parameters</name>
4575
  <full_name>mla_expand_field_level_parameters</full_name>
4576
- <docblock line="856">
4577
  <description><![CDATA[Analyze a template, expanding Field-level Markup Substitution Parameters]]></description>
4578
  <long-description><![CDATA[<p>Field-level parameters must have one of the following prefix values:
4579
  template, request, query, custom, terms, meta, iptc, exif, xmp, pdf.
4580
  All but request and query require an attachment ID.</p>]]></long-description>
4581
- <tag line="856" name="since" description="1.50"/>
4582
- <tag line="856" name="param" description="A formatting string containing [+placeholders+]" type="string" variable="$tpl">
4583
  <type by_reference="false">string</type>
4584
  </tag>
4585
- <tag line="856" name="param" description="Optional: an array of values from the query, if any, e.g. shortcode parameters" type="array" variable="$query">
4586
  <type by_reference="false">array</type>
4587
  </tag>
4588
- <tag line="856" name="param" description="Optional: an array of values to add to the returned array" type="array" variable="$markup_values">
4589
  <type by_reference="false">array</type>
4590
  </tag>
4591
- <tag line="856" name="param" description="Optional: attachment ID for attachment-specific placeholders" type="integer" variable="$post_id">
4592
  <type by_reference="false">integer</type>
4593
  </tag>
4594
- <tag line="856" name="param" description="Optional: for option 'multi', retain existing values" type="boolean" variable="$keep_existing">
4595
  <type by_reference="false">boolean</type>
4596
  </tag>
4597
- <tag line="856" name="param" description="Optional: default option value" type="string" variable="$default_option">
4598
  <type by_reference="false">string</type>
4599
  </tag>
4600
- <tag line="856" name="return" description="( parameter =&gt; value ) for all field-level parameters and anything in $markup_values" type="array">
4601
  <type by_reference="false">array</type>
4602
  </tag>
4603
  </docblock>
4604
- <argument line="874">
4605
  <name>$tpl</name>
4606
  <default><![CDATA[]]></default>
4607
  <type/>
4608
  </argument>
4609
- <argument line="874">
4610
  <name>$query</name>
4611
  <default><![CDATA[NULL]]></default>
4612
  <type/>
4613
  </argument>
4614
- <argument line="874">
4615
  <name>$markup_values</name>
4616
  <default><![CDATA[array()]]></default>
4617
  <type/>
4618
  </argument>
4619
- <argument line="874">
4620
  <name>$post_id</name>
4621
  <default><![CDATA[0]]></default>
4622
  <type/>
4623
  </argument>
4624
- <argument line="874">
4625
  <name>$keep_existing</name>
4626
  <default><![CDATA[false]]></default>
4627
  <type/>
4628
  </argument>
4629
- <argument line="874">
4630
  <name>$default_option</name>
4631
  <default><![CDATA['text']]></default>
4632
  <type/>
4633
  </argument>
4634
  </method>
4635
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1137" package="Media Library Assistant">
4636
  <name>mla_get_template_placeholders</name>
4637
  <full_name>mla_get_template_placeholders</full_name>
4638
- <docblock line="1126">
4639
  <description><![CDATA[Analyze a template, returning an array of the placeholders it contains]]></description>
4640
  <long-description><![CDATA[]]></long-description>
4641
- <tag line="1126" name="since" description="0.90"/>
4642
- <tag line="1126" name="param" description="A formatting string containing [+placeholders+]" type="string" variable="$tpl">
4643
  <type by_reference="false">string</type>
4644
  </tag>
4645
- <tag line="1126" name="param" description="Optional: default option value" type="string" variable="$default_option">
4646
  <type by_reference="false">string</type>
4647
  </tag>
4648
- <tag line="1126" name="return" description="Placeholder information: each entry is an array with ['prefix'] =&gt; string, ['value'] =&gt; string, ['option'] =&gt; string 'text'|single'|'export'|'array'|'multi'" type="array">
4649
  <type by_reference="false">array</type>
4650
  </tag>
4651
  </docblock>
4652
- <argument line="1137">
4653
  <name>$tpl</name>
4654
  <default><![CDATA[]]></default>
4655
  <type/>
4656
  </argument>
4657
- <argument line="1137">
4658
  <name>$default_option</name>
4659
  <default><![CDATA['text']]></default>
4660
  <type/>
4661
  </argument>
4662
  </method>
4663
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1306" package="Media Library Assistant">
4664
  <name>mla_count_list_table_items</name>
4665
  <full_name>mla_count_list_table_items</full_name>
4666
- <docblock line="1293">
4667
  <description><![CDATA[Get the total number of attachment posts]]></description>
4668
  <long-description><![CDATA[<p>Compatibility shim for MLAQuery::mla_count_list_table_items</p>]]></long-description>
4669
- <tag line="1293" name="since" description="0.30"/>
4670
- <tag line="1293" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
4671
  <type by_reference="false">array</type>
4672
  </tag>
4673
- <tag line="1293" name="param" description="(optional) number of rows to skip over to reach desired page" type="int" variable="$offset">
4674
  <type by_reference="false">int</type>
4675
  </tag>
4676
- <tag line="1293" name="param" description="(optional) number of rows on each page" type="int" variable="$count">
4677
  <type by_reference="false">int</type>
4678
  </tag>
4679
- <tag line="1293" name="return" description="Number of attachment posts" type="integer">
4680
  <type by_reference="false">integer</type>
4681
  </tag>
4682
  </docblock>
4683
- <argument line="1306">
4684
  <name>$request</name>
4685
  <default><![CDATA[]]></default>
4686
  <type/>
4687
  </argument>
4688
- <argument line="1306">
4689
  <name>$offset</name>
4690
  <default><![CDATA[NULL]]></default>
4691
  <type/>
4692
  </argument>
4693
- <argument line="1306">
4694
  <name>$count</name>
4695
  <default><![CDATA[NULL]]></default>
4696
  <type/>
4697
  </argument>
4698
  </method>
4699
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1323" package="Media Library Assistant">
4700
  <name>mla_query_list_table_items</name>
4701
  <full_name>mla_query_list_table_items</full_name>
4702
- <docblock line="1310">
4703
  <description><![CDATA[Retrieve attachment objects for list table display]]></description>
4704
  <long-description><![CDATA[<p>Compatibility shim for MLAQuery::mla_query_list_table_items</p>]]></long-description>
4705
- <tag line="1310" name="since" description="0.1"/>
4706
- <tag line="1310" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
4707
  <type by_reference="false">array</type>
4708
  </tag>
4709
- <tag line="1310" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
4710
  <type by_reference="false">int</type>
4711
  </tag>
4712
- <tag line="1310" name="param" description="number of rows on each page" type="int" variable="$count">
4713
  <type by_reference="false">int</type>
4714
  </tag>
4715
- <tag line="1310" name="return" description="attachment objects (posts) including parent data, meta data and references" type="array">
4716
  <type by_reference="false">array</type>
4717
  </tag>
4718
  </docblock>
4719
- <argument line="1323">
4720
  <name>$request</name>
4721
  <default><![CDATA[]]></default>
4722
  <type/>
4723
  </argument>
4724
- <argument line="1323">
4725
  <name>$offset</name>
4726
  <default><![CDATA[]]></default>
4727
  <type/>
4728
  </argument>
4729
- <argument line="1323">
4730
  <name>$count</name>
4731
  <default><![CDATA[]]></default>
4732
  <type/>
4733
  </argument>
4734
  </method>
4735
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1341" package="Media Library Assistant">
4736
  <name>mla_get_attachment_by_id</name>
4737
  <full_name>mla_get_attachment_by_id</full_name>
4738
- <docblock line="1327">
4739
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
4740
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
4741
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
4742
- <tag line="1327" name="since" description="0.1"/>
4743
- <tag line="1327" name="uses" description="\global\$post" refers="\global\$post"/>
4744
- <tag line="1327" name="param" description="The ID of the attachment post" type="integer" variable="$post_id">
4745
  <type by_reference="false">integer</type>
4746
  </tag>
4747
- <tag line="1327" name="param" description="True to add references, false to skip references" type="boolean" variable="$add_references">
4748
  <type by_reference="false">boolean</type>
4749
  </tag>
4750
- <tag line="1327" name="return" description="NULL on failure else associative array" type="NULL|array">
4751
  <type by_reference="false">NULL</type>
4752
  <type by_reference="false">array</type>
4753
  </tag>
4754
  </docblock>
4755
- <argument line="1341">
4756
  <name>$post_id</name>
4757
  <default><![CDATA[]]></default>
4758
  <type/>
4759
  </argument>
4760
- <argument line="1341">
4761
  <name>$add_references</name>
4762
  <default><![CDATA[true]]></default>
4763
  <type/>
4764
  </argument>
4765
  </method>
4766
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1399" package="Media Library Assistant">
4767
  <name>_set_array_element</name>
4768
  <full_name>_set_array_element</full_name>
4769
- <docblock line="1388">
4770
  <description><![CDATA[Adds or replaces the value of a key in a possibly nested array structure]]></description>
4771
  <long-description><![CDATA[]]></long-description>
4772
- <tag line="1388" name="since" description="1.51"/>
4773
- <tag line="1388" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
4774
  <type by_reference="false">string</type>
4775
  </tag>
4776
- <tag line="1388" name="param" description="replacement value, string or array, by reference" type="mixed" variable="$value">
4777
  <type by_reference="false">mixed</type>
4778
  </tag>
4779
- <tag line="1388" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
4780
  <type by_reference="false">array</type>
4781
  </tag>
4782
- <tag line="1388" name="return" description="true if $needle element set, false if not" type="boolean">
4783
  <type by_reference="false">boolean</type>
4784
  </tag>
4785
  </docblock>
4786
- <argument line="1399">
4787
  <name>$needle</name>
4788
  <default><![CDATA[]]></default>
4789
  <type/>
4790
  </argument>
4791
- <argument line="1399">
4792
  <name>$value</name>
4793
  <default><![CDATA[]]></default>
4794
  <type/>
4795
  </argument>
4796
- <argument line="1399">
4797
  <name>$haystack</name>
4798
  <default><![CDATA[]]></default>
4799
  <type/>
4800
  </argument>
4801
  </method>
4802
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1433" package="Media Library Assistant">
4803
  <name>_unset_array_element</name>
4804
  <full_name>_unset_array_element</full_name>
4805
- <docblock line="1423">
4806
  <description><![CDATA[Deletes the value of a key in a possibly nested array structure]]></description>
4807
  <long-description><![CDATA[]]></long-description>
4808
- <tag line="1423" name="since" description="1.51"/>
4809
- <tag line="1423" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
4810
  <type by_reference="false">string</type>
4811
  </tag>
4812
- <tag line="1423" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
4813
  <type by_reference="false">array</type>
4814
  </tag>
4815
- <tag line="1423" name="return" description="true if $needle element found, false if not" type="boolean">
4816
  <type by_reference="false">boolean</type>
4817
  </tag>
4818
  </docblock>
4819
- <argument line="1433">
4820
  <name>$needle</name>
4821
  <default><![CDATA[]]></default>
4822
  <type/>
4823
  </argument>
4824
- <argument line="1433">
4825
  <name>$haystack</name>
4826
  <default><![CDATA[]]></default>
4827
  <type/>
4828
  </argument>
4829
  </method>
4830
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1468" package="Media Library Assistant">
4831
  <name>mla_find_array_element</name>
4832
  <full_name>mla_find_array_element</full_name>
4833
- <docblock line="1453">
4834
  <description><![CDATA[Finds the value of a key in a possibly nested array structure]]></description>
4835
  <long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
4836
  Also used with the audio/video ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
4837
- <tag line="1453" name="since" description="1.30"/>
4838
- <tag line="1453" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
4839
  <type by_reference="false">string</type>
4840
  </tag>
4841
- <tag line="1453" name="param" description="PHP nested arrays" type="array" variable="$haystack">
4842
  <type by_reference="false">array</type>
4843
  </tag>
4844
- <tag line="1453" name="param" description="data option; 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
4845
  <type by_reference="false">string</type>
4846
  </tag>
4847
- <tag line="1453" name="param" description="keep existing values - for 'multi' option" type="boolean" variable="$keep_existing">
4848
  <type by_reference="false">boolean</type>
4849
  </tag>
4850
- <tag line="1453" name="return" description="string or array value matching key(.key ...) or ''" type="mixed">
4851
  <type by_reference="false">mixed</type>
4852
  </tag>
4853
  </docblock>
4854
- <argument line="1468">
4855
  <name>$needle</name>
4856
  <default><![CDATA[]]></default>
4857
  <type/>
4858
  </argument>
4859
- <argument line="1468">
4860
  <name>$haystack</name>
4861
  <default><![CDATA[]]></default>
4862
  <type/>
4863
  </argument>
4864
- <argument line="1468">
4865
  <name>$option</name>
4866
  <default><![CDATA[]]></default>
4867
  <type/>
4868
  </argument>
4869
- <argument line="1468">
4870
  <name>$keep_existing</name>
4871
  <default><![CDATA[false]]></default>
4872
  <type/>
4873
  </argument>
4874
  </method>
4875
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1566" package="Media Library Assistant">
4876
  <name>mla_save_post_action</name>
4877
  <full_name>mla_save_post_action</full_name>
4878
- <docblock line="1557">
4879
  <description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
4880
  <long-description><![CDATA[]]></long-description>
4881
- <tag line="1557" name="since" description="1.00"/>
4882
- <tag line="1557" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
4883
  <type by_reference="false">integer</type>
4884
  </tag>
4885
- <tag line="1557" name="return" description="" type="void">
4886
  <type by_reference="false">void</type>
4887
  </tag>
4888
  </docblock>
4889
- <argument line="1566">
4890
  <name>$post_id</name>
4891
  <default><![CDATA[]]></default>
4892
  <type/>
4893
  </argument>
4894
  </method>
4895
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1580" package="Media Library Assistant">
4896
  <name>mla_parse_pdf_date</name>
4897
  <full_name>mla_parse_pdf_date</full_name>
4898
- <docblock line="1571">
4899
  <description><![CDATA[Parse a PDF date string]]></description>
4900
  <long-description><![CDATA[]]></long-description>
4901
- <tag line="1571" name="since" description="1.50"/>
4902
- <tag line="1571" name="param" description="PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm" type="string" variable="$source_string">
4903
  <type by_reference="false">string</type>
4904
  </tag>
4905
- <tag line="1571" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
4906
  <type by_reference="false">string</type>
4907
  </tag>
4908
  </docblock>
4909
- <argument line="1580">
4910
  <name>$source_string</name>
4911
  <default><![CDATA[]]></default>
4912
  <type/>
4913
  </argument>
4914
  </method>
4915
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1603" package="Media Library Assistant">
4916
  <name>_parse_iso8601_date</name>
4917
  <full_name>_parse_iso8601_date</full_name>
4918
- <docblock line="1594">
4919
  <description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
4920
  <long-description><![CDATA[]]></long-description>
4921
- <tag line="1594" name="since" description="1.50"/>
4922
- <tag line="1594" name="param" description="ISO string of the form YYYY-MM-DDTHH:MM:SS-HH:MM (inc time zone)" type="string" variable="$source_string">
4923
  <type by_reference="false">string</type>
4924
  </tag>
4925
- <tag line="1594" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
4926
  <type by_reference="false">string</type>
4927
  </tag>
4928
  </docblock>
4929
- <argument line="1603">
4930
  <name>$source_string</name>
4931
  <default><![CDATA[]]></default>
4932
  <type/>
4933
  </argument>
4934
  </method>
4935
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1626" package="Media Library Assistant">
4936
  <name>_parse_xmp_array</name>
4937
  <full_name>_parse_xmp_array</full_name>
4938
- <docblock line="1617">
4939
  <description><![CDATA[Parse an XMP array value, stripping namespace prefixes and Seq/Alt/Bag arrays]]></description>
4940
  <long-description><![CDATA[]]></long-description>
4941
- <tag line="1617" name="since" description="2.10"/>
4942
- <tag line="1617" name="param" description="XMP multi-valued element" type="array" variable="$values">
4943
  <type by_reference="false">array</type>
4944
  </tag>
4945
- <tag line="1617" name="return" description="Simplified array or string value" type="mixed">
4946
  <type by_reference="false">mixed</type>
4947
  </tag>
4948
  </docblock>
4949
- <argument line="1626">
4950
  <name>$values</name>
4951
  <default><![CDATA[]]></default>
4952
  <type/>
4953
  </argument>
4954
  </method>
4955
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1672" package="Media Library Assistant">
4956
  <name>_nonempty_value</name>
4957
  <full_name>_nonempty_value</full_name>
4958
- <docblock line="1661">
4959
  <description><![CDATA[Search the namespace array for a non-empty value]]></description>
4960
  <long-description><![CDATA[]]></long-description>
4961
- <tag line="1661" name="since" description="2.10"/>
4962
- <tag line="1661" name="param" description="namespace array" type="array" variable="$namespace_array">
4963
  <type by_reference="false">array</type>
4964
  </tag>
4965
- <tag line="1661" name="param" description="namespace" type="string" variable="$namespace">
4966
  <type by_reference="false">string</type>
4967
  </tag>
4968
- <tag line="1661" name="param" description="key" type="string" variable="$key">
4969
  <type by_reference="false">string</type>
4970
  </tag>
4971
- <tag line="1661" name="return" description="trimmed value of the key within the namespace" type="string">
4972
  <type by_reference="false">string</type>
4973
  </tag>
4974
  </docblock>
4975
- <argument line="1672">
4976
  <name>$namespace_array</name>
4977
  <default><![CDATA[]]></default>
4978
  <type/>
4979
  </argument>
4980
- <argument line="1672">
4981
  <name>$namespace</name>
4982
  <default><![CDATA[]]></default>
4983
  <type/>
4984
  </argument>
4985
- <argument line="1672">
4986
  <name>$key</name>
4987
  <default><![CDATA[]]></default>
4988
  <type/>
4989
  </argument>
4990
  </method>
4991
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1701" package="Media Library Assistant">
4992
  <name>mla_parse_xmp_metadata</name>
4993
  <full_name>mla_parse_xmp_metadata</full_name>
4994
- <docblock line="1691">
4995
  <description><![CDATA[Extract XMP meta data from a file]]></description>
4996
  <long-description><![CDATA[]]></long-description>
4997
- <tag line="1691" name="since" description="2.10"/>
4998
- <tag line="1691" name="param" description="full path and file name" type="string" variable="$file_name">
4999
  <type by_reference="false">string</type>
5000
  </tag>
5001
- <tag line="1691" name="param" description="offset within the file of the search start point" type="integer" variable="$file_offset">
5002
  <type by_reference="false">integer</type>
5003
  </tag>
5004
- <tag line="1691" name="return" description="array of metadata values or NULL on failure" type="mixed">
5005
  <type by_reference="false">mixed</type>
5006
  </tag>
5007
  </docblock>
5008
- <argument line="1701">
5009
  <name>$file_name</name>
5010
  <default><![CDATA[]]></default>
5011
  <type/>
5012
  </argument>
5013
- <argument line="1701">
5014
  <name>$file_offset</name>
5015
  <default><![CDATA[]]></default>
5016
  <type/>
5017
  </argument>
5018
  </method>
5019
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2076" package="Media Library Assistant">
5020
  <name>_bin_to_utf8</name>
5021
  <full_name>_bin_to_utf8</full_name>
5022
- <docblock line="2067">
5023
  <description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
5024
  <long-description><![CDATA[]]></long-description>
5025
- <tag line="2067" name="since" description="1.41"/>
5026
- <tag line="2067" name="param" description="unencoded string" type="string" variable="$string">
5027
  <type by_reference="false">string</type>
5028
  </tag>
5029
- <tag line="2067" name="return" description="UTF-8 encoded string" type="string">
5030
  <type by_reference="false">string</type>
5031
  </tag>
5032
  </docblock>
5033
- <argument line="2076">
5034
  <name>$string</name>
5035
  <default><![CDATA[]]></default>
5036
  <type/>
5037
  </argument>
5038
  </method>
5039
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2476" package="Media Library Assistant">
5040
  <name>mla_iptc_metadata_value</name>
5041
  <full_name>mla_iptc_metadata_value</full_name>
5042
- <docblock line="2464">
5043
  <description><![CDATA[Parse one IPTC metadata field]]></description>
5044
  <long-description><![CDATA[]]></long-description>
5045
- <tag line="2464" name="since" description="1.41"/>
5046
- <tag line="2464" name="param" description="field name - IPTC Identifier or friendly name/slug" type="string" variable="$iptc_key">
5047
  <type by_reference="false">string</type>
5048
  </tag>
5049
- <tag line="2464" name="param" description="metadata array containing iptc, exif, xmp and pdf metadata arrays" type="array" variable="$item_metadata">
5050
  <type by_reference="false">array</type>
5051
  </tag>
5052
- <tag line="2464" name="param" description="data option; 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
5053
  <type by_reference="false">string</type>
5054
  </tag>
5055
- <tag line="2464" name="param" description="Optional: for option 'multi', retain existing values" type="boolean" variable="$keep_existing">
5056
  <type by_reference="false">boolean</type>
5057
  </tag>
5058
- <tag line="2464" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
5059
  <type by_reference="false">mixed</type>
5060
  </tag>
5061
  </docblock>
5062
- <argument line="2476">
5063
  <name>$iptc_key</name>
5064
  <default><![CDATA[]]></default>
5065
  <type/>
5066
  </argument>
5067
- <argument line="2476">
5068
  <name>$item_metadata</name>
5069
  <default><![CDATA[]]></default>
5070
  <type/>
5071
  </argument>
5072
- <argument line="2476">
5073
  <name>$option</name>
5074
  <default><![CDATA['text']]></default>
5075
  <type/>
5076
  </argument>
5077
- <argument line="2476">
5078
  <name>$keep_existing</name>
5079
  <default><![CDATA[false]]></default>
5080
  <type/>
5081
  </argument>
5082
  </method>
5083
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2519" package="Media Library Assistant">
5084
  <name>mla_exif_metadata_value</name>
5085
  <full_name>mla_exif_metadata_value</full_name>
5086
- <docblock line="2505">
5087
  <description><![CDATA[Parse one EXIF metadata field]]></description>
5088
  <long-description><![CDATA[<p>Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
5089
- <tag line="2505" name="since" description="1.13"/>
5090
- <tag line="2505" name="param" description="field name" type="string" variable="$exif_key">
5091
  <type by_reference="false">string</type>
5092
  </tag>
5093
- <tag line="2505" name="param" description="metadata array containing iptc, exif, xmp and pdf metadata arrays" type="array" variable="$item_metadata">
5094
  <type by_reference="false">array</type>
5095
  </tag>
5096
- <tag line="2505" name="param" description="data option; 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
5097
  <type by_reference="false">string</type>
5098
  </tag>
5099
- <tag line="2505" name="param" description="Optional: for option 'multi', retain existing values" type="boolean" variable="$keep_existing">
5100
  <type by_reference="false">boolean</type>
5101
  </tag>
5102
- <tag line="2505" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
5103
  <type by_reference="false">mixed</type>
5104
  </tag>
5105
  </docblock>
5106
- <argument line="2519">
5107
  <name>$exif_key</name>
5108
  <default><![CDATA[]]></default>
5109
  <type/>
5110
  </argument>
5111
- <argument line="2519">
5112
  <name>$item_metadata</name>
5113
  <default><![CDATA[]]></default>
5114
  <type/>
5115
  </argument>
5116
- <argument line="2519">
5117
  <name>$option</name>
5118
  <default><![CDATA['text']]></default>
5119
  <type/>
5120
  </argument>
5121
- <argument line="2519">
5122
  <name>$keep_existing</name>
5123
  <default><![CDATA[false]]></default>
5124
  <type/>
5125
  </argument>
5126
  </method>
5127
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2572" package="Media Library Assistant">
5128
  <name>mla_xmp_metadata_value</name>
5129
  <full_name>mla_xmp_metadata_value</full_name>
5130
- <docblock line="2558">
5131
  <description><![CDATA[Parse one XMP metadata field]]></description>
5132
  <long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_XMP'.</p>]]></long-description>
5133
- <tag line="2558" name="since" description="2.10"/>
5134
- <tag line="2558" name="param" description="field name" type="string" variable="$xmp_key">
5135
  <type by_reference="false">string</type>
5136
  </tag>
5137
- <tag line="2558" name="param" description="XMP metadata array" type="array" variable="$xmp_metadata">
5138
  <type by_reference="false">array</type>
5139
  </tag>
5140
- <tag line="2558" name="param" description="data option; 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
5141
  <type by_reference="false">string</type>
5142
  </tag>
5143
- <tag line="2558" name="param" description="Optional: for option 'multi', retain existing values" type="boolean" variable="$keep_existing">
5144
  <type by_reference="false">boolean</type>
5145
  </tag>
5146
- <tag line="2558" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
5147
  <type by_reference="false">mixed</type>
5148
  </tag>
5149
  </docblock>
5150
- <argument line="2572">
5151
  <name>$xmp_key</name>
5152
  <default><![CDATA[]]></default>
5153
  <type/>
5154
  </argument>
5155
- <argument line="2572">
5156
  <name>$xmp_metadata</name>
5157
  <default><![CDATA[]]></default>
5158
  <type/>
5159
  </argument>
5160
- <argument line="2572">
5161
  <name>$option</name>
5162
  <default><![CDATA['text']]></default>
5163
  <type/>
5164
  </argument>
5165
- <argument line="2572">
5166
  <name>$keep_existing</name>
5167
  <default><![CDATA[false]]></default>
5168
  <type/>
5169
  </argument>
5170
  </method>
5171
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2607" package="Media Library Assistant">
5172
  <name>mla_id3_metadata_value</name>
5173
  <full_name>mla_id3_metadata_value</full_name>
5174
- <docblock line="2593">
5175
  <description><![CDATA[Parse one ID3 (audio/visual) metadata field]]></description>
5176
  <long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_ID3'.</p>]]></long-description>
5177
- <tag line="2593" name="since" description="2.13"/>
5178
- <tag line="2593" name="param" description="field name" type="string" variable="$id3_key">
5179
  <type by_reference="false">string</type>
5180
  </tag>
5181
- <tag line="2593" name="param" description="ID3 metadata array" type="array" variable="$id3_metadata">
5182
  <type by_reference="false">array</type>
5183
  </tag>
5184
- <tag line="2593" name="param" description="data option; 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
5185
  <type by_reference="false">string</type>
5186
  </tag>
5187
- <tag line="2593" name="param" description="Optional: for option 'multi', retain existing values" type="boolean" variable="$keep_existing">
5188
  <type by_reference="false">boolean</type>
5189
  </tag>
5190
- <tag line="2593" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
5191
  <type by_reference="false">mixed</type>
5192
  </tag>
5193
  </docblock>
5194
- <argument line="2607">
5195
  <name>$id3_key</name>
5196
  <default><![CDATA[]]></default>
5197
  <type/>
5198
  </argument>
5199
- <argument line="2607">
5200
  <name>$id3_metadata</name>
5201
  <default><![CDATA[]]></default>
5202
  <type/>
5203
  </argument>
5204
- <argument line="2607">
5205
  <name>$option</name>
5206
  <default><![CDATA[]]></default>
5207
  <type/>
5208
  </argument>
5209
- <argument line="2607">
5210
  <name>$keep_existing</name>
5211
  <default><![CDATA[]]></default>
5212
  <type/>
5213
  </argument>
5214
  </method>
5215
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2640" package="Media Library Assistant">
5216
  <name>mla_pdf_metadata_value</name>
5217
  <full_name>mla_pdf_metadata_value</full_name>
5218
- <docblock line="2628">
5219
  <description><![CDATA[Parse one PDF metadata field]]></description>
5220
  <long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
5221
- <tag line="2628" name="since" description="1.50"/>
5222
- <tag line="2628" name="param" description="field name" type="string" variable="$pdf_key">
5223
  <type by_reference="false">string</type>
5224
  </tag>
5225
- <tag line="2628" name="param" description="metadata array containing iptc, exif, xmp and pdf metadata arrays" type="string" variable="$item_metadata">
5226
  <type by_reference="false">string</type>
5227
  </tag>
5228
- <tag line="2628" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
5229
  <type by_reference="false">mixed</type>
5230
  </tag>
5231
  </docblock>
5232
- <argument line="2640">
5233
  <name>$pdf_key</name>
5234
  <default><![CDATA[]]></default>
5235
  <type/>
5236
  </argument>
5237
- <argument line="2640">
5238
  <name>$item_metadata</name>
5239
  <default><![CDATA[]]></default>
5240
  <type/>
5241
  </argument>
5242
  </method>
5243
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2684" package="Media Library Assistant">
5244
  <name>_rational_to_decimal</name>
5245
  <full_name>_rational_to_decimal</full_name>
5246
- <docblock line="2675">
5247
  <description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
5248
  <long-description><![CDATA[]]></long-description>
5249
- <tag line="2675" name="since" description="1.50"/>
5250
- <tag line="2675" name="param" description="array( 0 =&gt; numerator, 1 =&gt; denominator )" type="array" variable="$rational">
5251
  <type by_reference="false">array</type>
5252
  </tag>
5253
- <tag line="2675" name="return" description="numerator/denominator" type="float">
5254
  <type by_reference="false">float</type>
5255
  </tag>
5256
  </docblock>
5257
- <argument line="2684">
5258
  <name>$rational</name>
5259
  <default><![CDATA[]]></default>
5260
  <type/>
5261
  </argument>
5262
  </method>
5263
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2701" package="Media Library Assistant">
5264
  <name>_rational_to_string</name>
5265
  <full_name>_rational_to_string</full_name>
5266
- <docblock line="2689">
5267
  <description><![CDATA[Convert an EXIF rational value to a formatted string]]></description>
5268
  <long-description><![CDATA[]]></long-description>
5269
- <tag line="2689" name="since" description="2.02"/>
5270
- <tag line="2689" name="param" description="numerator/denominator" type="string" variable="$rational">
5271
  <type by_reference="false">string</type>
5272
  </tag>
5273
- <tag line="2689" name="param" description="format for integer values" type="string" variable="$integer_format">
5274
  <type by_reference="false">string</type>
5275
  </tag>
5276
- <tag line="2689" name="param" description="format for fractional values from -1 to +1" type="string" variable="$fraction_format">
5277
  <type by_reference="false">string</type>
5278
  </tag>
5279
- <tag line="2689" name="param" description="format for integer.fraction values" type="string" variable="$mixed_format">
5280
  <type by_reference="false">string</type>
5281
  </tag>
5282
- <tag line="2689" name="return" description="formatted value or boolean false if no value available" type="mixed">
5283
  <type by_reference="false">mixed</type>
5284
  </tag>
5285
  </docblock>
5286
- <argument line="2701">
5287
  <name>$rational</name>
5288
  <default><![CDATA[]]></default>
5289
  <type/>
5290
  </argument>
5291
- <argument line="2701">
5292
  <name>$integer_format</name>
5293
  <default><![CDATA[]]></default>
5294
  <type/>
5295
  </argument>
5296
- <argument line="2701">
5297
  <name>$fraction_format</name>
5298
  <default><![CDATA[]]></default>
5299
  <type/>
5300
  </argument>
5301
- <argument line="2701">
5302
  <name>$mixed_format</name>
5303
  <default><![CDATA[]]></default>
5304
  <type/>
5305
  </argument>
5306
  </method>
5307
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2752" package="Media Library Assistant">
5308
  <name>mla_IPTC_EXIF_error_handler</name>
5309
  <full_name>mla_IPTC_EXIF_error_handler</full_name>
5310
- <docblock line="2740">
5311
  <description><![CDATA[Intercept IPTC and EXIF parse errors]]></description>
5312
  <long-description><![CDATA[]]></long-description>
5313
- <tag line="2740" name="since" description="1.81"/>
5314
- <tag line="2740" name="param" description="the level of the error raised" type="int" variable="$type">
5315
  <type by_reference="false">int</type>
5316
  </tag>
5317
- <tag line="2740" name="param" description="the error message" type="string" variable="$string">
5318
  <type by_reference="false">string</type>
5319
  </tag>
5320
- <tag line="2740" name="param" description="the filename that the error was raised in" type="string" variable="$file">
5321
  <type by_reference="false">string</type>
5322
  </tag>
5323
- <tag line="2740" name="param" description="the line number the error was raised at" type="int" variable="$line">
5324
  <type by_reference="false">int</type>
5325
  </tag>
5326
- <tag line="2740" name="return" description="true, to bypass PHP error handler" type="boolean">
5327
  <type by_reference="false">boolean</type>
5328
  </tag>
5329
  </docblock>
5330
- <argument line="2752">
5331
  <name>$type</name>
5332
  <default><![CDATA[]]></default>
5333
  <type/>
5334
  </argument>
5335
- <argument line="2752">
5336
  <name>$string</name>
5337
  <default><![CDATA[]]></default>
5338
  <type/>
5339
  </argument>
5340
- <argument line="2752">
5341
  <name>$file</name>
5342
  <default><![CDATA[]]></default>
5343
  <type/>
5344
  </argument>
5345
- <argument line="2752">
5346
  <name>$line</name>
5347
  <default><![CDATA[]]></default>
5348
  <type/>
5349
  </argument>
5350
  </method>
5351
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2793" package="Media Library Assistant">
5352
  <name>mla_fetch_attachment_id3_metadata</name>
5353
  <full_name>mla_fetch_attachment_id3_metadata</full_name>
5354
- <docblock line="2780">
5355
  <description><![CDATA[Fetch and filter ID3 metadata for an audio or video attachment]]></description>
5356
  <long-description><![CDATA[<p>Adapted from /wp-admin/includes/media.php functions wp_add_id3_tag_data,
5357
  wp_read_video_metadata and wp_read_audio_metadata</p>]]></long-description>
5358
- <tag line="2780" name="since" description="2.13"/>
5359
- <tag line="2780" name="param" description="post ID of attachment" type="int" variable="$post_id">
5360
  <type by_reference="false">int</type>
5361
  </tag>
5362
- <tag line="2780" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
5363
  <type by_reference="false">string</type>
5364
  </tag>
5365
- <tag line="2780" name="return" description="Meta data variables, including 'audio' and 'video'" type="array">
5366
  <type by_reference="false">array</type>
5367
  </tag>
5368
  </docblock>
5369
- <argument line="2793">
5370
  <name>$post_id</name>
5371
  <default><![CDATA[]]></default>
5372
  <type/>
5373
  </argument>
5374
- <argument line="2793">
5375
  <name>$path</name>
5376
  <default><![CDATA['']]></default>
5377
  <type/>
5378
  </argument>
5379
  </method>
5380
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2887" package="Media Library Assistant">
5381
  <name>mla_fetch_attachment_image_metadata</name>
5382
  <full_name>mla_fetch_attachment_image_metadata</full_name>
5383
- <docblock line="2877">
5384
  <description><![CDATA[Fetch and filter IPTC and EXIF, XMP or PDF metadata for an image attachment]]></description>
5385
  <long-description><![CDATA[]]></long-description>
5386
- <tag line="2877" name="since" description="0.90"/>
5387
- <tag line="2877" name="param" description="post ID of attachment" type="int" variable="$post_id">
5388
  <type by_reference="false">int</type>
5389
  </tag>
5390
- <tag line="2877" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
5391
  <type by_reference="false">string</type>
5392
  </tag>
5393
- <tag line="2877" name="return" description="Meta data variables, IPTC and EXIF or PDF" type="array">
5394
  <type by_reference="false">array</type>
5395
  </tag>
5396
  </docblock>
5397
- <argument line="2887">
5398
  <name>$post_id</name>
5399
  <default><![CDATA[]]></default>
5400
  <type/>
5401
  </argument>
5402
- <argument line="2887">
5403
  <name>$path</name>
5404
  <default><![CDATA['']]></default>
5405
  <type/>
5406
  </argument>
5407
  </method>
5408
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3252" package="Media Library Assistant">
5409
  <name>mla_update_wp_attachment_metadata</name>
5410
  <full_name>mla_update_wp_attachment_metadata</full_name>
5411
- <docblock line="3242">
5412
  <description><![CDATA[Update "meta:" data for a single attachment]]></description>
5413
  <long-description><![CDATA[]]></long-description>
5414
- <tag line="3242" name="since" description="1.51"/>
5415
- <tag line="3242" name="param" description="The current wp_attachment_metadata value" type="array" variable="$current_values">
5416
  <type by_reference="false">array</type>
5417
  </tag>
5418
- <tag line="3242" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
5419
  <type by_reference="false">array</type>
5420
  </tag>
5421
- <tag line="3242" name="return" description="success/failure message(s); empty string if no changes." type="string">
5422
  <type by_reference="false">string</type>
5423
  </tag>
5424
  </docblock>
5425
- <argument line="3252">
5426
  <name>$current_values</name>
5427
  <default><![CDATA[]]></default>
5428
  <type/>
5429
  </argument>
5430
- <argument line="3252">
5431
  <name>$new_meta</name>
5432
  <default><![CDATA[]]></default>
5433
  <type/>
5434
  </argument>
5435
  </method>
5436
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3336" package="Media Library Assistant">
5437
  <name>mla_update_item_postmeta</name>
5438
  <full_name>mla_update_item_postmeta</full_name>
5439
- <docblock line="3326">
5440
  <description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
5441
  <long-description><![CDATA[]]></long-description>
5442
- <tag line="3326" name="since" description="1.40"/>
5443
- <tag line="3326" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
5444
  <type by_reference="false">int</type>
5445
  </tag>
5446
- <tag line="3326" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
5447
  <type by_reference="false">array</type>
5448
  </tag>
5449
- <tag line="3326" name="return" description="success/failure message(s)" type="string">
5450
  <type by_reference="false">string</type>
5451
  </tag>
5452
  </docblock>
5453
- <argument line="3336">
5454
  <name>$post_id</name>
5455
  <default><![CDATA[]]></default>
5456
  <type/>
5457
  </argument>
5458
- <argument line="3336">
5459
  <name>$new_meta</name>
5460
  <default><![CDATA[]]></default>
5461
  <type/>
5462
  </argument>
5463
  </method>
5464
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3503" package="Media Library Assistant">
5465
  <name>mla_update_single_item</name>
5466
  <full_name>mla_update_single_item</full_name>
5467
- <docblock line="3490">
5468
  <description><![CDATA[Update a single item; change the "post" data, taxonomy terms
5469
  and meta data for a single attachment]]></description>
5470
  <long-description><![CDATA[]]></long-description>
5471
- <tag line="3490" name="since" description="0.1"/>
5472
- <tag line="3490" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
5473
  <type by_reference="false">int</type>
5474
  </tag>
5475
- <tag line="3490" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
5476
  <type by_reference="false">array</type>
5477
  </tag>
5478
- <tag line="3490" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
5479
  <type by_reference="false">array</type>
5480
  </tag>
5481
- <tag line="3490" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
5482
  <type by_reference="false">array</type>
5483
  </tag>
5484
- <tag line="3490" name="return" description="success/failure message and NULL content" type="array">
5485
  <type by_reference="false">array</type>
5486
  </tag>
5487
  </docblock>
5488
- <argument line="3503">
5489
  <name>$post_id</name>
5490
  <default><![CDATA[]]></default>
5491
  <type/>
5492
  </argument>
5493
- <argument line="3503">
5494
  <name>$new_data</name>
5495
  <default><![CDATA[]]></default>
5496
  <type/>
5497
  </argument>
5498
- <argument line="3503">
5499
  <name>$tax_input</name>
5500
  <default><![CDATA[NULL]]></default>
5501
  <type/>
5502
  </argument>
5503
- <argument line="3503">
5504
  <name>$tax_actions</name>
5505
  <default><![CDATA[NULL]]></default>
5506
  <type/>
5507
  </argument>
5508
  </method>
5509
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3809" package="Media Library Assistant">
5510
  <name>_remove_terms</name>
5511
  <full_name>_remove_terms</full_name>
5512
- <docblock line="3798">
5513
  <description><![CDATA[Remove terms from an attachment's assignments]]></description>
5514
  <long-description><![CDATA[]]></long-description>
5515
- <tag line="3798" name="since" description="0.40"/>
5516
- <tag line="3798" name="param" description="The ID of the attachment to be updated" type="integer" variable="$post_id">
5517
  <type by_reference="false">integer</type>
5518
  </tag>
5519
- <tag line="3798" name="param" description="The term ids (integer array) or names (string array) to remove" type="array" variable="$terms">
5520
  <type by_reference="false">array</type>
5521
  </tag>
5522
- <tag line="3798" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
5523
  <type by_reference="false">object</type>
5524
  </tag>
5525
- <tag line="3798" name="return" description="Term ids/names of the surviving terms" type="array">
5526
  <type by_reference="false">array</type>
5527
  </tag>
5528
  </docblock>
5529
- <argument line="3809">
5530
  <name>$post_id</name>
5531
  <default><![CDATA[]]></default>
5532
  <type/>
5533
  </argument>
5534
- <argument line="3809">
5535
  <name>$terms</name>
5536
  <default><![CDATA[]]></default>
5537
  <type/>
5538
  </argument>
5539
- <argument line="3809">
5540
  <name>$taxonomy_obj</name>
5541
  <default><![CDATA[]]></default>
5542
  <type/>
5543
  </argument>
5544
  </method>
5545
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3862" package="Media Library Assistant">
5546
  <name>mla_hex_dump</name>
5547
  <full_name>mla_hex_dump</full_name>
5548
- <docblock line="3850">
5549
  <description><![CDATA[Format printable version of binary data]]></description>
5550
  <long-description><![CDATA[]]></long-description>
5551
- <tag line="3850" name="since" description="0.90"/>
5552
- <tag line="3850" name="param" description="Binary data" type="string" variable="$data">
5553
  <type by_reference="false">string</type>
5554
  </tag>
5555
- <tag line="3850" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
5556
  <type by_reference="false">integer</type>
5557
  </tag>
5558
- <tag line="3850" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
5559
  <type by_reference="false">\intger</type>
5560
  </tag>
5561
- <tag line="3850" name="param" description="offset of initial byte, or -1 to suppress printing offset information" type="integer" variable="$offset">
5562
  <type by_reference="false">integer</type>
5563
  </tag>
5564
- <tag line="3850" name="return" description="Printable representation of $data" type="string">
5565
  <type by_reference="false">string</type>
5566
  </tag>
5567
  </docblock>
5568
- <argument line="3862">
5569
  <name>$data</name>
5570
  <default><![CDATA[]]></default>
5571
  <type/>
5572
  </argument>
5573
- <argument line="3862">
5574
  <name>$limit</name>
5575
  <default><![CDATA[0]]></default>
5576
  <type/>
5577
  </argument>
5578
- <argument line="3862">
5579
  <name>$bytes_per_row</name>
5580
  <default><![CDATA[16]]></default>
5581
  <type/>
5582
  </argument>
5583
- <argument line="3862">
5584
  <name>$offset</name>
5585
  <default><![CDATA[-1]]></default>
5586
  <type/>
@@ -5588,7 +5657,7 @@ and meta data for a single attachment]]></description>
5588
  </method>
5589
  </class>
5590
  </file>
5591
- <file path="includes\class-mla-edit-media.php" hash="a6459dcc52afbeabe6d452da87954b5b" package="Media Library Assistant">
5592
  <docblock line="2">
5593
  <description><![CDATA[Media Library Assistant Edit Media screen enhancements]]></description>
5594
  <long-description><![CDATA[]]></long-description>
@@ -7655,7 +7724,7 @@ $this->set_pagination_args().</p>]]></long-description>
7655
  </method>
7656
  </class>
7657
  </file>
7658
- <file path="includes\class-mla-main.php" hash="c1d80f7f71283a8f2d88ce84fe57643a" package="Media Library Assistant">
7659
  <docblock line="2">
7660
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
7661
  <long-description><![CDATA[]]></long-description>
@@ -7665,16 +7734,16 @@ $this->set_pagination_args().</p>]]></long-description>
7665
  <include line="13" type="Require Once" package="Media Library Assistant">
7666
  <name/>
7667
  </include>
7668
- <include line="166" type="Require Once" package="Media Library Assistant">
7669
  <name/>
7670
  </include>
7671
- <include line="189" type="Require Once" package="Media Library Assistant">
7672
  <name/>
7673
  </include>
7674
- <include line="202" type="Require Once" package="Media Library Assistant">
7675
  <name/>
7676
  </include>
7677
- <include line="1570" type="Require Once" package="Media Library Assistant">
7678
  <name/>
7679
  </include>
7680
  <class final="false" abstract="false" namespace="global" line="23" package="Media Library Assistant">
@@ -7688,690 +7757,664 @@ of images and files held in the WordPress Media Library.]]></description>
7688
  <tag line="16" name="package" description="Media Library Assistant"/>
7689
  <tag line="16" name="since" description="0.1"/>
7690
  </docblock>
7691
- <constant namespace="global" line="32" package="Media Library Assistant">
7692
- <name>CURRENT_MLA_VERSION</name>
7693
- <full_name>CURRENT_MLA_VERSION</full_name>
7694
- <value><![CDATA['2.25']]></value>
7695
- <docblock line="25">
7696
- <description><![CDATA[Current version number]]></description>
7697
- <long-description><![CDATA[]]></long-description>
7698
- <tag line="25" name="since" description="0.1"/>
7699
- <tag line="25" name="var" description="" type="string">
7700
- <type by_reference="false">string</type>
7701
- </tag>
7702
- </docblock>
7703
- </constant>
7704
- <constant namespace="global" line="41" package="Media Library Assistant">
7705
  <name>MLA_DEVELOPMENT_VERSION</name>
7706
  <full_name>MLA_DEVELOPMENT_VERSION</full_name>
7707
  <value><![CDATA['']]></value>
7708
- <docblock line="34">
7709
  <description><![CDATA[Current date for Development Version, empty for production versions]]></description>
7710
  <long-description><![CDATA[]]></long-description>
7711
- <tag line="34" name="since" description="2.10"/>
7712
- <tag line="34" name="var" description="" type="string">
7713
- <type by_reference="false">string</type>
7714
- </tag>
7715
- </docblock>
7716
- </constant>
7717
- <constant namespace="global" line="50" package="Media Library Assistant">
7718
- <name>STYLESHEET_SLUG</name>
7719
- <full_name>STYLESHEET_SLUG</full_name>
7720
- <value><![CDATA['mla-style']]></value>
7721
- <docblock line="43">
7722
- <description><![CDATA[Slug for registering and enqueueing plugin style sheet]]></description>
7723
- <long-description><![CDATA[]]></long-description>
7724
- <tag line="43" name="since" description="0.1"/>
7725
- <tag line="43" name="var" description="" type="string">
7726
  <type by_reference="false">string</type>
7727
  </tag>
7728
  </docblock>
7729
  </constant>
7730
- <constant namespace="global" line="59" package="Media Library Assistant">
7731
  <name>JAVASCRIPT_INLINE_EDIT_OBJECT</name>
7732
  <full_name>JAVASCRIPT_INLINE_EDIT_OBJECT</full_name>
7733
  <value><![CDATA['mla_inline_edit_vars']]></value>
7734
- <docblock line="52">
7735
  <description><![CDATA[Object name for localizing JavaScript - MLA List Table]]></description>
7736
  <long-description><![CDATA[]]></long-description>
7737
- <tag line="52" name="since" description="0.20"/>
7738
- <tag line="52" name="var" description="" type="string">
7739
  <type by_reference="false">string</type>
7740
  </tag>
7741
  </docblock>
7742
  </constant>
7743
- <constant namespace="global" line="70" package="Media Library Assistant">
7744
  <name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</name>
7745
  <full_name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</full_name>
7746
  <value><![CDATA['single_item_edit_display']]></value>
7747
- <docblock line="61">
7748
  <description><![CDATA[mla_admin_action value to display a single item for editing]]></description>
7749
  <long-description><![CDATA[<p>Used by class-mla-view-list-table.php and class-mla-upload-list-table.php</p>]]></long-description>
7750
- <tag line="61" name="since" description="0.1"/>
7751
- <tag line="61" name="var" description="" type="string">
7752
  <type by_reference="false">string</type>
7753
  </tag>
7754
  </docblock>
7755
  </constant>
7756
- <constant namespace="global" line="81" package="Media Library Assistant">
7757
  <name>MLA_ADMIN_SINGLE_EDIT_UPDATE</name>
7758
  <full_name>MLA_ADMIN_SINGLE_EDIT_UPDATE</full_name>
7759
  <value><![CDATA['single_item_edit_update']]></value>
7760
- <docblock line="72">
7761
  <description><![CDATA[mla_admin_action value for updating a single item]]></description>
7762
  <long-description><![CDATA[<p>Used by class-mla-view-list-table.php and class-mla-upload-list-table.php</p>]]></long-description>
7763
- <tag line="72" name="since" description="0.1"/>
7764
- <tag line="72" name="var" description="" type="string">
7765
  <type by_reference="false">string</type>
7766
  </tag>
7767
  </docblock>
7768
  </constant>
7769
- <constant namespace="global" line="90" package="Media Library Assistant">
7770
  <name>MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP</name>
7771
  <full_name>MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP</full_name>
7772
  <value><![CDATA['single_item_custom_field_map']]></value>
7773
- <docblock line="83">
7774
  <description><![CDATA[mla_admin_action value for mapping Custom Field metadata]]></description>
7775
  <long-description><![CDATA[]]></long-description>
7776
- <tag line="83" name="since" description="1.10"/>
7777
- <tag line="83" name="var" description="" type="string">
7778
  <type by_reference="false">string</type>
7779
  </tag>
7780
  </docblock>
7781
  </constant>
7782
- <constant namespace="global" line="99" package="Media Library Assistant">
7783
  <name>MLA_ADMIN_SINGLE_MAP</name>
7784
  <full_name>MLA_ADMIN_SINGLE_MAP</full_name>
7785
  <value><![CDATA['single_item_map']]></value>
7786
- <docblock line="92">
7787
  <description><![CDATA[mla_admin_action value for mapping IPTC/EXIF metadata]]></description>
7788
  <long-description><![CDATA[]]></long-description>
7789
- <tag line="92" name="since" description="1.00"/>
7790
- <tag line="92" name="var" description="" type="string">
7791
  <type by_reference="false">string</type>
7792
  </tag>
7793
  </docblock>
7794
  </constant>
7795
- <constant namespace="global" line="108" package="Media Library Assistant">
7796
  <name>MLA_ADMIN_SET_PARENT</name>
7797
  <full_name>MLA_ADMIN_SET_PARENT</full_name>
7798
  <value><![CDATA['set_parent']]></value>
7799
- <docblock line="101">
7800
  <description><![CDATA[mla_admin_action value for setting an item's parent object]]></description>
7801
  <long-description><![CDATA[]]></long-description>
7802
- <tag line="101" name="since" description="1.82"/>
7803
- <tag line="101" name="var" description="" type="string">
7804
  <type by_reference="false">string</type>
7805
  </tag>
7806
  </docblock>
7807
  </constant>
7808
- <constant namespace="global" line="117" package="Media Library Assistant">
7809
  <name>MLA_ADMIN_TERMS_SEARCH</name>
7810
  <full_name>MLA_ADMIN_TERMS_SEARCH</full_name>
7811
  <value><![CDATA['terms_search']]></value>
7812
- <docblock line="110">
7813
  <description><![CDATA[mla_admin_action value for searching taxonomy terms]]></description>
7814
  <long-description><![CDATA[]]></long-description>
7815
- <tag line="110" name="since" description="1.90"/>
7816
- <tag line="110" name="var" description="" type="string">
7817
  <type by_reference="false">string</type>
7818
  </tag>
7819
  </docblock>
7820
  </constant>
7821
- <property final="false" static="true" visibility="private" line="126" namespace="global" package="Media Library Assistant">
7822
  <name>$page_hooks</name>
7823
  <default><![CDATA[array()]]></default>
7824
- <docblock line="119">
7825
  <description><![CDATA[Holds screen ids to match help text to corresponding screen]]></description>
7826
  <long-description><![CDATA[]]></long-description>
7827
- <tag line="119" name="since" description="0.1"/>
7828
- <tag line="119" name="var" description="" type="array">
7829
  <type by_reference="false">array</type>
7830
  </tag>
7831
  </docblock>
7832
  </property>
7833
- <property final="false" static="true" visibility="private" line="133" namespace="global" package="Media Library Assistant">
7834
  <name>$mla_language_support_error_messages</name>
7835
  <default><![CDATA['']]></default>
7836
- <docblock line="128">
7837
  <description><![CDATA[Accumulates error messages from name conflict tests]]></description>
7838
  <long-description><![CDATA[]]></long-description>
7839
- <tag line="128" name="since" description="1.14"/>
7840
  </docblock>
7841
  </property>
7842
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="140" package="Media Library Assistant">
7843
  <name>mla_name_conflict_reporting_action</name>
7844
  <full_name>mla_name_conflict_reporting_action</full_name>
7845
- <docblock line="135">
7846
  <description><![CDATA[Displays name conflict error messages at the top of the Dashboard]]></description>
7847
  <long-description><![CDATA[]]></long-description>
7848
- <tag line="135" name="since" description="2.11"/>
7849
  </docblock>
7850
  </method>
7851
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="159" package="Media Library Assistant">
7852
  <name>initialize</name>
7853
  <full_name>initialize</full_name>
7854
- <docblock line="148">
7855
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
7856
  <long-description><![CDATA[<p>This function contains add_action and add_filter calls
7857
  to set up the Ajax handlers, enqueue JavaScript and CSS files, and
7858
  set up the Assistant submenu.</p>]]></long-description>
7859
- <tag line="148" name="since" description="0.1"/>
7860
- <tag line="148" name="return" description="" type="void">
7861
  <type by_reference="false">void</type>
7862
  </tag>
7863
  </docblock>
7864
  </method>
7865
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="225" package="Media Library Assistant">
7866
  <name>mla_admin_init_action</name>
7867
  <full_name>mla_admin_init_action</full_name>
7868
- <docblock line="218">
7869
  <description><![CDATA[Load the plugin's Ajax handler or process Edit Media update actions]]></description>
7870
  <long-description><![CDATA[]]></long-description>
7871
- <tag line="218" name="since" description="0.20"/>
7872
- <tag line="218" name="return" description="" type="void">
7873
  <type by_reference="false">void</type>
7874
  </tag>
7875
  </docblock>
7876
  </method>
7877
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="290" package="Media Library Assistant">
7878
  <name>mla_admin_print_styles_action</name>
7879
  <full_name>mla_admin_print_styles_action</full_name>
7880
- <docblock line="285">
7881
  <description><![CDATA[Print optional in-lne styles for Media/Assistant submenu table]]></description>
7882
  <long-description><![CDATA[]]></long-description>
7883
- <tag line="285" name="since" description="2.13"/>
7884
  </docblock>
7885
  </method>
7886
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="398" package="Media Library Assistant">
7887
  <name>mla_admin_enqueue_scripts_action</name>
7888
  <full_name>mla_admin_enqueue_scripts_action</full_name>
7889
- <docblock line="389">
7890
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
7891
  <long-description><![CDATA[]]></long-description>
7892
- <tag line="389" name="since" description="0.1"/>
7893
- <tag line="389" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
7894
  <type by_reference="false">string</type>
7895
  </tag>
7896
- <tag line="389" name="return" description="" type="void">
7897
  <type by_reference="false">void</type>
7898
  </tag>
7899
  </docblock>
7900
- <argument line="398">
7901
  <name>$page_hook</name>
7902
  <default><![CDATA[]]></default>
7903
  <type/>
7904
  </argument>
7905
  </method>
7906
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="490" package="Media Library Assistant">
7907
  <name>mla_admin_menu_action</name>
7908
  <full_name>mla_admin_menu_action</full_name>
7909
- <docblock line="479">
7910
  <description><![CDATA[Add the submenu pages]]></description>
7911
  <long-description><![CDATA[<p>Add a submenu page in the "Media" section,
7912
  add settings page in the "Settings" section.
7913
  add settings link in the Plugins section entry for MLA.</p>]]></long-description>
7914
- <tag line="479" name="since" description="0.1"/>
7915
- <tag line="479" name="return" description="" type="void">
7916
  <type by_reference="false">void</type>
7917
  </tag>
7918
  </docblock>
7919
  </method>
7920
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="558" package="Media Library Assistant">
7921
  <name>mla_load_media_action</name>
7922
  <full_name>mla_load_media_action</full_name>
7923
- <docblock line="550">
7924
  <description><![CDATA[Redirect to Media/Assistant if Media/Library is hidden or a trash/delete
7925
  returns from Media/Edit Media initiated from Media/Assistant]]></description>
7926
  <long-description><![CDATA[]]></long-description>
7927
- <tag line="550" name="since" description="1.60"/>
7928
- <tag line="550" name="return" description="" type="void">
7929
  <type by_reference="false">void</type>
7930
  </tag>
7931
  </docblock>
7932
  </method>
7933
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="595" package="Media Library Assistant">
7934
  <name>mla_add_menu_options</name>
7935
  <full_name>mla_add_menu_options</full_name>
7936
- <docblock line="588">
7937
  <description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
7938
  <long-description><![CDATA[]]></long-description>
7939
- <tag line="588" name="since" description="0.1"/>
7940
- <tag line="588" name="return" description="" type="void">
7941
  <type by_reference="false">void</type>
7942
  </tag>
7943
  </docblock>
7944
  </method>
7945
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="614" package="Media Library Assistant">
7946
  <name>mla_add_help_tab</name>
7947
  <full_name>mla_add_help_tab</full_name>
7948
- <docblock line="607">
7949
  <description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
7950
  <long-description><![CDATA[]]></long-description>
7951
- <tag line="607" name="since" description="0.1"/>
7952
- <tag line="607" name="return" description="" type="void">
7953
  <type by_reference="false">void</type>
7954
  </tag>
7955
  </docblock>
7956
  </method>
7957
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="717" package="Media Library Assistant">
7958
  <name>mla_screen_options_show_screen_filter</name>
7959
  <full_name>mla_screen_options_show_screen_filter</full_name>
7960
- <docblock line="707">
7961
  <description><![CDATA[Only show screen options on the table-list screen]]></description>
7962
  <long-description><![CDATA[]]></long-description>
7963
- <tag line="707" name="since" description="0.1"/>
7964
- <tag line="707" name="param" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean" variable="$show_screen">
7965
  <type by_reference="false">boolean</type>
7966
  </tag>
7967
- <tag line="707" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
7968
  <type by_reference="false">string</type>
7969
  </tag>
7970
- <tag line="707" name="return" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean">
7971
  <type by_reference="false">boolean</type>
7972
  </tag>
7973
  </docblock>
7974
- <argument line="717">
7975
  <name>$show_screen</name>
7976
  <default><![CDATA[]]></default>
7977
  <type/>
7978
  </argument>
7979
- <argument line="717">
7980
  <name>$this_screen</name>
7981
  <default><![CDATA[]]></default>
7982
  <type/>
7983
  </argument>
7984
  </method>
7985
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="732" package="Media Library Assistant">
7986
  <name>mla_set_screen_option_filter</name>
7987
  <full_name>mla_set_screen_option_filter</full_name>
7988
- <docblock line="721">
7989
  <description><![CDATA[Save the "Entries per page" option set by this user]]></description>
7990
  <long-description><![CDATA[]]></long-description>
7991
- <tag line="721" name="since" description="0.1"/>
7992
- <tag line="721" name="param" description="false or value returned by previous filter" type="mixed" variable="$status">
7993
  <type by_reference="false">mixed</type>
7994
  </tag>
7995
- <tag line="721" name="param" description="Name of the option being changed" type="string" variable="$option">
7996
  <type by_reference="false">string</type>
7997
  </tag>
7998
- <tag line="721" name="param" description="New value of the option" type="string" variable="$value">
7999
  <type by_reference="false">string</type>
8000
  </tag>
8001
- <tag line="721" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
8002
  <type by_reference="false">string</type>
8003
  <type by_reference="false">void</type>
8004
  </tag>
8005
  </docblock>
8006
- <argument line="732">
8007
  <name>$status</name>
8008
  <default><![CDATA[]]></default>
8009
  <type/>
8010
  </argument>
8011
- <argument line="732">
8012
  <name>$option</name>
8013
  <default><![CDATA[]]></default>
8014
  <type/>
8015
  </argument>
8016
- <argument line="732">
8017
  <name>$value</name>
8018
  <default><![CDATA[]]></default>
8019
  <type/>
8020
  </argument>
8021
  </method>
8022
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="751" package="Media Library Assistant">
8023
  <name>mla_parent_file_filter</name>
8024
  <full_name>mla_parent_file_filter</full_name>
8025
- <docblock line="740">
8026
  <description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
8027
  <long-description><![CDATA[<p>Fixes the submenu bolding when going to the Edit Media screen.</p>]]></long-description>
8028
- <tag line="740" name="since" description="0.1"/>
8029
- <tag line="740" name="param" description="The top-level menu page" type="array" variable="$parent_file">
8030
  <type by_reference="false">array</type>
8031
  </tag>
8032
- <tag line="740" name="return" description="The updated top-level menu page" type="string">
8033
  <type by_reference="false">string</type>
8034
  </tag>
8035
  </docblock>
8036
- <argument line="751">
8037
  <name>$parent_file</name>
8038
  <default><![CDATA[]]></default>
8039
  <type/>
8040
  </argument>
8041
  </method>
8042
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="788" package="Media Library Assistant">
8043
  <name>_process_mla_download_file</name>
8044
  <full_name>_process_mla_download_file</full_name>
8045
- <docblock line="779">
8046
  <description><![CDATA[Process secure file download]]></description>
8047
  <long-description><![CDATA[<p>Requires _wpnonce, mla_download_file and mla_download_type in $_REQUEST; mla_download_disposition is optional.</p>]]></long-description>
8048
- <tag line="779" name="since" description="2.00"/>
8049
- <tag line="779" name="return" description="echos file contents and calls exit();" type="void">
8050
  <type by_reference="false">void</type>
8051
  </tag>
8052
  </docblock>
8053
  </method>
8054
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="842" package="Media Library Assistant">
8055
  <name>_process_bulk_value</name>
8056
  <full_name>_process_bulk_value</full_name>
8057
- <docblock line="832">
8058
  <description><![CDATA[Process bulk edit area fields, which may contain a Content Template]]></description>
8059
  <long-description><![CDATA[]]></long-description>
8060
- <tag line="832" name="since" description="1.80"/>
8061
- <tag line="832" name="param" description="Current post ID" type="integer" variable="$post_id">
8062
  <type by_reference="false">integer</type>
8063
  </tag>
8064
- <tag line="832" name="param" description="Field value as entered" type="string" variable="$bulk_value">
8065
  <type by_reference="false">string</type>
8066
  </tag>
8067
- <tag line="832" name="return" description="Empty, or new value for the field" type="string">
8068
  <type by_reference="false">string</type>
8069
  </tag>
8070
  </docblock>
8071
- <argument line="842">
8072
  <name>$post_id</name>
8073
  <default><![CDATA[]]></default>
8074
  <type/>
8075
  </argument>
8076
- <argument line="842">
8077
  <name>$bulk_value</name>
8078
  <default><![CDATA[]]></default>
8079
  <type/>
8080
  </argument>
8081
  </method>
8082
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="878" package="Media Library Assistant">
8083
  <name>mla_prepare_bulk_edits</name>
8084
  <full_name>mla_prepare_bulk_edits</full_name>
8085
- <docblock line="867">
8086
  <description><![CDATA[Prepare Bulk Edit field-level updates]]></description>
8087
  <long-description><![CDATA[]]></long-description>
8088
- <tag line="867" name="since" description="2.11"/>
8089
- <tag line="867" name="param" description="Current post ID" type="integer" variable="$post_id">
8090
  <type by_reference="false">integer</type>
8091
  </tag>
8092
- <tag line="867" name="param" description="Form elements, e.g., from $_REQUEST" type="array" variable="$request">
8093
  <type by_reference="false">array</type>
8094
  </tag>
8095
- <tag line="867" name="param" description="Form id to field name mapping" type="array" variable="$custom_field_map">
8096
  <type by_reference="false">array</type>
8097
  </tag>
8098
- <tag line="867" name="return" description="Non-empty form elements" type="array">
8099
  <type by_reference="false">array</type>
8100
  </tag>
8101
  </docblock>
8102
- <argument line="878">
8103
  <name>$post_id</name>
8104
  <default><![CDATA[]]></default>
8105
  <type/>
8106
  </argument>
8107
- <argument line="878">
8108
  <name>$request</name>
8109
  <default><![CDATA[]]></default>
8110
  <type/>
8111
  </argument>
8112
- <argument line="878">
8113
  <name>$custom_field_map</name>
8114
  <default><![CDATA[]]></default>
8115
  <type/>
8116
  </argument>
8117
  </method>
8118
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1110" package="Media Library Assistant">
8119
  <name>mla_process_bulk_action</name>
8120
  <full_name>mla_process_bulk_action</full_name>
8121
- <docblock line="1100">
8122
  <description><![CDATA[Process bulk action for one or more attachments]]></description>
8123
  <long-description><![CDATA[]]></long-description>
8124
- <tag line="1100" name="since" description="2.00"/>
8125
- <tag line="1100" name="param" description="Bulk action slug: delete, edit, restore, trash, custom action" type="string" variable="$bulk_action">
8126
  <type by_reference="false">string</type>
8127
  </tag>
8128
- <tag line="1100" name="param" description="Form elements, e.g., from $_REQUEST" type="array" variable="$request">
8129
  <type by_reference="false">array</type>
8130
  </tag>
8131
- <tag line="1100" name="return" description="messages and page content: ( 'message', 'body', 'unchanged', 'success', 'failure', 'item_results' )" type="array">
8132
  <type by_reference="false">array</type>
8133
  </tag>
8134
  </docblock>
8135
- <argument line="1110">
8136
  <name>$bulk_action</name>
8137
  <default><![CDATA[]]></default>
8138
  <type/>
8139
  </argument>
8140
- <argument line="1110">
8141
  <name>$request</name>
8142
  <default><![CDATA[NULL]]></default>
8143
  <type/>
8144
  </argument>
8145
  </method>
8146
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1304" package="Media Library Assistant">
8147
  <name>mla_clear_filter_by</name>
8148
  <full_name>mla_clear_filter_by</full_name>
8149
- <docblock line="1295">
8150
  <description><![CDATA[Clear the Media/Assistant submenu Filter-by variables]]></description>
8151
  <long-description><![CDATA[]]></long-description>
8152
- <tag line="1295" name="since" description="2.13"/>
8153
- <tag line="1295" name="param" description="Filters to be retained" type="array" variable="$preserves">
8154
  <type by_reference="false">array</type>
8155
  </tag>
8156
- <tag line="1295" name="return" description="" type="void">
8157
  <type by_reference="false">void</type>
8158
  </tag>
8159
  </docblock>
8160
- <argument line="1304">
8161
  <name>$preserves</name>
8162
  <default><![CDATA[array()]]></default>
8163
  <type/>
8164
  </argument>
8165
  </method>
8166
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1326" package="Media Library Assistant">
8167
  <name>mla_render_admin_page</name>
8168
  <full_name>mla_render_admin_page</full_name>
8169
- <docblock line="1319">
8170
  <description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
8171
  <long-description><![CDATA[]]></long-description>
8172
- <tag line="1319" name="since" description="0.1"/>
8173
- <tag line="1319" name="return" description="" type="void">
8174
  <type by_reference="false">void</type>
8175
  </tag>
8176
  </docblock>
8177
  </method>
8178
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1620" package="Media Library Assistant">
8179
  <name>_bulk_edit_ajax_handler</name>
8180
  <full_name>_bulk_edit_ajax_handler</full_name>
8181
- <docblock line="1613">
8182
  <description><![CDATA[Ajax handler for bulk editing and mapping]]></description>
8183
  <long-description><![CDATA[]]></long-description>
8184
- <tag line="1613" name="since" description="2.00"/>
8185
- <tag line="1613" name="return" description="echo json results or error message, then die()" type="void">
8186
  <type by_reference="false">void</type>
8187
  </tag>
8188
  </docblock>
8189
  </method>
8190
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1663" package="Media Library Assistant">
8191
  <name>mla_inline_edit_ajax_action</name>
8192
  <full_name>mla_inline_edit_ajax_action</full_name>
8193
- <docblock line="1654">
8194
  <description><![CDATA[Ajax handler for inline editing]]></description>
8195
  <long-description><![CDATA[<p>Adapted for Quick Edit from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
8196
- <tag line="1654" name="since" description="0.20"/>
8197
- <tag line="1654" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
8198
  <type by_reference="false">void</type>
8199
  </tag>
8200
  </docblock>
8201
  </method>
8202
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1793" package="Media Library Assistant">
8203
  <name>_compose_post_type_select</name>
8204
  <full_name>_compose_post_type_select</full_name>
8205
- <docblock line="1783">
8206
  <description><![CDATA[Compose a Post Type Options list with current selection]]></description>
8207
  <long-description><![CDATA[]]></long-description>
8208
- <tag line="1783" name="since" description="1.90"/>
8209
- <tag line="1783" name="param" description="template parts" type="array" variable="$templates">
8210
  <type by_reference="false">array</type>
8211
  </tag>
8212
- <tag line="1783" name="param" description="current selection or 'all' (default)" type="string" variable="$selection">
8213
  <type by_reference="false">string</type>
8214
  </tag>
8215
- <tag line="1783" name="return" description="HTML markup with select field options" type="string">
8216
  <type by_reference="false">string</type>
8217
  </tag>
8218
  </docblock>
8219
- <argument line="1793">
8220
  <name>$templates</name>
8221
  <default><![CDATA[]]></default>
8222
  <type/>
8223
  </argument>
8224
- <argument line="1793">
8225
  <name>$selection</name>
8226
  <default><![CDATA['all']]></default>
8227
  <type/>
8228
  </argument>
8229
  </method>
8230
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1832" package="Media Library Assistant">
8231
  <name>mla_set_parent_form</name>
8232
  <full_name>mla_set_parent_form</full_name>
8233
- <docblock line="1823">
8234
  <description><![CDATA[Build the hidden form for the "Set Parent" popup modal window]]></description>
8235
  <long-description><![CDATA[]]></long-description>
8236
- <tag line="1823" name="since" description="1.90"/>
8237
- <tag line="1823" name="param" description="true to return complete form, false to return mla-set-parent-div" type="boolean" variable="$return_form">
8238
  <type by_reference="false">boolean</type>
8239
  </tag>
8240
- <tag line="1823" name="return" description="HTML &lt;form&gt; markup for hidden form" type="string">
8241
  <type by_reference="false">string</type>
8242
  </tag>
8243
  </docblock>
8244
- <argument line="1832">
8245
  <name>$return_form</name>
8246
  <default><![CDATA[true]]></default>
8247
  <type/>
8248
  </argument>
8249
  </method>
8250
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1895" package="Media Library Assistant">
8251
  <name>_build_inline_edit_form</name>
8252
  <full_name>_build_inline_edit_form</full_name>
8253
- <docblock line="1884">
8254
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
8255
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
8256
- <tag line="1884" name="since" description="0.20"/>
8257
- <tag line="1884" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
8258
  <type by_reference="false">object</type>
8259
  </tag>
8260
- <tag line="1884" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
8261
  <type by_reference="false">string</type>
8262
  </tag>
8263
  </docblock>
8264
- <argument line="1895">
8265
  <name>$MLAListTable</name>
8266
  <default><![CDATA[]]></default>
8267
  <type/>
8268
  </argument>
8269
  </method>
8270
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2091" package="Media Library Assistant">
8271
  <name>mla_authors_dropdown</name>
8272
  <full_name>mla_authors_dropdown</full_name>
8273
- <docblock line="2080">
8274
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
8275
  <long-description><![CDATA[]]></long-description>
8276
- <tag line="2080" name="since" description="0.20"/>
8277
- <tag line="2080" name="param" description="Optional User ID of the current author, default 0" type="integer" variable="$author">
8278
  <type by_reference="false">integer</type>
8279
  </tag>
8280
- <tag line="2080" name="param" description="Optional HTML name attribute, default 'post_author'" type="string" variable="$name">
8281
  <type by_reference="false">string</type>
8282
  </tag>
8283
- <tag line="2080" name="param" description="Optional HTML class attribute, default 'authors'" type="string" variable="$class">
8284
  <type by_reference="false">string</type>
8285
  </tag>
8286
- <tag line="2080" name="return" description="HTML markup for the dropdown field or False" type="string|false">
8287
  <type by_reference="false">string</type>
8288
  <type by_reference="false">false</type>
8289
  </tag>
8290
  </docblock>
8291
- <argument line="2091">
8292
  <name>$author</name>
8293
  <default><![CDATA[0]]></default>
8294
  <type/>
8295
  </argument>
8296
- <argument line="2091">
8297
  <name>$name</name>
8298
  <default><![CDATA['post_author']]></default>
8299
  <type/>
8300
  </argument>
8301
- <argument line="2091">
8302
  <name>$class</name>
8303
  <default><![CDATA['authors']]></default>
8304
  <type/>
8305
  </argument>
8306
  </method>
8307
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2125" package="Media Library Assistant">
8308
  <name>_current_bulk_action</name>
8309
  <full_name>_current_bulk_action</full_name>
8310
- <docblock line="2118">
8311
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
8312
  <long-description><![CDATA[]]></long-description>
8313
- <tag line="2118" name="since" description="0.1"/>
8314
- <tag line="2118" name="return" description="The action name or False if no action was selected" type="string|false">
8315
  <type by_reference="false">string</type>
8316
  <type by_reference="false">false</type>
8317
  </tag>
8318
  </docblock>
8319
  </method>
8320
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2156" package="Media Library Assistant">
8321
  <name>_delete_single_item</name>
8322
  <full_name>_delete_single_item</full_name>
8323
- <docblock line="2147">
8324
  <description><![CDATA[Delete a single item permanently]]></description>
8325
  <long-description><![CDATA[]]></long-description>
8326
- <tag line="2147" name="since" description="0.1"/>
8327
- <tag line="2147" name="param" description="The form POST data" type="array" variable="$post_id">
8328
  <type by_reference="false">array</type>
8329
  </tag>
8330
- <tag line="2147" name="return" description="success/failure message and NULL content" type="array">
8331
  <type by_reference="false">array</type>
8332
  </tag>
8333
  </docblock>
8334
- <argument line="2156">
8335
  <name>$post_id</name>
8336
  <default><![CDATA[]]></default>
8337
  <type/>
8338
  </argument>
8339
  </method>
8340
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2188" package="Media Library Assistant">
8341
  <name>_restore_single_item</name>
8342
  <full_name>_restore_single_item</full_name>
8343
- <docblock line="2179">
8344
  <description><![CDATA[Restore a single item from the Trash]]></description>
8345
  <long-description><![CDATA[]]></long-description>
8346
- <tag line="2179" name="since" description="0.1"/>
8347
- <tag line="2179" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
8348
  <type by_reference="false">integer</type>
8349
  </tag>
8350
- <tag line="2179" name="return" description="success/failure message and NULL content" type="array">
8351
  <type by_reference="false">array</type>
8352
  </tag>
8353
  </docblock>
8354
- <argument line="2188">
8355
  <name>$post_id</name>
8356
  <default><![CDATA[]]></default>
8357
  <type/>
8358
  </argument>
8359
  </method>
8360
- <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2228" package="Media Library Assistant">
8361
  <name>_trash_single_item</name>
8362
  <full_name>_trash_single_item</full_name>
8363
- <docblock line="2219">
8364
  <description><![CDATA[Move a single item to Trash]]></description>
8365
  <long-description><![CDATA[]]></long-description>
8366
- <tag line="2219" name="since" description="0.1"/>
8367
- <tag line="2219" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
8368
  <type by_reference="false">integer</type>
8369
  </tag>
8370
- <tag line="2219" name="return" description="success/failure message and NULL content" type="array">
8371
  <type by_reference="false">array</type>
8372
  </tag>
8373
  </docblock>
8374
- <argument line="2228">
8375
  <name>$post_id</name>
8376
  <default><![CDATA[]]></default>
8377
  <type/>
@@ -8524,7 +8567,7 @@ Declared public because it is a filter.</p>]]></long-description>
8524
  </method>
8525
  </class>
8526
  </file>
8527
- <file path="includes\class-mla-media-modal.php" hash="5a0fe9d1140ac3fe2fd4fe05f3224a63" package="Media Library Assistant">
8528
  <docblock line="2">
8529
  <description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
8530
  <long-description><![CDATA[]]></long-description>
@@ -10072,14 +10115,14 @@ Defined as public because it's a filter.</p>]]></long-description>
10072
  </method>
10073
  </class>
10074
  </file>
10075
- <file path="includes\class-mla-objects.php" hash="582ff31f0529459e9c401f78262e3c5e" package="Media Library Assistant">
10076
  <docblock line="2">
10077
  <description><![CDATA[Media Library Assistant Custom Taxonomy and Widget objects]]></description>
10078
  <long-description><![CDATA[]]></long-description>
10079
  <tag line="2" name="package" description="Media Library Assistant"/>
10080
  <tag line="2" name="since" description="0.1"/>
10081
  </docblock>
10082
- <include line="211" type="Require Once" package="Media Library Assistant">
10083
  <name/>
10084
  </include>
10085
  <class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
@@ -10116,197 +10159,197 @@ Defined as public because it's a filter.</p>]]></long-description>
10116
  </tag>
10117
  </docblock>
10118
  </method>
10119
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="117" package="Media Library Assistant">
10120
  <name>mla_taxonomy_get_columns_filter</name>
10121
  <full_name>mla_taxonomy_get_columns_filter</full_name>
10122
- <docblock line="107">
10123
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
10124
  which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
10125
  <long-description><![CDATA[]]></long-description>
10126
- <tag line="107" name="since" description="0.30"/>
10127
- <tag line="107" name="param" description="column definitions for the edit taxonomy list table" type="array" variable="$columns">
10128
  <type by_reference="false">array</type>
10129
  </tag>
10130
- <tag line="107" name="return" description="updated column definitions for the edit taxonomy list table" type="array">
10131
  <type by_reference="false">array</type>
10132
  </tag>
10133
  </docblock>
10134
- <argument line="117">
10135
  <name>$columns</name>
10136
  <default><![CDATA[]]></default>
10137
  <type/>
10138
  </argument>
10139
  </method>
10140
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="159" package="Media Library Assistant">
10141
  <name>mla_taxonomy_column_filter</name>
10142
  <full_name>mla_taxonomy_column_filter</full_name>
10143
- <docblock line="146">
10144
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
10145
  which returns a count of the attachments assigned a given term]]></description>
10146
  <long-description><![CDATA[]]></long-description>
10147
- <tag line="146" name="since" description="0.30"/>
10148
- <tag line="146" name="param" description="current column value; filled in by earlier filter handlers" type="string" variable="$current_value">
10149
  <type by_reference="false">string</type>
10150
  </tag>
10151
- <tag line="146" name="param" description="name of the column" type="string" variable="$column_name">
10152
  <type by_reference="false">string</type>
10153
  </tag>
10154
- <tag line="146" name="param" description="ID of the term for which the count is desired" type="integer" variable="$term_id">
10155
  <type by_reference="false">integer</type>
10156
  </tag>
10157
- <tag line="146" name="return" description="HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them" type="array">
10158
  <type by_reference="false">array</type>
10159
  </tag>
10160
  </docblock>
10161
- <argument line="159">
10162
  <name>$current_value</name>
10163
  <default><![CDATA[]]></default>
10164
  <type/>
10165
  </argument>
10166
- <argument line="159">
10167
  <name>$column_name</name>
10168
  <default><![CDATA[]]></default>
10169
  <type/>
10170
  </argument>
10171
- <argument line="159">
10172
  <name>$term_id</name>
10173
  <default><![CDATA[]]></default>
10174
  <type/>
10175
  </argument>
10176
  </method>
10177
  </class>
10178
- <class final="false" abstract="false" namespace="global" line="259" package="Media Library Assistant">
10179
  <extends>\WP_Widget</extends>
10180
  <name>MLATextWidget</name>
10181
  <full_name>\MLATextWidget</full_name>
10182
- <docblock line="253">
10183
  <description><![CDATA[Class MLA (Media Library Assistant) Text Widget defines a shortcode-enabled version of the WordPress Text widget]]></description>
10184
  <long-description><![CDATA[]]></long-description>
10185
- <tag line="253" name="package" description="Media Library Assistant"/>
10186
- <tag line="253" name="since" description="1.60"/>
10187
  </docblock>
10188
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="268" package="Media Library Assistant">
10189
  <name>__construct</name>
10190
  <full_name>__construct</full_name>
10191
- <docblock line="261">
10192
  <description><![CDATA[Calls the parent constructor to set some defaults.]]></description>
10193
  <long-description><![CDATA[]]></long-description>
10194
- <tag line="261" name="since" description="1.60"/>
10195
- <tag line="261" name="return" description="" type="void">
10196
  <type by_reference="false">void</type>
10197
  </tag>
10198
  </docblock>
10199
  </method>
10200
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="292" package="Media Library Assistant">
10201
  <name>widget</name>
10202
  <full_name>widget</full_name>
10203
- <docblock line="282">
10204
  <description><![CDATA[Display the widget content - called from the WordPress "front end"]]></description>
10205
  <long-description><![CDATA[]]></long-description>
10206
- <tag line="282" name="since" description="1.60"/>
10207
- <tag line="282" name="param" description="Widget arguments" type="array" variable="$args">
10208
  <type by_reference="false">array</type>
10209
  </tag>
10210
- <tag line="282" name="param" description="Widget definition, from the database" type="array" variable="$instance">
10211
  <type by_reference="false">array</type>
10212
  </tag>
10213
- <tag line="282" name="return" description="Echoes widget output" type="void">
10214
  <type by_reference="false">void</type>
10215
  </tag>
10216
  </docblock>
10217
- <argument line="292">
10218
  <name>$args</name>
10219
  <default><![CDATA[]]></default>
10220
  <type/>
10221
  </argument>
10222
- <argument line="292">
10223
  <name>$instance</name>
10224
  <default><![CDATA[]]></default>
10225
  <type/>
10226
  </argument>
10227
  </method>
10228
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="311" package="Media Library Assistant">
10229
  <name>form</name>
10230
  <full_name>form</full_name>
10231
- <docblock line="302">
10232
  <description><![CDATA[Echo the "edit widget" form on the Appearance/Widgets admin screen]]></description>
10233
  <long-description><![CDATA[]]></long-description>
10234
- <tag line="302" name="since" description="1.60"/>
10235
- <tag line="302" name="param" description="Previous definition values, from the database" type="array" variable="$instance">
10236
  <type by_reference="false">array</type>
10237
  </tag>
10238
- <tag line="302" name="return" description="Echoes &quot;edit widget&quot; form" type="void">
10239
  <type by_reference="false">void</type>
10240
  </tag>
10241
  </docblock>
10242
- <argument line="311">
10243
  <name>$instance</name>
10244
  <default><![CDATA[]]></default>
10245
  <type/>
10246
  </argument>
10247
  </method>
10248
- <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="335" package="Media Library Assistant">
10249
  <name>update</name>
10250
  <full_name>update</full_name>
10251
- <docblock line="325">
10252
  <description><![CDATA[Sanitize widget definition as it is saved to the database]]></description>
10253
  <long-description><![CDATA[]]></long-description>
10254
- <tag line="325" name="since" description="1.60"/>
10255
- <tag line="325" name="param" description="Current definition values, to be saved in the database" type="array" variable="$new_instance">
10256
  <type by_reference="false">array</type>
10257
  </tag>
10258
- <tag line="325" name="param" description="Previous definition values, from the database" type="array" variable="$old_instance">
10259
  <type by_reference="false">array</type>
10260
  </tag>
10261
- <tag line="325" name="return" description="Updated definition values to be saved in the database" type="array">
10262
  <type by_reference="false">array</type>
10263
  </tag>
10264
  </docblock>
10265
- <argument line="335">
10266
  <name>$new_instance</name>
10267
  <default><![CDATA[]]></default>
10268
  <type/>
10269
  </argument>
10270
- <argument line="335">
10271
  <name>$old_instance</name>
10272
  <default><![CDATA[]]></default>
10273
  <type/>
10274
  </argument>
10275
  </method>
10276
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="357" package="Media Library Assistant">
10277
  <name>mla_text_widget_widgets_init_action</name>
10278
  <full_name>mla_text_widget_widgets_init_action</full_name>
10279
- <docblock line="348">
10280
  <description><![CDATA[Register the widget with WordPress]]></description>
10281
  <long-description><![CDATA[<p>Defined as public because it's an action.</p>]]></long-description>
10282
- <tag line="348" name="since" description="1.60"/>
10283
- <tag line="348" name="return" description="" type="void">
10284
  <type by_reference="false">void</type>
10285
  </tag>
10286
  </docblock>
10287
  </method>
10288
  </class>
10289
  </file>
10290
- <file path="includes\class-mla-options.php" hash="8c36df14871d7d40589d9fd2c3623e7a" package="Media Library Assistant">
10291
  <docblock line="2">
10292
  <description><![CDATA[Manages the plugin option settings]]></description>
10293
  <long-description><![CDATA[]]></long-description>
10294
  <tag line="2" name="package" description="Media Library Assistant"/>
10295
  <tag line="2" name="since" description="1.00"/>
10296
  </docblock>
10297
- <include line="893" type="Require Once" package="Media Library Assistant">
10298
  <name/>
10299
  </include>
10300
- <include line="924" type="Require" package="Media Library Assistant">
10301
  <name/>
10302
  </include>
10303
- <include line="1099" type="Require Once" package="Media Library Assistant">
10304
  <name/>
10305
  </include>
10306
- <include line="1118" type="Require Once" package="Media Library Assistant">
10307
  <name/>
10308
  </include>
10309
- <include line="1308" type="Require Once" package="Media Library Assistant">
10310
  <name/>
10311
  </include>
10312
  <class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
@@ -10787,7 +10830,7 @@ This option is for flat taxonomies, e.g., "Att.]]></description>
10787
  <name>$mla_option_templates</name>
10788
  <default><![CDATA[NULL]]></default>
10789
  <docblock line="306">
10790
- <description><![CDATA[Style and Markup templates]]></description>
10791
  <long-description><![CDATA[]]></long-description>
10792
  <tag line="306" name="since" description="0.80"/>
10793
  <tag line="306" name="var" description="" type="array">
@@ -10795,15 +10838,15 @@ This option is for flat taxonomies, e.g., "Att.]]></description>
10795
  </tag>
10796
  </docblock>
10797
  </property>
10798
- <property final="false" static="true" visibility="private" line="945" namespace="global" package="Media Library Assistant">
10799
  <name>$add_attachment_id</name>
10800
  <default><![CDATA[0]]></default>
10801
- <docblock line="935">
10802
  <description><![CDATA[Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter]]></description>
10803
  <long-description><![CDATA[<p>Ensures that IPTC/EXIF and Custom Field mapping is only performed when the attachment is first
10804
  added to the Media Library.</p>]]></long-description>
10805
- <tag line="935" name="since" description="1.70"/>
10806
- <tag line="935" name="var" description="" type="integer">
10807
  <type by_reference="false">integer</type>
10808
  </tag>
10809
  </docblock>
@@ -10824,7 +10867,7 @@ added to the Media Library.</p>]]></long-description>
10824
  <name>_load_option_templates</name>
10825
  <full_name>_load_option_templates</full_name>
10826
  <docblock line="315">
10827
- <description><![CDATA[Load style and markup templates to $mla_templates]]></description>
10828
  <long-description><![CDATA[]]></long-description>
10829
  <tag line="315" name="since" description="0.80"/>
10830
  <tag line="315" name="return" description="" type="void">
@@ -10832,997 +10875,931 @@ added to the Media Library.</p>]]></long-description>
10832
  </tag>
10833
  </docblock>
10834
  </method>
10835
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="359" package="Media Library Assistant">
10836
- <name>mla_get_style_templates</name>
10837
- <full_name>mla_get_style_templates</full_name>
10838
- <docblock line="352">
10839
- <description><![CDATA[Get ALL style templates from $mla_templates, including 'default']]></description>
10840
- <long-description><![CDATA[]]></long-description>
10841
- <tag line="352" name="since" description="0.80"/>
10842
- <tag line="352" name="return" description="name =&gt; value for all style templates or null if no templates" type="array|null">
10843
- <type by_reference="false">array</type>
10844
- <type by_reference="false">null</type>
10845
- </tag>
10846
- </docblock>
10847
- </method>
10848
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="385" package="Media Library Assistant">
10849
- <name>mla_put_style_templates</name>
10850
- <full_name>mla_put_style_templates</full_name>
10851
- <docblock line="377">
10852
- <description><![CDATA[Put user-defined style templates to $mla_templates and database]]></description>
10853
- <long-description><![CDATA[]]></long-description>
10854
- <tag line="377" name="since" description="0.80"/>
10855
- <tag line="377" name="param" description="name =&gt; value for all user-defined style templates" type="array" variable="$templates">
10856
- <type by_reference="false">array</type>
10857
- </tag>
10858
- <tag line="377" name="return" description="true if success, false if failure" type="boolean">
10859
- <type by_reference="false">boolean</type>
10860
- </tag>
10861
- </docblock>
10862
- <argument line="385">
10863
- <name>$templates</name>
10864
- <default><![CDATA[]]></default>
10865
- <type/>
10866
- </argument>
10867
- </method>
10868
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="401" package="Media Library Assistant">
10869
- <name>mla_get_markup_templates</name>
10870
- <full_name>mla_get_markup_templates</full_name>
10871
- <docblock line="394">
10872
- <description><![CDATA[Get ALL markup templates from $mla_templates, including 'default']]></description>
10873
- <long-description><![CDATA[]]></long-description>
10874
- <tag line="394" name="since" description="0.80"/>
10875
- <tag line="394" name="return" description="name =&gt; value for all markup templates or null if no templates" type="array|null">
10876
- <type by_reference="false">array</type>
10877
- <type by_reference="false">null</type>
10878
- </tag>
10879
- </docblock>
10880
- </method>
10881
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="463" package="Media Library Assistant">
10882
- <name>mla_put_markup_templates</name>
10883
- <full_name>mla_put_markup_templates</full_name>
10884
- <docblock line="455">
10885
- <description><![CDATA[Put user-defined markup templates to $mla_templates and database]]></description>
10886
- <long-description><![CDATA[]]></long-description>
10887
- <tag line="455" name="since" description="0.80"/>
10888
- <tag line="455" name="param" description="name =&gt; value for all user-defined markup templates" type="array" variable="$templates">
10889
- <type by_reference="false">array</type>
10890
- </tag>
10891
- <tag line="455" name="return" description="true if success, false if failure" type="boolean">
10892
- <type by_reference="false">boolean</type>
10893
- </tag>
10894
- </docblock>
10895
- <argument line="463">
10896
- <name>$templates</name>
10897
- <default><![CDATA[]]></default>
10898
- <type/>
10899
- </argument>
10900
- </method>
10901
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="487" package="Media Library Assistant">
10902
  <name>mla_get_option</name>
10903
  <full_name>mla_get_option</full_name>
10904
- <docblock line="472">
10905
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
10906
  <long-description><![CDATA[<p>Compatibility shim for MLACore::mla_get_option</p>]]></long-description>
10907
- <tag line="472" name="since" description="0.1"/>
10908
- <tag line="472" name="param" description="Name of the desired option" type="string" variable="$option">
10909
  <type by_reference="false">string</type>
10910
  </tag>
10911
- <tag line="472" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
10912
  <type by_reference="false">boolean</type>
10913
  </tag>
10914
- <tag line="472" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
10915
  <type by_reference="false">boolean</type>
10916
  </tag>
10917
- <tag line="472" name="param" description="Custom option definitions" type="array" variable="$option_table">
10918
  <type by_reference="false">array</type>
10919
  </tag>
10920
- <tag line="472" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
10921
  <type by_reference="false">mixed</type>
10922
  </tag>
10923
  </docblock>
10924
- <argument line="487">
10925
  <name>$option</name>
10926
  <default><![CDATA[]]></default>
10927
  <type/>
10928
  </argument>
10929
- <argument line="487">
10930
  <name>$get_default</name>
10931
  <default><![CDATA[false]]></default>
10932
  <type/>
10933
  </argument>
10934
- <argument line="487">
10935
  <name>$get_stored</name>
10936
  <default><![CDATA[false]]></default>
10937
  <type/>
10938
  </argument>
10939
- <argument line="487">
10940
  <name>$option_table</name>
10941
  <default><![CDATA[NULL]]></default>
10942
  <type/>
10943
  </argument>
10944
  </method>
10945
- <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="504" package="Media Library Assistant">
10946
  <name>mla_update_option</name>
10947
  <full_name>mla_update_option</full_name>
10948
- <docblock line="491">
10949
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
10950
  <long-description><![CDATA[<p>Compatibility shim for MLACore::mla_update_option</p>]]></long-description>
10951
- <tag line="491" name="since" description="0.1"/>
10952
- <tag line="491" name="param" description="Name of the desired option" type="string" variable="$option">
10953
  <type by_reference="false">string</type>
10954
  </tag>
10955
- <tag line="491" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
10956
  <type by_reference="false">mixed</type>
10957
  </tag>
10958
- <tag line="491" name="param" description="Custom option definitions" type="array" variable="$option_table">
10959
  <type by_reference="false">array</type>
10960
  </tag>
10961
- <tag line="491" name="return" description="True if the value was changed or false if the update failed" type="boolean">
10962
  <type by_reference="false">boolean</type>
10963
  </tag>
10964
  </docblock>
10965
- <argument line="504">
10966
  <name>$option</name>
10967
  <default><![CDATA[]]></default>
10968
  <type/>
10969
  </argument>
10970
- <argument line="504">
10971
  <name>$newvalue</name>
10972
  <default><![CDATA[]]></default>
10973
  <type/>
10974
  </argument>
10975
- <argument line="504">
10976
  <name>$option_table</name>
10977
  <default><![CDATA[NULL]]></default>
10978
  <type/>
10979
  </argument>
10980
  </
1479
  </method>
1480
  </class>
1481
  </file>
1482
+ <file path="includes\class-mla-core.php" hash="7889e0291a388c2cbfe09857571c30f3" package="Media Library Assistant">
1483
  <docblock line="2">
1484
  <description><![CDATA[Media Library Assistant Core objects]]></description>
1485
  <long-description><![CDATA[]]></long-description>
1486
  <tag line="2" name="package" description="Media Library Assistant"/>
1487
  <tag line="2" name="since" description="2.20"/>
1488
  </docblock>
1489
+ <include line="334" type="Require Once" package="Media Library Assistant">
1490
  <name/>
1491
  </include>
1492
+ <include line="336" type="Require Once" package="Media Library Assistant">
1493
  <name/>
1494
  </include>
1495
+ <include line="339" type="Require Once" package="Media Library Assistant">
1496
+ <name/>
1497
+ </include>
1498
+ <include line="1422" type="Require Once" package="Media Library Assistant">
1499
  <name/>
1500
  </include>
1501
  <include line="1456" type="Require Once" package="Media Library Assistant">
1502
  <name/>
1503
  </include>
1504
+ <include line="1523" type="Require Once" package="Media Library Assistant">
1505
+ <name/>
1506
+ </include>
1507
+ <include line="1529" type="Require Once" package="Media Library Assistant">
1508
+ <name/>
1509
+ </include>
1510
  <class final="false" abstract="false" namespace="global" line="16" package="Media Library Assistant">
1511
  <extends/>
1512
  <name>MLACore</name>
1517
  <tag line="10" name="package" description="Media Library Assistant"/>
1518
  <tag line="10" name="since" description="2.20"/>
1519
  </docblock>
1520
+ <constant namespace="global" line="24" package="Media Library Assistant">
1521
+ <name>CURRENT_MLA_VERSION</name>
1522
+ <full_name>CURRENT_MLA_VERSION</full_name>
1523
+ <value><![CDATA['2.30']]></value>
1524
+ <docblock line="17">
1525
+ <description><![CDATA[Current version number (moved from class-mla-main.php)]]></description>
1526
+ <long-description><![CDATA[]]></long-description>
1527
+ <tag line="17" name="since" description="2.30"/>
1528
+ <tag line="17" name="var" description="" type="string">
1529
+ <type by_reference="false">string</type>
1530
+ </tag>
1531
+ </docblock>
1532
+ </constant>
1533
+ <constant namespace="global" line="33" package="Media Library Assistant">
1534
+ <name>STYLESHEET_SLUG</name>
1535
+ <full_name>STYLESHEET_SLUG</full_name>
1536
+ <value><![CDATA['mla-style']]></value>
1537
+ <docblock line="26">
1538
+ <description><![CDATA[Slug for registering and enqueueing plugin style sheets (moved from class-mla-main.php)]]></description>
1539
+ <long-description><![CDATA[]]></long-description>
1540
+ <tag line="26" name="since" description="2.30"/>
1541
+ <tag line="26" name="var" description="" type="string">
1542
+ <type by_reference="false">string</type>
1543
+ </tag>
1544
+ </docblock>
1545
+ </constant>
1546
+ <constant namespace="global" line="60" package="Media Library Assistant">
1547
  <name>MLA_DEBUG_CATEGORY_ANY</name>
1548
  <full_name>MLA_DEBUG_CATEGORY_ANY</full_name>
1549
  <value><![CDATA[1]]></value>
1550
+ <docblock line="53">
1551
  <description><![CDATA[Constant to log "any" debug activity]]></description>
1552
  <long-description><![CDATA[]]></long-description>
1553
+ <tag line="53" name="since" description="2.25"/>
1554
+ <tag line="53" name="var" description="" type="integer">
1555
  <type by_reference="false">integer</type>
1556
  </tag>
1557
  </docblock>
1558
  </constant>
1559
+ <constant namespace="global" line="69" package="Media Library Assistant">
1560
  <name>MLA_DEBUG_CATEGORY_AJAX</name>
1561
  <full_name>MLA_DEBUG_CATEGORY_AJAX</full_name>
1562
  <value><![CDATA[2]]></value>
1563
+ <docblock line="62">
1564
  <description><![CDATA[Constant to log Ajax debug activity]]></description>
1565
  <long-description><![CDATA[]]></long-description>
1566
+ <tag line="62" name="since" description="2.13"/>
1567
+ <tag line="62" name="var" description="" type="integer">
1568
  <type by_reference="false">integer</type>
1569
  </tag>
1570
  </docblock>
1571
  </constant>
1572
+ <constant namespace="global" line="78" package="Media Library Assistant">
1573
  <name>MLA_DEBUG_CATEGORY_LANGUAGE</name>
1574
  <full_name>MLA_DEBUG_CATEGORY_LANGUAGE</full_name>
1575
  <value><![CDATA[4]]></value>
1576
+ <docblock line="71">
1577
  <description><![CDATA[Constant to log WPML/Polylang action/filter activity]]></description>
1578
  <long-description><![CDATA[]]></long-description>
1579
+ <tag line="71" name="since" description="2.15"/>
1580
+ <tag line="71" name="var" description="" type="integer">
1581
  <type by_reference="false">integer</type>
1582
  </tag>
1583
  </docblock>
1584
  </constant>
1585
+ <constant namespace="global" line="87" package="Media Library Assistant">
1586
  <name>MLA_DEBUG_CATEGORY_THUMBNAIL</name>
1587
  <full_name>MLA_DEBUG_CATEGORY_THUMBNAIL</full_name>
1588
  <value><![CDATA[8]]></value>
1589
+ <docblock line="80">
1590
  <description><![CDATA[Constant to log Ghostscript/Imagick activity]]></description>
1591
  <long-description><![CDATA[]]></long-description>
1592
+ <tag line="80" name="since" description="2.23"/>
1593
+ <tag line="80" name="var" description="" type="integer">
1594
  <type by_reference="false">integer</type>
1595
  </tag>
1596
  </docblock>
1597
  </constant>
1598
+ <constant namespace="global" line="96" package="Media Library Assistant">
1599
  <name>ADMIN_PAGE_SLUG</name>
1600
  <full_name>ADMIN_PAGE_SLUG</full_name>
1601
  <value><![CDATA['mla-menu']]></value>
1602
+ <docblock line="89">
1603
  <description><![CDATA[Slug for adding plugin submenu]]></description>
1604
  <long-description><![CDATA[]]></long-description>
1605
+ <tag line="89" name="since" description="0.1"/>
1606
+ <tag line="89" name="var" description="" type="string">
1607
  <type by_reference="false">string</type>
1608
  </tag>
1609
  </docblock>
1610
  </constant>
1611
+ <constant namespace="global" line="105" package="Media Library Assistant">
1612
  <name>MLA_ADMIN_SINGLE_DELETE</name>
1613
  <full_name>MLA_ADMIN_SINGLE_DELETE</full_name>
1614
  <value><![CDATA['single_item_delete']]></value>
1615
+ <docblock line="98">
1616
  <description><![CDATA[mla_admin_action value for permanently deleting a single item]]></description>
1617
  <long-description><![CDATA[]]></long-description>
1618
+ <tag line="98" name="since" description="0.1"/>
1619
+ <tag line="98" name="var" description="" type="string">
1620
  <type by_reference="false">string</type>
1621
  </tag>
1622
  </docblock>
1623
  </constant>
1624
+ <constant namespace="global" line="114" package="Media Library Assistant">
1625
  <name>MLA_ADMIN_SINGLE_TRASH</name>
1626
  <full_name>MLA_ADMIN_SINGLE_TRASH</full_name>
1627
  <value><![CDATA['single_item_trash']]></value>
1628
+ <docblock line="107">
1629
  <description><![CDATA[mla_admin_action value for moving a single item to the trash]]></description>
1630
  <long-description><![CDATA[]]></long-description>
1631
+ <tag line="107" name="since" description="0.1"/>
1632
+ <tag line="107" name="var" description="" type="string">
1633
  <type by_reference="false">string</type>
1634
  </tag>
1635
  </docblock>
1636
  </constant>
1637
+ <constant namespace="global" line="123" package="Media Library Assistant">
1638
  <name>MLA_ADMIN_SINGLE_RESTORE</name>
1639
  <full_name>MLA_ADMIN_SINGLE_RESTORE</full_name>
1640
  <value><![CDATA['single_item_restore']]></value>
1641
+ <docblock line="116">
1642
  <description><![CDATA[mla_admin_action value for restoring a single item from the trash]]></description>
1643
  <long-description><![CDATA[]]></long-description>
1644
+ <tag line="116" name="since" description="0.1"/>
1645
+ <tag line="116" name="var" description="" type="string">
1646
  <type by_reference="false">string</type>
1647
  </tag>
1648
  </docblock>
1649
  </constant>
1650
+ <constant namespace="global" line="132" package="Media Library Assistant">
1651
  <name>MLA_ADMIN_NONCE_ACTION</name>
1652
  <full_name>MLA_ADMIN_NONCE_ACTION</full_name>
1653
  <value><![CDATA['mla_admin_nonce_action']]></value>
1654
+ <docblock line="125">
1655
  <description><![CDATA[Action name; gives a context for the nonce]]></description>
1656
  <long-description><![CDATA[]]></long-description>
1657
+ <tag line="125" name="since" description="0.1"/>
1658
+ <tag line="125" name="var" description="" type="string">
1659
  <type by_reference="false">string</type>
1660
  </tag>
1661
  </docblock>
1662
  </constant>
1663
+ <constant namespace="global" line="141" package="Media Library Assistant">
1664
  <name>MLA_ADMIN_NONCE_NAME</name>
1665
  <full_name>MLA_ADMIN_NONCE_NAME</full_name>
1666
  <value><![CDATA['mla_admin_nonce']]></value>
1667
+ <docblock line="134">
1668
  <description><![CDATA[Nonce name; uniquely identifies the nonce]]></description>
1669
  <long-description><![CDATA[]]></long-description>
1670
+ <tag line="134" name="since" description="2.13"/>
1671
+ <tag line="134" name="var" description="" type="string">
1672
  <type by_reference="false">string</type>
1673
  </tag>
1674
  </docblock>
1675
  </constant>
1676
+ <constant namespace="global" line="150" package="Media Library Assistant">
1677
  <name>JAVASCRIPT_INLINE_EDIT_SLUG</name>
1678
  <full_name>JAVASCRIPT_INLINE_EDIT_SLUG</full_name>
1679
  <value><![CDATA['mla-inline-edit-scripts']]></value>
1680
+ <docblock line="143">
1681
  <description><![CDATA[Slug for localizing and enqueueing JavaScript - MLA List Table]]></description>
1682
  <long-description><![CDATA[]]></long-description>
1683
+ <tag line="143" name="since" description="0.20"/>
1684
+ <tag line="143" name="var" description="" type="string">
1685
  <type by_reference="false">string</type>
1686
  </tag>
1687
  </docblock>
1688
  </constant>
1689
+ <constant namespace="global" line="159" package="Media Library Assistant">
1690
  <name>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</name>
1691
  <full_name>JAVASCRIPT_QUERY_ATTACHMENTS_ACTION</full_name>
1692
  <value><![CDATA['mla-query-attachments']]></value>
1693
+ <docblock line="152">
1694
  <description><![CDATA[Slug for the "query attachments" action - Add Media and related dialogs]]></description>
1695
  <long-description><![CDATA[]]></long-description>
1696
+ <tag line="152" name="since" description="1.80"/>
1697
+ <tag line="152" name="var" description="" type="string">
1698
  <type by_reference="false">string</type>
1699
  </tag>
1700
  </docblock>
1701
  </constant>
1702
+ <constant namespace="global" line="168" package="Media Library Assistant">
1703
  <name>JAVASCRIPT_FILL_COMPAT_ACTION</name>
1704
  <full_name>JAVASCRIPT_FILL_COMPAT_ACTION</full_name>
1705
  <value><![CDATA['mla-fill-compat-fields']]></value>
1706
+ <docblock line="161">
1707
  <description><![CDATA[Slug for the "fill compat-attachment-fields" action - Add Media and related dialogs]]></description>
1708
  <long-description><![CDATA[]]></long-description>
1709
+ <tag line="161" name="since" description="1.80"/>
1710
+ <tag line="161" name="var" description="" type="string">
1711
  <type by_reference="false">string</type>
1712
  </tag>
1713
  </docblock>
1714
  </constant>
1715
+ <constant namespace="global" line="177" package="Media Library Assistant">
1716
  <name>JAVASCRIPT_UPDATE_COMPAT_ACTION</name>
1717
  <full_name>JAVASCRIPT_UPDATE_COMPAT_ACTION</full_name>
1718
  <value><![CDATA['mla-update-compat-fields']]></value>
1719
+ <docblock line="170">
1720
  <description><![CDATA[Slug for the "update compat-attachment-fields" action - Add Media and related dialogs]]></description>
1721
  <long-description><![CDATA[]]></long-description>
1722
+ <tag line="170" name="since" description="1.80"/>
1723
+ <tag line="170" name="var" description="" type="string">
1724
  <type by_reference="false">string</type>
1725
  </tag>
1726
  </docblock>
1727
  </constant>
1728
+ <property final="false" static="true" visibility="public" line="42" namespace="global" package="Media Library Assistant">
1729
  <name>$original_php_log</name>
1730
  <default><![CDATA['?']]></default>
1731
+ <docblock line="35">
1732
  <description><![CDATA[Original PHP error_log path and file]]></description>
1733
  <long-description><![CDATA[]]></long-description>
1734
+ <tag line="35" name="since" description="2.20"/>
1735
+ <tag line="35" name="var" description="" type="string">
1736
  <type by_reference="false">string</type>
1737
  </tag>
1738
  </docblock>
1739
  </property>
1740
+ <property final="false" static="true" visibility="public" line="51" namespace="global" package="Media Library Assistant">
1741
  <name>$original_php_reporting</name>
1742
  <default><![CDATA['?']]></default>
1743
+ <docblock line="44">
1744
  <description><![CDATA[Original PHP error_reporting value]]></description>
1745
  <long-description><![CDATA[]]></long-description>
1746
+ <tag line="44" name="since" description="2.20"/>
1747
+ <tag line="44" name="var" description="" type="string">
1748
  <type by_reference="false">string</type>
1749
  </tag>
1750
  </docblock>
1751
  </property>
1752
+ <property final="false" static="true" visibility="public" line="188" namespace="global" package="Media Library Assistant">
1753
  <name>$process_featured_in</name>
1754
  <default><![CDATA[true]]></default>
1755
+ <docblock line="179">
1756
  <description><![CDATA[Option setting for "Featured in" reporting]]></description>
1757
  <long-description><![CDATA[<p>This setting is false if the "Featured in" database access setting is "disabled", else true.</p>]]></long-description>
1758
+ <tag line="179" name="since" description="1.00"/>
1759
+ <tag line="179" name="var" description="" type="boolean">
1760
  <type by_reference="false">boolean</type>
1761
  </tag>
1762
  </docblock>
1763
  </property>
1764
+ <property final="false" static="true" visibility="public" line="199" namespace="global" package="Media Library Assistant">
1765
  <name>$process_inserted_in</name>
1766
  <default><![CDATA[true]]></default>
1767
+ <docblock line="190">
1768
  <description><![CDATA[Option setting for "Inserted in" reporting]]></description>
1769
  <long-description><![CDATA[<p>This setting is false if the "Inserted in" database access setting is "disabled", else true.</p>]]></long-description>
1770
+ <tag line="190" name="since" description="1.00"/>
1771
+ <tag line="190" name="var" description="" type="boolean">
1772
  <type by_reference="false">boolean</type>
1773
  </tag>
1774
  </docblock>
1775
  </property>
1776
+ <property final="false" static="true" visibility="public" line="210" namespace="global" package="Media Library Assistant">
1777
  <name>$process_gallery_in</name>
1778
  <default><![CDATA[true]]></default>
1779
+ <docblock line="201">
1780
  <description><![CDATA[Option setting for "Gallery in" reporting]]></description>
1781
  <long-description><![CDATA[<p>This setting is false if the "Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
1782
+ <tag line="201" name="since" description="1.00"/>
1783
+ <tag line="201" name="var" description="" type="boolean">
1784
  <type by_reference="false">boolean</type>
1785
  </tag>
1786
  </docblock>
1787
  </property>
1788
+ <property final="false" static="true" visibility="public" line="221" namespace="global" package="Media Library Assistant">
1789
  <name>$process_mla_gallery_in</name>
1790
  <default><![CDATA[true]]></default>
1791
+ <docblock line="212">
1792
  <description><![CDATA[Option setting for "MLA Gallery in" reporting]]></description>
1793
  <long-description><![CDATA[<p>This setting is false if the "MLA Gallery in" database access setting is "disabled", else true.</p>]]></long-description>
1794
+ <tag line="212" name="since" description="1.00"/>
1795
+ <tag line="212" name="var" description="" type="boolean">
1796
  <type by_reference="false">boolean</type>
1797
  </tag>
1798
  </docblock>
1799
  </property>
1800
+ <property final="false" static="true" visibility="public" line="1203" namespace="global" package="Media Library Assistant">
1801
  <name>$mla_debug_level</name>
1802
  <default><![CDATA[0]]></default>
1803
+ <docblock line="1196">
1804
  <description><![CDATA[Effective MLA Debug Level, from MLA_DEBUG_LEVEL or override option]]></description>
1805
  <long-description><![CDATA[]]></long-description>
1806
+ <tag line="1196" name="since" description="2.15"/>
1807
+ <tag line="1196" name="var" description="" type="integer">
1808
  <type by_reference="false">integer</type>
1809
  </tag>
1810
  </docblock>
1811
  </property>
1812
+ <property final="false" static="true" visibility="private" line="1212" namespace="global" package="Media Library Assistant">
1813
  <name>$mla_debug_messages</name>
1814
  <default><![CDATA[array()]]></default>
1815
+ <docblock line="1205">
1816
  <description><![CDATA[Accumulates debug messages]]></description>
1817
  <long-description><![CDATA[]]></long-description>
1818
+ <tag line="1205" name="since" description="2.12"/>
1819
+ <tag line="1205" name="var" description="" type="string">
1820
  <type by_reference="false">string</type>
1821
  </tag>
1822
  </docblock>
1823
  </property>
1824
+ <property final="false" static="true" visibility="private" line="1223" namespace="global" package="Media Library Assistant">
1825
  <name>$mla_debug_mode</name>
1826
  <default><![CDATA['none']]></default>
1827
+ <docblock line="1214">
1828
  <description><![CDATA[Debug information collection mode]]></description>
1829
  <long-description><![CDATA[<p>Collection mode: 'buffer', 'console', 'log' or 'none' (default).</p>]]></long-description>
1830
+ <tag line="1214" name="since" description="2.12"/>
1831
+ <tag line="1214" name="var" description="" type="string">
1832
  <type by_reference="false">string</type>
1833
  </tag>
1834
  </docblock>
1835
  </property>
1836
+ <property final="false" static="true" visibility="private" line="1232" namespace="global" package="Media Library Assistant">
1837
  <name>$mla_debug_file</name>
1838
  <default><![CDATA[NULL]]></default>
1839
+ <docblock line="1225">
1840
  <description><![CDATA[Debug information output file for mode = 'log']]></description>
1841
  <long-description><![CDATA[]]></long-description>
1842
+ <tag line="1225" name="since" description="2.14"/>
1843
+ <tag line="1225" name="var" description="" type="string">
1844
  <type by_reference="false">string</type>
1845
  </tag>
1846
  </docblock>
1847
  </property>
1848
+ <property final="false" static="true" visibility="public" line="1411" namespace="global" package="Media Library Assistant">
1849
  <name>$admin_columns_storage_model</name>
1850
  <default><![CDATA[NULL]]></default>
1851
+ <docblock line="1404">
1852
  <description><![CDATA[Admin Columns support storage model object for the Media/Assistant submenu]]></description>
1853
  <long-description><![CDATA[]]></long-description>
1854
+ <tag line="1404" name="since" description="2.22"/>
1855
+ <tag line="1404" name="var" description="" type="object">
1856
  <type by_reference="false">object</type>
1857
  </tag>
1858
  </docblock>
1859
  </property>
1860
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="230" package="Media Library Assistant">
1861
  <name>initialize</name>
1862
  <full_name>initialize</full_name>
1863
+ <docblock line="223">
1864
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
1865
  <long-description><![CDATA[]]></long-description>
1866
+ <tag line="223" name="since" description="1.00"/>
1867
+ <tag line="223" name="return" description="" type="void">
1868
  <type by_reference="false">void</type>
1869
  </tag>
1870
  </docblock>
1871
  </method>
1872
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="326" package="Media Library Assistant">
1873
+ <name>mla_media_view_settings_filter</name>
1874
+ <full_name>mla_media_view_settings_filter</full_name>
1875
+ <docblock line="317">
1876
+ <description><![CDATA[Ensures that MLA media manager enhancements are present when required.]]></description>
1877
+ <long-description><![CDATA[<p>Declared public because it is a filter.</p>]]></long-description>
1878
+ <tag line="317" name="since" description="2.30"/>
1879
+ <tag line="317" name="param" description="associative array with setting =&gt; value pairs" type="array" variable="$settings">
1880
+ <type by_reference="false">array</type>
1881
+ </tag>
1882
+ <tag line="317" name="param" description="|| NULL current post object, if available" type="object" variable="$post">
1883
+ <type by_reference="false">object</type>
1884
+ </tag>
1885
+ </docblock>
1886
+ <argument line="326">
1887
+ <name>$settings</name>
1888
+ <default><![CDATA[]]></default>
1889
+ <type/>
1890
+ </argument>
1891
+ <argument line="326">
1892
+ <name>$post</name>
1893
+ <default><![CDATA[]]></default>
1894
+ <type/>
1895
+ </argument>
1896
+ </method>
1897
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="353" package="Media Library Assistant">
1898
+ <name>mla_wp_enqueue_media_action</name>
1899
+ <full_name>mla_wp_enqueue_media_action</full_name>
1900
+ <docblock line="347">
1901
+ <description><![CDATA[Registers and enqueues the mla-beaver-builder-style.css file, when needed.]]></description>
1902
+ <long-description><![CDATA[<p>Declared public because it is an action.</p>]]></long-description>
1903
+ <tag line="347" name="since" description="2.30"/>
1904
+ </docblock>
1905
+ </method>
1906
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="376" package="Media Library Assistant">
1907
  <name>mla_plugins_loaded_action</name>
1908
  <full_name>mla_plugins_loaded_action</full_name>
1909
+ <docblock line="365">
1910
  <description><![CDATA[Load a plugin text domain and alternate debug file]]></description>
1911
  <long-description><![CDATA[<p>The "add_action" for this function is in mla-plugin-loader.php, because the "initialize"
1912
  function above doesn't run in time.
1913
  Defined as public because it's an action.</p>]]></long-description>
1914
+ <tag line="365" name="since" description="1.60"/>
1915
+ <tag line="365" name="return" description="" type="void">
1916
  <type by_reference="false">void</type>
1917
  </tag>
1918
  </docblock>
1919
  </method>
1920
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="437" package="Media Library Assistant">
1921
  <name>mla_wp_redirect_filter</name>
1922
  <full_name>mla_wp_redirect_filter</full_name>
1923
+ <docblock line="429">
1924
  <description><![CDATA[Filter the redirect location.]]></description>
1925
  <long-description><![CDATA[]]></long-description>
1926
+ <tag line="429" name="since" description="2.25"/>
1927
+ <tag line="429" name="param" description="The path to redirect to." type="string" variable="$location">
1928
  <type by_reference="false">string</type>
1929
  </tag>
1930
+ <tag line="429" name="param" description="Status code to use." type="int" variable="$status">
1931
  <type by_reference="false">int</type>
1932
  </tag>
1933
  </docblock>
1934
+ <argument line="437">
1935
  <name>$location</name>
1936
  <default><![CDATA[]]></default>
1937
  <type/>
1938
  </argument>
1939
+ <argument line="437">
1940
  <name>$status</name>
1941
  <default><![CDATA[]]></default>
1942
  <type/>
1943
  </argument>
1944
  </method>
1945
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="457" package="Media Library Assistant">
1946
  <name>mla_initialize_tax_checked_on_top</name>
1947
  <full_name>mla_initialize_tax_checked_on_top</full_name>
1948
+ <docblock line="448">
1949
  <description><![CDATA[Initialize "tax_checked_on_top" => "checked" default for all supported taxonomies]]></description>
1950
  <long-description><![CDATA[<p>Called after all taxonomies are registered, e.g., in MLAObjects::_build_taxonomies.</p>]]></long-description>
1951
+ <tag line="448" name="since" description="2.02"/>
1952
+ <tag line="448" name="return" description="" type="void">
1953
  <type by_reference="false">void</type>
1954
  </tag>
1955
  </docblock>
1956
  </method>
1957
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="486" package="Media Library Assistant">
1958
  <name>mla_get_option</name>
1959
  <full_name>mla_get_option</full_name>
1960
+ <docblock line="473">
1961
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
1962
  <long-description><![CDATA[]]></long-description>
1963
+ <tag line="473" name="since" description="2.20"/>
1964
+ <tag line="473" name="param" description="Name of the desired option" type="string" variable="$option">
1965
  <type by_reference="false">string</type>
1966
  </tag>
1967
+ <tag line="473" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
1968
  <type by_reference="false">boolean</type>
1969
  </tag>
1970
+ <tag line="473" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
1971
  <type by_reference="false">boolean</type>
1972
  </tag>
1973
+ <tag line="473" name="param" description="Custom option definitions" type="array" variable="$option_table">
1974
  <type by_reference="false">array</type>
1975
  </tag>
1976
+ <tag line="473" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
1977
  <type by_reference="false">mixed</type>
1978
  </tag>
1979
  </docblock>
1980
+ <argument line="486">
1981
  <name>$option</name>
1982
  <default><![CDATA[]]></default>
1983
  <type/>
1984
  </argument>
1985
+ <argument line="486">
1986
  <name>$get_default</name>
1987
  <default><![CDATA[false]]></default>
1988
  <type/>
1989
  </argument>
1990
+ <argument line="486">
1991
  <name>$get_stored</name>
1992
  <default><![CDATA[false]]></default>
1993
  <type/>
1994
  </argument>
1995
+ <argument line="486">
1996
  <name>$option_table</name>
1997
  <default><![CDATA[NULL]]></default>
1998
  <type/>
1999
  </argument>
2000
  </method>
2001
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="525" package="Media Library Assistant">
2002
  <name>mla_update_option</name>
2003
  <full_name>mla_update_option</full_name>
2004
+ <docblock line="514">
2005
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
2006
  <long-description><![CDATA[]]></long-description>
2007
+ <tag line="514" name="since" description="2.20"/>
2008
+ <tag line="514" name="param" description="Name of the desired option" type="string" variable="$option">
2009
  <type by_reference="false">string</type>
2010
  </tag>
2011
+ <tag line="514" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
2012
  <type by_reference="false">mixed</type>
2013
  </tag>
2014
+ <tag line="514" name="param" description="Custom option definitions" type="array" variable="$option_table">
2015
  <type by_reference="false">array</type>
2016
  </tag>
2017
+ <tag line="514" name="return" description="True if the value was changed or false if the update failed" type="boolean">
2018
  <type by_reference="false">boolean</type>
2019
  </tag>
2020
  </docblock>
2021
+ <argument line="525">
2022
  <name>$option</name>
2023
  <default><![CDATA[]]></default>
2024
  <type/>
2025
  </argument>
2026
+ <argument line="525">
2027
  <name>$newvalue</name>
2028
  <default><![CDATA[]]></default>
2029
  <type/>
2030
  </argument>
2031
+ <argument line="525">
2032
  <name>$option_table</name>
2033
  <default><![CDATA[NULL]]></default>
2034
  <type/>
2035
  </argument>
2036
  </method>
2037
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="557" package="Media Library Assistant">
2038
  <name>mla_delete_option</name>
2039
  <full_name>mla_delete_option</full_name>
2040
+ <docblock line="547">
2041
  <description><![CDATA[Delete the stored value of a defined MLA option]]></description>
2042
  <long-description><![CDATA[]]></long-description>
2043
+ <tag line="547" name="since" description="2.20"/>
2044
+ <tag line="547" name="param" description="Name of the desired option" type="string" variable="$option">
2045
  <type by_reference="false">string</type>
2046
  </tag>
2047
+ <tag line="547" name="param" description="Custom option definitions" type="array" variable="$option_table">
2048
  <type by_reference="false">array</type>
2049
  </tag>
2050
+ <tag line="547" name="return" description="True if the option was deleted, otherwise false" type="boolean">
2051
  <type by_reference="false">boolean</type>
2052
  </tag>
2053
  </docblock>
2054
+ <argument line="557">
2055
  <name>$option</name>
2056
  <default><![CDATA[]]></default>
2057
  <type/>
2058
  </argument>
2059
+ <argument line="557">
2060
  <name>$option_table</name>
2061
  <default><![CDATA[NULL]]></default>
2062
  <type/>
2063
  </argument>
2064
  </method>
2065
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="591" package="Media Library Assistant">
2066
  <name>mla_load_template</name>
2067
  <full_name>mla_load_template</full_name>
2068
+ <docblock line="573">
2069
  <description><![CDATA[Load an HTML template from a file]]></description>
2070
  <long-description><![CDATA[<p>Loads a template to a string or a multi-part template to an array.
2071
  Multi-part templates are divided by comments of the form <!-- template="key" -->,
2072
  where "key" becomes the key part of the array.</p>]]></long-description>
2073
+ <tag line="573" name="since" description="0.1"/>
2074
+ <tag line="573" name="param" description="Complete path and/or name of the template file, option name or the raw template" type="string" variable="$source">
2075
  <type by_reference="false">string</type>
2076
  </tag>
2077
+ <tag line="573" name="param" description="Optional type of template source; 'path', 'file' (default), 'option', 'string'" type="string" variable="$type">
2078
  <type by_reference="false">string</type>
2079
  </tag>
2080
+ <tag line="573" name="return" description="string for files that do not contain template divider comments, array for files containing template divider comments, false if file or option does not exist, NULL if file could not be loaded." type="string|array|false|NULL">
2081
  <type by_reference="false">string</type>
2082
  <type by_reference="false">array</type>
2083
  <type by_reference="false">false</type>
2084
  <type by_reference="false">NULL</type>
2085
  </tag>
2086
  </docblock>
2087
+ <argument line="591">
2088
  <name>$source</name>
2089
  <default><![CDATA[]]></default>
2090
  <type/>
2091
  </argument>
2092
+ <argument line="591">
2093
  <name>$type</name>
2094
  <default><![CDATA['file']]></default>
2095
  <type/>
2096
  </argument>
2097
  </method>
2098
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="715" package="Media Library Assistant">
2099
  <name>mla_taxonomy_support</name>
2100
  <full_name>mla_taxonomy_support</full_name>
2101
+ <docblock line="702">
2102
  <description><![CDATA[Determine MLA support for a taxonomy, handling the special case where the
2103
  settings are being updated or reset.]]></description>
2104
  <long-description><![CDATA[]]></long-description>
2105
+ <tag line="702" name="since" description="2.20"/>
2106
+ <tag line="702" name="param" description="Taxonomy name, e.g., attachment_category" type="string" variable="$tax_name">
2107
  <type by_reference="false">string</type>
2108
  </tag>
2109
+ <tag line="702" name="param" description="Optional. 'support' (default), 'quick-edit' or 'filter'" type="string" variable="$support_type">
2110
  <type by_reference="false">string</type>
2111
  </tag>
2112
+ <tag line="702" name="return" description="true if the taxonomy is supported in this way else false. string if $tax_name is '' and $support_type is 'filter', returns the taxonomy to filter by." type="boolean|string">
2113
  <type by_reference="false">boolean</type>
2114
  <type by_reference="false">string</type>
2115
  </tag>
2116
  </docblock>
2117
+ <argument line="715">
2118
  <name>$tax_name</name>
2119
  <default><![CDATA[]]></default>
2120
  <type/>
2121
  </argument>
2122
+ <argument line="715">
2123
  <name>$support_type</name>
2124
  <default><![CDATA['support']]></default>
2125
  <type/>
2126
  </argument>
2127
  </method>
2128
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="792" package="Media Library Assistant">
2129
  <name>mla_supported_taxonomies</name>
2130
  <full_name>mla_supported_taxonomies</full_name>
2131
+ <docblock line="783">
2132
  <description><![CDATA[Returns an array of taxonomy names assigned to $support_type]]></description>
2133
  <long-description><![CDATA[]]></long-description>
2134
+ <tag line="783" name="since" description="2.20"/>
2135
+ <tag line="783" name="param" description="Optional. 'support' (default), 'quick-edit', 'flat-checklist', 'term-search' or 'filter'" type="string" variable="$support_type">
2136
  <type by_reference="false">string</type>
2137
  </tag>
2138
+ <tag line="783" name="return" description="taxonomies assigned to $support_type; can be empty." type="array">
2139
  <type by_reference="false">array</type>
2140
  </tag>
2141
  </docblock>
2142
+ <argument line="792">
2143
  <name>$support_type</name>
2144
  <default><![CDATA['support']]></default>
2145
  <type/>
2146
  </argument>
2147
  </method>
2148
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="858" package="Media Library Assistant">
2149
  <name>mla_custom_field_support</name>
2150
  <full_name>mla_custom_field_support</full_name>
2151
+ <docblock line="849">
2152
  <description><![CDATA[Evaluate support information for custom field mapping]]></description>
2153
  <long-description><![CDATA[]]></long-description>
2154
+ <tag line="849" name="since" description="1.10"/>
2155
+ <tag line="849" name="param" description="array format; 'default_columns' (default), 'default_hidden_columns', 'default_sortable_columns', 'quick_edit' or 'bulk_edit'" type="string" variable="$support_type">
2156
  <type by_reference="false">string</type>
2157
  </tag>
2158
+ <tag line="849" name="return" description="default, hidden, sortable quick_edit or bulk_edit colums in appropriate format" type="array">
2159
  <type by_reference="false">array</type>
2160
  </tag>
2161
  </docblock>
2162
+ <argument line="858">
2163
  <name>$support_type</name>
2164
  <default><![CDATA['default_columns']]></default>
2165
  <type/>
2166
  </argument>
2167
  </method>
2168
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="920" package="Media Library Assistant">
2169
  <name>mla_prepare_view_query</name>
2170
  <full_name>mla_prepare_view_query</full_name>
2171
+ <docblock line="910">
2172
  <description><![CDATA[Convert a Library View/Post MIME Type specification to WP_Query parameters]]></description>
2173
  <long-description><![CDATA[]]></long-description>
2174
+ <tag line="910" name="since" description="1.40"/>
2175
+ <tag line="910" name="param" description="View slug, unique identifier" type="string" variable="$slug">
2176
  <type by_reference="false">string</type>
2177
  </tag>
2178
+ <tag line="910" name="param" description="A specification, e.g., &quot;custom:Field,null&quot; or &quot;audio,application/vnd.*ms*&quot;" type="string" variable="$specification">
2179
  <type by_reference="false">string</type>
2180
  </tag>
2181
+ <tag line="910" name="return" description="post_mime_type specification or custom field query" type="array">
2182
  <type by_reference="false">array</type>
2183
  </tag>
2184
  </docblock>
2185
+ <argument line="920">
2186
  <name>$slug</name>
2187
  <default><![CDATA[]]></default>
2188
  <type/>
2189
  </argument>
2190
+ <argument line="920">
2191
  <name>$specification</name>
2192
  <default><![CDATA[]]></default>
2193
  <type/>
2194
  </argument>
2195
  </method>
2196
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="971" package="Media Library Assistant">
2197
  <name>mla_parse_view_specification</name>
2198
  <full_name>mla_parse_view_specification</full_name>
2199
+ <docblock line="962">
2200
  <description><![CDATA[Analyze a Library View/Post MIME Type specification, returning an array of the placeholders it contains]]></description>
2201
  <long-description><![CDATA[]]></long-description>
2202
+ <tag line="962" name="since" description="1.40"/>
2203
+ <tag line="962" name="param" description="A specification, e.g., &quot;custom:Field,null&quot; or &quot;audio,application/vnd.*ms*&quot;" type="string|array" variable="$specification">
2204
  <type by_reference="false">string</type>
2205
  <type by_reference="false">array</type>
2206
  </tag>
2207
+ <tag line="962" name="return" description="( ['prefix'] =&gt; string, ['name'] =&gt; string, ['value'] =&gt; string, ['option'] =&gt; string, optional ['error'] =&gt; string )" type="array">
2208
  <type by_reference="false">array</type>
2209
  </tag>
2210
  </docblock>
2211
+ <argument line="971">
2212
  <name>$specification</name>
2213
  <default><![CDATA[]]></default>
2214
  <type/>
2215
  </argument>
2216
  </method>
2217
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1048" package="Media Library Assistant">
2218
  <name>mla_checklist_meta_box</name>
2219
  <full_name>mla_checklist_meta_box</full_name>
2220
+ <docblock line="1033">
2221
  <description><![CDATA[Display taxonomy "checklist" form fields]]></description>
2222
  <long-description><![CDATA[<p>Adapted from /wp-admin/includes/ajax-actions.php function _wp_ajax_add_hierarchical_term().
2223
  Includes the "? Search" area to filter the term checklist by entering part
2224
  or all of a word/phrase in the term label.
2225
  Output to the Media/Edit Media screen and to the Media Manager Modal Window.</p>]]></long-description>
2226
+ <tag line="1033" name="since" description="1.71"/>
2227
+ <tag line="1033" name="param" description="The current post" type="object" variable="$target_post">
2228
  <type by_reference="false">object</type>
2229
  </tag>
2230
+ <tag line="1033" name="param" description="The meta box parameters" type="array" variable="$box">
2231
  <type by_reference="false">array</type>
2232
  </tag>
2233
+ <tag line="1033" name="return" description="Echoes HTML for the form fields" type="void">
2234
  <type by_reference="false">void</type>
2235
  </tag>
2236
  </docblock>
2237
+ <argument line="1048">
2238
  <name>$target_post</name>
2239
  <default><![CDATA[]]></default>
2240
  <type/>
2241
  </argument>
2242
+ <argument line="1048">
2243
  <name>$box</name>
2244
  <default><![CDATA[]]></default>
2245
  <type/>
2246
  </argument>
2247
  </method>
2248
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1243" package="Media Library Assistant">
2249
  <name>mla_debug_mode</name>
2250
  <full_name>mla_debug_mode</full_name>
2251
+ <docblock line="1234">
2252
  <description><![CDATA[Get/Set debug information collection mode]]></description>
2253
  <long-description><![CDATA[]]></long-description>
2254
+ <tag line="1234" name="since" description="2.12"/>
2255
+ <tag line="1234" name="param" description="Optional. New collection mode: 'none' (default), 'buffer', 'console' or 'log'" type="string" variable="$mode">
2256
  <type by_reference="false">string</type>
2257
  </tag>
2258
+ <tag line="1234" name="return" description="The previous mode value, i.e., before the update" type="string">
2259
  <type by_reference="false">string</type>
2260
  </tag>
2261
  </docblock>
2262
+ <argument line="1243">
2263
  <name>$mode</name>
2264
  <default><![CDATA[false]]></default>
2265
  <type/>
2266
  </argument>
2267
  </method>
2268
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1266" package="Media Library Assistant">
2269
  <name>mla_debug_file</name>
2270
  <full_name>mla_debug_file</full_name>
2271
+ <docblock line="1253">
2272
  <description><![CDATA[Get/Set debug information collection output file for mode = 'log']]></description>
2273
  <long-description><![CDATA[<p>Note that WP_CONTENT_DIR will be pre-pended to the value, and a slash
2274
  will be added to the front of the value if necessary.</p>]]></long-description>
2275
+ <tag line="1253" name="since" description="2.14"/>
2276
+ <tag line="1253" name="param" description="Optional. The (optional path and) file name, relative to WP_CONTENT_DIR, or false/empty string to clear the value." type="string" variable="$file">
2277
  <type by_reference="false">string</type>
2278
  </tag>
2279
+ <tag line="1253" name="return" description="The previous file value, i.e., before the update, relative to WP_CONTENT_DIR" type="string">
2280
  <type by_reference="false">string</type>
2281
  </tag>
2282
  </docblock>
2283
+ <argument line="1266">
2284
  <name>$file</name>
2285
  <default><![CDATA[NULL]]></default>
2286
  <type/>
2287
  </argument>
2288
  </method>
2289
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1297" package="Media Library Assistant">
2290
  <name>mla_debug_content</name>
2291
  <full_name>mla_debug_content</full_name>
2292
+ <docblock line="1287">
2293
  <description><![CDATA[Get debug information without clearing the buffer]]></description>
2294
  <long-description><![CDATA[]]></long-description>
2295
+ <tag line="1287" name="since" description="2.12"/>
2296
+ <tag line="1287" name="param" description="Return data type: 'string' (default) or 'array'" type="string" variable="$format">
2297
  <type by_reference="false">string</type>
2298
  </tag>
2299
+ <tag line="1287" name="param" description="Join array elements with '\n' or '&lt;p&gt;' (default)" type="string" variable="$glue">
2300
  <type by_reference="false">string</type>
2301
  </tag>
2302
+ <tag line="1287" name="return" description="true if success else false" type="boolean">
2303
  <type by_reference="false">boolean</type>
2304
  </tag>
2305
  </docblock>
2306
+ <argument line="1297">
2307
  <name>$format</name>
2308
  <default><![CDATA['string']]></default>
2309
  <type/>
2310
  </argument>
2311
+ <argument line="1297">
2312
  <name>$glue</name>
2313
  <default><![CDATA['<p>']]></default>
2314
  <type/>
2315
  </argument>
2316
  </method>
2317
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1320" package="Media Library Assistant">
2318
  <name>mla_debug_flush</name>
2319
  <full_name>mla_debug_flush</full_name>
2320
+ <docblock line="1310">
2321
  <description><![CDATA[Flush debug information and clear buffer]]></description>
2322
  <long-description><![CDATA[]]></long-description>
2323
+ <tag line="1310" name="since" description="2.12"/>
2324
+ <tag line="1310" name="param" description="Destination: 'buffer' (default), 'console', 'log' or 'none'" type="string" variable="$destination">
2325
  <type by_reference="false">string</type>
2326
  </tag>
2327
+ <tag line="1310" name="param" description="true (default) to stop, false to continue collection" type="boolean" variable="$stop_collecting">
2328
  <type by_reference="false">boolean</type>
2329
  </tag>
2330
+ <tag line="1310" name="return" description="debug content if $destination == 'buffer' else empty string" type="string">
2331
  <type by_reference="false">string</type>
2332
  </tag>
2333
  </docblock>
2334
+ <argument line="1320">
2335
  <name>$destination</name>
2336
  <default><![CDATA['buffer']]></default>
2337
  <type/>
2338
  </argument>
2339
+ <argument line="1320">
2340
  <name>$stop_collecting</name>
2341
  <default><![CDATA[true]]></default>
2342
  <type/>
2343
  </argument>
2344
  </method>
2345
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1355" package="Media Library Assistant">
2346
  <name>_debug_log</name>
2347
  <full_name>_debug_log</full_name>
2348
+ <docblock line="1348">
2349
  <description><![CDATA[Write a debug message to the appropriate log file]]></description>
2350
  <long-description><![CDATA[]]></long-description>
2351
+ <tag line="1348" name="since" description="2.14"/>
2352
+ <tag line="1348" name="param" description="Message text" type="string" variable="$message">
2353
  <type by_reference="false">string</type>
2354
  </tag>
2355
  </docblock>
2356
+ <argument line="1355">
2357
  <name>$message</name>
2358
  <default><![CDATA[]]></default>
2359
  <type/>
2360
  </argument>
2361
  </method>
2362
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1378" package="Media Library Assistant">
2363
  <name>mla_debug_add</name>
2364
  <full_name>mla_debug_add</full_name>
2365
+ <docblock line="1370">
2366
  <description><![CDATA[Add a debug message to the collection]]></description>
2367
  <long-description><![CDATA[]]></long-description>
2368
+ <tag line="1370" name="since" description="2.12"/>
2369
+ <tag line="1370" name="param" description="Message text" type="string" variable="$message">
2370
  <type by_reference="false">string</type>
2371
  </tag>
2372
+ <tag line="1370" name="param" description="Optional. Debug category." type="integer" variable="$debug_level">
2373
  <type by_reference="false">integer</type>
2374
  </tag>
2375
  </docblock>
2376
+ <argument line="1378">
2377
  <name>$message</name>
2378
  <default><![CDATA[]]></default>
2379
  <type/>
2380
  </argument>
2381
+ <argument line="1378">
2382
  <name>$debug_level</name>
2383
  <default><![CDATA[NULL]]></default>
2384
  <type/>
2385
  </argument>
2386
  </method>
2387
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1421" package="Media Library Assistant">
2388
  <name>admin_columns_support</name>
2389
  <full_name>admin_columns_support</full_name>
2390
+ <docblock line="1413">
2391
  <description><![CDATA[Define the Media/Assistant submenu screen to the Admin Columns plugin]]></description>
2392
  <long-description><![CDATA[]]></long-description>
2393
+ <tag line="1413" name="since" description="2.22"/>
2394
+ <tag line="1413" name="param" description="List of storage model class instances ( [key] =&gt; [CPAC_Storage_Model object] )" type="array" variable="$storage_models">
2395
  <type by_reference="false">array</type>
2396
  </tag>
2397
+ <tag line="1413" name="param" description="CPAC, the root CodePress Admin Columns object" type="object" variable="$cpac">
2398
  <type by_reference="false">object</type>
2399
  </tag>
2400
  </docblock>
2401
+ <argument line="1421">
2402
  <name>$storage_models</name>
2403
  <default><![CDATA[]]></default>
2404
  <type/>
2405
  </argument>
2406
+ <argument line="1421">
2407
  <name>$cpac</name>
2408
  <default><![CDATA[]]></default>
2409
  <type/>
2410
  </argument>
2411
  </method>
2412
  </class>
2413
+ <class final="false" abstract="false" namespace="global" line="1468" package="Media Library Assistant">
2414
  <extends>\Walker_Category</extends>
2415
  <name>MLA_Checklist_Walker</name>
2416
  <full_name>\MLA_Checklist_Walker</full_name>
2417
+ <docblock line="1458">
2418
  <description><![CDATA[Class MLA (Media Library Assistant) Checklist Walker replaces term_id with slug in checklist output]]></description>
2419
  <long-description><![CDATA[<p>This walker is used to build the meta boxes for flat taxonomies, e.g., Tags, Att. Tags.
2420
  Class Walker_Category is defined in /wp-includes/category-template.php.
2421
  Class Walker is defined in /wp-includes/class-wp-walker.php.</p>]]></long-description>
2422
+ <tag line="1458" name="package" description="Media Library Assistant"/>
2423
+ <tag line="1458" name="since" description="1.80"/>
2424
  </docblock>
2425
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1482" package="Media Library Assistant">
2426
  <name>start_el</name>
2427
  <full_name>start_el</full_name>
2428
+ <docblock line="1469">
2429
  <description><![CDATA[Start the element output.]]></description>
2430
  <long-description><![CDATA[]]></long-description>
2431
+ <tag line="1469" name="see" description="\global\Walker::start_el()" refers="\global\Walker::start_el()"/>
2432
+ <tag line="1469" name="since" description="1.80"/>
2433
+ <tag line="1469" name="param" description="Passed by reference. Used to append additional content." type="string" variable="$output">
2434
  <type by_reference="false">string</type>
2435
  </tag>
2436
+ <tag line="1469" name="param" description="Taxonomy data object." type="object" variable="$taxonomy_object">
2437
  <type by_reference="false">object</type>
2438
  </tag>
2439
+ <tag line="1469" name="param" description="Depth of category in reference to parents. Default 0." type="int" variable="$depth">
2440
  <type by_reference="false">int</type>
2441
  </tag>
2442
+ <tag line="1469" name="param" description="An array of arguments. @see wp_list_categories()" type="array" variable="$args">
2443
  <type by_reference="false">array</type>
2444
  </tag>
2445
+ <tag line="1469" name="param" description="ID of the current category." type="int" variable="$id">
2446
  <type by_reference="false">int</type>
2447
  </tag>
2448
  </docblock>
2449
+ <argument line="1482">
2450
  <name>$output</name>
2451
  <default><![CDATA[]]></default>
2452
  <type/>
2453
  </argument>
2454
+ <argument line="1482">
2455
  <name>$taxonomy_object</name>
2456
  <default><![CDATA[]]></default>
2457
  <type/>
2458
  </argument>
2459
+ <argument line="1482">
2460
  <name>$depth</name>
2461
  <default><![CDATA[0]]></default>
2462
  <type/>
2463
  </argument>
2464
+ <argument line="1482">
2465
  <name>$args</name>
2466
  <default><![CDATA[array()]]></default>
2467
  <type/>
2468
  </argument>
2469
+ <argument line="1482">
2470
  <name>$id</name>
2471
  <default><![CDATA[0]]></default>
2472
  <type/>
2473
  </argument>
2474
  </method>
2475
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="1515" package="Media Library Assistant">
2476
  <name>end_el</name>
2477
  <full_name>end_el</full_name>
2478
+ <docblock line="1503">
2479
  <description><![CDATA[Ends the element output, if needed.]]></description>
2480
  <long-description><![CDATA[]]></long-description>
2481
+ <tag line="1503" name="see" description="\global\Walker::end_el()" refers="\global\Walker::end_el()"/>
2482
+ <tag line="1503" name="since" description="1.80"/>
2483
+ <tag line="1503" name="param" description="Passed by reference. Used to append additional content." type="string" variable="$output">
2484
  <type by_reference="false">string</type>
2485
  </tag>
2486
+ <tag line="1503" name="param" description="The current term object." type="object" variable="$category">
2487
  <type by_reference="false">object</type>
2488
  </tag>
2489
+ <tag line="1503" name="param" description="Depth of the term in reference to parents. Default 0." type="int" variable="$depth">
2490
  <type by_reference="false">int</type>
2491
  </tag>
2492
+ <tag line="1503" name="param" description="An array of arguments. @see wp_terms_checklist()" type="array" variable="$args">
2493
  <type by_reference="false">array</type>
2494
  </tag>
2495
  </docblock>
2496
+ <argument line="1515">
2497
  <name>$output</name>
2498
  <default><![CDATA[]]></default>
2499
  <type/>
2500
  </argument>
2501
+ <argument line="1515">
2502
  <name>$category</name>
2503
  <default><![CDATA[]]></default>
2504
  <type/>
2505
  </argument>
2506
+ <argument line="1515">
2507
  <name>$depth</name>
2508
  <default><![CDATA[0]]></default>
2509
  <type/>
2510
  </argument>
2511
+ <argument line="1515">
2512
  <name>$args</name>
2513
  <default><![CDATA[array()]]></default>
2514
  <type/>
2884
  <todo line="362">encode the rest</todo>
2885
  </markers>
2886
  </file>
2887
+ <file path="includes\class-mla-data-query.php" hash="7ad8f9c8a0ea0ec464c0f173ca8de116" package="Media Library Assistant">
2888
  <docblock line="2">
2889
  <description><![CDATA[Database query support for MLA Ajax, Shortcode and Admin needs]]></description>
2890
  <long-description><![CDATA[]]></long-description>
3917
  </method>
3918
  </class>
3919
  </file>
3920
+ <file path="includes\class-mla-data-source.php" hash="2b2b5f4e42824acf0864e09a2e22194e" package="Media Library Assistant">
3921
  <docblock line="2">
3922
  <description><![CDATA[Manages access to data sources for custom field mapping and shortcode execution]]></description>
3923
  <long-description><![CDATA[]]></long-description>
4177
  </method>
4178
  </class>
4179
  </file>
4180
+ <file path="includes\class-mla-data.php" hash="3c4a9aca0a40d5be8a6a83380ac6f4d6" package="Media Library Assistant">
4181
  <docblock line="2">
4182
  <description><![CDATA[Database and template file access for MLA needs]]></description>
4183
  <long-description><![CDATA[]]></long-description>
4184
  <tag line="2" name="package" description="Media Library Assistant"/>
4185
  <tag line="2" name="since" description="0.1"/>
4186
  </docblock>
4187
+ <include line="2867" type="Require" package="Media Library Assistant">
4188
  <name/>
4189
  </include>
4190
+ <include line="2968" type="Require Once" package="Media Library Assistant">
4191
  <name/>
4192
  </include>
4193
  <class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
4201
  <tag line="9" name="package" description="Media Library Assistant"/>
4202
  <tag line="9" name="since" description="0.1"/>
4203
  </docblock>
4204
+ <property final="false" static="true" visibility="public" line="1326" namespace="global" package="Media Library Assistant">
4205
  <name>$query_parameters</name>
4206
  <default><![CDATA[array()]]></default>
4207
+ <docblock line="1311">
4208
  <description><![CDATA[WP_Query filter "parameters"]]></description>
4209
  <long-description><![CDATA[<p>This array defines parameters for the query's join, where and orderby filters.
4210
  The parameters are set up in the _prepare_list_table_query function, and
4213
  <p>Array index values are: use_alt_text_view, use_postmeta_view, use_orderby_view,
4214
  alt_text_value, postmeta_key, postmeta_value, patterns, detached,
4215
  orderby, order, mla-metavalue, debug (also in search_parameters)</p>]]></long-description>
4216
+ <tag line="1311" name="since" description="0.30"/>
4217
+ <tag line="1311" name="var" description="" type="array">
4218
  <type by_reference="false">array</type>
4219
  </tag>
4220
  </docblock>
4221
  </property>
4222
+ <property final="false" static="true" visibility="public" line="1354" namespace="global" package="Media Library Assistant">
4223
  <name>$search_parameters</name>
4224
  <default><![CDATA[array()]]></default>
4225
+ <docblock line="1328">
4226
  <description><![CDATA[WP_Query 'posts_search' filter "parameters"]]></description>
4227
  <long-description><![CDATA[<p>This array defines parameters for the query's posts_search filter, which uses
4228
  'search_string' to add a clause to the query's WHERE clause. It is shared between
4242
  ['exact'] => entire string must match entire field value
4243
  ['debug'] => internal element, console/log/shortcode/none
4244
  ['tax_terms_count'] => internal element, shared with JOIN and GROUP BY filters</p>]]></long-description>
4245
+ <tag line="1328" name="since" description="2.00"/>
4246
+ <tag line="1328" name="var" description="" type="array">
4247
  <type by_reference="false">array</type>
4248
  </tag>
4249
  </docblock>
4250
  </property>
4251
+ <property final="false" static="true" visibility="public" line="2113" namespace="global" package="Media Library Assistant">
4252
  <name>$utf8_chars</name>
4253
  <default><![CDATA[array("\xC2\x80", "\xC2\x81", "\xC2\x82", "\xC2\x83", "\xC2\x84", "\xC2\x85", "\xC2\x86", "\xC2\x87", "\xC2\x88", "\xC2\x89", "\xC2\x8A", "\xC2\x8B", "\xC2\x8C", "\xC2\x8D", "\xC2\x8E", "\xC2\x8F", "\xC2\x90", "\xC2\x91", "\xC2\x92", "\xC2\x93", "\xC2\x94", "\xC2\x95", "\xC2\x96", "\xC2\x97", "\xC2\x98", "\xC2\x99", "\xC2\x9A", "\xC2\x9B", "\xC2\x9C", "\xC2\x9D", "\xC2\x9E", "\xC2\x9F", "\xC2\xA0", "\xC2\xA1", "\xC2\xA2", "\xC2\xA3", "\xC2\xA4", "\xC2\xA5", "\xC2\xA6", "\xC2\xA7", "\xC2\xA8", "\xC2\xA9", "\xC2\xAA", "\xC2\xAB", "\xC2\xAC", "\xC2\xAD", "\xC2\xAE", "\xC2\xAF", "\xC2\xB0", "\xC2\xB1", "\xC2\xB2", "\xC2\xB3", "\xC2\xB4", "\xC2\xB5", "\xC2\xB6", "\xC2\xB7", "\xC2\xB8", "\xC2\xB9", "\xC2\xBA", "\xC2\xBB", "\xC2\xBC", "\xC2\xBD", "\xC2\xBE", "\xC2\xBF", "\xC3\x80", "\xC3\x81", "\xC3\x82", "\xC3\x83", "\xC3\x84", "\xC3\x85", "\xC3\x86", "\xC3\x87", "\xC3\x88", "\xC3\x89", "\xC3\x8A", "\xC3\x8B", "\xC3\x8C", "\xC3\x8D", "\xC3\x8E", "\xC3\x8F", "\xC3\x90", "\xC3\x91", "\xC3\x92", "\xC3\x93", "\xC3\x94", "\xC3\x95", "\xC3\x96", "\xC3\x97", "\xC3\x98", "\xC3\x99", "\xC3\x9A", "\xC3\x9B", "\xC3\x9C", "\xC3\x9D", "\xC3\x9E", "\xC3\x9F", "\xC3\xA0", "\xC3\xA1", "\xC3\xA2", "\xC3\xA3", "\xC3\xA4", "\xC3\xA5", "\xC3\xA6", "\xC3\xA7", "\xC3\xA8", "\xC3\xA9", "\xC3\xAA", "\xC3\xAB", "\xC3\xAC", "\xC3\xAD", "\xC3\xAE", "\xC3\xAF", "\xC3\xB0", "\xC3\xB1", "\xC3\xB2", "\xC3\xB3", "\xC3\xB4", "\xC3\xB5", "\xC3\xB6", "\xC3\xB7", "\xC3\xB8", "\xC3\xB9", "\xC3\xBA", "\xC3\xBB", "\xC3\xBC", "\xC3\xBD", "\xC3\xBE", "\xC3\xBF")]]></default>
4254
+ <docblock line="2106">
4255
  <description><![CDATA[UTF-8 replacements for invalid SQL characters]]></description>
4256
  <long-description><![CDATA[]]></long-description>
4257
+ <tag line="2106" name="since" description="1.41"/>
4258
+ <tag line="2106" name="var" description="" type="array">
4259
  <type by_reference="false">array</type>
4260
  </tag>
4261
  </docblock>
4262
  </property>
4263
+ <property final="false" static="true" visibility="private" line="2173" namespace="global" package="Media Library Assistant">
4264
  <name>$mla_iptc_records</name>
4265
  <default><![CDATA[array("1#000" => "Model Version", "1#005" => "Destination", "1#020" => "File Format", "1#022" => "File Format Version", "1#030" => "Service Identifier", "1#040" => "Envelope Number", "1#050" => "Product ID", "1#060" => "Envelope Priority", "1#070" => "Date Sent", "1#080" => "Time Sent", "1#090" => "Coded Character Set", "1#100" => "UNO", "1#120" => "ARM Identifier", "1#122" => "ARM Version", "2#000" => "Record Version", "2#003" => "Object Type Reference", "2#004" => "Object Attribute Reference", "2#005" => "Object Name", "2#007" => "Edit Status", "2#008" => "Editorial Update", "2#010" => "Urgency", "2#012" => "Subject Reference", "2#015" => "Category", "2#020" => "Supplemental Category", "2#022" => "Fixture Identifier", "2#025" => "Keywords", "2#026" => "Content Location Code", "2#027" => "Content Location Name", "2#030" => "Release Date", "2#035" => "Release Time", "2#037" => "Expiration Date", "2#038" => "Expiration Time", "2#040" => "Special Instructions", "2#042" => "Action Advised", "2#045" => "Reference Service", "2#047" => "Reference Date", "2#050" => "Reference Number", "2#055" => "Date Created", "2#060" => "Time Created", "2#062" => "Digital Creation Date", "2#063" => "Digital Creation Time", "2#065" => "Originating Program", "2#070" => "Program Version", "2#075" => "Object Cycle", "2#080" => "By-line", "2#085" => "By-line Title", "2#090" => "City", "2#092" => "Sub-location", "2#095" => "Province or State", "2#100" => "Country or Primary Location Code", "2#101" => "Country or Primary Location Name", "2#103" => "Original Transmission Reference", "2#105" => "Headline", "2#110" => "Credit", "2#115" => "Source", "2#116" => "Copyright Notice", "2#118" => "Contact", "2#120" => "Caption or Abstract", "2#122" => "Caption Writer or Editor", "2#125" => "Rasterized Caption", "2#130" => "Image Type", "2#131" => "Image Orientation", "2#135" => "Language Identifier", "2#150" => "Audio Type", "2#151" => "Audio Sampling Rate", "2#152" => "Audio Sampling Resolution", "2#153" => "Audio Duration", "2#154" => "Audio Outcue", "2#200" => "ObjectData Preview File Format", "2#201" => "ObjectData Preview File Format Version", "2#202" => "ObjectData Preview Data", "7#010" => "Size Mode", "7#020" => "Max Subfile Size", "7#090" => "ObjectData Size Announced", "7#095" => "Maximum ObjectData Size", "8#010" => "Subfile", "9#010" => "Confirmed ObjectData Size")]]></default>
4266
+ <docblock line="2163">
4267
  <description><![CDATA[IPTC Dataset identifiers and names]]></description>
4268
  <long-description><![CDATA[<p>This array contains the identifiers and names of Datasets defined in
4269
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4270
+ <tag line="2163" name="since" description="0.90"/>
4271
+ <tag line="2163" name="var" description="" type="array">
4272
  <type by_reference="false">array</type>
4273
  </tag>
4274
  </docblock>
4275
  </property>
4276
+ <property final="false" static="true" visibility="public" line="2272" namespace="global" package="Media Library Assistant">
4277
  <name>$mla_iptc_keys</name>
4278
  <default><![CDATA[array('model-version' => '1#000', 'destination' => '1#005', 'file-format' => '1#020', 'file-format-version' => '1#022', 'service-identifier' => '1#030', 'envelope-number' => '1#040', 'product-id' => '1#050', 'envelope-priority' => '1#060', 'date-sent' => '1#070', 'time-sent' => '1#080', 'coded-character-set' => '1#090', 'uno' => '1#100', 'arm-identifier' => '1#120', 'arm-version' => '1#122', 'record-version' => '2#000', 'object-type-reference' => '2#003', 'object-attribute-reference' => '2#004', 'object-name' => '2#005', 'edit-status' => '2#007', 'editorial-update' => '2#008', 'urgency' => '2#010', 'subject-reference' => '2#012', 'category' => '2#015', 'supplemental-category' => '2#020', 'fixture-identifier' => '2#022', 'keywords' => '2#025', 'content-location-code' => '2#026', 'content-location-name' => '2#027', 'release-date' => '2#030', 'release-time' => '2#035', 'expiration-date' => '2#037', 'expiration-time' => '2#038', 'special-instructions' => '2#040', 'action-advised' => '2#042', 'reference-service' => '2#045', 'reference-date' => '2#047', 'reference-number' => '2#050', 'date-created' => '2#055', 'time-created' => '2#060', 'digital-creation-date' => '2#062', 'digital-creation-time' => '2#063', 'originating-program' => '2#065', 'program-version' => '2#070', 'object-cycle' => '2#075', 'by-line' => '2#080', 'by-line-title' => '2#085', 'city' => '2#090', 'sub-location' => '2#092', 'province-or-state' => '2#095', 'country-or-primary-location-code' => '2#100', 'country-or-primary-location-name' => '2#101', 'original-transmission-reference' => '2#103', 'headline' => '2#105', 'credit' => '2#110', 'source' => '2#115', 'copyright-notice' => '2#116', 'contact' => '2#118', 'caption-or-abstract' => '2#120', 'caption-writer-or-editor' => '2#122', 'rasterized-caption' => '2#125', 'image-type' => '2#130', 'image-orientation' => '2#131', 'language-identifier' => '2#135', 'audio-type' => '2#150', 'audio-sampling-rate' => '2#151', 'audio-sampling-resolution' => '2#152', 'audio-duration' => '2#153', 'audio-outcue' => '2#154', 'objectdata-preview-file-format' => '2#200', 'objectdata-preview-file-format-version' => '2#201', 'objectdata-preview-data' => '2#202', 'size-mode' => '7#010', 'max-subfile-size' => '7#020', 'objectdata-size-announced' => '7#090', 'maximum-objectdata-size' => '7#095', 'subfile' => '8#010', 'confirmed-objectdata-size' => '9#010')]]></default>
4279
+ <docblock line="2262">
4280
  <description><![CDATA[IPTC Dataset friendly name/slug and identifiers]]></description>
4281
  <long-description><![CDATA[<p>This array contains the sanitized names and identifiers of Datasets defined in
4282
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4283
+ <tag line="2262" name="since" description="0.90"/>
4284
+ <tag line="2262" name="var" description="" type="array">
4285
  <type by_reference="false">array</type>
4286
  </tag>
4287
  </docblock>
4288
  </property>
4289
+ <property final="false" static="true" visibility="private" line="2371" namespace="global" package="Media Library Assistant">
4290
  <name>$mla_iptc_descriptions</name>
4291
  <default><![CDATA[array("1#000" => "2 octet binary IIM version number", "1#005" => "Max 1024 characters of Destination (ISO routing information); repeatable", "1#020" => "2 octet binary file format number, see IPTC-NAA V4 Appendix A", "1#022" => "2 octet binary file format version number", "1#030" => "Max 10 characters of Service Identifier and product", "1#040" => "8 Character Envelope Number", "1#050" => "Max 32 characters subset of provider's overall service; repeatable", "1#060" => "1 numeric character of envelope handling priority (not urgency)", "1#070" => "8 numeric characters of Date Sent by service - CCYYMMDD", "1#080" => "11 characters of Time Sent by service - HHMMSS±HHMM", "1#090" => "Max 32 characters of control functions, etc.", "1#100" => "14 to 80 characters of eternal, globally unique identification for objects", "1#120" => "2 octet binary Abstract Relationship Model Identifier", "1#122" => "2 octet binary Abstract Relationship Model Version", "2#000" => "2 octet binary Information Interchange Model, Part II version number", "2#003" => "3 to 67 Characters of Object Type Reference number and optional text", "2#004" => "3 to 67 Characters of Object Attribute Reference number and optional text; repeatable", "2#005" => "Max 64 characters of the object name or shorthand reference", "2#007" => "Max 64 characters of the status of the objectdata", "2#008" => "2 numeric characters of the type of update this object provides", "2#010" => "1 numeric character of the editorial urgency of content", "2#012" => "13 to 236 characters of a structured definition of the subject matter; repeatable", "2#015" => "Max 3 characters of the subject of the objectdata, DEPRECATED", "2#020" => "Max 32 characters (each) of further refinement of subject, DEPRECATED; repeatable", "2#022" => "Max 32 characters identifying recurring, predictable content", "2#025" => "Max 64 characters (each) of tags; repeatable", "2#026" => "3 characters of ISO3166 country code or IPTC-assigned code; repeatable", "2#027" => "Max 64 characters of publishable country/geographical location name; repeatable", "2#030" => "8 numeric characters of Release Date - CCYYMMDD", "2#035" => "11 characters of Release Time (earliest use) - HHMMSS±HHMM", "2#037" => "8 numeric characters of Expiration Date (latest use) - CCYYMDD", "2#038" => "11 characters of Expiration Time (latest use) - HHMMSS±HHMM", "2#040" => "Max 256 Characters of editorial instructions, e.g., embargoes and warnings", "2#042" => "2 numeric characters of type of action this object provides to a previous object", "2#045" => "Max 10 characters of the Service ID (1#030) of a prior envelope; repeatable", "2#047" => "8 numeric characters of prior envelope Reference Date (1#070) - CCYYMMDD; repeatable", "2#050" => "8 characters of prior envelope Reference Number (1#040); repeatable", "2#055" => "8 numeric characters of intellectual content Date Created - CCYYMMDD", "2#060" => "11 characters of intellectual content Time Created - HHMMSS±HHMM", "2#062" => "8 numeric characters of digital representation creation date - CCYYMMDD", "2#063" => "11 characters of digital representation creation time - HHMMSS±HHMM", "2#065" => "Max 32 characters of the program used to create the objectdata", "2#070" => "Program Version - Max 10 characters of the version of the program used to create the objectdata", "2#075" => "1 character where a=morning, p=evening, b=both", "2#080" => "Max 32 Characters of the name of the objectdata creator, e.g., the writer, photographer; repeatable", "2#085" => "Max 32 characters of the title of the objectdata creator; repeatable", "2#090" => "Max 32 Characters of the city of objectdata origin", "2#092" => "Max 32 Characters of the location within the city of objectdata origin", "2#095" => "Max 32 Characters of the objectdata origin Province or State", "2#100" => "3 characters of ISO3166 or IPTC-assigned code for Country of objectdata origin", "2#101" => "Max 64 characters of publishable country/geographical location name of objectdata origin", "2#103" => "Max 32 characters of a code representing the location of original transmission", "2#105" => "Max 256 Characters of a publishable entry providing a synopsis of the contents of the objectdata", "2#110" => "Max 32 Characters that identifies the provider of the objectdata (Vs the owner/creator)", "2#115" => "Max 32 Characters that identifies the original owner of the intellectual content", "2#116" => "Max 128 Characters that contains any necessary copyright notice", "2#118" => "Max 128 characters that identifies the person or organisation which can provide further background information; repeatable", "2#120" => "Max 2000 Characters of a textual description of the objectdata", "2#122" => "Max 32 Characters that the identifies the person involved in the writing, editing or correcting the objectdata or caption/abstract; repeatable", "2#125" => "7360 binary octets of the rasterized caption - 1 bit per pixel, 460x128-pixel image", "2#130" => "2 characters of color composition type and information", "2#131" => "1 alphabetic character indicating the image area layout - P=portrait, L=landscape, S=square", "2#135" => "2 or 3 aphabetic characters containing the major national language of the object, according to the ISO 639:1988 codes", "2#150" => "2 characters identifying monaural/stereo and exact type of audio content", "2#151" => "6 numeric characters representing the audio sampling rate in hertz (Hz)", "2#152" => "2 numeric characters representing the number of bits in each audio sample", "2#153" => "6 numeric characters of the Audio Duration - HHMMSS", "2#154" => "Max 64 characters of the content of the end of an audio objectdata", "2#200" => "2 octet binary file format of the ObjectData Preview", "2#201" => "2 octet binary particular version of the ObjectData Preview File Format", "2#202" => "Max 256000 binary octets containing the ObjectData Preview data", "7#010" => "1 numeric character - 0=objectdata size not known, 1=objectdata size known at beginning of transfer", "7#020" => "4 octet binary maximum subfile dataset(s) size", "7#090" => "4 octet binary objectdata size if known at beginning of transfer", "7#095" => "4 octet binary largest possible objectdata size", "8#010" => "Subfile DataSet containing the objectdata itself; repeatable", "9#010" => "4 octet binary total objectdata size")]]></default>
4292
+ <docblock line="2361">
4293
  <description><![CDATA[IPTC Dataset descriptions]]></description>
4294
  <long-description><![CDATA[<p>This array contains the descriptions of Datasets defined in
4295
  the "IPTC-NAA Information Interchange Model Version No. 4.1".</p>]]></long-description>
4296
+ <tag line="2361" name="since" description="0.90"/>
4297
+ <tag line="2361" name="var" description="" type="array">
4298
  <type by_reference="false">array</type>
4299
  </tag>
4300
  </docblock>
4301
  </property>
4302
+ <property final="false" static="true" visibility="private" line="2470" namespace="global" package="Media Library Assistant">
4303
  <name>$mla_iptc_formats</name>
4304
  <default><![CDATA[array(0 => "No ObjectData", 1 => "IPTC-NAA Digital Newsphoto Parameter Record", 2 => "IPTC7901 Recommended Message Format", 3 => "Tagged Image File Format (Adobe/Aldus Image data)", 4 => "Illustrator (Adobe Graphics data)", 5 => "AppleSingle (Apple Computer Inc)", 6 => "NAA 89-3 (ANPA 1312)", 7 => "MacBinary II", 8 => "IPTC Unstructured Character Oriented File Format (UCOFF)", 9 => "United Press International ANPA 1312 variant", 10 => "United Press International Down-Load Message", 11 => "JPEG File Interchange (JFIF)", 12 => "Photo-CD Image-Pac (Eastman Kodak)", 13 => "Microsoft Bit Mapped Graphics File [*.BMP]", 14 => "Digital Audio File [*.WAV] (Microsoft & Creative Labs)", 15 => "Audio plus Moving Video [*.AVI] (Microsoft)", 16 => "PC DOS/Windows Executable Files [*.COM][*.EXE]", 17 => "Compressed Binary File [*.ZIP] (PKWare Inc)", 18 => "Audio Interchange File Format AIFF (Apple Computer Inc)", 19 => "RIFF Wave (Microsoft Corporation)", 20 => "Freehand (Macromedia/Aldus)", 21 => "Hypertext Markup Language - HTML (The Internet Society)", 22 => "MPEG 2 Audio Layer 2 (Musicom), ISO/IEC", 23 => "MPEG 2 Audio Layer 3, ISO/IEC", 24 => "Portable Document File (*.PDF) Adobe", 25 => "News Industry Text Format (NITF)", 26 => "Tape Archive (*.TAR)", 27 => "Tidningarnas Telegrambyrå NITF version (TTNITF DTD)", 28 => "Ritzaus Bureau NITF version (RBNITF DTD)", 29 => "Corel Draw [*.CDR]")]]></default>
4305
+ <docblock line="2460">
4306
  <description><![CDATA[IPTC file format identifiers and descriptions]]></description>
4307
  <long-description><![CDATA[<p>This array contains the file format identifiers and descriptions defined in
4308
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 1#020.</p>]]></long-description>
4309
+ <tag line="2460" name="since" description="0.90"/>
4310
+ <tag line="2460" name="var" description="" type="array">
4311
  <type by_reference="false">array</type>
4312
  </tag>
4313
  </docblock>
4314
  </property>
4315
+ <property final="false" static="true" visibility="private" line="2513" namespace="global" package="Media Library Assistant">
4316
  <name>$mla_iptc_image_types</name>
4317
  <default><![CDATA[array("M" => "Monochrome", "Y" => "Yellow Component", "M" => "Magenta Component", "C" => "Cyan Component", "K" => "Black Component", "R" => "Red Component", "G" => "Green Component", "B" => "Blue Component", "T" => "Text Only", "F" => "Full colour composite, frame sequential", "L" => "Full colour composite, line sequential", "P" => "Full colour composite, pixel sequential", "S" => "Full colour composite, special interleaving")]]></default>
4318
+ <docblock line="2503">
4319
  <description><![CDATA[IPTC image type identifiers and descriptions]]></description>
4320
  <long-description><![CDATA[<p>This array contains the image type identifiers and descriptions defined in
4321
  the "IPTC-NAA Information Interchange Model Version No. 4.1" for dataset 2#130, octet 2.</p>]]></long-description>
4322
+ <tag line="2503" name="since" description="0.90"/>
4323
+ <tag line="2503" name="var" description="" type="array">
4324
  <type by_reference="false">array</type>
4325
  </tag>
4326
  </docblock>
4327
  </property>
4328
+ <property final="false" static="true" visibility="private" line="2803" namespace="global" package="Media Library Assistant">
4329
  <name>$mla_IPTC_EXIF_errors</name>
4330
  <default><![CDATA[array()]]></default>
4331
+ <docblock line="2795">
4332
  <description><![CDATA[Passes IPTC/EXIF parse errors between mla_IPTC_EXIF_error_handler
4333
  and mla_fetch_attachment_image_metadata]]></description>
4334
  <long-description><![CDATA[]]></long-description>
4335
+ <tag line="2795" name="since" description="1.81"/>
4336
+ <tag line="2795" name="var" description="" type="array">
4337
  <type by_reference="false">array</type>
4338
  </tag>
4339
  </docblock>
4639
  <type/>
4640
  </argument>
4641
  </method>
4642
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="895" package="Media Library Assistant">
4643
  <name>mla_expand_field_level_parameters</name>
4644
  <full_name>mla_expand_field_level_parameters</full_name>
4645
+ <docblock line="877">
4646
  <description><![CDATA[Analyze a template, expanding Field-level Markup Substitution Parameters]]></description>
4647
  <long-description><![CDATA[<p>Field-level parameters must have one of the following prefix values:
4648
  template, request, query, custom, terms, meta, iptc, exif, xmp, pdf.
4649
  All but request and query require an attachment ID.</p>]]></long-description>
4650
+ <tag line="877" name="since" description="1.50"/>
4651
+ <tag line="877" name="param" description="A formatting string containing [+placeholders+]" type="string" variable="$tpl">
4652
  <type by_reference="false">string</type>
4653
  </tag>
4654
+ <tag line="877" name="param" description="Optional: an array of values from the query, if any, e.g. shortcode parameters" type="array" variable="$query">
4655
  <type by_reference="false">array</type>
4656
  </tag>
4657
+ <tag line="877" name="param" description="Optional: an array of values to add to the returned array" type="array" variable="$markup_values">
4658
  <type by_reference="false">array</type>
4659
  </tag>
4660
+ <tag line="877" name="param" description="Optional: attachment ID for attachment-specific placeholders" type="integer" variable="$post_id">
4661
  <type by_reference="false">integer</type>
4662
  </tag>
4663
+ <tag line="877" name="param" description="Optional: for option 'multi', retain existing values" type="boolean" variable="$keep_existing">
4664
  <type by_reference="false">boolean</type>
4665
  </tag>
4666
+ <tag line="877" name="param" description="Optional: default option value" type="string" variable="$default_option">
4667
  <type by_reference="false">string</type>
4668
  </tag>
4669
+ <tag line="877" name="return" description="( parameter =&gt; value ) for all field-level parameters and anything in $markup_values" type="array">
4670
  <type by_reference="false">array</type>
4671
  </tag>
4672
  </docblock>
4673
+ <argument line="895">
4674
  <name>$tpl</name>
4675
  <default><![CDATA[]]></default>
4676
  <type/>
4677
  </argument>
4678
+ <argument line="895">
4679
  <name>$query</name>
4680
  <default><![CDATA[NULL]]></default>
4681
  <type/>
4682
  </argument>
4683
+ <argument line="895">
4684
  <name>$markup_values</name>
4685
  <default><![CDATA[array()]]></default>
4686
  <type/>
4687
  </argument>
4688
+ <argument line="895">
4689
  <name>$post_id</name>
4690
  <default><![CDATA[0]]></default>
4691
  <type/>
4692
  </argument>
4693
+ <argument line="895">
4694
  <name>$keep_existing</name>
4695
  <default><![CDATA[false]]></default>
4696
  <type/>
4697
  </argument>
4698
+ <argument line="895">
4699
  <name>$default_option</name>
4700
  <default><![CDATA['text']]></default>
4701
  <type/>
4702
  </argument>
4703
  </method>
4704
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1182" package="Media Library Assistant">
4705
  <name>mla_get_template_placeholders</name>
4706
  <full_name>mla_get_template_placeholders</full_name>
4707
+ <docblock line="1171">
4708
  <description><![CDATA[Analyze a template, returning an array of the placeholders it contains]]></description>
4709
  <long-description><![CDATA[]]></long-description>
4710
+ <tag line="1171" name="since" description="0.90"/>
4711
+ <tag line="1171" name="param" description="A formatting string containing [+placeholders+]" type="string" variable="$tpl">
4712
  <type by_reference="false">string</type>
4713
  </tag>
4714
+ <tag line="1171" name="param" description="Optional: default option value" type="string" variable="$default_option">
4715
  <type by_reference="false">string</type>
4716
  </tag>
4717
+ <tag line="1171" name="return" description="Placeholder information: each entry is an array with ['prefix'] =&gt; string, ['value'] =&gt; string, ['option'] =&gt; string 'text'|single'|'export'|'array'|'multi'" type="array">
4718
  <type by_reference="false">array</type>
4719
  </tag>
4720
  </docblock>
4721
+ <argument line="1182">
4722
  <name>$tpl</name>
4723
  <default><![CDATA[]]></default>
4724
  <type/>
4725
  </argument>
4726
+ <argument line="1182">
4727
  <name>$default_option</name>
4728
  <default><![CDATA['text']]></default>
4729
  <type/>
4730
  </argument>
4731
  </method>
4732
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1369" package="Media Library Assistant">
4733
  <name>mla_count_list_table_items</name>
4734
  <full_name>mla_count_list_table_items</full_name>
4735
+ <docblock line="1356">
4736
  <description><![CDATA[Get the total number of attachment posts]]></description>
4737
  <long-description><![CDATA[<p>Compatibility shim for MLAQuery::mla_count_list_table_items</p>]]></long-description>
4738
+ <tag line="1356" name="since" description="0.30"/>
4739
+ <tag line="1356" name="param" description="Query variables, e.g., from $_REQUEST" type="array" variable="$request">
4740
  <type by_reference="false">array</type>
4741
  </tag>
4742
+ <tag line="1356" name="param" description="(optional) number of rows to skip over to reach desired page" type="int" variable="$offset">
4743
  <type by_reference="false">int</type>
4744
  </tag>
4745
+ <tag line="1356" name="param" description="(optional) number of rows on each page" type="int" variable="$count">
4746
  <type by_reference="false">int</type>
4747
  </tag>
4748
+ <tag line="1356" name="return" description="Number of attachment posts" type="integer">
4749
  <type by_reference="false">integer</type>
4750
  </tag>
4751
  </docblock>
4752
+ <argument line="1369">
4753
  <name>$request</name>
4754
  <default><![CDATA[]]></default>
4755
  <type/>
4756
  </argument>
4757
+ <argument line="1369">
4758
  <name>$offset</name>
4759
  <default><![CDATA[NULL]]></default>
4760
  <type/>
4761
  </argument>
4762
+ <argument line="1369">
4763
  <name>$count</name>
4764
  <default><![CDATA[NULL]]></default>
4765
  <type/>
4766
  </argument>
4767
  </method>
4768
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1386" package="Media Library Assistant">
4769
  <name>mla_query_list_table_items</name>
4770
  <full_name>mla_query_list_table_items</full_name>
4771
+ <docblock line="1373">
4772
  <description><![CDATA[Retrieve attachment objects for list table display]]></description>
4773
  <long-description><![CDATA[<p>Compatibility shim for MLAQuery::mla_query_list_table_items</p>]]></long-description>
4774
+ <tag line="1373" name="since" description="0.1"/>
4775
+ <tag line="1373" name="param" description="query parameters from web page, usually found in $_REQUEST" type="array" variable="$request">
4776
  <type by_reference="false">array</type>
4777
  </tag>
4778
+ <tag line="1373" name="param" description="number of rows to skip over to reach desired page" type="int" variable="$offset">
4779
  <type by_reference="false">int</type>
4780
  </tag>
4781
+ <tag line="1373" name="param" description="number of rows on each page" type="int" variable="$count">
4782
  <type by_reference="false">int</type>
4783
  </tag>
4784
+ <tag line="1373" name="return" description="attachment objects (posts) including parent data, meta data and references" type="array">
4785
  <type by_reference="false">array</type>
4786
  </tag>
4787
  </docblock>
4788
+ <argument line="1386">
4789
  <name>$request</name>
4790
  <default><![CDATA[]]></default>
4791
  <type/>
4792
  </argument>
4793
+ <argument line="1386">
4794
  <name>$offset</name>
4795
  <default><![CDATA[]]></default>
4796
  <type/>
4797
  </argument>
4798
+ <argument line="1386">
4799
  <name>$count</name>
4800
  <default><![CDATA[]]></default>
4801
  <type/>
4802
  </argument>
4803
  </method>
4804
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1404" package="Media Library Assistant">
4805
  <name>mla_get_attachment_by_id</name>
4806
  <full_name>mla_get_attachment_by_id</full_name>
4807
+ <docblock line="1390">
4808
  <description><![CDATA[Retrieve an Attachment array given a $post_id]]></description>
4809
  <long-description><![CDATA[<p>The (associative) array will contain every field that can be found in
4810
  the posts and postmeta tables, and all references to the attachment.</p>]]></long-description>
4811
+ <tag line="1390" name="since" description="0.1"/>
4812
+ <tag line="1390" name="uses" description="\global\$post" refers="\global\$post"/>
4813
+ <tag line="1390" name="param" description="The ID of the attachment post" type="integer" variable="$post_id">
4814
  <type by_reference="false">integer</type>
4815
  </tag>
4816
+ <tag line="1390" name="param" description="True to add references, false to skip references" type="boolean" variable="$add_references">
4817
  <type by_reference="false">boolean</type>
4818
  </tag>
4819
+ <tag line="1390" name="return" description="NULL on failure else associative array" type="NULL|array">
4820
  <type by_reference="false">NULL</type>
4821
  <type by_reference="false">array</type>
4822
  </tag>
4823
  </docblock>
4824
+ <argument line="1404">
4825
  <name>$post_id</name>
4826
  <default><![CDATA[]]></default>
4827
  <type/>
4828
  </argument>
4829
+ <argument line="1404">
4830
  <name>$add_references</name>
4831
  <default><![CDATA[true]]></default>
4832
  <type/>
4833
  </argument>
4834
  </method>
4835
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1462" package="Media Library Assistant">
4836
  <name>_set_array_element</name>
4837
  <full_name>_set_array_element</full_name>
4838
+ <docblock line="1451">
4839
  <description><![CDATA[Adds or replaces the value of a key in a possibly nested array structure]]></description>
4840
  <long-description><![CDATA[]]></long-description>
4841
+ <tag line="1451" name="since" description="1.51"/>
4842
+ <tag line="1451" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
4843
  <type by_reference="false">string</type>
4844
  </tag>
4845
+ <tag line="1451" name="param" description="replacement value, string or array, by reference" type="mixed" variable="$value">
4846
  <type by_reference="false">mixed</type>
4847
  </tag>
4848
+ <tag line="1451" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
4849
  <type by_reference="false">array</type>
4850
  </tag>
4851
+ <tag line="1451" name="return" description="true if $needle element set, false if not" type="boolean">
4852
  <type by_reference="false">boolean</type>
4853
  </tag>
4854
  </docblock>
4855
+ <argument line="1462">
4856
  <name>$needle</name>
4857
  <default><![CDATA[]]></default>
4858
  <type/>
4859
  </argument>
4860
+ <argument line="1462">
4861
  <name>$value</name>
4862
  <default><![CDATA[]]></default>
4863
  <type/>
4864
  </argument>
4865
+ <argument line="1462">
4866
  <name>$haystack</name>
4867
  <default><![CDATA[]]></default>
4868
  <type/>
4869
  </argument>
4870
  </method>
4871
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1496" package="Media Library Assistant">
4872
  <name>_unset_array_element</name>
4873
  <full_name>_unset_array_element</full_name>
4874
+ <docblock line="1486">
4875
  <description><![CDATA[Deletes the value of a key in a possibly nested array structure]]></description>
4876
  <long-description><![CDATA[]]></long-description>
4877
+ <tag line="1486" name="since" description="1.51"/>
4878
+ <tag line="1486" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
4879
  <type by_reference="false">string</type>
4880
  </tag>
4881
+ <tag line="1486" name="param" description="PHP nested arrays, by reference" type="array" variable="$haystack">
4882
  <type by_reference="false">array</type>
4883
  </tag>
4884
+ <tag line="1486" name="return" description="true if $needle element found, false if not" type="boolean">
4885
  <type by_reference="false">boolean</type>
4886
  </tag>
4887
  </docblock>
4888
+ <argument line="1496">
4889
  <name>$needle</name>
4890
  <default><![CDATA[]]></default>
4891
  <type/>
4892
  </argument>
4893
+ <argument line="1496">
4894
  <name>$haystack</name>
4895
  <default><![CDATA[]]></default>
4896
  <type/>
4897
  </argument>
4898
  </method>
4899
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1531" package="Media Library Assistant">
4900
  <name>mla_find_array_element</name>
4901
  <full_name>mla_find_array_element</full_name>
4902
+ <docblock line="1516">
4903
  <description><![CDATA[Finds the value of a key in a possibly nested array structure]]></description>
4904
  <long-description><![CDATA[<p>Used primarily to extract fields from the _wp_attachment_metadata custom field.
4905
  Also used with the audio/video ID3 metadata exposed in WordPress 3.6 and later.</p>]]></long-description>
4906
+ <tag line="1516" name="since" description="1.30"/>
4907
+ <tag line="1516" name="param" description="key value, e.g. array1.array2.element" type="string" variable="$needle">
4908
  <type by_reference="false">string</type>
4909
  </tag>
4910
+ <tag line="1516" name="param" description="PHP nested arrays" type="array" variable="$haystack">
4911
  <type by_reference="false">array</type>
4912
  </tag>
4913
+ <tag line="1516" name="param" description="data option; 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
4914
  <type by_reference="false">string</type>
4915
  </tag>
4916
+ <tag line="1516" name="param" description="keep existing values - for 'multi' option" type="boolean" variable="$keep_existing">
4917
  <type by_reference="false">boolean</type>
4918
  </tag>
4919
+ <tag line="1516" name="return" description="string or array value matching key(.key ...) or ''" type="mixed">
4920
  <type by_reference="false">mixed</type>
4921
  </tag>
4922
  </docblock>
4923
+ <argument line="1531">
4924
  <name>$needle</name>
4925
  <default><![CDATA[]]></default>
4926
  <type/>
4927
  </argument>
4928
+ <argument line="1531">
4929
  <name>$haystack</name>
4930
  <default><![CDATA[]]></default>
4931
  <type/>
4932
  </argument>
4933
+ <argument line="1531">
4934
  <name>$option</name>
4935
  <default><![CDATA[]]></default>
4936
  <type/>
4937
  </argument>
4938
+ <argument line="1531">
4939
  <name>$keep_existing</name>
4940
  <default><![CDATA[false]]></default>
4941
  <type/>
4942
  </argument>
4943
  </method>
4944
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1629" package="Media Library Assistant">
4945
  <name>mla_save_post_action</name>
4946
  <full_name>mla_save_post_action</full_name>
4947
+ <docblock line="1620">
4948
  <description><![CDATA[Invalidates $mla_galleries and $galleries arrays and cached values after post, page or attachment updates]]></description>
4949
  <long-description><![CDATA[]]></long-description>
4950
+ <tag line="1620" name="since" description="1.00"/>
4951
+ <tag line="1620" name="param" description="ID of post/page/attachment; not used at this time" type="integer" variable="$post_id">
4952
  <type by_reference="false">integer</type>
4953
  </tag>
4954
+ <tag line="1620" name="return" description="" type="void">
4955
  <type by_reference="false">void</type>
4956
  </tag>
4957
  </docblock>
4958
+ <argument line="1629">
4959
  <name>$post_id</name>
4960
  <default><![CDATA[]]></default>
4961
  <type/>
4962
  </argument>
4963
  </method>
4964
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1643" package="Media Library Assistant">
4965
  <name>mla_parse_pdf_date</name>
4966
  <full_name>mla_parse_pdf_date</full_name>
4967
+ <docblock line="1634">
4968
  <description><![CDATA[Parse a PDF date string]]></description>
4969
  <long-description><![CDATA[]]></long-description>
4970
+ <tag line="1634" name="since" description="1.50"/>
4971
+ <tag line="1634" name="param" description="PDF date string of the form D:YYYYMMDDHHmmSSOHH'mm" type="string" variable="$source_string">
4972
  <type by_reference="false">string</type>
4973
  </tag>
4974
+ <tag line="1634" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
4975
  <type by_reference="false">string</type>
4976
  </tag>
4977
  </docblock>
4978
+ <argument line="1643">
4979
  <name>$source_string</name>
4980
  <default><![CDATA[]]></default>
4981
  <type/>
4982
  </argument>
4983
  </method>
4984
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1666" package="Media Library Assistant">
4985
  <name>_parse_iso8601_date</name>
4986
  <full_name>_parse_iso8601_date</full_name>
4987
+ <docblock line="1657">
4988
  <description><![CDATA[Parse a ISO 8601 Timestamp]]></description>
4989
  <long-description><![CDATA[]]></long-description>
4990
+ <tag line="1657" name="since" description="1.50"/>
4991
+ <tag line="1657" name="param" description="ISO string of the form YYYY-MM-DDTHH:MM:SS-HH:MM (inc time zone)" type="string" variable="$source_string">
4992
  <type by_reference="false">string</type>
4993
  </tag>
4994
+ <tag line="1657" name="return" description="formatted date string YYYY-MM-DD HH:mm:SS" type="string">
4995
  <type by_reference="false">string</type>
4996
  </tag>
4997
  </docblock>
4998
+ <argument line="1666">
4999
  <name>$source_string</name>
5000
  <default><![CDATA[]]></default>
5001
  <type/>
5002
  </argument>
5003
  </method>
5004
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1689" package="Media Library Assistant">
5005
  <name>_parse_xmp_array</name>
5006
  <full_name>_parse_xmp_array</full_name>
5007
+ <docblock line="1680">
5008
  <description><![CDATA[Parse an XMP array value, stripping namespace prefixes and Seq/Alt/Bag arrays]]></description>
5009
  <long-description><![CDATA[]]></long-description>
5010
+ <tag line="1680" name="since" description="2.10"/>
5011
+ <tag line="1680" name="param" description="XMP multi-valued element" type="array" variable="$values">
5012
  <type by_reference="false">array</type>
5013
  </tag>
5014
+ <tag line="1680" name="return" description="Simplified array or string value" type="mixed">
5015
  <type by_reference="false">mixed</type>
5016
  </tag>
5017
  </docblock>
5018
+ <argument line="1689">
5019
  <name>$values</name>
5020
  <default><![CDATA[]]></default>
5021
  <type/>
5022
  </argument>
5023
  </method>
5024
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1735" package="Media Library Assistant">
5025
  <name>_nonempty_value</name>
5026
  <full_name>_nonempty_value</full_name>
5027
+ <docblock line="1724">
5028
  <description><![CDATA[Search the namespace array for a non-empty value]]></description>
5029
  <long-description><![CDATA[]]></long-description>
5030
+ <tag line="1724" name="since" description="2.10"/>
5031
+ <tag line="1724" name="param" description="namespace array" type="array" variable="$namespace_array">
5032
  <type by_reference="false">array</type>
5033
  </tag>
5034
+ <tag line="1724" name="param" description="namespace" type="string" variable="$namespace">
5035
  <type by_reference="false">string</type>
5036
  </tag>
5037
+ <tag line="1724" name="param" description="key" type="string" variable="$key">
5038
  <type by_reference="false">string</type>
5039
  </tag>
5040
+ <tag line="1724" name="return" description="trimmed value of the key within the namespace" type="string">
5041
  <type by_reference="false">string</type>
5042
  </tag>
5043
  </docblock>
5044
+ <argument line="1735">
5045
  <name>$namespace_array</name>
5046
  <default><![CDATA[]]></default>
5047
  <type/>
5048
  </argument>
5049
+ <argument line="1735">
5050
  <name>$namespace</name>
5051
  <default><![CDATA[]]></default>
5052
  <type/>
5053
  </argument>
5054
+ <argument line="1735">
5055
  <name>$key</name>
5056
  <default><![CDATA[]]></default>
5057
  <type/>
5058
  </argument>
5059
  </method>
5060
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1764" package="Media Library Assistant">
5061
  <name>mla_parse_xmp_metadata</name>
5062
  <full_name>mla_parse_xmp_metadata</full_name>
5063
+ <docblock line="1754">
5064
  <description><![CDATA[Extract XMP meta data from a file]]></description>
5065
  <long-description><![CDATA[]]></long-description>
5066
+ <tag line="1754" name="since" description="2.10"/>
5067
+ <tag line="1754" name="param" description="full path and file name" type="string" variable="$file_name">
5068
  <type by_reference="false">string</type>
5069
  </tag>
5070
+ <tag line="1754" name="param" description="offset within the file of the search start point" type="integer" variable="$file_offset">
5071
  <type by_reference="false">integer</type>
5072
  </tag>
5073
+ <tag line="1754" name="return" description="array of metadata values or NULL on failure" type="mixed">
5074
  <type by_reference="false">mixed</type>
5075
  </tag>
5076
  </docblock>
5077
+ <argument line="1764">
5078
  <name>$file_name</name>
5079
  <default><![CDATA[]]></default>
5080
  <type/>
5081
  </argument>
5082
+ <argument line="1764">
5083
  <name>$file_offset</name>
5084
  <default><![CDATA[]]></default>
5085
  <type/>
5086
  </argument>
5087
  </method>
5088
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2141" package="Media Library Assistant">
5089
  <name>_bin_to_utf8</name>
5090
  <full_name>_bin_to_utf8</full_name>
5091
+ <docblock line="2132">
5092
  <description><![CDATA[Replace SQL incorrect characters (0x80 - 0xFF) with their UTF-8 equivalents]]></description>
5093
  <long-description><![CDATA[]]></long-description>
5094
+ <tag line="2132" name="since" description="1.41"/>
5095
+ <tag line="2132" name="param" description="unencoded string" type="string" variable="$string">
5096
  <type by_reference="false">string</type>
5097
  </tag>
5098
+ <tag line="2132" name="return" description="UTF-8 encoded string" type="string">
5099
  <type by_reference="false">string</type>
5100
  </tag>
5101
  </docblock>
5102
+ <argument line="2141">
5103
  <name>$string</name>
5104
  <default><![CDATA[]]></default>
5105
  <type/>
5106
  </argument>
5107
  </method>
5108
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2541" package="Media Library Assistant">
5109
  <name>mla_iptc_metadata_value</name>
5110
  <full_name>mla_iptc_metadata_value</full_name>
5111
+ <docblock line="2529">
5112
  <description><![CDATA[Parse one IPTC metadata field]]></description>
5113
  <long-description><![CDATA[]]></long-description>
5114
+ <tag line="2529" name="since" description="1.41"/>
5115
+ <tag line="2529" name="param" description="field name - IPTC Identifier or friendly name/slug" type="string" variable="$iptc_key">
5116
  <type by_reference="false">string</type>
5117
  </tag>
5118
+ <tag line="2529" name="param" description="metadata array containing iptc, exif, xmp and pdf metadata arrays" type="array" variable="$item_metadata">
5119
  <type by_reference="false">array</type>
5120
  </tag>
5121
+ <tag line="2529" name="param" description="data option; 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
5122
  <type by_reference="false">string</type>
5123
  </tag>
5124
+ <tag line="2529" name="param" description="Optional: for option 'multi', retain existing values" type="boolean" variable="$keep_existing">
5125
  <type by_reference="false">boolean</type>
5126
  </tag>
5127
+ <tag line="2529" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
5128
  <type by_reference="false">mixed</type>
5129
  </tag>
5130
  </docblock>
5131
+ <argument line="2541">
5132
  <name>$iptc_key</name>
5133
  <default><![CDATA[]]></default>
5134
  <type/>
5135
  </argument>
5136
+ <argument line="2541">
5137
  <name>$item_metadata</name>
5138
  <default><![CDATA[]]></default>
5139
  <type/>
5140
  </argument>
5141
+ <argument line="2541">
5142
  <name>$option</name>
5143
  <default><![CDATA['text']]></default>
5144
  <type/>
5145
  </argument>
5146
+ <argument line="2541">
5147
  <name>$keep_existing</name>
5148
  <default><![CDATA[false]]></default>
5149
  <type/>
5150
  </argument>
5151
  </method>
5152
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2584" package="Media Library Assistant">
5153
  <name>mla_exif_metadata_value</name>
5154
  <full_name>mla_exif_metadata_value</full_name>
5155
+ <docblock line="2570">
5156
  <description><![CDATA[Parse one EXIF metadata field]]></description>
5157
  <long-description><![CDATA[<p>Also handles the special pseudo-values 'ALL_EXIF' and 'ALL_IPTC'.</p>]]></long-description>
5158
+ <tag line="2570" name="since" description="1.13"/>
5159
+ <tag line="2570" name="param" description="field name" type="string" variable="$exif_key">
5160
  <type by_reference="false">string</type>
5161
  </tag>
5162
+ <tag line="2570" name="param" description="metadata array containing iptc, exif, xmp and pdf metadata arrays" type="array" variable="$item_metadata">
5163
  <type by_reference="false">array</type>
5164
  </tag>
5165
+ <tag line="2570" name="param" description="data option; 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
5166
  <type by_reference="false">string</type>
5167
  </tag>
5168
+ <tag line="2570" name="param" description="Optional: for option 'multi', retain existing values" type="boolean" variable="$keep_existing">
5169
  <type by_reference="false">boolean</type>
5170
  </tag>
5171
+ <tag line="2570" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
5172
  <type by_reference="false">mixed</type>
5173
  </tag>
5174
  </docblock>
5175
+ <argument line="2584">
5176
  <name>$exif_key</name>
5177
  <default><![CDATA[]]></default>
5178
  <type/>
5179
  </argument>
5180
+ <argument line="2584">
5181
  <name>$item_metadata</name>
5182
  <default><![CDATA[]]></default>
5183
  <type/>
5184
  </argument>
5185
+ <argument line="2584">
5186
  <name>$option</name>
5187
  <default><![CDATA['text']]></default>
5188
  <type/>
5189
  </argument>
5190
+ <argument line="2584">
5191
  <name>$keep_existing</name>
5192
  <default><![CDATA[false]]></default>
5193
  <type/>
5194
  </argument>
5195
  </method>
5196
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2637" package="Media Library Assistant">
5197
  <name>mla_xmp_metadata_value</name>
5198
  <full_name>mla_xmp_metadata_value</full_name>
5199
+ <docblock line="2623">
5200
  <description><![CDATA[Parse one XMP metadata field]]></description>
5201
  <long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_XMP'.</p>]]></long-description>
5202
+ <tag line="2623" name="since" description="2.10"/>
5203
+ <tag line="2623" name="param" description="field name" type="string" variable="$xmp_key">
5204
  <type by_reference="false">string</type>
5205
  </tag>
5206
+ <tag line="2623" name="param" description="XMP metadata array" type="array" variable="$xmp_metadata">
5207
  <type by_reference="false">array</type>
5208
  </tag>
5209
+ <tag line="2623" name="param" description="data option; 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
5210
  <type by_reference="false">string</type>
5211
  </tag>
5212
+ <tag line="2623" name="param" description="Optional: for option 'multi', retain existing values" type="boolean" variable="$keep_existing">
5213
  <type by_reference="false">boolean</type>
5214
  </tag>
5215
+ <tag line="2623" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
5216
  <type by_reference="false">mixed</type>
5217
  </tag>
5218
  </docblock>
5219
+ <argument line="2637">
5220
  <name>$xmp_key</name>
5221
  <default><![CDATA[]]></default>
5222
  <type/>
5223
  </argument>
5224
+ <argument line="2637">
5225
  <name>$xmp_metadata</name>
5226
  <default><![CDATA[]]></default>
5227
  <type/>
5228
  </argument>
5229
+ <argument line="2637">
5230
  <name>$option</name>
5231
  <default><![CDATA['text']]></default>
5232
  <type/>
5233
  </argument>
5234
+ <argument line="2637">
5235
  <name>$keep_existing</name>
5236
  <default><![CDATA[false]]></default>
5237
  <type/>
5238
  </argument>
5239
  </method>
5240
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2672" package="Media Library Assistant">
5241
  <name>mla_id3_metadata_value</name>
5242
  <full_name>mla_id3_metadata_value</full_name>
5243
+ <docblock line="2658">
5244
  <description><![CDATA[Parse one ID3 (audio/visual) metadata field]]></description>
5245
  <long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_ID3'.</p>]]></long-description>
5246
+ <tag line="2658" name="since" description="2.13"/>
5247
+ <tag line="2658" name="param" description="field name" type="string" variable="$id3_key">
5248
  <type by_reference="false">string</type>
5249
  </tag>
5250
+ <tag line="2658" name="param" description="ID3 metadata array" type="array" variable="$id3_metadata">
5251
  <type by_reference="false">array</type>
5252
  </tag>
5253
+ <tag line="2658" name="param" description="data option; 'text'|'single'|'export'|'array'|'multi'" type="string" variable="$option">
5254
  <type by_reference="false">string</type>
5255
  </tag>
5256
+ <tag line="2658" name="param" description="Optional: for option 'multi', retain existing values" type="boolean" variable="$keep_existing">
5257
  <type by_reference="false">boolean</type>
5258
  </tag>
5259
+ <tag line="2658" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
5260
  <type by_reference="false">mixed</type>
5261
  </tag>
5262
  </docblock>
5263
+ <argument line="2672">
5264
  <name>$id3_key</name>
5265
  <default><![CDATA[]]></default>
5266
  <type/>
5267
  </argument>
5268
+ <argument line="2672">
5269
  <name>$id3_metadata</name>
5270
  <default><![CDATA[]]></default>
5271
  <type/>
5272
  </argument>
5273
+ <argument line="2672">
5274
  <name>$option</name>
5275
  <default><![CDATA[]]></default>
5276
  <type/>
5277
  </argument>
5278
+ <argument line="2672">
5279
  <name>$keep_existing</name>
5280
  <default><![CDATA[]]></default>
5281
  <type/>
5282
  </argument>
5283
  </method>
5284
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2705" package="Media Library Assistant">
5285
  <name>mla_pdf_metadata_value</name>
5286
  <full_name>mla_pdf_metadata_value</full_name>
5287
+ <docblock line="2693">
5288
  <description><![CDATA[Parse one PDF metadata field]]></description>
5289
  <long-description><![CDATA[<p>Also handles the special pseudo-value 'ALL_PDF'.</p>]]></long-description>
5290
+ <tag line="2693" name="since" description="1.50"/>
5291
+ <tag line="2693" name="param" description="field name" type="string" variable="$pdf_key">
5292
  <type by_reference="false">string</type>
5293
  </tag>
5294
+ <tag line="2693" name="param" description="metadata array containing iptc, exif, xmp and pdf metadata arrays" type="string" variable="$item_metadata">
5295
  <type by_reference="false">string</type>
5296
  </tag>
5297
+ <tag line="2693" name="return" description="string/array representation of metadata value or an empty string" type="mixed">
5298
  <type by_reference="false">mixed</type>
5299
  </tag>
5300
  </docblock>
5301
+ <argument line="2705">
5302
  <name>$pdf_key</name>
5303
  <default><![CDATA[]]></default>
5304
  <type/>
5305
  </argument>
5306
+ <argument line="2705">
5307
  <name>$item_metadata</name>
5308
  <default><![CDATA[]]></default>
5309
  <type/>
5310
  </argument>
5311
  </method>
5312
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2749" package="Media Library Assistant">
5313
  <name>_rational_to_decimal</name>
5314
  <full_name>_rational_to_decimal</full_name>
5315
+ <docblock line="2740">
5316
  <description><![CDATA[Convert an EXIF GPS rational value to a PHP float value]]></description>
5317
  <long-description><![CDATA[]]></long-description>
5318
+ <tag line="2740" name="since" description="1.50"/>
5319
+ <tag line="2740" name="param" description="array( 0 =&gt; numerator, 1 =&gt; denominator )" type="array" variable="$rational">
5320
  <type by_reference="false">array</type>
5321
  </tag>
5322
+ <tag line="2740" name="return" description="numerator/denominator" type="float">
5323
  <type by_reference="false">float</type>
5324
  </tag>
5325
  </docblock>
5326
+ <argument line="2749">
5327
  <name>$rational</name>
5328
  <default><![CDATA[]]></default>
5329
  <type/>
5330
  </argument>
5331
  </method>
5332
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2766" package="Media Library Assistant">
5333
  <name>_rational_to_string</name>
5334
  <full_name>_rational_to_string</full_name>
5335
+ <docblock line="2754">
5336
  <description><![CDATA[Convert an EXIF rational value to a formatted string]]></description>
5337
  <long-description><![CDATA[]]></long-description>
5338
+ <tag line="2754" name="since" description="2.02"/>
5339
+ <tag line="2754" name="param" description="numerator/denominator" type="string" variable="$rational">
5340
  <type by_reference="false">string</type>
5341
  </tag>
5342
+ <tag line="2754" name="param" description="format for integer values" type="string" variable="$integer_format">
5343
  <type by_reference="false">string</type>
5344
  </tag>
5345
+ <tag line="2754" name="param" description="format for fractional values from -1 to +1" type="string" variable="$fraction_format">
5346
  <type by_reference="false">string</type>
5347
  </tag>
5348
+ <tag line="2754" name="param" description="format for integer.fraction values" type="string" variable="$mixed_format">
5349
  <type by_reference="false">string</type>
5350
  </tag>
5351
+ <tag line="2754" name="return" description="formatted value or boolean false if no value available" type="mixed">
5352
  <type by_reference="false">mixed</type>
5353
  </tag>
5354
  </docblock>
5355
+ <argument line="2766">
5356
  <name>$rational</name>
5357
  <default><![CDATA[]]></default>
5358
  <type/>
5359
  </argument>
5360
+ <argument line="2766">
5361
  <name>$integer_format</name>
5362
  <default><![CDATA[]]></default>
5363
  <type/>
5364
  </argument>
5365
+ <argument line="2766">
5366
  <name>$fraction_format</name>
5367
  <default><![CDATA[]]></default>
5368
  <type/>
5369
  </argument>
5370
+ <argument line="2766">
5371
  <name>$mixed_format</name>
5372
  <default><![CDATA[]]></default>
5373
  <type/>
5374
  </argument>
5375
  </method>
5376
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2817" package="Media Library Assistant">
5377
  <name>mla_IPTC_EXIF_error_handler</name>
5378
  <full_name>mla_IPTC_EXIF_error_handler</full_name>
5379
+ <docblock line="2805">
5380
  <description><![CDATA[Intercept IPTC and EXIF parse errors]]></description>
5381
  <long-description><![CDATA[]]></long-description>
5382
+ <tag line="2805" name="since" description="1.81"/>
5383
+ <tag line="2805" name="param" description="the level of the error raised" type="int" variable="$type">
5384
  <type by_reference="false">int</type>
5385
  </tag>
5386
+ <tag line="2805" name="param" description="the error message" type="string" variable="$string">
5387
  <type by_reference="false">string</type>
5388
  </tag>
5389
+ <tag line="2805" name="param" description="the filename that the error was raised in" type="string" variable="$file">
5390
  <type by_reference="false">string</type>
5391
  </tag>
5392
+ <tag line="2805" name="param" description="the line number the error was raised at" type="int" variable="$line">
5393
  <type by_reference="false">int</type>
5394
  </tag>
5395
+ <tag line="2805" name="return" description="true, to bypass PHP error handler" type="boolean">
5396
  <type by_reference="false">boolean</type>
5397
  </tag>
5398
  </docblock>
5399
+ <argument line="2817">
5400
  <name>$type</name>
5401
  <default><![CDATA[]]></default>
5402
  <type/>
5403
  </argument>
5404
+ <argument line="2817">
5405
  <name>$string</name>
5406
  <default><![CDATA[]]></default>
5407
  <type/>
5408
  </argument>
5409
+ <argument line="2817">
5410
  <name>$file</name>
5411
  <default><![CDATA[]]></default>
5412
  <type/>
5413
  </argument>
5414
+ <argument line="2817">
5415
  <name>$line</name>
5416
  <default><![CDATA[]]></default>
5417
  <type/>
5418
  </argument>
5419
  </method>
5420
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2858" package="Media Library Assistant">
5421
  <name>mla_fetch_attachment_id3_metadata</name>
5422
  <full_name>mla_fetch_attachment_id3_metadata</full_name>
5423
+ <docblock line="2845">
5424
  <description><![CDATA[Fetch and filter ID3 metadata for an audio or video attachment]]></description>
5425
  <long-description><![CDATA[<p>Adapted from /wp-admin/includes/media.php functions wp_add_id3_tag_data,
5426
  wp_read_video_metadata and wp_read_audio_metadata</p>]]></long-description>
5427
+ <tag line="2845" name="since" description="2.13"/>
5428
+ <tag line="2845" name="param" description="post ID of attachment" type="int" variable="$post_id">
5429
  <type by_reference="false">int</type>
5430
  </tag>
5431
+ <tag line="2845" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
5432
  <type by_reference="false">string</type>
5433
  </tag>
5434
+ <tag line="2845" name="return" description="Meta data variables, including 'audio' and 'video'" type="array">
5435
  <type by_reference="false">array</type>
5436
  </tag>
5437
  </docblock>
5438
+ <argument line="2858">
5439
  <name>$post_id</name>
5440
  <default><![CDATA[]]></default>
5441
  <type/>
5442
  </argument>
5443
+ <argument line="2858">
5444
  <name>$path</name>
5445
  <default><![CDATA['']]></default>
5446
  <type/>
5447
  </argument>
5448
  </method>
5449
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2952" package="Media Library Assistant">
5450
  <name>mla_fetch_attachment_image_metadata</name>
5451
  <full_name>mla_fetch_attachment_image_metadata</full_name>
5452
+ <docblock line="2942">
5453
  <description><![CDATA[Fetch and filter IPTC and EXIF, XMP or PDF metadata for an image attachment]]></description>
5454
  <long-description><![CDATA[]]></long-description>
5455
+ <tag line="2942" name="since" description="0.90"/>
5456
+ <tag line="2942" name="param" description="post ID of attachment" type="int" variable="$post_id">
5457
  <type by_reference="false">int</type>
5458
  </tag>
5459
+ <tag line="2942" name="param" description="optional; if $post_id is zero, path to the image file." type="string" variable="$path">
5460
  <type by_reference="false">string</type>
5461
  </tag>
5462
+ <tag line="2942" name="return" description="Meta data variables, IPTC and EXIF or PDF" type="array">
5463
  <type by_reference="false">array</type>
5464
  </tag>
5465
  </docblock>
5466
+ <argument line="2952">
5467
  <name>$post_id</name>
5468
  <default><![CDATA[]]></default>
5469
  <type/>
5470
  </argument>
5471
+ <argument line="2952">
5472
  <name>$path</name>
5473
  <default><![CDATA['']]></default>
5474
  <type/>
5475
  </argument>
5476
  </method>
5477
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3316" package="Media Library Assistant">
5478
  <name>mla_update_wp_attachment_metadata</name>
5479
  <full_name>mla_update_wp_attachment_metadata</full_name>
5480
+ <docblock line="3306">
5481
  <description><![CDATA[Update "meta:" data for a single attachment]]></description>
5482
  <long-description><![CDATA[]]></long-description>
5483
+ <tag line="3306" name="since" description="1.51"/>
5484
+ <tag line="3306" name="param" description="The current wp_attachment_metadata value" type="array" variable="$current_values">
5485
  <type by_reference="false">array</type>
5486
  </tag>
5487
+ <tag line="3306" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
5488
  <type by_reference="false">array</type>
5489
  </tag>
5490
+ <tag line="3306" name="return" description="success/failure message(s); empty string if no changes." type="string">
5491
  <type by_reference="false">string</type>
5492
  </tag>
5493
  </docblock>
5494
+ <argument line="3316">
5495
  <name>$current_values</name>
5496
  <default><![CDATA[]]></default>
5497
  <type/>
5498
  </argument>
5499
+ <argument line="3316">
5500
  <name>$new_meta</name>
5501
  <default><![CDATA[]]></default>
5502
  <type/>
5503
  </argument>
5504
  </method>
5505
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3400" package="Media Library Assistant">
5506
  <name>mla_update_item_postmeta</name>
5507
  <full_name>mla_update_item_postmeta</full_name>
5508
+ <docblock line="3390">
5509
  <description><![CDATA[Update custom field and "meta:" data for a single attachment]]></description>
5510
  <long-description><![CDATA[]]></long-description>
5511
+ <tag line="3390" name="since" description="1.40"/>
5512
+ <tag line="3390" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
5513
  <type by_reference="false">int</type>
5514
  </tag>
5515
+ <tag line="3390" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_meta">
5516
  <type by_reference="false">array</type>
5517
  </tag>
5518
+ <tag line="3390" name="return" description="success/failure message(s)" type="string">
5519
  <type by_reference="false">string</type>
5520
  </tag>
5521
  </docblock>
5522
+ <argument line="3400">
5523
  <name>$post_id</name>
5524
  <default><![CDATA[]]></default>
5525
  <type/>
5526
  </argument>
5527
+ <argument line="3400">
5528
  <name>$new_meta</name>
5529
  <default><![CDATA[]]></default>
5530
  <type/>
5531
  </argument>
5532
  </method>
5533
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3573" package="Media Library Assistant">
5534
  <name>mla_update_single_item</name>
5535
  <full_name>mla_update_single_item</full_name>
5536
+ <docblock line="3560">
5537
  <description><![CDATA[Update a single item; change the "post" data, taxonomy terms
5538
  and meta data for a single attachment]]></description>
5539
  <long-description><![CDATA[]]></long-description>
5540
+ <tag line="3560" name="since" description="0.1"/>
5541
+ <tag line="3560" name="param" description="The ID of the attachment to be updated" type="int" variable="$post_id">
5542
  <type by_reference="false">int</type>
5543
  </tag>
5544
+ <tag line="3560" name="param" description="Field name =&gt; value pairs" type="array" variable="$new_data">
5545
  <type by_reference="false">array</type>
5546
  </tag>
5547
+ <tag line="3560" name="param" description="Optional taxonomy term values, default null" type="array" variable="$tax_input">
5548
  <type by_reference="false">array</type>
5549
  </tag>
5550
+ <tag line="3560" name="param" description="Optional taxonomy actions (add, remove, replace), default null" type="array" variable="$tax_actions">
5551
  <type by_reference="false">array</type>
5552
  </tag>
5553
+ <tag line="3560" name="return" description="success/failure message and NULL content" type="array">
5554
  <type by_reference="false">array</type>
5555
  </tag>
5556
  </docblock>
5557
+ <argument line="3573">
5558
  <name>$post_id</name>
5559
  <default><![CDATA[]]></default>
5560
  <type/>
5561
  </argument>
5562
+ <argument line="3573">
5563
  <name>$new_data</name>
5564
  <default><![CDATA[]]></default>
5565
  <type/>
5566
  </argument>
5567
+ <argument line="3573">
5568
  <name>$tax_input</name>
5569
  <default><![CDATA[NULL]]></default>
5570
  <type/>
5571
  </argument>
5572
+ <argument line="3573">
5573
  <name>$tax_actions</name>
5574
  <default><![CDATA[NULL]]></default>
5575
  <type/>
5576
  </argument>
5577
  </method>
5578
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="3879" package="Media Library Assistant">
5579
  <name>_remove_terms</name>
5580
  <full_name>_remove_terms</full_name>
5581
+ <docblock line="3868">
5582
  <description><![CDATA[Remove terms from an attachment's assignments]]></description>
5583
  <long-description><![CDATA[]]></long-description>
5584
+ <tag line="3868" name="since" description="0.40"/>
5585
+ <tag line="3868" name="param" description="The ID of the attachment to be updated" type="integer" variable="$post_id">
5586
  <type by_reference="false">integer</type>
5587
  </tag>
5588
+ <tag line="3868" name="param" description="The term ids (integer array) or names (string array) to remove" type="array" variable="$terms">
5589
  <type by_reference="false">array</type>
5590
  </tag>
5591
+ <tag line="3868" name="param" description="The taxonomy object" type="object" variable="$taxonomy_obj">
5592
  <type by_reference="false">object</type>
5593
  </tag>
5594
+ <tag line="3868" name="return" description="Term ids/names of the surviving terms" type="array">
5595
  <type by_reference="false">array</type>
5596
  </tag>
5597
  </docblock>
5598
+ <argument line="3879">
5599
  <name>$post_id</name>
5600
  <default><![CDATA[]]></default>
5601
  <type/>
5602
  </argument>
5603
+ <argument line="3879">
5604
  <name>$terms</name>
5605
  <default><![CDATA[]]></default>
5606
  <type/>
5607
  </argument>
5608
+ <argument line="3879">
5609
  <name>$taxonomy_obj</name>
5610
  <default><![CDATA[]]></default>
5611
  <type/>
5612
  </argument>
5613
  </method>
5614
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="3932" package="Media Library Assistant">
5615
  <name>mla_hex_dump</name>
5616
  <full_name>mla_hex_dump</full_name>
5617
+ <docblock line="3920">
5618
  <description><![CDATA[Format printable version of binary data]]></description>
5619
  <long-description><![CDATA[]]></long-description>
5620
+ <tag line="3920" name="since" description="0.90"/>
5621
+ <tag line="3920" name="param" description="Binary data" type="string" variable="$data">
5622
  <type by_reference="false">string</type>
5623
  </tag>
5624
+ <tag line="3920" name="param" description="Bytes to format, default = 0 (all bytes)" type="integer" variable="$limit">
5625
  <type by_reference="false">integer</type>
5626
  </tag>
5627
+ <tag line="3920" name="param" description="Bytes to format on each line" type="\intger" variable="$bytes_per_row">
5628
  <type by_reference="false">\intger</type>
5629
  </tag>
5630
+ <tag line="3920" name="param" description="offset of initial byte, or -1 to suppress printing offset information" type="integer" variable="$offset">
5631
  <type by_reference="false">integer</type>
5632
  </tag>
5633
+ <tag line="3920" name="return" description="Printable representation of $data" type="string">
5634
  <type by_reference="false">string</type>
5635
  </tag>
5636
  </docblock>
5637
+ <argument line="3932">
5638
  <name>$data</name>
5639
  <default><![CDATA[]]></default>
5640
  <type/>
5641
  </argument>
5642
+ <argument line="3932">
5643
  <name>$limit</name>
5644
  <default><![CDATA[0]]></default>
5645
  <type/>
5646
  </argument>
5647
+ <argument line="3932">
5648
  <name>$bytes_per_row</name>
5649
  <default><![CDATA[16]]></default>
5650
  <type/>
5651
  </argument>
5652
+ <argument line="3932">
5653
  <name>$offset</name>
5654
  <default><![CDATA[-1]]></default>
5655
  <type/>
5657
  </method>
5658
  </class>
5659
  </file>
5660
+ <file path="includes\class-mla-edit-media.php" hash="7877a404efdbf3e1059d5f24aa0935fb" package="Media Library Assistant">
5661
  <docblock line="2">
5662
  <description><![CDATA[Media Library Assistant Edit Media screen enhancements]]></description>
5663
  <long-description><![CDATA[]]></long-description>
7724
  </method>
7725
  </class>
7726
  </file>
7727
+ <file path="includes\class-mla-main.php" hash="8f75cc7a6a85b618c6979ae02d3f7013" package="Media Library Assistant">
7728
  <docblock line="2">
7729
  <description><![CDATA[Top-level functions for the Media Library Assistant]]></description>
7730
  <long-description><![CDATA[]]></long-description>
7734
  <include line="13" type="Require Once" package="Media Library Assistant">
7735
  <name/>
7736
  </include>
7737
+ <include line="160" type="Require Once" package="Media Library Assistant">
7738
  <name/>
7739
  </include>
7740
+ <include line="183" type="Require Once" package="Media Library Assistant">
7741
  <name/>
7742
  </include>
7743
+ <include line="196" type="Require Once" package="Media Library Assistant">
7744
  <name/>
7745
  </include>
7746
+ <include line="1568" type="Require Once" package="Media Library Assistant">
7747
  <name/>
7748
  </include>
7749
  <class final="false" abstract="false" namespace="global" line="23" package="Media Library Assistant">
7757
  <tag line="16" name="package" description="Media Library Assistant"/>
7758
  <tag line="16" name="since" description="0.1"/>
7759
  </docblock>
7760
+ <constant namespace="global" line="38" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
7761
  <name>MLA_DEVELOPMENT_VERSION</name>
7762
  <full_name>MLA_DEVELOPMENT_VERSION</full_name>
7763
  <value><![CDATA['']]></value>
7764
+ <docblock line="31">
7765
  <description><![CDATA[Current date for Development Version, empty for production versions]]></description>
7766
  <long-description><![CDATA[]]></long-description>
7767
+ <tag line="31" name="since" description="2.10"/>
7768
+ <tag line="31" name="var" description="" type="string">
 
 
 
 
 
 
 
 
 
 
 
 
 
7769
  <type by_reference="false">string</type>
7770
  </tag>
7771
  </docblock>
7772
  </constant>
7773
+ <constant namespace="global" line="53" package="Media Library Assistant">
7774
  <name>JAVASCRIPT_INLINE_EDIT_OBJECT</name>
7775
  <full_name>JAVASCRIPT_INLINE_EDIT_OBJECT</full_name>
7776
  <value><![CDATA['mla_inline_edit_vars']]></value>
7777
+ <docblock line="46">
7778
  <description><![CDATA[Object name for localizing JavaScript - MLA List Table]]></description>
7779
  <long-description><![CDATA[]]></long-description>
7780
+ <tag line="46" name="since" description="0.20"/>
7781
+ <tag line="46" name="var" description="" type="string">
7782
  <type by_reference="false">string</type>
7783
  </tag>
7784
  </docblock>
7785
  </constant>
7786
+ <constant namespace="global" line="64" package="Media Library Assistant">
7787
  <name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</name>
7788
  <full_name>MLA_ADMIN_SINGLE_EDIT_DISPLAY</full_name>
7789
  <value><![CDATA['single_item_edit_display']]></value>
7790
+ <docblock line="55">
7791
  <description><![CDATA[mla_admin_action value to display a single item for editing]]></description>
7792
  <long-description><![CDATA[<p>Used by class-mla-view-list-table.php and class-mla-upload-list-table.php</p>]]></long-description>
7793
+ <tag line="55" name="since" description="0.1"/>
7794
+ <tag line="55" name="var" description="" type="string">
7795
  <type by_reference="false">string</type>
7796
  </tag>
7797
  </docblock>
7798
  </constant>
7799
+ <constant namespace="global" line="75" package="Media Library Assistant">
7800
  <name>MLA_ADMIN_SINGLE_EDIT_UPDATE</name>
7801
  <full_name>MLA_ADMIN_SINGLE_EDIT_UPDATE</full_name>
7802
  <value><![CDATA['single_item_edit_update']]></value>
7803
+ <docblock line="66">
7804
  <description><![CDATA[mla_admin_action value for updating a single item]]></description>
7805
  <long-description><![CDATA[<p>Used by class-mla-view-list-table.php and class-mla-upload-list-table.php</p>]]></long-description>
7806
+ <tag line="66" name="since" description="0.1"/>
7807
+ <tag line="66" name="var" description="" type="string">
7808
  <type by_reference="false">string</type>
7809
  </tag>
7810
  </docblock>
7811
  </constant>
7812
+ <constant namespace="global" line="84" package="Media Library Assistant">
7813
  <name>MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP</name>
7814
  <full_name>MLA_ADMIN_SINGLE_CUSTOM_FIELD_MAP</full_name>
7815
  <value><![CDATA['single_item_custom_field_map']]></value>
7816
+ <docblock line="77">
7817
  <description><![CDATA[mla_admin_action value for mapping Custom Field metadata]]></description>
7818
  <long-description><![CDATA[]]></long-description>
7819
+ <tag line="77" name="since" description="1.10"/>
7820
+ <tag line="77" name="var" description="" type="string">
7821
  <type by_reference="false">string</type>
7822
  </tag>
7823
  </docblock>
7824
  </constant>
7825
+ <constant namespace="global" line="93" package="Media Library Assistant">
7826
  <name>MLA_ADMIN_SINGLE_MAP</name>
7827
  <full_name>MLA_ADMIN_SINGLE_MAP</full_name>
7828
  <value><![CDATA['single_item_map']]></value>
7829
+ <docblock line="86">
7830
  <description><![CDATA[mla_admin_action value for mapping IPTC/EXIF metadata]]></description>
7831
  <long-description><![CDATA[]]></long-description>
7832
+ <tag line="86" name="since" description="1.00"/>
7833
+ <tag line="86" name="var" description="" type="string">
7834
  <type by_reference="false">string</type>
7835
  </tag>
7836
  </docblock>
7837
  </constant>
7838
+ <constant namespace="global" line="102" package="Media Library Assistant">
7839
  <name>MLA_ADMIN_SET_PARENT</name>
7840
  <full_name>MLA_ADMIN_SET_PARENT</full_name>
7841
  <value><![CDATA['set_parent']]></value>
7842
+ <docblock line="95">
7843
  <description><![CDATA[mla_admin_action value for setting an item's parent object]]></description>
7844
  <long-description><![CDATA[]]></long-description>
7845
+ <tag line="95" name="since" description="1.82"/>
7846
+ <tag line="95" name="var" description="" type="string">
7847
  <type by_reference="false">string</type>
7848
  </tag>
7849
  </docblock>
7850
  </constant>
7851
+ <constant namespace="global" line="111" package="Media Library Assistant">
7852
  <name>MLA_ADMIN_TERMS_SEARCH</name>
7853
  <full_name>MLA_ADMIN_TERMS_SEARCH</full_name>
7854
  <value><![CDATA['terms_search']]></value>
7855
+ <docblock line="104">
7856
  <description><![CDATA[mla_admin_action value for searching taxonomy terms]]></description>
7857
  <long-description><![CDATA[]]></long-description>
7858
+ <tag line="104" name="since" description="1.90"/>
7859
+ <tag line="104" name="var" description="" type="string">
7860
  <type by_reference="false">string</type>
7861
  </tag>
7862
  </docblock>
7863
  </constant>
7864
+ <property final="false" static="true" visibility="private" line="120" namespace="global" package="Media Library Assistant">
7865
  <name>$page_hooks</name>
7866
  <default><![CDATA[array()]]></default>
7867
+ <docblock line="113">
7868
  <description><![CDATA[Holds screen ids to match help text to corresponding screen]]></description>
7869
  <long-description><![CDATA[]]></long-description>
7870
+ <tag line="113" name="since" description="0.1"/>
7871
+ <tag line="113" name="var" description="" type="array">
7872
  <type by_reference="false">array</type>
7873
  </tag>
7874
  </docblock>
7875
  </property>
7876
+ <property final="false" static="true" visibility="private" line="127" namespace="global" package="Media Library Assistant">
7877
  <name>$mla_language_support_error_messages</name>
7878
  <default><![CDATA['']]></default>
7879
+ <docblock line="122">
7880
  <description><![CDATA[Accumulates error messages from name conflict tests]]></description>
7881
  <long-description><![CDATA[]]></long-description>
7882
+ <tag line="122" name="since" description="1.14"/>
7883
  </docblock>
7884
  </property>
7885
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="134" package="Media Library Assistant">
7886
  <name>mla_name_conflict_reporting_action</name>
7887
  <full_name>mla_name_conflict_reporting_action</full_name>
7888
+ <docblock line="129">
7889
  <description><![CDATA[Displays name conflict error messages at the top of the Dashboard]]></description>
7890
  <long-description><![CDATA[]]></long-description>
7891
+ <tag line="129" name="since" description="2.11"/>
7892
  </docblock>
7893
  </method>
7894
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="153" package="Media Library Assistant">
7895
  <name>initialize</name>
7896
  <full_name>initialize</full_name>
7897
+ <docblock line="142">
7898
  <description><![CDATA[Initialization function, similar to __construct()]]></description>
7899
  <long-description><![CDATA[<p>This function contains add_action and add_filter calls
7900
  to set up the Ajax handlers, enqueue JavaScript and CSS files, and
7901
  set up the Assistant submenu.</p>]]></long-description>
7902
+ <tag line="142" name="since" description="0.1"/>
7903
+ <tag line="142" name="return" description="" type="void">
7904
  <type by_reference="false">void</type>
7905
  </tag>
7906
  </docblock>
7907
  </method>
7908
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="219" package="Media Library Assistant">
7909
  <name>mla_admin_init_action</name>
7910
  <full_name>mla_admin_init_action</full_name>
7911
+ <docblock line="212">
7912
  <description><![CDATA[Load the plugin's Ajax handler or process Edit Media update actions]]></description>
7913
  <long-description><![CDATA[]]></long-description>
7914
+ <tag line="212" name="since" description="0.20"/>
7915
+ <tag line="212" name="return" description="" type="void">
7916
  <type by_reference="false">void</type>
7917
  </tag>
7918
  </docblock>
7919
  </method>
7920
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="287" package="Media Library Assistant">
7921
  <name>mla_admin_print_styles_action</name>
7922
  <full_name>mla_admin_print_styles_action</full_name>
7923
+ <docblock line="282">
7924
  <description><![CDATA[Print optional in-lne styles for Media/Assistant submenu table]]></description>
7925
  <long-description><![CDATA[]]></long-description>
7926
+ <tag line="282" name="since" description="2.13"/>
7927
  </docblock>
7928
  </method>
7929
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="395" package="Media Library Assistant">
7930
  <name>mla_admin_enqueue_scripts_action</name>
7931
  <full_name>mla_admin_enqueue_scripts_action</full_name>
7932
+ <docblock line="386">
7933
  <description><![CDATA[Load the plugin's Style Sheet and Javascript files]]></description>
7934
  <long-description><![CDATA[]]></long-description>
7935
+ <tag line="386" name="since" description="0.1"/>
7936
+ <tag line="386" name="param" description="Name of the page being loaded" type="string" variable="$page_hook">
7937
  <type by_reference="false">string</type>
7938
  </tag>
7939
+ <tag line="386" name="return" description="" type="void">
7940
  <type by_reference="false">void</type>
7941
  </tag>
7942
  </docblock>
7943
+ <argument line="395">
7944
  <name>$page_hook</name>
7945
  <default><![CDATA[]]></default>
7946
  <type/>
7947
  </argument>
7948
  </method>
7949
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="487" package="Media Library Assistant">
7950
  <name>mla_admin_menu_action</name>
7951
  <full_name>mla_admin_menu_action</full_name>
7952
+ <docblock line="476">
7953
  <description><![CDATA[Add the submenu pages]]></description>
7954
  <long-description><![CDATA[<p>Add a submenu page in the "Media" section,
7955
  add settings page in the "Settings" section.
7956
  add settings link in the Plugins section entry for MLA.</p>]]></long-description>
7957
+ <tag line="476" name="since" description="0.1"/>
7958
+ <tag line="476" name="return" description="" type="void">
7959
  <type by_reference="false">void</type>
7960
  </tag>
7961
  </docblock>
7962
  </method>
7963
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="555" package="Media Library Assistant">
7964
  <name>mla_load_media_action</name>
7965
  <full_name>mla_load_media_action</full_name>
7966
+ <docblock line="547">
7967
  <description><![CDATA[Redirect to Media/Assistant if Media/Library is hidden or a trash/delete
7968
  returns from Media/Edit Media initiated from Media/Assistant]]></description>
7969
  <long-description><![CDATA[]]></long-description>
7970
+ <tag line="547" name="since" description="1.60"/>
7971
+ <tag line="547" name="return" description="" type="void">
7972
  <type by_reference="false">void</type>
7973
  </tag>
7974
  </docblock>
7975
  </method>
7976
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="592" package="Media Library Assistant">
7977
  <name>mla_add_menu_options</name>
7978
  <full_name>mla_add_menu_options</full_name>
7979
+ <docblock line="585">
7980
  <description><![CDATA[Add the "XX Entries per page" filter to the Screen Options tab]]></description>
7981
  <long-description><![CDATA[]]></long-description>
7982
+ <tag line="585" name="since" description="0.1"/>
7983
+ <tag line="585" name="return" description="" type="void">
7984
  <type by_reference="false">void</type>
7985
  </tag>
7986
  </docblock>
7987
  </method>
7988
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="611" package="Media Library Assistant">
7989
  <name>mla_add_help_tab</name>
7990
  <full_name>mla_add_help_tab</full_name>
7991
+ <docblock line="604">
7992
  <description><![CDATA[Add contextual help tabs to all the MLA pages]]></description>
7993
  <long-description><![CDATA[]]></long-description>
7994
+ <tag line="604" name="since" description="0.1"/>
7995
+ <tag line="604" name="return" description="" type="void">
7996
  <type by_reference="false">void</type>
7997
  </tag>
7998
  </docblock>
7999
  </method>
8000
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="714" package="Media Library Assistant">
8001
  <name>mla_screen_options_show_screen_filter</name>
8002
  <full_name>mla_screen_options_show_screen_filter</full_name>
8003
+ <docblock line="704">
8004
  <description><![CDATA[Only show screen options on the table-list screen]]></description>
8005
  <long-description><![CDATA[]]></long-description>
8006
+ <tag line="704" name="since" description="0.1"/>
8007
+ <tag line="704" name="param" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean" variable="$show_screen">
8008
  <type by_reference="false">boolean</type>
8009
  </tag>
8010
+ <tag line="704" name="param" description="Name of the page being loaded" type="string" variable="$this_screen">
8011
  <type by_reference="false">string</type>
8012
  </tag>
8013
+ <tag line="704" name="return" description="True to display &quot;Screen Options&quot;, false to suppress them" type="boolean">
8014
  <type by_reference="false">boolean</type>
8015
  </tag>
8016
  </docblock>
8017
+ <argument line="714">
8018
  <name>$show_screen</name>
8019
  <default><![CDATA[]]></default>
8020
  <type/>
8021
  </argument>
8022
+ <argument line="714">
8023
  <name>$this_screen</name>
8024
  <default><![CDATA[]]></default>
8025
  <type/>
8026
  </argument>
8027
  </method>
8028
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="729" package="Media Library Assistant">
8029
  <name>mla_set_screen_option_filter</name>
8030
  <full_name>mla_set_screen_option_filter</full_name>
8031
+ <docblock line="718">
8032
  <description><![CDATA[Save the "Entries per page" option set by this user]]></description>
8033
  <long-description><![CDATA[]]></long-description>
8034
+ <tag line="718" name="since" description="0.1"/>
8035
+ <tag line="718" name="param" description="false or value returned by previous filter" type="mixed" variable="$status">
8036
  <type by_reference="false">mixed</type>
8037
  </tag>
8038
+ <tag line="718" name="param" description="Name of the option being changed" type="string" variable="$option">
8039
  <type by_reference="false">string</type>
8040
  </tag>
8041
+ <tag line="718" name="param" description="New value of the option" type="string" variable="$value">
8042
  <type by_reference="false">string</type>
8043
  </tag>
8044
+ <tag line="718" name="return" description="New value if this is our option, otherwise nothing" type="string|void">
8045
  <type by_reference="false">string</type>
8046
  <type by_reference="false">void</type>
8047
  </tag>
8048
  </docblock>
8049
+ <argument line="729">
8050
  <name>$status</name>
8051
  <default><![CDATA[]]></default>
8052
  <type/>
8053
  </argument>
8054
+ <argument line="729">
8055
  <name>$option</name>
8056
  <default><![CDATA[]]></default>
8057
  <type/>
8058
  </argument>
8059
+ <argument line="729">
8060
  <name>$value</name>
8061
  <default><![CDATA[]]></default>
8062
  <type/>
8063
  </argument>
8064
  </method>
8065
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="748" package="Media Library Assistant">
8066
  <name>mla_parent_file_filter</name>
8067
  <full_name>mla_parent_file_filter</full_name>
8068
+ <docblock line="737">
8069
  <description><![CDATA[Cleanup menus for Edit Tags/Categories page]]></description>
8070
  <long-description><![CDATA[<p>Fixes the submenu bolding when going to the Edit Media screen.</p>]]></long-description>
8071
+ <tag line="737" name="since" description="0.1"/>
8072
+ <tag line="737" name="param" description="The top-level menu page" type="array" variable="$parent_file">
8073
  <type by_reference="false">array</type>
8074
  </tag>
8075
+ <tag line="737" name="return" description="The updated top-level menu page" type="string">
8076
  <type by_reference="false">string</type>
8077
  </tag>
8078
  </docblock>
8079
+ <argument line="748">
8080
  <name>$parent_file</name>
8081
  <default><![CDATA[]]></default>
8082
  <type/>
8083
  </argument>
8084
  </method>
8085
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="785" package="Media Library Assistant">
8086
  <name>_process_mla_download_file</name>
8087
  <full_name>_process_mla_download_file</full_name>
8088
+ <docblock line="776">
8089
  <description><![CDATA[Process secure file download]]></description>
8090
  <long-description><![CDATA[<p>Requires _wpnonce, mla_download_file and mla_download_type in $_REQUEST; mla_download_disposition is optional.</p>]]></long-description>
8091
+ <tag line="776" name="since" description="2.00"/>
8092
+ <tag line="776" name="return" description="echos file contents and calls exit();" type="void">
8093
  <type by_reference="false">void</type>
8094
  </tag>
8095
  </docblock>
8096
  </method>
8097
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="839" package="Media Library Assistant">
8098
  <name>_process_bulk_value</name>
8099
  <full_name>_process_bulk_value</full_name>
8100
+ <docblock line="829">
8101
  <description><![CDATA[Process bulk edit area fields, which may contain a Content Template]]></description>
8102
  <long-description><![CDATA[]]></long-description>
8103
+ <tag line="829" name="since" description="1.80"/>
8104
+ <tag line="829" name="param" description="Current post ID" type="integer" variable="$post_id">
8105
  <type by_reference="false">integer</type>
8106
  </tag>
8107
+ <tag line="829" name="param" description="Field value as entered" type="string" variable="$bulk_value">
8108
  <type by_reference="false">string</type>
8109
  </tag>
8110
+ <tag line="829" name="return" description="Empty, or new value for the field" type="string">
8111
  <type by_reference="false">string</type>
8112
  </tag>
8113
  </docblock>
8114
+ <argument line="839">
8115
  <name>$post_id</name>
8116
  <default><![CDATA[]]></default>
8117
  <type/>
8118
  </argument>
8119
+ <argument line="839">
8120
  <name>$bulk_value</name>
8121
  <default><![CDATA[]]></default>
8122
  <type/>
8123
  </argument>
8124
  </method>
8125
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="875" package="Media Library Assistant">
8126
  <name>mla_prepare_bulk_edits</name>
8127
  <full_name>mla_prepare_bulk_edits</full_name>
8128
+ <docblock line="864">
8129
  <description><![CDATA[Prepare Bulk Edit field-level updates]]></description>
8130
  <long-description><![CDATA[]]></long-description>
8131
+ <tag line="864" name="since" description="2.11"/>
8132
+ <tag line="864" name="param" description="Current post ID" type="integer" variable="$post_id">
8133
  <type by_reference="false">integer</type>
8134
  </tag>
8135
+ <tag line="864" name="param" description="Form elements, e.g., from $_REQUEST" type="array" variable="$request">
8136
  <type by_reference="false">array</type>
8137
  </tag>
8138
+ <tag line="864" name="param" description="Form id to field name mapping" type="array" variable="$custom_field_map">
8139
  <type by_reference="false">array</type>
8140
  </tag>
8141
+ <tag line="864" name="return" description="Non-empty form elements" type="array">
8142
  <type by_reference="false">array</type>
8143
  </tag>
8144
  </docblock>
8145
+ <argument line="875">
8146
  <name>$post_id</name>
8147
  <default><![CDATA[]]></default>
8148
  <type/>
8149
  </argument>
8150
+ <argument line="875">
8151
  <name>$request</name>
8152
  <default><![CDATA[]]></default>
8153
  <type/>
8154
  </argument>
8155
+ <argument line="875">
8156
  <name>$custom_field_map</name>
8157
  <default><![CDATA[]]></default>
8158
  <type/>
8159
  </argument>
8160
  </method>
8161
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1107" package="Media Library Assistant">
8162
  <name>mla_process_bulk_action</name>
8163
  <full_name>mla_process_bulk_action</full_name>
8164
+ <docblock line="1097">
8165
  <description><![CDATA[Process bulk action for one or more attachments]]></description>
8166
  <long-description><![CDATA[]]></long-description>
8167
+ <tag line="1097" name="since" description="2.00"/>
8168
+ <tag line="1097" name="param" description="Bulk action slug: delete, edit, restore, trash, custom action" type="string" variable="$bulk_action">
8169
  <type by_reference="false">string</type>
8170
  </tag>
8171
+ <tag line="1097" name="param" description="Form elements, e.g., from $_REQUEST" type="array" variable="$request">
8172
  <type by_reference="false">array</type>
8173
  </tag>
8174
+ <tag line="1097" name="return" description="messages and page content: ( 'message', 'body', 'unchanged', 'success', 'failure', 'item_results' )" type="array">
8175
  <type by_reference="false">array</type>
8176
  </tag>
8177
  </docblock>
8178
+ <argument line="1107">
8179
  <name>$bulk_action</name>
8180
  <default><![CDATA[]]></default>
8181
  <type/>
8182
  </argument>
8183
+ <argument line="1107">
8184
  <name>$request</name>
8185
  <default><![CDATA[NULL]]></default>
8186
  <type/>
8187
  </argument>
8188
  </method>
8189
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1302" package="Media Library Assistant">
8190
  <name>mla_clear_filter_by</name>
8191
  <full_name>mla_clear_filter_by</full_name>
8192
+ <docblock line="1293">
8193
  <description><![CDATA[Clear the Media/Assistant submenu Filter-by variables]]></description>
8194
  <long-description><![CDATA[]]></long-description>
8195
+ <tag line="1293" name="since" description="2.13"/>
8196
+ <tag line="1293" name="param" description="Filters to be retained" type="array" variable="$preserves">
8197
  <type by_reference="false">array</type>
8198
  </tag>
8199
+ <tag line="1293" name="return" description="" type="void">
8200
  <type by_reference="false">void</type>
8201
  </tag>
8202
  </docblock>
8203
+ <argument line="1302">
8204
  <name>$preserves</name>
8205
  <default><![CDATA[array()]]></default>
8206
  <type/>
8207
  </argument>
8208
  </method>
8209
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1324" package="Media Library Assistant">
8210
  <name>mla_render_admin_page</name>
8211
  <full_name>mla_render_admin_page</full_name>
8212
+ <docblock line="1317">
8213
  <description><![CDATA[Render the "Assistant" subpage in the Media section, using the list_table package]]></description>
8214
  <long-description><![CDATA[]]></long-description>
8215
+ <tag line="1317" name="since" description="0.1"/>
8216
+ <tag line="1317" name="return" description="" type="void">
8217
  <type by_reference="false">void</type>
8218
  </tag>
8219
  </docblock>
8220
  </method>
8221
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1618" package="Media Library Assistant">
8222
  <name>_bulk_edit_ajax_handler</name>
8223
  <full_name>_bulk_edit_ajax_handler</full_name>
8224
+ <docblock line="1611">
8225
  <description><![CDATA[Ajax handler for bulk editing and mapping]]></description>
8226
  <long-description><![CDATA[]]></long-description>
8227
+ <tag line="1611" name="since" description="2.00"/>
8228
+ <tag line="1611" name="return" description="echo json results or error message, then die()" type="void">
8229
  <type by_reference="false">void</type>
8230
  </tag>
8231
  </docblock>
8232
  </method>
8233
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1661" package="Media Library Assistant">
8234
  <name>mla_inline_edit_ajax_action</name>
8235
  <full_name>mla_inline_edit_ajax_action</full_name>
8236
+ <docblock line="1652">
8237
  <description><![CDATA[Ajax handler for inline editing]]></description>
8238
  <long-description><![CDATA[<p>Adapted for Quick Edit from wp_ajax_inline_save in /wp-admin/includes/ajax-actions.php</p>]]></long-description>
8239
+ <tag line="1652" name="since" description="0.20"/>
8240
+ <tag line="1652" name="return" description="echo HTML &lt;tr&gt; markup for updated row or error message, then die()" type="void">
8241
  <type by_reference="false">void</type>
8242
  </tag>
8243
  </docblock>
8244
  </method>
8245
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1791" package="Media Library Assistant">
8246
  <name>_compose_post_type_select</name>
8247
  <full_name>_compose_post_type_select</full_name>
8248
+ <docblock line="1781">
8249
  <description><![CDATA[Compose a Post Type Options list with current selection]]></description>
8250
  <long-description><![CDATA[]]></long-description>
8251
+ <tag line="1781" name="since" description="1.90"/>
8252
+ <tag line="1781" name="param" description="template parts" type="array" variable="$templates">
8253
  <type by_reference="false">array</type>
8254
  </tag>
8255
+ <tag line="1781" name="param" description="current selection or 'all' (default)" type="string" variable="$selection">
8256
  <type by_reference="false">string</type>
8257
  </tag>
8258
+ <tag line="1781" name="return" description="HTML markup with select field options" type="string">
8259
  <type by_reference="false">string</type>
8260
  </tag>
8261
  </docblock>
8262
+ <argument line="1791">
8263
  <name>$templates</name>
8264
  <default><![CDATA[]]></default>
8265
  <type/>
8266
  </argument>
8267
+ <argument line="1791">
8268
  <name>$selection</name>
8269
  <default><![CDATA['all']]></default>
8270
  <type/>
8271
  </argument>
8272
  </method>
8273
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="1830" package="Media Library Assistant">
8274
  <name>mla_set_parent_form</name>
8275
  <full_name>mla_set_parent_form</full_name>
8276
+ <docblock line="1821">
8277
  <description><![CDATA[Build the hidden form for the "Set Parent" popup modal window]]></description>
8278
  <long-description><![CDATA[]]></long-description>
8279
+ <tag line="1821" name="since" description="1.90"/>
8280
+ <tag line="1821" name="param" description="true to return complete form, false to return mla-set-parent-div" type="boolean" variable="$return_form">
8281
  <type by_reference="false">boolean</type>
8282
  </tag>
8283
+ <tag line="1821" name="return" description="HTML &lt;form&gt; markup for hidden form" type="string">
8284
  <type by_reference="false">string</type>
8285
  </tag>
8286
  </docblock>
8287
+ <argument line="1830">
8288
  <name>$return_form</name>
8289
  <default><![CDATA[true]]></default>
8290
  <type/>
8291
  </argument>
8292
  </method>
8293
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="1893" package="Media Library Assistant">
8294
  <name>_build_inline_edit_form</name>
8295
  <full_name>_build_inline_edit_form</full_name>
8296
+ <docblock line="1882">
8297
  <description><![CDATA[Build the hidden row templates for inline editing (quick and bulk edit)]]></description>
8298
  <long-description><![CDATA[<p>inspired by inline_edit() in wp-admin\includes\class-wp-posts-list-table.php.</p>]]></long-description>
8299
+ <tag line="1882" name="since" description="0.20"/>
8300
+ <tag line="1882" name="param" description="MLA List Table object" type="object" variable="$MLAListTable">
8301
  <type by_reference="false">object</type>
8302
  </tag>
8303
+ <tag line="1882" name="return" description="HTML &lt;form&gt; markup for hidden rows" type="string">
8304
  <type by_reference="false">string</type>
8305
  </tag>
8306
  </docblock>
8307
+ <argument line="1893">
8308
  <name>$MLAListTable</name>
8309
  <default><![CDATA[]]></default>
8310
  <type/>
8311
  </argument>
8312
  </method>
8313
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="2089" package="Media Library Assistant">
8314
  <name>mla_authors_dropdown</name>
8315
  <full_name>mla_authors_dropdown</full_name>
8316
+ <docblock line="2078">
8317
  <description><![CDATA[Get the edit Authors dropdown box, if user has suitable permissions]]></description>
8318
  <long-description><![CDATA[]]></long-description>
8319
+ <tag line="2078" name="since" description="0.20"/>
8320
+ <tag line="2078" name="param" description="Optional User ID of the current author, default 0" type="integer" variable="$author">
8321
  <type by_reference="false">integer</type>
8322
  </tag>
8323
+ <tag line="2078" name="param" description="Optional HTML name attribute, default 'post_author'" type="string" variable="$name">
8324
  <type by_reference="false">string</type>
8325
  </tag>
8326
+ <tag line="2078" name="param" description="Optional HTML class attribute, default 'authors'" type="string" variable="$class">
8327
  <type by_reference="false">string</type>
8328
  </tag>
8329
+ <tag line="2078" name="return" description="HTML markup for the dropdown field or False" type="string|false">
8330
  <type by_reference="false">string</type>
8331
  <type by_reference="false">false</type>
8332
  </tag>
8333
  </docblock>
8334
+ <argument line="2089">
8335
  <name>$author</name>
8336
  <default><![CDATA[0]]></default>
8337
  <type/>
8338
  </argument>
8339
+ <argument line="2089">
8340
  <name>$name</name>
8341
  <default><![CDATA['post_author']]></default>
8342
  <type/>
8343
  </argument>
8344
+ <argument line="2089">
8345
  <name>$class</name>
8346
  <default><![CDATA['authors']]></default>
8347
  <type/>
8348
  </argument>
8349
  </method>
8350
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2123" package="Media Library Assistant">
8351
  <name>_current_bulk_action</name>
8352
  <full_name>_current_bulk_action</full_name>
8353
+ <docblock line="2116">
8354
  <description><![CDATA[Get the current action selected from the bulk actions dropdown]]></description>
8355
  <long-description><![CDATA[]]></long-description>
8356
+ <tag line="2116" name="since" description="0.1"/>
8357
+ <tag line="2116" name="return" description="The action name or False if no action was selected" type="string|false">
8358
  <type by_reference="false">string</type>
8359
  <type by_reference="false">false</type>
8360
  </tag>
8361
  </docblock>
8362
  </method>
8363
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2154" package="Media Library Assistant">
8364
  <name>_delete_single_item</name>
8365
  <full_name>_delete_single_item</full_name>
8366
+ <docblock line="2145">
8367
  <description><![CDATA[Delete a single item permanently]]></description>
8368
  <long-description><![CDATA[]]></long-description>
8369
+ <tag line="2145" name="since" description="0.1"/>
8370
+ <tag line="2145" name="param" description="The form POST data" type="array" variable="$post_id">
8371
  <type by_reference="false">array</type>
8372
  </tag>
8373
+ <tag line="2145" name="return" description="success/failure message and NULL content" type="array">
8374
  <type by_reference="false">array</type>
8375
  </tag>
8376
  </docblock>
8377
+ <argument line="2154">
8378
  <name>$post_id</name>
8379
  <default><![CDATA[]]></default>
8380
  <type/>
8381
  </argument>
8382
  </method>
8383
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2186" package="Media Library Assistant">
8384
  <name>_restore_single_item</name>
8385
  <full_name>_restore_single_item</full_name>
8386
+ <docblock line="2177">
8387
  <description><![CDATA[Restore a single item from the Trash]]></description>
8388
  <long-description><![CDATA[]]></long-description>
8389
+ <tag line="2177" name="since" description="0.1"/>
8390
+ <tag line="2177" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
8391
  <type by_reference="false">integer</type>
8392
  </tag>
8393
+ <tag line="2177" name="return" description="success/failure message and NULL content" type="array">
8394
  <type by_reference="false">array</type>
8395
  </tag>
8396
  </docblock>
8397
+ <argument line="2186">
8398
  <name>$post_id</name>
8399
  <default><![CDATA[]]></default>
8400
  <type/>
8401
  </argument>
8402
  </method>
8403
+ <method final="false" abstract="false" static="true" visibility="private" namespace="global" line="2226" package="Media Library Assistant">
8404
  <name>_trash_single_item</name>
8405
  <full_name>_trash_single_item</full_name>
8406
+ <docblock line="2217">
8407
  <description><![CDATA[Move a single item to Trash]]></description>
8408
  <long-description><![CDATA[]]></long-description>
8409
+ <tag line="2217" name="since" description="0.1"/>
8410
+ <tag line="2217" name="param" description="The WordPress Post ID of the attachment item" type="integer" variable="$post_id">
8411
  <type by_reference="false">integer</type>
8412
  </tag>
8413
+ <tag line="2217" name="return" description="success/failure message and NULL content" type="array">
8414
  <type by_reference="false">array</type>
8415
  </tag>
8416
  </docblock>
8417
+ <argument line="2226">
8418
  <name>$post_id</name>
8419
  <default><![CDATA[]]></default>
8420
  <type/>
8567
  </method>
8568
  </class>
8569
  </file>
8570
+ <file path="includes\class-mla-media-modal.php" hash="6db69269f85b88f5f4c01548a9cfeaf2" package="Media Library Assistant">
8571
  <docblock line="2">
8572
  <description><![CDATA[Media Library Assistant Media Manager enhancements]]></description>
8573
  <long-description><![CDATA[]]></long-description>
10115
  </method>
10116
  </class>
10117
  </file>
10118
+ <file path="includes\class-mla-objects.php" hash="a225c2eba9445916df8406f9dccb8e05" package="Media Library Assistant">
10119
  <docblock line="2">
10120
  <description><![CDATA[Media Library Assistant Custom Taxonomy and Widget objects]]></description>
10121
  <long-description><![CDATA[]]></long-description>
10122
  <tag line="2" name="package" description="Media Library Assistant"/>
10123
  <tag line="2" name="since" description="0.1"/>
10124
  </docblock>
10125
+ <include line="210" type="Require Once" package="Media Library Assistant">
10126
  <name/>
10127
  </include>
10128
  <class final="false" abstract="false" namespace="global" line="15" package="Media Library Assistant">
10159
  </tag>
10160
  </docblock>
10161
  </method>
10162
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="116" package="Media Library Assistant">
10163
  <name>mla_taxonomy_get_columns_filter</name>
10164
  <full_name>mla_taxonomy_get_columns_filter</full_name>
10165
+ <docblock line="106">
10166
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
10167
  which replaces the "Posts" column with an equivalent "Attachments" column.]]></description>
10168
  <long-description><![CDATA[]]></long-description>
10169
+ <tag line="106" name="since" description="0.30"/>
10170
+ <tag line="106" name="param" description="column definitions for the edit taxonomy list table" type="array" variable="$columns">
10171
  <type by_reference="false">array</type>
10172
  </tag>
10173
+ <tag line="106" name="return" description="updated column definitions for the edit taxonomy list table" type="array">
10174
  <type by_reference="false">array</type>
10175
  </tag>
10176
  </docblock>
10177
+ <argument line="116">
10178
  <name>$columns</name>
10179
  <default><![CDATA[]]></default>
10180
  <type/>
10181
  </argument>
10182
  </method>
10183
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="158" package="Media Library Assistant">
10184
  <name>mla_taxonomy_column_filter</name>
10185
  <full_name>mla_taxonomy_column_filter</full_name>
10186
+ <docblock line="145">
10187
  <description><![CDATA[WordPress Filter for edit taxonomy "Attachments" column,
10188
  which returns a count of the attachments assigned a given term]]></description>
10189
  <long-description><![CDATA[]]></long-description>
10190
+ <tag line="145" name="since" description="0.30"/>
10191
+ <tag line="145" name="param" description="current column value; filled in by earlier filter handlers" type="string" variable="$current_value">
10192
  <type by_reference="false">string</type>
10193
  </tag>
10194
+ <tag line="145" name="param" description="name of the column" type="string" variable="$column_name">
10195
  <type by_reference="false">string</type>
10196
  </tag>
10197
+ <tag line="145" name="param" description="ID of the term for which the count is desired" type="integer" variable="$term_id">
10198
  <type by_reference="false">integer</type>
10199
  </tag>
10200
+ <tag line="145" name="return" description="HTML markup for the column content; number of attachments in the category and alink to retrieve a list of them" type="array">
10201
  <type by_reference="false">array</type>
10202
  </tag>
10203
  </docblock>
10204
+ <argument line="158">
10205
  <name>$current_value</name>
10206
  <default><![CDATA[]]></default>
10207
  <type/>
10208
  </argument>
10209
+ <argument line="158">
10210
  <name>$column_name</name>
10211
  <default><![CDATA[]]></default>
10212
  <type/>
10213
  </argument>
10214
+ <argument line="158">
10215
  <name>$term_id</name>
10216
  <default><![CDATA[]]></default>
10217
  <type/>
10218
  </argument>
10219
  </method>
10220
  </class>
10221
+ <class final="false" abstract="false" namespace="global" line="258" package="Media Library Assistant">
10222
  <extends>\WP_Widget</extends>
10223
  <name>MLATextWidget</name>
10224
  <full_name>\MLATextWidget</full_name>
10225
+ <docblock line="252">
10226
  <description><![CDATA[Class MLA (Media Library Assistant) Text Widget defines a shortcode-enabled version of the WordPress Text widget]]></description>
10227
  <long-description><![CDATA[]]></long-description>
10228
+ <tag line="252" name="package" description="Media Library Assistant"/>
10229
+ <tag line="252" name="since" description="1.60"/>
10230
  </docblock>
10231
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="267" package="Media Library Assistant">
10232
  <name>__construct</name>
10233
  <full_name>__construct</full_name>
10234
+ <docblock line="260">
10235
  <description><![CDATA[Calls the parent constructor to set some defaults.]]></description>
10236
  <long-description><![CDATA[]]></long-description>
10237
+ <tag line="260" name="since" description="1.60"/>
10238
+ <tag line="260" name="return" description="" type="void">
10239
  <type by_reference="false">void</type>
10240
  </tag>
10241
  </docblock>
10242
  </method>
10243
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="291" package="Media Library Assistant">
10244
  <name>widget</name>
10245
  <full_name>widget</full_name>
10246
+ <docblock line="281">
10247
  <description><![CDATA[Display the widget content - called from the WordPress "front end"]]></description>
10248
  <long-description><![CDATA[]]></long-description>
10249
+ <tag line="281" name="since" description="1.60"/>
10250
+ <tag line="281" name="param" description="Widget arguments" type="array" variable="$args">
10251
  <type by_reference="false">array</type>
10252
  </tag>
10253
+ <tag line="281" name="param" description="Widget definition, from the database" type="array" variable="$instance">
10254
  <type by_reference="false">array</type>
10255
  </tag>
10256
+ <tag line="281" name="return" description="Echoes widget output" type="void">
10257
  <type by_reference="false">void</type>
10258
  </tag>
10259
  </docblock>
10260
+ <argument line="291">
10261
  <name>$args</name>
10262
  <default><![CDATA[]]></default>
10263
  <type/>
10264
  </argument>
10265
+ <argument line="291">
10266
  <name>$instance</name>
10267
  <default><![CDATA[]]></default>
10268
  <type/>
10269
  </argument>
10270
  </method>
10271
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="310" package="Media Library Assistant">
10272
  <name>form</name>
10273
  <full_name>form</full_name>
10274
+ <docblock line="301">
10275
  <description><![CDATA[Echo the "edit widget" form on the Appearance/Widgets admin screen]]></description>
10276
  <long-description><![CDATA[]]></long-description>
10277
+ <tag line="301" name="since" description="1.60"/>
10278
+ <tag line="301" name="param" description="Previous definition values, from the database" type="array" variable="$instance">
10279
  <type by_reference="false">array</type>
10280
  </tag>
10281
+ <tag line="301" name="return" description="Echoes &quot;edit widget&quot; form" type="void">
10282
  <type by_reference="false">void</type>
10283
  </tag>
10284
  </docblock>
10285
+ <argument line="310">
10286
  <name>$instance</name>
10287
  <default><![CDATA[]]></default>
10288
  <type/>
10289
  </argument>
10290
  </method>
10291
+ <method final="false" abstract="false" static="false" visibility="public" namespace="global" line="334" package="Media Library Assistant">
10292
  <name>update</name>
10293
  <full_name>update</full_name>
10294
+ <docblock line="324">
10295
  <description><![CDATA[Sanitize widget definition as it is saved to the database]]></description>
10296
  <long-description><![CDATA[]]></long-description>
10297
+ <tag line="324" name="since" description="1.60"/>
10298
+ <tag line="324" name="param" description="Current definition values, to be saved in the database" type="array" variable="$new_instance">
10299
  <type by_reference="false">array</type>
10300
  </tag>
10301
+ <tag line="324" name="param" description="Previous definition values, from the database" type="array" variable="$old_instance">
10302
  <type by_reference="false">array</type>
10303
  </tag>
10304
+ <tag line="324" name="return" description="Updated definition values to be saved in the database" type="array">
10305
  <type by_reference="false">array</type>
10306
  </tag>
10307
  </docblock>
10308
+ <argument line="334">
10309
  <name>$new_instance</name>
10310
  <default><![CDATA[]]></default>
10311
  <type/>
10312
  </argument>
10313
+ <argument line="334">
10314
  <name>$old_instance</name>
10315
  <default><![CDATA[]]></default>
10316
  <type/>
10317
  </argument>
10318
  </method>
10319
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="356" package="Media Library Assistant">
10320
  <name>mla_text_widget_widgets_init_action</name>
10321
  <full_name>mla_text_widget_widgets_init_action</full_name>
10322
+ <docblock line="347">
10323
  <description><![CDATA[Register the widget with WordPress]]></description>
10324
  <long-description><![CDATA[<p>Defined as public because it's an action.</p>]]></long-description>
10325
+ <tag line="347" name="since" description="1.60"/>
10326
+ <tag line="347" name="return" description="" type="void">
10327
  <type by_reference="false">void</type>
10328
  </tag>
10329
  </docblock>
10330
  </method>
10331
  </class>
10332
  </file>
10333
+ <file path="includes\class-mla-options.php" hash="0afb492409ca8d8c78dd823a4ec14073" package="Media Library Assistant">
10334
  <docblock line="2">
10335
  <description><![CDATA[Manages the plugin option settings]]></description>
10336
  <long-description><![CDATA[]]></long-description>
10337
  <tag line="2" name="package" description="Media Library Assistant"/>
10338
  <tag line="2" name="since" description="1.00"/>
10339
  </docblock>
10340
+ <include line="759" type="Require Once" package="Media Library Assistant">
10341
  <name/>
10342
  </include>
10343
+ <include line="790" type="Require" package="Media Library Assistant">
10344
  <name/>
10345
  </include>
10346
+ <include line="964" type="Require Once" package="Media Library Assistant">
10347
  <name/>
10348
  </include>
10349
+ <include line="983" type="Require Once" package="Media Library Assistant">
10350
  <name/>
10351
  </include>
10352
+ <include line="1173" type="Require Once" package="Media Library Assistant">
10353
  <name/>
10354
  </include>
10355
  <class final="false" abstract="false" namespace="global" line="18" package="Media Library Assistant">
10830
  <name>$mla_option_templates</name>
10831
  <default><![CDATA[NULL]]></default>
10832
  <docblock line="306">
10833
+ <description><![CDATA[Option Setting templates]]></description>
10834
  <long-description><![CDATA[]]></long-description>
10835
  <tag line="306" name="since" description="0.80"/>
10836
  <tag line="306" name="var" description="" type="array">
10838
  </tag>
10839
  </docblock>
10840
  </property>
10841
+ <property final="false" static="true" visibility="private" line="811" namespace="global" package="Media Library Assistant">
10842
  <name>$add_attachment_id</name>
10843
  <default><![CDATA[0]]></default>
10844
+ <docblock line="801">
10845
  <description><![CDATA[Attachment ID passed from mla_add_attachment_action to mla_update_attachment_metadata_filter]]></description>
10846
  <long-description><![CDATA[<p>Ensures that IPTC/EXIF and Custom Field mapping is only performed when the attachment is first
10847
  added to the Media Library.</p>]]></long-description>
10848
+ <tag line="801" name="since" description="1.70"/>
10849
+ <tag line="801" name="var" description="" type="integer">
10850
  <type by_reference="false">integer</type>
10851
  </tag>
10852
  </docblock>
10867
  <name>_load_option_templates</name>
10868
  <full_name>_load_option_templates</full_name>
10869
  <docblock line="315">
10870
+ <description><![CDATA[Load option settings templates to $mla_option_templates]]></description>
10871
  <long-description><![CDATA[]]></long-description>
10872
  <tag line="315" name="since" description="0.80"/>
10873
  <tag line="315" name="return" description="" type="void">
10875
  </tag>
10876
  </docblock>
10877
  </method>
10878
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="353" package="Media Library Assistant">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
10879
  <name>mla_get_option</name>
10880
  <full_name>mla_get_option</full_name>
10881
+ <docblock line="338">
10882
  <description><![CDATA[Return the stored value or default value of a defined MLA option]]></description>
10883
  <long-description><![CDATA[<p>Compatibility shim for MLACore::mla_get_option</p>]]></long-description>
10884
+ <tag line="338" name="since" description="0.1"/>
10885
+ <tag line="338" name="param" description="Name of the desired option" type="string" variable="$option">
10886
  <type by_reference="false">string</type>
10887
  </tag>
10888
+ <tag line="338" name="param" description="True to ignore current setting and return default values" type="boolean" variable="$get_default">
10889
  <type by_reference="false">boolean</type>
10890
  </tag>
10891
+ <tag line="338" name="param" description="True to ignore default values and return only stored values" type="boolean" variable="$get_stored">
10892
  <type by_reference="false">boolean</type>
10893
  </tag>
10894
+ <tag line="338" name="param" description="Custom option definitions" type="array" variable="$option_table">
10895
  <type by_reference="false">array</type>
10896
  </tag>
10897
+ <tag line="338" name="return" description="Value(s) for the option or false if the option is not a defined MLA option" type="mixed">
10898
  <type by_reference="false">mixed</type>
10899
  </tag>
10900
  </docblock>
10901
+ <argument line="353">
10902
  <name>$option</name>
10903
  <default><![CDATA[]]></default>
10904
  <type/>
10905
  </argument>
10906
+ <argument line="353">
10907
  <name>$get_default</name>
10908
  <default><![CDATA[false]]></default>
10909
  <type/>
10910
  </argument>
10911
+ <argument line="353">
10912
  <name>$get_stored</name>
10913
  <default><![CDATA[false]]></default>
10914
  <type/>
10915
  </argument>
10916
+ <argument line="353">
10917
  <name>$option_table</name>
10918
  <default><![CDATA[NULL]]></default>
10919
  <type/>
10920
  </argument>
10921
  </method>
10922
+ <method final="false" abstract="false" static="true" visibility="public" namespace="global" line="370" package="Media Library Assistant">
10923
  <name>mla_update_option</name>
10924
  <full_name>mla_update_option</full_name>
10925
+ <docblock line="357">
10926
  <description><![CDATA[Add or update the stored value of a defined MLA option]]></description>
10927
  <long-description><![CDATA[<p>Compatibility shim for MLACore::mla_update_option</p>]]></long-description>
10928
+ <tag line="357" name="since" description="0.1"/>
10929
+ <tag line="357" name="param" description="Name of the desired option" type="string" variable="$option">
10930
  <type by_reference="false">string</type>
10931
  </tag>
10932
+ <tag line="357" name="param" description="New value for the desired option" type="mixed" variable="$newvalue">
10933
  <type by_reference="false">mixed</type>
10934
  </tag>
10935
+ <tag line="357" name="param" description="Custom option definitions" type="array" variable="$option_table">
10936
  <type by_reference="false">array</type>
10937
  </tag>
10938
+ <tag line="357" name="return" description="True if the value was changed or false if the update failed" type="boolean">
10939
  <type by_reference="false">boolean</type>
10940
  </tag>
10941
  </docblock>
10942
+ <argument line="370">
10943
  <name>$option</name>
10944
  <default><![CDATA[]]></default>
10945
  <type/>
10946
  </argument>
10947
+ <argument line="370">
10948
  <name>$newvalue</name>
10949
  <default><![CDATA[]]></default>
10950
  <type/>
10951
  </argument>
10952
+ <argument line="370">
10953
  <name>$option_table</name>
10954
  <default><![CDATA[NULL]]></default>
10955
  <type/>
10956
  </argument>
10957
  </